Skip to content

Commit

Permalink
Update request.stub
Browse files Browse the repository at this point in the history
Add permission-based return value to the `authorize()` method.
  • Loading branch information
solomon-ochepa authored Oct 30, 2023
1 parent e76eaef commit 51f0427
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Commands/stubs/request.stub
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ class $CLASS$ extends FormRequest
public function authorize(): bool
{
return true;
// return auth()->user()->can('users.create');
}
}

0 comments on commit 51f0427

Please sign in to comment.