22 lines
449 B
PHP
22 lines
449 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\Back\Notices;
|
||
|
|
|
||
|
|
use Illuminate\Support\Facades\Gate;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Handles authorization and validation for updating an existing Notice.
|
||
|
|
*/
|
||
|
|
class UpdateNoticeRequest extends StoreNoticeRequest
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Determine if the user is authorized to make this request.
|
||
|
|
*
|
||
|
|
* @return boolean
|
||
|
|
*/
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return Gate::check('update', $this->route('notice'));
|
||
|
|
}
|
||
|
|
}
|