/** * boot * observing model * */ public static function boot() { parent::boot(); static::addGlobalScope(new ContactScope()); Branch::observe(new BranchObserver()); }