zulfajuniadi / laravel-watch
Watches your files for modifications and reloads the browser on changes. Supports event for easy integration
Installs: 45
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/zulfajuniadi/laravel-watch
Requires
- php: >=5.3.0
- illuminate/support: 4.1.x
This package is not auto-updated.
Last update: 2025-10-11 17:34:33 UTC
README
#What is this?
This package will reload your browser anytime an important file in your application has changed. By default it watches the controllers, models, views folder and any css / js files loaded inside the view.
##Why?
If you've been developing all these while without live reload, you're missing out on something great!
##Then why not just use LiveReload?
- Commercial one has to be paid.
- The free ones often requires NodeJS, and most of the time bundled together with Bower, Grunt, etc, etc. Thus making it quite intimidating for junior developers.
- There is not a package like this (that I know of) yet - especially for Laravel.
#INSTALLATION
composer require zulfajuniadi/laravel-watch dev-master
#SETUP
- In /app/config/app.php, providers array, add:
'Zulfajuniadi\Watch\WatchServiceProvider'
- In your footer layout / template / view add the following:
{{HTML::watcherScript(1000)}}
- In the terminal, in your root project directory run:
artisan watch:enable
- That's it. Whenever you save a file, the browser should automatically reload reflecting the changes.