Skip to content

Instantly share code, notes, and snippets.

@nataliaconde
Last active May 15, 2023 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nataliaconde/d498c01be913e215b12c906021928d18 to your computer and use it in GitHub Desktop.
Save nataliaconde/d498c01be913e215b12c906021928d18 to your computer and use it in GitHub Desktop.
use App\Policies\PostPolicy;
use Illuminate\Support\Facades\Gate;
/**
* Register all authorization and authentication services.
*/
public function boot(): void
{
Gate::define('can_post', [PostPolicy::class, 'update']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment