David Carrdcblog.dev·Jan 18, 2024Creating Flexible Layouts in Laravel with Yields, Includes, and SlotsYields In Laravel, the @yield directive is used in blade templates to define a section that can have code injected or "yielded" by child views. Here's a basic explanation of how @yield works: Defining a section with @yield('name') In a blade file typ...Discuss·1 like·632 readsLaravel
Muhammad El-Gazoulygazouly.hashnode.dev·Jun 15, 2022Bring Vue Named Slots to ReactWhile I was working on a React.js side project using Semantic UI React as a UI library, I noticed that its components are written in a way that reminds me of Vue.js components I write. If you’ve been writing Vue.js web apps or you took a tour at thei...Discuss·3 likes·255 readsVue.js