ldc-legaulois/app/Http/Requests/Bo/Testimonials/UpdateTestimonialRequest.php

17 lines
356 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Http\Requests\Bo\Testimonials;
use Illuminate\Support\Facades\Gate;
class UpdateTestimonialRequest extends StoreTestimonialRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return Gate::check('update', $this->route('testimonial'));
}
}