ldc-boutique-cnc-sable/app/Http/Requests/Bo/DashboardRequest.php
2023-08-30 08:03:04 +00:00

31 lines
600 B
PHP

<?php
namespace App\Http\Requests\Bo;
use Illuminate\Foundation\Http\FormRequest;
class DashboardRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
return \auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'start' => ['required_with:end', 'date'],
'end' => ['required_with:start', 'date'],
];
}
}