20 lines
401 B
PHP
20 lines
401 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class LinkSimulationDraftBusinessRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return $this->user()?->hasVerifiedEmail() === true;
|
|
}
|
|
|
|
/** @return array<string, mixed> */
|
|
public function rules(): array
|
|
{
|
|
return ['business_id' => ['required', 'uuid']];
|
|
}
|
|
}
|