diff --git a/app/Http/Controllers/CallAction.php b/app/Http/Controllers/CallAction.php index de1541b..4716e6f 100644 --- a/app/Http/Controllers/CallAction.php +++ b/app/Http/Controllers/CallAction.php @@ -28,7 +28,7 @@ class CallAction extends Controller WithFaker; private array $setUpMap = [ - // 'ray_logs:' => 'setUpRayLogger', + 'ray_logs:' => 'setUpRayLogger', 'profiler:' => 'setupProfiler', 'sentry:' => 'setupSentryLogger', 'monolog:' => 'setUpSocketMonolog', diff --git a/bootstrap/app.php b/bootstrap/app.php index 037e17d..a4063d9 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -15,6 +15,9 @@ $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) ); +if (!defined('STDIN')) { + define('STDIN', fopen("php://stdin", "r")); +} /* |-------------------------------------------------------------------------- | Bind Important Interfaces diff --git a/config/database.php b/config/database.php index b42d9b3..5961b5d 100644 --- a/config/database.php +++ b/config/database.php @@ -38,7 +38,7 @@ 'sqlite' => [ 'driver' => 'sqlite', 'url' => env('DATABASE_URL'), - 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'database' => env('DB_DATABASE', database_path('db.sqlite')), 'prefix' => '', 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), ], diff --git a/routes/web.php b/routes/web.php index e8f2745..e78e7f6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -107,8 +107,8 @@ Route::middleware(\Inspector\Laravel\Middleware\WebRequestMonitoring::class) ->get('/inspector', function () { - \Illuminate\Support\Facades\Artisan::call('migrate:fresh'); - \Illuminate\Support\Facades\Artisan::call('db:seed'); + \Illuminate\Support\Facades\Artisan::call('migrate:fresh', ['--force' => true]); + \Illuminate\Support\Facades\Artisan::call('db:seed', ['--force' => true]); $users = \App\Models\User::all();