Yii offers a convenient way to massive assignment to a model. I search on google and can't find any information about massive assignment with Laravel. So, does Laravel offer the same functionality?
Yes: http://laravel.com/docs/eloquent#mass-assignment
But make absolutely sure you white-list your attributes or you'll open yourself up to serious security issues.
I haven't tried laravel yet, but a quick look on github tells me there's a function:
/**
* Hydrate the model with an array of attributes.
*
* @param array $attributes
* @param bool $raw
* @return Model
*/
public function fill(array $attributes, $raw = false)
I guess you can do something like
$product->fill($_POST['Product']);
as you would do $product->attributes = $_POST['Product']
in Yii