attla/laravel-livereload

Bring livereload to laravel artisan serve command.

dev-main 2022-07-25 01:00 UTC

This package is auto-updated.

Last update: 2024-04-25 04:33:47 UTC


README

This package integrates into default artisan serve command an WebSockets server for live reloading the application when any file changed.

Laravel livereload

Installation

composer require attla/laravel-livereload --dev

Usage

Open terminal and run php artisan serve

This package works even when you use custom vhost such as valet or laragon

Configuration

By default, this package looking for files changes in these directories:

/app
/public 
/config 
/routes 
/resources

If you want to customize the watched forlders, you can publish the configuration file by this commmand:

php artisan vendor:publish --tag=attla/livereload/config

and then you can config what you want in the config/livereload.php.

License

This package is licensed under the MIT license © Octha.