jeudi 25 février 2016

LARAVEL how to change $fillable in Model from trait?

I have in model:

use seoTrait;

protected $fillable = [
    'name', 'title', 'description'
];

I created trait "seoTrait" which need "seoMeta" in $fillable.

Now I add :

protected $fillable = [
    'name', 'title', 'description', 'seoMeta'
];

But is it possible in trait "seoTrait" add something to $fillable ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire