yep, that migration part is a tricky one. specially when moving from branch to branch, your database in one branch can be significantly ( and contradiction ) different than in the other branch , i think this may be a subject better tackled by an artisan command that ( dumps and stashes ) the old branch database and ( creates the new branch database ) ... food for thought
@TalesGrechi3 ай бұрын
I was thinking the same!
@imqqmi3 ай бұрын
Should work if the migration id/version is stored in database. Migration could rollback/forward as required. When automated for dev env could be made seamless.
@codewithfongoh3 ай бұрын
Thank you for sharing 😊
@francescoleto28233 ай бұрын
Good point!
@imnash_on_E3 ай бұрын
Sir Laravel Daily, should I do this? public function __invoke(User $user, Request $request) Or this? public function __invoke(Request $request, User $user)
@LaravelDaily3 ай бұрын
I think both could work
@krekas3 ай бұрын
Do the second
@imnash_on_E3 ай бұрын
Thank you
@MrDhump2 ай бұрын
2nd one seems good to me.
@ThalisUmobi3 ай бұрын
That rollback thing seems to me super optimistic, i really don't think the effort worth it. The single action controller seems to me like an anti-pattern. The api route versioning is money though, use it, and you will thank yourself very soon.
@khangle68723 ай бұрын
Single action controller is becoming the industry standard in all languages
@ThalisUmobi3 ай бұрын
@@khangle6872 Together with fat controllers/lean models? I mean, it seems to me that if the controller is slim, single action controllers don't bring much to the table.