public function index() { $comments = Comment::paginate(20); //dd($comments); return view('dashboard.comments.index', compact('comments')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return view('admin.comments.index')->with('comments', Comment::paginate(10)); }
/** * * @return type view */ public function comments() { $data = ['title' => 'Comments', 'number' => Contact::find(1)->tel, 'comments' => Comment::paginate(10)]; return view('pages.mainUserPages.comments')->with($data); }