|
@@ -1,13 +1,13 @@ |
|
|
block discarded – undo |
|
1
|
1
|
<?php |
|
2
|
2
|
|
|
3
|
|
-$router->bind('block', function ($id) { |
|
|
3
|
+$router->bind('block', function($id) { |
|
4
|
4
|
return app(\Modules\Block\Repositories\BlockRepository::class)->find($id); |
|
5
|
5
|
}); |
|
6
|
|
-$router->group(['prefix' =>'/block'], function () { |
|
7
|
|
- get('blocks', ['as' => 'admin.block.block.index', 'uses' => 'BlockController@index', 'middleware' => 'can:block.blocks.index']); |
|
8
|
|
- get('blocks/create', ['as' => 'admin.block.block.create', 'uses' => 'BlockController@create']); |
|
9
|
|
- post('blocks', ['as' => 'admin.block.block.store', 'uses' => 'BlockController@store']); |
|
10
|
|
- get('blocks/{block}/edit', ['as' => 'admin.block.block.edit', 'uses' => 'BlockController@edit']); |
|
11
|
|
- put('blocks/{block}', ['as' => 'admin.block.block.update', 'uses' => 'BlockController@update']); |
|
12
|
|
- delete('blocks/{block}', ['as' => 'admin.block.block.destroy', 'uses' => 'BlockController@destroy']); |
|
|
6
|
+$router->group([ 'prefix' =>'/block' ], function() { |
|
|
7
|
+ get('blocks', [ 'as' => 'admin.block.block.index', 'uses' => 'BlockController@index', 'middleware' => 'can:block.blocks.index' ]); |
|
|
8
|
+ get('blocks/create', [ 'as' => 'admin.block.block.create', 'uses' => 'BlockController@create' ]); |
|
|
9
|
+ post('blocks', [ 'as' => 'admin.block.block.store', 'uses' => 'BlockController@store' ]); |
|
|
10
|
+ get('blocks/{block}/edit', [ 'as' => 'admin.block.block.edit', 'uses' => 'BlockController@edit' ]); |
|
|
11
|
+ put('blocks/{block}', [ 'as' => 'admin.block.block.update', 'uses' => 'BlockController@update' ]); |
|
|
12
|
+ delete('blocks/{block}', [ 'as' => 'admin.block.block.destroy', 'uses' => 'BlockController@destroy' ]); |
|
13
|
13
|
}); |