| 12345678910111213141516171819202122232425 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\HasMany;
- class PrintTemplate extends Model
- {
- use ModelLogChanging;
- protected $fillable = ['name','value'];
- protected $casts = [
- 'value' => 'array'
- ];
- public function ownerLogisticPrintTemplate(): HasMany
- {
- return $this->hasMany(OwnerLogisticPrintTemplate::class,'print_template_id','id');
- }
- }
|