HOGGAR Docs
Version 1.x
search
search
menu
HOGGAR Docs
search
search
File Multiple Upload
How to declare a File Multiple Upload.
use Hoggarcrud\Hoggar\Fields\MultipleFile;

MultipleFile::make('files')
  ->label('New label') // optional
  ->notInDatabase() // optional, if you don't want this field in database

These files are returned in JSON format. If you’re saving them using Eloquent, you should be sure to add an array cast to the model property:
               
use Illuminate\Database\Eloquent\Model;

class Post extends Model
   {
   protected $casts = [
   'files' => 'array',
   ];

         }
When you update, if you want the field and the record not nullable do this.
->fieldAndRecordNotNull()