ldc-groupe/app/Http/Requests/Back/CompanyActivities/UpdateCompanyActivityRequest.php

19 lines
406 B
PHP
Raw Permalink Normal View History

<?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'));
}
}