/** * Display a listing of the resource. * * @return Response */ public function index() { $messages = Message::query()->with(['userFrom', 'userTo'])->orderBy('created_at', 'DESC')->paginate(15); return view('admin.index', compact('messages')); }