コード例 #1
0
 /**
  * Because the assignment record holds translatable data
  * we have a conflict. The assignment table has translations
  * but not all assignment are translatable. This helps avoid
  * the translatable conflict during specific procedures.
  *
  * @param  array  $attributes
  * @return static
  */
 public static function create(array $attributes = [])
 {
     $model = parent::create($attributes);
     $model->saveTranslations();
     return $model;
 }