コード例 #1
0
 /**
  * Parse a model's translations.
  *
  * @param EloquentModel $model
  * @param               $string
  */
 protected function parseTranslations(EloquentModel $model, &$string)
 {
     $string .= "\n'translations' => [";
     foreach ($model->getTranslations() as $translation) {
         $this->parseTranslation($translation, $string);
     }
     $string .= "\n],";
 }