Files
many-notes/app/Policies/SettingPolicy.php
T
2025-07-12 11:30:47 +01:00

19 lines
281 B
PHP

<?php
declare(strict_types=1);
namespace App\Policies;
use App\Models\User;
final readonly class SettingPolicy
{
/**
* Determine whether the user can update the model.
*/
public function update(User $user): bool
{
return $user->isAdmin();
}
}