Adedoyin Akande
Jan 25, 2021

--

Okay after looking into it, in some way this is my bad... There are several ways to use the boot function. Before 7/8: boot(){} or bootTraitName(){} but after 7/8: booted(){} was introduced.

In 7/8 calling parent::boot(); in bootTraitName(){} is a recursive operation.

So in summary if using bootTraitName(){} don't call the parent::boot(); but if using boot(){} or booted(){} it's fine to call parent::boot();

--

--