Add view within another view in Blade Laravel
February 6, 2020 — Sometimes, all you need to do is to add a Blade view into an another view. For instance, when you want to add JavaScript and CSS files as a separate Blade files which will contain the related content respectively. So, maybe you’ve a JavaScript blade file called view-js.blade.php
which wraps the JS code within <script>
tag and a CSS blade file called view-css.blade.php
which wraps the CSS code within <style>
tag. And all you want to do is add these to an another blade file called view-show.blade.php
.