mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
16 lines
281 B
PHP
16 lines
281 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
abstract class Consommable extends Model
|
|
{
|
|
protected string $consommableAttribute = 'code';
|
|
|
|
public function consume()
|
|
{
|
|
$this->{$this->consommableAttribute} = null;
|
|
$this->save();
|
|
}
|
|
}
|