23 lines
445 B
PHP
23 lines
445 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class CheckoutRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'phone' => ['required', 'string', 'max:20'],
|
|
'pickup_date' => ['required', 'date'],
|
|
'pickup_time' => ['required', 'date_format:H:i'],
|
|
];
|
|
}
|
|
}
|