Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
8247d835
Commit
8247d835
authored
Oct 28, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding the route bind
parent
62c1dc80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
MediaController.php
Http/Controllers/Admin/MediaController.php
+3
-2
routes.php
Http/routes.php
+2
-0
No files found.
Http/Controllers/Admin/MediaController.php
View file @
8247d835
...
...
@@ -2,6 +2,7 @@
use
Illuminate\Support\Facades\View
;
use
Modules\Core\Http\Controllers\Admin\AdminBaseController
;
use
Modules\Media\Entities\File
;
use
Modules\Media\Repositories\FileRepository
;
class
MediaController
extends
AdminBaseController
...
...
@@ -58,10 +59,10 @@ class MediaController extends AdminBaseController
/**
* Show the form for editing the specified resource.
*
* @param
int $id
* @param
File $file
* @return Response
*/
public
function
edit
(
$id
)
public
function
edit
(
File
$file
)
{
return
View
::
make
(
'media.edit'
);
}
...
...
Http/routes.php
View file @
8247d835
<?php
$router
->
model
(
'media'
,
'Modules\Media\Entities\File'
);
$router
->
group
([
'prefix'
=>
LaravelLocalization
::
setLocale
(),
'before'
=>
'LaravelLocalizationRedirectFilter|auth.admin|permissions'
],
function
(
$router
)
{
$router
->
group
([
'prefix'
=>
Config
::
get
(
'core::core.admin-prefix'
),
'namespace'
=>
'Modules\Media\Http\Controllers'
],
function
(
$router
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment