| 12345678910111213141516171819202122232425 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class TerminalPrinterLogistic extends Model
- {
- use ModelLogChanging;
- protected $fillable = ['terminal_printer_id','logistic_id'];
- public function logistic(): BelongsTo
- {
- return $this->belongsTo(Logistic::class);
- }
- public function terminalPrinter(): BelongsTo
- {
- return $this->belongsTo(TerminalPrinter::class);
- }
- }
|