use Illuminate\Foundation\Application; in Lumen #36088
Unanswered
nbk-kolyan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i recently found that Illuminate\Database\Eloquent\Factories\Factory class
uses
use Illuminate\Contracts\Foundation\Application;
which not exists in Lumen projects
This class then used in try - catch block and that's why we don't see error
So in fact application works:
Use dynamic app namespace in Eloquent Factory instead of static App\
PR2341dfe
Taylor forgot about lumen framework
Do you guys thinks that its ok - because app works and no exceptions.
Or we can just use Contract(interface) instead of Concrete Application class?
Btw in all other places in framework there is
Illuminate\Contracts\Foundation\Application
(var blocks, return type etc) usageonly in tests folder there is concrete
Illuminate\Foundation\Application
Beta Was this translation helpful? Give feedback.
All reactions