forgetCachedPermissions(); DB::statement('SET FOREIGN_KEY_CHECKS=0;'); DB::table('role_has_permissions')->truncate(); DB::table('model_has_permissions')->truncate(); \Spatie\Permission\Models\Permission::truncate(); DB::statement('SET FOREIGN_KEY_CHECKS=1;'); Artisan::call('db:seed', ['--class' => 'RoleSeeder', '--force' => true]); } /** * Reverse the migrations. */ public function down(): void { // } };