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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire