mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-01-16 19:05:08 -05:00
41 lines
877 B
PHP
41 lines
877 B
PHP
<?php
|
|
namespace Modules\Language\Services;
|
|
|
|
use Illuminate\Support\Facades\Validator;
|
|
use \Modules\Language\Repositories\LanguageRepository;
|
|
|
|
class LanguageSettingService
|
|
{
|
|
protected $languagesRepository;
|
|
|
|
public function __construct(LanguageRepository $languagesRepository)
|
|
{
|
|
$this->languagesRepository = $languagesRepository;
|
|
}
|
|
|
|
public function getAll()
|
|
{
|
|
return $this->languagesRepository->getAll();
|
|
}
|
|
|
|
public function create($data)
|
|
{
|
|
return $this->languagesRepository->create($data);
|
|
}
|
|
|
|
public function findById($id)
|
|
{
|
|
return $this->languagesRepository->find($id);
|
|
}
|
|
|
|
public function update($data, $id)
|
|
{
|
|
return $this->languagesRepository->update($data, $id);
|
|
}
|
|
|
|
public function deleteById($id)
|
|
{
|
|
return $this->languagesRepository->delete($id);
|
|
}
|
|
}
|