diff --git a/composer.json b/composer.json index d38fa9f..781c5b8 100644 --- a/composer.json +++ b/composer.json @@ -8,13 +8,13 @@ } ], "require": { - "php": ">=5.3.0", - "illuminate/contracts": "5.1.*", - "illuminate/database": "5.1.*", - "illuminate/http": "5.1.*", - "illuminate/routing": "5.1.*", - "illuminate/support": "5.1.*", - "illuminate/validation": "5.1.*" + "php": ">=5.5.9", + "illuminate/contracts": "5.2.*", + "illuminate/database": "5.2.*", + "illuminate/http": "5.2.*", + "illuminate/routing": "5.2.*", + "illuminate/support": "5.2.*", + "illuminate/validation": "5.2.*" }, "autoload": { "psr-4": { diff --git a/src/Middleware/ShareMessagesFromSession.php b/src/Middleware/ShareMessagesFromSession.php index 2896301..931233d 100644 --- a/src/Middleware/ShareMessagesFromSession.php +++ b/src/Middleware/ShareMessagesFromSession.php @@ -3,11 +3,10 @@ namespace Ghunti\LaravelBase\Middleware; use Closure; -use Illuminate\Contracts\Routing\Middleware; use Illuminate\Support\MessageBag; use Illuminate\Contracts\View\Factory as ViewFactory; -class ShareMessagesFromSession implements Middleware +class ShareMessagesFromSession { /* Create a new error binder instance. * diff --git a/src/ServiceProviders/LaravelBaseServiceProvider.php b/src/ServiceProviders/LaravelBaseServiceProvider.php index e825447..977798a 100755 --- a/src/ServiceProviders/LaravelBaseServiceProvider.php +++ b/src/ServiceProviders/LaravelBaseServiceProvider.php @@ -25,7 +25,7 @@ class LaravelBaseServiceProvider extends ServiceProvider public function register() { //Override Laravel Redirect - $this->app->bindShared( + $this->app->singleton( 'redirect', function ($app) { $redirector = new Redirector($app->url);