unioil-mobile-api/app/Services/CodeGenderService.php

34 lines
568 B
PHP

<?php
namespace App\Services;
use App\CodeGender;
use App\Contracts\CodeGenderResourceInterface;
use App\Libraries\UuidHelper;
use Response;
use Schema;
use Hash;
use Illuminate\Http\Request;
class CodeGenderService implements CodeGenderResourceInterface
{
public $civilStatus;
public function __construct(Request $request)
{
}
public function getAll()
{
$this->civilStatus = CodeGender::where('is_active',1)
->where('code','!=','0')
->get();
return $this->civilStatus;
}
}