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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners