| 123456789101112131415161718192021222324252627282930 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class OwnerLogisticPrintTemplate extends Model
- {
- use ModelLogChanging;
- public $timestamps = false;
- protected $fillable = ['owner_id','logistic_id','print_template_id'];
- public function printTemplate(): BelongsTo
- {
- return $this->belongsTo(PrintTemplate::class);
- }
- public function owner():BelongsTo
- {
- return $this->belongsTo(Owner::class);
- }
- public function logistic():BelongsTo
- {
- return $this->belongsTo(Logistic::class);
- }
- }
|