TerminalPrinterLogistic.php 516 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelLogChanging;
  5. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  6. class TerminalPrinterLogistic extends Model
  7. {
  8. use ModelLogChanging;
  9. protected $fillable = ['terminal_printer_id','logistic_id'];
  10. public function logistic(): BelongsTo
  11. {
  12. return $this->belongsTo(Logistic::class);
  13. }
  14. public function terminalPrinter(): BelongsTo
  15. {
  16. return $this->belongsTo(TerminalPrinter::class);
  17. }
  18. }