mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
An updated set of source files and initialization was provided by streamline to address issues observed during initial testing. These files have been updated in order to generate a new set of app images.
27 lines
643 B
PHP
27 lines
643 B
PHP
<?php
|
|
|
|
namespace Streamline\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use OwenIt\Auditing\Contracts\Auditable;
|
|
|
|
class EyeGlasses extends Model implements Auditable {
|
|
use HasFactory;
|
|
protected $table = 'eye_glasses';
|
|
// use laravel-auditing to track database changes
|
|
use \OwenIt\Auditing\Auditable;
|
|
|
|
// use for soft deletes
|
|
use SoftDeletes;
|
|
|
|
public static function boot() {
|
|
parent::boot();
|
|
|
|
self::updated(function($model){
|
|
save_new_stock_level($model->id, 7);
|
|
});
|
|
}
|
|
}
|