PhpDev.App
larapack/voyager-hooks

larapack/voyager-hooks

Stars: 209

Forks: 20

Pull Requests: 21

Issues: 15

Watchers: 8

Last Updated: 2020-03-04 21:36:04

Hooks system integrated into Voyager.

License: MIT License

Languages: PHP

Voyager Hooks

Build Status Build Status Total Downloads Latest Stable Version License

Made with ❤️ by Mark Topper

Voyager Hooks

Hooks system integrated into Voyager.

Installation

Install using composer:

composer require larapack/voyager-hooks

Then add the service provider to the configuration (optional on Laravel 5.5+):

'providers' => [
    Larapack\VoyagerHooks\VoyagerHooksServiceProvider::class,
],

In order for Voyager to automatically check for updates of hooks, add the following to your console kernel:

protected function schedule(Schedule $schedule)
{
    $schedule->command('hook:check')->sundays()->at('03:00');
}

That's it! You can now visit your Voyager admin panel and see a new menu item called Hooks have been added.