app/Http/Controllers/PagesController.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 = 'About us';
        return view('about', compact('title'));
    }
public function index ( ) { $ title = 'About us' ; return view ( 'about' , compact ( 'title' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .