public function about() { $about_model = About::all(); return view('main.about', ['model' => $about_model]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // get about $about = About::all(); return $about; }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $about = About::all(); return view('about.index')->with('about', $about); }