ReportAllegatiGallery.php 653 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. class ReportAllegatiGallery extends Model
  6. {
  7. use HasFactory;
  8. public $timestamps = false;
  9. protected $table = 'fcf_reports_allegati_galleries';
  10. protected $fillable = [
  11. 'report_id' ,
  12. 'file_type' ,
  13. 'gallery_type',
  14. 'foto_sinistri',
  15. 'didascalia',
  16. 'name' ,
  17. 'files',
  18. 'token' ,
  19. 'is_visible',
  20. 'state' ,
  21. 'created',
  22. 'created_by',
  23. ];
  24. public function report()
  25. {
  26. return $this->belongsTo(Report::class);
  27. }
  28. }