Skip to content

Commit

Permalink
Bug in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrothmann1 committed Sep 3, 2017
1 parent 47fe96e commit 86b1dfc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Routes/routes.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php
Route::post(config('rocketframework.language.url'),'IanRothmann\RocketLaravelAppFramework\Language\RocketLanguage@save')
->middleware(config('rocketframework.language.middleware'))
->name(config('rocketframework.language.routename'));
if (Config::has('rocketframework.language.url'))
{
Route::post(config('rocketframework.language.url'),'IanRothmann\RocketLaravelAppFramework\Language\RocketLanguage@save')
->middleware(config('rocketframework.language.middleware'))
->name(config('rocketframework.language.routename'));
}

0 comments on commit 86b1dfc

Please sign in to comment.