We take a look at using Laravel Airlock to authenticate our Single Page Application in Vue. Airlock provides a lightweight authentication system relying on Laravel’s built-in cookie-based session authentication services. We use a Vue CLI application to scaffold out the front-end and a Laravel 7 application for the backend. We also make use of Tailwind UI components, look at navigation guards in Vue and do some basic validation.
GitHub Repo for Laravel: