title: How to pass data to all views in Laravel 5?
body: <p>I want to have some default data accessible in all views in my Laravel 5 application.</p>
  
  <p>I have tried to search for it but only find results for Laravel 4. I have read the documentation 'Sharing Data With All Views' <a href="http://laravel.com/docs/5.0/views">here</a> but I can't understand what to do. Where should the following code be placed?</p>
  
  <pre><code>View::share('data', [1, 2, 3]);
  </code></pre>
  
  <p>Thanks for your help.</p>