ReportDataInfortunati.php 567 B

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