You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say we have a comments table and a Comment model that extends model, but we set base_models = true in models.php
That will create another Comment model in App\Models\Base
So we now have 2 classes named Comment in different namespaces
I think it would be nice if we could specify the name of the class to be used on the App\Models\Base\ namespace.
I would use BaseComment, and have Comment extend BaseComment, while BaseComment extends Model.
That way each has its own distinct class name, and we can regenerate the Base files whenever, and it makes Find & Replace easier.
What do you think?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Say we have a comments table and a Comment model that extends model, but we set base_models = true in models.php
That will create another Comment model in App\Models\Base
So we now have 2 classes named Comment in different namespaces
I think it would be nice if we could specify the name of the class to be used on the App\Models\Base\ namespace.
I would use BaseComment, and have Comment extend BaseComment, while BaseComment extends Model.
That way each has its own distinct class name, and we can regenerate the Base files whenever, and it makes Find & Replace easier.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions