'How to Pass Multiple variables from partial view to multiple views laravel blade
I'm trying to access variables in different views. But I get the error variable undefined. I have tried as below
@include('admin.layouts.vendorpartial',
[
'approved_vendors' => $approved_vendors,
'incomplete_vendors' => $incomplete_vendors,
'under_review_vendors' => $under_review_vendors,
'rejected_vendors' => $rejected_vendors
])
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
