Forum

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

New Discussion

New column in core tables

Zheng Hao Seow   ( User )

Commented 6 years ago

 Is there a way to do the following in modules without affecting core files?


 


1. New column in core tables


2. New relationship from new Model to core Model

Marco Bridge   ( User )

Commented 6 years ago

Instead of changing the core, you should extend it. Create a new table listen to the Eloquent events https://laravel.com/docs/5.4/eloquent#events

Zheng Hao Seow   ( User )

Commented 6 years ago

Yeah, found out the observer way so i guess this is the only way to do it.

Henry Nanne   ( User )

Commented 5 years ago

The retrieved event, only is available in laravel 5.5, is an usefull event :(

Please login or register to leave a response.

Showing 1 to 4 of 4 discussions