Laravelstream· Jun 28, 2025· 1:11:34
Well, hello. Hello, hello, everyone. We are live. This is welcome to the office hours with for Laravel. We're going to be answering your questions. Any questions that you might have regarding Nightwatch, Laravel Cloud, really anything. Anything is on limits.
Nothing is off limits this morning. So yeah, so glad to have everyone here. I'm super excited to be able to kick this off and get this going. So if you are joining us, let me know where you are watching from. For me, I'm in Arizona. It's my morning time.
So it is 8 a.m. here this Friday morning. But yeah, regardless of where you are, let me know where you're watching from. And I'm excited to be able to hang out with you, to chat with you, to answer your questions that you might have. Good morning, Ryan from South Africa. I assume, I actually don't know time zone in South Africa, but what time is it there for you?
um theon from india glad to have you here today thanks for joining the office hours uh pablo from poland glad to have you here today um yadi when php implement asynchronous programming well the cool thing is there's a there's a couple people who are kind of figuring this out i guess in a lot of ways i don't know if it's um not not necessarily
core PHP members. But Nuno Maduro from the Laravel team has a asynchronous package that he's been working on as well as the creator of Breath. I know that he was working on some asynchronous PHP stuff as well. So yeah, who knows? It might be a lot sooner than we think. Code with SJM from Tanzania. Glad to have you here. Hopefully everything's coming through
all right for you all let me know if anything uh is sounds or looks a little funky as well but glad to have you all here again welcome to office hours uh my name is josh i'm on the laravel team and uh yeah the whole goal today is just to be able to answer your questions um and then also be able to just share a little bit about what's going on with laravel night watch some updates i find personally exciting uh but then also just be able to hang out with you if you have any
questions about Laravel Nightwatch, Laravel Cloud, really anything. There's nothing off limits. But the goal of today is mostly just to be able to answer your questions. Again, hang out with you, have some fun, maybe learn some new things together. Let's see. Henry, hi, from the Philippines. Glad to have you here. Arslan from Pakistan. Glad to have you here. So 5 p.m. in South Africa. Okay.
So it is, it is, that wouldn't make sense because it would be, it'd be close to, um, that's region. Okay. Yeah. 5.00 PM, uh, 10 Oh three, 22 Oh three. Now in Laos. Glad to have you here. And thanks for joining us on the X, the everything platform. Uh, she go 5.00 PM. So yeah, you, you, you did it faster than me. I probably could have looked it up. Um, Alexander on LinkedIn.
glad to have you here from the Netherlands uh Mohammed from Algeria glad to have you here Mohammed from Bangladesh glad to have you here uh Fahd from Egypt Jay from India uh Lee hello there glad to have you here where are you watching from Lee um Christopher hello from the UK how's it going it is going pretty good today I'm excited um I like office hours I like hanging out with all of you I like being able to um just answer your questions I like being able to
see you know where the where the day takes us in a lot of ways and also just being able to share a little bit about what i'm learning and the fun things that are kind of going along with updates to laravel updates to night watch to cloud all those fun things um uh rafael from panama glad to have you here harris glad to have you here i got to meet harris at Laravel Live UK a couple weeks ago. So it was awesome.
Zynga from Kenya. Glad to have you here. Druvin. Apologize if I say that incorrectly. From India. Glad to have you here. Rice, 11 a.m. DR. I assume Dominican Republic. I apologize if I'm incorrect on that. Reginaldo. Brazil. I love it. Brazil mentioned. 8 p.m. from Pakistan. Always wait for new things from my real team. Awesome. Well, hopefully there might be a couple things I get to share that came out with Laravel Nightwatch this week.
And hopefully you might have heard of them or might not have heard of them and then they might be new to you. Those are the couple of things I kind of have on my mind to share at least. Will there be a nightwatch that can be installed locally and run locally, sort of like how Horizon works? Currently, so Jess answered this on the Q&A last week. I believe, I can't remember when that happened.
but not at the current time in the sense that there are no plans to do that, to have it be run locally. You can definitely install the agent locally and have like a different environment set up for local environments. I've done that for some of my current projects and I know some folks do that for their development projects as well. So yeah, you definitely can run it locally in the
sense that you're running your dev um environment but it's sending to night watch it's not you know it's not self-hosted so currently there's no plans for a self-hosted version uh dimitro from ukraine glad to have you here uh dev oracle on twitter hi from abuja nigeria um shigo why should we switch from sentry to night watch again i think like there's there's different tools for different
things and um night watch i would say is is set up currently to be able to just handle laravel things so um it uses laravel it because we use laravel behind the scenes it is set up to specifically handle things specifically for laravel um i know the laravel team for for example uses both century
and Nightwatch currently, specifically because within Nightwatch, we don't have the ability yet to do any kind of front-end monitoring. So that might be something to keep in mind. And you can definitely do both. Race, hello, 11 a.m. from Dominican Republic. Glad to have you. Any plan for a course on React Inertia TypeScript? I wouldn't say there's specific plans for that,
but in the sense that one of the things that the team and myself are kind of working on currently is something called Laravel Learn. And so I guess like if you're in the chat here this morning, you might get a little sneak peek into it. Laravel Learn is something that the team is currently working on to replace the bootcamp. If any of you kind of remember, there was a bootcamp.laravelle.com,
which was a fantastic kind of text-based course to walk through how to build out a full-stack application called Chirper using every stack that Laravel had to offer within Laravel Breeze. And when Laravel's starter kits came, we kind of hid that for a little bit just because it wasn't relevant.
And so Laravel Learn will allow us to kind of have the functionality and the flexibility, I guess, to have kind of those micro courses. So I know that the team at LaraCast is doing a fantastic job and they have some great courses on React and TypeScript. I know Simon, Simon V, I'll never be able to pronounce his last name. So for those who know who I'm talking about, Simon, who now is on the Laracast team, he
has a great React course where he kind of goes into TypeScript a little bit. But again, there might be some plans for kind of like a micro course with that of in terms of React inertia and TypeScript. I would say one thing to kind of look for is I recently released a template with the Laravel team as an AI template. And that uses React Inertia and TypeScript.
So it might be a good thing to kind of look into in addition to starter kits to be able to say, hey, this might be a good way to use that. But there's no course around that just yet from our side. Alberto from Spain. Glad to have you. Ashley, glad to have you in the chat. Harris is awesome. He is. You're right. And right back at you. Awesome. Sammy from Kosovo. 5 p.m. Awesome. Amin. Hi.
Glad to have you here. Hello, hello, hello. Showstopper. Only reason I bring this up is because in South Africa, we have to keep South African data within the country. Okay. I see. I don't know. So I guess the goal with Laravel Nightwatch and the team would be to then make sure that we have as many regions covered. So South Africa is the one that we currently offer. I don't necessarily know when a region like that might be available.
But I know the team is working hard to make sure that we have as many regions available so that the data stays within your country. So currently we have the U.S. and the EU. but there are plans for for for more as well that the team is actively working on uh christopher miller here's a fun one what's the one feature you wish laravel had that it doesn't right now wow that's a great question i love i love these types of questions so if you
are like uh christopher um yeah and ask me ask me any of these types of questions i love love hearing that's this um what's one feature you wish laravel had that it doesn't right now one of the things that I've been diving into recently and this isn't really necessarily a Laravel feature but there are parts of this that I think could fit into Laravel and this is probably
more of a package rather than something that exists within the Laravel framework but one of the things that I've been kind of learning more about is the the the local first kind of scene
And so if you're not familiar with it, a lot of apps, specifically in the JavaScript world, or even just like mobile apps are moving into this like local first kind of scene where you save instances to a database that is locally stored within a browser that would be like index DB within a mobile app that's something like a SQLite database that is lives, you know, it's an embedded database. and i think there is uh potential and it's something i've tinkered with as well specifically
within livewire but i think there would be um it'd be a feature that would be really nice for the laravel framework as a whole um in the sense of being able to work with indexed db or index db a little bit closely to like imagine having eloquent orm um
but having it sync first to an index DB if you so choose before it connects to your connected database. So I think it is kind of two-part. It would have to be an adapter for LiveWire or for Inertia, but it also would be in part also part of a Laravel framework. So I guess that's one feature I wish Laravel had that doesn't right now. Again, I think someone
could definitely build that. I've tinkered around with it a little bit. Nothing set in stone. And it is a lot to think through. There are folks who have made this easier. There's like a tan stack package that is kind of framework agnostic that allows you to kind of connect with the database as well as an index DB and keep those in sync a little bit. But if that was local or first party
to Laravel, then I wouldn't be opposed to that. But that's something that I have personally been digging into more. And who knows, I might take a weekend or take a week and try to figure that out as well. How would a self-hosted version even work? Do you guys have any AWS in your shed? Florian does bring up a good point. Florian works with me on the Laravel team.
He works on cloud. But yeah, Nightwatch, there is a lot more than just collecting data. It's not in the same sense as something like Laravel Horizon, where you are just sending data to one endpoint, and then it's just capturing, collecting all that data. A cell posted version would be a little bit tricky because there are so many parts that Nightwatch kind of spins up. There's a lot of different moving pieces in how it collects data, specifically with how
collects data in ClickHouse and then makes sure it distributes after that. So there's like a lot of different moving parts and it would be pretty intensive, which is why I believe, again, I can't speak for the Nightwatch team, but I know that this is what Jess had kind of mentioned in the Q&A is that this is one of the main reasons why there is no self-hosted version and probably won't be.
but yeah I definitely get the the the need for keeping it in your own region so that's that's the goal is making as many regions available as possible uh Leah hi glad to have you here um uh hopefully you're getting some good work done this morning what kind of monster do you have uh the I know Leah is a fan of the white monsters or she has been a fan before so we'll see which one she's having this morning.
I actually, I have not opened it up, but I have a Dr. Pepper here. I'm going to open up. Dr. Pepper, cherry zero sugar. It is morning for me, but I'm not a huge coffee person. So usually any kind of like caffeine, I'm drinking some kind of zero sugar soda or pop for those in the Midwest. I don't have any Coke zeros anymore. So sorry, Laravel team, but this is Dr. Pepper.
What's your all's choice of drink in the morning or for a late night coding? Coffee, energy drink. What is it? Harris, spin off some mini cubes. Exactly. There you go. I don't know what mini cubes are, but I'll figure it out, I guess. Are we not supposed to have a mini AWS shed? Yeah, I should probably take that down in the backyard then. I didn't know that was not a thing. She go, no front end yet. Are there plans?
So yeah, so for Laravel Nightwash, there is no front end support yet in the sense that it is everything back end related for the for everything Laravel. So any event that gets sent to Laravel. So that would be a request, an exception, a queue, a job, a mailer, a there's probably a couple others that I'm missing.
but basically anything that either gets sent to Laravel or gets sent from Laravel in your application gets sent to Laravel Nightwatch that is sent to the server. There is no front-end monitoring yet in the sense that there is no, if something doesn't even make it to the server, it's not going to make it to Nightwatch because Nightwatch uses the server to collect and send all that information.
there are plans um uh just mentioned last week on the night watch q a stream that there are plans to have um you know to have front end stuff that the team is actively working on there are there's no set date for that or what it even might look like um but it's definitely something that they want to tackle next one of the bigger ones that they want to tackle next um matthias hey glad to
have you here thanks so much for joining how are things going how's work going this morning or i believe it's still morning for you i can't remember your specific time so it might be afternoon for you actually um i apologize um i have a i have a full on aws chat you mean you don't okay so who doesn't have a full aws chat in the chat this morning that's a that's the main question i guess mine is more like a cupboard ashley's doing all the terminal stuff uh so if you haven't
checked out Ashley. For those in the chat, be sure to check out Ashley on Twitter. I don't believe you're doing anything on YouTube just yet, Ashley. But yeah, check out some of Ashley's terminal stuff that he's doing within Laravel, specifically with MCP stuff. It is fantastic. I got to hear Ashley's talk at Laravel Live UK about MCPs, and I've even implemented some more MCPs since I've listened to his talk. Simon V is incredible. You are right. He's got a good set
of hair too so that that good set of hair and a nice dog he's got a corgi um he's he's the he's the tip not the typical i i don't want to put him into a box but simon would be what i would imagine is the typical surfer or what i would hope i would look like if i was a surfer um how to upload images to laravel cloud please help okay this is a great question um mostly because i i i just
recently did um uploads for um for um an application that i was working on um this was a mobile app that i was sending to a laravel api um so why don't i share my screen we can kind of walk through what that looks like but really it comes down to using um let me go ahead and pull this up really it
comes down to using my screen. Perfect. I'm going to open up this one right here. Perfect. So really it comes down to using the AWS S3 package. So when you have a bucket set
up within Laravel Cloud. So we'll go ahead and go into buckets. I'll just do Laravel object storage right here. Okay. So Laravel object storage is powered by Cloudflare R2. So anything that you set up to send it to Laravel Cloud is going to be done through the S3 file system driver. So the
biggest thing i actually forgot this when i was setting this up within my own um package i i did everything i set up the cl i set up my my code was you know the way it should have been but i forgot to install the fire the fly system aws s3 package so this is a big thing to make to remember because the storage is connecting with cloudflare 2 r2 and r2 is s3 compatible you just have to make sure
sure that you have this package installed. Once this package is installed and you do have a bucket attached to your Laravel cloud system, then you will be able to just store to it. And a thing to note is whatever you call this bucket, you're going to have the option. I don't know if I'm sharing all my screens. I'm not. But when you create this bucket, you're going to have the
option of naming it as well as selecting if this is going to be a public disk and a default disk usually by by default you have you are setting that up that bucket as um as public i believe is the default um as well as the default disk and you can make any name for it usually i would just kind of you know i would name it like my my project name uh but then whatever you name it
is what you're going to use within the storage facade. Now you can omit this name here. So if you have storage disk, you can omit that R2 name, and it's just going to use the default disk. And if you had set up this bucket, let's say you have multiple buckets attached and one is default, but one is private, or one is default and public, and one is private and not default, then that's when you'll have to use the specific named parameter. So really, that's what it comes down to.
And here's like a good indicator within this link. I'll go ahead and share this within the chat. So we'll go and paste that in. But basically, the goal or difference between private buckets and public buckets when it comes to the R2 system within Laravel Cloud is that private files are not going to be accessible to the internet.
So they are accessible to your backend in the sense that when you save them, you can maybe access them within a queue. But they're not going to be things that you can then send to an API, for example, because they would have to access them. But you can use this temporary URL method if you want to keep them private. Again, this is probably great for personal documents or uploaded by your applications users.
public buckets are for everything else so this is like profile pictures or just public publicly viewable assets that might be needed to be viewed by your application and you wouldn't want to have a temporary url for something like a storage picture for example um so yeah i would say check out this uh this documentation but the really biggest thing is just making sure you have that uh fly system awss3 driver installed there shouldn't be anything else that you need to do in
your application in the sense that you don't need to change any environment variables or anything like that because as soon as you add the bucket to Laravel Cloud then you're able to set up the set up the storage driver like so. So I would say in your code and I would say this is this this is great regardless if you're using Laravel Cloud or not use the use the system provided by Laravel. In this case, use the storage driver.
It's always going to use, if you admit a name, it's always going to use the default disk. And then regardless if you're hosting on Laravel Cloud or something like that, then you don't have to change your code when you want to maybe host on Laravel Cloud and use the R2 buckets. Or if you're hosting on Forge, the storage parameter would be exactly the same if you're using local driver for that storage.
So I would say usually in your code, make sure you just use the default disk, something like storage, get to our storage. Put, for example. Yeah, but great, great question. I love it. Let's go ahead and. Let's see. I'll see again. Glad to have everyone here for those just joining. Welcome. And if you are just doing, make sure to like and subscribe.
We try to do more of these office hours and that lets us know if we should do more of these office hours. I personally like them and I think we're trying to do them at least once a month, but maybe more. So let us know if this is something you'd like to see more. But if you have any questions about Laravel, about Nightwatch, about Cloud, I'd love to answer them or at least point you in the direction where we can answer them better. There's some smarter people in the chat here than me, like Florian, for example.
and that would be great to get everyone just questions answered. But mostly also, it's a great time for me to hang out with you, to talk with you, to chat with you, and to ask you questions as well. I guess like one question as I'm continuing to work through these comments, one question is what is something that you have learned about your application from Laravel Nightwatch? If you have installed Laravel Nightwatch, what's one thing that you're like,
oh, I didn't know my application did that or didn't do that. Let me know. I just want to say I love cloud and night watch. I'm migrating from Forge to cloud and definitely love it. Awesome. I don't know if there's any Forge engineers in the chat, but we like both Forge and cloud. But if cloud works better for you, great. I love it. For those Forge users in the chat, I still use Forge. I actually use all.
I use Forge, Vapor, and Nightwatch, mostly because there's stuff that I just need or it's just easier to do on all of them. But I'm excited for Laracon because there are going to be some fun Forge announcements that will be coming up. James, who is the Forge and kind of core services lead, has been kind of teasing some things on Twitter slash X as well. So I'm glad you're loving Cloud and Nightwatch. I've had trouble in configuring wildcard subdomains
It takes forever to validate. I couldn't get it to happen. Okay. That might be something that would be great if you could reach out to support depending on if it's taking longer than 24 hours. So usually the timeframe is if sometimes just domains, Cloudflare, which is what we're using
to kind of set up those domains. Jason Beggs, I don't know if he's in the chat this morning, but he is kind of like the master or the ringleader of domains. And sometimes they take a long time and sometimes they take an hour. And it's just kind of up to, you know, the internet as a whole and how long it takes. So I'd say if it takes longer than 24 hours, then that would be a
time to then reach out to support and there might be something that is stuck on our end or maybe cloudflare's end that we can just re-instigate in a lot of ways but yeah um domains just in general dns certificates like sometimes they just propagate forever and it's it sucks but i'm sorry that's happening um florian night watches and a servants that runs everywhere somewhere it's a globally distributed architecture of kafka lemma is a massive dv hosted by click house that's not something you
self-host is not possible. True. Exactly. There is so much that is kind of going along with that, and it probably would be a pain to do. Even when I run it locally for demos, for example, it is not really run locally, if you know what I mean. There's a lot of different pieces that are kind of just faked in a lot of ways because you can't really run it locally.
uh maro i'd be curious to know if brazil will be considered soon all my customers are in latin america um i don't necessarily know i can ask the night watch team um i don't know the the the next order in terms of regions in terms of um you know what is coming down the pipeline um i don't know what that is next um i would imagine uh probably something like um and i don't know if this is for
for night watch or for cloud or both um i would imagine um that that something like that is coming soon or at least like it's something that is definitely considered like there there's there's not i think the goal is definitely all regions as soon as possible um i don't necessarily know the order in which that is going to happen but yeah definitely be be continuing to check it out
um and also just just it's helpful to let us know too um and this is something that i personally take notes on as well as like letting the team know just be like okay hey there's there's a couple of people who would love to do this um yeah like florian's and more regions are definitely coming through so you can keep your data in your country uh of course on task scheduling okay um i'm gonna take a note on this junior what would you mean by task scheduling so specifically
using Laravel scheduler? Would this be using, uh, like creating a task scheduler in the sense of like a, like a to-do list, but you're scheduling tasks, or is this kind of like AI task scheduler where you're like telling it to do something at specific times? I'm curious what that, what that means on a whole. Um, if it's something like just a course on like a micro course on, on the Laravel scheduler, like what that is, how to do it. I would think that would be a fantastic,
fantastic idea. I love that idea. Again, one of the things that we're trying to focus on when it comes to Laravel Learn is the ability to kind of take these concepts. And like if I was to do a video on YouTube about task scheduling or the scheduler, one, it would probably be either a really long video. I would say, I don't know, 20, 30 minutes, maybe even longer if I want to dive into more depth, but it doesn't allow us to kind of like walk through specific things. It doesn't
really suit as well for YouTube. And so that's one of the things we want is a different, different ability or a different place to be able to place these kind of micro based learning a lot of ways. Sammy from Kosovo on LinkedIn, glad to have you here. Can we adjust queries and schedule task sample rates? So you can not adjust the sample rate for that. But one of the things I did want
to kind of share let me bring up the night watch documentation really quick because this is this kind of leads into one of the things I'm I am really excited about that just launched this week um we'll go here um so for those who don't know I'll just kind of give a very brief intro into what
sampling is and how that kind of correlates to the Laravel Nightwatch. Sampling basically says, instead of sending everything to Nightwatch, instead of sending every single event, every single exception, every single command, every single request, I want to send only part of those. And so we have the ability to sample specific things to say, okay, I want every
exception. I want every command, but for every request, I only want 10% of those. And so the goal then is to be able to say, okay, for those requests sampling, how do I then only, you know, I don't use up every single sampling that I have or every single event request that I have. So for
example for the free tier within Laravel Nightwatch you have 200,000 requests events that are kind of set up within Laravel Nightwatch and so like you can run through those free events pretty quickly but you have a request and command exception sampling so that you can capture all exceptions from the sample request but then you can capture 50% of exceptions from non-sampled
request, for example. But the thing that I want to point out now is while there is no, so the question is like, can we adjust queries and schedule tasks sample rate? There is nothing yet to be able to say, let me sample 50%, 10% of all queries. It is specifically requests, which I guess would kind of lump in queries and schedule tasks for the most part. And I guess schedule tasks would probably fall more into the command while queries would probably
fall more into the request. If you did want to get granular, that is not available yet to say, I only want 10% of queries specifically and 10% of scheduled tasks specifically. But this route based sampling is one that I want to kind of make note of. And I'm actually going to drop this in the chat as well. But the route based sampling is really interesting because then you get to use
this sample facade that the night watch team has kind of put together and you can say i want to um then let's say you you turn off um you you have this unmatched route sampling you can you can sample uh use the sample middleware with the fallback room um and so the the goal with these
with this route-based sampling is let's say you have you know 10% of I could be wrong on the math here so I'll double check this and if anyone in the chat knows or has tested this or might be able to read this a lot faster than I can in a lot of ways but I believe if you have exceptions sampling
or let's say request sampling of 10%, you can even granularize or in more granular detail then sample specific routes. So all 10% of requests are going to come through. But for this specific route, only 0.5 or 50% of those 10% requests are actually coming through.
And so then that way it's helpful to then sample in a route-based functionality as well. And so let's say, for example, your queries or schedule tasks, maybe they are hitting a route in order to kickstart those, or most of your queries are coming through and you realize 90% of your queries are coming through this one particular route. I would start with route-based sampling. Again, the team is aware of being able to have those more granular details, especially when it comes to queries and things like that.
But that's the first step that I would kind of take a look at. So, and one of the things to kind of note as well as this dynamic sampling piece, in the sense that that Nightwatch sample method, you can call that directly for this fine grain control where things like queries that Nightwatch doesn't yet provide sampling capabilities for.
we could call this within maybe a particular query that you have to make sure that the sample rate is only sampling x percent of these executions so i would call this maybe in your most expensive query or one that just consistently happens and you don't necessarily want every single query from that particular even function to come through or method then use the dynamic sampling piece so
there's so much flexibility that can come within uh these these dynamic samplings within the night watch sample method as well as the the sample uh sample routes so i would check that out um as well but currently there is not queries and scheduled test sample rate out of the box within sampling but it's something that the team i know is working on um jiao from brazil or uh
I'll say Paulo because that's a little bit easier for me as a white person to be, to pronounce it. So I apologize that I pronounced your name incorrectly. But Paulo, glad to have you here from Brazil. Mauro, I'm more interested in lower latency. What do you mean by that? Curious what you mean by that. Is that specifically for, oh, I guess like, because you had asked about the different regions.
So yeah, different regions definitely helps with lower latency as well as like your customers are there. And for security reasons, you need it to be stored in the same location. Definitely. Muhammad from Pakistan. Glad to have you on LinkedIn. Christopher, I like the idea. I know just the guy to build it to. What's Aaron up to right now? Yeah, I'm assuming that's the local first idea maybe. I'm still catching up to chat. So I know I'm very far behind on chat.
So I apologize for everyone just joining. We're catching up to chat as well. Again, thank you so much for joining. My name is Josh. I'm on the Laravel team. And this is what we're calling office hours. So the goal is for me to hang out with you, to be able to answer your questions, get to chat with you, maybe ask you questions specifically, especially if you ask me a question, I'm probably going to ask a follow-up question with it. But yeah, let us know where you're joining from.
And if you haven't already, and yeah, let us know what is something that we can make office hours better for you specifically. Let's go ahead and see. 6.14 p.m. now in Yemen. Awesome. I'm glad to have you from Yemen. I'm glad to have you here on X on Twitter. Perfect. Let's go ahead.
Let's see what is one inertia JS feature you want that doesn't exist. I would say, I guess top of my mind is like, that's still, um, this still, uh, the local first thing, because that, that kind of wraps up everything. It wraps up inertia. It wraps up, um, wraps up Laravel. Uh, but I guess one of the things that I, that I want that doesn't exist yet is probably
something that you might see more of either at Laracon or post Laracon, maybe even pre Laracon. I don't necessarily know the timeline, but there are some amazing stuff that are coming out in inertia adjacent things specifically for, for types. So that's one thing that I've always wanted, but it's one step closer. And so I'll leave it very vague for now, mostly because I don't know how much I want to share or how much the team wants me to share right now.
But there's some cool things coming out and that you'll probably will find more about at Laracon. I don't know if this is a post Laracon or a pre Laracon or even a at Laracon thing. But I'm sure if you follow us on YouTube as well as Twitter, you will see more info about this specifically, specifically from Joe Tannenbaum and his team. Do you think Laravel potentially have first party support for composite keys? I seem to keep running into them when rebuilding legacy applications. I personally don't know what composite keys are.
Let me check. I actually don't know the answer to that. Let me see. Composite keys. A primary key that consists of two or more attributes, columns, that when combined uniquely identify each record in a table. Okay, so within a database. Composite keys. Yeah, I don't know.
I know that there's a specific discussion on it from a couple years back. Yeah, I don't know the answer to that. I'm not that closely into all open source stuff, but it's something I can definitely look into. It's never something that's come up for me. So I'm curious of what the – maybe you can give me a TLDR. What is the use case that is usually needed for composite keys?
So like I know foreign keys, for example, is something that has come up recently because a lot of there's there's people who kind of know that, OK, foreign keys can hurt at scale. And so I'm curious if this is kind of something different, maybe in the inverse as well. Yeah, I haven't come up to even learn about composite keys. Yeah, let me know like a TLDR of like what composite keys do for an application in that sense. I'm curious to know.
But yeah, I know that there's a couple of discussions, but I would say best case is also opening maybe like a second discussion or I don't think this would probably be an issue within the Laravel framework, but another discussion, it looks like the one that I'm looking at is from 2023. So a little bit of a way to go. Saving files to cloud storage is ephemeral according to Laravel cloud documentation. So it is ephemeral if you are not using a bucket.
So let's say you are saving to disk and you have your environment variable set up to use the disk storage. It's not going to save to a permanent place because there is no storage. It isn't, there's no, there's no disk in the sense that there is no, um, you know, permanent file storage on your, you know, on your server, if that, if that makes sense.
Um, and so using the cloud's bucket is the way to then properly store a file that you need for long-term storage. And so that's when you would use the Cloudflare R2 buckets from, um, from Laravel Cloud. So if you add a bucket in your graph, in your project detail page, then that will automatically be linked. And you can use the storage facade using the default disk.
We'll then push it to that bucket unless you name it specifically different or don't want it to be default. Then you can use the storage facade as well. But it is S3 compatible, so it pushes directly to that bucket. A deal from Azerbaijan. Azerbaijan. Awesome. Glad to have you here. Thanks so much. Yeah, this is a great question. So why does Laravel introduce tools like Telescope and Pulse, but once newer tools like Nightwatch are released, it almost seems like the older ones are being questioned or sidelined, for example.
Yeah, I can understand how it might seem that way. So Jess kind of answered this on the Nightwatch Q&A stream last week. And so Jess is one of the folks who created Laravel Pulse as well as Laravel Nightwatch. And it's one of those things where I think they serve different purposes. So Telescope and Pulse still get updates in the sense that there is, you know, there are things that
are added as well as updated within Laravel Telescope and Pulse. They are not archived projects. They are still active in the sense that if there are issues, they are being worked on. If there is stuff that can be added or updated to like Laravel 10, Laravel 11, Laravel 12, you know, stuff like that that it there are stuff that works for that um but yeah i would say that for the most
part night watch would be a product in the sense that we want to make it as good as possible for our customers and so it's probably going to you know it's going to have a lot more features than telescope impulse mostly because it's stuff that we can control but telescope impulse i would say still have purposes uh we have we have versus pages and that's not meant to be like oh you know we're combating our own products. But on the Laravel Nightwatch landing page, there's a
versus page for Nightwatch versus Telescope, as well as Nightwatch versus Pulse. They kind of link through those details. But really, Telescope, I would say, is a great local tool. It's basically what Nightwatch for local is necessary. And that's a great use case for Telescope. Pulse is a great use case if you want that flexibility and that customability to say, I want everything to be seen at a glance. I was actually talking to someone at Laravel Live who they use Laravel Pulse
as a TV dashboard in their office to be able to say, hey, I want to see how all my servers are looking, if there's any issues, any exceptions, any longstanding queries, and they just have it kind of being displayed because they have that flexibility within Pulse to create those custom dashboards. And it's being displayed on TV in their office. And Nightwatch probably wouldn't be a good use case for that, mostly because it's almost too much. You probably wouldn't want to see all of that on a tv all at once um so yeah i don't think they're being questioned or sidelined it's
more of just different use cases for different different things um and they're still being actively worked on as well um yeah i'm new to the community well glad to have you here fod thanks so much for joining uh us and can you tell me what laricon is so laricon is the laricon us is what i'm talking about specifically for this it is the flagship i guess if you want to call that
flagship community event where we come together and most of the Laravel team is there. Taylor Otwell is there. Fantastic speakers there this year. If you go to laracon.us, I'll put it in the chat. Laracon.us is where you can find more information. But so Evan Yu is going to be there
from Vue. I know that Adam Wadden is going to be there from Tailwind CSS, as well as Jeffrey Way from Lyricast. It's going to be a fantastic amount of speakers there in the sense that just a fully stacked speaker set. But then also really the goal of Lyricon is to get inspired by
people who are also building with Laravel. And so it's a lot of fantastic ways to meet new people, to learn new things, but then also just to be able to meet new friends in the sense that I think Laracon is a great way to just kind of say, hey, here's so many cool things that these people are building. And then maybe you can go and build cool things as well. So it is the
flagship community event. It is two days, fantastic speakers, but really just one chance for, and there's multiple Laracons around the world. There's multiple Laravel meetups around the world, but Laracon US is one of the ways that the Laravel team as a whole gets to kind of come together and with the community and kind of get to see how everything is working, but also get to have
updates about Laravel as well. Manicon from India. I know I'm still pretty behind on the chat, so I apologize, everyone. Let's say, hey, Shane, glad to have you here. White Monster. There we go. White Monster Ultra is the only good one. So yeah, I'm still behind on the chat, everyone, but everyone who's just joining looks like I'm about 20 minutes behind on the chat. I apologize. But thank you so much for joining. Keep asking your questions. I'll try to get to them as much
possible we have uh we have about another 30 ish minutes or so that i can i can stay on so again thanks so much for joining be sure to like and subscribe so we can continue doing these these office hours it's something that i personally love personally enjoy um uh yeah if we're going for monster it's strawberry dreams okay i have not tried that one i'll try it um tea or green tea vishal says um me specifically i like iced tea so that's it sounds like you know it's a perfect
Arizona thing to say. That's where I live in Arizona in the US. I like iced tea. I like just black tea that is iced. And usually it's like a passion fruit. Like that's usually my go-to. Shane, now you're on YouTube. But hey, glad to have you here. I apologize. I didn't get to say hi. I'm still a little bit behind. Sweet. So I asked everyone what their drink of choice was for when they're coding or like in the morning.
So Vishal says tea or green tea. Leah says sometimes both coffee and a white monster. Ashley, three drinks, MCP coffee, Monster Ultra and Weird Water. Wow, I don't know what Weird Water is, but that is excessive. Features like support for LiveWire Volt be available in the VS Codex engine. I don't necessarily know. I know that stuff like that is still on the planned roadmap for the VS Code extension.
I don't know when that's going to be technically started working on in a lot of ways. There are some great community extensions. There's one called Voltage that works great with Laravel Livewire Volt, as well as the VS Code extension. So they kind of pair together. Laravel Nightwatch, the fastest way to discover Laravel has a lot of events. And it's true. I've heard a lot of people say that. Like, I didn't know I had 200,000 events right out the gate. Mohammed from Pakistan. Glad to have you here. Hi from Abuja, Nigeria.
What new features can be on Watch Out for on Laravel at the second half of the year? In terms of the framework itself, I don't necessarily know off the top of my head, but there'll probably be some great ones. I know that the team is constantly and consistently improving new things that, you know, there's so many new things that come out each week that it just amazes me. uh vishal friday night for you glad to have you here mobile development with laravel it's not
something that i'm i'm currently working on but i know that the uh native php team has been working on there's been fantastic updates um i know shane was in the chat earlier so um that's something that i would say keep an eye on for sure um uh will we learn more about night watch at lara con i don't necessarily think there's going to be a night watch update it probably is going to be Maybe maybe a small update or maybe just say, hey, here's what happened with Nightwatch.
I know I know that Tim McDonald, who is one of the developers at Laravel and who has been working on Nightwatch is going to be speaking. So that might be something to keep an eye for. All right. Let me keep going. I know I'm still behind, but thank you, everyone, for joining. I know that we have a ton of comments, so I'm still going down. I might skip a couple. So I apologize. if I skip your comments, but I am quite behind.
So I'm going to run through these as fast as possible. I apologize. I didn't mean to skip over your question about AI development in Laravel. I'm more behind in comments than I usually am. So that's great. I love to have all you guys here. I love to have all the comments. But yeah, be sure to ask again. I'll try to find it. Um, but yeah, Ashley, um, Hindle, uh, hoping to make it to Lyric on us.
There, uh, has some great content around AI development within Laravel and specifically MCPs within Laravel. Some fantastic stuff. Uh, even Florian's, you have to come show, uh, your awesome CLI stuff. Um, let's go ahead and see. Uh, all right. All right. Yeah, again, past Michael, make sure to share your question again. If I miss it, anyone, if I miss your question, be sure to share it again.
I am skipping a couple, mostly just because I'm trying to get through as many questions as possible. But I'm glad that you all are here. It's been fantastic. Aaron Francis says, I'm up to a lot. Yep. So I don't know if he has the time to do that local first stuff. So maybe someone else will have to do it. And again, it's been on my mind. And so I've been tinkering around with it slowly, slowly but surely. Am I obliged to deploy my lap on Laravel Cloud to use Nightwatch?
Oblige is the weird word here in this context, but no, you're not. You can use Laravel Nightwatch regardless of where you deploy. We have, and let me go ahead and kind of share my screen again. So Laravel Nightwatch has the ability to be deployed anywhere. in the sense deployed if you are deploying your application anywhere. So we have guides specifically for Laravel Cloud, for Laravel Forge, and even Laravel Vapor.
This is a guide that I want to point all to you as well for those who are using Laravel Vapor. That was one of the things that kind of came up a lot. There will be a video coming out kind of walking through this. It's basically how to set up an EC2 instance on Laravel Forge, or you can do it manually as well. that then points to your Laravel application within Laravel Vapor. But there are some other guides for providers in our documentation. And let us know if there's something that you're missing here,
if your application is running somewhere else. So there's a guide for Linux servers, as well as like if you're using Supervisor, for example. And so all of these are like, if you're deploying your application wherever, not just on Laravel Cloud, you are obliged to use Laravel Nightwatch regardless. So yeah, you can use Laravel Cloud. It's a one simple install if you are using Laravel Cloud and even if you're using Laravel Forge. Again, super quick, super easy to install.
But if you're using anything else, it's fairly easy as well. As long as you have a long running instance that is able to use the PHP Artisan Nightwatch agent command, then you are good to go. Yeah, great question. It will work for every route. uh yeah so laravel night watch will work for every route if you're using this route sampling that can work for every route as well so like um then that just samples specifically from your
overall samples samples it down even more i believe again i don't know if it resets it that's something that i double i want to double check as well of how that sampling percentages works when you're kind of narrowing it down by, by route. Um, perfect. Um, and code seven five, five, we kind of already chatted about this, but I want to make sure I pointed out again, does then watch make pulse a kind of has been, I don't think so because I think pulse is great
for that kind of overall first glance. Um, it is something that you host specifically and it's something that you have control over customized from a customizable standpoint and night watch might not ever have that customization aspect in the sense that you might not be able to say, hey, I want my dashboard to look like this. And that's a great thing for Pulse. Pulse doesn't even need to necessarily be monitoring your application. For example, there are people who are using Pulse to monitor, to look, to view things across your application that are not just
database stuff. Maybe it's specifically within, you know, specifically custom events that are happening within your application. Even custom, I know people have done it for custom external things like, hey, here's new blog posts that are coming in. So Pulse is just a great way, is a dashboard functionality in order to have those queries happen. And so I would say it's
not a has-been. It just makes its, I think it distinguishes the differences from what you would use pulse for and what you use night watch for um great great again i'm i apologize if i skip over your question i'm going to try to dive down as quick as possible i'm only 10 minutes behind on questions now or 10 minutes behind on chat now um so everyone who's saying hi glad to have you here
i'm not ignoring you it's only i'm i've been behind on chat a little bit but we are about 10 minutes behind on my chat right now so i'm i'm diving as quickly as possible glad to have you here um a boss from india glad to have you here vishal hey god to have you here as well um julio i'm using laravel cloud plus level night watch and it's amazing hi from brazil glad to have you here uh perfect perfect i love it mary says it's going to be awesome mary is going to
be a fantastic speaker at larcon us so if you want to hear mary speak um then larcon us is the place to be that's for sure uh brazil from jackson awesome perfect glad to have you here um um mo on um i i did answer this question about about buckets in laravel cloud um this was at
the kind of start of the the live stream probably about minute 20 ish or so um but yeah as long as you're yours as long as you're using laravel cloud's buckets that are attached then you just use the aws s3 file converter in the docs so in the docs it shows you how to install that and then you just use the storage facade yeah be sure to check in about it's about 20 minutes into the live stream i believe when i answered that um if i'm drinking iced tea it has to be sweet tea see
that's where i can disagree leah uh i i do drink sweet tea but i it is not as not as refreshing to me. So I, I don't, I can't drink sweet tea in the morning, for example, I can drink unsweet iced tea at any time of the day, even at night, right before I go to bed. Let's go ahead and see what are the advantages of using Laravel cashier when integrating Stripe
payments into a Laravel application? Basically, it makes you not want to, you know, cut your arm off in a lot of ways. And I mean that kind of tongue in cheek, but Laravel or Stripe, for example, is very difficult to work with in the sense that its API constantly changes. Sometimes it's nice. Sometimes it's bad in the sense that sometimes it's, you know, it's difficult to kind of continue to be added.
And Cashier allows you to then interact with Stripe and say, okay, because, you know, this particular API. So I would say one of the things that if I was setting up a new Laravel application, I need to take payments. I would use Laravel Stripes. I would use, yeah, I would probably use Laravel. I'd probably use Laravel Cashier, and then I would use Stripe checkout links.
And then that kind of gives me a good middle of the ground, both options. So I think the advantages is you are just interacting with Stripe in an easier and cleaner way. than having to write all of the webhooks, all of the API stuff by hand. That's the big key difference. And yeah, happy to talk about Laravel and mobile apps. So those who are asking the question about Laravel and mobile apps, Shane is one of the people working on native PHP.
Let's go ahead. Let's see, Jackson. Hey, hi to Brazil. Hi to Brazil, Jackson. Glad to have you here. Um, let's go ahead. Uh, uh, sugar right before bed. Well, I, I, I drink unsweetened tea, so it wouldn't be sugar right before bed for me. Um, awesome. We are, we are caught up with the chat. So I am, I'm glad to have you, uh, have you all here. If you, if I did not answer your
question, if you are still here in the chat and you would like to ask, ask a question, that is the main goal of today. Being able to hang out with you all has been fantastic. But if you have any questions, that's what I'm here for. And again, thank you so much for being here, for hanging out with me. Be sure to like and subscribe in order to – we like to do these office hours consistently, and I'd love to do more of them as well. Currently, they're about once a month, but maybe we'll switch it up to maybe once every other week in a lot of ways.
Yeah, composite keys. Okay. Only us older folks would probably know this, but back in the day when adding additional columns, like a dedicated ID column was expensive. We used what were called natural primary keys, which are columns that already exist in the table that can be used as primary keys. But oftentimes you could not find one, which meant that you included two or more existing columns for your primary key, which wait for it were called composite keys. Okay. Very interesting. Okay.
I get it. Um, yeah, uh, I've never, I've never personally ran up into that, that issue, but I can see when you do it probably is tricky to handle i'm curious like um i i didn't do a large search for it but i'm curious if this has kind of been already solved in the sense that um have other people within laravel use composite keys they're a package out there that would be something to
to maybe kind of check on as well um but yeah um yeah thank you all so much for being here One of the things I want to kind of ask you to do if you are watching this you're watching this right now if you are on Twitter you're on X I have some homework for for you if you're still tuned in if you're still watching this again
Be sure to ask any questions. I'm still going to be here for another probably another seven ish minutes or so before we'll call it a day but yeah the the the I have some homework for you on Twitter there's
Let us know. I want you to answer kind of this question. You can say that Josh from Office Hours asked me this question. I want to know what is your favorite feature about Laravel? So we kind of had in the chat a little things about like what features that you missed or wished existed within the Laravel framework. But what is your favorite feature about Laravel? And this could be the framework, could be a product.
so be sure to post on on twitter or on x um that's my homework i'm gonna give to you what is your favorite feature about laravel you can say josh from office hours sent you um i'll kind of answer my question i'll post it on twitter as well but my favorite feature about the framework is by and large my favorite feature is uh cues it seems like a very very you know
overarching thing but cues is kind of what got me into learning laravel because when i was working within a javascript back end um i well i was mostly working within serverless javascript specifically within like next js and serverless functions and all this um i needed to do this thing where i was using i was building an ai application this was like a couple years ago so ai was pretty new so i was i was one of the the forefront leaders but i was building a application
It became my first SAS product, and I was building it in JavaScript at the time. And I needed to, when someone inputted basically this Word document or PDF, I needed to take all those questions or scrape all the questions out of that. I needed to one by one ask those questions to AI with a bunch of context.
So using embedded documents, I needed to use vector search to find related documents and then use those as context. And I couldn't for the life of me figure out how to do that. And I ended up learning Laravel specifically because of queues and job batching where I could chain specific jobs to say, okay, after this whole job is complete, then do this.
And for every single instance that this user runs this particular application, it would kick off around, you know, 1,500 to 2,000 jobs. And they would run it one by one. And it would run in sequential order just like I needed it because I needed information from the past job. And Laravel just made it incredibly easy. So that's my favorite feature about the framework. It was just like I didn't know PHP when I started learning Laravel.
and I just reading documentation, asking, um, co-pilot at the time, like, again, this was two years, two and a half years ago. I learned so much about how to best do this. And it took me like a weekend to implement, um, code with Dennis, a very important question. How do I pronounce your last name? Yeah. So my last name is pronounced Siri. So just like the iPhone, I apologize for anyone's
iPhone that I just kickstarted and initiated right there. My name is Josh Siri. Siri is my last name, and that is how you pronounce it. So if you think of the iPhone, it's a lot easier, just spelled a lot differently. Yeah, Dakar, nice to see you here. Glad to have you here. Yeah, you're on Twitter as well. So make sure to post again for those in the chat. And thank you
so much for joining first of all but yeah my my homework to you is what is your favorite feature about Laravel make sure I post on Twitter say Josh from Office Hours asked me this question my favorite feature about the Laravel framework is dot dot dot um yeah there are many features but if I had to choose one that has very awesome validation feature fantastic no that's a that's a
that's a great great one i actually um have a um youtube video let's go ahead and pull this up i i made a youtube video about um validation that is on the laravel official channel um basically um um, it's called validate that data. Uh, basically Laravel validation, an overview of Laravel
validation in three minutes. And it's, I love making videos like that because it gives me a chance to be able to look at specific features within Laravel, specific features within the frameworks, features within our products and learn about them at an even more granular scale. So I, I learned so much about validation and the number of validation feature, um, validation,
you know, queries that are out of the box within Laravel, uh, is, is incredible. There's so many things that you're like, Oh, I don't have to manually do that regex for this. If you do want it, Laravel has a validation regex where you can just type your regex there, but there's so much that kind of already comes out of the box within validation. Even if you want to validate if a, an email is a valid email. Not valid, in the sense that does it, can you send email to it?
I believe that is one of the validation features. There's so many, so, so many. Yeah. Abhinam, Abhinam, hopefully I pronounced that right. That's one of my favorite features too. I love it. Let's go ahead. Let's see. Let's see. Jobs and Q's in Laravel is definitely one of the best features. I love it. COVID Dennis, mystery solved. Yes. Mystery of my last name. My favorite feature is the community Morgan. That's awesome. I love it. Well, we're glad to have you here,
Morgan. And I agree. The community of Laravel is fantastic. It is awesome. Another community. My favorite feature of Laravel is actually the community. Perfect. I love it. Um, one more question. Inertia JS, is it good for SEO with SSR? Of course, I think it is, um, Aaron Francis, a friend of Laravel. Uh, he was actually in the chat earlier. I don't know if he still is, He just released a video about some tips for Laravel Inertia in building out his new website.
And it's built completely with Inertia with SSR enabled because it's great for SEO because every single page that is then built within Inertia is then server-side rendered. So SSR within Inertia is either like an on or off kind of toggle. You can't have individual pages that are server-side rendered. If you turn on SSR, everything, you probably could actually within the inertia setup, you could probably specify which group of pages are.
But out of the box, everything within the pages folder is then server-side rendered. And so it is perfect to have SEO capabilities for that. Mateus, hello. How are you? How is work going? Hopefully you've been doing great. Patricio, it seems he's everywhere at any time. You are correct. Is there a common class to standardize API responses? Hmm.
I would say in that case, like the best thing to think through is – I would say like the best case to think through is you have – you have, I believe, what are they called? So you have JSON resources, and I would say that would probably be a good standardized API response in the sense that you can pick and choose what is being sent back to your API.
A lot of people who are using Inertia use them as well. I believe that's what your question is you're answering. Maybe you're asking something different. Florian says there's API platform. So maybe that's like the answer to your question that you're asking as well in the sense that outside of Laravel. um but yeah i'm going to to call it for today again my homework for you all if you are still
here again thank you so much for for watching be sure to like subscribe do all those fun fun things that make it better for us but at the same time thank you again like everyone else said my favorite part about laravel if i was talking about not the framework is definitely the community it's been awesome to be able to hang out with you to be able to chat with you to be able to to uh have some fun I apologize. I got so far behind in chat, but there are so many of you asking questions and
just commenting. So I, I truly appreciate that. I truly love it. Um, and, uh, yeah, my homework for you. If you are still watching this on Twitter, on X, on LinkedIn, um, post what your favorite Laravel feature of the Laravel framework is say that Josh from office hours sent you or asked you this question. Uh, you can tag me, you can tag Laravel, whichever one works best, uh,
But thank you so much for being here with us, for hanging out with us, and hope to see you at the next office hours. Again, hopefully it might be next month. We'll let you know more specifically. But every time that you're here, it's been a great time. And thank you so much for everyone for joining. Yeah, so my code is compiled. It seems like that's what Matthias is here because I think Florian was getting on him for a little bit about if you're on lunch break. Can I say that I'm waiting for my tests to run? Exactly.
you know my my answer now is i'm just waiting for claude code to uh to finish up um uh leah thanks so much for hanging out hopefully the rest of your day is great same with you mary uh morgan thank you so much florian have a great weekend and like florian said goodbye everyone thank you so much for joining hopefully you all have a fantastic evening fantastic morning fantastic night um and you have a great weekend as well so thank you so much for joining
we have all office hours i loved it see ya