public static function boot() { parent::boot(); RoyaltyShare::deleting(function ($royaltyShare) { $royaltyShare->deleted = 1; $royaltyShare->update(); }); }
public static function boot() { parent::boot(); RoyaltyProvider::deleting(function ($royaltyProvider) { $royaltyProvider->deleted = 1; $royaltyProvider->update(); }); }
public static function boot() { parent::boot(); Deal::deleting(function ($deal) { $deal->deleted = 1; $deal->update(); }); }
public static function boot() { parent::boot(); Company::created(function ($company) { AuthorizationToken::createAuthorizationToken($company); Credit::createCredit($company->id); Credit::createCredit($company->id, Credit::PAID); }); }
public static function boot() { parent::boot(); User::created(function ($user) { if ($user->type == User::TYPE_PAYEE) { AuthorizationToken::createAuthorizationToken($user); } }); }