mirror of
https://github.com/koel/koel
synced 2024-12-22 18:43:21 +00:00
899c7176c1
The comment below motivated me to find a better solution for the repeated authorisation checks: ```php // This can't be put into a Request authorize(), due to Laravel(?)'s limitation. ``` This is the result.
11 lines
239 B
PHP
11 lines
239 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API;
|
|
|
|
use App\Http\Controllers\Controller as BaseController;
|
|
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
|
|
abstract class Controller extends BaseController
|
|
{
|
|
use AuthorizesRequests;
|
|
}
|