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

@@ -5,8 +5,8 @@
echo $controller->settingsIcon();
});
Route::group(['middleware' => ['web']], function () {
Route::get('storage', ['as' => 'storage', 'uses' => 'App\FaveoStorage\Controllers\SettingsController@settings']);
Route::post('storage', ['as' => 'post.storage', 'uses' => 'App\FaveoStorage\Controllers\SettingsController@postSettings']);
Route::get('attachment', ['as' => 'attach', 'uses' => 'App\FaveoStorage\Controllers\SettingsController@attachment']);
Route::middleware('web')->group(function () {
Route::get('storage', 'App\FaveoStorage\Controllers\SettingsController@settings')->name('storage');
Route::post('storage', 'App\FaveoStorage\Controllers\SettingsController@postSettings')->name('post.storage');
Route::get('attachment', 'App\FaveoStorage\Controllers\SettingsController@attachment')->name('attach');
});