Example #1
0
 protected function makeString($uri, $key, $value, $plural = null, $comment = null, $placeholders = null)
 {
     $source_id = $this->source->id;
     $locale = $this->locale;
     $uri = String::makeUri($uri);
     $string = String::firstOrNew(compact('locale', 'uri', 'source_id'));
     $string->fill(compact('key', 'value', 'plural', 'comment', 'placeholders'))->save();
     $this->strings[] = $string;
     return $this;
 }