File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,16 @@ public function tools()
5050
5151Please see [ CHANGELOG] ( CHANGELOG.md ) for more information on what has changed recently.
5252
53+ ## Configuration
54+
55+ You can configure the behavior of the log view within a config file. First, just publish the default one:
56+
57+ ```
58+ php artisan vendor:publish --tag=config
59+ ```
60+
61+ Now you can edit the settings in the file ` config/log-viewer.php ` .
62+
5363## Credits
5464
5565- [ PHPJunior] ( https://github.com/PHPJunior/nova-logs )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class NovaLogViewerController extends Controller
1919 private $ logViewer ;
2020
2121 /** @var int */
22- protected $ perPage = 20 ;
22+ protected $ perPage ;
2323
2424 /**
2525 * NovaLogViewerController constructor.
@@ -28,6 +28,7 @@ class NovaLogViewerController extends Controller
2828 public function __construct (LogViewerContract $ logViewer )
2929 {
3030 $ this ->logViewer = $ logViewer ;
31+ $ this ->perPage = config ("log-viewer.per-page " );
3132 }
3233
3334 /**
You can’t perform that action at this time.
0 commit comments