@@ -50,13 +50,13 @@ discard block |
||
50 | 50 | public function boot() |
51 | 51 | { |
52 | 52 | $this->publishes([ |
53 | - __DIR__ . '/../Resources/views' => base_path('resources/views/asgard/blog'), |
|
53 | + __DIR__.'/../Resources/views' => base_path('resources/views/asgard/blog'), |
|
54 | 54 | ]); |
55 | 55 | |
56 | 56 | $this->publishConfig('blog', 'config'); |
57 | 57 | $this->publishConfig('blog', 'permissions'); |
58 | 58 | $this->publishConfig('blog', 'settings'); |
59 | - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); |
|
59 | + $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); |
|
60 | 60 | |
61 | 61 | $this->registerThumbnails(); |
62 | 62 | $this->app[TagManager::class]->registerNamespace(new Post()); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | private function registerBindings() |
77 | 77 | { |
78 | - $this->app->bind(PostRepository::class, function () { |
|
78 | + $this->app->bind(PostRepository::class, function() { |
|
79 | 79 | $repository = new EloquentPostRepository(new Post()); |
80 | 80 | |
81 | 81 | if (config('app.cache') === false) { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | return new CachePostDecorator($repository); |
86 | 86 | }); |
87 | 87 | |
88 | - $this->app->bind(CategoryRepository::class, function () { |
|
88 | + $this->app->bind(CategoryRepository::class, function() { |
|
89 | 89 | $repository = new EloquentCategoryRepository(new Category()); |
90 | 90 | |
91 | 91 | if (config('app.cache') === false) { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | 'fit' => [ |
103 | 103 | 'width' => '150', |
104 | 104 | 'height' => '150', |
105 | - 'callback' => function ($constraint) { |
|
105 | + 'callback' => function($constraint) { |
|
106 | 106 | $constraint->upsize(); |
107 | 107 | }, |
108 | 108 | ], |
@@ -15,12 +15,12 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public function extendWith(\Maatwebsite\Sidebar\Menu $menu) |
17 | 17 | { |
18 | - $menu->group(trans('core::sidebar.content'), function (Group $group) { |
|
19 | - $group->item(trans('blog::blog.title'), function (Item $item) { |
|
18 | + $menu->group(trans('core::sidebar.content'), function(Group $group) { |
|
19 | + $group->item(trans('blog::blog.title'), function(Item $item) { |
|
20 | 20 | $item->icon('fa fa-copy'); |
21 | 21 | $item->weight(15); |
22 | 22 | |
23 | - $item->item(trans('blog::post.title.post'), function (Item $item) { |
|
23 | + $item->item(trans('blog::post.title.post'), function(Item $item) { |
|
24 | 24 | $item->icon('fa fa-copy'); |
25 | 25 | $item->weight(0); |
26 | 26 | $item->append('admin.blog.post.create'); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $this->auth->hasAccess('blog.posts.index') |
30 | 30 | ); |
31 | 31 | }); |
32 | - $item->item(trans('blog::category.title.category'), function (Item $item) { |
|
32 | + $item->item(trans('blog::category.title.category'), function(Item $item) { |
|
33 | 33 | $item->icon('fa fa-file-text'); |
34 | 34 | $item->weight(1); |
35 | 35 | $item->route('admin.blog.category.index'); |