Hi,
We can define @yield in the Main Layout, -- HTML headers ... @yield('css')
-- HTML Body @yield('content')
-- HTML footer @yield('javascript')
We can separate our javascript and CSS files for every single View in its own view file like this: // for example in main.blade.php @section('css') @stop @section('content') // content of main @stop @section('javascript') @stop
// and for another page, profile; for example @section('css') @stop @section('content') // content of the profile @stop @section('javascript') @stop