1688 order reference

This commit is contained in:
Jia Sheng
2024-07-14 19:15:43 +08:00
parent 63118efc0b
commit cb7c38a50d
16 changed files with 350 additions and 5 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphTo;
class ModelAttribute extends Model
{
protected $table = 'model_attributes';
protected $fillable = [
"name",
"value"
];
protected $casts = [
"value" => "array"
];
public function owner(): morphTo
{
return $this->morphTo();
}
}