Laravel 12 Copilot ChatGPR GPT-5 Assisted Coding
So you want to build your 1st ever Laravel application, and are not sure where to begin? On Windows 11?
This is for you!
I will show you how to get going with the help of Copilot.
Requirements: VS Code, PHP8.3, NodeJS and Composer are already installed and in your path. There are enough guides for this, so I will not go into this again.
Create a new empty folder for your development. I have a "%HOME\Development" folder where I store all my development projects...
New-Item -ItemType Directory -Path "$HOME\Development\Laravel12App
Then open VS code into this new empty folder.
cd "$HOME\Development\Laravel12App"
code .
Make sure you have all the required extensions installed
- GitHub Copilot by GitHub
- GitHub Copilot Chat by GitHub
- Laravel by Laravel
- Laravel Ide Helper by georgykurian
- php cs fixer by junstyle
- PHP Intelephense by Ben Mewburn
Now on the file view, open Copilot and ensure you are on Agent mode with GPT-5 and send your 1st prompt.
Now you should see a number of terminal commands coming by, which you need to confirm. So stick around and monitor the progress and just eyebal the instruction it will run.
Please Note: I cannot be held responsible if something is run that could cause data loss or external intrusion.
You may also see some things give errors, and Copilot "should" see these as well and fix them.
After a couple of minutes and a couple of clicks, you should get the "php artisan serve" command which should launch the built in web server for the site.
And open your borwser and connect to that URL
Now is a good point to also do your 1st GIT commit.
Okay, now let's fix the first issue. Where is the dark/light mode toggle? Start a new chat.
"Add a dark/light mode toggle left of the Log in/Register options."
Reload the site and you should now have a working toggle.Now is a good time to keep and commit again.
Next let's fix the fact that the welcome page uses embedded layout, and all the other pages a common layout file.
You should now have a basic Laravel 12 application that you can now build out for your own needs.