Convert route options to fluent methods
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.
This commit is contained in:
@@ -4,6 +4,6 @@ Breadcrumbs::register('logs', function ($breadcrumbs) {
|
||||
$breadcrumbs->parent('setting');
|
||||
$breadcrumbs->push('System Logs', route('logs'));
|
||||
});
|
||||
Route::group(['middleware' => ['web', 'auth', 'roles']], function () {
|
||||
Route::get('logs', ['as' => 'logs', 'uses' => 'App\FaveoLog\controllers\LogViewerController@index']);
|
||||
Route::middleware('web', 'auth', 'roles')->group(function () {
|
||||
Route::get('logs', 'App\FaveoLog\controllers\LogViewerController@index')->name('logs');
|
||||
});
|
||||
|
Reference in New Issue
Block a user