You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
454B

  1. <?php
  2. declare(strict_types=1);
  3. require __DIR__ . '/../vendor/autoload.php';
  4. ensureSessionStarted();
  5. require __DIR__ . '/../bootstrap/sentinel.php';
  6. use Cartalyst\Sentinel\Native\Facades\Sentinel;
  7. $user = Sentinel::registerAndActivate([
  8. 'email' => 'admin@example.com',
  9. 'password' => 'secret123',
  10. 'first_name' => 'Admin',
  11. 'last_name' => 'User',
  12. ]);
  13. echo $user ? 'User created: ' . $user->email . PHP_EOL : 'Failed' . PHP_EOL;

Powered by TurnKey Linux.