ReportDataPasseggeri.php 618 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. class ReportDataPasseggeri extends Model
  6. {
  7. use HasFactory;
  8. //protected $primaryKey = 'progressive';
  9. public $timestamps = false;
  10. protected $table = 'fcf_reports_report_data_passeggeri';
  11. protected $fillable = [
  12. 'report_id',
  13. 'progressive',
  14. 'passeggero',
  15. 'infortunato',
  16. 'infortunato_ospedale'
  17. ];
  18. public function passeggero_value()
  19. {
  20. return $this->belongsTo(\App\Models\Anagrafica::class, 'passeggero');
  21. }
  22. }