Support the ongoing development of Laravel.io →
Blade Packages

I am working on a site based on Andrew13's laravel-3-bootstrap-starter-site. I recently made some adjustments to my layouts.blade.php. Afterwords, the Basset call for .js started showing up at the bottom of my page. I have not been able to figure out why.

the code block is:

{{-- Javascripts --}}
        {{ Basset::show('public.js') }}
        <script>
            $(document).scroll(function(e){
                var scrollTop = $(document).scrollTop();
                if(scrollTop > 300){
                    console.log(scrollTop);
                    $('.navbar').removeClass('navbar-static-top').addClass('navbar-fixed-top');
                } else {
                    $('.navbar').removeClass('navbar-fixed-top').addClass('navbar-static-top');
                }
            });
        </script>

It gets echoed to the bottom of the page as:

{{ Basset::show('public.js'); ?>

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ChefBrett chefbrett Joined 21 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.