feature/modelos-y-migraciones #3
1 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,15 @@ use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
class Producto extends Model
|
class Producto extends Model
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*
|
||||||
|
* @var array<int, string>
|
||||||
|
*/
|
||||||
|
protected $fillable = [
|
||||||
|
'name', 'price', 'solidario', 'bono'
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* La categoría a la que pertenece el producto.
|
* La categoría a la que pertenece el producto.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue