mirror of
https://github.com/kevin-DL/scraps.git
synced 2026-01-12 02:05:14 +00:00
Do the search
This commit is contained in:
20
app/Http/Requests/RecipeSearchRequest.php
Normal file
20
app/Http/Requests/RecipeSearchRequest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class RecipeSearchRequest extends FormRequest
|
||||
{
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'ingredients' => ['required', 'string', 'min:3']
|
||||
];
|
||||
}
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user