yogiwhere/app/Repositories/Country/EloquentCountry.php

25 lines
403 B
PHP

<?php
namespace Vanguard\Repositories\Country;
use Vanguard\Country;
class EloquentCountry implements CountryRepository
{
/**
* {@inheritdoc}
*/
public function lists($column = 'name', $key = 'id')
{
return Country::orderBy('name')->pluck($column, $key);
}
/**
* {@inheritdoc}
*/
public function all()
{
return Country::all();
}
}