title: How to pass variable from one controller to another controller in laravel
body: <p>I have a view named index.blade.php which shows information about a vendor, which was passed through a Controller e.g. VendorController, on this view I have a button "View address", now I want to display the data of this vendor on button click. I also have another controller namely VendorAddressController which fetches the address of the vendor from the db. Code of index.blade.php file : </p>
  
  <pre><code>&lt;td&gt;
     &lt;a href="{!! $vendor-&gt;slug !!}/vendor-address/" class="btn btn-primary"&gt;View Address&lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>in VendorAddressContoller</p>
  
  <pre><code>public function index($id)
  {        
      $vendor = Vendors::find($id);
      $vendorsaddress = VendorAddress::where('vendor_id', $vendor-&gt;id)-&gt;paginate(15);
      return view('admin.vendoraddress.index',['vendorsaddress'=&gt;$vendorsaddress, 'vendor'=&gt;$vendor, 'address'=&gt;$address]);
  }
  </code></pre>
  
  <p>But when i click on button nothing is coming </p>