añadido crd para Song y transladada la logica de /gallery a un controller

This commit is contained in:
2025-03-27 00:10:40 -03:00
parent c8d64406f5
commit 55b130edad
19 changed files with 464 additions and 80 deletions

View File

@@ -26,10 +26,10 @@ class SongPolicy
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return true;
}
public function create(): bool
{
return true;
}
/**
* Determine whether the user can update the model.
@@ -44,7 +44,7 @@ class SongPolicy
*/
public function delete(User $user, Song $song): bool
{
return $song->user_id === $user->id;
return $song->user_id == $user->id;
}
/**