Create Laravel Project 0:00Now that I own the domain name projectflyer.com, let's do the initial setup. So, Laravel new projectflyer. And next, let's cd in there. Cool. So, I will initialize git, add everything, and commit. Usually, I have a bunch of aliases I do for this. For example, gc for git commit. But just to be explicit for everyone watching, I'll commit with install Laravel. Now, in fact, I already have Homestead set up on my machine. So, for example, if I go into my VM, into code, I should be able to go to projectflyer, and we're there. So, you can see I have PHP 5.6 in this case. I have MySQL. All of that is up and ready to go. Let's go ahead and log into MySQL. And I will create a database called projectflyer. Cool. We have that set up. Okay. Let's close that out. Open this up in Sublime. And to start, let's just do some initial stuff that you often do. I'll rename that to .env. The database Configure Environment Key 0:57Cool. We have that set up. Okay. Let's close that out. Open this up in Sublime. And to start, let's just do some initial stuff that you often do. I'll rename that to .env. The database is projectflyer. Next, you'll see, well, if I go to config slash app, we fetch our encryption key using this name. And if I switch back, you'll see it's just set right here. Why don't we go ahead and properly generate that? PHP artisan key generate. Great. Okay. Now that's been set. Next, I want a working local domain name. So, I will say homestead edit. And this will bring up my homestead.yaml file. And you'll see I have more than one project for this VM. Okay. Let's duplicate this. And let's map projectflyer.dev to, well, we can find this pretty easy. Let's go into the VM. And remember, if you're not familiar with any of this, just research Homestead. If you visit the Laravel 5 Fundamentals series at Laracast, there's a whole video dedicated to setting up Set Up Homestead Domain 1:54the VM. And remember, if you're not familiar with any of this, just research Homestead. If you visit the Laravel 5 Fundamentals series at Laracast, there's a whole video dedicated to setting up Homestead. Anyways, if I cd to this project's public directory and fetch the present working directory, that's the URL I want. All right. So, that should do it. Now, we just need to reprovision vagrant. Homestead provision. And we'll give that just a minute. All right. That should do it. So, now the only final step is let's set up a host. Now, you have a couple options here. For example, if you're on the Mac, there's some helpful preference panes you can install. Just hunt around Google where you get a nice UI for that. But let's do it old school and tackle it directly from the command line. And if we scroll down, let's duplicate this. And that will now point to projectflyer.dev. And I will close that out. All right. So, let's see how we're doing here. Finalize Git Commit 2:40directly from the command line. And if we scroll down, let's duplicate this. And that will now point to projectflyer.dev. And I will close that out. All right. So, let's see how we're doing here. If I return to Chrome, yes, we own projectflyer.com. And yes, we've set up projectflyer.dev where we can see our local Laravel install. So, to finish up for the video, let's run a get status. And it looks like the only thing we've done here is renamed that. So, let's get remove.env.example. And remember, .env is part of your get ignore. So, for example, if I say cat get ignore, you'll see that listed right here. And that's because on your production server, you'd create that file manually that would have production specific settings. Anyways. So, we have that. Let's get commit with rename.env.example. All right. Get log. And we're on our way. So, we'll take another step in the next video.rename.env.example. All right. Get log. And we're on our way. So, we'll take another step in the next video.