- directory refactor

This commit is contained in:
Krzysztof Rewak 2022-01-26 08:24:48 +01:00
parent 6854c7a9f8
commit 9ac804545b
56 changed files with 144 additions and 163 deletions

View File

@ -1,4 +1,4 @@
APP_NAME=Laravel
APP_NAME="Toby HR applicaiton"
APP_ENV=local
APP_KEY=
APP_DEBUG=true

View File

@ -2,11 +2,11 @@
declare(strict_types=1);
namespace Toby\Exceptions;
namespace Toby\Architecture;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Foundation\Exceptions\Handler;
class Handler extends ExceptionHandler
class ExceptionHandler extends Handler
{
protected $dontFlash = [
"current_password",

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace Toby\Providers;
namespace Toby\Architecture\Providers;
use Illuminate\Support\Carbon;
use Illuminate\Support\ServiceProvider;
use Toby\Models\VacationLimit;
use Toby\Scopes\SelectedYearPeriodScope;
use Toby\Eloquent\Models\VacationLimit;
use Toby\Eloquent\Scopes\SelectedYearPeriodScope;
class AppServiceProvider extends ServiceProvider
{

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Providers;
namespace Toby\Architecture\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Providers;
namespace Toby\Architecture\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace Toby\Providers;
namespace Toby\Architecture\Providers;
use Illuminate\Support\ServiceProvider;
use Toby\Models\User;
use Toby\Models\YearPeriod;
use Toby\Observers\UserObserver;
use Toby\Observers\YearPeriodObserver;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\YearPeriod;
use Toby\Eloquent\Observers\UserObserver;
use Toby\Eloquent\Observers\YearPeriodObserver;
class ObserverServiceProvider extends ServiceProvider
{

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Providers;
namespace Toby\Architecture\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Providers;
namespace Toby\Architecture\Providers;
use Illuminate\Support\ServiceProvider;
use Laravel\Telescope\TelescopeApplicationServiceProvider;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Enums;
namespace Toby\Domain;
enum EmploymentForm: string
{

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace Toby\Helpers;
namespace Toby\Eloquent\Helpers;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use LasseRafn\InitialAvatarGenerator\InitialAvatar;
use SVG\SVG;
use Toby\Models\User;
use Toby\Eloquent\Models\User;
class UserAvatarGenerator
{

View File

@ -2,10 +2,10 @@
declare(strict_types=1);
namespace Toby\Helpers;
namespace Toby\Eloquent\Helpers;
use Illuminate\Contracts\Session\Session;
use Toby\Models\YearPeriod;
use Toby\Eloquent\Models\YearPeriod;
class YearPeriodRetriever
{

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Models;
namespace Toby\Eloquent\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
@ -12,7 +12,7 @@ use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Carbon;
use Illuminate\Support\Collection;
use Toby\Enums\EmploymentForm;
use Toby\Domain\EmploymentForm;
/**
* @property int $id

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Models;
namespace Toby\Eloquent\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Models;
namespace Toby\Eloquent\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\HasFactory;

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace Toby\Observers;
namespace Toby\Eloquent\Observers;
use Illuminate\Support\Facades\Storage;
use Toby\Helpers\UserAvatarGenerator;
use Toby\Helpers\YearPeriodRetriever;
use Toby\Models\User;
use Toby\Eloquent\Helpers\UserAvatarGenerator;
use Toby\Eloquent\Helpers\YearPeriodRetriever;
use Toby\Eloquent\Models\User;
class UserObserver
{

View File

@ -2,11 +2,11 @@
declare(strict_types=1);
namespace Toby\Observers;
namespace Toby\Eloquent\Observers;
use Toby\Helpers\UserAvatarGenerator;
use Toby\Models\User;
use Toby\Models\YearPeriod;
use Toby\Eloquent\Helpers\UserAvatarGenerator;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\YearPeriod;
class YearPeriodObserver
{

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace Toby\Scopes;
namespace Toby\Eloquent\Scopes;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Scope;
use Toby\Helpers\YearPeriodRetriever;
use Toby\Eloquent\Helpers\YearPeriodRetriever;
class SelectedYearPeriodScope implements Scope
{

View File

@ -2,15 +2,14 @@
declare(strict_types=1);
namespace Toby\Console\Commands;
namespace Toby\Infrastructure\Console\Commands;
use Illuminate\Console\Command;
use Toby\Models\User;
use Toby\Eloquent\Models\User;
class CreateUserCommand extends Command
{
protected $signature = "user:create
{email : an email for the user}";
protected $signature = "user:create {email : an email for the user}";
protected $description = "Creates a user";
public function handle(): void

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Console;
namespace Toby\Infrastructure\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Controllers;
namespace Toby\Infrastructure\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace Toby\Http\Controllers;
namespace Toby\Infrastructure\Http\Controllers;
use Illuminate\Contracts\Auth\Factory as AuthFactory;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Laravel\Socialite\SocialiteManager;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Toby\Models\User;
use Toby\Eloquent\Models\User;
class GoogleController extends Controller
{

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Controllers;
namespace Toby\Infrastructure\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace Toby\Http\Controllers;
namespace Toby\Infrastructure\Http\Controllers;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Toby\Helpers\YearPeriodRetriever;
use Toby\Models\YearPeriod;
use Toby\Eloquent\Helpers\YearPeriodRetriever;
use Toby\Eloquent\Models\YearPeriod;
class SelectYearPeriodController extends Controller
{

View File

@ -2,16 +2,16 @@
declare(strict_types=1);
namespace Toby\Http\Controllers;
namespace Toby\Infrastructure\Http\Controllers;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Inertia\Response;
use Toby\Enums\EmploymentForm;
use Toby\Http\Requests\UserRequest;
use Toby\Http\Resources\UserFormDataResource;
use Toby\Http\Resources\UserResource;
use Toby\Models\User;
use Toby\Domain\EmploymentForm;
use Toby\Eloquent\Models\User;
use Toby\Infrastructure\Http\Requests\UserRequest;
use Toby\Infrastructure\Http\Resources\UserFormDataResource;
use Toby\Infrastructure\Http\Resources\UserResource;
class UserController extends Controller
{

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace Toby\Http\Controllers;
namespace Toby\Infrastructure\Http\Controllers;
use Illuminate\Http\RedirectResponse;
use Inertia\Response;
use Toby\Http\Requests\VacationLimitRequest;
use Toby\Http\Resources\VacationLimitResource;
use Toby\Models\VacationLimit;
use Toby\Eloquent\Models\VacationLimit;
use Toby\Infrastructure\Http\Requests\VacationLimitRequest;
use Toby\Infrastructure\Http\Resources\VacationLimitResource;
class VacationLimitController extends Controller
{

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http;
namespace Toby\Infrastructure\Http;
use Fruitcake\Cors\HandleCors;
use Illuminate\Auth\Middleware\AuthenticateWithBasicAuth;
@ -23,11 +23,11 @@ use Illuminate\Routing\Middleware\ValidateSignature;
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use Toby\Http\Middleware\Authenticate;
use Toby\Http\Middleware\HandleInertiaRequests;
use Toby\Http\Middleware\RedirectIfAuthenticated;
use Toby\Http\Middleware\TrimStrings;
use Toby\Http\Middleware\TrustProxies;
use Toby\Infrastructure\Http\Middleware\Authenticate;
use Toby\Infrastructure\Http\Middleware\HandleInertiaRequests;
use Toby\Infrastructure\Http\Middleware\RedirectIfAuthenticated;
use Toby\Infrastructure\Http\Middleware\TrimStrings;
use Toby\Infrastructure\Http\Middleware\TrustProxies;
class Kernel extends HttpKernel
{

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Middleware;
namespace Toby\Infrastructure\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace Toby\Http\Middleware;
namespace Toby\Infrastructure\Http\Middleware;
use Illuminate\Http\Request;
use Inertia\Middleware;
use Toby\Helpers\YearPeriodRetriever;
use Toby\Http\Resources\UserResource;
use Toby\Eloquent\Helpers\YearPeriodRetriever;
use Toby\Infrastructure\Http\Resources\UserResource;
class HandleInertiaRequests extends Middleware
{

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Middleware;
namespace Toby\Infrastructure\Http\Middleware;
use Closure;
use Illuminate\Http\Request;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Middleware;
namespace Toby\Infrastructure\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Middleware;
namespace Toby\Infrastructure\Http\Middleware;
use Illuminate\Http\Middleware\TrustProxies as Middleware;
use Symfony\Component\HttpFoundation\Request;

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace Toby\Http\Requests;
namespace Toby\Infrastructure\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
use Illuminate\Validation\Rules\Enum;
use Toby\Enums\EmploymentForm;
use Toby\Domain\EmploymentForm;
class UserRequest extends FormRequest
{

View File

@ -2,11 +2,11 @@
declare(strict_types=1);
namespace Toby\Http\Requests;
namespace Toby\Infrastructure\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Collection;
use Toby\Models\VacationLimit;
use Toby\Eloquent\Models\VacationLimit;
class VacationLimitRequest extends FormRequest
{

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Resources;
namespace Toby\Infrastructure\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Resources;
namespace Toby\Infrastructure\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Toby\Http\Resources;
namespace Toby\Infrastructure\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace Toby\Jobs;
namespace Toby\Infrastructure\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Support\Carbon;
use Toby\Models\YearPeriod;
use Toby\Eloquent\Models\YearPeriod;
class CheckYearPeriod implements ShouldQueue
{

52
artisan
View File

@ -1,52 +1,20 @@
#!/usr/bin/env php
<?php
define('LARAVEL_START', microtime(true));
use Illuminate\Contracts\Console\Kernel;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any of our classes manually. It's great to relax.
|
*/
define("LARAVEL_START", microtime(true));
require __DIR__.'/vendor/autoload.php';
require __DIR__ . "/vendor/autoload.php";
$app = require_once __DIR__.'/bootstrap/app.php';
$app = require_once __DIR__ . "/bootstrap/app.php";
/** @var Kernel $kernel */
$kernel = $app->make(Kernel::class);
/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
/*
|--------------------------------------------------------------------------
| Shutdown The Application
|--------------------------------------------------------------------------
|
| Once Artisan has finished running, we will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
*/
$input = new ArgvInput();
$status = $kernel->handle($input, new ConsoleOutput());
$kernel->terminate($input, $status);

View File

@ -6,15 +6,15 @@ use Illuminate\Contracts\Console\Kernel as ConsoleKernelContract;
use Illuminate\Contracts\Debug\ExceptionHandler as HandlerContract;
use Illuminate\Contracts\Http\Kernel as HttpKernelContract;
use Illuminate\Foundation\Application;
use Toby\Console\Kernel as ConsoleKernel;
use Toby\Exceptions\Handler;
use Toby\Http\Kernel as HttpKernel;
use Toby\Architecture\ExceptionHandler;
use Toby\Infrastructure\Console\Kernel as ConsoleKernel;
use Toby\Infrastructure\Http\Kernel as HttpKernel;
$basePath = $_ENV["APP_BASE_PATH"] ?? dirname(__DIR__);
$application = new Application($basePath);
$application->singleton(HttpKernelContract::class, HttpKernel::class);
$application->singleton(ConsoleKernelContract::class, ConsoleKernel::class);
$application->singleton(HandlerContract::class, Handler::class);
$application->singleton(HandlerContract::class, ExceptionHandler::class);
return $application;

View File

@ -37,11 +37,11 @@ return [
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Toby\Providers\AppServiceProvider::class,
Toby\Providers\AuthServiceProvider::class,
Toby\Providers\EventServiceProvider::class,
Toby\Providers\RouteServiceProvider::class,
Toby\Providers\TelescopeServiceProvider::class,
Toby\Providers\ObserverServiceProvider::class,
Toby\Architecture\Providers\AppServiceProvider::class,
Toby\Architecture\Providers\AuthServiceProvider::class,
Toby\Architecture\Providers\EventServiceProvider::class,
Toby\Architecture\Providers\RouteServiceProvider::class,
Toby\Architecture\Providers\TelescopeServiceProvider::class,
Toby\Architecture\Providers\ObserverServiceProvider::class,
],
];

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
use Toby\Models\User;
use Toby\Eloquent\Models\User;
return [
"defaults" => [

View File

@ -43,7 +43,7 @@ services:
- MYSQL_USER=${DOCKER_DEV_DB_USERNAME}
- MYSQL_PASSWORD=${DOCKER_DEV_DB_PASSWORD}
ports:
- ${DOCKER_DB_EXTERNAL_PORT:-3306}:3306
- ${DOCKER_DEV_DB_EXTERNAL_PORT:-3306}:3306
volumes:
- toby-mysql-data:/var/lib/mysql
networks:

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "toby",
"name": "application",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

@ -5,6 +5,7 @@
> HR software you love to hate
## Local setup
- run `sh setup` or:
> `dcr` is an alias to `docker-compose run --rm -u "$(id -u):$(id -g)"`

13
setup Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
if [ ! -f ".env" ]; then
cp .env.example .env
fi
docker-compose build --no-cache --pull
docker-compose up -d
docker-compose run --rm -u "$(id -u):$(id -g)" php composer install
docker-compose run --rm -u "$(id -u):$(id -g)" php php artisan key:generate
docker-compose run --rm -u "$(id -u):$(id -g)" php php artisan migrate --seed
docker-compose run --rm -u "$(id -u):$(id -g)" node npm install
docker-compose run --rm -u "$(id -u):$(id -g)" node npm run dev

View File

@ -8,7 +8,7 @@ use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;
use Tests\Browser\Pages\HomePage;
use Tests\DuskTestCase;
use Toby\Models\User;
use Toby\Eloquent\Models\User;
class AuthenticationTest extends DuskTestCase
{

View File

@ -6,7 +6,7 @@ namespace Tests\Feature;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Tests\FeatureTestCase;
use Toby\Models\User;
use Toby\Eloquent\Models\User;
class AuthenticationTest extends FeatureTestCase
{

View File

@ -7,7 +7,7 @@ namespace Tests\Feature;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Inertia\Testing\AssertableInertia as Assert;
use Tests\FeatureTestCase;
use Toby\Models\User;
use Toby\Eloquent\Models\User;
class InertiaTest extends FeatureTestCase
{

View File

@ -7,8 +7,8 @@ namespace Tests\Feature;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Support\Carbon;
use Tests\FeatureTestCase;
use Toby\Helpers\YearPeriodRetriever;
use Toby\Models\User;
use Toby\Eloquent\Helpers\YearPeriodRetriever;
use Toby\Eloquent\Models\User;
class SelectYearPeriodTest extends FeatureTestCase
{

View File

@ -8,8 +8,8 @@ use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Support\Carbon;
use Inertia\Testing\AssertableInertia as Assert;
use Tests\FeatureTestCase;
use Toby\Enums\EmploymentForm;
use Toby\Models\User;
use Toby\Domain\EmploymentForm;
use Toby\Eloquent\Models\User;
class UserTest extends FeatureTestCase
{
@ -34,21 +34,21 @@ class UserTest extends FeatureTestCase
public function testAdminCanSearchUsersList(): void
{
User::factory([
"first_name" => "Test",
"last_name" => "User1",
])->create();
"first_name" => "Test",
"last_name" => "User1",
])->create();
User::factory([
"first_name" => "Test",
"last_name" => "User2",
])->create();
"first_name" => "Test",
"last_name" => "User2",
])->create();
User::factory([
"first_name" => "Test",
"last_name" => "User3",
])->create();
"first_name" => "Test",
"last_name" => "User3",
])->create();
$admin = User::factory([
"first_name" => "John",
"last_name" => "Doe",
])->create();
"first_name" => "John",
"last_name" => "Doe",
])->create();
$this->assertDatabaseCount("users", 4);

View File

@ -7,8 +7,8 @@ namespace Tests\Feature;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Inertia\Testing\AssertableInertia as Assert;
use Tests\FeatureTestCase;
use Toby\Models\User;
use Toby\Models\VacationLimit;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationLimit;
class VacationLimitTest extends FeatureTestCase
{

View File

@ -6,8 +6,8 @@ namespace Tests\Traits;
use Illuminate\Foundation\Testing\Concerns\InteractsWithSession;
use Illuminate\Support\Carbon;
use Toby\Helpers\YearPeriodRetriever;
use Toby\Models\YearPeriod;
use Toby\Eloquent\Helpers\YearPeriodRetriever;
use Toby\Eloquent\Models\YearPeriod;
trait InteractsWithYearPeriods
{

View File

@ -8,7 +8,7 @@ use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Support\Facades\Storage;
use Tests\TestCase;
use Tests\Traits\InteractsWithYearPeriods;
use Toby\Models\User;
use Toby\Eloquent\Models\User;
class AvatarTest extends TestCase
{

View File

@ -8,7 +8,7 @@ use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Carbon;
use Tests\TestCase;
use Tests\Traits\InteractsWithYearPeriods;
use Toby\Jobs\CheckYearPeriod;
use Toby\Infrastructure\Jobs\CheckYearPeriod;
class CheckYearPeriodTest extends TestCase
{

View File

@ -7,8 +7,8 @@ namespace Tests\Unit;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Tests\TestCase;
use Tests\Traits\InteractsWithYearPeriods;
use Toby\Models\User;
use Toby\Models\YearPeriod;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\YearPeriod;
class VacationLimitTest extends TestCase
{

View File

@ -9,8 +9,8 @@ use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Carbon;
use Tests\TestCase;
use Tests\Traits\InteractsWithYearPeriods;
use Toby\Helpers\YearPeriodRetriever;
use Toby\Models\YearPeriod;
use Toby\Eloquent\Helpers\YearPeriodRetriever;
use Toby\Eloquent\Models\YearPeriod;
class YearPeriodRetrieverTest extends TestCase
{