20 lines
379 B
PHP
20 lines
379 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Requests\Bo\Ranges;
|
|
|
|
use Illuminate\Support\Facades\Gate;
|
|
|
|
class UpdateRangeRequest extends StoreRangeRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return Gate::check('update', $this->route('range'));
|
|
}
|
|
}
|