truncate(); Schema::enableForeignKeyConstraints(); $roles = [ ['name' => 'Administrator', 'slug' => 'admin'], ['name' => 'User', 'slug' => 'user'], ['name' => 'Customer', 'slug' => 'customer'], ['name' => 'Editor', 'slug' => 'editor'], ['name' => 'All', 'slug' => '*'], ['name' => 'Super Admin', 'slug' => 'super-admin'], ]; collect($roles)->each(function ($role) { Role::create($role); }); } }