Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When passing php class names in middleware, for example ``` ->middleware('can:create, App\Models\JobDocument); ``` Developer can accidentally add a whitespace before class name. This whitespace will cause the linked policy to not found and cause a 403 http response.
- Loading branch information