mercredi 26 avril 2017

DB::query get the date form database only if the date is in furure

In Laravel 5 i have in controller db query which fetch all records from database. Records in MySQL are in date type such as 2017-05-01.

Now I have query $dates = DB::table('dates')->get(); but I need get only dates which is in future



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2oLtgM2
via IFTTT

Aucun commentaire:

Enregistrer un commentaire