public function page($page_name = 'about') { // $page = Lang::find(1)->langs->first()->pageInfo(); // $page = Page::find(1)->langs->first(); // dd(App::getLocale()); // $page = Page::where('name', '=', $page_name)->first()->langs->find(1)->pageInfo(); $page = Page::getInfo($page_name); // dd($page); return View::make('page', compact('page')); }