Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user