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:
@@ -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');
|
||||
});
|
||||
|
Reference in New Issue
Block a user