ouldfella Posted September 10, 2017 Share Posted September 10, 2017 Hi, can i use order by in the request : $tarifs = Capsule::table('voip')->get(); i need orderering the result by country field. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 10, 2017 Share Posted September 10, 2017 replace "country" with the Database table's column, Descending = "desc" or Ascending = "asc" $tarifs = Capsule::table('voip')->orderBy("country", "desc")->get(); 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted September 10, 2017 Author Share Posted September 10, 2017 thank you very much 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.