Skip to content

Commit e7405d9

Browse files
committed
moved routes to service provider
1 parent 4ecf042 commit e7405d9

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
2222
- Nothing
2323

2424

25+
## 1.0.1 - 2016-05-26
26+
27+
### Fixed
28+
- Moved routes into MenuManagerServiceProvider so that the package could be easily downloaded from github and pasted over working project.
29+
30+
2531
## 1.0.0 - 2016-05-26
2632

2733
### Added

src/MenuManagerServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public function boot()
3434
public function setupRoutes(Router $router)
3535
{
3636
$router->group(['namespace' => 'Backpack\MenuManager\app\Http\Controllers'], function ($router) {
37-
require __DIR__.'/app/Http/routes.php';
37+
Route::group(['prefix' => 'admin', 'middleware' => ['web', 'auth'], 'namespace' => 'Admin'], function () {
38+
CRUD::resource('menu-item', 'MenuItemCrudController');
39+
});
3840
});
3941
}
4042

src/app/Http/Controllers/Admin/MenuItemCrudController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919
$this->crud->setEntityNameStrings('menu item', 'menu items');
2020

2121
$this->crud->allowAccess('reorder');
22-
$this->crud->enableReorder('name', 1);
22+
$this->crud->enableReorder('name', 2);
2323

2424
$this->crud->addColumn([
2525
'name' => 'name',

src/app/Http/routes.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)