Jobs
This commit is contained in:
@@ -12,18 +12,9 @@ class ImportLog extends Model
|
||||
{
|
||||
use HasFactory, SoftDeletes, Blameable;
|
||||
|
||||
protected static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
// protected $keyType = 'string';
|
||||
|
||||
static::creating(function ($model) {
|
||||
try {
|
||||
$model->uuid = (string) Str::orderedUuid(); // generate uuid
|
||||
} catch (\Exception $e) {
|
||||
abort(500, $e->getMessage());
|
||||
}
|
||||
});
|
||||
}
|
||||
// public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'importable_type',
|
||||
@@ -34,6 +25,19 @@ class ImportLog extends Model
|
||||
'progress',
|
||||
];
|
||||
|
||||
// protected static function boot()
|
||||
// {
|
||||
// parent::boot();
|
||||
|
||||
// static::creating(function ($model) {
|
||||
// try {
|
||||
// $model->id = (string) Str::orderedUuid(); // generate uuid
|
||||
// } catch (\Exception $e) {
|
||||
// abort(500, $e->getMessage());
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
public function files()
|
||||
{
|
||||
return $this->morphMany(File::class, 'fileable');
|
||||
|
||||
Reference in New Issue
Block a user