uuid = (string) Str::orderedUuid(); // generate uuid } catch (\Exception $e) { abort(500, $e->getMessage()); } }); } protected $fillable = [ 'importable_type', 'importable_id', 'type', 'file_path', 'status', 'progress', ]; public function files() { return $this->morphMany(File::class, 'fileable'); } }