Support the ongoing development of →
Validation Forms Database
Last updated 1 year ago.

Hi Jk,

<input type="date" name="date1">

Will give this desired format ("Y-m-d") as default,

and you need just this rules ['required', 'date',].

On your Model:

$protect $cast = [
    'yourVariable' => 'datetime',
    'yourOtherVariable' => 'datetime',

And also you do not need this DB query, create a Reservation model that extends eloquent.

Finally on your question you can create a Custom Validation Rules whenever you feel needed. Just click in this link and the explanation is fairly simple.

Last updated 4 years ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.