-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Seeding fails #52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Are you using the correct connection? |
I think so ... The user model (reused from Laravel) is correctly seeded. My own model fails ... This is my DatabaseSeeder class:
And this is the ArticleTableSeeder:
And this is the Article model:
|
Seeding works for me. |
Problem solved: my Article model extended from \Eloquent. When removing the backslash I can seed using the Article model. Thanks for your time. |
hi Even i am facing the same problem can u tell where i need change which file??? mac:FASE kakashi$ php artisan authentication:install [ErrorException] |
hi i am waiting for the response........ |
Are you always so impatient? Read my answer on how I solved it. It's probably something in your code ... |
I added a troubleshooting section to the readme that explains this error: https://github.com/jenssegers/laravel-mongodb#troubleshooting |
When I try to seed the MongoDB I get the following error:
[ErrorException]
Argument 2 passed to Illuminate\Database\Query\Builder::__construct() must
be an instance of Illuminate\Database\Query\Grammars\Grammar, null given, c
alled in /home/bronx/www/zumuta/laravel/vendor/laravel/framework/src/Illumi
nate/Database/Eloquent/Model.php on line 1514 and defined
The text was updated successfully, but these errors were encountered: