1/**
2 * Show the application dashboard.
3 *
4 * @return \Illuminate\Http\Response
5 */
6public function index()
7{
8 $messages = Message::select("*")
9 ->where('receiver_id',$id)
10 ->orderBy('created_at', 'desc')
11 ->get();
12
13 dd($messages);
14}
1// Make sure column names are correct
2$inquiries = Inquiry::orderBy('status', 'ASC')
3 ->orderBy('created_at', 'DESC')
4 ->get();
5
6
1$inquiries = Inquiry::all()->sortByDesc('created_at')->sortByDesc('Status')->values();
2