I have this query that fetches properties from table
$properties = Property::with('Category')
->orderBy('name','asc')
->where('status','Active')
->get();
In my table i have added new column featured
it's value is either 0
or 1
. I want to show property with 1
value in featured column first
Please suggest solution Thanks.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/ZkweNlx
via IFTTT
Aucun commentaire:
Enregistrer un commentaire