/** * Create a new Group * * @param string $name * @return Group */ public function createGroup($name) { return $this->group->create(compact('name')); }
/** * Run the database seeds. * * @return void */ public function run() { $translation = ['key' => 'email', 'value' => 'Email']; $this->dispatch(new CreateTranslationCommand(Language::first(), Group::first(), $translation)); }