romanzipp / Laravel-Queue-Monitor

Monitoring Laravel Jobs with your Database
https://packagist.org/packages/romanzipp/laravel-queue-monitor
MIT License
693 stars 91 forks source link

Action App\Http\Controllers\romanzipp\QueueMonitor\Controllers\PurgeMonitorsController not defined #54

Closed javis closed 3 years ago

javis commented 3 years ago

Error:

InvalidArgumentException
Action App\Http\Controllers\romanzipp\QueueMonitor\Controllers\PurgeMonitorsController not defined. (View: /home/vagrant/ngcloud/vendor/romanzipp/laravel-queue-monitor/views/jobs.blade.php)

when enabling purge in config file. Same happens with allow deletion. the action() function is unable to fiind the action for the controller class because the strings needs to start with \

huzaifaarain commented 3 years ago

Having the same issue, the problem is with laravel action() helper function.

Laravel 8.x support absolute controller with namespace while the versions < 8.x takes a relative controller path with respect to App\Http\Controllers, i was wondering why @romanzipp is not using Named Routes.