/**
* If not in the admin, boot the traits of the model
*
* @return void
*/
protected static function bootTraits()
{
$segment = Request::segment(1);
if ($segment == config('bumble.admin_prefix') && self::enableTraits() == true) {
parent::bootTraits();
} elseif ($segment !== config('bumble.admin_prefix')) {
parent::bootTraits();
}
// Boot soft-delete trait all the time
if (method_exists(get_called_class(), $method = 'bootSoftDeletes')) {
forward_static_call([get_called_class(), $method]);
}
}