Playing
02. Setting up

Transcript

00:00
If you're new to Laravel, or you just need a refresher, let's go through the steps that we need to take to get a fresh project set up and running.
00:07
OK, so we're going to go ahead and use the Laravel Installer to create out a new project here. And of course, I'm going to call that Laravel Subscriptions. Let's go ahead and hit Enter on that.
00:17
And we're going to go ahead and use the Laravel Pres Starter Kit. This means that we get authentication out of the box. And it's just one less thing that we need to do.
00:26
You can always choose a different starter kit or transfer this over a little bit later. OK, so when we go ahead and choose a stack, we are going to just choose Blade with Alpine.
00:36
We're not going to pull in Livewire or Inertia for this. But everything that we're going to cover here is transferable over to any of them stacks if you want to later.
00:45
OK, so we can choose Yes or No for Dark Mode. It doesn't really matter. We'll go ahead and choose Pest as the testing framework. And I'm not going to initialize a Git repository.
00:54
Let's go ahead and wait for everything to get started. And then we'll go ahead and set up our database. OK, so once that's done, we're going to go ahead and choose MySQL as our database driver.
01:03
Again, it doesn't really matter which one you choose. And we want to run the default migrations to get all of the tables that we need set up. So that's gone ahead and done that now.
01:11
OK, now that's done, let's go into the Laravel Subscriptions directory. And we'll open this up in our editor. Now that's open, let's head over to our database
01:20
just to check this out as well. So you can see that we've got a Laravel Subscriptions database with all of the tables that we need in here. And we should just be able to access our app.
01:31
Now, it depends on how you are setting this up locally. Again, if you are very new, I'm using Laravel Herd here to serve this. And I'd recommend doing that for a couple of reasons
01:40
if you're very new. This makes it incredibly easy to just get a domain like we see here set up and served with your applications. As you can see, we have a .test domain
01:52
with the name of the project that we've created. And we can just dive in and start doing anything we need. The second reason is that a little bit later on, we are going to need to set up webhooks that come through
02:02
to our local machine. And Herd gives us the ability to share our local domain with any other sites, which means that when we set up our webhooks in Stripe,
02:12
we can just put our local domain, which is being served through Herd, directly into there. And everything will be delivered. We're going to cover that later, though,
02:20
so don't worry too much now. OK, so now that we are pretty much set up, let's go ahead and register an account just to make sure that we can sign in.
02:28
And then in the next episode, we'll spend some time just fiddling around with Breeze to get this working the way that we want. OK, so as you can see, I am now signed in.
02:37
I have my dashboard. And I can update any profile details in here as well. So very familiar from the introduction. OK, great.
02:45
So once you have got Laravel application up and running and being served, we're going to go ahead and tweak Breeze to make it more suitable for the kind of subscription app that we're building.
26 episodes2 hrs 38 mins

Overview

Learn to start accepting subscriptions with Laravel and build a solid foundation for your next application. In fact, it’s exactly how we do things here on Codecourse!

Even if you’re completely new to Laravel, by the end of this course you’ll have a platform where customers can purchase subscriptions and gain access to restricted areas of your application.

We’ll also cover managing subscriptions, cancellations, invoices, giving customers trial periods — and more.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Episode discussion

No comments, yet. Be the first!