larapack / voyager-hooks

Hooks system integrated into Voyager.
MIT License
208 stars 22 forks source link

Installing Local Hooks #27

Closed nomanurrehman closed 5 years ago

nomanurrehman commented 5 years ago

I understand the workflow of uploading and installing a hook. However, there is a genuine case where you may be developing a hook that is specific to your application and will not be of any use if you open it to the public(post on larapack). Other than use, there could also be licensing, confidentiality issues etc.

In such a case, is there a way to install a hook locally? So far, I have been able to setup composer and install the hook package locally but have hit a dead-end regarding the local hook install in Voyager.

nomanurrehman commented 5 years ago

Since the documentation is a bit scarce at this moment, hence this confusion.

I read the code for the install command and figured out I just need to place my hook in the hooks directory at the root and everything works the same as in the case of downloading and installing a hook.

Thanks for the great project!