Eloquent-Model-Generator icon indicating copy to clipboard operation
Eloquent-Model-Generator copied to clipboard

Auto-generates all Eloquent models from the database in a Laravel project.

Results 8 Eloquent-Model-Generator issues
Sort by recently updated
recently updated
newest added

If the tables in the database will be in upcase routine converted the name of the relationship role in not nice standard

Method User11001\EloquentModelGenerator\Console\GenerateModelsCommand::handle() does not exist

Hi, Firstly thank you, the code works very well, especially regarding foreign-key relations. It would be very handy for us if we could add a prefix/suffix to class names, so...

It should include by default the option of "SoftDelete" when it is automatically detected that the field "deleted_at"

Hi, After I generate, name method was dublicate ex: public function affiliateCustomerInvites() { return $this->hasMany(\App\Models\AffiliateCustomerInvite::class, 'customer_id', 'id'); } public function affiliateCustomerInvites() { return $this->hasMany(\App\Models\AffiliateCustomerInvite::class, 'inviter_id', 'id'); }

When generating models it would be great to exclude the database prefix from the class names.

After running the following migration, I get an invalid model generated. I suggest the issue is in the looping logic in User11001\EloquentModelGenerator\Console\GenerateModelsCommand::addManyToManyRules() **Migration** ` Schema::create('boma_coa_categories', function(Blueprint $table) { $table->increments('id'); $table->string('name');...