app/Http/Controllers/Dashboard/Videos.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()
    {
        $moduleName = $this->getNameFromController();
        $videos = Video::with('cat' , 'user')->paginate(10);
        return view('Dashboard.videos.index' , 
        compact('videos' , 'moduleName' ) );
    }
public function index ( ) { $ moduleName = $ this -> getNameFromController ( ) ; $ videos = Video :: with ( 'cat' , 'user' ) -> paginate ( 10 ) ; return view ( 'Dashboard.videos.index' , compact ( 'videos' , 'moduleName' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .