jeremykenedy / laravel-logger

An out the box activity logger for your Laravel or Lumen application. Laravel logger is an activity event logger for your laravel application. It comes out the box with ready to use with dashboard to view your activity. Laravel logger can be added as a middleware or called through a trait. This package is easily configurable and customizable. Supports Laravel 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6, and 7+
MIT License
579 stars 120 forks source link

Allow unauthenticated access to logger activity screens #146

Closed dimer47 closed 1 year ago

dimer47 commented 2 years ago

Hello,

This PR adds an option to the configuration to not have an authenticated user to access activity routes.

Sometimes it is not appropriate to manage access to this data through an application user, even using a specific role for authorization.

With this option, it will be possible to choose another mode of protection, I am thinking in particular of access rules in apache, nginx or iis directly.

jeremykenedy commented 1 year ago

This assigns _authRequired to nothing as it's not declared as a variable. The config key referenced in the file doesn't exist in the config file. The documentation does not reflect this. The default behavior is not preserved and this made as an optional change to be non breaking for existing users. The PR needs some work.