
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.
13 lines
548 B
PHP
13 lines
548 B
PHP
<?php
|
|
|
|
\Event::listen('settings.system', function () {
|
|
$controller = new \App\FaveoStorage\Controllers\SettingsController();
|
|
echo $controller->settingsIcon();
|
|
});
|
|
|
|
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');
|
|
});
|