19 lines
406 B
PHP
19 lines
406 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\Back\CompanyActivities;
|
||
|
|
|
||
|
|
use Illuminate\Support\Facades\Gate;
|
||
|
|
|
||
|
|
class UpdateCompanyActivityRequest extends StoreCompanyActivityRequest
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Determine if the user is authorized to make this request.
|
||
|
|
*
|
||
|
|
* @return boolean
|
||
|
|
*/
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return Gate::check('update', $this->route('company_activity'));
|
||
|
|
}
|
||
|
|
}
|