ldc-nature-and-respect/app/Http/Requests/Api/StoreFinderRequest.php
2023-05-05 10:07:01 +02:00

30 lines
612 B
PHP

<?php
namespace App\Http\Requests\Api;
use Illuminate\Foundation\Http\FormRequest;
class StoreFinderRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array|string>
*/
public function rules(): array
{
return [
'city' => 'required|string|min:1'
];
}
}