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

Non-static method Request::is() cannot be called statically #150

Closed effeks closed 9 months ago

effeks commented 1 year ago

Hey!

PHP 8.1.14 Laravel 9.48.0

Getting: Non-static method Illuminate\Http\Request::is() cannot be called statically

in: resources/views/vendor/LaravelLogger/logger/partials/activity-table.blade.php:12

Fixed locally by (not sure it's the proper way though?): request()->is(...

This static method is called on some more places in the code as well, apart from the file/row above.

jeremykenedy commented 9 months ago

This is solved with the listeners added in PR https://github.com/jeremykenedy/laravel-logger/issues/150