Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8ad4b6f3
authored
Sep 12, 2020
by
Jonathan Reinink
Committed by
GitHub
Sep 12, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #82 from KABBOUCHI/patch-1
Fix images route
2 parents
e304a993
b1e65c77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
routes/web.php
routes/web.php
View file @
8ad4b6f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment