Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/laravel/no-default-authorize

In the code-quality set. Safe fix. Runs when laravel is installed. Planned: not in Pun yet. Enabling it is a config error.

What it does

Remove the authorize() method from FormRequest classes when it only returns true, as passesAuthorization() defaults to true when the method does not exist

Replaces

More lint/laravel rules · Edit this page

Last updated on

Was this page helpful?