Return to homepage

Bootable traits in Laravel

1 episode
6 mins

About this snippet

If you need to register something within the boot() method of a model, here's a quick tip to do this within a trait if needed.

Your teacher

Alex Garrett-Smith
Alex Garrett-Smith

Hey, I'm the founder of Codecourse!

Want to stay in the loop about new content?
Of course you do.

© 2023 Codecourse Ltd. All Rights Reserved. Born in the UK.