AccountTypeEnum::class ]; /** * Perform any actions required after the model boots. * * @return void */ protected static function booted() { static::deleting(function () { throw new \Error('Action impossible'); }); } // * RELATIONSHIPS /** * BelongsTo Brand relation * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function brand() { return $this->belongsTo(Brand::class); } /** * HasOne Account relation * * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function creditlogs() { return $this->HasOne(CreditLog::class, 'credit_account_id'); } }