19 lines
565 B
PHP
19 lines
565 B
PHP
<?php
|
|
namespace Modules\Blog\Article\Http\Controllers\Admin;
|
|
|
|
use App\Http\Controllers\Admin\Controller;
|
|
use Modules\Blog\Article\Entities\Comment;
|
|
|
|
class CommentsOverview extends Controller
|
|
{
|
|
public function getOverview()
|
|
{
|
|
$comments = Comment::with('article')
|
|
->with('author')
|
|
->orderBy('approved')
|
|
->orderBy('created_at', 'DESC')
|
|
->paginate(25);
|
|
|
|
return view('article::admin/comments.overview', ['comments' => $comments]);
|
|
}
|
|
} |