Fix images route

This commit is contained in:
Georges KABBOUCHI 2020-09-12 14:22:16 +03:00 committed by GitHub
parent e304a99333
commit b1e65c7716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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