@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | Route::group([ |
5 | 5 | 'prefix' => config('starter-kit.routes.prefix'), |
6 | 6 | 'namespace' => 'Raystech\StarterKit\Http\Controllers' |
7 | -], function(){ |
|
7 | +], function() { |
|
8 | 8 | |
9 | 9 | Route::get('ping', function() { |
10 | 10 | $config = config('starter-kit'); |
@@ -12,5 +12,5 @@ discard block |
||
12 | 12 | return 'received'; |
13 | 13 | }); |
14 | 14 | |
15 | - Route::resource('posts','PostController', [ 'as' => config('starter-kit.routes.name_prefix') ]); |
|
15 | + Route::resource('posts', 'PostController', ['as' => config('starter-kit.routes.name_prefix')]); |
|
16 | 16 | }); |
17 | 17 | \ No newline at end of file |
@@ -64,10 +64,10 @@ discard block |
||
64 | 64 | // Publishing the configuration file. |
65 | 65 | echo "Publishing StarterKit Config ...\n"; |
66 | 66 | $this->publishes([ |
67 | - __DIR__ . '/../config/starter-kit.php' => config_path('starter-kit.php'), |
|
67 | + __DIR__.'/../config/starter-kit.php' => config_path('starter-kit.php'), |
|
68 | 68 | ], 'config'); |
69 | 69 | |
70 | - $this->mergeConfigFrom(__DIR__ . '/../config/starter-kit.php', 'StarterKit'); |
|
70 | + $this->mergeConfigFrom(__DIR__.'/../config/starter-kit.php', 'StarterKit'); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | public function register() |
79 | 79 | { |
80 | 80 | // Register the service the package provides. |
81 | - $this->app->singleton('StarterKit', function ($app) { |
|
81 | + $this->app->singleton('StarterKit', function($app) { |
|
82 | 82 | return new StarterKit; |
83 | 83 | }); |
84 | 84 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | public function loadHelpers() { |
99 | - foreach (glob(__DIR__ . '/Helpers/*.php') as $filename) { |
|
99 | + foreach (glob(__DIR__.'/Helpers/*.php') as $filename) { |
|
100 | 100 | require_once($filename); |
101 | 101 | } |
102 | 102 | } |