15 lines
248 B
PHP
15 lines
248 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Requests;
|
||
|
|
||
|
class AuthorizedRequest extends RestRequest
|
||
|
{
|
||
|
/**
|
||
|
* Determine if the user is authorized to make this request.
|
||
|
*/
|
||
|
public function authorize(): bool
|
||
|
{
|
||
|
return auth()->check();
|
||
|
}
|
||
|
}
|