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