Example #1
0
 /**
  * @param Category $category
  * @return \Illuminate\Database\Eloquent\Model
  */
 protected function propertyGroup(Category $category)
 {
     $group = $category->propertyGroups()->save(new PropertyGroup(['nl' => ['name' => 'andere'], 'en' => ['name' => 'other']]));
     return $group;
 }