diff --git a/README.md b/README.md index 81c3355..28e1daa 100644 --- a/README.md +++ b/README.md @@ -95,11 +95,16 @@ Included is a service provider for the Laravel framework. This service provider Register `JasonLewis\ResourceWatcher\Integration\LaravelServiceProvider` in the array of providers in `app/config/app.php`. +Register `'Watcher' => 'JasonLewis\ResourceWatcher\Integration\Watcher',` in the array of aliases in `app/config/app.php`. + ```php $listener = $app['watcher']->watch('path/to/resource'); // Or if you don't have access to an instance of the application container. $listener = app('watcher')->watch('path/to/resource'); + +// Or access globally via a application container facade. +$listener = Watcher::watch('path/to/resource'); ``` ## License diff --git a/src/JasonLewis/ResourceWatcher/Integration/LaravelFacade.php b/src/JasonLewis/ResourceWatcher/Integration/LaravelFacade.php new file mode 100644 index 0000000..0377bf6 --- /dev/null +++ b/src/JasonLewis/ResourceWatcher/Integration/LaravelFacade.php @@ -0,0 +1,11 @@ +