public static function importMessages($messages, $locale = null) { self::importMessageCodes(array_combine($messages, $messages), $locale); }
public function testImportMessages() { Message::importMessages(['Hello World!', 'Hello Piñata!']); $this->assertNotNull(Message::whereCode('hello.world')->first()); $this->assertNotNull(Message::whereCode('hello.piñata')->first()); Message::truncate(); }