1
0
Fork 0

initial commit

This commit is contained in:
Henrik Hautakoski 2026-04-07 23:16:12 +02:00
commit ae93c7e1a6
233 changed files with 20282 additions and 0 deletions

View file

@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ProductIndexRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'q' => ['nullable', 'string', 'max:255'],
'category' => ['nullable', 'string', 'exists:categories,slug'],
'page' => ['nullable', 'integer', 'min:1'],
];
}
}