Added comments for easier understanding.

This commit is contained in:
Vedran Zelen
2020-07-28 08:34:10 +02:00
parent a9cd26075e
commit b89c1509fe
21 changed files with 50 additions and 3 deletions
+5 -2
View File
@@ -28,7 +28,10 @@ class UserSeeder extends Seeder
}*/
/**
* A user is created as the Admin with the below fields.
* Super User or Admin. Is allowed for all permission and is not to exist in final product release but purely for testing.
*/
Log::debug("OPRET");
$user = new \App\User();
@@ -39,7 +42,7 @@ class UserSeeder extends Seeder
$user->phone = 12345678;
//gives all permission to the Admin.
foreach (\Spatie\Permission\Models\Permission::all() as $permission) {
$user->givePermissionTo($permission);
}