title: Laravel share variable or object to all controller that is in Admin
body: <p>In Laravel 6 I am creating an Admin area. For that, I have a simple Trait has an array of admin sidebar navigation items. To display menu items, I am passing it as a variable in view() as below</p>
  
  <pre><code>....
  
  use AdminMenu;
  
  public function index()
  {
      // nav items
      $navItems = $this-&gt;navItems();
  
      //view
      return view('admin.dashboard.index', compact('navItems'));
  }
  
  ....
  </code></pre>
  
  <p>Now with this approach, I have to use the trait and pass the variable in every controller in every method.</p>
  
  <blockquote>
    <h3>Question</h3>
    
    <p>So what I am looking for is the way so at one place I can set
    this variable and it will be available in all <code>Admin/Controllers</code> (for ref. <code>namespace App\Http\Controllers\Admin</code> ) and
    its views.</p>
  </blockquote>