create method only accepts fields you defined in the model. check the $fillable array. http://laravel.com/docs/4.2/eloquent#mass-assignment
astroanu said:
create method only accepts fields you defined in the model. check the $fillable array. http://laravel.com/docs/4.2/eloquent#mass-assignment
The fillable array is already set to this:
class Song extends Eloquent{
public $timestamps = false;
protected $fillable = [
'title', 'lyrics', 'slug'
];
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community