---
agentTools:
  projectIndex: https://laravel-angular.readme.io/llms.txt
---

# Registeration & Login

[block:api-header]
{
  "type": "basic",
  "title": "Satellizer"
}
[/block]

Laravel & Angular material starter includes [satellizer](https://github.com/sahat/satellizer) for managing the token.

You can customize satellizer's configuration in `angular/config/satellizer.config.js`.

[block:api-header]
{
  "type": "basic",
  "title": "Registration functionality"
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/NsKdOEzjRmKncNS6JN9g_Screen%20Shot%202016-04-21%20at%2012.48.07%20AM.png",
        "Screen Shot 2016-04-21 at 12.48.07 AM.png",
        "996",
        "820",
        "#049be3",
        ""
      ]
    }
  ]
}
[/block]

Registration functionality is provided out of the box.
The `/register` route is configured in `routes.config.js`.
You have a `register.page.html` which holds the `register-form` component.

The `register-form` components **signs up** the user using satellizer and `Auth\AuthController.php`.
If you want to add new fields, you would need to edit the view, component and AuthController.

[block:api-header]
{
  "type": "basic",
  "title": "Login functionality"
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/l5vRJ9UDRvyrZ4oxwf4z_Screen%20Shot%202016-04-21%20at%2012.48.21%20AM.png",
        "Screen Shot 2016-04-21 at 12.48.21 AM.png",
        "882",
        "706",
        "#049be3",
        ""
      ]
    }
  ]
}
[/block]

Login functionality is provided out of the box.
The `/login` route is configured in `routes.config.js`.
You have a `login.page.html` which holds the `login-form` component.

The `login-form` components **authenticates** the user using satellizer and `Auth\AuthController.php`.
You can check the logic behind it in **Auth\AuthController.php**.