Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Overriding / Extending models

Pete Stoves   ( User )

Commented 6 years ago

Hello.


I'm following this project with great interest and am keen to learn about tailoring for our own use. I'm from a yii2 background but can see the appeal of the laravel framework.


My question is this.


Is there an approved way to override or extend models (and their views as necessary) in Akaunting.
A simple goal would be add a category or extra info to a Vendor object. One could extend the Vendor model as MyVendor, but the controller would still Vendor::create ignoring the new properties in MyVendor.


Is there an official way to overcome this or could there be in the future maybe with amodel creator factory ?


I suspect this would pave the way for many interesting changes which mayb eventually be incorporated in the official code base.


 


Thanks

Denis Dulici   ( Admin )

Commented 6 years ago

Hello Pete,


This article will answer your questions.


Regards

Sandeep Marwal   ( User )

Commented 1 year ago

@denis this article link is not working.

Thanks

Please login or register to leave a response.

Showing 1 to 3 of 3 discussions