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

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

These images 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 = [
   'images' => 'array',
   ];

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