This commit is contained in:
Adrian Hopek 2022-03-08 14:55:44 +01:00
parent 7737b9e9c2
commit 4f17a7021c

View File

@ -4,16 +4,11 @@ declare(strict_types=1);
namespace Toby\Eloquent\Observers;
use Toby\Eloquent\Helpers\YearPeriodRetriever;
use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\YearPeriod;
class UserObserver
{
public function __construct(
protected YearPeriodRetriever $yearPeriodRetriever,
) {}
public function created(User $user): void
{
$yearPeriods = YearPeriod::all();