app/Http/Controllers/LawyerController.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()
    {
        $slug = 'lawyers';
        $page = Page::where('slug', '=', $slug)->firstOrFail();
        $lawyersList = Lawyer::all();
        return view('lawyer.index', compact('lawyersList', 'page'));
    }
public function index ( ) { $ slug = 'lawyers' ; $ page = Page :: where ( 'slug' , '=' , $ slug ) -> firstOrFail ( ) ; $ lawyersList = Lawyer :: all ( ) ; return view ( 'lawyer.index' , compact ( 'lawyersList' , 'page' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .