Playing
02. A fresh Laravel app

Episodes

0%
Your progress
  • Total: 3h 4m
  • Played: 0m
  • Remaining: 3h 4m
Join or sign in to track your progress

Transcript

00:00
The first thing to do is figure out
00:01
how we want to install Laravel. Do we want one of the starter kits, or do we just want a completely fresh application and get Livewire manually installed?
00:09
Now, I'm going to go with the second option and do a completely plain Laravel application and install Livewire manually. But you can go ahead and install something
00:18
like Breeze if you wanted authentication functionality for a little bit later on. So if you are fairly new to Laravel, let's run through the installation process
00:26
and how we get everything set up. OK, so we're going to use the Laravel installer here to create our new project. And I'm going to call this Laravel Booking
00:35
System and Livewire, because we have a couple of other variations of this. And let's go ahead and hit Enter on that. So we're not going to choose a starter kit here.
00:43
For the testing framework, we're going to choose PEST. We're not going to initialize a Git repository, though you can if you want to. And let's just wait for this to run through so we
00:51
can set up our database stuff. OK, so we're going to choose MySQL here. And we are going to run the default database migrations. If you don't already have that table created
01:01
or the database created, then it's going to go ahead and ask for it to be created. And of course, we're going to say yes. OK, so now that this is finished,
01:08
we should just be able to open this up in our text editor. And yeah, sure enough, we've got everything in here ready to go. Now, we've already got the database configured. But if you do need to change anything around, of course,
01:19
head over to your .env file. And you can customize the connection just in here if anything wasn't right. The database name is exactly the same as our project name.
01:31
And if we head over to the database, sure enough, all of them default migrations have been run as well. So we have a project set up and ready to go.
01:39
Let's jump over to the next episode where we're going to go ahead and get Livewire installed, create a base layout, so we've got a nice foundation to start building on.

Episode summary

In this episode, we kick things off by setting up a brand new Laravel project. We talk through the initial choices you have—like whether to use a starter kit (such as Breeze, if you need built-in authentication) or just go with a totally clean Laravel install. For this course, we're going with the plain install and adding Livewire manually later.

We use the Laravel installer to spin up a new project called laravel-booking-system-livewire, skipping any starter kits for now. When prompted, we select the PEST testing framework, and opt not to initialize a Git repository (though you can if you want!).

Once the install finishes, we configure the database, choosing MySQL, and let the installer run all the default migrations for us. If anything needs tweaking, like database credentials, we take a quick look at how you can edit your .env file to make adjustments. After confirming that everything's set up and the migrations have been applied, we're ready for development!

Next up, we'll install Livewire and start putting together the base layout for our app. Stay tuned!

Episode discussion

No comments, yet. Be the first!