wintercms / winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
https://wintercms.com
MIT License
1.36k stars 192 forks source link

Add boot/initialize traits methods to backend controller #1113

Closed mjauvin closed 5 months ago

mjauvin commented 5 months ago

Allow traits's initialize/boot methods to be called on Traits used by the Backend controller (similar to Eloquent Model).

LukeTowers commented 5 months ago

What's the difference between the bootTrait() and initializeTrait() methods?

mjauvin commented 5 months ago

I am now using a behavior instead as suggested.

Thanks.