Skip to content
Advertisement

Tag: yield

@yield does not show content on Laravel

template/layout.blade.php test23.blade.php TestController.php the variables Title and Test I’ve passed are both not showing, anyone knows how to fix? Answer @yield is used to “place” the content of a @section somewhere. You are passing the variables via the controller into the views. So you can just use the variables as blade variables like this: And

Advertisement