diff options
-rw-r--r-- | composer.json | 2 | ||||
-rw-r--r-- | src/CamilStaps/BotleaguesApi/BotleaguesApiServiceProvider.php | 4 | ||||
-rw-r--r-- | src/routes.php | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/composer.json b/composer.json index ff5330d..6dafa2f 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ } ], "require": { - "php": ">=5.4.0", + "php": ">=5.5.0", "illuminate/support": "5.0.*", "dingo/api": "0.9.*@dev" }, 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) { |