thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.8k stars 2.67k forks source link

[Hook] Could not find package "test_hook" when add "test_hook" #4438

Closed csliangy closed 5 years ago

csliangy commented 5 years ago

Version information

Description

After enable the "browse_hooks" permission, I can see the "hooks" menu, however, I cannot create any hook.

Steps To Reproduce

  1. Steps to reproduce the behavior:
  2. laravel new hooks
  3. cd hooks
  4. composer require tcg/voyager
  5. php artisan voyager:install --with-dummy
  6. add "browse_hooks" permission to database to make the menu visible
  7. "Add hook"

Error message:

InvalidArgumentException Could not find package test_hook. Did you mean one of these? yipl/hookah pxn/hooktest appventus/hooks dam1r89/test-hooks thecrypticace/hooks

Screenshots

image

fletch3555 commented 5 years ago

Hooks are managed under a separate package/repository. Can you do a little debugging and figure out whether the issue is from larapack/hooks (base hook functionality) or larapack/voyager-hooks (voyager bridge). Most likely the base hooks package, but I don't have quite enough info here to debug it myself.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.