app/Http/Controllers/Dashboard/Home.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $comments = Comment::with('user' , 'video')->orderby('id' , 'desc')->paginate(20);
        return view('Dashboard.home' , compact('comments'));
    }
public function index ( ) { $ comments = Comment :: with ( 'user' , 'video' ) -> orderby ( 'id' , 'desc' ) -> paginate ( 20 ) ; return view ( 'Dashboard.home' , compact ( 'comments' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .