I Made a Laravel Authentication With ChatGPT and Reviewed it

This video will show you how I used ChatGPT to generate a Laravel Sanctum API Authentication. After creating the code, I decided not to make any changes. I recently created a Laravel Sanctum API Authentication tutorial where I created an authentication using Laravel Sanctum. After I generated the ChatGPT code, I decided to do a side-by-side comparison to see the difference. I have made this tutorial to show young developers that you shouldn’t blindly copy-paste code from ChatGPT, especially not when it comes to security. Once you watch the video, you will see that ChatGPT generates ‘ok’ code, but there are a lot of flaws. Here is my short summary: - ✅  Good for explanations for a specific topic - ✅  Good to check if you have missed a configuration step - ✅  Good if you know what needs to happen so you could make changes to the code - ❌  Bad for authentication because validation is incomplete - ❌  Bad if you are an inexperienced developer that does not know
Back to Top