. */ namespace App\Policies; use App\Models\Genre; use App\Models\User; class GenrePolicy { public function rename(User $user, Genre $genre) { return $user->hasRole('admin'); } public function delete(User $user, Genre $genre) { return $user->hasRole('admin'); } }