Fix on preview mode
This commit is contained in:
@@ -9,7 +9,13 @@ use App\Datatables\Admin\Core\CommentsDataTable;
|
||||
|
||||
class CommentController extends Controller
|
||||
{
|
||||
public function index(CommentsDataTable $dataTable, $model, $model_id)
|
||||
public function index($model, $model_id)
|
||||
{
|
||||
$data['comments'] = Comments::getCommentsByModel($model, $model_id);
|
||||
return view('Admin.Core.Comments.partials.list-comments', $data);
|
||||
}
|
||||
|
||||
public function list(CommentsDataTable $dataTable, $model, $model_id)
|
||||
{
|
||||
$data['model'] = $model;
|
||||
$data['model_id'] = $model_id;
|
||||
|
||||
Reference in New Issue
Block a user