Merge branch 'main' into directory-refactor

# Conflicts:
#	app/Architecture/Providers/AppServiceProvider.php
#	app/Eloquent/Observers/YearPeriodObserver.php
This commit is contained in:
Adrian Hopek
2022-01-26 08:58:57 +01:00
33 changed files with 979 additions and 55 deletions

View File

@@ -5,13 +5,16 @@ declare(strict_types=1);
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Toby\Eloquent\Models\YearPeriod;
class YearPeriodFactory extends Factory
{
protected $model = YearPeriod::class;
public function definition(): array
{
return [
"year" => $this->faker->unique()->year,
"year" => (int)$this->faker->unique()->year,
];
}
}