New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

zulfajuniadi/laravel-watch

Watches your files for modifications and reloads the browser on changes. Supports event for easy integration
45 5
Install
composer require zulfajuniadi/laravel-watch:dev-master
PHP:>=5.3.0
Last Updated:Feb 5, 2014
Links: GitHub  ·  Packagist
Maintainer: zulfajuniadi

LARAVEL WATCH

#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?

  1. Commercial one has to be paid.
  2. 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.
  3. There is not a package like this (that I know of) yet - especially for Laravel.

#INSTALLATION

composer require zulfajuniadi/laravel-watch dev-master

#SETUP

  1. In /app/config/app.php, providers array, add: 'Zulfajuniadi\Watch\WatchServiceProvider'
  2. In your footer layout / template / view add the following: {{HTML::watcherScript(1000)}}
  3. In the terminal, in your root project directory run: artisan watch:enable
  4. That's it. Whenever you save a file, the browser should automatically reload reflecting the changes.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

665,354,487 9,703
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

531,591,559 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

450,320,528 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

424,642,029 4,662