User model and migration

Out of the box, each new Laravel web app comes up with the model and migration files for the user’s module. The default columns are enough for this project, and we do not need to add or remove any columns.

Opening up the register URL

We can directly add a POST route to accept data to register a new user. This will be inside the routes/api.php file instead of the regular routes/web.php file.

Get hands-on with 1200+ tech skills courses.