pwweb / artomator

Artomator: Custom commands making life easier for Laravel.
MIT License
4 stars 1 forks source link

Requests should be namespaced not prefixed #4

Closed frankpde closed 5 years ago

frankpde commented 5 years ago

Currently all validation requests are stored in one level with the prefix Validate. This causes issue in case a model is named identical in different namespaces.

E.g.:

App\Models\User App\Models\Address App\Models\User\Address

--> Issue ValidateAddress already exists

App\Models\User\Address is the link table for many to many and needs to be singular, else the eloquent method of assigning an address to the user does not work (tries to access column addresses_id instead of address_id.

rabrowne85 commented 5 years ago

Duplicate of #1

frankpde commented 5 years ago

Issue was due to releases and now fixed in v0.1.1-beta