bristol-su /
static-page
| 1 | <?php |
||
| 2 | |||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | namespace BristolSU\Module\StaticPage\Http\Controllers; |
||
| 4 | |||
| 5 | use Illuminate\Foundation\Auth\Access\AuthorizesRequests; |
||
| 6 | use Illuminate\Foundation\Bus\DispatchesJobs; |
||
| 7 | use Illuminate\Foundation\Validation\ValidatesRequests; |
||
| 8 | |||
| 9 | class Controller |
||
|
0 ignored issues
–
show
|
|||
| 10 | { |
||
| 11 | use AuthorizesRequests { |
||
| 12 | authorize as baseAuthorize; |
||
| 13 | } |
||
| 14 | |||
| 15 | use DispatchesJobs, ValidatesRequests; |
||
| 16 | |||
| 17 | 22 | public function authorize($ability, $arguments = []) |
|
|
0 ignored issues
–
show
|
|||
| 18 | { |
||
| 19 | 22 | return $this->baseAuthorize( |
|
| 20 | 22 | 'static-page.' . $ability, |
|
| 21 | $arguments |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | } |