What is the difference between Section and Stack in Blade?
问题 We can use a section to define some HTML and then yield that somewhere else. So why do we have stacks? https://laravel.com/docs/5.2/blade#stacks It's doing exactly the same thing with different keywords, but has fewer options (No inheritance). @push('scripts') <script src="/example.js"></script> @endpush <head> <!-- Head Contents --> @stack('scripts') </head> Can be done with section: @section('scripts') <script src="/example.js"></script> @endsection <head> <!-- Head Contents --> @yield(