check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'firstname' => 'required|string|max:255', 'lastname' => 'required|string|max:255', 'birth_date' => 'required|date|before_or_equal:' . Carbon::now()->subYears(18)->toDateString(), 'address' => 'max:255', 'phone' => 'max:255', 'city' => 'required|string|max:255', 'postcode' => 'required' ]; } }