
Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods.
10 lines
317 B
PHP
10 lines
317 B
PHP
<?php
|
|
|
|
Breadcrumbs::register('logs', function ($breadcrumbs) {
|
|
$breadcrumbs->parent('setting');
|
|
$breadcrumbs->push('System Logs', route('logs'));
|
|
});
|
|
Route::middleware('web', 'auth', 'roles')->group(function () {
|
|
Route::get('logs', 'App\FaveoLog\controllers\LogViewerController@index')->name('logs');
|
|
});
|