You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I modify LaravelAutomaticMigrationsProvider class like this:
...
if ($this->app->runningInConsole()) {
$this->commands([
MakeAModelCommand::class,
]);
}
$this->commands([
MigrateAutoCommand::class,
]);
...
It help to migrate an exist database where I can't run OS command.
I can use Artisan::call command browser
Route::get('/migrate', function() {
Artisan::call('migrate:auto');
return "Your database migrated";
});
Hi!
If I modify LaravelAutomaticMigrationsProvider class like this:
...
if ($this->app->runningInConsole()) {
$this->commands([
MakeAModelCommand::class,
]);
}
...
It help to migrate an exist database where I can't run OS command.
I can use Artisan::call command browser
Route::get('/migrate', function() {
Artisan::call('migrate:auto');
return "Your database migrated";
});
I use this doc: https://nono.ma/laravel-artisan-the-command-does-not-exist
Nándi
The text was updated successfully, but these errors were encountered: