ReportAllegatiGallery.php 606 B

123456789101112131415161718192021222324252627282930313233
  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. 'name' ,
  15. 'files',
  16. 'token' ,
  17. 'is_visible',
  18. 'state' ,
  19. 'created',
  20. 'created_by',
  21. ];
  22. public function report()
  23. {
  24. return $this->belongsTo(Report::class);
  25. }
  26. }