diff options
author | Camil Staps | 2015-05-24 13:04:03 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-24 13:04:03 +0200 |
commit | 718d06765565ec1d45ec0bb63f0c8030b46c8d55 (patch) | |
tree | 5e4bb277dd24c10af1eed3693b99823994108059 /src | |
parent | Disable laravel session cookie (diff) |
PHP 5.5 requirement for empty(<some-function>); cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php | 4 | ||||
-rw-r--r-- | src/routes.php | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php b/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php index bb90671..cbedf9f 100644 --- a/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php +++ b/src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php @@ -21,9 +21,6 @@ class BotleaguesApiServiceProvider extends ServiceProvider { */ public function boot() { - #$this->package('camil-staps/botleagues-api', null, __DIR__.'/../..'); - #$this->loadAutoloader(base_path('vendor')); - $this->loadViewsFrom(__DIR__ . '/../../views', 'botleagues-api'); $this->publishes([ __DIR__ . '/../../views' => base_path('resources/view/vendor/botleagues-api')], 'views'); @@ -31,7 +28,6 @@ class BotleaguesApiServiceProvider extends ServiceProvider { include __DIR__ . '/../../filters.php'; - $api = app('api.router'); include __DIR__ . '/../../routes.php'; // To allow loading API requests from the specified domain diff --git a/src/routes.php b/src/routes.php index d424db8..b11e2ff 100644 --- a/src/routes.php +++ b/src/routes.php @@ -1,4 +1,5 @@ <?php +$api = app('api.router'); Route::group(['https'], function() use ($api) { $api->version('v1', ['protected' => false], function ($api) { |