Because your Laravel package runs directly on the Pi, you’ll need to write your code on it and run commands on it too.There are two ways to do this:
Connect your Pi to the internet, and communicate over SSH. You can use the VSCode Remote Development over SSH extension to write code from VSCode on your laptop.
Connect a screen, keyboard and mouse to your Pi, and develop directly on your Pi.