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

Adding the route bind

parent 62c1dc80
......@@ -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');
}
......
<?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)
......
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