39 lines
737 B
PHP
39 lines
737 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Support\Resources;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
abstract class SupportResourceFormRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public static function rulesFor(string $action, ?Model $model = null): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* @return array<int, string>
|
|
*/
|
|
public static function allowedFields(string $action): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return static::rulesFor('update', null);
|
|
}
|
|
}
|