ldc-com-app-bo/app/Http/Requests/Bo/Tenants/UpdateTenantRequest.php

19 lines
366 B
PHP
Raw Permalink Normal View History

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