lundi 22 août 2016

IF condition in Laravel

I have different food categories like breakfast,lunch,dinner.I want to show current time in my views.For that I use Carbon Api.But now I want that when user comes to website the category selects automatically according to the current time.Let say if user comes to website at 3 o' clock at day time then it automatically goes to Lunch category.How I can do this in laravel.I am new to laravel.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire