Commit 8247d835 authored by Nicolas Widart's avatar Nicolas Widart

Adding the route bind

parent 62c1dc80
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
use Illuminate\Support\Facades\View; use Illuminate\Support\Facades\View;
use Modules\Core\Http\Controllers\Admin\AdminBaseController; use Modules\Core\Http\Controllers\Admin\AdminBaseController;
use Modules\Media\Entities\File;
use Modules\Media\Repositories\FileRepository; use Modules\Media\Repositories\FileRepository;
class MediaController extends AdminBaseController class MediaController extends AdminBaseController
...@@ -58,10 +59,10 @@ class MediaController extends AdminBaseController ...@@ -58,10 +59,10 @@ class MediaController extends AdminBaseController
/** /**
* Show the form for editing the specified resource. * Show the form for editing the specified resource.
* *
* @param int $id * @param File $file
* @return Response * @return Response
*/ */
public function edit($id) public function edit(File $file)
{ {
return View::make('media.edit'); return View::make('media.edit');
} }
......
<?php <?php
$router->model('media', 'Modules\Media\Entities\File');
$router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin|permissions'], function($router) $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) $router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Media\Http\Controllers'], function($router)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment