vendredi 16 octobre 2015

Laravel Eloquent chained method returning true instead of model

Why is $cv in this case

$cv = Cv::findOrFail($id)->fill($request->all());
$cv->save();
var_dump($cv);

returning the model (so I can access e.g. $cv->id

and in this case

$cv = Cv::findOrFail($id)->fill($request->all())->save();
var_dump($cv);

only returning true?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1jt2kxN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire