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:
Shift
2023-01-07 20:33:08 +00:00
parent 2e6e296715
commit 41cb65c70c
6 changed files with 357 additions and 447 deletions

View File

@@ -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');
});