24 lines
427 B
PHP
24 lines
427 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Settings;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ApplyAutomationRuleRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return $this->user() !== null;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'only_uncategorized' => ['sometimes', 'boolean'],
|
|
];
|
|
}
|
|
}
|