Randy_Johnson
4 months ago
354
5
General

What is the difference between @section and @include.

Posted 4 months ago by Randy_Johnson

I am currently trying to get @section to work and not succeeding. I have a file in my layouts called "dashboard.blade.php" but when I call it nothing appears.

@section('layout.dashboard') @yield

It just throws an error. But the documentation is saying that this is what needs to show the dashboard layout.

Please help.

Please sign in or create an account to participate in this conversation.