$picture * @property string|null $astuces * @property string|null $lib_conso * @property string|null $nb_portion * @property string|null $typ_portion * @property string|null $pds_moy_theo * @property string|null $conseil_prepa * @property string|null $arg_vente * @property string|null $lst_ing * @property string|null $lib_allergene * @property array $nutritional_values * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read string $nice_string * * @mixin \Eloquent */ #[Fillable([ 'id', 'no_art', 'nom', 'prod_saison', 'allegations', 'conseil_prepa', 'astuces', 'descriptif', 'arg_vente', 'nb_portion', 'typ_portion', 'pds_moy_theo', 'lib_conso', 'lst_ing', 'lib_allergene', 'nutritional_values', 'picture', ])] class XmlInco extends Model { /** * The Laravel disk name * * @var string */ protected $disk = 'inco'; /** * Storage path * * @var string */ protected $imagesPath = 'images'; /** * The files to ignore * * @var array */ protected $ignoreFiles = [ '.gitignore', '.gitkeep', ]; /** * Get the concerned disk */ protected function getDisk(): Filesystem { return Storage::disk($this->disk); } /** @return \Illuminate\Database\Eloquent\Casts\Attribute */ protected function niceString(): Attribute { return Attribute::make(get: fn (): string => sprintf('%s - %s', $this->id, $this->descriptif)); } #[\Override] protected function casts(): array { return [ 'prod_saison' => 'bool', 'picture' => 'array', 'nutritional_values' => 'array', ]; } }