25 lines
510 B
PHP
25 lines
510 B
PHP
<?php
|
|
|
|
namespace App\Domains\Tenant\Requests\AdminApp;
|
|
|
|
use App\Domains\Tenant\Services\WebsiteExtraService;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateWebsiteExtrasRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return app(WebsiteExtraService::class)->requestRules(
|
|
$this->user()?->tenant?->website_type_code
|
|
);
|
|
}
|
|
}
|