app/Http/Controllers/PageController.php
/**
     * Display membership page
     *
     * @return \Illuminate\Http\Response
     */
Display membership page
@return \Illuminate\Http\Response
Display membership page @return \ Illuminate \ Http \ Response
public function membership()
    {
        $slug = 'membership';
        $page = Page::where('slug', '=', $slug)->firstOrFail();
        return view('membership', compact('page'));
    }
public function membership ( ) { $ slug = 'membership' ; $ page = Page :: where ( 'slug' , '=' , $ slug ) -> firstOrFail ( ) ; return view ( 'membership' , compact ( 'page' ) ) ; }
Display membership page
 @return \Illuminate\Http\Response
Display membership page @return \ Illuminate \ Http \ Response