attla / laravel-livereload
Bring livereload to laravel artisan serve command.
dev-main
2022-07-25 01:00 UTC
Requires
- attla/resource-watcher: dev-main
- cboden/ratchet: ^0.4
- illuminate/console: ^6.0|^7.0|^8.0|^9.0
- symfony/process: ^5.0|^6.0
Requires (Dev)
- orchestra/testbench: ^5.0
This package is auto-updated.
Last update: 2024-10-25 05:45:39 UTC
README
This package integrates into default artisan serve
command an WebSockets server for live reloading the application when any file changed.
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.