Skip to content

Repository files navigation

Absensi Pegawai

πŸ“‹ Requirements

  • PHP >= 8.2
  • Laravel Framework >= 11.31
  • Laravel Filament >= 3.3
  • MySQL

πŸš€ Installation

1. Clone Repository

git clone git@github.com:rizkijanuarr/absensi_pegawai.git
cd absensi_pegawai

2. Install Dependencies

composer install

3. Database Setup

Login ke MySQL dan buat database baru:

mysql -u root -p
CREATE DATABASE absensi_pegawai DEFAULT CHARACTER SET = 'utf8mb4';

4. Environment Configuration

Copy file environment dan sesuaikan konfigurasi:

cp .env.example .env

Edit file .env dan atur koneksi database:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=absensi_pegawai
DB_USERNAME=root
DB_PASSWORD=your_password

5. Generate Application Key

php artisan key:generate

6. Run Migrations

php artisan migrate

7. Create Super Admin User

Buat user super admin menggunakan Tinker:

php artisan tinker

Di dalam Tinker console, jalankan:

$user = App\Models\User::create([
    'name' => 'Super Admin',
    'email' => 'superadmin@gmail.com',
    'password' => bcrypt('password'),
    'email_verified_at' => now(),
    'is_camera_enabled' => false,
    'image' => null
]);

8. Start Development Server

php artisan serve

Aplikasi akan berjalan di http://127.0.0.1:8000/backoffice/login

9. Generate Spatie Resources

php artisan shield:generate --all
php artisan shield:super-admin

10. Konfigurasi Role

  • Masuk ke http://127.0.0.1:8000/backoffice/shield/roles/create
  • Buat role dengan nama Karyawan, untuk guard web
  • Checklist semua hanya pada fitur Attendance dan Schedule !
  • And simpan!

11. Generate semua seeder!

php artisan migrate --seed

12. Symlink public folder

php artisan storage:link

πŸ“ License

This project is open-sourced software licensed under the MIT license.

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“§ Contact

For any questions or support, please contact the repository owner.

About

🌴 System Absensi Pegawai Internal Perusahaan use Framework Laravel and Facerecognition

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages