diff --git a/skolehjem/app/Http/Controllers/ResourceController.php b/skolehjem/app/Http/Controllers/ResourceController.php index 119ebfe..0563f52 100644 --- a/skolehjem/app/Http/Controllers/ResourceController.php +++ b/skolehjem/app/Http/Controllers/ResourceController.php @@ -25,7 +25,7 @@ class ResourceController extends Controller */ public function index() { - // + } /** diff --git a/skolehjem/database/seeds/UserSeeder.php b/skolehjem/database/seeds/UserSeeder.php index 0c11ea0..389d003 100644 --- a/skolehjem/database/seeds/UserSeeder.php +++ b/skolehjem/database/seeds/UserSeeder.php @@ -1,5 +1,6 @@ name_first = "admin"; @@ -19,6 +27,8 @@ class UserSeeder extends Seeder $user->setPasswordAttribute("1234"); $user->phone = 12345678; + + foreach (\Spatie\Permission\Models\Permission::all() as $permission) { $user->givePermissionTo($permission); }