format('Y-m-d H:i:s'); } public function __construct(array $attributes = []) { parent::__construct($attributes); $this->setTable(plugin()->webman->config('database.qrcode_batch_table')); } public function qrcode_owner(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.qrcode_owner_model'), 'owner_id'); } public function qrcode(): HasMany { return $this->hasMany(plugin()->webman->config('database.qrcode_model'), 'batch_id'); } }