Пример #1
0
 /**
  * Compose the view.
  *
  * @return void
  */
 public function compose(View $view)
 {
     $value = Cache::remember('users', 3, function () {
         return DB::table('users')->get();
     });
     $view->with('tags', Tags::all())->with('categories', Category::all());
 }
Пример #2
0
 /**
  * Compose the view.
  *
  * @return void
  */
 public function compose(View $view)
 {
     $view->with('tags', Tags::get());
 }