예제 #1
0
 public function __construct()
 {
     parent::__construct();
     if (Input::get('category')) {
         $this->category = ProductCategory::where('slug', '=', Input::get('category'))->first();
     }
     if ($this->category) {
         $title = $this->category->name;
     } else {
         $title = 'Produtos';
     }
     View::share('pageTitle', $title);
     if ($this->category) {
         Breadcrumbs::addCrumb('Produtos', route("product.index"));
     }
     Breadcrumbs::addCrumb($title, route("product.index", ['category' => Input::get('category')]));
 }
예제 #2
0
 public function __construct()
 {
     Config::set('site.theme', null);
     parent::__construct();
 }