22 lines
435 B
PHP
22 lines
435 B
PHP
<?php
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class ArtworkIndexRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'per_page' => 'nullable|integer|min:1|max:100',
|
|
'sort' => 'nullable|in:latest,oldest',
|
|
'q' => 'nullable|string|max:255',
|
|
];
|
|
}
|
|
}
|