src/Http/Requests/WebinarAssignableUserListRequest.php
<?php
namespace EscolaLms\Webinar\Http\Requests;
use EscolaLms\Webinar\Enum\WebinarPermissionsEnum;
use EscolaLms\Webinar\Models\Webinar;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Gate;
class WebinarAssignableUserListRequest extends FormRequest
{
public function authorize(): bool
{
return Gate::allows(WebinarPermissionsEnum::WEBINAR_CREATE, Webinar::class);
}
public function rules(): array
{
return [
'search' => ['string'],
];
}
}