Category: Laravel, javascript

Just a couple of days ago I published a package I developed from scratch. The thing it lacked was the necessary Javascript to handle the registration and login in the frontend, which it’s a pain in the ass to make let alone manage.

Using that approach, I created a whole Larapass class, which is in charge of initializing the routes and headers that will be pushed to the server on the requests, parsing the responses from both sides, and also returning a Promise the user can use to register or login the user.

I can use the register and login methods to magically register the user device and the login to authenticate them in a flash. Authentication is relatively easy, since the user can input their email or username so the server can tell him what credentials can use.
Newsletter

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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners