You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blueprint generate code that not exists in Laravel 11.
public function index(Request $request)
{
$this->authorize('index', Customer::class);// <= here
$customers = Customer::all();
return new CustomerCollection($customers);
}
While I agree with @fftfaisal as a potential workaround, this should probably be fixed to use the facade. There are some open issues for other Laravel 11 optimizations. So I'm going to reopen this.
Issue:
Blueprint generate code that not exists in Laravel 11.
draft.yaml:
The text was updated successfully, but these errors were encountered: