ldc-showroom-bo/app/Http/Requests/Bo/Ranges/UpdateRangeRequest.php

19 lines
363 B
PHP
Raw Permalink Normal View History

<?php
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 boolean
*/
public function authorize(): bool
{
return Gate::allows('update', $this->route('range'));
}
}