2019-01-22 01:06:49 +11:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Requests\Client;
|
|
|
|
|
|
|
|
|
|
use App\Http\Requests\Request;
|
|
|
|
|
use App\Models\Client;
|
|
|
|
|
|
|
|
|
|
class CreateClientRequest extends Request
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
|
*
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public function authorize() : bool
|
|
|
|
|
{
|
2019-04-15 10:10:54 +10:00
|
|
|
return auth()->user()->can('create', Client::class);
|
2019-01-22 01:06:49 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|