YouTubestream· Jun 7, 2025· 2:22:54
Music
Thank you.
so
Good morning, everyone. How's everyone doing?
let's see is that a little better there we go awesome hopefully you are doing great um i wanted to go live a little bit more uh is it only me or is the audio cracking hopefully it's not let me know if anyone else
says the audio is cracking or not um it looks at least like the levels look good where i am at so hopefully um hopefully it's not florian about to get on the stationary bike in the gym give me something distracting josh well have you uh here's here's this for distraction one i'm just
going to be i don't know preparing so like i have not met chris um uh the audio is broken oh no let's see works on twitch but broken on youtube
Well, that sucks.
let me go ahead and see if i can fix this it's weird that it's uh it's broken on on um broken on youtube but not twitch so i basically am using uh this free version or not free like it's it's a hostable version of restream called restreamer it's basically like a restream alternative kind of thing um so i'm pushing to twitch
Twitter and YouTube with the same audio file. So it's interesting that YouTube is breaking. But everyone on Twitch, everyone's audio sounds fine. Only on YouTube it is broken. Very interesting. Seems better here than YouTube. Is it still not a great learner? 0418, glad to have you here.
thanks for thanks for popping in um and thanks for the follow an exit is fine only on youtube is broke that's so weird um let me see if i can let me like just maybe reset it and see if that fixes it this is why i went live a little bit earlier before having uh chris pop on the
pop on the stage because i wanted to make sure um there weren't any issues
Thank you.
All right, I reset it on YouTube. Is it still broken, everyone? Switch to Twitter. Fine over here, says Florian. Well, glad to have you on.
glad to have you on Twitter now, Florian. I might have to just end YouTube, unfortunately, if it's still broken. I'm waiting for some more comments. Oh, it works. It works. Sweet.
Okay. All I did was just turn it off and turn it back on again. That's the way to do it, I guess. So I'm basically using, I'll have to make like a video about this sometime. They're basically using like on, I'm hosting on Docker. I'm actually using Coolify to host it. It's just a simple, basically like a one click command to install this thing called Restreamer,
which I can set like my own custom domain and then I can basically just give it a stream value and then it will push it to any other source for me. So Twitter, YouTube, and Twitch. Yeah, I'm glad it's working. I literally just turned it off and turned it back on. That's the win of the tech world. But yeah, thanks so much everyone for joining. I wanted to go live mostly to clear out those issues
first before Chris got on. Um, but so he, he's going to jump in. Um, and of course we'll probably have a bunch of issues. This is the first time actually, this isn't the first time. This is the first time I set up like a really better looking, like, uh, before I think I had a guest on the stream, I just used, uh, like Google meet and we just like screen captured like Google meet,
but now I actually have like a cool little dual tech setup. Um, and, uh, yeah, I'm super, super excited. One, I wanted to get, go live a little bit earlier to, to hopefully talk through with you all of what I should or how I should approach teaching Chris. So Chris reached out to me, um, and I'll tell this story again, like when he's on a little bit, but Chris reached out to me, um, and was basically like, Hey, I don't, I want to learn Laravel. I don't know where to
start and so i said well why don't we do it live on stream so i've never met him before um except for you know just watching his youtube videos i watch his i i learned from his astro course um he's coding on public on youtube um and uh jason on twitch says what's the longest you've used
one setup. Um, I, I plead the fifth on that. There's a funny story with my, with my setup process because, uh, well not, I guess it's not funny. Like I, so I, I try to record all my videos. I rarely ever do reshoots. Um, but there was one video I was recording for the, the Laravel official channel. And all of a sudden, um, like we, I needed to reshoot, but I had changed my
whole background and so I literally couldn't so I had to redo the whole video um uh but yeah I just restarted it and it works fine now on YouTube um on Twitch thanks so much Linus Dev and Lerner and Jack Peretti and Coding with Lewis I know you're on YouTube but you also uh followed on Twitch so thanks so much I appreciate it um I try to keep the same setup though but uh yeah we'll see how
we'll see how it works with uh getting getting chris on i i set up for those who uh are in the streaming world there's this tool called um ninja.obs is it ninja vdo.ninja vdo.ninja and it's basically just like this little like low latency um thing that gives
you like a browser source but people can connect to it so you can like see their camera and then they can connect it you can see their their uh their screen um and yeah we'll see how we'll see how it goes uh um but yeah the the i want to so he reached out to me and he was like i want to learn laravel i said hey why don't we do it live and then um i was basically going to figure out
what to what to talk them about and a lot of it's probably just going to be like okay he has literally never touched php has literally never touched laravel so it's going to be very basics install process but then also just like okay what's like the first step he is an astro dev and so he's familiar with react um so we might do we might do inertia we might do react we might do live wire to make it easier um uh send me links i want to try a new setup it is uh
video.ninja really super cool that and and like whoever is create created this i don't i apologize like to the author i don't know who who created it but there's like a whole slew of tools for like streams i haven't gotten this one set up but you can also like have chats from all of all of like the live stream aggregate system. You can have them show up on your screen
and you can customize how they show up and everything. It's called social stream. But there's like 20 different tools that this person makes. Harris works fine here. Well, I'm glad it works now on YouTube. YouTube is where the most people are. So that would have sucked if I couldn't get the audio right. So I'm just hoping it stays like that. Let me know if it doesn't and I'll do like the on and off again.
But yeah, thanks so much everyone for hanging out. Learner, I'm trying to build a social media app for devs. It's a way to learn full stack dev. Awesome. Sweet. It'll be cool to see what it is. Thanks for joining us. StreamYard finally added on screen chat. Yes. They finally added on screen chat.
So we use for the Riff and Refine podcast, which will be going live in just like three hours from now. We still, we use StreamYard for that because it makes it easier to stream to more. Like I can stream to all my places fine. But if I wanted a guest to also stream to their places, like just doing all that through OBS is such a pain. It's doable, but such a pain.
how's the music level everyone too quiet too loud um i always like to like this is royalty free music using stream beats so i always i always like to like have a little bit in the background but if it's too distracting let me know and i'll turn it off um especially once once chris gets on speaking of he probably is jumping in again we're doing all this live i have not talked to him
yet i sent him like some info um to like join the stream um yeah let me let me pull it up and see what we can do yeah jason you don't hate stream yard but definitely needs work yeah it's one of those
things were like another thing i can't i can't um tell it to give more bit rate but like for some reason my camera like i i like just looking at youtube like it feels like um uh very quiet bass was high okay so i'll turn up the music just a little bit yeah and someone says i don't even
know i had music going um but yeah for some reason on stream yard my camera looks very blurry like it's it's not as hd as it could be and i like and maybe it's just because i'm like pushing more bitrate to youtube um when i'm just streaming through obs um and so that's what i'm used to but yeah for some reason stream yard messes up my camera and i don't know why um i mean it's
it's probably it's probably fine for majority of cases it just bothers me because i know um i don't know how to pronounce your name but wow a yow j-o-a-o also i'll call you out um glad to have you here uh let me pop over to the um pop over to where chris is and let's see if we can get him on the stream
I got pull up this. Might be the bit rate. Yeah, it's probably the bit rate for StreamYard, but at the same time, I don't think there's a way to change it. And that's the frustrating part. Like I can't tell it, hey, give, like allow more. I already set it to allow like to HD, but I think like as high as it allows.
I'll open this.
hello chris can you hear me
can you hear me chris testing one two
so
all right so i'm trying to get chris on i can see him but he can't hear me just yet so i'm trying to get him on right now let's go ahead and pull this up
Thank you.
all right let's see
Let's pull open this. Alright, so we can see Chris there. Alright, I can see Chris there, but I don't think he can hear me yet. So let me grab this link and see if I can.
really what it comes down to him not being able to hear me let's see
So
Can you hear me at all now Chris? That is weird. I can hear Chris, I can see him, but I don't think he can hear me. So I might have to jump on a discord link or something with him.
Let's see, let's see.
Thank you.
All right. All right. So I thought I had tested this out. I tested this out by myself, but maybe like there was some weird thing where I thought I was hearing myself, but I really wasn't. So I know that this video ninja, like I can see him and hear him, but I cannot, he cannot see or hear me, unfortunately,
which is the interesting part All right calling him on discord
All right. Can you hear me now, Chris? Sweet. Yeah, let me turn on my camera here.
and you probably can turn off or turn. I think, yeah, I think if you keep the camera on the other one and then I'll just share my camera here. Kill your camera on Discord just for latency sake, I guess. And I'll share my camera here just so I know it's a lot. Let's see. Let's do this. Perfect. Can you see me now? Sweet.
and and then let's see if check can hear you because I'm bringing up your your screen over here oh well that's the screencast one let's do side by side because I can just talk to you first it's nice to yeah nice to meet you as well okay um bam let's see okay can everyone see
and hear chris chris say something say something hey everyone hopefully you can hear me and see me maybe we got it worked out cannot hear chris by the way chris by the way yeah i can or can't let's see let's see i can uh i do have both unmuted do i need to mute or i have yeah but yeah both unmuted should
I mute my audio on Discord? I see the I see the guest webcam audio going live. Success. We got success. All right. Well, good. Well, good to meet you. Thanks for having me on. I'm excited to be Laravel-ized. I'm not sure if there's
a verb form of that but excited to learn got some echo got some echo on me okay so there's some echo on my side but everyone else can hear can hear him let me see we'll see
I'm just gonna drink coffee if that's cool. If it's echo for me, I can put on my headphones if that's better. I think it's because so I'm gonna. Okay, go ahead and say something now, Chris, let me make sure we can still hear you.
okay so can people hear chris okay like when he talks there or no
oh it says i have a feeling chris has the wrong mic enabled yeah i think that should be better let's see okay
plot twist this is just a stream about figuring out streams stream about figuring out streams we're not even we're not even gonna get to the level piece um this is warm up man someone says thanks it is okay now oh but someone says we cannot hear him now uh there's a little bit of a
of a latency delay because of because of how I have it set. But let's see. No worries. Perfect. Okay. Jason from Twitch says it's perfect. So we'll go with it. Awesome. I'm getting all the levels. Like I've seen all the levels and they look good.
but like i'm also listening to you through discord and not like what everyone else is listening to sweet so we got we got another good no echoes good audio perfect awesome i love it that's what we want to hear there we go 15 minutes we did it uh chris nice to nice to meet you yeah uh thanks so much for reaching out first of all and then thanks so much for being willing to just do it live and uh and uh deal with all all of this is the first you're the first guest that i've had like especially
like with this with this setup so it's fun to be able to like figure it out and hopefully now i get a better understanding of how things work for the future it's got things so you're the guinea you're the guinea pig no worries no yeah we're uh so at works i work for resend that's an email api um for developers and we're going to laricon and so that was my motivation yeah so we just just sponsored that so i'm going next month for that and uh i was like man i should probably at
have a clue on what level so i was like who i know who understands javascript but also understands laravel so i mean you're top of that list for me so i reached out and yeah i'm glad to do it live i i have literally not looked at anything intentionally just because i figured if we're gonna do it live we're gonna do it live so that's that's how we like to do it there we go there we go i love it i love it yeah and then uh so you've never touched php like not even like wordpress days
I mean, just maybe at some point, like pre-dev days where I wasn't really dev. I haven't been a dev that long. It's only been about five years, actually. So during the pandemic. You're about the same as me. Yeah. Okay. Yep. And I just jumped straight in and learned HTML, CSS, and JavaScript, and then fell in love with Astro pretty quickly and done a lot of stuff in React and Next.js and other. Yeah. Tried to move more full stack, but yeah, never really touched PHP. Nice.
And so is that what you use a lot at recent right now is mostly react and yeah, probably not too much astro recent right now. No, I don't think my influence is that strong. I was gonna say probably not like too many marketing sites. Uh, yeah, I'd love, I, I've personally love astro. I've taken your astro course. Um, at least like 80% of it, but, uh, I, I jumped in there every now and for everything.
But yeah, I think one of the things, my hot take, a lot of people always say like, oh, what's like the JavaScript equivalent of Laravel? And my hot take is that Astro is the closest thing, mostly because I think to be a JavaScript version of Laravel, you have to have some opinions while also having some flexibility. And so I think there's frameworks that lead way too much on the flexibility.
And so you're never going to have like, oh, this is the way you connect to a database and do this. And Astro, I think, still is more flexible in that sense. But like, I feel like, OK, you have a flexibility of using like front end stuff. You know, view, react, solid, you know, whatever, or just Astro's HTML language or whatever. But then you also have, oh, hey, here's like Astro DB.
and this is like how you this is our this is our opinion on how you should use back and you can use anything else but this is our opinion on how you should do it yeah yeah i think that's what i like that's what a lot of i think that's what really it boils down to of like what javascript or what the lateral for job script should be um my opinion on like a lot of php stuff just from a distance
has been like they um it seems like the php world tends to have more opinions on stuff and javascript developers say they want them but whenever there's a framework like red redwood js or something like that that tries to be more opinionated people kind of just push it away it doesn't really gain the traction i think it's because javascript developers like like the language just want to be able to do stuff like 16 ways and not be really told how to do stuff so my opinion about laravel and php from
distance is like there's more uh there's more paths that are kind of defined predefined like this is what you should do you can maybe have more flexibility but like there's kind of you know off built in and you know like that kind of stuff like there's more built-in paths and so that tracks with my general assumptions about php um in that world sweet i'm excited to to dive in and just like just start doing it that way that way i can hear you i'd love to hear your thoughts as we
go of um you know first off like we're starting from absolute scratch everyone like he hasn't looked at documentation you haven't installed anything so hopefully we can go through that fast um but uh yeah if i have i don't remember doing it so maybe i did like a couple years ago or something i don't know but yeah yeah recollections um first i'll have you like share your screen and And to do that, if you go to,
I'll put this in your DMs on Twitter, but if you go to, you go to this video.ninja. Yeah, it looks like there's a share screen option there. Yeah, and not in the one that you're already sharing the camera though. If you go back to video.ninja and click into remote screen share so I can get a separate link from you.
Ah, got it. So after you screen share, then there should be a... Remote screen share into OBS. Yes. That sounds right. Correct. Okay. And when you do that, or after you click into it and share, there should be a link that it gives. And then if you can send me that link. Okay. Yeah, I can do that. I'm not sure which screen this is saying I'm sharing.
so i guess we'll see we'll find that out screen one screen two screen three i no idea no audio sources detected i think that's okay yeah that's fine it is sharing something okay it's even the right screen there we go uh copy link to clipboard oh it's happening sweet Perfect.
I'm going to copy it. I'm going to put it into my OBS. We'll go here. We'll go to guest screen share. Plop this in. Oh, they copied the Twitter link. Let's see. So I need that link right there. Perfect.
plop this into obs okay fingers crossed there we go i can see your back black and white resend uh resend background it's actually a raycast one but it is okay same vibes yeah resend race cast um sweet so we're seeing all this yep we're seeing larrycon cool i like it this is the
motivation. There we go. There we go. Yeah, I'm excited. I actually my first video that I did for my first video that I did for Laravel actually did a recent video. Oh, yeah. Resend Laravel adapter had just been released at that time. So I had pulled that up and did it. Yeah, I like I like recent. I don't get to use it as much because most of my projects, I'm never going all the way into email.
But maybe we'll install it and send an email or something. That'd be fun. I won't argue with that. Sweet. Let's go to Laravel.com and let's get started. The whole purpose of if you click on or there's this command right in there. Sorry for the video. Got my way. It's probably because your screen is a little bit...
yeah if you click on for you but uh if you click on like that composer global require level install um okay we you probably don't have composer or php installed if you go into your terminal maybe i did like a sample for something with reason once where i just installed to see if i could get a repo to work but i don't think so yeah if you do like composer dash v okay i'm seeing green that's a good sign that's that's something sweet um do laravel dash v i'm curious if you have like the
laravel installer installed no doesn't look like it sweet awesome so this this command that we have then is good because you have composer installed uh yeah yeah let's do that okay so what you made it a lot easier what is composer analysis to analogous to composer is analysis to uh pretty much to npm like that's like the closest configuration for the longest time and i i was this is way before i even got into php for the longest time most people said like it was very
hard to do anything within like php packages within the php world but then composer came along whenever that was people in the chat can probably let me know but when composer came along then it just made things easier so basically this this is the npm version you install packages you keep packages up to date um and like it has like this that composer uh global installer that we said
you have the ability to basically like it's kind of like mpm and mpx all in one okay now have the ability to run stuff as well okay cool yep exactly and and that's not as analogous because like there's it's not as i can't just run it one off but i can install packages globally that i can run one off that makes sense okay yeah yeah um so now we should have laravel installer install so if
So if you run Laravel dash V just to like double check, we might have to like restart our source. Or I can just restart altogether. Yeah, let's see. Cause I know sometimes, Laravel, no, command not found. So we probably, so we already ran the global installer. So we probably need it added to our .zsh.
Okay. So let me pull up my one, just so I know where it is. It is. Do, do, do, do. I'm ready to go over here
let me see I can't see chat either by the way or anything so if somebody's have questions or things for me I'm happy to you'd have to relay them to me. I'm assuming, you know, you know that but just yelling at me at any time. Yeah, I love it. I'll let me go ahead and copy this
for you and put it in our Twitter. No, no, no questions just yet. Let me see if put this in here. So if we add that export path composer vendor bin, that should give us what we need. Somehow I copied a bunch of stuff. Our whole thread. Let's try it again. Sweet. So yeah, I'm just going to do. I guess this is just composer.
Yep, that is just composer, I believe. So let's try this again. I'm going to source it. And then am I trying Laravel again? Yeah, let's try Laravel again. Okay, sweet. It worked. There we go. Awesome. Let's do it. One crisis averted. Bam. So now we can run as simple as Laravel new, and then we can call this, let's just call this Astro to Laravel. Let's do that. Wow, man. Conversion already.
No, I actually think, I think, here's where I'd be curious to hear your thoughts. So like, this is where I'm always interested, especially as I'm teaching new people, especially for people who are interested in React, it's nice to know, oh, here's some like simplicities. But at the same time, there's a lot of stuff that's like, oh, that's just React versus just Laravel. So we have the option to do React, and I'm fine to like walk through that. Or we can do something like Livewire,
which is going to be more in the backend focused. Let's actually, let's do React. Let's do React. Okay. I'm happy whatever the true experience is you tell me that that's what I want it's one of those where if you've ever worked with an SPA where you're connecting APIs and doing it backwards it's not going to feel the exact same because inertia which is the glue
that ties this PHP backend with your React front end together you don't have to worry about APIs and like cores requests and all this. It just works for you. You basically just send stuff to the front end and then request stuff from the back end kind of thing. So it's a nice way to like show the full stack piece where Livewire would probably be more like the .astro and you have like your dash, dash, dash server stuff in the top.
That's where Livewire probably feels a little bit closer just with a different syntax. Okay. So Livewire is more like PHP front end and back end or choosing a React front-end and a PHP backend. Yep, yep. React is strictly React, and this is our starter kit, so it has a lot of stuff out of the box for you. Let's do the built-in authentication. It's pretty easy. We're not probably won't get into testing, but this is kind of like the difference
between a kind of like a modular kind of functional syntax versus a class-based syntax. So PEST is usually the one that is probably more popular right now. Pest like jest, but for PHP. Pest like jest. There's a lot of peas. Yeah. No worries. That's cool. So yeah, so this is just like starting a minast or, you know,
new project or anything else. We've installed Laravel globally. We're using that to basically kick off any project. Yep, exactly. You've got it. We're all of this right now, especially like that Laravel new, it has those starter kits that we kind of give you out of the box that makes it a lot easier of course we could start from scratch and install um you know inertia and react and we could do all that but the starter kits make it easier to be like okay you can get up and running
you can just create a new page and you have like this information ready for you okay go ahead and install here yep we can go ahead and install there um running build does that mean is it building the back end or something like and then we'll run the back end in like a preview mode or yeah i'm curious why it's building already i think the reason i could be wrong on why we build it here i think
it's more so that when you do start you don't have to necessarily run npm run dev because then the then the assets and everything are already enabled for you um it did a lot of stuff it did a lot of stuff we have a lot of stuff this is probably the piece that most people especially new to laravel and coming from something especially something like astro but even something like next.js or something like that. It's a lot of folders to look at from the get go where you're
like, Oh, this is very, this is very confusing. Yep. Composer run dev. That should basically create. So this is doing a couple things in the background. This is front end and back end. Okay. Yeah. So this is running ahead. No, you're good. You're good. I like I like when you when you jump in like that, because then like, it gives me an idea like, Oh, you already see like what's kind of happening. Oh, there you go. You're back. Sorry, I lost you just a second. And then you sped up real fast. Oh, no.
I lost you for a second too, but now you're back. Let's do, so yeah, basically this is running php artisan serve, which is basically like the php server for it. And then it also runs npm.vrini when that command. So it's using npx concurrently to do all that. Okay. So this is the backend? This is the whole Laravel application. it. Okay. So where does the react fit? I mean, obviously I'm guessing this is using beat.
So, um, I'm guessing this is like the front end side of stuff. Um, that's actually just like the V development server. So technically the front end, like, uh, that, that welcome page is, is all of, yep. That's everything react assets being rendered to that page. So this is the part that basically like got me excited about Laravel from the first part is like in that page right there, we have a built-in authentication and everything. So if you were to like,
it's using a SQLite server in the background. So if you were to like try to register, we can like everything should be up and running. We already migrated all of our database options. Like that's part of like what that starter kit installs. Okay. But basically this gives us a starting point now with like this starter kit to be like, okay, and it has validation out of the box so nice um that's what i get for trying to do a really
um really simple password yeah my password right now is password don't tell anyone there you go password that's that's why i usually do like testing password i think mostly because uh i don't i don't know why uh is this just local to my project right yes yes okay all right It's not sending my password out to the world. It's already deployed on Laravel cloud. I'm sharing it to everyone. So can I see the database then? Like, yeah, let's, let's the SQL database. That is the SQL database.
Okay. So where's my users? I'll look at this. The hash it and everything. That's cool. There we go. It's hard to argue that. Okay. Sorry. No, you're good. Let's see. Let's take a look at that database folder then too. Cause I think like that's the part that, because how familiar are you with like full stack frameworks in general, like Rails, Elixir maybe? Yeah, loosely. Okay. Because I think like that,
like the difference in migrations and models when it comes to interacting with the database is probably the biggest thing that I was mostly confused about when I was changing things up. So this is what was generated for us, all these migrations. um and i think one of the things i i like about php and one of the reasons like i was i was trying out php and laravel and i was trying out rails i was trying out elixir and phoenix i i mostly was
like oh php it looks more readable to me than ruby in a lot of ways um which is funny because people say like oh yeah ruby is like super easy uh but like i take a look at this schema create and i know what's happening even if i didn't know php um and so basically yeah these these migration
files are created one piece after one piece after one piece um and so it goes kind of in top down order so if we were to create a new migration or a new migration file and the cool thing is all of the files that we are going to like touch and create can be done using like a cli okay um to make it easier back here yeah we can we can do that um let's let's uh let's create a new like
let's create a new model and migration actually so if we create a new do i have to kill this or should i just open a separate panel or yeah i think opening a separate panel is perfect okay so the cli within laravel is php artisan so if you do php space artisan sorry no space okay and then we have a bunch of stuff available to us for here most of it's going to be prefaced
by make so if you do make colon okay um and let's do let's go ahead and make a model so if you do make model a space and then we can call this uh with a um a singular case so we can maybe uh call this i don't know a post like a capital p post okay that just convention to capitalize it that's more just convention and i think the artisan command also like takes that and uses that for
stuff like migration so if we do a dash m as an option after this okay um and then we probably also want to do a let's do a dash m and then rc like that and then we can actually put that all in one option to okay like this it probably works the other way but yep exactly okay run it yeah let's run it something happened something happened all right looks like maybe over here
no it's yep right right there we cool basically three files were created we'll take a look at all of them uh but here's where we can basically uh generate our schema for posts um so why don't we here let's let's do like maybe like a a title and then maybe like some text so if we do like here um and you most people probably do it like it doesn't really matter because this is just order of like where the columns are in the database um but most people do it between the id and time
stamps okay so i would say we could do a yeah table and then maybe like a string so just string yep you got it and then we're going to do parentheses and here we can pass in a an actual string as a as a parameter to name it so if we do um we can call this
title okay perfect and then it looks like semicolon yes exactly semicolon perfect semi-colons are enforced semi-colons are yes that you have to have them no automatic addition okay there is like uh there is tooling um that gives you you know things like even even within like vs code and stuff like that there's there's there's tooling that will automatically
add them to you but they do have to be added yeah before built before runtime i'm a smake going guy so it's fine i just want to make sure yeah exactly that's the one thing i always forget for the most part. And then we can add a, so just to kind of say like this table and then anything after it, like is going to be the very, the type of the table.
So there's things like text, basically anything that you might think of like for a database, there is like enums, there's, and the cool thing is like, even though we have our setup as a SQLite database within Laravel right now, if we were to take this and to deploy it, it's basically changing like an environment variable to change it to something like Postgres or change something on MySQL. And outside of like those rare columns that maybe aren't supported or something like that, there's nothing else that you have to change
within your database or your code, I should say. So it's like this in-between layer that does the conversion process for you. Yep, exactly. So it's like, it's part of the, I think technically the migrations would be part of the ORM, which is called Eloquent within Laravel. Okay. So this is all like using Eloquent then? Yep. Like that syntax. Okay. Exactly. And so if I want to do like a date,
like an actual like type date, is there a way to do that? Yep. So like there's a date format. Yep. Okay. And so then it would be passing like the name of that. the title. Yep. Or like, I don't know, pub date or something like that. And that would just title the actual database over here. Do I have, so I don't actually have one here. Would I have to rebuild? Yep. You got it. Exactly. So after we're done, like with it,
you would run PHP artisan migrate. And so that's basically telling us, okay, well, let's find any old files that we haven't been migrating. Yep. Okay. So now we should see that in our database. Posts, we did things, pub dates there, titles there. That's cool. Sweet, sweet, sweet, sweet. Yeah, and the migrations probably aren't eloquent. We can, like if we were to go into,
maybe let's go into our app folder up there at the top. And if we go into, we can take a look at an existing controller just to see like how, what this eloquent kind of looks like. If we go to HTTP, this is what's already generated for us for the auth. So if we go into auth controller, and then let's do the new password controller, that's probably like a good one to take a look at. So again, this is stuff
that's already being generated for us. Here is where that inertia is basically going to be that React glue. So anytime you see like an inertia colon colon render, a namespace that is being created. That second parameter, the title is going to be, okay, we're going to render this specific React page and send as props the reset password array. Okay.
So that's what's happening there. I think further down, we might see more in the store. Yeah, a little bit lower probably. So we have this request validate, but okay, most of this probably isn't as much eloquent stuff. That was, I was gonna show you. Let's do verify email controller. Let's see if that's. Okay. Sweet, sweet, sweet.
I don't know what I'm looking for, so I'm just, oh, that's the end. I was gonna say, I'm just gonna keep scrolling. No, you're good, yeah. I was trying to see if there was a good spot to show you like eloquent. basically like eloquent maybe similar to like any kind of database you know orm like drizzle prisma kind of thing uh where it's very um it's very readable and user-friendly if we were to
say like hey give me all the posts and like let's send it to a to a react page um it's as simple as post colon colon all and then like that that that's that's grabbing all the posts and that's actually sending them as specific, like in that same eloquent model format that React or that Inertia and that Laravel kind of expects.
Why don't we jump into the front end and then see what's happening there. So we can close out that app. Actually, I lied. Before we do that, let's go back into app and let's go into models. So that's, there we go. And so we have that post model. That was what was generated for us. So we do the PHP artisan and then we have our user. And then, so this is where, and again, this is probably like the, at least functionally, this is kind of like where the, the biggest change, I think when we're moving from kind
of like a, I don't know, a front end focus stuff to like a full stack is like you have the migrations and those, those dictate your schema for the database, but the models is where it's dictates how do they interact with everything else okay and so a lot of these models you see here like this casts in the user and you um this is where a lot of those things if you wanted something attached to the user model to make it a little bit easier a lot of helper functions
are generated in here if i wanted to say um i want to i want to get all the users posts and i make that easier instead of having to write this eloquent uh or like it's sequel to grab all the posts from a user it's easier to do it here in the model and then we can use it later so we can even do that right now if we go into um like just after that protect function or some anywhere where
there's empty space within that initial uh array or okay yep right there objects like right here yep perfect um and we can run we can we can uh we can make it a public function because we're gonna we'll probably we can probably call this from a controller i'm guessing i type public i should have probably asked okay no you're good public function yep exactly and then we can call this uh why don't we call this uh posts and this will be like all lowercase yep and then that's
going to be perfect and we can this is the types of array yep exactly so this would be like um actually it's probably not going to be an array it's actually going to be a um it's going to be a belongs to um and so okay yeah uh part of the orm like just you can yeah and actually while we're here why don't we install like the laravel uh vs code extension
to help us out a little bit okay that'll work no way i'm not having to remember it all off the top Perfect. That is the one. That is the one. Yes. Of course I trust them. I trust you. Okay, so something's happening. That's good, so we'll try again. Binary. It's thinking about it. Binary download. Belongs. Do I have to maybe
reload developer window, maybe? Let's see. Belongs. i use like different uh code editors depending on what i'm doing so yeah i'm opening it in a couple weeks so yeah yeah actually the belongs to like that that php type uh type hints are probably going to not be laravel and specific that's actually more like php specific so if you go
into extensions probably the best the best one is php intellifence yeah that one like fence fence there you go yeah okay man the pun game is very strong there's a lot of ph puns in php no shade it's just i like it it's i'm a dead so yeah exactly i i feel that i feel that there we go belongs to and actually uh christian on on youtube correct me it is not going to be belongs
to it's going to be has many because we're in our in our users okay so one to many relationship get out of here stop telling me to do stuff all right as many perfect then that will be uh that will be an object okay um so actually you don't uh i guess you you could do that uh this is another weird thing is like php developers like to have the uh this um no just the object on the following line
like if you see on line 44. okay oh yeah i don't think it matters for building it but just readability I guess that's readability actually I go back and forth I probably look like a weird PHP developer because I sometimes have it but now I write JavaScript like this though too so that's even weirder that's why we have Biome don't worry oh yeah I like Biome now yeah
it's replaced a lot I wish it did more better stuff with HTML but I think they're eventually going to get there yeah Yeah. Yeah. We'll go ahead and return. And then this is where we can do, I think it will be just be, let me go. It should be users or it should be, it should be. And actually
that is, that is why we probably aren't getting as much type in because we can actually say that a post can belong to a user too. So if we say a post can belong to a user, then we know in the database, then we know that we can create it there. So one thing, let's actually go back to our database migrations. You're gonna have to help me out there. It's a database folder. Oh, that's right.
Database, migrations. Oh, okay. Go back to here. Sweet. And then after that's maybe even after that ID, what we can do is. Table probably? Yep, table. And that's going to be a foreign ID. Perfect. And then this is. Like a relation, like in Drizzle or something. Exactly, exactly. Relationship, whatever they call it, yeah.
Perfect. Yeah, and then in the, then it should be a user, I believe. Let me go ahead and make sure here. User, actually I think it's user underscore ID. So basically the foreign ID- Like this though? Actually, no, it would be the string. Yep. Okay. Yep. And then after that we can say constrained.
So this would be like the arrow syntax. So instead of the dot notation, this is PHP's ways of doing dot notation. Okay, so two characters. I don't know about that. That throws off the whole game. Yeah, I just can't do that. I was in it for till that. Constraints? Yeah, constrained, and then that's a method as well. So like a parentheses to do that. Okay. Perfect. Now, if we were to run PHP artisan migrate again,
And we're going to actually run php artists and migrate dash dash or actually colon fresh. Colon fresh? Yep. And so this will drop everything and rerun it. Because if we were to run a start, it wouldn't, it would see posts are already created. So it's not going to find that other column. We would have to, the correct way of doing it would be to create a new migration table. Okay. Or a new migration field, I should say. Okay. I like dropping tables, so.
Yeah, especially in production. Sweet. So now if we go back over here, we should have more help. Yep. And I don't know how much PHP IntelliSense, or maybe I've just been relying on Copi this whole time. But if we do return, and this is where the dollar sign comes in. Okay. So we're going to return this. So this is basically saying we want to return this of... Instance.
yep this instance of user and then not dot this yep you got it okay then this is where we can do the uh actually not so uh i meant that this is referencing the user okay got it um and then arrow and then it's going to be has many so yep camel case perfect as many and then this is where we can pass in the the class of the model so instead of a string here this is where we can actually do
to like a post. This guy right here. And that might actually have been the wrong one to bring in. Let me see, post. Oh, that's another one. And then if you just do, we'll just do a colon colon class to say that this is going to be the class instance of the post. Okay. So this colon colon syntax, like what does that map do? That is a good question.
If dot is this, colon colon is just like, it's what Russ stole from PHP or? Yeah, that's a good question. I'll see if anyone in the chat, maybe Florian, if you're still here, you know, you are a PHP master better than I am. But the way I understand what this colon colon is doing is it is referencing a namespace within that. I actually don't know if there's a one-to-one reference within JavaScript that I'm thinking of.
I guess a class within JavaScript, I guess it would be the closest, but that's referencing... Like new instance or whatever of the class, like instantiating, not really, I guess, if you're... Yeah, I don't know. Yeah, it's probably just because if we were to just have the capital P post, it's not referencing it at all. So if we were to go up to the top when like PHP, and actually because we're in the same name space,
We don't have to use this use blank that we might see at the top. Okay. James KH on Christian and YouTube says, what was that? Sorry. Oh, I deleted something that had this belongs to. We don't need that. Yeah, we didn't, we do not need that. It is a static method. Oh, okay. Static method. Yeah. And if we were in a different. Chemical on us.
Yep. Yep. Double colon, the static method. Yeah. And the weird thing about PHP is, is if we were in it, so we are in the namespace there at the top of app slash models. So we don't have to import that use function of, of the to do the post because we're in the name, same namespace. But if we were to try to grab this post in our, like a controller, which is a different namespace,
then we have to actually call use app slash model slash to do. Okay. We would call that down here, like inside this? You could do it both ways, actually. You could do like a full namespace of like, slash app slash model slash post, for example. And that would reference it. Or you could bring it in at the top, Kind of like similar to like a import function within, yeah, within JavaScript. All right, so what is this given us then?
It's now given us a function to be able to call all the posts that belong to this particular user? Exactly. Basically? So is it kind of like created a API route for that, but like just for our application? So it's not as magical as that. That'd be nice. This is basically just giving us a function that we can call within our controller, for example. So if we were to go back into like that at the top there,
that like app, HTTP controllers, if we were to go, let's even do our, like just, yeah, let's do the auth and then maybe like that, or let's do, yeah, off settings controller. Okay. And then like profile controller.
So it basically just gives you the ability to, okay, in this request, now, like in that array, that second array parameter of that setting slash profile render, I could say, give me all of the logged in users posts, pretty simply. And what that would look like is, yep, that could be exactly it.
a post and then we could say uh and we actually um don't even have to do like a request because inertia um is kind of like this magical glue where we don't have to say hey i need to make sure that the request user is it um we can actually do like an auth a capital a auth or even a helper function there we pull that in this is the class space so this is going to be colon colon and then we can say
user upper case lowercase just like that and it's going to be a a method so parentheses okay and then here's where we can say uh this is the arrow and we can say the posts inside here um after the after the user after yeah okay like that perfect yep and then we can also put a colon there yeah because that's the function that we created uh colon or comma or or nothing?
It doesn't need a comma. Yep, last one doesn't need a comma. Yep. It's an array. Okay. What's going on down here? Undefined method user. I guess, let's leave it alone. Yeah. Just don't look here, I'll scroll up. But yeah, this is basically how you would reference that within a controller. And we can delete this because we probably wouldn't want this in the settings profile of a user. But that's basically what we defined in the model
is now what we can use in our PHP within a controller class that our front end is calling, or that it's being received from our front end. We can now just grab all the posts as well. This is like a Git collection for this user. Sorry, I'm going to Astro on you. No, you go for it. I like it. And you're getting all their posts and you're filtering it by the user who created it.
Exactly. You got it. Perfect. Let's jump into react for a little bit. I don't know. How much, how much, how much time do you have? I know you said, I have about an hour from now. Yeah. I got an hour more. Sweet. I got a hard stop. Is it nine 30 for you? It is your Phoenix. So you, yeah, it's eight, eight 30 AM for me. Yeah. So it is. Okay. I'm behind at nine 30 your time. Sweet. I like it. Yeah. Let's jump into, and we can remove that, that post now that we don't necessarily. Now that we know.
Yeah, now that we know. Let's jump into React and take a look at kind of like what's happening. A lot of the stuff is going to just be, feel very familiar, but we can take a look at what's actually happening here. So all the React stuff is given in, we can take a look at routes first. Actually, let's do that. Because you clicked on it. Let's do web. So this is, those four files are mostly just conventions. Like you don't have to have like these,
oh here's off.php which contains all of the authentication routes it's more just for like visibility of like instead of having one large file um okay it it's saying okay let's grab all the auth ones let's put them in their own separate route just for simplicity's sake okay um but this is the the uh file based or namespace based kind of routing where we're saying
when we have the slash route we're going to return inertia render and it's going to be that welcome page because we have that laravel function we should be able to like uh command click into that welcome and we should get taken directly to okay the welcome page perfect so this is actually under resources resources okay okay cool that's a that was a little bit tricky for me when i first because i was like i was like that doesn't make sense to be like in resources in the javascript
kind of thing um and that's customizable but it's more a convention of like okay this is all the javascript that our application is serving and within that we have components and hooks layouts lib and then pages as well um but basically that that's uh in in that route when we called that welcome it's looking for the welcome uh name within the pages directory by default and we can
you can modify that if you wanted it to be elsewhere but we didn't have to call slash pages slash welcome it's just welcome okay um yeah the the starter kit gives us shad cn out of the box for react so it's feels very familiar here and yeah yep uh i think i think there's all our sheds and stuff there it is nice um yeah and then so in that welcome page
that's uh const auth prop that's probably like one of the things like to talk about for uh one of the inertia helpers that is basically given that use page from inertia is basically kind of custom hook oops yep exactly custom hook to be able to say there's some things that we want to have on every single page um and most of the time it is uh it is off it's saying
and hey, I wanna like have the ability to say, what is like, who is this user that is currently logged in? So that way we have that information available to us without having to have any other kind of API call requests every single time the page loads, for example. Okay, that's kinda cool. Yeah, and in that shared data, I actually don't know where it is off the top of my head. Let me take a look. I'm guessing too, like all this is server rendered
by default then if you're calling, getting the author or is it just passing down the user? Yeah, I'm curious like where this runs. Yeah, yeah, great question. So inertia is all going to be client side. So it does run, basically the routing and everything is happening on the server where it is grabbing any kind of like props because you're never calling for props basically in React.
It's not like there's no server components type stuff where you're calling for specific things. It is grabbing that information like from post or users on the server and then passing it to the client after it's already been rendered. There is like server side rendering inertia that you can easily turn on. It's basically like a couple of lines of like configuration to say, okay, we want this server side. At the moment, it's just one or the other. So you can kind of either choose,
do I want everything client-side rendered or do I want everything server-side rendered? Okay. That being said, a lot of people kind of do like their application in, and even in Laravel, like applications, like our official Laravel applications, we have like the application in React or Vue, and then like the marketing pages would be all server rendered, what we would call Blade. It wouldn't be React as the templating language. Blade is Laravel's .astro, for example.
Okay. So is that per page or per project you have to decide the rendering strategy? Per project. Per project. Yeah. So then they'll like split, like where you have one that's pre-rendered and one that's not. Yeah. Okay. Yeah. And there probably is. I don't know if people have done it before, and I don't even know if it's actually possible. but i i bet there probably is so basically when you create a server side rendering um entry point
you're saying uh all of these pages in this directory are server rendered i bet there is a way to also say then these pages are not server rendered um i don't know if anyone's done it honestly i'd have to that'd be now that i'm thinking about it i'm like i'm curious if people do um But yeah, like for the most part, most people are, it's per project based kind of thing.
I'm seeing here that there's like a head here. There's no shared layout or anything like that. Although I'm seeing over here, you've got like this app layout, auth layout settings. So like, how does, I guess here you have got this app layout. Here there's nothing. So like which layout is it just using like a default layout? For the welcome, it would not have, there's no layout specified there. Yep.
So yeah, similar to, there is no page-based or a file-based routing templating system where it's like, hey, this is my template and every single page, I don't have to do the import that layout. It's just more component-based. Okay. Cool. Well, where should we go next? Sweet.
Why don't we... Let's do... Why don't we do a... Let's create a new page. And let's make this... Maybe we'll make this posts.tsx. So now we can kind of do that. And then why don't we just copy everything in the dashboard for right now, just for simplicity's sake,
and we'll just kind of paste it over and change a couple things. Oh, sorry. I missed everything out. There we go. No, you're good. You're good. And then we could probably... Perfect. Maybe. I like it. Yes. And then let's go into that app layout, and we can change the sidebar.
So into this file here? Yep. And then app layout template. Okay. And then the sidebar. Right here. Got it. Perfect. And then at the top, we have the stuff that's being rendered. um so i should probably make this visible and maybe i have to re-log in um i think because we migrated fresh we have well you'll have to create a new account
yeah we dropped everything oh that's right dropping tables all right let's try it again then what did i lose you no okay you're good you're good okay cool all right so we have this here and that's what we're wanting to add is another one is this link a helper this is just from oh it is a helper so it's like a routing and we basically
just have to use uh the the way that the uh template setup is we actually don't have to do that actually well I killed it sorry um uh yeah if you remove that then if you go to top the main nav items are actually its own uh its own object oh okay yeah so we can just add um an extra one and actually this this would be nav items for the bottom that's like
a footer now so we probably don't want it there there we go okay so here we change this to posts yep there you go the icon is something else do we have intellisense here yeah i don't know if we have intellisense there so this would be like shad cn type icon like lucid okay yeah like lucid okay all right so
i did that sweet so now we just have to make sure we add a route too so like that's that's that's the that's the piece that it is like it feels a little bit more separate mostly because it's it's it's very still MVC type structure where we're like, okay, we need a route for this slash post. If we go into that- Or it won't render like the button up here or whatever. Oh no. So we do have posts. Okay. Yeah, yeah. Yeah. I got it. Okay. So go back to where now? If we go to web.php.
Okay. Perfect. And actually, yeah, web.php is perfect. We can, in that group function, where that route dashboard is, we can actually just copy that like route get. Yep. And all the way through like the, through the name. Yep. Then we can duplicate that. And we'll just change, we can just change everything to post. Perfect. Awesome. So what that is doing is that name that is showing
that it's giving is then also allowing us to, instead of for the pieces within PHP, and even there's some things within React and Inertia, like helper functions that we can use. There's things like Wayfinder or Ziggy. Those are separate packages, but mostly that post allows us to then use a named parameter instead of saying slash posts whenever we want to go somewhere. Okay.
So we can just say dashboard. Yep, exactly. Like let's redirect to... Or post or whatever. Yep, exactly. Exactly. Okay. Sweet. Perfect. So now we have that being rendered. So now we should be able to, why don't we get some fake data going in our post migration,
and then we can get it all. So here's a way to kind of like do this. the the uh the laravel way would be let's pop open our our code editor or our terminal again we're going to do php artisan um make and then we're going to say factory okay and this is where just hit enter yeah if you enter it'll prompt us for us to say like what it should be called
so we can call this the post factory case kebab case uh whatever that case is they hear the street yes yes okay uh oh i look like you did post factor instead of factory oh i did should be should be fine though we can we can okay um sweet let's go into uh that
Can I rename this now? Yep. Let's rename it. Post, just post factory like this? Yep. Perfect. Post factory. Do I have to change anything here? We should. Yep. Just have to change that class. Yep. Perfect. Okay. Awesome. And so factories are basically what allow us to use like fake data. So we don't have to like grab in kind of like other package. We could just create our own like fake data to say,
when I seed the database with this factory, what kind of information am I actually putting into it? And you can technically do all of this in a seeder, but the factory is like the easiest way to show it. So I think we needed a, I think we said we had a title, a date, and an ID, and a user ID. Yep. So timestamp is already going to be generated, so we shouldn't have to do that. So let's go ahead and do,
let's do if you do in that array we can do a string of title no just string actually just like the title itself so we don't have to call string so just quotes title and then this is where it's going to be the arrow syntax yeah and actually sorry not arrow syntax it's going to be like the equal equal arrow syntax
equal equal arrow no so space after title and then since it's in a object it's going to be yes like the equal and then the right bracket or right arrow like this without the dash sorry got it and then we can call faker just using faker.js
under and actually sorry not not not faker just fake fake fake perfect and that's going to be a method method perfect and then this is after after this is where we do that uh arrow syntax and then so we can say that that's okay it happens uh and then this is where we can say what it's going to be so this is going to be like a sentence for example all right so just like type type the word sentence? Yep, type the word sentence.
And that's also going to be like a, yep, perfect. And this is gonna be a comma. So every perfect perfect. And then update, I think was our other one. I think we call the pub date, yep. Fake. And I think we can call that maybe like a date time between might be good. Okay. we can say, this I believe gives us two parameters.
So we can say like, it's going to be like maybe, I don't know, minus one year. And we can actually do like a natural syntax here. Oh, nice. So minus one year. Perfect. And then it will be a second parameter as well after that. Actually a comma in that method. Oh, okay. In here, second parameter. Perfect, perfect. And then we can say now, like a sentence. as a string, sorry. Okay.
Perfect. Okay. And then last, we just need the user ID. Oops. All right, so user underscore ID. Underscore, yep, you got it, you got it. And then this is where we can also call like a user factory because we already have one created for us out of the box. So we can actually, this will be a, I think we might be able to do this
as a class-based instantiation. So if we do user, colon, colon, factory, we should be good. Okay, user like this, colon, colon, oops. Factory. Yep. Factory. Uppercase, lowercase, method? should be a method yes yes yes maybe we don't and let's pull in that uh
do I have to pull it in that model so this is what you're speaking of earlier where you have to import it because we're in a different name space yeah but I don't I think yeah that should be that should be that should be right because if you if you search for a user factory I think starter kits have a user factory in it okay we do yes awesome so we are good there and then so that should
be everything that we need I believe let me think let me think that should be everything oh I guess one thing that we do need is if we go to the post model, we need to make sure that this information is,
a lot of this is basically just being secure so that it makes sure we don't shoot ourselves in the foot and all of these conventions are like, okay, we need to make sure that this is built for applications in a sense. So what we have to do here is make sure that this model one can use a factory and two that information can be filled into this model. So it's allowed to be to be fillable.
And so what we can do here is in here we can say use. Right inside here. Yeah, right inside here. Lowercase. And then we can say space and then it will be has capital capital H has factory. Okay. the same um and this is that's actually just uh no method just the colon after that okay i'm sorry okay perfect um and then a couple of spaces down here but what we can do is do a
protected fillable so protected and then it's going to be a dollar sign fillable okay this is they what does the dollar sign do so that is like the the actual um name of the like the the name of the uh variable and because fillable is one that is is a reserved variable in the model like the
eloquent model that this class of post extends then we can say okay this isn't like creating from scratch the model is actually searching for this fillable variable. And so in here this is actually going to be an array. So just like that? It'll be equals array. Like this and then space?
Yep, space array and then if we open that array up we'll go and this is where we can input each field that we need so we we need a title that pub dates and this is going to be colon yep pub dates and then user id user id perfect then we can semi-colon at the end of this array okay perfect then the last thing we probably just to make things easier for us is any date usually we
want to make sure we cast it as a as an actual date time so um and this is mostly just to make it readable with an eloquent for as a date um so after this protective fillable what we can do is uh a protected uh dollar sign casts okay perfect and that's also an array oh man i was hoping i got that right
there's you you're you're spotless i didn't even see it and then it's going to be pub date Yeah, as a string. And then it's going to be a the equal greater than sign. Got it. Of a string of date time. All lowercase. Okay. Perfect. And then we can do a comma and perfect.
And then we might as well also use like the throw in the that public function user here too. So that So that way we're referencing in both places. We can call like, give me the post user and also give me the users posts too. That's public function and then under space or lowercase user. Okay. As a method, then the return type. And so we can do a colon after this.
Return type is going to be belongs to capital B. Yep, perfect. And then this is where it's going to be an object. So curly braces. And then. Oh, wait, I forgot PHP. Is that good? Yeah, you're nailing it. I like it. I love it. I look like part of the family. Yeah, you're, you're, you're in the, you're invited to the cookout. Sweet. And then we can return.
And then this is that dollar sign this. Okay. And then arrow syntax. belongs to and this is where we can pass in that user colon colon class. Oh, that's right. User colon colon class. Perfect. Because we're in this namespace. Semicolon after the method. I like that.
Not here or also here? Not there. Okay. Perfect. Yeah, so yeah, I like it. So this is basically setting up the ability that we can use a factory, that we can make it fillable. In this case, like this fillable is not just for the factory. It's also for if we were something in the controller that our React app is doing, as well as the cast to make it more readable if we wanted to say like, basically Eloquent has,
what extends from Eloquent is something called Carbon, which is basically like user, like easier to read dates. And so we could say something like, you know, if we are saying when this was published, we could send that information to the React app by saying, instead of it being a specific date time format and then doing that calculation on the front end of this, oh, seven days ago.
Laravel gives us the ability within Eloquent to say, just give me readable human format within that date time, that pub date. so what's the typing situation in php itself or in laravel or are they the same uh yeah i would say the the there's not too much that separates laravel from php within that typing specific thing um within the starter kit for example we do like lean into typescript we kind of kind of
already saw a little bit of that like we yeah yeah um and there's stuff that is being created by the Laravel team to help that within the front end of like of of there's there's a new package that just recently came out called Wayfinder where it's basically like hey all of the the things that you're doing within um calling actions or form actions or calling uh routes and stuff like that it's a lot easier if they're typed on the front end instead of having to figure out what they were
on the back end and because we know they are on the back end we can do it so right now it's maybe not as great as it could be in that kind of back end to front end divide. Okay. But within PHP and Laravel, like specifically on the server, I would say there's quite a bit of type safety, especially like this. So there's return types that we kind of see here. Yeah. And then there's also like within any kind of class or with any kind of a
model or anything like that, we could also add additional types and even like PHP doc, which is kind of like js doc type syntax yeah yeah to say this is exactly what i'm expecting here so i think i saw that somewhere um i don't know yeah probably in the like the oh no that wasn't it i don't know i saw it somewhere yeah yeah it looked like js doc and i was like i wonder what that is
but yep exactly so it kind of is up to the individual and there's like there's uh kind of Kind of like how biome allows you to be like, okay, I might get this completely wrong because I haven't used biome that much. But specific syntax, specific configuration within ESLint, biome, stuff like that allows you to say, this is how strict I want it to be and this is how non-strict.
PHP does have stuff like that within things like Rector or even PHP Stand, which is like a static analyzer, static analyzer. Okay. That basically allow you to say, okay, how strict do we want to type? Like everything should be like at least have a return type. That's usually what I think most people kind of lean towards when it comes to PHP types.
Like I'm not a huge type person, but like I usually do PHP, uh, like a return types. That's like my, my go-to. Okay, cool. All right. So now what we've done, let me make sure I can talk back through this. Yeah. So in this model, we've basically said it's allowed to use a factory. Here's where it should store the title pub date and use date within the fillable, like reserved, uh, uh, yeah. Constant, or I don't know what that would be. Just variable.
we're casting and i'm guessing this is another like this is basically saying i'll grab all the types and let me update this one to be a date time yep exactly okay yep and then we're tying this is what we did earlier in the settings that was like yeah it probably doesn't make sense in settings but here it would make sense for the post to say i want all the posts by that user yeah okay yeah so then with the post factory can we say how many we want it to create like it'll
just create 10 or whatever and using using faker or whatever it's using under the hood for this fake method yep so now we can go into the if we go into uh uh database cedar okay um yep there we go database cedar so we can see here that like that user factory has been removed. We have a test user for that.
So what we can do now is we could comment both of these out and we can do a post colon colon factory. And here's where we can kind of say how many we would like, kind of like what you're mentioning. So this seeder is basically what allows us to then say, okay, we're using this factory that we created as like the syntax. And like I said, We could have written all this out in this Cedar itself and not use the factory.
And we could have just called like this fake and everything like that within here. But typically you would write the factory, call the factory from the Cedar, then let the Cedar do the work. Yeah, yeah, exactly. Especially within large applications where you're like, oh, like within our Laravel cloud applications and stuff like that. A lot of times it's like, oh, hey, here's 50 different factories just to get your local environment up and running to make everything like, hey, this makes it a lot easier to get from the get go. That's pretty cool. I like that.
Yeah, exactly. I think for me, the part that really, most of the stuff I do is a solo dev. I'm not creating too many factories, except for when I want something up and running. Most of the time I'm even maybe just doing that in the SQLite database myself, just manually creating things. but when I want someone else to like open up and run this locally it's so much easier to have a factory yeah exactly one command that's a cool pattern you create it and you're like oh I have
all the information I need I don't have to find all this stuff and it's so powerful that we only probably like touch like the surface of it yeah I like the idea I mean of just like yeah using which whatever it's using under the hood faker js or whatever else like to or maybe not a JavaScript at all, I don't know. But to be able to like template stuff like that out makes it so much easier when you're learning something like you're not sitting around creating a bunch of random data. So yeah, I like the pattern.
So how do we get this to run? All right, so we can go back into our terminal and we can run PHP artisan DB colon seed. Okay. Bam. So now something's happened. And if I go over here, I should see posts. We should, we didn't get an error. So that's a good sign. Okay. Sweet. That's pretty cool. I like it. I think it's all Latin, but. Yeah. I actually think, I can't remember.
I think there are ways to tell fake, to say like fake with like specific. Yeah. Instead of using lorem Epsom. Or maybe that's a separate package. I remember there was one cool way that I saw someone do it. And I was like, oh, that's really neat. I'll have to remember that. And I never remember it. There's probably so much stuff. Yeah. There's probably so much stuff that like, like even, even, even there's stuff like within, uh, that the Laravel official team, they'll, they'll look it up and they'll be like, Oh, uh,
like that is now like, I totally forgot like that existed. It just, it just kind of lives there. How, how long has Laravel been around? So Laravel, I believe Taylor created the first initial commit, um, just over, over 11 years ago and probably is even is even longer when was the first commit in laravel
um june 2011. oh wow yeah it's a lot longer than than 11 years ago um but yeah so it has been it has been i know it's a really mature framework so yeah yeah that's all i know cool and uh like people started using it even even before he hit 1.0 I think people started using it in like
production just just to go but I think I think Laravel 4 was when a lot of people the was when the majority of the current code code base is probably like of course a lot has changed but that's when the biggest changes happen a lot of people came kind of into the framework
and i think that was in um let's see 2013. okay so 2011 to 2015 that's crazy now that we've seeded this we've got the model set up the factory's working it's created all our stuff now we want to pull these into the actual posts route right yep is that the idea yep yep i think the idea is a prop yep it would come in as a prop um first we need to make sure we pass it but yeah it would
come in as a prop that we can then you know deal with on the front end um this is one i'm not as familiar with typescript as i as i should be uh but we'll go ahead and start in the uh post controller because that's the best way to kind of make this happen um and why don't we do in the index method so we this is when we generated that create that make post we said dash mrc which which basically created a migration for us
and then a resource controller. Okay. So this gives us all like, excuse me, all of these- This is the resource controller. Yep, exactly. And the model is what we're just looking at. Yep. Exactly, exactly. This gives us like the, those seven crudish methods of where it's like, hey- Create, store, edit, update, destroy. Yep. Okay, cool. So this is typically like what most people, Again, it kind of depends on like preferences.
Some people prefer like single controllers, invokable controllers, where it's like instead of having resource controllers, I will just create the route in my web.php like we already did. And then some people are like only resource controllers, where if it's not one of these seven functions, then I'll create a new resource kind of thing. So it kind of depends on like personal preferences.
I think I'm all over the place when I'm doing reacting, stuff like that. But in this index, we can go ahead and let's create a new variable. So we can do dollar sign posts. And that can be equals. And we can do post colon colon all. Uppercase? Yep. There we go. And then that will be a method.
so um and then a parameter after that so this is basically saying give me all the posts and now we can push it into that and that react front end so what we can do now is um after that index or after that all we can go and return or sorry after that uh completely after the also like a couple spaces down yep we can return and this is going to be uh an array oh man i was trying
There you go. It'll be, Yep, return an array. And then it's going to be, sorry, not return array. It's going to be return inertia, capital I. Okay. Perfect. And then colon colon render. So this is like the static class from inertia to render. And then, yep, you got it. Posts.
And then the second array, second value of first parameter, yep, is going to be an array. So just an array like this? Yep, perfect. And then this is where we can pass in that post. So we can say like a string posts, like so quotations posts. And then this is going to be that, yep, you got it. Equal posts? That's going to be the greater than sign after that. Oh man, so close.
but I do use the dollar sign. Yep. You use the dollar sign there. Okay. Perfect. So now I have a prop called posts that is all my posts being pushed into that page. Yep. So inertia render here, like this is already somewhere in something, right? Like, I don't know, it's just here. Didn't we have like the web? Yep. So anytime that we are calling, so like we had that web.php and this is where we'll have to then change that
because now we want, instead of rendering this post when we get this post, we wanna point this to our controller instead. So this is the source of truth for what requests are actually happening. We just created that controller to make this, to cancel this out. So what we can do is- Like get rid of this? Yep. And I guess like the easiest way would be to, there's kind of like a bunch of different ways to do this.
The easiest way we can solve, instead of route git, we can call route colon colon resource, I believe. Let's see, resource, let me see. I always forget. And actually, let's do it this way instead. We'll keep the route colon colon git, actually. Okay.
And instead of that function, so if we can remove that function as a second parameter, and instead of that function, let's do an array that has. Sorry, I'm. Are you good? There we go. Array and this will be the post controller. So capital P. All per case, okay. Yep, yep, exactly. Then we can colon colon class that.
And then the second parameter of the array is going to be which, so we want to do the index kind of thing. So this will be a string of index. Yeah. You got it. And so this is kind of like an easier way. We could have done like the post resource, which basically wraps everything up. And it says, okay, when I call a post or when I call a put to this post route, I'm going to use like, you know, the patch method in there.
or when I call a git, it's going to use the index method. That's an easier way to kind of like wrap it all up. I usually generally like to go for this where it's like a little bit more explicit of like, oh, when I git post, I want to make sure. For git, do this. Yeah, exactly. That way I'm not confusing of when it's a put or a patch and all that kind of stuff. Yeah, no, that makes sense. So now if we go over here, I should have the post, right? Yep, you should have that. Like if we were to take a look at like the web. Sorry.
If we were to take a look at like the, in your dev tools, we should see like that, that being passed in. Like I'm guessing react dev tools. Yes. I don't know if I have installed on this browser. So let me install those. It's probably when I use different things for everything. It's the right one, right? Can't see anything.
one nick pony on twitch my favorite league of legends player turned laravel guy it feels it feels so long ago but it also feels like yesterday it's good to see league legend guys that's you that was i i played so much in college and so much after college i even coach coached a college team for a little bit oh man we have to restart chrome i don't know now if i do that i'm gonna lose everything so we'll just i'll just trust you on that so i'm
I can't remember if there's maybe maybe it is just react dev tools that that that pass it we also should be able to see it in. I should I should be following you along so I can follow it like and I should I should have downloaded. Let's see. Let's see. Let's see. Yeah, I don't see it in here yet. I probably have to restart, but then it would kill the stream. So.
would kill the stream, so. No, you're good. Let's go ahead. And so now we can actually access those posts. And so what we can do is. See if I can pull these in like this. Yeah, look at that. Okay, so it is coming in.
wait and this is where i'll kind of rely on you for like how to how to like type all this because like uh this is where i did we get any help from the front end or we don't yet so this is something that i know that uh the laravel team is is working on a lot to kind of make this a little bit cleaner especially now that a lot of the official laravel core team is using react in day-to-day life um
it just it's one of those things that it just hasn't been necessary a lot yeah um or just not been what people are asking for but it's it's one of those things that um is now i would say like front of mind especially in these last couple years yeah well we could grab all this and type this if we wanted to i don't know if it's that important like i guess we get intellisense but um if you're not used to do that in php that's fine too yeah i don't want to i don't want to
up time since we only have a little bit left to type it all but i mean we can if you want to yeah maybe we would maybe we'll just uh maybe we'll just because we're getting it in here so we can do stuff with it yeah sweet let's let's let's loop through it let's map it out all this stuff here and well yeah i'll just do something like this and then i can take our post
the map we'll take each post and then we've got the title i'm allowed to use my javascript stuff in here right you're allowed to use yep this is pure react not nothing nothing fancy in here all right let's just uh drop a uh b dot title so we won't get intellisense but that's okay oh man i got this new split keyboard that i'm still working on figuring out no no worries i've always wanted to use a split keyboard i have just not made the jump yet i'm just an old man whose
back hurts and so like having the split keyboard has helped my posture significantly that and i usually stand when i'm not on stream so and walk on a treadmill so i'm just a weird guy with a split keyboard walking in my basement there you go i like it i love it so so yep we could technically type this right here but we'll just do any i know call it there you go call it i already noticed it's it any so that's not going to help it because it's yelling at me so yeah i mean we're actually
getting the post coming in here so that's sweet i like it um that's kind of cool so that it just kind of gives you everything you need here so yeah and the neat thing is there's there's so much within inertia specifically because inertia is that glue there's so much that like then you can do especially once you get into a little bit more like advanced type stuff where um you know there there's things within like deferred props within inertia for example where let's say
we had you know 10 000 posts that we were rendering um and we needed to of course we could easily paginate those within within that uh controller that we're sending to this inertia page we could also say that we want to defer it so it would not hold up the rendering of that page and actually, and we would get the ability to- Dream it in afterwards almost or? Yep, exactly. So it'd be a deferred component that we would have in React that we could say,
okay, here's inertia.js slash react gives us a deferred component that allows us to say the fallback, this is the loading parameter, but that data I'm waiting, this deferred data is this particular piece of information. So we could technically wrap that all in a deferred component within React and do that. So we would just wrap it here. Yep, exactly.
And we would probably actually wrap it in, we'd probably actually wrap just the post piece because we don't want to wrap the app layout. Oh, the whole thing. Yep. That's true. So just this part. Yep. That's kind of cool. So it's like almost like suspense. Yep, exactly. Yeah, more or less. I don't necessarily know what's using under the hood. And so I think, I wonder if we get, if we can pull that in. The fallback is going to be.
Is this just JSX? Yep, just JSX. Okay. That's like a string of JSX? I believe it's just, I think it's just JSX. So you could just put the div in there. Yep. Okay. And just say like loading. Yep. Perfect. And then you could also. One more thing? It means one more thing of data. so data would be equal to props or the posts. And I don't think we even need to have the posts in the
initial prop. I don't believe so, no. Maybe we do. I think we probably do. Loading eternally though. And then we need to defer it on the controller side as well. Oh, okay. So if we go to post controller,
instead of that colon, or that dollar sign post, we can say inertia colon colon defer. Perfect. And that's going to be a method which accepts a function. So we can do a single line function in PHP, which is FN. Okay. And then a function, yep.
and then the dollars or the equal outside of this fn array and the equal greater than and then this is where we can do the we can actually just call post colon colon all here just for simplicity so we can remove that other and i can get rid of this yep now i don't Oh, no, it is still named. So I'm just declaring it here. Yep.
And assigning a name to it. Okay. So then I'd get it in here. Maybe. Did we break it? What did I mess up? Let's see. Is there space after all? Oh, no. Should there be? No. No, you're good there.
over here now it's just breaking the whole thing this is no longer going to be here though right yeah i don't think we need that does it break that now it's just part of this deferred thing maybe and maybe i actually don't know if um post is not defined is it like data dot post now or um oh sorry the the the post is a uh is a string of data so data uh and not even in
Not even in JSX. Yep. That work? Post is not defined. And maybe we add posts, the prop back into the post function. Up here? Yeah. Still not working, huh? Now it can't map over it. Let's see.
Now you mentioned earlier perhaps props. Do I just say props down here? Um, I don't believe so. Hmm. Take a look.
okay so i think we do have to i think we do have to define them or maybe we don't yeah deferred and we're we're pulling in this deferred function correct like at the top hmm that's a good question yep looks like we are from inertia posts okay data equals posts
it's hard to debug on somebody else's machine sorry no you're good you're good sure if it was on yours it'd be easy to do um yeah i wonder if it's I don't know
what might be happening there I don't think about it so we have the data okay and we have like the div afterwards and we're mapping the posts yeah I don't know huh what happens if I does it still load if I do this probably I'm guessing It needs a child. But let's just replace this with like a div. See if it loads.
Okay, so at least it's rendering. So it's just the fact that I can't find posts. So somehow it's not getting into here. That's okay. I mean, I understand it conceptually. It's like a server. I guess the only part I'm curious about is like how that actually works in practice. how it works mine it seems yeah so like um let me get all the way back to where we're at okay
select this and then i gotta go back here and we'll replace all this so we'll get it back up and working so you know if i'm thinking if i'm putting on my astro hat there's like server actions yep where oh i thought i did it right oh no that's right right just don't need this okay there we go um so you have a server action where you can go basically do stuff behind the
scenes and once that data is fetched it then streams in as html and then it basically swaps that um live um is that the same kind of thing that's happening or because we're in react land is it actually like just giving it raw json or do you know and then is it and then we're parsing through it at that point or i'm just curious how it's like how it's returning it to us in the deferred state does that make sense yeah yeah yeah i don't necessarily know what's under the
hood for the inertia react component piece but for the deferred function on the on the laravel side like the php side it basically spins up another instance of when when that bootloader happens on uh it's rendering the thing but that's basically spinning up almost like a uh a one not not long-standing queue in a lot of ways where it boots up another instance of the
of the request to finish out that task um and so it's deferred technically doesn't work within uh like a lambda function for example where there isn't necessarily a sense of like a a long-standing request. So that's how it's working on the server. On the client, I don't know if it is like wrapping suspense. I would imagine so if I remember some of the initial conversations, but I haven't looked into the actual underlying workings as well.
No worries. Yeah, I'll have to explore that. That seems kind of cool. But someone did say, they were saying you need to, for the deferred React to work, you need into there a component which receives posts as a prop okay that's how react works instead i guess that makes sense and that's how the docs that's how the docs show it where it has to be like a um a child component in that deferred thing okay but we won't we won't worry about it yeah
well this was our child component but it was this was just the jsx so you're saying i would just have to pass in a full component, like render this somewhere else. Yeah. Separately. And then I would guess, I would guess so. And I, I, I'll have to look at that cause I don't think I've used deferred within react, I've used it within Svelte. That was when I tested it out and it worked fine. So inertia does have Svelte and view, uh, additions basically, or like versions. I saw that view on when we set it up.
Yeah. So you can also use Svelte. Okay, cool. Yeah. And there's not an official starter kit, but there's other starter kits that you can use within Svelte as well. But why don't we... We've got like eight to ten minutes. What else do you feel like it'd be cool to go over? Let's go over forms. Because that's like the biggest thing within Inertia is, or within any kind of application, is going to be forms.
And so inertia gives you a form helper and we can probably see this if we looked at the like a settings page or like even like the login page. We could probably see it's like even like if we go into settings appearance. Okay. Um, oh, not that one chose wrong. Okay. Um, let's do settings. Password.
word um it's because it's passing it into a controller so we don't we don't have to click click through to inertia so here maybe yeah use form there we go perfect so what's happening here is this is inertia's like form wrapper of course like as you know forms are like everything within a application and so the way that we talk from front end to back end is not having to write any
API. It's just saying, um, I want to use a form. Um, and then I want to send that data to his particular route. So you can see here, we have that put route. And this, this is where we're using that named route parameter is password update. And then inertia form gives us some additional options. So like preserving scroll on success is what we want to do. We want to reset
the form if there's errors this is what we want to do so all this is given kind of like out of the box within like inertia form helper um mostly just to manage all this easily on the on the front end um that's cool so then this is going to correspond this password update is going to correspond to one of these routes over here maybe yeah right here okay exactly so if we were to even click through to i don't uh if we were to click through into that password controller i think php intell
offense maybe gives us maybe it doesn't uh password controller right here perfect yeah and so this is where that update so we would be validating that information so that that request validate is saying um this is where we're kind of in in the while we're waiting for this to be to be validated on the client uh this laravel gives us this validation rules out of the box and we can have
even custom validation rules, but this is just as simple as saying this password needs to be required, needs to be confirmed with that current password. So that way that confirmed piece is a validation as well. And then any kind of like password, so like password defaults that it's passing in, I think that's like the eight minimum characters and you can't have, I don't actually know. Yep, just over here.
password requires at least one uppercase and one lowercase okay so those are things that you can kind of like modify even just within these password defaults okay that's cool um and then that request user is kind of like that what that thing i was saying like because we don't have to worry about sending oh i need to now send all this off information back to the client to make sure it's the correct user and like authorization piece inertia handles all of that for us so we can just
say if like let's update this request user that sync has already happened we don't have to worry about any kind of security concerns there yeah it's nice to get a lot of that just built in to have to roll all that yourself that's kind of cool yeah now like with laravel in particular you can can you self-host laravel yep and there's like a laravel i forget i saw something on the site um when we were looking at a second ago um like an actual hosted version too right yep there is so
So Laravel has Laravel Cloud. So we basically have like three different hosting options that are official Laravel. Of course, you can deploy wherever you want to. It's just PHP and Node, I guess, if you're using Inertia. But Laravel has kind of like three official options. It's Laravel Cloud, which is kind of like the managed for you hosting. That's as kind of like a Vercel alternative. If we were to push this up into GitHub, it would be as simple as saying
I want this GitHub repo and it will deploy it for us kind of thing. This is like CI build. Yep, exactly. Laravel Forge, which is basically like you connect your own Hetzner server or DigitalOcean, whatever you want and it will set it all up for you. So obviously you're really only just paying for the management of your server without having to do all the other stuff. And then there's also Laravel Vapor which is
basically like AWS for hosting as well. Cool. Yeah, it's like crazy how many, yeah, there's just so many like custom names for things and like every area and I'm just like Vapor Cloud, all these things. And then, yeah, and then like Inertia and like all these different names. It's just- Because then if you look at that like open source tab too on Laravel.com, like that's where it even like
gets crazier because every package basically has a neat name. So we have Scout. Echo Reverb. Yeah, yeah. And it's all specific. Most of the time, if you need something, there's probably going to be the package for it. Like Scout, for example, is like full text search. So you can use things like MelaSearch and TypeSense and have all that built in. It just abstracts away all
that stuff so you don't have to set it up much and or if like we were using we need to use like google login there's um there's uh why am I blanking on the name synchdom not synchdom there is uh socialite I was like why am I blanking on the name there's there's a lot of names yeah uh just these alone oh socialite yeah socialite that was right there it was right
there the whole time right they're just looking at us yeah and then these are you have these two then you have svelte and then live wire is like the php front end and back end yep so live wire is the one that i kind of like like hooked into the first time i tried it um and this is where i'm kind of curious to get your thoughts like in the last couple minutes um is uh like so like the reason why i chose live wire and use it for most of my projects of course i still like building in
react and view and spelled and stuff like that is because um i have kind of like within astro like and the reason why i like astro is like i like writing hey here's all my client side code and then here's my server side code and i can just call it so livewire basically gives you the ability you're writing if we were to do like that post stuff it'd probably be a lot quicker because we wouldn't have to jump around too much of course like it's great with inertia in the long run if you're building a huge application you like you need to have that stuff i like livewire like the
speed of it because i could be like um within that post for example we could create that form in the same file we could create that we could even say oh i want all those posts in the same file without having to jump into a controller and render it and stuff like that um and so uh i guess i could see that being like kind of the fundamental if you're gonna like really try
Laravel, like that should be where you start. It seems like, because to me, like when somebody comes into Astro and they're like, Oh, but I also really want to use react. And they just basically port over the whole react app. I'm like, I mean, you can do it, but it's not like you're kind of missing out a lot of the benefits. Interesting. Okay. Astro. Um, not that I have a problem with using Astro or reacting Astro, but it's like, if Astro is basically doing routing only and all you're rendering is just done in react, it's like, you're basically just building a react app and
is like and you know embedding it in astro and it's like i mean you get some benefits you can use some of the stuff in astro but it's like the speed like a lot of the superpowers of astro i feel like are kind of at best handcuffed yeah and that makes sense is that kind of live wire like is that comparison i would think so it it's it's definitely fair it's one of those things where i think within inertia and laravel kind of like you said you you it's easy to know that oh yeah laravel
can just render and react like we're good but it's harder to then see the benefits of laravel i think in a lot of ways where you have until you need them you're like oh now i need to like have like i need to run queues well that's all always been laravel you just consume it differently within react i think livewire especially from at least from my understanding from the get-go is a lot
easier to kind of get this glimpse of the full the batteries included piece where you're like oh it's this simple if I'm calling something from live wire I could do the exact same stuff within a controller and call it from my react inertia piece but now I'm just seeing it a little bit more quickly a little bit more visually where I'm saying oh now I can send an email with resend and I'm just doing all that.
I click one button and that happens. Of course, you can do that within Inertia. You click a button that's a use form that hits a post, that hits a route, that does all that. It just seems more abstracted because it's meant to be that way. You know, like where you're like, oh, you can use React and your team doesn't have to change. You just have the benefit without having to write this API layer and stuff like that. So yeah, I get that definitely with Astra too where it's like nothing changes
too much when you're using react you just kind of like uh it's it's you're you're you're not seeing the full um benefit at the get-go because you're just waiting for it when those times come kind of thing and you don't always know that they're there either because if you're used to writing and react then you're you're kind of scoped mentally to what you know you can get in react and so yeah i always recommend people start with astro like just do astro only and then you can
basically do extra stuff as you need to pull in a react app or you know or a react component or whatever but yeah i feel like if you start with what you know in some senses it's kind of its own kryptonite like it helps you get started faster you know it's like somebody who's checking out laravel is like oh i could use react okay well let me give it a shot then but if you stay there it can kind of scope what you know about laravel to just what you know what your expectations are with react so it's almost like yeah with astro i typically encourage people just like go all in
learn enough. And then if you want to jump back and start using a lot of react, that's great. I use react in a lot of apps, um, that I write in Astro, but probably do have to bounce, but I really appreciate this. This is super cool. And I think there's a lot of like, um, patterns here that I'm like, I want to kind of explore further now. Um, having just touched them a little bit, I'm going to have to get used to that arrow syntax. Yeah. Arrow syntax arrays where you have, like you have the, the single arrow I need to figure out now that I've done a couple of years where I'm like telling someone what to type.
I need to learn. Fat arrow, single arrow. Yeah, fat arrow. There you go. See, I need to learn how to do that a little better. It's always tough when I'm like, I know what it is in my head, but like I can't say equals greater than, you know, got to thank arrow. But yeah, thanks so much, Chris. Thanks so much for having me. I really appreciate it. Yeah, thanks so much for jumping on. Do you want to do that? Yeah, I'm curious. Maybe next time I'll have you try out Livewire and we can do like some recent email stuff. That'd be fun. Cool. Well, I look forward to it then. Awesome. Thanks again.
Sounds good. Have a good one. All right. Thanks. You too. Bye. Awesome. It was great to have, uh, great to have Chris on. Um, I got jump as well. Uh, gotta get, gotta get working. I guess start on some stuff. Um, but yeah, thanks so much to everyone for who was here, who kind of like hung, hung around around. Yeah. It was cool to see kind of Chris's mind go different places, especially when it comes to,
kind of like just jumping right into things like the form functions and as well as like what's happening like in the back end when it comes to database and migration, stuff like that. Also, this kind of stuff always helps me when I'm telling someone new about it, especially an existing developer who knows things. It's always great to see, okay, what pieces am I missing or what pieces should I make sure I focus on when we continue learning stuff like this.
So, um, yeah, thanks so much everyone for, for sticking around, uh, resin, uh, want to learn Laravel full free. What should I do? Um, there's a bunch of great tutorials. I would say Laracast has some free, um, Laravel tutorials to, to check out. I would check them out. Um, I have some full tutorials on my YouTube channel as well. That's youtube.com slash at Josh Siri. Um, Dylan,
have a great weekend as well thanks thanks so much for sticking around uh thank you learner as well for the stream die bell then comes vault and you know packages i know there's so much i need to i'm making another video about uh some of the updates to my starter kit that i've done which include a whole bunch of like php type stuff that i've learned quite a bit um yeah thanks so much everyone for sticking around i really appreciate it was a lot of fun and thanks to chris again for uh for being willing to jump on live and get that all all figured out but uh but hopefully everyone