LaravelPackages.net
Acme Inc.
Toggle sidebar
tanmuhittin/nova-scroll-top

On route change scrolls to the top

220.174
22
0.6
About tanmuhittin/nova-scroll-top

tanmuhittin/nova-scroll-top is a Laravel package for on route change scrolls to the top. It currently has 22 GitHub stars and 220.174 downloads on Packagist (latest version 0.6). Install it with composer require tanmuhittin/nova-scroll-top. Discover more Laravel packages by tanmuhittin or browse all Laravel packages to compare alternatives.

Last updated

Nova Scroll Top

On route change scroll to the top of the page. On 422 error scroll to the first erroneous field.
You can install this package via:
composer require tanmuhittin/nova-scroll-top

If you do not want to use scroll to erroneous field trait or scroll to the top on page load trait you can set this on config file. First publish it via:
php artisan vendor:publish --provider=TanMuhittin\\NovaScrollTop\\ScrollTopServiceProvider

    /**
     * Scroll to the top of the page on route change
     */
    'on_route_change' => true,

    /**
     * Scroll to the first erroneous field on 422 ajax errors
     */
    'on_error' => true,

Star History Chart