@@ -21,7 +21,7 @@ |
||
21 | 21 | public function execute($command, callable $next) |
22 | 22 | { |
23 | 23 | $pipeline = null; |
24 | - DB::transaction(function () use ($next, $command, &$pipeline){ |
|
24 | + DB::transaction(function() use ($next, $command, &$pipeline){ |
|
25 | 25 | $pipeline = $next($command); |
26 | 26 | }); |
27 | 27 | return $pipeline; |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** Notifications Routes **/ |
4 | -Route::group(['middleware' => 'auth', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function () { |
|
4 | +Route::group(['middleware' => 'auth', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function() { |
|
5 | 5 | Route::get('notifications', ['as' => 'notifications.index', 'uses' => 'NotificationsController@index']); |
6 | 6 | Route::get('notifications/{id}/read', ['as' => 'notifications.read', 'uses' => 'NotificationsController@read']); |
7 | 7 | }); |
8 | 8 | |
9 | 9 | /** Some Core Routes for API calls **/ |
10 | 10 | $api = app('Dingo\Api\Routing\Router'); |
11 | -$api->version('v1', function ($api) { |
|
12 | - $api->group(['middleware' => ['api.auth'], 'providers' => ['inSession']], function ($api) { |
|
13 | - $api->group(['prefix' => 'core', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function ($api) { |
|
11 | +$api->version('v1', function($api) { |
|
12 | + $api->group(['middleware' => ['api.auth'], 'providers' => ['inSession']], function($api) { |
|
13 | + $api->group(['prefix' => 'core', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function($api) { |
|
14 | 14 | $api->resource('entity/{id}/fields', 'Core\FieldsController', ['only' => ['index', 'store', 'update', 'destroy']]); |
15 | 15 | $api->put('entity/{id}/order-fields', 'Core\FieldsController@reOrderFieldId'); |
16 | 16 | $api->get('field-type/{type}/form', 'Core\FieldsController@fieldTypeForm'); |
@@ -15,21 +15,21 @@ |
||
15 | 15 | public function boot() |
16 | 16 | { |
17 | 17 | if (!MenuPing::instance('sidebar')) { |
18 | - MenuPing::create('sidebar', function ($menu) { |
|
18 | + MenuPing::create('sidebar', function($menu) { |
|
19 | 19 | $menu->enableOrdering(); |
20 | 20 | $menu->setPresenter('Hechoenlaravel\JarvisFoundation\Menu\Presenters\SidebarMenuPresenter'); |
21 | 21 | }); |
22 | 22 | } |
23 | 23 | if (!MenuPing::instance('config')) { |
24 | - MenuPing::create('config', function ($menu) { |
|
25 | - $menu->dropdown('Configuración', function ($sub) { |
|
24 | + MenuPing::create('config', function($menu) { |
|
25 | + $menu->dropdown('Configuración', function($sub) { |
|
26 | 26 | |
27 | 27 | }, ['icon' => 'fa fa-cogs']); |
28 | 28 | $menu->setPresenter('Hechoenlaravel\JarvisFoundation\Menu\Presenters\SidebarMenuPresenter'); |
29 | 29 | }); |
30 | 30 | } |
31 | 31 | if (!MenuPing::instance('topnav')) { |
32 | - MenuPing::create('topnav', function ($menu) { |
|
32 | + MenuPing::create('topnav', function($menu) { |
|
33 | 33 | $menu->enableOrdering(); |
34 | 34 | }); |
35 | 35 | } |