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