Comments (5)
@crynobone please do not close this ticket or convert it to a discussion because this is a genuine issue. @taylorotwell, could you please look into this? The team is closing it without any explanation.
from framework.
Since you're already operating in an artisan context, it's not really the place to run these. I suggest using calling the DB builder directly if you need to migrate data.
from framework.
@driesvints There are many scenarios where we need to run interactive commands within migrations; calling the Artisan command user:create
is just one example to illustrate the issue. Additionally, it's important to note that using db:seed
doesn't track which seeders have been executed, leading to a risk of duplicating seeders. Unlike migrations, which are tracked in the migrations
table to log which migrations have already been applied, seeders lack this mechanism.
I think it's unfair to close the ticket without proper investigation or at least escalating it, as this is a genuine issue. Forcing a specific business rule on everyone isn't ideal. Honestly, this behaviour might push me away from using Laravel.
ping @taylorotwell
from framework.
I'm sorry but we don't support such a scenario. It was never intended to call artisan commands from migrations.
from framework.
I'm sorry but we don't support such a scenario. It was never intended to call artisan commands from migrations.
Well, then you are missing a lot.
from framework.
Related Issues (20)
- Eager Loading a relation that calls another relation returns incorrect results HOT 5
- Unsupported mixin objects with dependencies HOT 1
- Partial translation with validation rule required_if
- Misleading error message when using auth:sanctum middleware HOT 1
- [11.11] Cannot bind an instance to a static closure HOT 5
- [10.x] collection shift can not handle an empty collection HOT 1
- Validator Error message not being created correctly HOT 8
- The Laravel new command does not work when Herd is not installed HOT 3
- Job gets stuck in pending when dependent model is deleted inside the handle method. HOT 2
- Laravel 11.10 "artisan about" issue HOT 2
- SQLite queries generated by Eloquent with non existing columns in WHERE clause should generate an error/exception but don't HOT 1
- Laravel 10 mailer failover inline image crackd. when the first mail send fail HOT 3
- `Bus::chain` Skipping jobs with readonly non-scalar properties HOT 3
- RequiredIf validator with multiple values fails validating HOT 1
- Incorrect Sorting with UUID Data Type in MariaDB HOT 11
- orWhere ignore the first condition (where)
- Web and API non existing route files usage does not trigger an error when loaded from bootstrap/app file HOT 1
- `view()` is rendered when passed as component attribute HOT 1
- 2006 MySQL server has gone away in queue:work scenario HOT 1
- Closure in job chain is not called if preceded by job batch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.