FlightRecord.php 569 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. class FlightRecord extends Model
  6. {
  7. use HasFactory;
  8. protected $fillable = [
  9. 'flight_id',
  10. 'client_id',
  11. 'tariff_id'
  12. ];
  13. public function flight()
  14. {
  15. return $this->belongsTo('App\Models\Flight');
  16. }
  17. public function client()
  18. {
  19. return $this->belongsTo('App\Models\Client');
  20. }
  21. public function tariff()
  22. {
  23. return $this->belongsTo('App\Models\Tariff');
  24. }
  25. }