Course Introduction 0:00Laravel document. You'll need to have both PHP code, your Laravel app. Immediately. Alright, so, check this out. Hey there. How are you doing? I'm going to let you in on a secret. When I work on courses for LaraCast, I just about never, ever write scripts. But this series is a very special one, and I care about you so much that I took the time to sit down and prepare a formal introductory script.But this series is a very special one, and I care about you so much that I took the time to sit down and prepare a formal introductory script. And I'd like to read it to you right now. Please be excited. It goes a little something like this. Hello. It's nice to meet you. My name is Jeffrey, and I'm here to teach you the N's of Canto. So boring. And I already know it.So boring. And I already know it. Hi. I'm Jeffrey. I've been working with Laravel for over a decade. And you know what? To pat myself on the back, I'm one of the few people who can say I've actually been working with Laravel for over a decade. Yeah, I was there in the early days. Back when Laracon wasn't even a thing.Yeah, I was there in the early days. Back when Laracon wasn't even a thing. And if Laracon is new to you, that is a Laravel-specific conference. These days, they are held all over the world, and thousands and thousands of people attend. But back then, nobody knew what Laravel was. In fact, when people heard the word, they called it Laravel, not Laravel. And actually, some people still do today. But trust me, the correct pronunciation is Laravel. But yeah, back then, nobody knew what it was, and we didn't have a Laracon yet. And when we finally did have Laracon, maybe, I don't know, 60 people showed up?But yeah, back then, nobody knew what it was, and we didn't have a Laracon yet. And when we finally did have Laracon, maybe, I don't know, 60 people showed up? And you know what? I was one of the presenters at that very first conference. So I say all of this, again, not to pat myself on the back, but to persuade you that I've been doing this for a really long time, and if you're just getting started in Laravel, I think I would be a great tour guide. Alright. That's my spiel. So if you'd like to learn the ins and outs of Laravel, why don't you come along, one Setting Up Tooling 2:31That's my spiel. So if you'd like to learn the ins and outs of Laravel, why don't you come along, one day at a time. Let's go. Now before I can start showing you how to write Laravel apps, of course, the first step, as always, is to get your tooling in order. Now in the past, when it came to setting up a development environment for PHP, I don't know, it could sometimes be a little bit overwhelming, because there's so many different tools to choose from. It's sort of decision paralysis, right?choose from. It's sort of decision paralysis, right? Which one do I pick? And of course, everyone has a different recommendation. And while that's still, of course, true, these days, there are one-click solutions that are really incredible, and I can happily recommend. So yeah, maybe traditionally, you might pull in a tool like XAMPP, or MAMP, or WAMP. On Windows, you might use a tool called Laragon. And by the way, all of these are still developed today, and they're excellent. The whole point is, and here's another one on the Mac, you could install everything manually, Installing Laravel Herd 3:24And by the way, all of these are still developed today, and they're excellent. The whole point is, and here's another one on the Mac, you could install everything manually, quote-unquote, using Homebrew. So you could do things like brew, install, PHP, brew, install, MySQL. All of these still exist and are great, and they are options for you. But if you're just getting started with Laravel, I can happily recommend Laravel Hurd. It's a magical, and I hate using that word, but it's kind of true, it's a magical one-click utility to get you up and running, building PHP, and specifically, Laravel apps. So right down here, just click on the button. On my machine, I see download for macOS, but rest assured, there is a Windows equivalent.So right down here, just click on the button. On my machine, I see download for macOS, but rest assured, there is a Windows equivalent. Otherwise, on Linux, you probably already know what to do. But yeah, otherwise, you might consider this tool, which is still great. Okay, so let's just work through it together and get set up. I will download it. All right, let's drag this to my applications directory, close it out, and open it up. All right, welcome to Hurd. Let's get started. All right, notice it is downloading PHP 8.3, which is the latest version at the time of this recording. Now, there is a free version of Hurd, and that's going to do everything you need.All right, notice it is downloading PHP 8.3, which is the latest version at the time of this recording. Now, there is a free version of Hurd, and that's going to do everything you need. If you want some extra bells and whistles, you can, of course, pay for a professional version. But yeah, if you don't want to do that, the free version will take you as far as you need to go for this course and further. We'll skip it for now. All right, there we go. So notice we now have binaries for Hurd, PHP, Laravel, and a tool called Composer, which you may or may not be familiar with. But either way, don't worry, we will cover it when we get to it.which you may or may not be familiar with. But either way, don't worry, we will cover it when we get to it. All right, next, all PHP projects placed in the Hurd folder will automatically be available in your browser. And this is one of the coolest things. You're going to love this. All right, so let's get started. All right, check this out. If I go up to my menu bar, I now see a new Hurd icon. Here's where I can see any processes that I have running. Herd Features Overview 5:23If I go up to my menu bar, I now see a new Hurd icon. Here's where I can see any processes that I have running. I can switch between the versions of PHP that I have installed. And this is one of the great features. If you have multiple projects where some of them depend on an older version of PHP, you can run those simultaneously on your local machine, which is really cool. You don't have to worry about it at all. So notice in this case, it looks like there is an update for 8.2 available. And if I want to pull that in, I can do so with a single click, which is really cool. But anyways, if I switch over to the General tab,And if I want to pull that in, I can do so with a single click, which is really cool. But anyways, if I switch over to the General tab, here I can see a list of paths where Hurd will search for any potential PHP projects. So by default, you get your home directory slash Hurd. But yeah, you can register as many as you want. So in this case, I've added an additional folder called Code, and that's fine as well. All right, let's give this a shot. So I'm going to go into my home directory slash Hurd. Of course, it's empty right now. And we're going to use this new Laravel binary. Creating a Laravel Project 6:19Of course, it's empty right now. And we're going to use this new Laravel binary. And this is included out of the box with Hurd. And this is, again, one of the benefits. It includes everything you need to get up and running right away. So I'm going to say, Laravel, generate a new project. And I'm going to think of any name I want. Let's keep it very simple, and we will call it Example. All right, so it's going to ask me a handful of questions. Would you like to install a starter kit?All right, so it's going to ask me a handful of questions. Would you like to install a starter kit? A starter kit is exactly what you think. It's a way to jumpstart a project with layouts, templates, authentication. It's really cool. But for now, I want to start from scratch. All right, test framework. Again, we're going to stick with the defaults. Do we want to get repo? No, we're just playing around.Do we want to get repo? No, we're just playing around. All right, so notice it's creating a new folder called Example. And it's pulling in all of these dependencies. And again, you didn't even need to know that Composer was a thing in order for this to work, which is really cool. But again, don't worry. If you want to learn more, you're going to learn more. All right, which database will your application use? Why don't we stick with the basics?All right, which database will your application use? Why don't we stick with the basics? SQLite, which is a file-based database. All right, that's done. List the files. There's our example project. We'll cd in there. List them again. And that's the Laravel framework, ladies and gentlemen. Really cool. Viewing App in Browser 7:37And that's the Laravel framework, ladies and gentlemen. Really cool. And even better, we can instantly view this application in the browser by visiting the name of the folder, .test. Don't believe me? Let me show you. Let's give it a shot. Example.test. And there we go. Say hello to the landing page for Laravel 11.And there we go. Say hello to the landing page for Laravel 11. Everything's configured, and we're ready to get started. But now, real quick, before we finish up, if you chose not to use herd, yeah, you might take a slightly different pathway. And like I mentioned, you could use a tool like Laragon or XAMPP or Docker and SAIL, and all of those are excellent, but they have slightly different installation steps. So just keep that in mind. If you need any help, be sure to ask questions in the comments below, and we'll do our best to help out.If you need any help, be sure to ask questions in the comments below, and we'll do our best to help out. Okay, but otherwise, in the next video, you are going to create your first route. I hope you're excited. And I'll see you in the next video. Bye.