In this episode, we kick things off by setting up a brand new Laravel project using the Laravel installer. If you've already got this down, feel free to skip ahead!
We start by running laravel new
and name our project (we're going with "inertia-chat" for this demo). Next, we pick the Laravel Breeze starter kit to get authentication baked in from the start. When prompted for an option, we choose Vue with Inertia, since that's what our project is based on, and skip the extra features for now.
For testing, we opt for Pest and don't bother initializing a git repo at this step. Then we select MySQL as our database and run the default migrations, so we have all the core tables ready to go.
Once that's out of the way, we open the project in our code editor, run npm run dev
to get the front end compiling, and check that everything is working smoothly by visiting our app in the browser. We wrap up by registering a test account to confirm authentication is working.
By the end of this episode, you'll have a fresh Laravel project with Inertia and Vue ready to roll!