mojtabaahn/laravel-web-logs

The Gate definition 'viewWebLogs' is overridden.

Closed this issue · 1 comments

Hello Christian and thanks for report.
I believe you're using laravel-microscope for checking any probable bugs.
Overriding gates should not be a bug as long as we know which definition is being called when and where and I believe it should not result errors in the process.
One possible way to handle this is having a config option to suppress such errors in utilized library.
The other one would be changing our end, checking if the gate already exists using Gate::has and defining it only if it's missing.
Let me know if you have a better approach solving it.