'Administrator'], ['name' => 'Elev'], ['name' => 'Underviser'], ['name' => 'Helpdesk'], ['name' => 'Server'], ]; foreach ($items as $item) { Role::create($item); } Role::where('name', '=', 'Administrator')->first()->permissions()->sync(Permission::all()); } }