public function getMessages()
    {
        $table = new AdminMessages(Message::query());

        $table->with(['recipient', 'sender']);

        if (mustard_loaded('feedback')) {
            $table->with(['recipient.feedbackReceived', 'sender.feedbackReceived']);
        }

        return view('mustard::admin.messages', [
            'table'    => $table,
            'messages' => $table->paginate(),
        ]);
    }
public function getMessages()
    {
        $table = new AdminMessages(Message::query());

        $table->with(['recipient', 'sender']);

        if (mustard_loaded('feedback')) {
            $table->with(['recipient.feedbackReceived', 'sender.feedbackReceived']);
        }

        return view('mustard::admin.messages', [
            'table'    => $table,
            'messages' => $table->paginate(),
        ]);
    }
public function getMessages ( ) { $ table = new AdminMessages ( Message :: query ( ) ) ; $ table -> with ( [ 'recipient' , 'sender' ] ) ; if ( mustard_loaded ( 'feedback' ) ) { $ table -> with ( [ 'recipient.feedbackReceived' , 'sender.feedbackReceived' ] ) ; } return view ( 'mustard::admin.messages' , [ 'table' => $ table , 'messages' => $ table -> paginate ( ) , ] ) ; }
Return the admin messages view.

@return \Illuminate\View\View
Return the admin messages view .