return view()->first(['partials.sidebar-tempate', 'partials.default-template'], $data);
How to Provide Fallback Views in Laravel
Learn how to return multiple views in Laravel controller to provide a fallback view when one or more views is not available
Created on Aug 17, 2021•
Please support us by disabling your ad-block. The revenue help us create more content for the community.
Full stack developer mainly focusing on the front end side of the web. The main author of PostSrc and loves writing tutorial and guides online.
Load comments for How to Provide Fallback Views in Laravel
PostSrc Code Components
Collection of Tailwind CSS components for everyone to use. Browse all of the components that's right for your project.View Components