diff --git a/routes/web.php b/routes/web.php index cfd53c0..a454456 100644 --- a/routes/web.php +++ b/routes/web.php @@ -3,6 +3,7 @@ use App\Http\Controllers\Auth\LoginController; use App\Http\Controllers\ContactsController; use App\Http\Controllers\DashboardController; +use App\Http\Controllers\ImagesController; use App\Http\Controllers\OrganizationsController; use App\Http\Controllers\ReportsController; use App\Http\Controllers\UsersController; @@ -136,7 +137,7 @@ Route::get('reports', [ReportsController::class, 'index']) // Images -Route::get('/img/{path}', 'ImagesController@show')->where('path', '.*'); +Route::get('/img/{path}', [ImagesController::class, 'show'])->where('path', '.*'); // 500 error