FileUpload component form custom Model
Hi guys, I have 2 tables:
Images upload correctly , but how I can save the data inside Photo.php model after upload?
- listings
- photos
Images upload correctly , but how I can save the data inside Photo.php model after upload?
FileUpload::make('photos')
->disk('public')
->columnSpan('full')
->multiple()
->minFiles(1)
->maxFiles(15)
->reorderable()
->visibility('public'),class Photo extends Model
{
use HasFactory;
protected $fillable = [
'listing_id',
'uid',
'name',
'file_name',
'position'
];
}