YouTubestream· Oct 18, 2025· 56:01· 352 views on YouTube
React at a moment you like. The best moments light up here.
[Music] Jump.
[Music] Hey. Hey. [Music] Hey,
hey, [Music] hey.
Heat. Heat. N. [Music]
Heat. [Music]
Hey, Heat.
[Music]
Heat. Heat. [Music]
D. [Music] Hey. Hey. [Music]
Hey, hey, hey. [Music]
All right. What's up, everyone? I am trying something new. Hey, Francisco. Good to see you here. I'm trying something new. I want to basically just do my work in public, if that makes sense. I have a couple of videos that I want to make um
this afternoon, my afternoon, my evening. Uh, so I'm just figured I would do it live with you all and try to get into this process of doing this more. Uh, being able to do it live in front of people makes it a lot easier for me because then I can do two things at once. Uh, so hopefully I can one not leak too much information, but two, uh, be able to do this with you all
as well. So, um yeah, if you're joining, thanks so much for for being here. Uh hopefully trying to do this at least like three different times a week. I'm hoping to do like a Monday, Wednesday, Friday kind of thing. Um that doesn't end up working out, then I'll just end up doing it maybe once a week, twice a week, I don't know. But the cool thing is the goal is
for me to record videos and you I guess to watch or just to hang out with you. Uh so yeah, glad to have you all here. Camilo, good to see you here. Hopefully you're doing well. Hopefully you're doing well. I know you can see what I'm typing too, but uh figured this would be this would be great to kind of just have this this process. Um, so I have a couple videos I want to make for uh,
Laravel, but then also for uh, my own channel as well. And yeah, just get things up and running. I figured, might as well do it live kind of thing. So, uh, hopefully I can get into a little bit of a rhythm, a little bit of consistency, so that way uh, people are expecting it to because I know that's the that's the big key. as long as it's consistent, then people are going to start hanging out. Um, so I'm
hoping to do this every Monday, Wednesday, Friday at around this time, 1:30 p.m. onwards kind of thing, and live on Twitch, YouTube, and uh X. Uh, so yeah, I'm going to go ahead and check out see which videos I I have up and coming. Um,
Let's go ahead and see. So, I'm not going to like hopefully for those just for those joining, hopefully it's still kind of entertaining and still fun for you. I got a new uh camera angle actually right over here. It's a little behind the scenes camera angle so you can see I guess what I'm doing as I'm doing it. Um, which is always always fun I guess in a
lot of ways. Uh, but yeah. Um, I should make that its own separate scene so I can jump to that like if I'm if I don't want you to see anything on the screen or anything like that. Uh but yeah, I am wanting to uh record some videos and then kind of just walk you through the process or just you see the process of what how I record videos, how I think
through videos. Um so if I pull up my kind of notes here, these are the ones I want to record at least like these three. It'd be nice to record these three in the next couple of hours. um one for Laravel inertia form component and then uh maybe like a building component. So building a random lottery machine for giveaways would be awesome. And then it'd be nice to react
to the state of PHP survey. I think that would make a good video as well. I remember taking that survey, but I haven't looked into the results just yet. So that that would be fresh for me as well. And the cool thing is as I'm streaming, my whole setup is exactly the same as when I'm recording. So there's not going to be too much that changes from my perspective and hopefully from your perspective. The only downside is I'm not going to have any fun music for you. So if you're here and you just want to
kind of put it on in the background, I'm fine with that. Like uh hopefully it's entertaining enough. But uh I'm not going to have any I'm not going to have any music going for that. I need to actually pause my music just in case it doesn't go in there. But um let's go ahead and see what we've got set up here. Uh
yeah. Um so I think we'll start off with the inertia form video. So typically when I'm making a video, I kind of do a little bit of research just kind of outline in my head of what I want to emphasize. with this. Uh so if I pull up my screen here, I know that there was in the
starter kits uh starter kits inertia form component. I think there was yeah there was in the starter kits kind of a while back. Yeah, here we go. Because the form component for those who are just watching this is kind of me talking through so that I am outlining or detailing at least in my head of what
where I want to or what I want to emphasize with this video. I'm imagining and this is where I can kind of take notes for this particular video. I'm imagining maybe like a a five minute type video. So there's not going to be too much to talk about this. It's going to be more of like this. You used to have to write forms in this particular way with inertia and this is the way that you can do it now. So, uh
what you used to have to do and now what you how easy it is I guess would be the outcome. Um for those in the chat, if you're in the chat, uh let me know if you've worked with inertia since the release of the form component. What are some things that like it just made it super easy? And then what are some things that you're you it's not hard but uh it was maybe just maybe it was easier
before or maybe it's just different now that you that you have that form component. I know the form component does in detail for every single use case. Um how easy it is and then maybe just a quick example. Um so at its simplest the form component behaves much like a classic HTML form. And so this was the this was the initial
pull request for inertiajs for the form component. But there's there's a great pull request that I'll have to find within the Laravel starter kits where it jumped from the form as a non non-component to the form component. I want to see if I can find that. Uh let's go ahead and see.
Maybe it was back here. Okay. Yeah, here's a pull request in the React starter kit. Yep. PR utilize. This is what Joe Tannnbomb did. So, I believe let's go ahead and take a look at one of these files. So this is what I want to kind of emphasize in this video as I'm
making it is like it it so we went from a uh form with a method of post onsubmit of submit with all these labels inputs everything like that to shortening this up rather significantly because you don't have to do any of this ID name password all this kind of thing value
even you don't even have to do Um, you just have to put in like the ID and or I think it's just the HTML 4. Maybe it's the ID as well. Let's take a look. So in forms, so form action and you can pass it whatever that place is. We'll do react each slash users and then you just have the type and the name. So it is just the name. um just give each input a
name attribute and a default value if applicable and the form component will handle the data submission for you. So yeah, it makes it a lot easier from what it used to be where if you were doing a full form, you would have to have the value and that value would then be this whole data password prompt submit. So now you just pass a
specific name of the password. You have a name of uh confirm password. So this is what I want to emphasize in the video is one how easy it is now. Then two um I guess just what what what the process is to change it. So if you had an older
form uh so I can put that in my notes. Um quick example of refactoring that might be a good thing. So five minute video. So the intro is going to be something like um I think forms are everywhere in the web. You kind of have to have forms to do anything. So, I think that's going to be
the hook for the video, if you will. You kind of have to have forms to do everything. Forms are everywhere on the web. And so, the premise is in this video, here's the here's what forms and inertia used to look like, and here's what they look like now. So, we're going to go from this to this. And maybe it can be a quick um this
to this. Let's find out why and how. Perfect. Uh yeah, for those just joining, um if you're if you're joining up, let me pull open the chat real quick. If you're just joining, um what app are you using to write notes? This is actually uh Linear. So, I'm using Linear as my I guess this is how I kind
of keep an I my all of my video ideas. Um and then like what I do for the next day, week, or however I get to it. Um, but most of my notes are actually in um Reflect. That's the note app that I use. Um, so yeah. Uh, Josh, hey, Think First, how's it going? Good to see you. For those just
joining, I am kind of trying something new. I'm trying to build out um I'm trying to try a new process where 99% of everything that I do in a video I can do live. Like my whole process of switching scenes, like switching camera angles, that kind of thing. All of it happens live anyways. So, I figured why not make
why not stream me making videos. So, I'm gonna pull a a note from, I guess, the the Theo playbook, if you will. Uh, where might as well do it live and have people watch and follow along and maybe learn something, hopefully. And hopefully it's not too weird. I do a lot of retakes as I'm doing videos, so hopefully that part's not weird. But, Camilo, I think for me using the Wfinder has helped a lot with the forms. That's
a good point. I don't know if we use wayfinder in the in the starter kits. Actually, I'm curious. Does anyone know a way can I use a starter kit before this form component? Maybe. Let's go ahead and see. Uh because I I
basically want to like pull open the starter kit of what this used to be before the form component. I wish GitHub Let's go ahead and view file. I wish GitHub would show me the old component. Um maybe this is this would be it. Let's see.
Let's delete user. Confirm password. Register. Let's do this. So, this would have been the old version of the file. Yeah, we have form method and I don't think we were using Yeah, we weren't using any things. So, why don't I pull open We'll create a new uh Laravel app
and go ahead. I think I need to set my PHP version because I was using I was doing a different app before PHP 8.4 will be fine. We'll do a Laravel new and we'll call this uh inertia form. We'll use the React starter kit. We'll do the built-in authentication so we can look at what that new form component
looks like. And I think that would be the premise of the video. just like how did you how did we do this like before with the old form component new or the nonform component I guess I should say and then here's what the new form component looks like and maybe I'll grab um maybe I'll find um maybe anyone else knows in the chat if if you if you know of a specific I don't know specific
uh open source project that uses inertia that might not have the new form component. It'd be interesting to to pull that up. I know ping CRM. I don't know if this is up to date. Yeah, nine months ago. So, it'd be interesting if we were just like refactoring this. That might be an idea. InertiaJS Ping CRM. Let's go ahead and let's go ahead
and clone that. Uh, inertia js ping crm ping CRM composer install. We'll go ahead and mpm install
and then phprzin key generate. Oops. PHPR is in migrate. No, we don't want that. We need to copy that. Now we can migrate. Now we can generate. Perfect. All right. Funny note for new Laravel
applications, there's an easy way to get this set up and running. There's a new composer script um with new level applications. We probably have it in the uh inertia form one that we opened up. So in the composer JSON it should be like a setup. Yeah, this new this is a new
script. You composer install it does everything that I just did by hand without having to do it by hand. Uh but obviously I mean I could have copied in just done that. Um but yeah, so I think the first thing is let's do a let's let's get this one. Let's do an intro for the form component and then maybe we'll do a what you used to have to do, how easy it is, quick example of refactoring. I like that.
Keep it five minutes. Um, funny enough, when I'm recording, usually like a five minute video, I probably have like around 35 to 40 minutes of content that I usually have to cut down. A lot of that is mostly me just stumbling over words or if I'm or if I um am figuring out how how I want to type something or say something or that kind of thing. For this one, I want to be a little bit more polished.
Um, hey Josh, remember me? Priv Faraj, good to see you. How are you? I remember you. Uh, Mr. Manapon. Oh, composer is JSON now, not Yamloth. I'm I'm old. Uh, are we what are we planning on breaking today? Hey, Carl. Um, yeah, I'm trying something new today. I am making videos and recording them live on stream. Um, and so the goal is to um
the goal is to be able to kind of show the process of what what I do to make videos, but then also just have a easy way of making videos with you guys watching. Um, hey Mr. Van, glad to have you all here. Uh, I use Vue. Wayfinder was added in August to the View starter kit. Okay, perfect. I think Wayfinder is in the new starter kit as well. Um, and yeah, Carl, it is
awesome. Hopefully, it's not too weird. I'm not gonna have any like music going because like my whole process of recording videos, like everything that I do is live anyways. I don't do too much editing other than cutting things down. So, hopefully it's not going to be too too crazy. Um, why would that be weird? Uh cuz I I I I when I record videos, it's a little bit
different than when I'm talking to you. But um yeah, the whole the we'll jump to this so that we can record that intro. Yeah, my whole process, my whole flow of recording videos, nothing changes when I'm live streaming. So, every camera switch, every um you know, every scene is the same when I'm recording videos as it is when I'm
streaming. There's nothing that changes. I just press this little record button. So, um yeah, makes it a lot easier. Oh, I also did add a little behind the scene camera. Um that was that was a new addition. Uh, Mr. Marathon, thank you. Love a parallax. Yeah, it's a little slider. So, it's hard to see on this shot, but on this shot it's a slider that goes from left to right. So, it kind of So,
as I'm talking, it makes it look a little bit more cinematic. Um, but it's also just I like having motion while I'm recording videos. So, for especially for like intro shots or like marketing shots, I guess. But, um, yeah. Uh, Tilly, glad to have you here. Um, yeah, I'm pretty proud. Yeah, definitely remember you. EMTT, busy guy today. Uh,
hopefully hopefully not too busy. This is more of like me trying out something new so that I can kill two birds with one stone. Be able to um record videos while also sharing the process live with you. Glad you remember me as well. Uh, of course, Carl, you're you're you're a Twitter mod
or Twitch mod. I don't know why I said Twitter. Casey mirror. It is. I um the funny enough sliders like automated sliders are not that expensive. So, it's it's it's super super fun to do. Okay, let's record this. Um, so inertia forms
Press record. Oh, we're getting some stuttering. I haven't actually tried recording while I'm streaming, so I think it's slowly catching up. We're not actually
dropping frames. Are you all seeing their stuttering or is it just on my on my flow? I think I know what why is why it's stuttering. We'll go ahead and stop stop recording. It's probably because
it's probably because of source record. So, we're going to change that. Remove source record there. Remove source record from here.
We're going to That should be better. Let's see if I have any other source records going. Close that one out.
I do not source record that one. Okay. So, a little bit of technical to get to do with these. Um, it is stuttering. Yeah, it's funny because I'm not I wasn't actually dropping frames. I think it was the encoding that was dropping frames. Um, but good to know. So, I think it's because my recording process, I haven't tried it while streaming. Um, but my
recording process, I record my video separately from this. I'll call it like the collective shot or the final shot. Um, and I'm guessing you and Will talking about building stream tools. I'd love to watch how you approach building something like that with chat aggregation stream overlay. It's funny because I uh I did I am still thinking about this process. Like I I
think I think that it's it's needed. Like I have my own setup with OBS that works great, but if I needed to bring something into this and plop it in, it's a process. Good night, Chris Rash. Glad to have you here. Okay, let's try that again. Let's see if the recording um I'm going to rename this one and delete it just for now.
because that was stuttering. Let's see if the recording for this one is any better now that I remove source record. Or at least I think in OBS if I hide source record, I think that stops source recording. But if not, I'll have to change that. Let's go ahead and try again. Recording.
Okay, I think we might be good. No stuttering. Good. I don't necessarily need source record. You guys can keep me You guys can keep me um Yeah, looks like we're good right now. So, it was the source recording, which makes sense. If I'm streaming, I don't necessarily need source record because like you all can tell me if I'm missing
like Oh, the only reason I use source record um is because I every now and then I'll record myself like in screencast mode and I'll be hiding something with my camera that I don't realize I'm hiding. I haven't done that in a while, but every now and then it's nice to have like just the standard video shot, but I don't use it much. So,
I don't think I need it right now. And I'll probably find ways I'll I'll optimize the source record so that way we're not stuttering. Um Josh is just vibing now. Um and then everyone, this is my this is my wife. She's on she's on the live stream and looks like my dog is very confused by this live stream. Um,
sweet. I'm recording still. So, this is start of the form component. So, if you think about anything that you
do on the web, you're probably interacting with forms in some way, shape, or form. Forms are everywhere. You can't really get around having to build with them, having to use them. So, when you're building with Laravel and Inertia, forms become very handy to know that they can be easy to be used. Nope. I think the first part was good. Um, but I want to switch into
building with inertia. Um, making it easier. So, when it comes to building forms with inertia, there's a new form component to make every single process that you typically do when building an out. So, when it comes to building forms with Inertia, there's a new form component that Inertia has that takes everything
that you typically would do within building out a form and just makes it simpler, easier. So, why don't we take a look at what that looks like? So, why don't we take a look at how you used to build a form with an inertia and how this is so much easier. So, why don't we take a look So, why don't we take a look at how building forms used to work within Inertia and
how this new form component is so much easier. All right, we'll go ahead and pause. That felt pretty good. Um, so yeah, I uh after I do the the intro is usually the hardest for me because it's it's coming up with the right words to say and I don't script it out. Um,
everything is a form, even HTTP. That's true. Um, and then it's just cutting it up and making sure that's right. Sometimes I have to redo things if it doesn't sound good. It was okay. Well, I guess okay is Good enough. Um, but now I want to take a look at
I think we need to show what forms used to be and then we can show it. So like going from all of this And let's go ahead and pull this up in
the new version. So we'll pull up the main branch and we'll pull open the same file register.tsx resources.js JS pages uh o register.tsx
to this. It's not very flashy because there's it's it's still shown. So maybe I wonder if there's an old version of the forms that it shows too without the form component. I don't know if we do form helper.
I guess this this is fine. We can show this. So I zoom in here. Yeah. So I'll unpause this.
So this form component is available within view, react and spelt and it takes your forms from looking like something like this. Email password. Remember
to something like this. Perfect. Now we'll probably jump into the screencast and probably this is where we can run through the current starter kit.
So we'll pull open that. So, we have inertia form. Um, sometimes I use VS Code for video, sometimes you just use zed. We'll use zed. It's react. Looks a lot cleaner. So, I'll use the register.tss tsx link.
And this is where I'm probably going to talk about how you don't have like it's all just handled in one method now whereas before you kind of had to abstract this method out. I think that's the big win is not having is condensing everything.
I guess for you in the chat, what is the big win? What was the big win for you? For you all? What am I What am I missing? What's the What's the big win for you all? Um, okay. Goodbye, girls. My My girls are in the chat. Um, live coding while streaming. Live coding while live streaming. Oh, yeah. Live coding while live streaming is a big one. Inertia for the win. This is freaking awesome. I love this. I'm learning so much about doing videos.
Well, thanks, Camila. I'm glad it's I'm glad it's helpful. Uh, it's it's a little bit different for me, but not too much in the sense of like I don't usually talk through as much. It's very silent between takes for me because I'm just thinking through it. Um, not sure yet. Have to see. Well, hopefully I can help. Um, so I think if we pull up zed and we'll say let's go ahead and jump into screencast mode.
Now the example I'm showing here is within the react starter kit. Now the example that I'm showing here is within react within inertia but the same form component exists within I kind of already said that. Now the example that I'm showing here is for react within inertia but the same premises exit
not premises but more examples same techniques follow along now I'm going to be using react with inertia for this particular example but you can follow along within view and spelt as Well,
everything really boils down to how a form component condenses everything that you used to have to abstract. Now, what do I mean by that? The starter kit is a great example for how you might use these kinds of components. And as the starter kit is a
great example of how you might use components as well as wayfinder actions to shrink everything to condense everything to make this a little bit more. The starter kit is a great example of how you might use form components as well as wayfinder methods to take everything that would have taken up a little bit of space within your own components and condense it all. So that
way instead of having to have a form method and have that uh onsubmit method handle all of your data, the form component condenses it, pushes it into this component itself with a wayfinder method of being able to have this registered user controller store form. We actually have a wayfinder video all about what this particularly means in itself.
The inertia form component then says when everything that exists within this form in this case we have an input with a name we have an input with an email and then we have an input with a password within inertia's new form component all you have to do is make sure that there is a name attached to each one of those inputs the values that you would like to pass into the form submission.
The component then takes that and whichever method or whichever route you are passing in again this uses wavefinder methods or just particular slash route and it's going to take all of those inputs all of those values and push it to that particular route.
So you can see here this is a wayfinder method for the registered user controller. Okay, within the store method, let's go ahead and find that we validate information. We create a new user, send a new event, and then log in that particular user. With Wayfinder and with this new form component, we're doing all the hard work
of capturing state data of passing it to a particular route, validating it, and returning it all within one single component. So, it's nice to see how this could be easier for you now, right? Especially if you're using a starter kit. The hard
work is already done for you. But how did this used to look? And how can we maybe But how did this used to look? And how can we what's the word I'm looking for? Refactor. But how did this used to look? And how can we refactor an existing form within inertia to make this easier for you and
for anyone else who comes after you having to read your code? All right, I like that. We will go next, I think, to probably look at ping CRM. I think that's a good way to do it. Let's take a look at the docs to make sure I'm not missing anything within the form component that we might see. Josh's PHP
rock. Thank you, Dino. Glad to have you here. Um, manon, I love the PHP system because PHP react combo like this was quite hard to wrangle back in the day. Nowadays, I primar if it has a form, it has to be react. If it has to react, it has to react on both back and front end. So, this trap is why I'm trying to escape by watching this video. Well, hopefully I can convince you in a little bit ways. Uh the biggest one that you might be against is um Wfinder. I think Wayfinder is the better I guess premise
for a lot of this as well. You know, I love a setup of how do you got zed working in PHP world. Uh it is it is a little crazy. It's my zed. When you're using inertia, zed is a lot better. when you're um like blade with live wire is still not the best, but I still like it because I've gotten it set up with prettier and stuff. Um and how do we get JT to build a laret?
I'm actually thinking about learning how to do that. Uh but yeah, let's go ahead and take a look. So within forms, there's not too much because we talked about name I guess I I can do a cut here. Uh when I'm refactoring a component,
I'll maybe try to find an easy component to refactor within within um Ping CRM. If not, I might just build one out myself, build out a particular form and then refactor it. Um, I wonder if I still have
um, wonder if I still have my forms. So, I I did a video within Laravel maybe a year ago. Uh forms forms in Laravel. I'm curious if I can just This is going to be not the best way of doing this though because
dashboard components. Maybe this. What did I do?
I had like a journal entry form. I thought I don't know where that where that went. Dashboard. Yeah. Add journal entry form profile partials. Why did I put it in there? This is when you're like, "Okay, I I didn't I didn't necessarily need all this profile, partials,
add journal entry form." I mean, this is a great example of how much easier something like this would be because you don't have to do any of this. You cut off this form event handler with the post route and you take out all
this too. This is like the state of summary notes rating for example. But let's go ahead and pull up ping CRM. Let's see what this looks like. Resources JS pages.
Um I have not actually looked at Oh, this is in view. That's okay. create a view with the script at the bottom too. Okay, so we have all this data from form this.inertia form.
Then we have method of store. This was written six years ago. That's crazy. So, we would take out I might this is this might be a little bit more too complicated to refactor.
Maybe I will do the my old form version. Now, it's going to be easier, as I'm thinking through, it's going to be a lot easier for me to just like write this from scratch within a newer version of Inertia than trying to have to update it and then do that. So, I think I'll just talk through it
as if I was writing it from, you know, from scratch before. Maybe I'll take this
Do a two-step checkout form. That's a very good limitus test for form libraries. A two-step check form. That is a good that is a good one. I'm I I am always and it's good to get you all of yours opinion, but it's all it's always interesting to see how much I should do within a singular video of like how much do we build or do I build it and then you see the final outcome kind of thing and see what that would look within it. Um,
yeah. Let me go ahead and let's go ahead and plop that open.
Okay.
Josh having a blank page problem live on screen. Blank page problem. Um, yeah, I haven't I haven't uh I haven't I haven't had a problem. Uh I have a blank head problem. That's probably what it is. I'm I'm trying to decide of if I build out a full featured form or
if I keep it simple of like hey this is what you would typically create in a form like if you are saving some type of data um and start from start from that um I'm debating if the refactoring is a good call because if this video is talking about the form component in particular
If you haven't used inertia like you, Mr. Mr. Manapon, then it'd probably be a better idea within the video to talk more about like, okay, as you're building out this form, here's the things that you can do within the within the form component. So, that's what I'm thinking through right now.
So, let's do that. Let's go ahead open that up and let's just start from scratch. Let's go ahead. Oops. And in the dashboard, let's clear this out.
Let's add a new form. And do I want to do that?
Yeah, comparison refactor might make it too chaotic. I agree. I agree.
I think even just a simple form like this. So maybe maybe I'll do that. We'll go ahead and um
for an ID you perfect. We'll say this is uh string text to message and that should be good enough for now. And then we'll also create a controller
and we'll say this is the chirp controller PHP is in migrate. So in our chirp controller, let's go ahead and have this store
method and we'll go ahead and validate it. Actually, we probably don't need to. I always hate how um PHP Intellence usually sucks with
that particular thing. So, we have our registered user controller. I just want to grab most of like the same stuff as this.