Skip to content

Commit 25d1e94

Browse files
authored
Fix introduced bug
1 parent d350682 commit 25d1e94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DevRouteProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Tobya\DevRoute;
44

55
use Illuminate\Support\Facades\App;
6+
use Illuminate\Support\Str;
67
use Illuminate\Support\ServiceProvider;
78

89
class DevRouteProvider extends ServiceProvider
@@ -30,7 +31,7 @@ public function register()
3031
public function boot()
3132
{
3233
// load test routes when local dev
33-
if (Str::of( Config('app.env'))->lower()){
34+
if (Str::of( Config('app.env'))->lower() != 'production'){
3435
\Route::prefix('dev')
3536
->middleware('web')
3637
->group(base_path('routes/devroutes.php'));

0 commit comments

Comments
 (0)