This document will guide you on how to add username availability checking to your Laravel, Inertia Vue application during registration. This will not work for React.
There are multiple steps, first we will modify your Register.vue
template found in resources\js\Pages\Auth
.
Paste this code into your Register.Vue
template near the submit function. This will define the username availability state as null initially and perform a request to our Laravel controller to determine if the username has been taken or not.