src/services/LanguageService.php
public function create(LanguageForm $form): Language
    {
        $model = Language::create(
            $form->name,
            $form->slug,
            $form->locale,
            $form->alias,
            $form->icon
        );
        $this->assertIsUniqueSlug($model);
        $this->repository->save($model);
        return $model;
    }
public function create(LanguageForm $form): Language
    {
        $model = Language::create(
            $form->name,
            $form->slug,
            $form->locale,
            $form->alias,
            $form->icon
        );
        $this->assertIsUniqueSlug($model);
        $this->repository->save($model);
        return $model;
    }
public function create ( LanguageForm $ form ) : Language { $ model = Language :: create ( $ form -> name , $ form -> slug , $ form -> locale , $ form -> alias , $ form -> icon ) ; $ this -> assertIsUniqueSlug ( $ model ) ; $ this -> repository -> save ( $ model ) ; return $ model ; }
Language item create.
@param  LanguageForm $form
@return Language
Language item create .