Skip to content

Commit

Permalink
app version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
veneliniliev committed Jan 30, 2017
1 parent 9425300 commit 753aca5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Providers/AdministrationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ public function register()
*/
protected function addAliasMiddleware($name, $class)
{
if (version_compare(app()::VERSION, '5.4', '<')) {
$app = app();

if (version_compare($app::VERSION, '5.4', '<')) {
$this->app['router']->middleware($name, $class);
} else {
$this->app['router']->aliasMiddleware($name, $class);
Expand Down

0 comments on commit 753aca5

Please sign in to comment.