thedevdojo / chatter

Chatter is a Simple Laravel Forum Package
https://devdojo.com/forums
MIT License
898 stars 294 forks source link

How to publish controllers or how to override them? #233

Open eichgi opened 5 years ago

eichgi commented 5 years ago

I would like to override some actions that the package's controllers handle, but so far I don't know which is the best way to accomplish this, I have already published the files and overrided views and add some features I need, but for example the table chatter_discussions has a field called "sticky" which I supposed is for having specific discussions at the the beginning of the list, but then I realized none controller handle any behavior related to the sticky field. So with this issue, how can I override the controller which handles the discussions list?

Excellent package, kind of easy to grasp! Please let me know any idea.