Skip to content

Instantly share code, notes, and snippets.

@nataliaconde
Last active May 15, 2023 12:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nataliaconde/b3876e637fea0bbb7bd9faf1e0646d86 to your computer and use it in GitHub Desktop.
class PostPolicy
{
public function update(User $user)
{
return $ $user->role == ‘admin’;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment