├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── .htaccess ├── ADMS server ZKTeco.postman_collection.json ├── README.md ├── Screenshot_10.png ├── Screenshot_7.png ├── Screenshot_8.png ├── Screenshot_9.png ├── app ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Controller.php │ │ ├── DeviceController.php │ │ └── iclockController.php │ ├── Kernel.php │ └── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ ├── ValidateSignature.php │ │ └── VerifyCsrfToken.php ├── Models │ ├── AbsensiSholat.php │ ├── Attendance.php │ ├── Device.php │ └── User.php └── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── datatables.php ├── filesystems.php ├── hashing.php ├── logging.php ├── mail.php ├── queue.php ├── sanctum.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_reset_tokens_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2019_12_14_000001_create_personal_access_tokens_table.php │ ├── 2023_07_25_021046_create_devices_table.php │ ├── 2023_07_25_033350_create_device_log_table.php │ ├── 2024_07_24_150621_finger_log.php │ ├── 2024_07_26_134536_create_error_log.php │ ├── 2024_07_29_022209_create_attendances_table.php │ └── 2024_07_29_231225_create_device_handshake_configs_table.php └── seeders │ ├── DatabaseSeeder.php │ └── JadwalSholatSeeder.php ├── package-lock.json ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── favicon.ico ├── index.php └── robots.txt ├── resources ├── css │ └── app.css ├── js │ ├── app.js │ └── bootstrap.js ├── sass │ ├── _variables.scss │ └── app.scss └── views │ ├── absensi_sholat │ ├── create.blade.php │ ├── edit.blade.php │ ├── index.blade.php │ └── show.blade.php │ ├── devices │ ├── attendance.blade.php │ ├── create.blade.php │ ├── edit.blade.php │ ├── finger.blade.php │ ├── index.blade.php │ ├── log.blade.php │ └── show.blade.php │ ├── layouts │ └── app.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── vite.config.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | LOG_DEPRECATIONS_CHANNEL=null 9 | LOG_LEVEL=debug 10 | 11 | DB_CONNECTION=mysql 12 | DB_HOST=127.0.0.1 13 | DB_PORT=3306 14 | DB_DATABASE=laravel 15 | DB_USERNAME=root 16 | DB_PASSWORD= 17 | 18 | BROADCAST_DRIVER=log 19 | CACHE_DRIVER=file 20 | FILESYSTEM_DISK=local 21 | QUEUE_CONNECTION=sync 22 | SESSION_DRIVER=file 23 | SESSION_LIFETIME=120 24 | 25 | MEMCACHED_HOST=127.0.0.1 26 | 27 | REDIS_HOST=127.0.0.1 28 | REDIS_PASSWORD=null 29 | REDIS_PORT=6379 30 | 31 | MAIL_MAILER=smtp 32 | MAIL_HOST=mailpit 33 | MAIL_PORT=1025 34 | MAIL_USERNAME=null 35 | MAIL_PASSWORD=null 36 | MAIL_ENCRYPTION=null 37 | MAIL_FROM_ADDRESS="hello@example.com" 38 | MAIL_FROM_NAME="${APP_NAME}" 39 | 40 | AWS_ACCESS_KEY_ID= 41 | AWS_SECRET_ACCESS_KEY= 42 | AWS_DEFAULT_REGION=us-east-1 43 | AWS_BUCKET= 44 | AWS_USE_PATH_STYLE_ENDPOINT=false 45 | 46 | PUSHER_APP_ID= 47 | PUSHER_APP_KEY= 48 | PUSHER_APP_SECRET= 49 | PUSHER_HOST= 50 | PUSHER_PORT=443 51 | PUSHER_SCHEME=https 52 | PUSHER_APP_CLUSTER=mt1 53 | 54 | VITE_APP_NAME="${APP_NAME}" 55 | VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 56 | VITE_PUSHER_HOST="${PUSHER_HOST}" 57 | VITE_PUSHER_PORT="${PUSHER_PORT}" 58 | VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" 59 | VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 60 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | 3 | *.blade.php diff=html 4 | *.css diff=css 5 | *.html diff=html 6 | *.md diff=markdown 7 | *.php diff=php 8 | 9 | /.github export-ignore 10 | CHANGELOG.md export-ignore 11 | .styleci.yml export-ignore 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.phpunit.cache 2 | /node_modules 3 | /public/build 4 | /public/hot 5 | /public/storage 6 | /storage/*.key 7 | /vendor 8 | .env 9 | .env.backup 10 | .env.production 11 | .phpunit.result.cache 12 | Homestead.json 13 | Homestead.yaml 14 | auth.json 15 | npm-debug.log 16 | yarn-error.log 17 | /.fleet 18 | /.idea 19 | /.vscode 20 | .history 21 | composer.lock 22 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | 2 | RewriteEngine On 3 | RewriteRule ^(.*)$ public/$1 [L] 4 | 5 | -------------------------------------------------------------------------------- /ADMS server ZKTeco.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "a67ae184-1ecb-4afb-bb91-cd4aa19384e0", 4 | "name": "ADMS server ZKTeco", 5 | "description": "[https://github.com/saifulcoder/adms-server-ZKTeco](https://github.com/saifulcoder/adms-server-ZKTeco)", 6 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", 7 | "_exporter_id": "15230299" 8 | }, 9 | "item": [ 10 | { 11 | "name": "attendance record", 12 | "request": { 13 | "method": "POST", 14 | "header": [], 15 | "body": { 16 | "mode": "raw", 17 | "raw": "1\t2024-07-28 01:25:24\t0\t1\t\t0\t0\t\r\n1\t2024-07-28 10:41:21\t0\t1\t\t0\t0\t\r\n4\t2024-07-28 10:41:31\t0\t1\t\t0\t0\t\r\n", 18 | "options": { 19 | "raw": { 20 | "language": "json" 21 | } 22 | } 23 | }, 24 | "url": { 25 | "raw": "{{base_url}}/iclock/cdata?SN=BOCK200961014&table=ATTLOG&Stamp=9999", 26 | "host": [ 27 | "{{base_url}}" 28 | ], 29 | "path": [ 30 | "iclock", 31 | "cdata" 32 | ], 33 | "query": [ 34 | { 35 | "key": "SN", 36 | "value": "BOCK200961014" 37 | }, 38 | { 39 | "key": "table", 40 | "value": "ATTLOG" 41 | }, 42 | { 43 | "key": "Stamp", 44 | "value": "9999" 45 | } 46 | ] 47 | } 48 | }, 49 | "response": [] 50 | }, 51 | { 52 | "name": "Initialization", 53 | "request": { 54 | "method": "GET", 55 | "header": [], 56 | "url": { 57 | "raw": "{{base_url}}/iclock/cdata?SN=BOCK200961014&options=all&language=69&pushver=2.4.0&DeviceType=middle%20east&PushOptionsFlag=1", 58 | "host": [ 59 | "{{base_url}}" 60 | ], 61 | "path": [ 62 | "iclock", 63 | "cdata" 64 | ], 65 | "query": [ 66 | { 67 | "key": "SN", 68 | "value": "BOCK200961014" 69 | }, 70 | { 71 | "key": "options", 72 | "value": "all" 73 | }, 74 | { 75 | "key": "language", 76 | "value": "69" 77 | }, 78 | { 79 | "key": "pushver", 80 | "value": "2.4.0" 81 | }, 82 | { 83 | "key": "DeviceType", 84 | "value": "middle%20east" 85 | }, 86 | { 87 | "key": "PushOptionsFlag", 88 | "value": "1" 89 | } 90 | ] 91 | } 92 | }, 93 | "response": [] 94 | }, 95 | { 96 | "name": "operationLog record", 97 | "request": { 98 | "method": "POST", 99 | "header": [], 100 | "body": { 101 | "mode": "raw", 102 | "raw": "OPLOG 13\t0\t2024-03-12 11:03:28\t0\t0\t0\t0\r\nOPLOG 0\t0\t2024-03-12 11:03:48\t0\t0\t0\t0\r\nOPLOG 4\t0\t2024-03-12 11:03:53\t0\t0\t0\t0\r\nOPLOG 0\t0\t2024-05-07 09:49:39\t0\t0\t0\t0\r\nOPLOG 0\t0\t2024-05-08 04:30:58\t0\t0\t0\t0\r\nOPLOG 1\t0\t2024-05-08 04:32:42\t0\t0\t0\t0\r\nOPLOG 0\t0\t2024-06-13 12:43:08\t0\t0\t0\t0\r\nOPLOG 4\t0\t2024-06-13 12:44:02\t0\t0\t0\t0\r\nOPLOG 4\t0\t2024-06-13 12:46:18\t0\t0\t0\t0\r\nOPLOG 4\t0\t2024-06-13 12:49:37\t0\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:22\t26\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:23\t186\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:24\t299\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:25\t300\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:26\t301\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:27\t302\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:28\t303\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:29\t305\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:30\t313\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:31\t330\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:32\t347\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:22\t348\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:23\t349\t0\t0\t0\r\nOPLOG 5\t0\t2024-06-13 12:51:24\t350\t0\t0\t0\r\nOPLOG 4\t0\t2024-06-13 12:52:38\t0\t0\t0\t0\r\nOPLOG 30\t0\t2024-06-13 12:55:40\t1\t0\t0\t0\r\nOPLOG 6\t0\t2024-06-13 12:55:41\t1\t0\t0\t906\r\nFP PIN=1\tFID=0\tSize=440\tValid=1\tTMP=ocoYgZ6nVgELiKpaARWTJERBGG4rEAEIS64xwRA\\/vyTBCTm0TkELJ8ZSAQ+kHUxBCxCqTUEQFzFDQR0xvEVB\r\nysRwE4YDcfAQxEn0HBFXMXI0EIXD4awQlCKnGBEx3OHAEZO0g9AQgtUTEBCy2eIAEM1B5ZwQyIHBPBDtEmhMsRD\tjw2VqbnXAwl5haGx0BAgMD8DBWqG67XMEod66wH5WoameZ3EEof7bGcB+VqGJnGNsAgyh7rjAflKheIxbZgELE6HshcB+TqJXnM9yDBUdICAdwH5MokV5mTYcoZ2YwH5KolR1dTQpoSqHwH5JpXNTVTVHZsB+SaVzRDZGV2YiwH5KpVQmRUZ2ZSPAfkmlVTVUNnhlI8DBRaVjVDN3lVXAwUSlRTQ1Z3ZWwMI7pFRVZ2VnwMM1oTZoK8Ei4AAAAAAAAAAAAA==\r\nOPLOG 6\t0\t2024-06-13 12:55:42\t1\t0\t1\t1218\r\nFP PIN=1\tFID=1\tSize=332\tValid=1\tTMP=ocoPgJfHK0EPdUcJgQdarDSBBA04QUEDgUo\\/AQaIRzpBBhRMJMEYZj8VgQlsoAgBC3ghJQEIhCofQQl\\/Ly\\/BCX2cQ0EIhstaQQWQoE7BCIUPFeTBD8IWwH4Joqq5lxPAfgehuakPgsB+BKHKmQ6CEMB+AaTLqaiImAzAfnWlzLq4mId5wH50pbq8yYmHecB+c6WqvbqKmHfAfnClyrvLmqpnDcB+bqXLrcuqqoYPwH5qpdy927q5phTAfmal3s\\/sm6q3wH5hZm10BqPcu6qowH5cYGhyBqPtq6qowH5VWF5sB6L+uqgcwMFQUFsWopq4heAAAAAAAAA=\r\n", 103 | "options": { 104 | "raw": { 105 | "language": "json" 106 | } 107 | } 108 | }, 109 | "url": { 110 | "raw": "{{base_url}}/iclock/cdata?SN=BOCK200961014&table=OPERLOG&Stamp=9999", 111 | "host": [ 112 | "{{base_url}}" 113 | ], 114 | "path": [ 115 | "iclock", 116 | "cdata" 117 | ], 118 | "query": [ 119 | { 120 | "key": "SN", 121 | "value": "BOCK200961014" 122 | }, 123 | { 124 | "key": "table", 125 | "value": "OPERLOG" 126 | }, 127 | { 128 | "key": "Stamp", 129 | "value": "9999" 130 | } 131 | ] 132 | } 133 | }, 134 | "response": [] 135 | } 136 | ] 137 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ADMS (Attendance Device Management System) 2 | 3 | ADMS is a comprehensive Attendance Device Management System designed to handle biometric and access control data from various devices. This system is built using Laravel, a PHP framework, provides functionalities to store, manage user and fingerprint data. 4 | 5 | ## Features 6 | 7 | - Fingerprint data storage 8 | - Device status monitoring 9 | 10 | ## Screenshots 11 | Device Connected 12 | ![App Screenshot](https://github.com/saifulcoder/adms-server-ZKTeco/blob/main/Screenshot_7.png) 13 | Attendance Recorded 14 | ![App Screenshot](https://github.com/saifulcoder/adms-server-ZKTeco/blob/main/Screenshot_8.png) 15 | Device Log 16 | ![App Screenshot](https://github.com/saifulcoder/adms-server-ZKTeco/blob/main/Screenshot_9.png) 17 | Attendence Log 18 | ![App Screenshot](https://github.com/saifulcoder/adms-server-ZKTeco/blob/main/Screenshot_10.png) 19 | 20 | ## Installation 21 | 22 | ### Prerequisites 23 | 24 | Before you begin, ensure you have the following installed on your system: 25 | 26 | - PHP >= 8.0 27 | - Composer 28 | - MySQL or any other supported database 29 | - Web server (Apache, Nginx, etc.) 30 | 31 | ### Steps 32 | 33 | 1. **Clone the repository** 34 | ```bash 35 | git clone https://github.com/saifulcoder/adms-server-ZKTeco.git adms-server 36 | cd adms-server 37 | ``` 38 | 39 | 2. **Install dependencies** 40 | ```bash 41 | composer install 42 | ``` 43 | 44 | 3. **Copy the `.env` file** 45 | ```bash 46 | cp .env.example .env 47 | ``` 48 | 49 | 4. **Generate application key** 50 | ```bash 51 | php artisan key:generate 52 | ``` 53 | 54 | 5. **Configure the `.env` file** 55 | Open the `.env` file and set your database credentials and other environment variables: 56 | ```env 57 | DB_CONNECTION=mysql 58 | DB_HOST=127.0.0.1 59 | DB_PORT=3306 60 | DB_DATABASE=adms 61 | DB_USERNAME=root 62 | DB_PASSWORD= 63 | ``` 64 | 65 | 6. **Run the migrations** 66 | ```bash 67 | php artisan migrate 68 | ``` 69 | 70 | 7. **Serve the application** 71 | ```bash 72 | php artisan serve 73 | ``` 74 | 75 | ### Monitoring Device Status 76 | 77 | You can monitor the status of devices by querying the `devices` table where the `online` field indicates the last time the device was online. 78 | 79 | ## Postman Collection 80 | 81 | For testing and interacting with the API endpoints, you can use the provided Postman collection: 82 | [Postman Collection](https://github.com/saifulcoder/adms-server-ZKTeco/blob/main/ADMS server ZKTeco.postman_collection.json) 83 | 84 | 85 | ## Authors 86 | 87 | - [@saifulcoder](https://github.com/saifulcoder) 88 | 89 | ## For Improvement and project 90 | 91 | contact us saiful.coder@gmail.com 92 | 93 | ## Contributing 94 | 95 | This project helps you and you want to help keep it going? Buy me a coffee: 96 |
Buy Me A Coffee
97 | or via
98 | https://saweria.co/saifulcoder 99 | 100 | ## License 101 | 102 | This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. -------------------------------------------------------------------------------- /Screenshot_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saifulcoder/adms-server-ZKTeco/38edd2897b8f1858a91a49e51774ddc46ddea73d/Screenshot_10.png -------------------------------------------------------------------------------- /Screenshot_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saifulcoder/adms-server-ZKTeco/38edd2897b8f1858a91a49e51774ddc46ddea73d/Screenshot_7.png -------------------------------------------------------------------------------- /Screenshot_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saifulcoder/adms-server-ZKTeco/38edd2897b8f1858a91a49e51774ddc46ddea73d/Screenshot_8.png -------------------------------------------------------------------------------- /Screenshot_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saifulcoder/adms-server-ZKTeco/38edd2897b8f1858a91a49e51774ddc46ddea73d/Screenshot_9.png -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 16 | } 17 | 18 | /** 19 | * Register the commands for the application. 20 | */ 21 | protected function commands(): void 22 | { 23 | $this->load(__DIR__.'/Commands'); 24 | 25 | require base_path('routes/console.php'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | protected $dontFlash = [ 18 | 'current_password', 19 | 'password', 20 | 'password_confirmation', 21 | ]; 22 | 23 | /** 24 | * Register the exception handling callbacks for the application. 25 | */ 26 | public function register(): void 27 | { 28 | $this->reportable(function (Throwable $e) { 29 | // 30 | }); 31 | 32 | $this->renderable(function (NotFoundHttpException $e, $request) { 33 | $requestData = $request->all(); 34 | 35 | // Remove sensitive information 36 | foreach ($this->dontFlash as $key) { 37 | unset($requestData[$key]); 38 | } 39 | 40 | Log::error('404 Not Found: ' . $request->url(), [ 41 | 'method' => $request->method(), 42 | 'ip' => $request->ip(), 43 | 'user_agent' => $request->userAgent(), 44 | 'request_data' => $requestData 45 | ]); 46 | }); 47 | } 48 | } -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | select('id','no_sn','online')->orderBy('online', 'DESC')->get(); 18 | return view('devices.index',$data); 19 | } 20 | 21 | public function DeviceLog(Request $request) 22 | { 23 | $data['lable'] = "Devices Log"; 24 | $data['log'] = DB::table('device_log')->select('id','data','url')->orderBy('id','DESC')->get(); 25 | 26 | return view('devices.log',$data); 27 | } 28 | 29 | public function FingerLog(Request $request) 30 | { 31 | $data['lable'] = "Finger Log"; 32 | $data['log'] = DB::table('finger_log')->select('id','data','url')->orderBy('id','DESC')->get(); 33 | return view('devices.log',$data); 34 | } 35 | public function Attendance() { 36 | //$attendances = Attendance::latest('timestamp')->orderBy('id','DESC')->paginate(15); 37 | $attendances = DB::table('attendances')->select('id','sn','table','stamp','employee_id','timestamp','status1','status2','status3','status4','status5')->orderBy('id','DESC')->paginate(15); 38 | 39 | return view('devices.attendance', compact('attendances')); 40 | 41 | } 42 | 43 | // // Menampilkan form tambah device 44 | // public function create() 45 | // { 46 | // return view('devices.create'); 47 | // } 48 | 49 | // // Menyimpan device baru ke database 50 | // public function store(Request $request) 51 | // { 52 | // $device = new Device(); 53 | // $device->nama = $request->input('nama'); 54 | // $device->no_sn = $request->input('no_sn'); 55 | // $device->lokasi = $request->input('lokasi'); 56 | // $device->save(); 57 | 58 | // return redirect()->route('devices.index')->with('success', 'Device berhasil ditambahkan!'); 59 | // } 60 | 61 | // // Menampilkan detail device 62 | // public function show($id) 63 | // { 64 | // $device = Device::find($id); 65 | // return view('devices.show', compact('device')); 66 | // } 67 | 68 | // // Menampilkan form edit device 69 | // public function edit($id) 70 | // { 71 | // $device = Device::find($id); 72 | // return view('devices.edit', compact('device')); 73 | // } 74 | 75 | // // Mengupdate device ke database 76 | // public function update(Request $request, $id) 77 | // { 78 | // $device = Device::find($id); 79 | // $device->nama = $request->input('nama'); 80 | // $device->no_sn = $request->input('no_sn'); 81 | // $device->lokasi = $request->input('lokasi'); 82 | // $device->save(); 83 | 84 | // return redirect()->route('devices.index')->with('success', 'Device berhasil diupdate!'); 85 | // } 86 | 87 | // // Menghapus device dari database 88 | // public function destroy($id) 89 | // { 90 | // $device = Device::find($id); 91 | // $device->delete(); 92 | 93 | // return redirect()->route('devices.index')->with('success', 'Device berhasil dihapus!'); 94 | // } 95 | } 96 | -------------------------------------------------------------------------------- /app/Http/Controllers/iclockController.php: -------------------------------------------------------------------------------- 1 | json_encode($request->all()), 23 | 'data' => $request->getContent(), 24 | 'sn' => $request->input('SN'), 25 | 'option' => $request->input('option'), 26 | ]; 27 | DB::table('device_log')->insert($data); 28 | 29 | // update status device 30 | DB::table('devices')->updateOrInsert( 31 | ['no_sn' => $request->input('SN')], 32 | ['online' => now()] 33 | ); 34 | 35 | $r = "GET OPTION FROM: {$request->input('SN')}\r\n" . 36 | "Stamp=9999\r\n" . 37 | "OpStamp=" . time() . "\r\n" . 38 | "ErrorDelay=60\r\n" . 39 | "Delay=30\r\n" . 40 | "ResLogDay=18250\r\n" . 41 | "ResLogDelCount=10000\r\n" . 42 | "ResLogCount=50000\r\n" . 43 | "TransTimes=00:00;14:05\r\n" . 44 | "TransInterval=1\r\n" . 45 | "TransFlag=1111000000\r\n" . 46 | // "TimeZone=7\r\n" . 47 | "Realtime=1\r\n" . 48 | "Encrypt=0"; 49 | 50 | return $r; 51 | } 52 | //$r = "GET OPTION FROM:%s{$request->SN}\nStamp=".strtotime('now')."\nOpStamp=1565089939\nErrorDelay=30\nDelay=10\nTransTimes=00:00;14:05\nTransInterval=1\nTransFlag=1111000000\nTimeZone=7\nRealtime=1\nEncrypt=0\n"; 53 | // implementasi https://docs.nufaza.com/docs/devices/zkteco_attendance/push_protocol/ 54 | // setting timezone 55 | // request absensi 56 | public function receiveRecords(Request $request) 57 | { 58 | 59 | //DB::connection()->enableQueryLog(); 60 | $content['url'] = json_encode($request->all()); 61 | $content['data'] = $request->getContent();; 62 | DB::table('finger_log')->insert($content); 63 | try { 64 | // $post_content = $request->getContent(); 65 | //$arr = explode("\n", $post_content); 66 | $arr = preg_split('/\\r\\n|\\r|,|\\n/', $request->getContent()); 67 | //$tot = count($arr); 68 | $tot = 0; 69 | //operation log 70 | if($request->input('table') == "OPERLOG"){ 71 | // $tot = count($arr) - 1; 72 | foreach ($arr as $rey) { 73 | if(isset($rey)){ 74 | $tot++; 75 | } 76 | } 77 | return "OK: ".$tot; 78 | } 79 | //attendance 80 | foreach ($arr as $rey) { 81 | // $data = preg_split('/\s+/', trim($rey)); 82 | if(empty($rey)){ 83 | continue; 84 | } 85 | // $data = preg_split('/\s+/', trim($rey)); 86 | $data = explode("\t",$rey); 87 | //dd($data); 88 | $q['sn'] = $request->input('SN'); 89 | $q['table'] = $request->input('table'); 90 | $q['stamp'] = $request->input('Stamp'); 91 | $q['employee_id'] = $data[0]; 92 | $q['timestamp'] = $data[1]; 93 | $q['status1'] = $this->validateAndFormatInteger($data[2] ?? null); 94 | $q['status2'] = $this->validateAndFormatInteger($data[3] ?? null); 95 | $q['status3'] = $this->validateAndFormatInteger($data[4] ?? null); 96 | $q['status4'] = $this->validateAndFormatInteger($data[5] ?? null); 97 | $q['status5'] = $this->validateAndFormatInteger($data[6] ?? null); 98 | $q['created_at'] = now(); 99 | $q['updated_at'] = now(); 100 | //dd($q); 101 | DB::table('attendances')->insert($q); 102 | $tot++; 103 | // dd(DB::getQueryLog()); 104 | } 105 | return "OK: ".$tot; 106 | } catch (Throwable $e) { 107 | $data['error'] = $e; 108 | DB::table('error_log')->insert($data); 109 | report($e); 110 | return "ERROR: ".$tot."\n"; 111 | } 112 | } 113 | public function test(Request $request) 114 | { 115 | $log['data'] = $request->getContent(); 116 | DB::table('finger_log')->insert($log); 117 | } 118 | public function getrequest(Request $request) 119 | { 120 | // $r = "GET OPTION FROM: ".$request->SN."\nStamp=".strtotime('now')."\nOpStamp=".strtotime('now')."\nErrorDelay=60\nDelay=30\nResLogDay=18250\nResLogDelCount=10000\nResLogCount=50000\nTransTimes=00:00;14:05\nTransInterval=1\nTransFlag=1111000000\nRealtime=1\nEncrypt=0"; 121 | 122 | return "OK"; 123 | } 124 | private function validateAndFormatInteger($value) 125 | { 126 | return isset($value) && $value !== '' ? (int)$value : null; 127 | // return is_numeric($value) ? (int) $value : null; 128 | } 129 | 130 | } 131 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | protected $middleware = [ 17 | // \App\Http\Middleware\TrustHosts::class, 18 | \App\Http\Middleware\TrustProxies::class, 19 | \Illuminate\Http\Middleware\HandleCors::class, 20 | \App\Http\Middleware\PreventRequestsDuringMaintenance::class, 21 | \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, 22 | \App\Http\Middleware\TrimStrings::class, 23 | \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, 24 | ]; 25 | 26 | /** 27 | * The application's route middleware groups. 28 | * 29 | * @var array> 30 | */ 31 | protected $middlewareGroups = [ 32 | 'web' => [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 37 | \App\Http\Middleware\VerifyCsrfToken::class, 38 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 39 | ], 40 | 41 | 'api' => [ 42 | // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, 43 | \Illuminate\Routing\Middleware\ThrottleRequests::class.':api', 44 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 45 | ], 46 | ]; 47 | 48 | /** 49 | * The application's middleware aliases. 50 | * 51 | * Aliases may be used instead of class names to conveniently assign middleware to routes and groups. 52 | * 53 | * @var array 54 | */ 55 | protected $middlewareAliases = [ 56 | 'auth' => \App\Http\Middleware\Authenticate::class, 57 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 58 | 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, 59 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 60 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 61 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 62 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 63 | 'precognitive' => \Illuminate\Foundation\Http\Middleware\HandlePrecognitiveRequests::class, 64 | 'signed' => \App\Http\Middleware\ValidateSignature::class, 65 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 66 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 67 | ]; 68 | } 69 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson() ? null : route('login'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 24 | return redirect(RouteServiceProvider::HOME); 25 | } 26 | } 27 | 28 | return $next($request); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts(): array 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | |string|null 14 | */ 15 | protected $proxies; 16 | 17 | /** 18 | * The headers that should be used to detect proxies. 19 | * 20 | * @var int 21 | */ 22 | protected $headers = 23 | Request::HEADER_X_FORWARDED_FOR | 24 | Request::HEADER_X_FORWARDED_HOST | 25 | Request::HEADER_X_FORWARDED_PORT | 26 | Request::HEADER_X_FORWARDED_PROTO | 27 | Request::HEADER_X_FORWARDED_AWS_ELB; 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Middleware/ValidateSignature.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 'fbclid', 16 | // 'utm_campaign', 17 | // 'utm_content', 18 | // 'utm_medium', 19 | // 'utm_source', 20 | // 'utm_term', 21 | ]; 22 | } 23 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | 'iclock/cdata', 17 | 'iclock/getrequest' 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /app/Models/AbsensiSholat.php: -------------------------------------------------------------------------------- 1 | 'datetime', 24 | 'status1' => 'boolean', 25 | 'status2' => 'boolean', 26 | 'status3' => 'boolean', 27 | 'status4' => 'boolean', 28 | 'status5' => 'boolean', 29 | ]; 30 | } -------------------------------------------------------------------------------- /app/Models/Device.php: -------------------------------------------------------------------------------- 1 | 19 | */ 20 | protected $fillable = [ 21 | 'name', 22 | 'email', 23 | 'password', 24 | ]; 25 | 26 | /** 27 | * The attributes that should be hidden for serialization. 28 | * 29 | * @var array 30 | */ 31 | protected $hidden = [ 32 | 'password', 33 | 'remember_token', 34 | ]; 35 | 36 | /** 37 | * The attributes that should be cast. 38 | * 39 | * @var array 40 | */ 41 | protected $casts = [ 42 | 'email_verified_at' => 'datetime', 43 | 'password' => 'hashed', 44 | ]; 45 | } 46 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | protected $policies = [ 16 | // 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | */ 22 | public function boot(): void 23 | { 24 | // 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | */ 26 | public function boot(): void 27 | { 28 | // 29 | } 30 | 31 | /** 32 | * Determine if events and listeners should be automatically discovered. 33 | */ 34 | public function shouldDiscoverEvents(): bool 35 | { 36 | return false; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | by($request->user()?->id ?: $request->ip()); 29 | }); 30 | 31 | $this->routes(function () { 32 | Route::middleware('api') 33 | ->prefix('api') 34 | ->group(base_path('routes/api.php')); 35 | 36 | Route::middleware('web') 37 | ->group(base_path('routes/web.php')); 38 | }); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The skeleton application for the Laravel framework.", 5 | "keywords": ["laravel", "framework"], 6 | "license": "MIT", 7 | "require": { 8 | "php": "^8.1", 9 | "guzzlehttp/guzzle": "^7.2", 10 | "laravel/framework": "^10.10", 11 | "laravel/sanctum": "^3.2", 12 | "laravel/tinker": "^2.8", 13 | "laravel/ui": "^4.2", 14 | "yajra/laravel-datatables-oracle": "*" 15 | }, 16 | "require-dev": { 17 | "fakerphp/faker": "^1.9.1", 18 | "laravel/pint": "^1.0", 19 | "laravel/sail": "^1.18", 20 | "mockery/mockery": "^1.4.4", 21 | "nunomaduro/collision": "^7.0", 22 | "phpunit/phpunit": "^10.1", 23 | "spatie/laravel-ignition": "^2.0" 24 | }, 25 | "autoload": { 26 | "psr-4": { 27 | "App\\": "app/", 28 | "Database\\Factories\\": "database/factories/", 29 | "Database\\Seeders\\": "database/seeders/" 30 | } 31 | }, 32 | "autoload-dev": { 33 | "psr-4": { 34 | "Tests\\": "tests/" 35 | } 36 | }, 37 | "scripts": { 38 | "post-autoload-dump": [ 39 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 40 | "@php artisan package:discover --ansi" 41 | ], 42 | "post-update-cmd": [ 43 | "@php artisan vendor:publish --tag=laravel-assets --ansi --force" 44 | ], 45 | "post-root-package-install": [ 46 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 47 | ], 48 | "post-create-project-cmd": [ 49 | "@php artisan key:generate --ansi" 50 | ] 51 | }, 52 | "extra": { 53 | "laravel": { 54 | "dont-discover": [] 55 | } 56 | }, 57 | "config": { 58 | "optimize-autoloader": true, 59 | "preferred-install": "dist", 60 | "sort-packages": true, 61 | "allow-plugins": { 62 | "pestphp/pest-plugin": true, 63 | "php-http/discovery": true 64 | } 65 | }, 66 | "minimum-stability": "stable", 67 | "prefer-stable": true 68 | } 69 | -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- 1 | env('APP_NAME', 'Laravel'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Application Environment 24 | |-------------------------------------------------------------------------- 25 | | 26 | | This value determines the "environment" your application is currently 27 | | running in. This may determine how you prefer to configure various 28 | | services the application utilizes. Set this in your ".env" file. 29 | | 30 | */ 31 | 32 | 'env' => env('APP_ENV', 'production'), 33 | 34 | /* 35 | |-------------------------------------------------------------------------- 36 | | Application Debug Mode 37 | |-------------------------------------------------------------------------- 38 | | 39 | | When your application is in debug mode, detailed error messages with 40 | | stack traces will be shown on every error that occurs within your 41 | | application. If disabled, a simple generic error page is shown. 42 | | 43 | */ 44 | 45 | 'debug' => (bool) env('APP_DEBUG', false), 46 | 47 | /* 48 | |-------------------------------------------------------------------------- 49 | | Application URL 50 | |-------------------------------------------------------------------------- 51 | | 52 | | This URL is used by the console to properly generate URLs when using 53 | | the Artisan command line tool. You should set this to the root of 54 | | your application so that it is used when running Artisan tasks. 55 | | 56 | */ 57 | 58 | 'url' => env('APP_URL', 'http://localhost'), 59 | 60 | 'asset_url' => env('ASSET_URL'), 61 | 62 | /* 63 | |-------------------------------------------------------------------------- 64 | | Application Timezone 65 | |-------------------------------------------------------------------------- 66 | | 67 | | Here you may specify the default timezone for your application, which 68 | | will be used by the PHP date and date-time functions. We have gone 69 | | ahead and set this to a sensible default for you out of the box. 70 | | 71 | */ 72 | 73 | 'timezone' => 'UTC', 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Application Locale Configuration 78 | |-------------------------------------------------------------------------- 79 | | 80 | | The application locale determines the default locale that will be used 81 | | by the translation service provider. You are free to set this value 82 | | to any of the locales which will be supported by the application. 83 | | 84 | */ 85 | 86 | 'locale' => 'en', 87 | 88 | /* 89 | |-------------------------------------------------------------------------- 90 | | Application Fallback Locale 91 | |-------------------------------------------------------------------------- 92 | | 93 | | The fallback locale determines the locale to use when the current one 94 | | is not available. You may change the value to correspond to any of 95 | | the language folders that are provided through your application. 96 | | 97 | */ 98 | 99 | 'fallback_locale' => 'en', 100 | 101 | /* 102 | |-------------------------------------------------------------------------- 103 | | Faker Locale 104 | |-------------------------------------------------------------------------- 105 | | 106 | | This locale will be used by the Faker PHP library when generating fake 107 | | data for your database seeds. For example, this will be used to get 108 | | localized telephone numbers, street address information and more. 109 | | 110 | */ 111 | 112 | 'faker_locale' => 'en_US', 113 | 114 | /* 115 | |-------------------------------------------------------------------------- 116 | | Encryption Key 117 | |-------------------------------------------------------------------------- 118 | | 119 | | This key is used by the Illuminate encrypter service and should be set 120 | | to a random, 32 character string, otherwise these encrypted strings 121 | | will not be safe. Please do this before deploying an application! 122 | | 123 | */ 124 | 125 | 'key' => env('APP_KEY'), 126 | 127 | 'cipher' => 'AES-256-CBC', 128 | 129 | /* 130 | |-------------------------------------------------------------------------- 131 | | Maintenance Mode Driver 132 | |-------------------------------------------------------------------------- 133 | | 134 | | These configuration options determine the driver used to determine and 135 | | manage Laravel's "maintenance mode" status. The "cache" driver will 136 | | allow maintenance mode to be controlled across multiple machines. 137 | | 138 | | Supported drivers: "file", "cache" 139 | | 140 | */ 141 | 142 | 'maintenance' => [ 143 | 'driver' => 'file', 144 | // 'store' => 'redis', 145 | ], 146 | 147 | /* 148 | |-------------------------------------------------------------------------- 149 | | Autoloaded Service Providers 150 | |-------------------------------------------------------------------------- 151 | | 152 | | The service providers listed here will be automatically loaded on the 153 | | request to your application. Feel free to add your own services to 154 | | this array to grant expanded functionality to your applications. 155 | | 156 | */ 157 | 158 | 'providers' => ServiceProvider::defaultProviders()->merge([ 159 | /* 160 | * Package Service Providers... 161 | */ 162 | 163 | /* 164 | * Application Service Providers... 165 | */ 166 | App\Providers\AppServiceProvider::class, 167 | App\Providers\AuthServiceProvider::class, 168 | // App\Providers\BroadcastServiceProvider::class, 169 | App\Providers\EventServiceProvider::class, 170 | App\Providers\RouteServiceProvider::class, 171 | Yajra\DataTables\DataTablesServiceProvider::class, 172 | ])->toArray(), 173 | 174 | /* 175 | |-------------------------------------------------------------------------- 176 | | Class Aliases 177 | |-------------------------------------------------------------------------- 178 | | 179 | | This array of class aliases will be registered when this application 180 | | is started. However, feel free to register as many as you wish as 181 | | the aliases are "lazy" loaded so they don't hinder performance. 182 | | 183 | */ 184 | 185 | 'aliases' => Facade::defaultAliases()->merge([ 186 | // 'Example' => App\Facades\Example::class, 187 | 'DataTables' => Yajra\DataTables\Facades\DataTables::class, 188 | ])->toArray(), 189 | 190 | ]; 191 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | ], 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | User Providers 48 | |-------------------------------------------------------------------------- 49 | | 50 | | All authentication drivers have a user provider. This defines how the 51 | | users are actually retrieved out of your database or other storage 52 | | mechanisms used by this application to persist your user's data. 53 | | 54 | | If you have multiple user tables or models you may configure multiple 55 | | sources which represent each model / table. These sources may then 56 | | be assigned to any extra authentication guards you have defined. 57 | | 58 | | Supported: "database", "eloquent" 59 | | 60 | */ 61 | 62 | 'providers' => [ 63 | 'users' => [ 64 | 'driver' => 'eloquent', 65 | 'model' => App\Models\User::class, 66 | ], 67 | 68 | // 'users' => [ 69 | // 'driver' => 'database', 70 | // 'table' => 'users', 71 | // ], 72 | ], 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Resetting Passwords 77 | |-------------------------------------------------------------------------- 78 | | 79 | | You may specify multiple password reset configurations if you have more 80 | | than one user table or model in the application and you want to have 81 | | separate password reset settings based on the specific user types. 82 | | 83 | | The expiry time is the number of minutes that each reset token will be 84 | | considered valid. This security feature keeps tokens short-lived so 85 | | they have less time to be guessed. You may change this as needed. 86 | | 87 | | The throttle setting is the number of seconds a user must wait before 88 | | generating more password reset tokens. This prevents the user from 89 | | quickly generating a very large amount of password reset tokens. 90 | | 91 | */ 92 | 93 | 'passwords' => [ 94 | 'users' => [ 95 | 'provider' => 'users', 96 | 'table' => 'password_reset_tokens', 97 | 'expire' => 60, 98 | 'throttle' => 60, 99 | ], 100 | ], 101 | 102 | /* 103 | |-------------------------------------------------------------------------- 104 | | Password Confirmation Timeout 105 | |-------------------------------------------------------------------------- 106 | | 107 | | Here you may define the amount of seconds before a password confirmation 108 | | times out and the user is prompted to re-enter their password via the 109 | | confirmation screen. By default, the timeout lasts for three hours. 110 | | 111 | */ 112 | 113 | 'password_timeout' => 10800, 114 | 115 | ]; 116 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', 41 | 'port' => env('PUSHER_PORT', 443), 42 | 'scheme' => env('PUSHER_SCHEME', 'https'), 43 | 'encrypted' => true, 44 | 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', 45 | ], 46 | 'client_options' => [ 47 | // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html 48 | ], 49 | ], 50 | 51 | 'ably' => [ 52 | 'driver' => 'ably', 53 | 'key' => env('ABLY_KEY'), 54 | ], 55 | 56 | 'redis' => [ 57 | 'driver' => 'redis', 58 | 'connection' => 'default', 59 | ], 60 | 61 | 'log' => [ 62 | 'driver' => 'log', 63 | ], 64 | 65 | 'null' => [ 66 | 'driver' => 'null', 67 | ], 68 | 69 | ], 70 | 71 | ]; 72 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | | Supported drivers: "apc", "array", "database", "file", 30 | | "memcached", "redis", "dynamodb", "octane", "null" 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | 'serialize' => false, 43 | ], 44 | 45 | 'database' => [ 46 | 'driver' => 'database', 47 | 'table' => 'cache', 48 | 'connection' => null, 49 | 'lock_connection' => null, 50 | ], 51 | 52 | 'file' => [ 53 | 'driver' => 'file', 54 | 'path' => storage_path('framework/cache/data'), 55 | 'lock_path' => storage_path('framework/cache/data'), 56 | ], 57 | 58 | 'memcached' => [ 59 | 'driver' => 'memcached', 60 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 61 | 'sasl' => [ 62 | env('MEMCACHED_USERNAME'), 63 | env('MEMCACHED_PASSWORD'), 64 | ], 65 | 'options' => [ 66 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 67 | ], 68 | 'servers' => [ 69 | [ 70 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 71 | 'port' => env('MEMCACHED_PORT', 11211), 72 | 'weight' => 100, 73 | ], 74 | ], 75 | ], 76 | 77 | 'redis' => [ 78 | 'driver' => 'redis', 79 | 'connection' => 'cache', 80 | 'lock_connection' => 'default', 81 | ], 82 | 83 | 'dynamodb' => [ 84 | 'driver' => 'dynamodb', 85 | 'key' => env('AWS_ACCESS_KEY_ID'), 86 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 87 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 88 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 89 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 90 | ], 91 | 92 | 'octane' => [ 93 | 'driver' => 'octane', 94 | ], 95 | 96 | ], 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Cache Key Prefix 101 | |-------------------------------------------------------------------------- 102 | | 103 | | When utilizing the APC, database, memcached, Redis, or DynamoDB cache 104 | | stores there might be other applications using the same cache. For 105 | | that reason, you may prefix every cache key to avoid collisions. 106 | | 107 | */ 108 | 109 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), 110 | 111 | ]; 112 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Database Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here are each of the database connections setup for your application. 26 | | Of course, examples of configuring each database platform that is 27 | | supported by Laravel is shown below to make development simple. 28 | | 29 | | 30 | | All database work in Laravel is done through the PHP PDO facilities 31 | | so make sure you have the driver for your particular database of 32 | | choice installed on your machine before you begin development. 33 | | 34 | */ 35 | 36 | 'connections' => [ 37 | 38 | 'sqlite' => [ 39 | 'driver' => 'sqlite', 40 | 'url' => env('DATABASE_URL'), 41 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 42 | 'prefix' => '', 43 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 44 | ], 45 | 46 | 'mysql' => [ 47 | 'driver' => 'mysql', 48 | 'url' => env('DATABASE_URL'), 49 | 'host' => env('DB_HOST', '127.0.0.1'), 50 | 'port' => env('DB_PORT', '3306'), 51 | 'database' => env('DB_DATABASE', 'forge'), 52 | 'username' => env('DB_USERNAME', 'forge'), 53 | 'password' => env('DB_PASSWORD', ''), 54 | 'unix_socket' => env('DB_SOCKET', ''), 55 | 'charset' => 'utf8mb4', 56 | 'collation' => 'utf8mb4_unicode_ci', 57 | 'prefix' => '', 58 | 'prefix_indexes' => true, 59 | 'strict' => true, 60 | 'engine' => null, 61 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 62 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 63 | ]) : [], 64 | ], 65 | 66 | 'pgsql' => [ 67 | 'driver' => 'pgsql', 68 | 'url' => env('DATABASE_URL'), 69 | 'host' => env('DB_HOST', '127.0.0.1'), 70 | 'port' => env('DB_PORT', '5432'), 71 | 'database' => env('DB_DATABASE', 'forge'), 72 | 'username' => env('DB_USERNAME', 'forge'), 73 | 'password' => env('DB_PASSWORD', ''), 74 | 'charset' => 'utf8', 75 | 'prefix' => '', 76 | 'prefix_indexes' => true, 77 | 'search_path' => 'public', 78 | 'sslmode' => 'prefer', 79 | ], 80 | 81 | 'sqlsrv' => [ 82 | 'driver' => 'sqlsrv', 83 | 'url' => env('DATABASE_URL'), 84 | 'host' => env('DB_HOST', 'localhost'), 85 | 'port' => env('DB_PORT', '1433'), 86 | 'database' => env('DB_DATABASE', 'forge'), 87 | 'username' => env('DB_USERNAME', 'forge'), 88 | 'password' => env('DB_PASSWORD', ''), 89 | 'charset' => 'utf8', 90 | 'prefix' => '', 91 | 'prefix_indexes' => true, 92 | // 'encrypt' => env('DB_ENCRYPT', 'yes'), 93 | // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), 94 | ], 95 | 96 | ], 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Migration Repository Table 101 | |-------------------------------------------------------------------------- 102 | | 103 | | This table keeps track of all the migrations that have already run for 104 | | your application. Using this information, we can determine which of 105 | | the migrations on disk haven't actually been run in the database. 106 | | 107 | */ 108 | 109 | 'migrations' => 'migrations', 110 | 111 | /* 112 | |-------------------------------------------------------------------------- 113 | | Redis Databases 114 | |-------------------------------------------------------------------------- 115 | | 116 | | Redis is an open source, fast, and advanced key-value store that also 117 | | provides a richer body of commands than a typical key-value system 118 | | such as APC or Memcached. Laravel makes it easy to dig right in. 119 | | 120 | */ 121 | 122 | 'redis' => [ 123 | 124 | 'client' => env('REDIS_CLIENT', 'phpredis'), 125 | 126 | 'options' => [ 127 | 'cluster' => env('REDIS_CLUSTER', 'redis'), 128 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 129 | ], 130 | 131 | 'default' => [ 132 | 'url' => env('REDIS_URL'), 133 | 'host' => env('REDIS_HOST', '127.0.0.1'), 134 | 'username' => env('REDIS_USERNAME'), 135 | 'password' => env('REDIS_PASSWORD'), 136 | 'port' => env('REDIS_PORT', '6379'), 137 | 'database' => env('REDIS_DB', '0'), 138 | ], 139 | 140 | 'cache' => [ 141 | 'url' => env('REDIS_URL'), 142 | 'host' => env('REDIS_HOST', '127.0.0.1'), 143 | 'username' => env('REDIS_USERNAME'), 144 | 'password' => env('REDIS_PASSWORD'), 145 | 'port' => env('REDIS_PORT', '6379'), 146 | 'database' => env('REDIS_CACHE_DB', '1'), 147 | ], 148 | 149 | ], 150 | 151 | ]; 152 | -------------------------------------------------------------------------------- /config/datatables.php: -------------------------------------------------------------------------------- 1 | [ 8 | /* 9 | * Smart search will enclose search keyword with wildcard string "%keyword%". 10 | * SQL: column LIKE "%keyword%" 11 | */ 12 | 'smart' => true, 13 | 14 | /* 15 | * Multi-term search will explode search keyword using spaces resulting into multiple term search. 16 | */ 17 | 'multi_term' => true, 18 | 19 | /* 20 | * Case insensitive will search the keyword in lower case format. 21 | * SQL: LOWER(column) LIKE LOWER(keyword) 22 | */ 23 | 'case_insensitive' => true, 24 | 25 | /* 26 | * Wild card will add "%" in between every characters of the keyword. 27 | * SQL: column LIKE "%k%e%y%w%o%r%d%" 28 | */ 29 | 'use_wildcards' => false, 30 | 31 | /* 32 | * Perform a search which starts with the given keyword. 33 | * SQL: column LIKE "keyword%" 34 | */ 35 | 'starts_with' => false, 36 | ], 37 | 38 | /* 39 | * DataTables internal index id response column name. 40 | */ 41 | 'index_column' => 'DT_RowIndex', 42 | 43 | /* 44 | * List of available builders for DataTables. 45 | * This is where you can register your custom dataTables builder. 46 | */ 47 | 'engines' => [ 48 | 'eloquent' => Yajra\DataTables\EloquentDataTable::class, 49 | 'query' => Yajra\DataTables\QueryDataTable::class, 50 | 'collection' => Yajra\DataTables\CollectionDataTable::class, 51 | 'resource' => Yajra\DataTables\ApiResourceDataTable::class, 52 | ], 53 | 54 | /* 55 | * DataTables accepted builder to engine mapping. 56 | * This is where you can override which engine a builder should use 57 | * Note, only change this if you know what you are doing! 58 | */ 59 | 'builders' => [ 60 | //Illuminate\Database\Eloquent\Relations\Relation::class => 'eloquent', 61 | //Illuminate\Database\Eloquent\Builder::class => 'eloquent', 62 | //Illuminate\Database\Query\Builder::class => 'query', 63 | //Illuminate\Support\Collection::class => 'collection', 64 | ], 65 | 66 | /* 67 | * Nulls last sql pattern for PostgreSQL & Oracle. 68 | * For MySQL, use 'CASE WHEN :column IS NULL THEN 1 ELSE 0 END, :column :direction' 69 | */ 70 | 'nulls_last_sql' => ':column :direction NULLS LAST', 71 | 72 | /* 73 | * User friendly message to be displayed on user if error occurs. 74 | * Possible values: 75 | * null - The exception message will be used on error response. 76 | * 'throw' - Throws a \Yajra\DataTables\Exceptions\Exception. Use your custom error handler if needed. 77 | * 'custom message' - Any friendly message to be displayed to the user. You can also use translation key. 78 | */ 79 | 'error' => env('DATATABLES_ERROR', null), 80 | 81 | /* 82 | * Default columns definition of dataTable utility functions. 83 | */ 84 | 'columns' => [ 85 | /* 86 | * List of columns hidden/removed on json response. 87 | */ 88 | 'excess' => ['rn', 'row_num'], 89 | 90 | /* 91 | * List of columns to be escaped. If set to *, all columns are escape. 92 | * Note: You can set the value to empty array to disable XSS protection. 93 | */ 94 | 'escape' => '*', 95 | 96 | /* 97 | * List of columns that are allowed to display html content. 98 | * Note: Adding columns to list will make us available to XSS attacks. 99 | */ 100 | 'raw' => ['action'], 101 | 102 | /* 103 | * List of columns are forbidden from being searched/sorted. 104 | */ 105 | 'blacklist' => ['password', 'remember_token'], 106 | 107 | /* 108 | * List of columns that are only allowed fo search/sort. 109 | * If set to *, all columns are allowed. 110 | */ 111 | 'whitelist' => '*', 112 | ], 113 | 114 | /* 115 | * JsonResponse header and options config. 116 | */ 117 | 'json' => [ 118 | 'header' => [], 119 | 'options' => 0, 120 | ], 121 | 122 | /* 123 | * Default condition to determine if a parameter is a callback or not. 124 | * Callbacks needs to start by those terms, or they will be cast to string. 125 | */ 126 | 'callback' => ['$', '$.', 'function'], 127 | ]; 128 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DISK', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure as many filesystem "disks" as you wish, and you 24 | | may even configure multiple disks of the same driver. Defaults have 25 | | been set up for each driver as an example of the required values. 26 | | 27 | | Supported Drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app'), 36 | 'throw' => false, 37 | ], 38 | 39 | 'public' => [ 40 | 'driver' => 'local', 41 | 'root' => storage_path('app/public'), 42 | 'url' => env('APP_URL').'/storage', 43 | 'visibility' => 'public', 44 | 'throw' => false, 45 | ], 46 | 47 | 's3' => [ 48 | 'driver' => 's3', 49 | 'key' => env('AWS_ACCESS_KEY_ID'), 50 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 51 | 'region' => env('AWS_DEFAULT_REGION'), 52 | 'bucket' => env('AWS_BUCKET'), 53 | 'url' => env('AWS_URL'), 54 | 'endpoint' => env('AWS_ENDPOINT'), 55 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 56 | 'throw' => false, 57 | ], 58 | 59 | ], 60 | 61 | /* 62 | |-------------------------------------------------------------------------- 63 | | Symbolic Links 64 | |-------------------------------------------------------------------------- 65 | | 66 | | Here you may configure the symbolic links that will be created when the 67 | | `storage:link` Artisan command is executed. The array keys should be 68 | | the locations of the links and the values should be their targets. 69 | | 70 | */ 71 | 72 | 'links' => [ 73 | public_path('storage') => storage_path('app/public'), 74 | ], 75 | 76 | ]; 77 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 65536, 48 | 'threads' => 1, 49 | 'time' => 4, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Deprecations Log Channel 26 | |-------------------------------------------------------------------------- 27 | | 28 | | This option controls the log channel that should be used to log warnings 29 | | regarding deprecated PHP and library features. This allows you to get 30 | | your application ready for upcoming major versions of dependencies. 31 | | 32 | */ 33 | 34 | 'deprecations' => [ 35 | 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), 36 | 'trace' => false, 37 | ], 38 | 39 | /* 40 | |-------------------------------------------------------------------------- 41 | | Log Channels 42 | |-------------------------------------------------------------------------- 43 | | 44 | | Here you may configure the log channels for your application. Out of 45 | | the box, Laravel uses the Monolog PHP logging library. This gives 46 | | you a variety of powerful log handlers / formatters to utilize. 47 | | 48 | | Available Drivers: "single", "daily", "slack", "syslog", 49 | | "errorlog", "monolog", 50 | | "custom", "stack" 51 | | 52 | */ 53 | 54 | 'channels' => [ 55 | 'stack' => [ 56 | 'driver' => 'stack', 57 | 'channels' => ['single'], 58 | 'ignore_exceptions' => false, 59 | ], 60 | 61 | 'single' => [ 62 | 'driver' => 'single', 63 | 'path' => storage_path('logs/laravel.log'), 64 | 'level' => env('LOG_LEVEL', 'debug'), 65 | 'replace_placeholders' => true, 66 | ], 67 | 68 | 'daily' => [ 69 | 'driver' => 'daily', 70 | 'path' => storage_path('logs/laravel.log'), 71 | 'level' => env('LOG_LEVEL', 'debug'), 72 | 'days' => 14, 73 | 'replace_placeholders' => true, 74 | ], 75 | 76 | 'slack' => [ 77 | 'driver' => 'slack', 78 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 79 | 'username' => 'Laravel Log', 80 | 'emoji' => ':boom:', 81 | 'level' => env('LOG_LEVEL', 'critical'), 82 | 'replace_placeholders' => true, 83 | ], 84 | 85 | 'papertrail' => [ 86 | 'driver' => 'monolog', 87 | 'level' => env('LOG_LEVEL', 'debug'), 88 | 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 89 | 'handler_with' => [ 90 | 'host' => env('PAPERTRAIL_URL'), 91 | 'port' => env('PAPERTRAIL_PORT'), 92 | 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), 93 | ], 94 | 'processors' => [PsrLogMessageProcessor::class], 95 | ], 96 | 97 | 'stderr' => [ 98 | 'driver' => 'monolog', 99 | 'level' => env('LOG_LEVEL', 'debug'), 100 | 'handler' => StreamHandler::class, 101 | 'formatter' => env('LOG_STDERR_FORMATTER'), 102 | 'with' => [ 103 | 'stream' => 'php://stderr', 104 | ], 105 | 'processors' => [PsrLogMessageProcessor::class], 106 | ], 107 | 108 | 'syslog' => [ 109 | 'driver' => 'syslog', 110 | 'level' => env('LOG_LEVEL', 'debug'), 111 | 'facility' => LOG_USER, 112 | 'replace_placeholders' => true, 113 | ], 114 | 115 | 'errorlog' => [ 116 | 'driver' => 'errorlog', 117 | 'level' => env('LOG_LEVEL', 'debug'), 118 | 'replace_placeholders' => true, 119 | ], 120 | 121 | 'null' => [ 122 | 'driver' => 'monolog', 123 | 'handler' => NullHandler::class, 124 | ], 125 | 126 | 'emergency' => [ 127 | 'path' => storage_path('logs/laravel.log'), 128 | ], 129 | ], 130 | 131 | ]; 132 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'smtp'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Mailer Configurations 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure all of the mailers used by your application plus 24 | | their respective settings. Several examples have been configured for 25 | | you and you are free to add your own as your application requires. 26 | | 27 | | Laravel supports a variety of mail "transport" drivers to be used while 28 | | sending an e-mail. You will specify which one you are using for your 29 | | mailers below. You are free to add additional mailers as required. 30 | | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", 32 | | "postmark", "log", "array", "failover" 33 | | 34 | */ 35 | 36 | 'mailers' => [ 37 | 'smtp' => [ 38 | 'transport' => 'smtp', 39 | 'url' => env('MAIL_URL'), 40 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 41 | 'port' => env('MAIL_PORT', 587), 42 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 43 | 'username' => env('MAIL_USERNAME'), 44 | 'password' => env('MAIL_PASSWORD'), 45 | 'timeout' => null, 46 | 'local_domain' => env('MAIL_EHLO_DOMAIN'), 47 | ], 48 | 49 | 'ses' => [ 50 | 'transport' => 'ses', 51 | ], 52 | 53 | 'mailgun' => [ 54 | 'transport' => 'mailgun', 55 | // 'client' => [ 56 | // 'timeout' => 5, 57 | // ], 58 | ], 59 | 60 | 'postmark' => [ 61 | 'transport' => 'postmark', 62 | // 'client' => [ 63 | // 'timeout' => 5, 64 | // ], 65 | ], 66 | 67 | 'sendmail' => [ 68 | 'transport' => 'sendmail', 69 | 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), 70 | ], 71 | 72 | 'log' => [ 73 | 'transport' => 'log', 74 | 'channel' => env('MAIL_LOG_CHANNEL'), 75 | ], 76 | 77 | 'array' => [ 78 | 'transport' => 'array', 79 | ], 80 | 81 | 'failover' => [ 82 | 'transport' => 'failover', 83 | 'mailers' => [ 84 | 'smtp', 85 | 'log', 86 | ], 87 | ], 88 | ], 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Global "From" Address 93 | |-------------------------------------------------------------------------- 94 | | 95 | | You may wish for all e-mails sent by your application to be sent from 96 | | the same address. Here, you may specify a name and address that is 97 | | used globally for all e-mails that are sent by your application. 98 | | 99 | */ 100 | 101 | 'from' => [ 102 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 103 | 'name' => env('MAIL_FROM_NAME', 'Example'), 104 | ], 105 | 106 | /* 107 | |-------------------------------------------------------------------------- 108 | | Markdown Mail Settings 109 | |-------------------------------------------------------------------------- 110 | | 111 | | If you are using Markdown based email rendering, you may configure your 112 | | theme and component paths here, allowing you to customize the design 113 | | of the emails. Or, you may simply stick with the Laravel defaults! 114 | | 115 | */ 116 | 117 | 'markdown' => [ 118 | 'theme' => 'default', 119 | 120 | 'paths' => [ 121 | resource_path('views/vendor/mail'), 122 | ], 123 | ], 124 | 125 | ]; 126 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | 'after_commit' => false, 43 | ], 44 | 45 | 'beanstalkd' => [ 46 | 'driver' => 'beanstalkd', 47 | 'host' => 'localhost', 48 | 'queue' => 'default', 49 | 'retry_after' => 90, 50 | 'block_for' => 0, 51 | 'after_commit' => false, 52 | ], 53 | 54 | 'sqs' => [ 55 | 'driver' => 'sqs', 56 | 'key' => env('AWS_ACCESS_KEY_ID'), 57 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 58 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 59 | 'queue' => env('SQS_QUEUE', 'default'), 60 | 'suffix' => env('SQS_SUFFIX'), 61 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 62 | 'after_commit' => false, 63 | ], 64 | 65 | 'redis' => [ 66 | 'driver' => 'redis', 67 | 'connection' => 'default', 68 | 'queue' => env('REDIS_QUEUE', 'default'), 69 | 'retry_after' => 90, 70 | 'block_for' => null, 71 | 'after_commit' => false, 72 | ], 73 | 74 | ], 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Job Batching 79 | |-------------------------------------------------------------------------- 80 | | 81 | | The following options configure the database and table that store job 82 | | batching information. These options can be updated to any database 83 | | connection and table which has been defined by your application. 84 | | 85 | */ 86 | 87 | 'batching' => [ 88 | 'database' => env('DB_CONNECTION', 'mysql'), 89 | 'table' => 'job_batches', 90 | ], 91 | 92 | /* 93 | |-------------------------------------------------------------------------- 94 | | Failed Queue Jobs 95 | |-------------------------------------------------------------------------- 96 | | 97 | | These options configure the behavior of failed queue job logging so you 98 | | can control which database and table are used to store the jobs that 99 | | have failed. You may change them to any database / table you wish. 100 | | 101 | */ 102 | 103 | 'failed' => [ 104 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 105 | 'database' => env('DB_CONNECTION', 'mysql'), 106 | 'table' => 'failed_jobs', 107 | ], 108 | 109 | ]; 110 | -------------------------------------------------------------------------------- /config/sanctum.php: -------------------------------------------------------------------------------- 1 | explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( 19 | '%s%s', 20 | 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', 21 | Sanctum::currentApplicationUrlWithPort() 22 | ))), 23 | 24 | /* 25 | |-------------------------------------------------------------------------- 26 | | Sanctum Guards 27 | |-------------------------------------------------------------------------- 28 | | 29 | | This array contains the authentication guards that will be checked when 30 | | Sanctum is trying to authenticate a request. If none of these guards 31 | | are able to authenticate the request, Sanctum will use the bearer 32 | | token that's present on an incoming request for authentication. 33 | | 34 | */ 35 | 36 | 'guard' => ['web'], 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Expiration Minutes 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This value controls the number of minutes until an issued token will be 44 | | considered expired. If this value is null, personal access tokens do 45 | | not expire. This won't tweak the lifetime of first-party sessions. 46 | | 47 | */ 48 | 49 | 'expiration' => null, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Sanctum Middleware 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When authenticating your first-party SPA with Sanctum you may need to 57 | | customize some of the middleware Sanctum uses while processing the 58 | | request. You may change the middleware listed below as required. 59 | | 60 | */ 61 | 62 | 'middleware' => [ 63 | 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, 64 | 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, 65 | ], 66 | 67 | ]; 68 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | 'scheme' => 'https', 22 | ], 23 | 24 | 'postmark' => [ 25 | 'token' => env('POSTMARK_TOKEN'), 26 | ], 27 | 28 | 'ses' => [ 29 | 'key' => env('AWS_ACCESS_KEY_ID'), 30 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 31 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 32 | ], 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Session Lifetime 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may specify the number of minutes that you wish the session 29 | | to be allowed to remain idle before it expires. If you want them 30 | | to immediately expire on the browser closing, set that option. 31 | | 32 | */ 33 | 34 | 'lifetime' => env('SESSION_LIFETIME', 120), 35 | 36 | 'expire_on_close' => false, 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Session Encryption 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This option allows you to easily specify that all of your session data 44 | | should be encrypted before it is stored. All encryption will be run 45 | | automatically by Laravel and you can use the Session like normal. 46 | | 47 | */ 48 | 49 | 'encrypt' => false, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Session File Location 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When using the native session driver, we need a location where session 57 | | files may be stored. A default has been set for you but a different 58 | | location may be specified. This is only needed for file sessions. 59 | | 60 | */ 61 | 62 | 'files' => storage_path('framework/sessions'), 63 | 64 | /* 65 | |-------------------------------------------------------------------------- 66 | | Session Database Connection 67 | |-------------------------------------------------------------------------- 68 | | 69 | | When using the "database" or "redis" session drivers, you may specify a 70 | | connection that should be used to manage these sessions. This should 71 | | correspond to a connection in your database configuration options. 72 | | 73 | */ 74 | 75 | 'connection' => env('SESSION_CONNECTION'), 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Session Database Table 80 | |-------------------------------------------------------------------------- 81 | | 82 | | When using the "database" session driver, you may specify the table we 83 | | should use to manage the sessions. Of course, a sensible default is 84 | | provided for you; however, you are free to change this as needed. 85 | | 86 | */ 87 | 88 | 'table' => 'sessions', 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Session Cache Store 93 | |-------------------------------------------------------------------------- 94 | | 95 | | While using one of the framework's cache driven session backends you may 96 | | list a cache store that should be used for these sessions. This value 97 | | must match with one of the application's configured cache "stores". 98 | | 99 | | Affects: "apc", "dynamodb", "memcached", "redis" 100 | | 101 | */ 102 | 103 | 'store' => env('SESSION_STORE'), 104 | 105 | /* 106 | |-------------------------------------------------------------------------- 107 | | Session Sweeping Lottery 108 | |-------------------------------------------------------------------------- 109 | | 110 | | Some session drivers must manually sweep their storage location to get 111 | | rid of old sessions from storage. Here are the chances that it will 112 | | happen on a given request. By default, the odds are 2 out of 100. 113 | | 114 | */ 115 | 116 | 'lottery' => [2, 100], 117 | 118 | /* 119 | |-------------------------------------------------------------------------- 120 | | Session Cookie Name 121 | |-------------------------------------------------------------------------- 122 | | 123 | | Here you may change the name of the cookie used to identify a session 124 | | instance by ID. The name specified here will get used every time a 125 | | new session cookie is created by the framework for every driver. 126 | | 127 | */ 128 | 129 | 'cookie' => env( 130 | 'SESSION_COOKIE', 131 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' 132 | ), 133 | 134 | /* 135 | |-------------------------------------------------------------------------- 136 | | Session Cookie Path 137 | |-------------------------------------------------------------------------- 138 | | 139 | | The session cookie path determines the path for which the cookie will 140 | | be regarded as available. Typically, this will be the root path of 141 | | your application but you are free to change this when necessary. 142 | | 143 | */ 144 | 145 | 'path' => '/', 146 | 147 | /* 148 | |-------------------------------------------------------------------------- 149 | | Session Cookie Domain 150 | |-------------------------------------------------------------------------- 151 | | 152 | | Here you may change the domain of the cookie used to identify a session 153 | | in your application. This will determine which domains the cookie is 154 | | available to in your application. A sensible default has been set. 155 | | 156 | */ 157 | 158 | 'domain' => env('SESSION_DOMAIN'), 159 | 160 | /* 161 | |-------------------------------------------------------------------------- 162 | | HTTPS Only Cookies 163 | |-------------------------------------------------------------------------- 164 | | 165 | | By setting this option to true, session cookies will only be sent back 166 | | to the server if the browser has a HTTPS connection. This will keep 167 | | the cookie from being sent to you when it can't be done securely. 168 | | 169 | */ 170 | 171 | 'secure' => env('SESSION_SECURE_COOKIE'), 172 | 173 | /* 174 | |-------------------------------------------------------------------------- 175 | | HTTP Access Only 176 | |-------------------------------------------------------------------------- 177 | | 178 | | Setting this value to true will prevent JavaScript from accessing the 179 | | value of the cookie and the cookie will only be accessible through 180 | | the HTTP protocol. You are free to modify this option if needed. 181 | | 182 | */ 183 | 184 | 'http_only' => true, 185 | 186 | /* 187 | |-------------------------------------------------------------------------- 188 | | Same-Site Cookies 189 | |-------------------------------------------------------------------------- 190 | | 191 | | This option determines how your cookies behave when cross-site requests 192 | | take place, and can be used to mitigate CSRF attacks. By default, we 193 | | will set this value to "lax" since this is a secure default value. 194 | | 195 | | Supported: "lax", "strict", "none", null 196 | | 197 | */ 198 | 199 | 'same_site' => 'lax', 200 | 201 | ]; 202 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class UserFactory extends Factory 12 | { 13 | /** 14 | * Define the model's default state. 15 | * 16 | * @return array 17 | */ 18 | public function definition(): array 19 | { 20 | return [ 21 | 'name' => fake()->name(), 22 | 'email' => fake()->unique()->safeEmail(), 23 | 'email_verified_at' => now(), 24 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 25 | 'remember_token' => Str::random(10), 26 | ]; 27 | } 28 | 29 | /** 30 | * Indicate that the model's email address should be unverified. 31 | */ 32 | public function unverified(): static 33 | { 34 | return $this->state(fn (array $attributes) => [ 35 | 'email_verified_at' => null, 36 | ]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('name'); 17 | $table->string('email')->unique(); 18 | $table->timestamp('email_verified_at')->nullable(); 19 | $table->string('password'); 20 | $table->rememberToken(); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | */ 28 | public function down(): void 29 | { 30 | Schema::dropIfExists('users'); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php: -------------------------------------------------------------------------------- 1 | string('email')->primary(); 16 | $table->string('token'); 17 | $table->timestamp('created_at')->nullable(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::dropIfExists('password_reset_tokens'); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('uuid')->unique(); 17 | $table->text('connection'); 18 | $table->text('queue'); 19 | $table->longText('payload'); 20 | $table->longText('exception'); 21 | $table->timestamp('failed_at')->useCurrent(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | */ 28 | public function down(): void 29 | { 30 | Schema::dropIfExists('failed_jobs'); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->morphs('tokenable'); 17 | $table->string('name'); 18 | $table->string('token', 64)->unique(); 19 | $table->text('abilities')->nullable(); 20 | $table->timestamp('last_used_at')->nullable(); 21 | $table->timestamp('expires_at')->nullable(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | */ 29 | public function down(): void 30 | { 31 | Schema::dropIfExists('personal_access_tokens'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /database/migrations/2023_07_25_021046_create_devices_table.php: -------------------------------------------------------------------------------- 1 | id(); 13 | $table->string('nama')->nullable(); 14 | $table->string('no_sn')->unique(); 15 | $table->string('lokasi')->nullable(); 16 | $table->datetime('online')->nullable(); 17 | // Opsi 1: Menggunakan CURRENT_TIMESTAMP saat insert 18 | $table->timestamp('created_at')->useCurrent(); 19 | 20 | // Opsi 2: Menggunakan CURRENT_TIMESTAMP saat insert dan update 21 | $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); 22 | }); 23 | } 24 | 25 | public function down() 26 | { 27 | Schema::dropIfExists('devices'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /database/migrations/2023_07_25_033350_create_device_log_table.php: -------------------------------------------------------------------------------- 1 | id(); 13 | $table->text('data'); 14 | $table->date('tgl')->nullable(); 15 | $table->string('sn'); 16 | $table->string('option')->nullable(); 17 | $table->string('url')->nullable(); 18 | // Opsi 1: Menggunakan CURRENT_TIMESTAMP saat insert 19 | $table->timestamp('created_at')->useCurrent(); 20 | // Opsi 2: Menggunakan CURRENT_TIMESTAMP saat insert dan update 21 | $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); 22 | }); 23 | } 24 | 25 | public function down() 26 | { 27 | Schema::dropIfExists('device_log'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /database/migrations/2024_07_24_150621_finger_log.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->text('data'); 17 | $table->text('url'); 18 | // Opsi 1: Menggunakan CURRENT_TIMESTAMP saat insert 19 | $table->timestamp('created_at')->useCurrent(); 20 | 21 | // Opsi 2: Menggunakan CURRENT_TIMESTAMP saat insert dan update 22 | $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); 23 | 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | */ 30 | public function down(): void 31 | { 32 | // 33 | } 34 | }; 35 | -------------------------------------------------------------------------------- /database/migrations/2024_07_26_134536_create_error_log.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->text('data'); 17 | $table->timestamps(); 18 | }); 19 | } 20 | 21 | /** 22 | * Reverse the migrations. 23 | */ 24 | public function down(): void 25 | { 26 | Schema::dropIfExists('error_log'); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /database/migrations/2024_07_29_022209_create_attendances_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('sn'); 17 | $table->string('table'); 18 | $table->string('stamp'); 19 | $table->integer('employee_id'); 20 | $table->dateTime('timestamp'); 21 | $table->boolean('status1')->nullable(); 22 | $table->boolean('status2')->nullable(); 23 | $table->boolean('status3')->nullable(); 24 | $table->boolean('status4')->nullable(); 25 | $table->boolean('status5')->nullable(); 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | */ 33 | public function down(): void 34 | { 35 | Schema::dropIfExists('attendances'); 36 | } 37 | }; 38 | -------------------------------------------------------------------------------- /database/migrations/2024_07_29_231225_create_device_handshake_configs_table.php: -------------------------------------------------------------------------------- 1 | id(); 13 | $table->string('device_type')->default('default'); 14 | $table->integer('stamp')->default(9999); 15 | $table->integer('error_delay')->default(60); 16 | $table->integer('delay')->default(30); 17 | $table->integer('res_log_day')->default(18250); 18 | $table->integer('res_log_del_count')->default(10000); 19 | $table->integer('res_log_count')->default(50000); 20 | $table->string('trans_times')->default('00:00;14:05'); 21 | $table->integer('trans_interval')->default(1); 22 | $table->string('trans_flag', 10)->default('1111000000'); 23 | $table->integer('time_zone')->default(7); 24 | $table->boolean('realtime')->default(true); 25 | $table->boolean('encrypt')->default(false); 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | public function down() 31 | { 32 | Schema::dropIfExists('device_handshake_configs'); 33 | } 34 | }; -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call([ 16 | JadwalSholatSeeder::class, 17 | ]); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /database/seeders/JadwalSholatSeeder.php: -------------------------------------------------------------------------------- 1 | 'Subuh', 15 | 'dari' => '03:30:00', 16 | 'sampai' => '04:45:00', 17 | 'terlambat' => false, 18 | ], 19 | [ 20 | 'nama' => 'Dhuhur', 21 | 'dari' => '09:00:00', 22 | 'sampai' => '12:15:00', 23 | 'terlambat' => false, 24 | ], 25 | [ 26 | 'nama' => 'Ashar', 27 | 'dari' => '14:30:00', 28 | 'sampai' => '15:15:00', 29 | 'terlambat' => false, 30 | ], 31 | [ 32 | 'nama' => 'Magrib', 33 | 'dari' => '17:30:00', 34 | 'sampai' => '18:15:00', 35 | 'terlambat' => false, 36 | ], 37 | [ 38 | 'nama' => 'Isya', 39 | 'dari' => '18:30:00', 40 | 'sampai' => '23:00:00', 41 | 'terlambat' => false, 42 | ], 43 | ]; 44 | 45 | DB::table('jadwal_sholat')->insert($data); 46 | } 47 | } 48 | 49 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "adms-server-ZKTeco", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "devDependencies": { 8 | "@popperjs/core": "^2.11.6", 9 | "axios": "^1.1.2", 10 | "bootstrap": "^5.2.3", 11 | "laravel-vite-plugin": "^0.7.5", 12 | "sass": "^1.56.1", 13 | "vite": "^4.0.0" 14 | } 15 | }, 16 | "node_modules/@esbuild/android-arm": { 17 | "version": "0.18.16", 18 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.16.tgz", 19 | "integrity": "sha512-gCHjjQmA8L0soklKbLKA6pgsLk1byULuHe94lkZDzcO3/Ta+bbeewJioEn1Fr7kgy9NWNFy/C+MrBwC6I/WCug==", 20 | "cpu": [ 21 | "arm" 22 | ], 23 | "dev": true, 24 | "optional": true, 25 | "os": [ 26 | "android" 27 | ], 28 | "engines": { 29 | "node": ">=12" 30 | } 31 | }, 32 | "node_modules/@esbuild/android-arm64": { 33 | "version": "0.18.16", 34 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.16.tgz", 35 | "integrity": "sha512-wsCqSPqLz+6Ov+OM4EthU43DyYVVyfn15S4j1bJzylDpc1r1jZFFfJQNfDuT8SlgwuqpmpJXK4uPlHGw6ve7eA==", 36 | "cpu": [ 37 | "arm64" 38 | ], 39 | "dev": true, 40 | "optional": true, 41 | "os": [ 42 | "android" 43 | ], 44 | "engines": { 45 | "node": ">=12" 46 | } 47 | }, 48 | "node_modules/@esbuild/android-x64": { 49 | "version": "0.18.16", 50 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.16.tgz", 51 | "integrity": "sha512-ldsTXolyA3eTQ1//4DS+E15xl0H/3DTRJaRL0/0PgkqDsI0fV/FlOtD+h0u/AUJr+eOTlZv4aC9gvfppo3C4sw==", 52 | "cpu": [ 53 | "x64" 54 | ], 55 | "dev": true, 56 | "optional": true, 57 | "os": [ 58 | "android" 59 | ], 60 | "engines": { 61 | "node": ">=12" 62 | } 63 | }, 64 | "node_modules/@esbuild/darwin-arm64": { 65 | "version": "0.18.16", 66 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.16.tgz", 67 | "integrity": "sha512-aBxruWCII+OtluORR/KvisEw0ALuw/qDQWvkoosA+c/ngC/Kwk0lLaZ+B++LLS481/VdydB2u6tYpWxUfnLAIw==", 68 | "cpu": [ 69 | "arm64" 70 | ], 71 | "dev": true, 72 | "optional": true, 73 | "os": [ 74 | "darwin" 75 | ], 76 | "engines": { 77 | "node": ">=12" 78 | } 79 | }, 80 | "node_modules/@esbuild/darwin-x64": { 81 | "version": "0.18.16", 82 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.16.tgz", 83 | "integrity": "sha512-6w4Dbue280+rp3LnkgmriS1icOUZDyPuZo/9VsuMUTns7SYEiOaJ7Ca1cbhu9KVObAWfmdjUl4gwy9TIgiO5eA==", 84 | "cpu": [ 85 | "x64" 86 | ], 87 | "dev": true, 88 | "optional": true, 89 | "os": [ 90 | "darwin" 91 | ], 92 | "engines": { 93 | "node": ">=12" 94 | } 95 | }, 96 | "node_modules/@esbuild/freebsd-arm64": { 97 | "version": "0.18.16", 98 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.16.tgz", 99 | "integrity": "sha512-x35fCebhe9s979DGKbVAwXUOcTmCIE32AIqB9CB1GralMIvxdnMLAw5CnID17ipEw9/3MvDsusj/cspYt2ZLNQ==", 100 | "cpu": [ 101 | "arm64" 102 | ], 103 | "dev": true, 104 | "optional": true, 105 | "os": [ 106 | "freebsd" 107 | ], 108 | "engines": { 109 | "node": ">=12" 110 | } 111 | }, 112 | "node_modules/@esbuild/freebsd-x64": { 113 | "version": "0.18.16", 114 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.16.tgz", 115 | "integrity": "sha512-YM98f+PeNXF3GbxIJlUsj+McUWG1irguBHkszCIwfr3BXtXZsXo0vqybjUDFfu9a8Wr7uUD/YSmHib+EeGAFlg==", 116 | "cpu": [ 117 | "x64" 118 | ], 119 | "dev": true, 120 | "optional": true, 121 | "os": [ 122 | "freebsd" 123 | ], 124 | "engines": { 125 | "node": ">=12" 126 | } 127 | }, 128 | "node_modules/@esbuild/linux-arm": { 129 | "version": "0.18.16", 130 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.16.tgz", 131 | "integrity": "sha512-b5ABb+5Ha2C9JkeZXV+b+OruR1tJ33ePmv9ZwMeETSEKlmu/WJ45XTTG+l6a2KDsQtJJ66qo/hbSGBtk0XVLHw==", 132 | "cpu": [ 133 | "arm" 134 | ], 135 | "dev": true, 136 | "optional": true, 137 | "os": [ 138 | "linux" 139 | ], 140 | "engines": { 141 | "node": ">=12" 142 | } 143 | }, 144 | "node_modules/@esbuild/linux-arm64": { 145 | "version": "0.18.16", 146 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.16.tgz", 147 | "integrity": "sha512-XIqhNUxJiuy+zsR77+H5Z2f7s4YRlriSJKtvx99nJuG5ATuJPjmZ9n0ANgnGlPCpXGSReFpgcJ7O3SMtzIFeiQ==", 148 | "cpu": [ 149 | "arm64" 150 | ], 151 | "dev": true, 152 | "optional": true, 153 | "os": [ 154 | "linux" 155 | ], 156 | "engines": { 157 | "node": ">=12" 158 | } 159 | }, 160 | "node_modules/@esbuild/linux-ia32": { 161 | "version": "0.18.16", 162 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.16.tgz", 163 | "integrity": "sha512-no+pfEpwnRvIyH+txbBAWtjxPU9grslmTBfsmDndj7bnBmr55rOo/PfQmRfz7Qg9isswt1FP5hBbWb23fRWnow==", 164 | "cpu": [ 165 | "ia32" 166 | ], 167 | "dev": true, 168 | "optional": true, 169 | "os": [ 170 | "linux" 171 | ], 172 | "engines": { 173 | "node": ">=12" 174 | } 175 | }, 176 | "node_modules/@esbuild/linux-loong64": { 177 | "version": "0.18.16", 178 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.16.tgz", 179 | "integrity": "sha512-Zbnczs9ZXjmo0oZSS0zbNlJbcwKXa/fcNhYQjahDs4Xg18UumpXG/lwM2lcSvHS3mTrRyCYZvJbmzYc4laRI1g==", 180 | "cpu": [ 181 | "loong64" 182 | ], 183 | "dev": true, 184 | "optional": true, 185 | "os": [ 186 | "linux" 187 | ], 188 | "engines": { 189 | "node": ">=12" 190 | } 191 | }, 192 | "node_modules/@esbuild/linux-mips64el": { 193 | "version": "0.18.16", 194 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.16.tgz", 195 | "integrity": "sha512-YMF7hih1HVR/hQVa/ot4UVffc5ZlrzEb3k2ip0nZr1w6fnYypll9td2qcoMLvd3o8j3y6EbJM3MyIcXIVzXvQQ==", 196 | "cpu": [ 197 | "mips64el" 198 | ], 199 | "dev": true, 200 | "optional": true, 201 | "os": [ 202 | "linux" 203 | ], 204 | "engines": { 205 | "node": ">=12" 206 | } 207 | }, 208 | "node_modules/@esbuild/linux-ppc64": { 209 | "version": "0.18.16", 210 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.16.tgz", 211 | "integrity": "sha512-Wkz++LZ29lDwUyTSEnzDaaP5OveOgTU69q9IyIw9WqLRxM4BjTBjz9un4G6TOvehWpf/J3gYVFN96TjGHrbcNQ==", 212 | "cpu": [ 213 | "ppc64" 214 | ], 215 | "dev": true, 216 | "optional": true, 217 | "os": [ 218 | "linux" 219 | ], 220 | "engines": { 221 | "node": ">=12" 222 | } 223 | }, 224 | "node_modules/@esbuild/linux-riscv64": { 225 | "version": "0.18.16", 226 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.16.tgz", 227 | "integrity": "sha512-LFMKZ30tk78/mUv1ygvIP+568bwf4oN6reG/uczXnz6SvFn4e2QUFpUpZY9iSJT6Qpgstrhef/nMykIXZtZWGQ==", 228 | "cpu": [ 229 | "riscv64" 230 | ], 231 | "dev": true, 232 | "optional": true, 233 | "os": [ 234 | "linux" 235 | ], 236 | "engines": { 237 | "node": ">=12" 238 | } 239 | }, 240 | "node_modules/@esbuild/linux-s390x": { 241 | "version": "0.18.16", 242 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.16.tgz", 243 | "integrity": "sha512-3ZC0BgyYHYKfZo3AV2/66TD/I9tlSBaW7eWTEIkrQQKfJIifKMMttXl9FrAg+UT0SGYsCRLI35Gwdmm96vlOjg==", 244 | "cpu": [ 245 | "s390x" 246 | ], 247 | "dev": true, 248 | "optional": true, 249 | "os": [ 250 | "linux" 251 | ], 252 | "engines": { 253 | "node": ">=12" 254 | } 255 | }, 256 | "node_modules/@esbuild/linux-x64": { 257 | "version": "0.18.16", 258 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.16.tgz", 259 | "integrity": "sha512-xu86B3647DihHJHv/wx3NCz2Dg1gjQ8bbf9cVYZzWKY+gsvxYmn/lnVlqDRazObc3UMwoHpUhNYaZset4X8IPA==", 260 | "cpu": [ 261 | "x64" 262 | ], 263 | "dev": true, 264 | "optional": true, 265 | "os": [ 266 | "linux" 267 | ], 268 | "engines": { 269 | "node": ">=12" 270 | } 271 | }, 272 | "node_modules/@esbuild/netbsd-x64": { 273 | "version": "0.18.16", 274 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.16.tgz", 275 | "integrity": "sha512-uVAgpimx9Ffw3xowtg/7qQPwHFx94yCje+DoBx+LNm2ePDpQXHrzE+Sb0Si2VBObYz+LcRps15cq+95YM7gkUw==", 276 | "cpu": [ 277 | "x64" 278 | ], 279 | "dev": true, 280 | "optional": true, 281 | "os": [ 282 | "netbsd" 283 | ], 284 | "engines": { 285 | "node": ">=12" 286 | } 287 | }, 288 | "node_modules/@esbuild/openbsd-x64": { 289 | "version": "0.18.16", 290 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.16.tgz", 291 | "integrity": "sha512-6OjCQM9wf7z8/MBi6BOWaTL2AS/SZudsZtBziXMtNI8r/U41AxS9x7jn0ATOwVy08OotwkPqGRMkpPR2wcTJXA==", 292 | "cpu": [ 293 | "x64" 294 | ], 295 | "dev": true, 296 | "optional": true, 297 | "os": [ 298 | "openbsd" 299 | ], 300 | "engines": { 301 | "node": ">=12" 302 | } 303 | }, 304 | "node_modules/@esbuild/sunos-x64": { 305 | "version": "0.18.16", 306 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.16.tgz", 307 | "integrity": "sha512-ZoNkruFYJp9d1LbUYCh8awgQDvB9uOMZqlQ+gGEZR7v6C+N6u7vPr86c+Chih8niBR81Q/bHOSKGBK3brJyvkQ==", 308 | "cpu": [ 309 | "x64" 310 | ], 311 | "dev": true, 312 | "optional": true, 313 | "os": [ 314 | "sunos" 315 | ], 316 | "engines": { 317 | "node": ">=12" 318 | } 319 | }, 320 | "node_modules/@esbuild/win32-arm64": { 321 | "version": "0.18.16", 322 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.16.tgz", 323 | "integrity": "sha512-+j4anzQ9hrs+iqO+/wa8UE6TVkKua1pXUb0XWFOx0FiAj6R9INJ+WE//1/Xo6FG1vB5EpH3ko+XcgwiDXTxcdw==", 324 | "cpu": [ 325 | "arm64" 326 | ], 327 | "dev": true, 328 | "optional": true, 329 | "os": [ 330 | "win32" 331 | ], 332 | "engines": { 333 | "node": ">=12" 334 | } 335 | }, 336 | "node_modules/@esbuild/win32-ia32": { 337 | "version": "0.18.16", 338 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.16.tgz", 339 | "integrity": "sha512-5PFPmq3sSKTp9cT9dzvI67WNfRZGvEVctcZa1KGjDDu4n3H8k59Inbk0du1fz0KrAbKKNpJbdFXQMDUz7BG4rQ==", 340 | "cpu": [ 341 | "ia32" 342 | ], 343 | "dev": true, 344 | "optional": true, 345 | "os": [ 346 | "win32" 347 | ], 348 | "engines": { 349 | "node": ">=12" 350 | } 351 | }, 352 | "node_modules/@esbuild/win32-x64": { 353 | "version": "0.18.16", 354 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.16.tgz", 355 | "integrity": "sha512-sCIVrrtcWN5Ua7jYXNG1xD199IalrbfV2+0k/2Zf2OyV2FtnQnMgdzgpRAbi4AWlKJj1jkX+M+fEGPQj6BQB4w==", 356 | "cpu": [ 357 | "x64" 358 | ], 359 | "dev": true, 360 | "optional": true, 361 | "os": [ 362 | "win32" 363 | ], 364 | "engines": { 365 | "node": ">=12" 366 | } 367 | }, 368 | "node_modules/@popperjs/core": { 369 | "version": "2.11.8", 370 | "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", 371 | "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", 372 | "dev": true, 373 | "funding": { 374 | "type": "opencollective", 375 | "url": "https://opencollective.com/popperjs" 376 | } 377 | }, 378 | "node_modules/anymatch": { 379 | "version": "3.1.3", 380 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 381 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 382 | "dev": true, 383 | "dependencies": { 384 | "normalize-path": "^3.0.0", 385 | "picomatch": "^2.0.4" 386 | }, 387 | "engines": { 388 | "node": ">= 8" 389 | } 390 | }, 391 | "node_modules/asynckit": { 392 | "version": "0.4.0", 393 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 394 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", 395 | "dev": true 396 | }, 397 | "node_modules/axios": { 398 | "version": "1.4.0", 399 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", 400 | "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", 401 | "dev": true, 402 | "dependencies": { 403 | "follow-redirects": "^1.15.0", 404 | "form-data": "^4.0.0", 405 | "proxy-from-env": "^1.1.0" 406 | } 407 | }, 408 | "node_modules/binary-extensions": { 409 | "version": "2.2.0", 410 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 411 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 412 | "dev": true, 413 | "engines": { 414 | "node": ">=8" 415 | } 416 | }, 417 | "node_modules/bootstrap": { 418 | "version": "5.3.0", 419 | "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.0.tgz", 420 | "integrity": "sha512-UnBV3E3v4STVNQdms6jSGO2CvOkjUMdDAVR2V5N4uCMdaIkaQjbcEAMqRimDHIs4uqBYzDAKCQwCB+97tJgHQw==", 421 | "dev": true, 422 | "funding": [ 423 | { 424 | "type": "github", 425 | "url": "https://github.com/sponsors/twbs" 426 | }, 427 | { 428 | "type": "opencollective", 429 | "url": "https://opencollective.com/bootstrap" 430 | } 431 | ], 432 | "peerDependencies": { 433 | "@popperjs/core": "^2.11.7" 434 | } 435 | }, 436 | "node_modules/braces": { 437 | "version": "3.0.2", 438 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 439 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 440 | "dev": true, 441 | "dependencies": { 442 | "fill-range": "^7.0.1" 443 | }, 444 | "engines": { 445 | "node": ">=8" 446 | } 447 | }, 448 | "node_modules/chokidar": { 449 | "version": "3.5.3", 450 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 451 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 452 | "dev": true, 453 | "funding": [ 454 | { 455 | "type": "individual", 456 | "url": "https://paulmillr.com/funding/" 457 | } 458 | ], 459 | "dependencies": { 460 | "anymatch": "~3.1.2", 461 | "braces": "~3.0.2", 462 | "glob-parent": "~5.1.2", 463 | "is-binary-path": "~2.1.0", 464 | "is-glob": "~4.0.1", 465 | "normalize-path": "~3.0.0", 466 | "readdirp": "~3.6.0" 467 | }, 468 | "engines": { 469 | "node": ">= 8.10.0" 470 | }, 471 | "optionalDependencies": { 472 | "fsevents": "~2.3.2" 473 | } 474 | }, 475 | "node_modules/combined-stream": { 476 | "version": "1.0.8", 477 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 478 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 479 | "dev": true, 480 | "dependencies": { 481 | "delayed-stream": "~1.0.0" 482 | }, 483 | "engines": { 484 | "node": ">= 0.8" 485 | } 486 | }, 487 | "node_modules/delayed-stream": { 488 | "version": "1.0.0", 489 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 490 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 491 | "dev": true, 492 | "engines": { 493 | "node": ">=0.4.0" 494 | } 495 | }, 496 | "node_modules/esbuild": { 497 | "version": "0.18.16", 498 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.16.tgz", 499 | "integrity": "sha512-1xLsOXrDqwdHxyXb/x/SOyg59jpf/SH7YMvU5RNSU7z3TInaASNJWNFJ6iRvLvLETZMasF3d1DdZLg7sgRimRQ==", 500 | "dev": true, 501 | "hasInstallScript": true, 502 | "bin": { 503 | "esbuild": "bin/esbuild" 504 | }, 505 | "engines": { 506 | "node": ">=12" 507 | }, 508 | "optionalDependencies": { 509 | "@esbuild/android-arm": "0.18.16", 510 | "@esbuild/android-arm64": "0.18.16", 511 | "@esbuild/android-x64": "0.18.16", 512 | "@esbuild/darwin-arm64": "0.18.16", 513 | "@esbuild/darwin-x64": "0.18.16", 514 | "@esbuild/freebsd-arm64": "0.18.16", 515 | "@esbuild/freebsd-x64": "0.18.16", 516 | "@esbuild/linux-arm": "0.18.16", 517 | "@esbuild/linux-arm64": "0.18.16", 518 | "@esbuild/linux-ia32": "0.18.16", 519 | "@esbuild/linux-loong64": "0.18.16", 520 | "@esbuild/linux-mips64el": "0.18.16", 521 | "@esbuild/linux-ppc64": "0.18.16", 522 | "@esbuild/linux-riscv64": "0.18.16", 523 | "@esbuild/linux-s390x": "0.18.16", 524 | "@esbuild/linux-x64": "0.18.16", 525 | "@esbuild/netbsd-x64": "0.18.16", 526 | "@esbuild/openbsd-x64": "0.18.16", 527 | "@esbuild/sunos-x64": "0.18.16", 528 | "@esbuild/win32-arm64": "0.18.16", 529 | "@esbuild/win32-ia32": "0.18.16", 530 | "@esbuild/win32-x64": "0.18.16" 531 | } 532 | }, 533 | "node_modules/fill-range": { 534 | "version": "7.0.1", 535 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 536 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 537 | "dev": true, 538 | "dependencies": { 539 | "to-regex-range": "^5.0.1" 540 | }, 541 | "engines": { 542 | "node": ">=8" 543 | } 544 | }, 545 | "node_modules/follow-redirects": { 546 | "version": "1.15.2", 547 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", 548 | "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", 549 | "dev": true, 550 | "funding": [ 551 | { 552 | "type": "individual", 553 | "url": "https://github.com/sponsors/RubenVerborgh" 554 | } 555 | ], 556 | "engines": { 557 | "node": ">=4.0" 558 | }, 559 | "peerDependenciesMeta": { 560 | "debug": { 561 | "optional": true 562 | } 563 | } 564 | }, 565 | "node_modules/form-data": { 566 | "version": "4.0.0", 567 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", 568 | "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", 569 | "dev": true, 570 | "dependencies": { 571 | "asynckit": "^0.4.0", 572 | "combined-stream": "^1.0.8", 573 | "mime-types": "^2.1.12" 574 | }, 575 | "engines": { 576 | "node": ">= 6" 577 | } 578 | }, 579 | "node_modules/fsevents": { 580 | "version": "2.3.2", 581 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 582 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 583 | "dev": true, 584 | "hasInstallScript": true, 585 | "optional": true, 586 | "os": [ 587 | "darwin" 588 | ], 589 | "engines": { 590 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 591 | } 592 | }, 593 | "node_modules/glob-parent": { 594 | "version": "5.1.2", 595 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 596 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 597 | "dev": true, 598 | "dependencies": { 599 | "is-glob": "^4.0.1" 600 | }, 601 | "engines": { 602 | "node": ">= 6" 603 | } 604 | }, 605 | "node_modules/immutable": { 606 | "version": "4.3.1", 607 | "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.1.tgz", 608 | "integrity": "sha512-lj9cnmB/kVS0QHsJnYKD1uo3o39nrbKxszjnqS9Fr6NB7bZzW45U6WSGBPKXDL/CvDKqDNPA4r3DoDQ8GTxo2A==", 609 | "dev": true 610 | }, 611 | "node_modules/is-binary-path": { 612 | "version": "2.1.0", 613 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 614 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 615 | "dev": true, 616 | "dependencies": { 617 | "binary-extensions": "^2.0.0" 618 | }, 619 | "engines": { 620 | "node": ">=8" 621 | } 622 | }, 623 | "node_modules/is-extglob": { 624 | "version": "2.1.1", 625 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 626 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 627 | "dev": true, 628 | "engines": { 629 | "node": ">=0.10.0" 630 | } 631 | }, 632 | "node_modules/is-glob": { 633 | "version": "4.0.3", 634 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 635 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 636 | "dev": true, 637 | "dependencies": { 638 | "is-extglob": "^2.1.1" 639 | }, 640 | "engines": { 641 | "node": ">=0.10.0" 642 | } 643 | }, 644 | "node_modules/is-number": { 645 | "version": "7.0.0", 646 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 647 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 648 | "dev": true, 649 | "engines": { 650 | "node": ">=0.12.0" 651 | } 652 | }, 653 | "node_modules/laravel-vite-plugin": { 654 | "version": "0.7.8", 655 | "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-0.7.8.tgz", 656 | "integrity": "sha512-HWYqpQYHR3kEQ1LsHX7gHJoNNf0bz5z5mDaHBLzS+PGLCTmYqlU5/SZyeEgObV7z7bC/cnStYcY9H1DI1D5Udg==", 657 | "dev": true, 658 | "dependencies": { 659 | "picocolors": "^1.0.0", 660 | "vite-plugin-full-reload": "^1.0.5" 661 | }, 662 | "engines": { 663 | "node": ">=14" 664 | }, 665 | "peerDependencies": { 666 | "vite": "^3.0.0 || ^4.0.0" 667 | } 668 | }, 669 | "node_modules/mime-db": { 670 | "version": "1.52.0", 671 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 672 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 673 | "dev": true, 674 | "engines": { 675 | "node": ">= 0.6" 676 | } 677 | }, 678 | "node_modules/mime-types": { 679 | "version": "2.1.35", 680 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 681 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 682 | "dev": true, 683 | "dependencies": { 684 | "mime-db": "1.52.0" 685 | }, 686 | "engines": { 687 | "node": ">= 0.6" 688 | } 689 | }, 690 | "node_modules/nanoid": { 691 | "version": "3.3.6", 692 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", 693 | "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", 694 | "dev": true, 695 | "funding": [ 696 | { 697 | "type": "github", 698 | "url": "https://github.com/sponsors/ai" 699 | } 700 | ], 701 | "bin": { 702 | "nanoid": "bin/nanoid.cjs" 703 | }, 704 | "engines": { 705 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 706 | } 707 | }, 708 | "node_modules/normalize-path": { 709 | "version": "3.0.0", 710 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 711 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 712 | "dev": true, 713 | "engines": { 714 | "node": ">=0.10.0" 715 | } 716 | }, 717 | "node_modules/picocolors": { 718 | "version": "1.0.0", 719 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", 720 | "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", 721 | "dev": true 722 | }, 723 | "node_modules/picomatch": { 724 | "version": "2.3.1", 725 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 726 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 727 | "dev": true, 728 | "engines": { 729 | "node": ">=8.6" 730 | }, 731 | "funding": { 732 | "url": "https://github.com/sponsors/jonschlinkert" 733 | } 734 | }, 735 | "node_modules/postcss": { 736 | "version": "8.4.27", 737 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.27.tgz", 738 | "integrity": "sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==", 739 | "dev": true, 740 | "funding": [ 741 | { 742 | "type": "opencollective", 743 | "url": "https://opencollective.com/postcss/" 744 | }, 745 | { 746 | "type": "tidelift", 747 | "url": "https://tidelift.com/funding/github/npm/postcss" 748 | }, 749 | { 750 | "type": "github", 751 | "url": "https://github.com/sponsors/ai" 752 | } 753 | ], 754 | "dependencies": { 755 | "nanoid": "^3.3.6", 756 | "picocolors": "^1.0.0", 757 | "source-map-js": "^1.0.2" 758 | }, 759 | "engines": { 760 | "node": "^10 || ^12 || >=14" 761 | } 762 | }, 763 | "node_modules/proxy-from-env": { 764 | "version": "1.1.0", 765 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 766 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", 767 | "dev": true 768 | }, 769 | "node_modules/readdirp": { 770 | "version": "3.6.0", 771 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 772 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 773 | "dev": true, 774 | "dependencies": { 775 | "picomatch": "^2.2.1" 776 | }, 777 | "engines": { 778 | "node": ">=8.10.0" 779 | } 780 | }, 781 | "node_modules/rollup": { 782 | "version": "3.26.3", 783 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.26.3.tgz", 784 | "integrity": "sha512-7Tin0C8l86TkpcMtXvQu6saWH93nhG3dGQ1/+l5V2TDMceTxO7kDiK6GzbfLWNNxqJXm591PcEZUozZm51ogwQ==", 785 | "dev": true, 786 | "bin": { 787 | "rollup": "dist/bin/rollup" 788 | }, 789 | "engines": { 790 | "node": ">=14.18.0", 791 | "npm": ">=8.0.0" 792 | }, 793 | "optionalDependencies": { 794 | "fsevents": "~2.3.2" 795 | } 796 | }, 797 | "node_modules/sass": { 798 | "version": "1.64.1", 799 | "resolved": "https://registry.npmjs.org/sass/-/sass-1.64.1.tgz", 800 | "integrity": "sha512-16rRACSOFEE8VN7SCgBu1MpYCyN7urj9At898tyzdXFhC+a+yOX5dXwAR7L8/IdPJ1NB8OYoXmD55DM30B2kEQ==", 801 | "dev": true, 802 | "dependencies": { 803 | "chokidar": ">=3.0.0 <4.0.0", 804 | "immutable": "^4.0.0", 805 | "source-map-js": ">=0.6.2 <2.0.0" 806 | }, 807 | "bin": { 808 | "sass": "sass.js" 809 | }, 810 | "engines": { 811 | "node": ">=14.0.0" 812 | } 813 | }, 814 | "node_modules/source-map-js": { 815 | "version": "1.0.2", 816 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", 817 | "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", 818 | "dev": true, 819 | "engines": { 820 | "node": ">=0.10.0" 821 | } 822 | }, 823 | "node_modules/to-regex-range": { 824 | "version": "5.0.1", 825 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 826 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 827 | "dev": true, 828 | "dependencies": { 829 | "is-number": "^7.0.0" 830 | }, 831 | "engines": { 832 | "node": ">=8.0" 833 | } 834 | }, 835 | "node_modules/vite": { 836 | "version": "4.4.7", 837 | "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.7.tgz", 838 | "integrity": "sha512-6pYf9QJ1mHylfVh39HpuSfMPojPSKVxZvnclX1K1FyZ1PXDOcLBibdq5t1qxJSnL63ca8Wf4zts6mD8u8oc9Fw==", 839 | "dev": true, 840 | "dependencies": { 841 | "esbuild": "^0.18.10", 842 | "postcss": "^8.4.26", 843 | "rollup": "^3.25.2" 844 | }, 845 | "bin": { 846 | "vite": "bin/vite.js" 847 | }, 848 | "engines": { 849 | "node": "^14.18.0 || >=16.0.0" 850 | }, 851 | "funding": { 852 | "url": "https://github.com/vitejs/vite?sponsor=1" 853 | }, 854 | "optionalDependencies": { 855 | "fsevents": "~2.3.2" 856 | }, 857 | "peerDependencies": { 858 | "@types/node": ">= 14", 859 | "less": "*", 860 | "lightningcss": "^1.21.0", 861 | "sass": "*", 862 | "stylus": "*", 863 | "sugarss": "*", 864 | "terser": "^5.4.0" 865 | }, 866 | "peerDependenciesMeta": { 867 | "@types/node": { 868 | "optional": true 869 | }, 870 | "less": { 871 | "optional": true 872 | }, 873 | "lightningcss": { 874 | "optional": true 875 | }, 876 | "sass": { 877 | "optional": true 878 | }, 879 | "stylus": { 880 | "optional": true 881 | }, 882 | "sugarss": { 883 | "optional": true 884 | }, 885 | "terser": { 886 | "optional": true 887 | } 888 | } 889 | }, 890 | "node_modules/vite-plugin-full-reload": { 891 | "version": "1.0.5", 892 | "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.0.5.tgz", 893 | "integrity": "sha512-kVZFDFWr0DxiHn6MuDVTQf7gnWIdETGlZh0hvTiMXzRN80vgF4PKbONSq8U1d0WtHsKaFODTQgJeakLacoPZEQ==", 894 | "dev": true, 895 | "dependencies": { 896 | "picocolors": "^1.0.0", 897 | "picomatch": "^2.3.1" 898 | }, 899 | "peerDependencies": { 900 | "vite": "^2 || ^3 || ^4" 901 | } 902 | } 903 | } 904 | } 905 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "type": "module", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build" 7 | }, 8 | "devDependencies": { 9 | "@popperjs/core": "^2.11.6", 10 | "axios": "^1.1.2", 11 | "bootstrap": "^5.2.3", 12 | "laravel-vite-plugin": "^0.7.5", 13 | "sass": "^1.56.1", 14 | "vite": "^4.0.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | tests/Unit 10 | 11 | 12 | tests/Feature 13 | 14 | 15 | 16 | 17 | app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saifulcoder/adms-server-ZKTeco/38edd2897b8f1858a91a49e51774ddc46ddea73d/public/favicon.ico -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = $kernel->handle( 52 | $request = Request::capture() 53 | )->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saifulcoder/adms-server-ZKTeco/38edd2897b8f1858a91a49e51774ddc46ddea73d/resources/css/app.css -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | import './bootstrap'; 2 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | import 'bootstrap'; 2 | 3 | /** 4 | * We'll load the axios HTTP library which allows us to easily issue requests 5 | * to our Laravel back-end. This library automatically handles sending the 6 | * CSRF token as a header based on the value of the "XSRF" token cookie. 7 | */ 8 | 9 | import axios from 'axios'; 10 | window.axios = axios; 11 | 12 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 13 | 14 | /** 15 | * Echo exposes an expressive API for subscribing to channels and listening 16 | * for events that are broadcast by Laravel. Echo and event broadcasting 17 | * allows your team to easily build robust real-time web applications. 18 | */ 19 | 20 | // import Echo from 'laravel-echo'; 21 | 22 | // import Pusher from 'pusher-js'; 23 | // window.Pusher = Pusher; 24 | 25 | // window.Echo = new Echo({ 26 | // broadcaster: 'pusher', 27 | // key: import.meta.env.VITE_PUSHER_APP_KEY, 28 | // wsHost: import.meta.env.VITE_PUSHER_HOST ?? `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, 29 | // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, 30 | // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, 31 | // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', 32 | // enabledTransports: ['ws', 'wss'], 33 | // }); 34 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #f8fafc; 3 | 4 | // Typography 5 | $font-family-sans-serif: 'Nunito', sans-serif; 6 | $font-size-base: 0.9rem; 7 | $line-height-base: 1.6; 8 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | @import url('https://fonts.bunny.net/css?family=Nunito'); 3 | 4 | // Variables 5 | @import 'variables'; 6 | 7 | // Bootstrap 8 | @import 'bootstrap/scss/bootstrap'; 9 | -------------------------------------------------------------------------------- /resources/views/absensi_sholat/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

Tambah Absensi Sholat

6 |
7 | @csrf 8 |
9 | 10 | 11 |
12 |
13 | 14 | 15 |
16 |
17 | 18 | 19 |
20 |
21 | 22 | 23 |
24 |
25 | 26 | 27 |
28 | 29 |
30 |
31 | @endsection 32 | -------------------------------------------------------------------------------- /resources/views/absensi_sholat/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

Edit Absensi Sholat

6 |
7 | @csrf 8 | @method('put') 9 |
10 | 11 | 12 |
13 |
14 | 15 | 16 |
17 |
18 | 19 | 20 |
21 |
22 | 23 | 24 |
25 |
26 | 27 | 28 |
29 | 30 |
31 |
32 | @endsection 33 | -------------------------------------------------------------------------------- /resources/views/absensi_sholat/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

Daftar Absensi Sholat

6 | {{-- Tambah Absensi Sholat --}} 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | {{-- --}} 16 | 17 | 18 | 19 | @foreach($absensiSholat as $absensi) 20 | 21 | 22 | 23 | 24 | 25 | 26 | {{-- --}} 35 | 36 | @endforeach 37 | 38 |
NIS SantriWaktuTanggalJadwal SholatDeviceAksi
{{ $absensi->nis_santri }}{{ $absensi->waktu }}{{ $absensi->tgl }}{{ $absensi->id_jadwal_sholat }}{{ $absensi->id_devices }} 27 | Detail 28 | Edit 29 |
30 | @csrf 31 | @method('delete') 32 | 33 |
34 |
39 |
40 | @endsection 41 | -------------------------------------------------------------------------------- /resources/views/absensi_sholat/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

Detail Absensi Sholat

6 |

Waktu: {{ $absensiSholat->waktu }}

7 |

Tanggal: {{ $absensiSholat->tgl }}

8 |

Jadwal Sholat: {{ $absensiSholat->id_jadwal_sholat }}

9 |

Device: {{ $absensiSholat->id_devices }}

10 |

NIS Santri: {{ $absensiSholat->nis_santri }}

11 | Edit 12 |
13 | @csrf 14 | @method('delete') 15 | 16 |
17 |
18 | @endsection 19 | -------------------------------------------------------------------------------- /resources/views/devices/attendance.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') {{-- Asumsikan Anda memiliki layout utama --}} 2 | 3 | @section('content') 4 |
5 |

Attendance

6 | 7 | @if(session('success')) 8 |
9 | {{ session('success') }} 10 |
11 | @endif 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | @foreach($attendances as $attendance) 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | @endforeach 44 | 45 |
IDSNEmployee IDTimestampStatus 1Status 2Status 3Status 4Status 5
{{ $attendance->id }}{{ $attendance->sn }}{{ $attendance->employee_id }}{{ $attendance->timestamp }}{{ $attendance->status1 }}{{ $attendance->status2 }}{{ $attendance->status3 }}{{ $attendance->status4 }}{{ $attendance->status5 }}
46 |
47 | 48 | 49 |
50 | {{ $attendances->links() }} {{-- Tampilkan pagination jika ada --}} 51 |
52 | 53 | 54 |
55 | @endsection -------------------------------------------------------------------------------- /resources/views/devices/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

Tambah Device

6 |
7 | @csrf 8 |
9 | 10 | 11 |
12 |
13 | 14 | 15 |
16 |
17 | 18 | 19 |
20 | 21 | 22 |
23 |
24 | @endsection 25 | -------------------------------------------------------------------------------- /resources/views/devices/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

Edit Device

6 |
7 | @csrf 8 | @method('put') 9 |
10 | 11 | 12 |
13 |
14 | 15 | 16 |
17 |
18 | 19 | 20 |
21 |
22 | 23 | 24 |
25 | 26 |
27 |
28 | @endsection 29 | -------------------------------------------------------------------------------- /resources/views/devices/finger.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

Log Finger

6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
IdData
16 |
17 | @endsection 18 | -------------------------------------------------------------------------------- /resources/views/devices/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

{{ $lable }}

6 | {{-- Tambah Device --}} 7 | 8 | 9 | 10 | {{-- --}} 11 | 12 | 13 | 14 | 15 | 16 | @foreach ($log as $d) 17 | 18 | {{-- --}} 19 | 20 | 21 | 22 | @endforeach 23 | 24 |
NoSerial NumberOnline
{{ $d->id }}{{ $d->no_sn }}{{ $d->online }}
25 | 26 |
27 | @endsection 28 | -------------------------------------------------------------------------------- /resources/views/devices/log.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

{{ $lable }}

6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | @foreach ($log as $d) 16 | 17 | 18 | 19 | 20 | 21 | @endforeach 22 | 23 |
IdUrlData
{{ $d->id }}{{ $d->url }}{{ $d->data }}
24 | 25 |
26 | @endsection 27 | -------------------------------------------------------------------------------- /resources/views/devices/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |

Detail Device

6 |

Nama: {{ $device->nama }}

7 |

Nomor Serial: {{ $device->no_sn }}

8 |

Lokasi: {{ $device->lokasi }}

9 |

Online: {{ $device->online }}

10 | Edit 11 |
12 | @csrf 13 | @method('delete') 14 | 15 |
16 |
17 | @endsection 18 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ADMS Server 7 | 8 | 9 | 10 | 39 | 40 | 41 | 68 | 69 |
70 | @yield('content') 71 |
72 | 73 | 74 | 75 | 76 | 77 | 78 | 92 | 93 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Laravel 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
20 | @if (Route::has('login')) 21 |
22 | @auth 23 | Home 24 | @else 25 | Log in 26 | 27 | @if (Route::has('register')) 28 | Register 29 | @endif 30 | @endauth 31 |
32 | @endif 33 | 34 |
35 |
36 | 37 | 38 | 39 |
40 | 41 | 120 | 121 |
122 | 132 | 133 |
134 | Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) 135 |
136 |
137 |
138 |
139 | 140 | 141 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 27 | return $request->user(); 28 | }); 29 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('devices.index'); 21 | Route::get('devices-log', [DeviceController::class, 'DeviceLog'])->name('devices.DeviceLog'); 22 | Route::get('finger-log', [DeviceController::class, 'FingerLog'])->name('devices.FingerLog'); 23 | Route::get('attendance', [DeviceController::class, 'Attendance'])->name('devices.Attendance'); 24 | 25 | 26 | // handshake 27 | Route::get('/iclock/cdata', [iclockController::class, 'handshake']); 28 | // request dari device 29 | Route::post('/iclock/cdata', [iclockController::class, 'receiveRecords']); 30 | 31 | Route::get('/iclock/test', [iclockController::class, 'test']); 32 | Route::get('/iclock/getrequest', [iclockController::class, 'getrequest']); 33 | 34 | 35 | 36 | Route::get('/', function () { 37 | return redirect('devices') ; 38 | }); 39 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 18 | 19 | return $app; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 16 | 17 | $response->assertStatus(200); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import laravel from 'laravel-vite-plugin'; 3 | 4 | export default defineConfig({ 5 | plugins: [ 6 | laravel({ 7 | input: [ 8 | 'resources/sass/app.scss', 9 | 'resources/js/app.js', 10 | ], 11 | refresh: true, 12 | }), 13 | ], 14 | }); 15 | --------------------------------------------------------------------------------