34 lines
568 B
PHP
Executable File
34 lines
568 B
PHP
Executable File
<?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;
|
|
}
|
|
|
|
|
|
}
|