Esempio n. 1
0
 public function getGovernmentLink($id)
 {
     $gov = Gov::find($id);
     $this->breadcrumbs->push('กระทรวง', URL::to('/governments'));
     $this->breadcrumbs->push($gov->ministry, URL::to('/government/' . $id . '/show'));
     $this->breadcrumbs->push($gov->name, URL::to('/government/link/' . $id . '/show'));
     $this->breadcrumbs->generate();
     return View::make('home.government_link')->with('gov', $gov);
 }
Esempio n. 2
0
 public function getShowGov($id)
 {
     $gov = Gov::find($id);
     $columns = Schema::getColumnListing('gov');
     return View::make('admin.show_gov')->with('gov', $gov)->with('columns', $columns);
 }