<?php

declare(strict_types=1);

require __DIR__ . '/../vendor/autoload.php';

ensureSessionStarted();
require __DIR__ . '/../bootstrap/sentinel.php';

use Cartalyst\Sentinel\Native\Facades\Sentinel;

$user = Sentinel::registerAndActivate([
    'email'      => 'admin@example.com',
    'password'   => 'secret123',
    'first_name' => 'Admin',
    'last_name'  => 'User',
]);

echo $user ? 'User created: ' . $user->email . PHP_EOL : 'Failed' . PHP_EOL;
