22
33Multi guard authentication API with sessions in Laravel.
44
5- ## Install
5+ ## COnfig
66
7- Update with compoer.
8-
9- ## Config
7+ Install databases and update with composer.
108
119``` sh
1210# Update
1311composer update
1412
15- # Create migrations
13+ # Create permissions migrations
1614php artisan vendor:publish --provider=" Spatie\Permission\PermissionServiceProvider"
1715
1816# Then change the beginning of the permission migration file name to
@@ -109,18 +107,20 @@ php artisan db:seed --class=ApiloginPermissionsSeeder
109107
110108## Default admin credentials
111109
112- Change before running the migration command (php artisan) . See migration file 2023_08_04_105808_create_admin_users_table.php.
110+ Change before running the migration. See migration file 2023_08_04_105808_create_admin_users_table.php.
113111
114112``` php
115113// config/apilogin.php
116114return [
117115 // Admin users emails (email with dns mx)
118- 'super_admin_email' => 'admin@gmail.com',
119- 'worker_admin_email' => 'worker@gmail.com',
116+ 'super_admin_email' => 'superadmin@gmail.com',
117+ 'admin_email' => 'admin@gmail.com',
118+ 'worker_email' => 'worker@gmail.com',
120119
121120 // Admin users passsword
122121 'super_admin_password' => 'Password123#',
123- 'worker_admin_password' => 'Password123#',
122+ 'admin_password' => 'Password123#',
123+ 'worker_password' => 'Password123#',
124124]
125125```
126126
@@ -132,7 +132,7 @@ Disable amazon S3 disk overwriting if you have it installed (optional).
132132// config/apilogin.php
133133return [
134134 // Disable Storage::disk s3 to public overwrite
135- 'apilogin. overwrite_disk_s3' => false,
135+ 'overwrite_disk_s3' => false,
136136]
137137```
138138
@@ -182,6 +182,7 @@ Two factor auth redirection url (vue).
182182
183183``` sh
184184/login/f2a/{hash}
185+ /admin/login/f2a/{hash}
185186```
186187
187188### Run tests
@@ -206,7 +207,7 @@ php artisan test --stop-on-failure --testsuite=Apilogin
206207}
207208```
208209
209- ## Notifications exmple
210+ ## Notifications config
210211
211212Run first: php artisan notifications: table
212213
0 commit comments