title: Passing variable from backend to frontend laravel
body: <p>I have 5 controllers and 5 models and they are all related to backend. I can easily output data in the backend but I need to that for the frontend as well. Not all of course but some of them.</p>
  
  <p>For example I have controller called BooksController:</p>
  
  <pre><code>  public function getBooks(Request $request)
  {
     $books = Books::all();
  
     return view('backend.books.show', compact('images'));
  
  }
  </code></pre>
  
  <p>So this will show it in backend without any problems but what I want is for example to loop through all the books and show their images in welcome.blade.php which doesn't have controller.</p>
  
  <p>And also to pass other parameters to that same view from different controllers. </p>
  
  <p>Is this is possible?</p>
  
  <p>Thank you.</p>