mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-30 20:16:46 -04:00
42 lines
893 B
PHP
42 lines
893 B
PHP
<?php
|
|
namespace Modules\Setup\Services;
|
|
|
|
use Illuminate\Support\Facades\Validator;
|
|
use \Modules\Setup\Repositories\StateRepository;
|
|
|
|
class StateService
|
|
{
|
|
protected $stateRepository;
|
|
|
|
public function __construct(StateRepository $stateRepository)
|
|
{
|
|
$this->stateRepository = $stateRepository;
|
|
}
|
|
|
|
public function getAll(){
|
|
return $this->stateRepository->getAll();
|
|
}
|
|
|
|
public function getCountries(){
|
|
return $this->stateRepository->getCountries();
|
|
}
|
|
|
|
public function store($data){
|
|
return $this->stateRepository->store($data);
|
|
}
|
|
|
|
public function getById($id){
|
|
return $this->stateRepository->getById($id);
|
|
}
|
|
|
|
public function update($data){
|
|
return $this->stateRepository->update($data);
|
|
}
|
|
|
|
public function status($data){
|
|
return $this->stateRepository->status($data);
|
|
}
|
|
|
|
|
|
}
|