TALL stack is growing in popularity in the Laravel community, and rightly so. The way in which you can write beautiful code split into reactive components without ever having to leave PHP is a no brainer. Recently the TALL stack preset was released, which on its own is fantastic - but I wanted to take it one step further.

So, let’s create our UserCreated event in app/Context/User/Events/UserCreated.php it should look like this: namespace App\Context\User\Events; use Spatie\EventSourcing\ShouldBeStored; class UserCreated implements ShouldBeStored { /** * @var string */ public string $name; /** * @var string */ public string $email; /** * @var string */ public string $password; /** * User Created Constructor * * @param string $name * @param string $email * @param string $password * * @return void */ public function __construct( string $name, string $email, string $password ) { $this->name = $name; $this->email = $email; $this->password = $password; }}

So we have a user, we could stop here and implement the TALL stack element, but I would rather do that after we have set everything up.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners