示例#1
0
 public function getGovernment($id)
 {
     $gov = Gov::find($id);
     $government = Gov::where('ministry', '=', $gov->ministry)->get();
     $this->breadcrumbs->push('กระทรวง', URL::to('/governments'));
     $this->breadcrumbs->push($gov->ministry, URL::to('/government/' . $id . '/show'));
     $this->breadcrumbs->generate();
     return View::make('home.government')->with('government', $government)->with('ministryName', $gov->ministry);
 }