Overriding / Extending models

Yayınlanan kategoriDevelopment
  • Pete Stoves    ( User ) 2 years ago


    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.



  • Denis Duliçi    ( Admin ) 2 years ago

    Hello Pete,

    This article will answer your questions.


Lütfen, cevap vermek için giriş yapın veya kayıt olun.