Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lumen Class path.database does not exist #2

Open
j3rrey opened this issue Aug 22, 2019 · 1 comment
Open

Lumen Class path.database does not exist #2

j3rrey opened this issue Aug 22, 2019 · 1 comment

Comments

@j3rrey
Copy link

j3rrey commented Aug 22, 2019

Trying to run this in Lumen gives me on php artisan make app....

Class path.database does not exist

@j3rrey
Copy link
Author

j3rrey commented Aug 22, 2019

fixed with:
$this->app->instance('path.database', app()->basePath() . DIRECTORY_SEPARATOR . 'config');
Provided you have a database.php in your config folder.

Altho there is an issue, Factories are being created in the model Namespace
And it seems this generator is not smart enough to detect the different types... :(

e.g.
'created_at' => $faker->word, 'updated_at' => $faker->word,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant