ldc-legaulois/app/Models/XmlInco.php

33 lines
585 B
PHP
Raw Normal View History

2021-04-08 12:49:58 +02:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class XmlInco extends Model
{
protected $fillable = [
'id',
'no_art',
'prod_saison',
'allegations',
'conseil_prepa',
'astuces',
'descriptif',
'arg_vente',
'nb_portion',
'typ_portion',
'pds_moy_theo',
'lib_conso',
'lst_ing',
'nutritional_values',
'picture',
];
2021-04-16 10:21:56 +02:00
public function getNiceStringAttribute()
{
return sprintf('%s - %s', $this->id, $this->descriptif);
}
2021-04-08 12:49:58 +02:00
}