Reputation: 2869
I am new to Laravel php developent. I have alredy existing mysql database. I heard about ignasbernotas/laravel-model-generator
to generate Eloquent models from existing database.It uses php artisan make:models
command to generate models. But while doing I am getting error The "name" argument does not exist.
.
https://packagist.org/packages/ignasbernotas/laravel-model-generator
link will all about I tried.
can anyone here help me about this?
Upvotes: 0
Views: 2547
Reputation: 1
Package ignasbernotas/laravel-model-generator
is abandoned, you should avoid using it.
Use reliese/laravel
instead.
Upvotes: 0
Reputation: 163748
You're definitely using make:model
command. You can't possibly get this error message when using make:models
command from the package.
The problem is you're using this command without specifying model name. So, specify model name:
php artisan make:model Article
But php artisan make:model
will not create a model based on existing BD. It will just create a model stub for you.
https://laravel.com/docs/5.5/eloquent#defining-models
Upvotes: 1