Hey -
Try it like this -
public function indexmessages()
{
return Message::with('ministry.profile', 'preacher', 'series')->get();
}
The code below executes exactly 2 queries, that's how eloquent works. When laravel injects $series into this method - that will be one query, and when you write $series->messages - that will be the second query.
public function showseries(Series $series)
{
return [$series, $series->messages];
}