A lot of things.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Helpers\EntryHelpers;
|
||||
use App\Models\Entry;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\View;
|
||||
@@ -25,7 +26,9 @@ class EntryController extends Controller
|
||||
if( $entry->type !== $section )
|
||||
abort(404);
|
||||
|
||||
return view('entries.show', compact('entry', 'section'));
|
||||
$comments = EntryHelpers::getLatestComments( $entry );
|
||||
|
||||
return view('entries.show', compact('entry', 'section', 'comments' ) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user