src/DatabaseRepository.php
protected function fillEntityAttributes($entity, array $attributes)
	{
		foreach ($attributes as $key => $value) {
			$entity->$key = $value;
		}
	}
protected function fillEntityAttributes($entity, array $attributes)
	{
		foreach ($attributes as $key => $value) {
			$entity->$key = $value;
		}
	}
Fill an entity's attributes.

@param  mixed  $entity
@param  array  $attributes

@return void