firs commit

This commit is contained in:
2025-09-14 18:41:00 +02:00
commit 8cbae222cc
2528 changed files with 476923 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
namespace Vanguard\Repositories\Country;
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
use Illuminate\Support\Collection;
use Vanguard\Country;
class EloquentCountry implements CountryRepository
{
/**
* {@inheritdoc}
*/
public function lists($column = 'name', $key = 'id'): Collection
{
return Country::orderBy('name')->pluck($column, $key);
}
/**
* {@inheritdoc}
*/
public function all(): EloquentCollection
{
return Country::all();
}
}