@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** Notifications Routes **/ |
4 | -Route::group(['middleware' => 'auth', 'prefix' => 'notifications', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function () { |
|
4 | +Route::group(['middleware' => 'auth', 'prefix' => 'notifications', 'namespace' => 'Hechoenlaravel\JarvisFoundation\Http\Controllers'], function() { |
|
5 | 5 | Route::get('/', ['as' => 'notifications', 'uses' => 'NotificationsController@index']); |
6 | 6 | Route::get('{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'); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | public function getOpenTagWrapper() |
13 | 13 | { |
14 | - return PHP_EOL . '<ul class="sidebar-menu">' . PHP_EOL; |
|
14 | + return PHP_EOL.'<ul class="sidebar-menu">'.PHP_EOL; |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
@@ -20,14 +20,14 @@ discard block |
||
20 | 20 | public function getMenuWithDropDownWrapper($item) |
21 | 21 | { |
22 | 22 | return ' |
23 | - <li class="treeview' . $this->getActiveStateOnChild($item, ' active') . '"> |
|
23 | + <li class="treeview' . $this->getActiveStateOnChild($item, ' active').'"> |
|
24 | 24 | <a href="#"> |
25 | - ' . $item->getIcon() . ' |
|
26 | - <span>' . $item->title . '</span> |
|
25 | + ' . $item->getIcon().' |
|
26 | + <span>' . $item->title.'</span> |
|
27 | 27 | <i class="fa fa-angle-left pull-right"></i> |
28 | 28 | </a> |
29 | 29 | <ul class="treeview-menu"> |
30 | - ' . $this->getChildMenuItems($item) . ' |
|
30 | + ' . $this->getChildMenuItems($item).' |
|
31 | 31 | </ul> |
32 | 32 | </li>'; |
33 | 33 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | $this->publishes([ |
55 | 55 | __DIR__.'/../../resources/assets' => public_path('vendor/jplatform'), |
56 | 56 | ], 'public'); |
57 | - app('Dingo\Api\Auth\Auth')->extend('inSession', function ($app) { |
|
57 | + app('Dingo\Api\Auth\Auth')->extend('inSession', function($app) { |
|
58 | 58 | return app('jarvis.auth.provider'); |
59 | 59 | }); |
60 | 60 | } |
@@ -15,14 +15,14 @@ |
||
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'); |