app/Http/Controllers/PageController.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()
    {
        $title = "Page Details";
        $pages = Page::latest()->get();
        return view('page.index', compact('title','pages'));
    }
public function index ( ) { $ title = " Page Details " ; $ pages = Page :: latest ( ) -> get ( ) ; return view ( 'page.index' , compact ( 'title' , 'pages' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .