The fragment directive was introduced in Laravel 9.x and it allows you to render a specific fragment of a blade view. Learn all about it in this short video!
Read more: https://www.amitmerchant.com/renderin...
You can follow me on Twitter: / amit_merchant
00:00 Intro
00:40 Setting things up
01:21 Using Blade Fragments
03:25 Nested fragments
04:19 No errors if the fragment doesn't exist
04:49 Closing notes
#Laravel #PHP