/**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     $results = Category::get();
     $categories = $results->toTree();
     view()->share('categories', $categories);
 }
 /**
  * Reorder page
  *
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function getReorder()
 {
     $results = Category::get();
     $tree = $results->toTree();
     return view('backend.shop.category.reorder', compact('tree'));
 }