Laravelstream· May 24, 2025· 1:32:53· 2,538 views on YouTube

Laravel Office Hours (Cloud Deployment, Your Questions, and More)

Watch on YouTube ↗
0:00

React at a moment you like. The best moments light up here.

transcript

212 moments
  1. All right, I think we are live. Uh, good morning, good afternoon, good evening to everyone who is joining us. We'll uh we'll get started here in a bit just to give some people some time to um as they roll in. I'm going to make sure that we're actually live on uh on every place. Um, we've

  2. uh looks like we have um couple people joining in on on X on the Twitter as well. I don't know how many people out there still call it X or still call it Twitter, but uh it is what it is. Let's see on YouTube there's a couple of uh folks joining us as well. Uh for those who are watching, who are just joining, this is uh hopefully going

  3. to be a regular occurrence. Uh don't know how often it will, but the the goal is basically just to hang out with y'all for a little bit uh for hour or so and answer your questions. Uh we code orbit, we are here. Well, nice to nice to see you. Glad to have you here. Uh super excited to to hang out with you for these these office hours. Um, Jorge, nice to see you as well. Uh, I I

  4. recognize that profile picture on on X or Twitter. Nice to see you. Hey, as well. And then Nuno. Awesome. Always glad to have you have you join the the the goat, the Nuno Maduro, everyone. Uh, if you're not checking out his content on YouTube as well, be sure to be sure to check it out. Like and subscribe for our channel and then like and subscribe for Nuno's channel as well. Uh, Matthew

  5. Miranda, nice to have you here as well. Hello. Hello. And then Ashley. Ashley, great to have you here as well. For those who don't know, Ashley has been doing some awesome stuff within uh in the in the Laravel community, specifically with stuff like MCP and um and uh what that looks like within Laravel. I think he even has a Wisp PHP, which is like a Laravel PHP. It's not

  6. Laravel specific. It is a PHP uh SSH server. Um, and it's it's really really awesome. Uh, Victor, what's up? Nice to see you. Jay, what's up? Watching from Gana, nice to see you. Glad to have you here this morning or this evening, this afternoon, wherever it is for you individually. Uh, Kenya Evance, nice to have you here. Thank you so much for joining. Um, it's awesome to see people

  7. from all over the all over the world. I am from Arizona in the United States. So, I am in the It is It is warm outside for me right now. It is morning. I'm not a morning person, but I'm always happy to to jump on with all of you and and get to get you guys give me energy. So, I'm super excited. Arlon, nice to see you. Uh TJ Punal, nice to see you as well. Laravel forever, let's keep

  8. shipping. Let's go. Awesome. Vanilson from Angola, nice to have you here. I apologize if I mispronounce anybody's names as well. Most of the time I'm pretty good at them, but I also uh I might just misread it, so I apologize. I apologize in advance. Uh but yeah, glad to have you all here. Uh we'll probably just get started. Um uh is this working, Dan? I hope it's working. Uh we'll we'll

  9. see. Uh hopefully you might see your own comment and maybe that was just a test to see if uh to see if your comment shows up. Uh, looks like you're on vacation with the palm tree. At least that in Slack. I think that's the the uh the default palm tree like, "Hey, we're out of the office emoji." Um, but if you're joining from vacation, hopefully your vacation is going well. Um, yeah, but glad to have you all here. Like I

  10. said, uh, when I started, uh, Dan said that was that was a great ping test. Yeah, I don't know the exact uh what the latency is between when I see it and when it actually or when you type it, when it actually shows up, but anyways, glad to have you here. I think on X it might be a little slower than YouTube. I think YouTube is technically fastest when it goes for like latency and anything like that. We don't have any delay set up. So, whatever delay is actually happening is what YouTube and

  11. LinkedIn everything just have out of the box. Uh but yeah, we're we're super excited to kick off this office hours. The goal is mostly to one hang out with you all, to answer your questions that you might have. I'm not going to have all of the answers. I'm not going to be uh I'm not going to uh just know right off the bat anything that you all bring up, but I'm going to try my best. And two, maybe we can point ourselves in the right direction. uh if I can't answer it, we

  12. have a lovely support team, a fantastic support team, um who is willing to help answer that with us, even if we kind of have to take it offline. But the goal is hopefully just to get um as many of those initial questions out of the way as possible or just things that you might have to think about, especially in regards to um deploying to Laravel cloud, maybe even domain registrance. Those are the things that I usually see when it comes into tickets that are coming in within Laravel. Laravel cloud.

  13. But if there are questions that you might have about Forge, um, Nightw Watch, there's not too many questions I can answer for Nightw Watch that aren't already kind of answered out there, uh, Laravel Vapor, or just anything else about Laravel, I'm happy to kind of just answer them. I think the goal is to be a transparent, open book this morning. And so, uh, like I said, I'll do my best to answer everything, but we can always just work through things together and hopefully just have a chance to to hang

  14. out, learn some things. Uh maybe even maybe just have some fun chatting as well. Um yeah. Uh just Steve King, everyone's favorite front-end dev. Hey Josh, I don't know if that means I'm everyone's favorite front end de or you are or uh maybe everyone. Like I think there's a bunch of everyone's favorite front-end devs in the channel. We we'll just go for that. Or Nuno. I don't know if Nuno can be considered a front-end

  15. dev. Uh, Bobby. Um, or I think it's Bobby. I don't know if it's it's Bobby, but Bobby, uh, any other awesome news? I don't think so. Other than I'm I'm super uh I'm super pumped for the things that are coming out of the Laravel team and for the things that you are going to see at Laracon US. For those who have the opportunity to show up to Laracon US, the tickets are on sale. I'm super

  16. excited for that. uh feel I'm super excited to one get to go to Laracon US. Last year was my first time going to Laracon US and I was planning on going even before I got hired on the Laravel team and then now I get the opportunity to go as part of the Laravel team and interact with folks like you who I've just known online who are show up in this in these comments on the channel.

  17. Uh so yeah um if you have the means to go and have time off or your company is willing to like help pitch you in for a little bit. It is absolutely incredible. I love being able to meet people there and it was just an absolute blast last year. Uh so many cool people around. I agree. It's been awesome. Ashley is best at Okay, Ashley. Yes, Ashley is this one. This Ashley right there uh is is awesome. Uh Samuel, nice to see you.

  18. Glad to have you here this morning, afternoon, evening, wherever it is for you all. Um, I guess that's a good question. Um, it is my morning for everyone in the chat. It is what what time is it for you? Evening? Are you staying up late? Is it middle of the workday? And I don't tell your employer what's happening. Uh, what's what's up? Is it morning, afternoon, or evening? Let us know in the comments. Preia, hello. Sounds more insightful. Thank

  19. you. Thank you. Um, any hints of the new updates coming to Forge? I unfortunately don't have any of those hints. One, because I probably couldn't talk about them and might get fired if I do. Two, uh, I don't really know too much, honestly. There's there's stuff that I do know. Um, one, I think it's just I I think I'm just super excited for what's going to be announced at Larcon. Uh, but yeah, no no new updates unfortunately on

  20. my end. Uh, hey, if possible, share experience about autoscale. Okay, we can talk about that autoscaling in Laraveville cloud and and experience. Um, I don't have personally too much firsthand experience, but we can talk about what that looks like and then what things to look out for, especially when it comes to uh comes to pricing and stuff like that. Any new secret projects? I'm actually trying to think. I'm not I'm not lying when I say I don't

  21. think there's any new secret projects. There's some smaller things that I'm excited that are kind of like in the works. Uh but um the and most of that is going to be open source stuff but nothing nothing new uh secret projects beyond that uh that I that I know of at least. Uh hello and good morning from India. Nice to see you. I got to go to Laracon India for the first time uh in when was that February March? I can't

  22. remember exactly. I think it was in February. I'm excited to see the Larville updates. Well, glad to have you here. Um Mahesh. Awesome. We have a lot of people. Uh I'm going to try to get to all the comments or all the questions at once. Um MySQL DB ready on cloud. So MySQL um is is in in the sense ready. There are people who are using it in uh

  23. in production environments. For that I believe we still have it flagged. Um, I could be wrong, but I believe we still have it flagged as uh as like a developer preview, mostly because, you know, there's there's things that we just want to make sure we have completely 100% um, you know, ready for for you. So, it's something that, uh, you know, we is ready for you to use in Laravel Cloud. Uh, but we still have it marked as

  24. developer preview mostly just to give you an idea that there there are some things that we might want to change and improve on upon that. um how to use shad CN with LiveWire. There really is no Shad CNN with LiveWire uh ability um in the sense that you have like specific frameworks or libraries that are HTML dependent for Shad C for LiveWire that's not LiveWire

  25. specific. But the closest thing you're probably going to get with Shad CN with LiveWire is what the LiveWire starter kits use within uh Laravel. So, all of these starter kits use the free version of LiveWire Flux, which was built by the creator of LiveWire and looks and feels a lot like what you would expect from something like Shad Cien. Awesome. We have all the times, everyone. Uh 6:00 PM

  26. from John. Nice to Good evening, John. Jorge is 400 p.m. Ryan's 8 a.m. TJ 11:08 a.m. from uh NJ New Jersey. I was like I was like hopefully I'm trying to think if that that's like an actual country and not a state but yeah New Jersey Dan 11:00 a.m. 8 a.m. 8:38 p.m. in India 6:10 p.m. in Dubai. That's one of those that's like

  27. half hour difference. Oh no, India is the one that's half hour difference. That's what it is. Uh, Pedro 4 PM from Lisbon. Awesome. So many people in the chat. It's great to have you all here. We'll try to get some we'll try to get some uh uh try to get all these questions answered and if not, we're just going to jump right in. Again, like I said, for those new who are joining, this is hopefully going to be a regular occurrence in the sense that it's an

  28. opportunity for me to get to hang out with you all and just to kind of riff and answer some questions. Uh but two mostly just to be able to get to learn together like maybe there's some things that we can kind of troubleshoot together and if you have questions specifically about uh Laravel cloud about Laravel about maybe just things part of the Laravel ecosystem or community I'm going to try my best to help answer them this morning in the time that we have. Uh do I answer hard

  29. questions regarding Laraveville Octane? I guess that's a good point. I probably don't know too much when it comes to the intricacies and indepths of Laravel open u open source or like framework stuff. A lot of that is probably going to be best answered in um we have uh a lar like an unofficial Laravel Slack channel or a discord that a lot of people would know or maybe even in the GitHub is probably um going to be a great point as well.

  30. But I could probably find the person who would know that question. Um, let's see. Let's see. Let's see. Good morning, good evening, everyone. Uh, we have, "What would live in your routes.ai.php file." Taylor did tweet that for those who are unfamiliar with like this phrasing. Taylor tweeted, "What would live in your routes.php file." Um, that could be an

  31. hint to uh what might be coming up in in new Laravel things as well. Um, let's go ahead. Uh, let's see. Let's see. Um, any idea when the Sydney region is opening in Laravel Cloud? Taylor mentioned it was likely next region when during the stream with Primagen. I've been checking daily. I don't think there's a specific date as to when. I know the Laravel cloud team is working

  32. hard to find additional regions. um not just Sydney but other ones as well to say um and just kind of making sure that we have everything in place to not only be able to deploy there but also to have every single resource that you're looking to to create and host there and that's really like the biggest the biggest thing that um the folks at the Laravel cloud team are working to to happen. Awesome. 1211 from Brazil. Uh

  33. 1211 from Brazil. Wow. Staying up late if that's I think Brazil. No, I think that's still 12:11 p.m. I I believe in Brazil. 11 a.m. in Detroit. 12:11 p.m. Yep. From Brazil. There we go. Uh 1000 p.m. from Thailand. So, you're probably one of our latest ones, I believe. Thailand. Nice to have you here. Um and Tessa, I love that the office

  34. hours are live. Well, glad to have you here. Uh uh Tessa is on Twitter and X. Yeah, I'm super excited to try to get this this up and running and mostly just be able to hang out, answer questions, maybe dive into some things as well. Let's go ahead and I'm going to I'm going to share my screen and we can talk through um a couple of things together now that a couple of questions are kind of popping up as well. Um, let's go

  35. ahead and see. Again, for those just joining in as well, if you do have questions regarding Larville Cloud, I'll try to get my my best to one answer them, two to see them, and try to try to pop them pop them up on the screen so we can kind of answer them together. So, I'm going to share my screen and we can uh get going here.

  36. All right, let's go ahead and for some reason I didn't select the right one. That is not the one I want. Is it this one? There we

  37. go. Awesome. So, uh, for those of you who are new, um, John, it'd be funny to for to have me try to speak Russian. I don't even know where I would start, honestly. So, I don't know if it'd be funny or just embarrassing for me and anyone who is actually uh is actually Russian. Um but yeah, glad to uh glad to

  38. have everyone here as well. Um uh how can I implement a QR code reader? Anyone able to help? Um great question, Luis. Uh yeah, built an app with Laravel Livewire. How can I implement a QR code reader? Anyone able to help? We probably can't help with that live on stream, but I'll kind of help point you in the right direction. Um, I would say the first thing to kind of look for is basically a

  39. QR code reader. There's probably a package for one. Um, that'd be the first thing I'd look to implement. But in in one sense, QR codes are just text but formula formulated in one, you know, one specific image. So, it's just finding the the right package. There's probably either um a JavaScript package that works with like native browser tools in the sense of using uh the the camera within a browser or there's probably one for uh PHP as well, but it's probably

  40. going to be a JavaScript package that you'll have to reach for. Um wondering how to cancel a cued job. Uh, Bobby, is that for Laravel Clown specifically or is that going to be for just uh maybe where are you hosting this this Q job? I'm curious with that question. All

  41. right, let's go ahead. All right, here a question we have from advance. Is there a way to go custom on Laravel cloud running a multi-tenant application with multiple databases with custom domains and subdomains per tenant? Um, I would say there there is a way to do that. It's it's something that

  42. you would probably have to think through yourself in the sense of um where those um domains or how how often. Currently there's no way to do custom domains in the sense that um you could have you could we can't have multiple domains per um application at this time. Uh but if you had sub subdomains like let's say you have a subdomains for your main domain. If I have

  43. example.com or let's say if I have this this curate one on my screen, if I if I had a domain attached to this one, I could have multiple uh kind of like wild card subdomains for that and be able to then route based off of that. Uh but in terms of custom domains and multiple of them per um application, that's not something that's possible as of right

  44. now. Awesome. And and for everyone uh kind of seeing on the screen, yeah, my camera is doing some weird thing with like the green glitch. So that's not you. That is me. Uh it's probably some uh weird setting that I um or just overload of my system at the time. So that is not you. That is that is me. Um let's go ahead and see. Okay. Abroad Laravel is highly

  45. recommended. How important is it? Um, yeah, that's a I guess that's a that's a great question is how how important is Laravel? It kind of depends on uh what you're using it for. So like uh Laravel is bu built to handle high loads when you're using it for um anything like an API or you can use it as a full stack application to be able to serve and render your application using using front-end technologies whether that's

  46. just server rendered templates like Laravel blade or using live wire or um livewire or uh inertia on the front end. I'm going to go ahead and hide my screen. I wonder if that's like kickstarted uh where my fragments on my screen were coming from. Very interesting. Yeah, we we'll

  47. we'll we'll bump to we'll bump to share my screen uh here in a little bit. I'm actually going to try a different way to to do that because it looks like that's what was causing uh some of the some of the issues as well. Um, but yeah, keep bringing in all those questions while I look to try to fix that. But yeah, the goal of being able to answer some of these questions is going to one get to shed more insight onto uh what other

  48. people might be struggling with and what uh you know there are some things to kind of think through when it comes to deploying within Laravel Cloud. But then also um but then also the ability to have uh the ability to be able to chat with you as we talk through all these things as well. Um, Jorge Josh is in the Matrix. Yeah, I think that eventually stopped. Um, Emil, can you show how to

  49. add more advanced MPM V stuff having multiple VIT apps in the repo? Okay, this is a great question. Let's go ahead and jump with that. I'm going to uh share my screen a different way and maybe we can see if this works the way I want it. So, let's go ahead and Sweet. Awesome. So, this should be a little bit

  50. better. Um, we'll go ahead and say so there there's kind of like two things to kind of think through when it talks about when we're talking about advanced mpm and beat stuff. And so, what Emil is talking about here is I have this app uh curate in my Laravel cloud application. And when I go into an environment, um, in the settings, we're going to have the ability, um, for deployments to say, I

  51. want to have specific build commands. So, we can do stuff on the node processes. So, we have things out of the box. We have mpmci audit false. We have mpm run build things. These are things that are given to us out of the box from Laravel cloud. But there's more things that we can do both here um in in these build commands with things that are actually you know talking to the

  52. deployment process and talking to the actual server itself. So, one of the things I always like to bring a note of is in our documentation um in the knowledgebased tab. And and then if we go to um this um monor repo support, this is the one I kind of always like to point to mostly. It doesn't specifically answer your question, Emil, but it also does point to the opportunities that there are to

  53. kind of go deeper, excuse me, deeper into um what can be possible within this. Um so basically a lot of people would like to do advanced mpm and v stuff within Laravel cloud by having multiple repos. If they if they have one repo that you're attaching to Laravel cloud, but that that repo has multiple apps in it. Well, how do we deploy that? Um, well, maybe you have, you know, a front end that's being deployed

  54. elsewhere, but then your backend Laravel is also in that same repo. And here's like some code that can walk you through what that might look like as well. And in the sense of saying, okay, we have our a temporary repo. And again, these these build commands that we see here in Laravel Cloud, they really just are interaction with the server that you have. Now we don't have full interaction like SSH keys and stuff like that. But

  55. at the same time, you do have this little step process to be able to um talk with like uh the temporary temporary folder directories as well as um you know your specific repo that that Laravel cloud is downloading and hosting for you. So this is basically just saying um you might have a specific subdirectories or repo folder that we want to move in order to make this happen even if the root directory is not

  56. the Laravel application. Um so I would say this is more okay in the sense it's probably not much advanced mpm v stuff for hosting Laraveville cloud but this shows that this is possible in the sense that there is a lot to uh a lot to think about and a lot to also have the ability to do um when it comes to hosting on Laravel

  57. cloud. Um let's go ahead and take a look back at the comments. Uh let's [Music] see. When deploying Laravel apps to the cloud, how do you balance between performance optimization and cost efficiency? This is a great question. You you're queuing me up, Ian. Um glad to have you here um in the in the chat as well. But let's go ahead and let's

  58. try tackle tackle this together. So, uh, the first thing that I like to think through, let me kind of pull this up. Actually, I'll go ahead and do this layout right here. Okay. The first thing that I like to kind of think through when it comes to cost efficiency as well as optimization. First, there's going to be a great YouTube video on the Laraveville channel um, by Chris Sev, who is our director of Devril here at

  59. Laraveville. And Chris has a fantastic video talking about five tips on how to save money basically with hosting with Laravel Cloud. But the first things that I like to kind of point out and think through is this screen is kind of going to be your source of truth within the environment. You have this this grid this uh this screen to be able to say okay I can see at a glance everything

  60. that is happening. Um one thing that I like to note is that um within Laravel cloud resources are not specifically created and exist only within a environment. So in that sense if I was to create a database right here um and I was going to create a new database and I want to call this uh curate because that's my the name of my app and let's go ahead and say that this is we'll just

  61. keep it as a serverless serverless Postgre. Okay. Okay. Well, now we have specific configuration options that um this is like a dev environment versus a pro environment. And I'm just going to go ahead and create that database cluster. Now, we created this database within this particular environment. But the the resource itself lives outside of our specific environment. So, if I was

  62. to save these changes, I'm just going to save them only and not actually deploy these particular changes. But let's go ahead and look at our main team. So this is my account. And if I go to resources, I now see that I have that database. So we have this curate database. So it lives outside of that environment because if I was to go into this application here, take a look at

  63. that. Uh maybe I and that application already has a database attached to it. But if I was to go into let's see if I was to go into we'll do this application here. This is a little sneak peek at what what we're whipping up at Laravel as well. Um so no spoilers but maybe a little bit of spoilers. Um I can actually attach that database to this

  64. new environment. Um a bunch of glitches. I apologize everyone. Uh that is not you, that's me. Um, so what this means here, uh, what this means here is when we create an an a database, it's going to live outside of that environment that we created on. It just gives us a neat little button to click to create it. Um, and of course, we can add existing ones.

  65. We can have specific database sections living within a full database resource. So one that is the best way to save money when it comes to a database because you're using the same resources especially if you select um a MySQL database like if we were to create a new database that is a MySQL database and you have multiple apps using that database that's going to be one way to save resources. Another thing to think

  66. of is that database um is there's ways to have hibernation. So when it comes to balancing performance optimization and cost efficiency, the biggest one is going to be in terms of how you are utilizing uh your hibernation settings as well as the hibernation settings of maybe your database as well. So if we go into edit for like this app environment,

  67. um we see here that we have the ability to set no replicas but a specific size. And then we also have the ability to set custom replicas. So a minimum and a maximum of specific replicas and maybe that could be a smaller size. Um and so this is where it kind of depends on what your resources are and how horizontally you need to scale in terms of your

  68. application. Um, we do have a pricing calculator on uh Laravel Cloud um that allows you to kind of look through uh to kind of gives you some tips and tricks and just some things of like okay if I did have multiple replicas of let's say for the flex class maybe I had this specific flex um and I did want it to right now this is not hibernating but I

  69. did want it to hibernate and I wanted it to hibernate for I don't know 80% of the time. This this is what it's going to kind of look like if you're using like the pay as you go the free uh the the $0 plus uh uh costing plan. And so that is one thing to kind of think through is okay using the price calculator to kind of calculate what you might be using in the future. But another thing to think through is that hibernation feature of being able to turn that hibernation on

  70. feature on that's going to be specific for the application environment. Now this is also going to include um so any any request that hits this environment is going to trigger that hibernation that sleep off. Uh but this is a great way to uh a lot of times people use hibernation for if they are you if they have a application that really only serves a lot of requests you know during work hours or serves a lot

  71. of requests during the weekdays but not during the weekends then hibernating your application is going to be one of the most costefficient ways to kind of keep this going because if you're not running any cues you don't want to um or you just don't necessarily even have any web traffic to your application then hibernation for like this is perfect. Um I'll also say that when it comes to the database if you are using the uh

  72. serverless Postgres database you have opportunities to say how how much this is hibernating after specific seconds. Now the the wake up time for a Postgres database is going to be a lot faster than your application. um mostly because it those those uh cold start times are a lot quicker within an a database usage rather than a um an application resource itself. So I

  73. would say that this is a better way to kind of bring that down especially if this is okay to do like within like work hours versus um days which with the application environment would be as well. Now, when it comes to cache, it's kind of same thing as the um the database resources, how they live outside of your environment. So, as much as you can, if you are in need of a cache, maybe it's just using the

  74. database for a cache. Like, that's probably going to be one of the most costefficient ways to do that. Um, but if you do need a dedicated cache, then I would say make sure to because they start at $5 per month on the uh with while hosting your cash on Laravel cloud. Again, you you're not locked in to keep to have this cache available on Laravel Cloud, but um you do have the ability to use that cache across

  75. multiple environments, multiple programs or or uh multiple um projects as well. Um, yeah. So, I think that's something to keep in mind is like environments are their own entity, but most of these resources, any buckets, any caches, any databases are going to live outside of those environments and can be used in conjunction with multiple environments. That's one of the easiest ways to save money. But a lot of times, it's also one of the things that you might have to

  76. think through is, okay, maybe that database is still being connected to somewhere and I don't necessarily need that database connected. Um, and so maybe that database just needs to be destroyed because you don't necessarily use it anymore. Um, let's go ahead and I'm going to take a look through uh some of the comments as well. Will reverb on Laravel Cloud be similarly easy to implement uh like EG bucket? Right now I

  77. don't have specifics on what reverb on Laraveville Cloud is going to look like. I know that it's something that is, you know, on the forefront of our Laravel Cloud's team's mind on what that looks like right now. Um, but yeah, uh, I would imagine just like with everything else that we kind of shoot for when it comes to implementing things within Lar Cloud, it's going to be um, as easy as possible. Um, but yeah, super excited for when that when that time comes as

  78. well. Is there a way to switch apps between organizations? I do not believe so at this point. Um um I can we can kind of like uh double check. Be sure to email the support team or uh um on Laravel cloud just to see if that is possible. I don't believe so though at this point or if it's something that

  79. we can't uh we can't do manually. But I don't believe there's a way to switch apps between organizations right now. they kind of live in this organization and I believe it's all uh attached to that organization mostly because it's build per organization. If you if you've learned like if you create a new organization you're asked to kind of set up billing for that specific account as

  80. well. Um let's go ahead and see. Uh Chris says don't leak the flux key. I I'm surprised you caught that Chris. Um I only showed half of it but yeah that is uh if if for those who are using uh live wire flux and um let's go ahead for those who uh uh for those who are using

  81. livewire flux the easiest way and the docs of livewire flux actually uh say it as well but you can use the if you have paid for livewire flux like the full version um there is a way to activate it using Laravel cloud and that's going to be in the build commands and so Chris was referencing uh that I showed it was showing half of it I think my my email for example and then it showed like maybe two or three characters so you

  82. can't steal it because you didn't see the full thing. Um let's go ahead and see what other questions are coming in. Um let's see regarding composer npm stuff the mono repo stuff jag deep I think maybe that got cut off I wonder if how can I code review the security of Laravel itself can we do that without Laravel pass test I mean if developer doesn't write clean or code according to

  83. security optimized great question um there's probably multiple ways to do it and it's kind of just going to depend on like your specific preference as well as like what your uh what your company or what you are looking for within that. Um, security is kind of separate from like testing in the sense that security you can't really uh have automated stuff that's like oh make sure that this is

  84. just secure. There's there's no easy way to do that. What I would say is within testing you have to make sure that you are testing to make sure oh this this route cannot be accessed unless you have this particular policy or you know this particular controller method cannot be performed unless you have the correct uh authorization and so that's really where something like Laravel pest for testing can come in to make sure that those

  85. security purposes those security tests are actually created and then same with like it's great to have something like uh PHP stand or something like um PHP recctor to be able to say okay is this code as u as modern and as simple and as efficient as possible which helps with that too um let's go

  86. ahead hello from Pakistan glad to have you here everyone thanks again for for joining so much uh it's been awesome to just uh just be able to hang out with you all and answer these questions as well. Thank you again for joining. For those uh who are just joining, we're kind of starting this office hours time to be able to answer your questions, hang out a little bit, dive into some things within Laravel Cloud or other parts about Laravel. Uh but yeah, be

  87. sure to like and subscribe this video. It helps within our Laravel channel to make sure that we're uh getting to as many people as possible. So that would help us as well. Uh but yeah, thank you so much for being here. if you're in the morning, night, evening, whatever that might be. Super excited for you all as well. Um, and yeah, Chris mentioned he'd recommend looking up Steven Reese Carter. He has a website with great info. Try searching for securing

  88. Laravel. Um, I believe there is a Larcast episode from uh Steven Ree Carter. I believe it is free. I don't know completely if that is the if that is the case but it's fantastic kind of talking through okay what are the absolute basic things you have to think through when it comes to security within Laravel um is it possible to install all the requirements an app needs example spotsy browser shot which needs puppeteer if

  89. not what cloud tech is preventing it uh that's a great uh question let me go ahead and pull up my um pull up my screen as well. Um I don't I can't necessarily talk to what cloud tech is preventing it. I do know that there are a lot of things. Um let's go ahead and say like PHP extensions. There are a lot of PHP extensions that we install out of

  90. the box for you within each individual one. Um so these are a great kind of resource to say okay these are available for you and again you mentioned you mentioned browser shot which needs puppeteer. So this necessarily isn't a great answer to your question, Emil, but for those who are uh looking to use Laravel cloud, but you're like, "Oh, I need I [Music]

  91. imag cache or whatever that might be." There are PHP extensions that Laravel cloud supports and installs out of the box for you within that environment. Now when it comes to um additional things um something like like NES puppeteer which would be part of like the node environment um I don't necessarily know the full um like limitations in the sense that uh you know I I don't know if that's necessarily on the road map or if it's

  92. something that has been discussed. I know it is something that is requested a lot and so the team is definitely aware of it but it's more more one of those things that um how can we make this efficient as a possible for everyone how can we give the right people the right permissions and the right uh set of uh customization so that you do feel that you can have that kind of customization but it doesn't hinder it for everyone else who might be um you might be hosting in uh hosting within Laraveo

  93. cloud as well. So, I would say definitely keep checking um definitely keep checking the official like uh Twitter or any kind of like Laravel resources such as like our our YouTube channel as well because I do know that this is something that is probably going to happen. Um I just don't necessarily know when, but it is something that the team is definitely looking at or at least aware of at that point as well.

  94. Let's go ahead and see. Um um I don't know what Chris was answering uh but uh Chris in the comments said you can use the same DB as long as it's in the same region. If it's a different region, you can still use it, but it'll be slow and needs to be configured manually. I think so. I don't necessarily know. Okay, this this was the answer to is it possible to use the same database server across projects

  95. with different databases defined inside of them. So yes, um as long as it's the same region, everything should work fairly uh similarly. Um but yeah, different region uh would like like Chris mentioned, it probably would need to be configured manually at that point. And you do have within Laravel cloud, you do have the ability to like if I was

  96. to pull up my cloud resources as well. I'm not going to leak them, but um if I was to view these credentials right here, you do have the ability to have those credentials just given to you. So you can connect to this, you know, from a different application even if it's not in that same region as you had. like if it's in the same region um same region and same organization, it's as simple as

  97. just attaching it to the environment. But if for whatever reason you do need to, you know, link to that resource, wherever that resource lives, you can view those credentials and connect to it just like you would uh any other database. Um is MySQL available? It is. So if I was to [Music] um if I was to create a new database and create it with um MySQL, I'm going to

  98. show share my screen again. Apologies for that. Uh so yeah, Laravel MySQL is available. We just still have it uh configured as a developer preview. It's not recommended for use in production. Folks are using it in production for those who are um for those who are who want to use it. It's kind of just more of a use at your own risk in that sense that it is um it is something that we just have still marked as a developer as a developer preview and that's one of the things that we kind of mention here

  99. in the docs as well as in the application just to know that um within MySQL that things might change one in how it's you deployed but then also maybe like uh um stability as well but that's something that the team is actively working on and it's something that um a lot of folks are are actually using it in production too. All right, let's see what else

  100. other questions everyone gl Thanks again everyone for being here. Super excited to have you all. Um uh let's go ahead and see. Uh John uh Jean Pierre uh hello I'm new to cloud but with Laravel cloud would I be able to access the server for example to the engineext configurations? Unfortunately not. That is not something that is accessible at this point in time. So basically um the only configurations that you have within your Laravel cloud

  101. server are specifically going to be through the Laravel cloud um UI. So anything that needs to be configured uh when it comes to what kind of domain you're attaching or what kind of um like what's the the those hibernation settings or uh how how much scale a specific app environment is going to be doing. Um that's all going to be done

  102. through the Laravel cloud UI. So no like SSH connection at this time for Laravel cloud. All right. Uh how do you overcome the bots crawling your site? Will this impact hibernation or will Cloudfare cache uh handle that? It's it's never going to be 100% accurate in the sense that you know there's always going to be stuff that happens like uh Cloudflare

  103. which is something that Laravel cloud uses out of the box within your um within your setup. So we we basically the the cloud any app that is hosted on Laravel cloud uses Cloudflare as a globally distributed caching and network security. And so basically any of those incoming HTTP requests usually they have to go through these security layers like

  104. a DOS mitigation as well as any kind of like web uh firewall layers. Um and so if you know Cloudflare itself is not even going to be 100% and catch all of those bots 100% of the time. But any app hosted within Laravel Cloud is going to have that mitigated using the best technology possible. uh in my opinion within within Cloudflare. Um Ashley says, "Stephen is

  105. great. Plus 100." Yes, Stephen is great, especially for those security questions. Uh I've learned a lot from Stephen and I think everyone here can too. Um uh I don't get it why I need $20 monthly for level of cloud just have the privilege to use custom domain. Yeah, I I get it right. I know that this is kind of tough to um tough to know within like the production is like yes the production does give you more than just

  106. the domain. So you do have additional um included resources with that as well. Um and it's it includes more than just the domain itself. So it's one of those things where um the pay as you go the $0 plus uh any kind of resource that you use within the the sandbox plan is going to be great, especially if you're just needing to test it out. But yes, custom domain is going to be attached to the production to the production plan. Uh thanks Chris and Josh for

  107. clarifying. Security me is something like HTT got removed and public some kind of security we faced recently. Okay. Yeah, that makes sense. Um yeah and with that uh I think that means like security within Laravel cloud. Um I would say a lot of that is just kind of uh up to you. So like whatever you do within your application is going to be deployed and configured like we we don't try to uh catch that but we do by default um an an application that's

  108. deployed to Laravel cloud by default is going to have the app m of production. So you do have to have a little bit of manual work to override that. So if there is an issue, most of the time it's probably going to be something that um you know you you're either doing on on and intentionally or something that uh is just might have been missed um locally as well. So I think Laravel cloud tries to prevent that as much as

  109. possible especially within using like the saying any application that gets pushed to Laravel cloud is going to be a production application even if it's not. Um Ashley uh thank you for this answer. Emil probably needs to use sidecar with browser shop for now. I had great discuss with that. That's a great great option um as well. So for those who don't know sidecar um was created by Aaron Francis to kind of be able to host u something like a

  110. node process on AWS but being able to attach it or connect to it easily within your Laravel application. So if you do need stuff like that I know that um I've used Sidecar myself even with hosting with Laravel Vapor. there was stuff that I just needed to have an additional um you know resource attached and this is great for it. It's kind of like a a micros service kind of thing for your Laravel application.

  111. Um Limb great work on Laravel make it a lot easier to use PHP. Uh any plans to add more features to Laravel Forge? Uh there are a lot of plans um to add more features to Laravel Forge. Uh Taylor has kind of uh mentioned how updates to Laravel Forge are coming. Uh it's not something that most people think that oh Laravel cloud is going to replace Laravel Forge. That's not the case. Laravel cloud and Larville Forge live

  112. together in harmony. They are for two distinct purposes and they are both fantastic for the purposes that you need. And so, uh, be on the lookout for updates to Largo Forge, but you're going to see most of them, um, most of them will probably be teased before then, but most of them will also probably be shown

  113. on the Laracon US stage, um, come uh, July. Um, awesome. Uh, well, David, thank you so much for the the com the comment and the compliment. I appreciate that. Glad to have you here. [Music] Um, uh, Chris, any thoughts on Neon being purchased by Data Bricks? I don't personally have any thoughts, unfortunately. Um, I, uh, I think it's,

  114. I think it's great for everyone involved. Uh, but yeah, those are, those are my personal thoughts. I don't think that we have a an official stance as a company as well. Um, a tip for everyone worried about cost. Deploy an app and look at the usage after a couple of days. Easier to try and test instead of worrying too much. That is my AWS strategy as well. Thank you, Neil. That's a great strategy as well. It's one of those things where um and for those who don't know, let me go ahead and share my screen back again. If you go into any one of your

  115. environments, let me find a good one right here. Um what you will see is one metrics is going to be one of those things that's a great test to see, okay, how many requests is this particular application doing? And this is just a demo environment, so you're not going to see too much here. But this metrics tab shows within 24 hours, 7 days, or 30 days. And that does give you at least a little indication of like, okay, how

  116. popular uh how popular is this one? How much traffic am I actually hosting? Two. Um, but then there's further steps that you can take within Larville Cloud to just actually at least start to review what this might cost you as well. So, one of one of the things that you can look at is if you go to your um your whole organization, you have that usage as well. But then you also have um in

  117. your invoices tab, you also have the ability to see um what this preview might look like here too. Um and so that's the ability to say, okay, what does what does this look like particularly for your for your application as well? Um, let me go ahead and let's go ahead and bring my screen

  118. back just now. Can you change the main database as defined in the credentials dialogue? H, I don't know. I don't necessarily know what you mean by that. CCY. Um, main database. Are you referring to um are you referring to the uh like

  119. changing a database structure? So like Laravel Postgres, you want it to to migrate it to Laravel cloud. Um let let us know what what you mean specifically uh by that as well. Um, uh, doctor, hello with best solution to self-hosted monitoring for Laravel. Um, yeah, I guess like there there's a

  120. there's probably a bunch of different options. One that like it depends on how in-depth you need for for self-hosted monitoring. Um there's probably a bunch of different resources out there as well, but within like the Laravel firstparty ecosystem, you have Laravel telescope, which is not recommended for production, but within locally, uh that's something that you can kind of have built into your application to say, okay, this is what this looks like locally and then you can test that a little bit further. In production, there

  121. is Laravel Pulse, which is self-hosted. Um, and then in the future, it's not going to be self-hosted, at least the start, but it's not going to be uh but Laravel Nightw Watch is going to be uh coming out soon as well. Um, let's see. Hi from South Africa. Glad to have you here, Leonardis. Uh, and uh CCY the database name and the database credentials

  122. dialogue. I see by default it is main. That's actually a great question. Why don't we why don't we figure figure that out together? Actually, I don't know off the top of my head if that can be changed. Uh why don't we why don't we try it out? Um so if I go into here and into our our main database, I want to detach it. Let's go ahead and create a new one. Um yeah, I believe the only the

  123. cluster name can be uh can be changed here. Um, and then if I was to attach a database and attach a new database, this is where I can create a new database within there. So I believe that that main you can adjust it from the resources tab within your environment. So resources tab I believe. So this one's main here. I don't know if we can.

  124. Yeah, we can't edit that specific main after we create it. So it looks like um once you create it uh then you have your specific cluster name that you can give it um and that's uh but then the only way to change at least through the UI you probably can change it by connecting to it through a database GUI um and change that specific name. I know that that's what I did for

  125. this specific cloud DB for example. Um, but anytime you attach a new resource to a database, like a new environment or new project to a database, you have the ability to attach a new database to that cluster. And that's where you can change the name as well. But I would say a lot of these things, you don't necessarily have to rely on the UI. Um, it doesn't look like we allow you to change that from this UI, but you can connect to it from a database GUI to let that let that

  126. happen as well. Um, any plans to support bun and pmppm as as a by default package manager other than npm? I don't know if there are any plans for that unfortunately. Um, not off the top of my head. Um, I can I can ask around. I'll make a I'll uh I'll try to make a tweet about it just for to try to answer for this question. I don't know if there are any plans

  127. specifically. Um but yeah that I know that um a lot of people on the cloud and Laravel team are huge fans of bun and PNPM as well. Wasn't aware of adding the multiple DPNs in the cluster like you just showed that answer my question. Looks great. Love the content. Awesome. Glad to have uh one glad to have you here CCY and also glad to help in that resource. So that yeah so any um any resource whether it is a database and I'll go ahead and share my screen again so I you're not just looking at my face

  128. while I'm talking about it but any resources whether where it's a database or a cache or object storage looks like I don't have any of those created on this account but any resource can be shared across multiple environments multiple projects um so even uh so one of the things and and you might know this as well but if I was to create a new um en environment and I wanted to let's actually do this with a different

  129. let me go ahead and create this. If I was to create a new environment and I want this to happen here um any new environment that I give let's let's go ahead and make this I don't know dev any new environment now has the ability to attach to that resource as well. So whether that's a database, a cache or a bucket, even if I have two

  130. environments, a main environment or a dev environment, I can uh attach those already created resources um and then just create a new database uh name underneath that cluster. So this one I'm just going to create a new database here of uh dev. And so now I have the dev named database, but it's all living within that one cluster. So that way that is one of the easiest ways

  131. to save money especially within resources because um if you have a MySQL database or a Postgress database that has a lot of connections so it's not hibernating as much um and caches are expensive. So as much as you can use and and utilize one cache across all of your applications the better it's going to be. Um and then it's just as simple as okay maybe one application is is using that cache too much. um well, it's as

  132. simple as maybe detaching it and adding a new cache for that particular resource, that particular uh environment or you just up the cache size. And so that that's that's one way to kind of keep everything uh you know a as costefficient as possible because you're just sharing resources across your application, across your account. Awesome. Uh I wonder how powerful PHP native and Laravel cloud will be.

  133. That'll be that'll be very very interesting to see. I I got the chance to play around with PHP native myself just the other day. Um I it's very very fascinating, very interesting and pairing it like with a with an API that's hosted on Laravel Cloud is going to be going to be incredible and and even um I have a React Native um application myself that also has a Laravel API that is hosted on Laravel Cloud. Um, and I think Laravel cloud is

  134. fantastic not just for the full stack applications but even for the APIs as well because it just makes it uh super simple. I actually uh had a video on the Laravel cloud Laravel official channel that talks about using uh Nex.js within Laravel in the sense that using Laravel as an API for Nex.js JS and in that we hosted that Laravel API on Laravel cloud and it was extremely simple to basically

  135. just get that up and running and to accept connections from uh from Laravel cloud. Um let's go ahead and see if there's any other questions that I missed. Again, thank you all so much for uh for being here and for just kind of hanging out as well. I wanted to go through uh setting up uh account mostly because a lot of the questions that come in through our support channels as well as things that

  136. I see online uh relate to attaching a domain to Laravel cloud. It is one of those things that domains can be finicky in and of itself. They can be tricky sometimes, you know, like it it can take three minutes sometimes depending on propagation, depending on your uh DNS server, depending on so many other factors. I I I I don't even know all of them and and what it means or what's going on behind the scenes most of the

  137. time, but it also can take up to 24 hours a lot of times too for that propagation to take effect. So, I figured we would go and attach a domain to an existing uh resource that I have in my Laravel cloud account. Um just to see if everything uh see how see what kind of issues we might run up against and see or see how seamless it is. Um, doing it live is a good great example of what you might need to expect or to

  138. think through. Um, yeah, I don't think there was any other big one. So, we can jump right into uh doing that. Trevor says, "Can you get a Nex 3 module for Laraveville Echo?" Um, yeah, first of all, Nux 3 and their modules are fantastic. I know that there are is is a module already built for Sanctum. Um, I don't know if there's one built for Laravel Echo yet. Um, but I would

  139. believe the use echo hook, which is specific for Vue and React that was just released by the Laravel team, um, can be used within Nux as well. There's nothing uh, inertia specific within that. It is Vue and React specific within the Echo.js library. So that should be while it wouldn't be as as clean maybe as a module um it's a it's a package specifically for view

  140. um and react as well. So let me go ahead and share my screen. I can actually show that as well. So if we go to um the use echo we'll go uh echo Laravel again. Let's do it let's do it live. So I haven't um haven't pulled this up beforehand or anything like that. Uh but in the broadcasting environment, there's a new video out on the channel by Kristoff that talks about this in a little bit

  141. more in depth. Um and so this would be specific for JavaScript front end, your client side to connect to Echo to say one, I want to listen to things. Um and what happens when I listen to it? Basically providing you a function, a callback to say when something happens within my Echo broadcasting environment. Well, now I'm listening to that. Anyways, I believe you should be able to use this with with Nux. I I believe there's

  142. nothing specific about it. So, basically um as long as that configuration settings for your uh pusher or reverb channel are set up properly and this is how you would do it within Vue, for example, you make make sure that that echo is configured. Um but then uh it's as simple as let's go ahead and find

  143. those documentation as well. Um but then it's as simple as this use echo hook for view to say okay and then and again I might be completely wrong uh based off of my understanding of NX but I think all of this can be used outside of inertia outside of Larbell. So you just grab this setup

  144. view um import echo and if your echo like I said is already configured to connect to your reverb server wherever that lives outside of your next application then you just use this use echo hook and it's as simple as listening to that particular broadcasting event and then doing something with it on the back end. So, um maybe not as clean or as uh maybe nuxedish as as a module, but still extremely simple. And this just came out

  145. last week, I believe. Yeah, last week. Uh yeah, so be sure to be sure to check that out, Trevor, if you have not already. Uh Joe Breaver Mloud, I know I know it's something that a lot of people are are hoping for. The team is not the team is aware of how important something like this is. I don't have any clear dates or when that might happen or what it even looks like. Um, but I know that it's something that the team is hard at

  146. work on. Um, will nightwatch just be a tick box to enable in Laravel Cloud? I um I I don't know if that is something that's going to happen right at launch. Um, but I know that it is something that's, you know, both with Laravel Cloud and Laravel Forge that the team wants to be as seamless as possible. And right now honestly the the the setup for Laravel nightwatch is extremely simple, extremely painless in the sense that uh you basically install the PHP artisan

  147. nightw watch command. You or you install the composer package, you run the PHP artisan nightw watch command, you basically connect to your specific API key that is given through through nightw watch and you're basically good to go. So yeah, a tick box to change those three steps might be a more helpful in that in that sense. So you don't have to uh change your environment, but I believe it's probably um going to be extremely simple regardless if that

  148. checkbox is there on day one. Um let's see. Uh uh is there a reason to change from a $10 web hosting with SHDBs and 260 gigabytes? Again, Simon um Simon D'Angelo. Um, it kind of just all depends on your specific, you know, spec your specific needs, your specific purpose, and then also just what you

  149. want out of hosting. So if you are someone who wants to help to to manage everything to make sure that everything is properly if you're the one that's going to be on call in the middle of the night if something breaks um then there's no reason to to change like if like there's a reason why Laravel CL Laravel Forge exists for example because um there are people who want to you know handle that and I have even some applications that um they just work best within a Laravel larva forge application

  150. and then there's some especially like demos or just things that I either uh don't want to care about if it goes down or uptime or anything like that. Um then that's why I'm going to put on Laravel Cloud. So it just depends on your specific needs, your specific use cases. And um on the Laravel Cloud uh landing page, there's also a great kind of comparison between when you might want to use Laravel Cloud versus Laravel

  151. Forge as well. Again, it's not a us versus them thing. We're we're all it's all part of Laravel anyways, but it's one of those things where it just depends on who who you are and what your application needs and then it also just depends on um are you do do how much do you want to be in charge of handling it and how much um customization do you want because if you do want that customization and being able to you know manually SSH into something and change

  152. it well right now for the is the best option because you can't do that within Lo cloud too. um from a pure costefficient standpoint, especially if it's something that runs consistently but not that much resources, you're probably going to be cheaper using Laravel Forge, even using the Laravel Forge like um subscription price per month. Uh can I use this hook without inertia just API back and pusher and

  153. react? I believe so. Uh again, there might be someone in the comments who uh who might correct me. Um, but as as far as I as I know about Echo and about um these specific use echo hooks that were created by Joe Tannon bomb on our Laravel Laravel open source team. Yes, they are completely separate from any front end through through Laravel similar to like wayfinder. Wayfinder is

  154. separate from inertia itself in the sense that wayfinder is the ability to have uh typed um routes and typed um action calls. Uh but yeah, you can use that hook without inertia. Um it would just be setting up your echo configuration to make sure it's connecting to the proper uh configuration. So you you would have to have that setup happen outside of a

  155. Laravel application in your own um whether you're using like a NX or next or whatever that might be but it it is entirely entirely doable. Um how is best solution for use no SPA mode big modular inertia system. Um yeah, so Inertia has a Inertia has

  156. the ability to have SSR mode and even within Laravel cloud um the ability to uh set up so if I go into this app environment let's say I had inertia set up on this particular app we'll reset that um we have the ability to use inertia SSR just with one click it's basically pre-rendering your JavaScript servers your JavaScript pages on your server um and so SSR and inertia

  157. specifically is going to be if you didn't want to use the SPA mode within Inertia, then SSR is going to be a great option. Um, but the good thing is none of your actual modularity and none of your uh your your code structure is going to change. Um, it's as simple as really uh like thinking through okay, is this something that I I I want to be server rendered. And it's more of like does it your application need it and

  158. less about okay how do I work with it now that it's enabled um uh for for almost everything. It's not going to change your your code at all. Um what did I miss Rob? Well, glad to have you here. Uh I I we're we're still we're still going. We're still going strong. Um uh we've been live for an hour and 10 minutes now. I don't I think uh I think in my schedule wise I think we'll we'll we'll we'll maybe have

  159. another 10 minutes or so to wrap this up or 10 10 to 15 minutes or so to wrap this up. But glad to have you here. You didn't miss too much. Mostly we've just been hanging out answering some questions talking through um Laravel Laravel cloud and resources like that. I think the biggest thing that we we've kind of come to agreement on or maybe like a a familiarity and uh interest on throughout the conversation has been that resources in Laravel cloud

  160. especially for cost efficiency can be used across different projects. So you can use one database for 10 different projects um and save a bunch of money as well in the process. Um but yeah uh yeah Simon thanks for the answer. normal Laravel view with GitHub actions. Sweet. Yeah, I think as far as I know, again, I can I can be wrong. I'm not all

  161. knowing and I'm not 100% right on everything. Um, but I think there's no reason that you can't use that those used echo hooks as well as just yesterday there was the use stream hooks that were released um by the open-source team as well. So um let's go use stream Laravel. Let's go ahead and here.

  162. Oh, there it is. So use stream hooks easily streams in your react and view applications. So, uh, just really bare bone, not bare bones, but really minimal or or, um, very early start of this stream hooks, but it was something that I know that uh, was tweeted about by a couple people uh, yesterday as well, Taylor and um,

  163. and Joe Tannon Bomb. But basically, you have this ability and we can look at the documentation here. If I was to do let's do let's do the re view one since that's what you're kind of mentioning. uh but you can consume streams in your view application. So, it's currently in beta, like I said, subject to change prior to that. But similar to like that use echo hook where you have the ability to say, okay, let's say we have this chat

  164. stream. I want to do X, Y, or Z in that. I want to um when I'm sending this to whatever that stream looks like, it's basically just a a a post request. Um again, all requests are sent as JSON post requests. So this is something that can be used outside of inertia. It doesn't have to be used in inertia. It makes it easier in a lot of ways to use as inertia, but you can set specific

  165. header CSR CSRF token credentials. And if you're doing that within a view single page application or nux completely doable. Um so yeah those are those are some small things that um you think uh you think oh that doesn't make sense that Laravel would spend time working on them uh when it's not super specific to Laravel but it it is in a lot of sense as well too. This just

  166. makes it easier to work with a Laravel API or a Laravel backend regardless of of how you're serving up that front end. Um, uh, I can't see any regions roll out on the Laraveville cloud site. Can a rollout page be added to give hope for people in other regions? That's a great great, uh, question, showstopper. I will I will bring that. I know most some of our Laravel team is watching right now

  167. and probably taking notes um as as well and so I think um that's something that you know I will definitely bring bring to our team and would be awesome to know for for others like yourself to know um if this is something that you should hold out hope for I guess or what is next in terms of what people are looking at. Again, I think the biggest um just to kind of give some insight, I don't know 100% the reason why I I'm not part

  168. of the infrastructure cloud team, but at the same time, I know that a lot of the the diff not difficulty, but a lot of what all goes into adding a new region to Laravel Cloud and even things like Laravel Vapor um means that we have to make sure that all of the resources that we create, that we use when it comes to building out an application, when it comes to using um something like Postgress or MySQL or any of those

  169. resources the database clure uh the the cache cluster or the the buckets all of those have to make we have to make sure also can exist in that region as well not just the application infrastructure but yeah I'll definitely bring that up to our to our team as well uh Matteas big fan here Josh uh Matteas I'm a huge fan as well for those who don't know uh Matteas is now on the uh um on the

  170. Laravel So, we're we're glad to have him here and uh he's he's putting a lot of work into into Laravel Cloud. So, he knows probably more about uh all of those questions I answer than I do. Um so, yeah, glad to have you here, Mattas. Huge fan as well. Uh Trevor, another question. Can I I really love the Rail Reverb. Uh I don't know why I stuttered over that. I really love Laravel reverb, but when you leave the Laravel starter kits and try to use it with another

  171. framework like Flutter for mobile, it becomes a bit confluent. That that makes sense. I I know you know anything that you're using something else outside um of you know an API it it becomes tricky to to connect to that. Um I would say so reverb is basically just pusher pusher friendly. So I would try honestly I've not used Flutter so this

  172. might be entirely wrong but I would look at Flutter packages that are uh uh uh Google Pusher friendly because it is the same uh infrastructure. I don't know the right word. It's not coming to my head but it's the same setup. It is compatible like pusher compatible just like a lot of bucket uh configurations are S3 compatible. Reverb is pusher compatible. So you'll basically be using

  173. any pusher compatible package within Flutter. You just change those settings to make sure that it is reverb. So if you have a reverb server hosted on uh Laravel Forge, um you should be able to connect to that using any pusher compatible Flutter package. Again, not something I've tried specifically or or use Flutter myself. Um, I have not even used React Native or anything like that with with Reverb. But that might be

  174. something uh I want to dive in and try because that would be that would be very interesting uh to me. Um, thanks for answering all my questions. Thanks for thanks for being here, Showstopper. You literally uh literally stopped the show. But yeah, as we kind of wind down, I wanted to just deploy an application with a new environment on Laravel Cloud. I'll I'll freak out some of our cloud uh infrastructure engineers um who have worked on the domain side of things and we'll just do it live and see see what

  175. happens as well. But just so everyone knows um domains are are finicky in in and of themselves in the sense that like it can take 24 hours to propagate. So I don't think that this will be up this might not be up and live within like the couple minutes that we have to just try it out. But I wanted to show what it looks like to to add a domain to a specific environment. So I have this this main environment right here um that

  176. I want to add a domain to. And so if we go into settings and domains here, I can add this domain here. Now, one of the things you click on learn more and we can pull up our docs. One of the things I always like to think through when it comes to uh domains is one is if you have um uh this domain verification timeout page on our knowledgebased docs is going to be extremely helpful for you because there's some things to think through.

  177. One, you have to make sure that you're redirecting both the www dot as well as the the uh the at usually usually most DNS providers have it as an at which is the example.com. But then you also have to make sure you push the www record because what Laravel is is kind of um doing behind the scenes is redirecting www to yourample.com domain. And so if you didn't add an entry for that redirect,

  178. then it's just going to fail because it's trying to redirect something that you don't have an entry for. Another thing is using Squarespace as a DNS provider. And I don't know if Squarespace is the only one, but at least there there's probably others that that are not super popular that might be this way as well. But basically, Squarespace automatically adds the um example.com or the.agample.com to DNS

  179. verification records. So, you don't have to add the full thing that Laravel Cloud gives you. Instead, you would just omit the example.com. And these these docs kind of show that as well. Um, and then lastly, uh, there's sometimes when a domain is is flagged on Cloudflare, which is what we use for domain verification. Sometimes when it's flagged as like improper or it's something that um, you know, there's a potential abuse concern or something like that. If that is the case, again,

  180. that's that's very rare, but if that is the case, reach out to our support team within Lar Cloud and we can uh, make sure that that is the case. Now again, it it might just be as simple as it takes about 24 hours to for global DNS providers to propagate a domain. And so if it's past 24 hours and you're still seeing something like, oh, this looks like it successfully happened using external DNS tools, but it's still showing as validating or timed out or

  181. something like that, that's when it's good to reach out. So yeah, don't reach out five minutes after uh because it's probably just you have to wait longer. Um, every now and then, like it takes five minutes for me to set up a domain, but then every now and then it takes 14, 24 hours sometimes. Uh, DNS can be finicky like that. So, I want to add this. I have this curate.ai domain. I'm using namecheep to do it, but I was figuring why don't we, you know, push

  182. this through together to show you the process of what it looks like and just like any hiccups that might happen along the way. again, live coding something or just like live setting something up, there's always going to be stuff that just naturally happens. And so, um, here I'll kind of talk through like the process of what happens behind the scenes. So, we have the ability to support this domain or support all subdomains. This is basically saying if I want to in the future, I've done this for my my personal domains a lot of

  183. times. for like a lot of demos. I want to be able to say, okay, a new project that I have. I just want to be up and ready to say this is now, you know, blog.curate.ai, but it's a completely new environment. It's a completely new project. Well, you wouldn't have to go through this process again if you supported all wildcard subdomains. For right now, uh, we'll we'll go ahead and support it. And then this is where we like redirect. So again, that's that setting that I talked to you about that

  184. is the www needs to be redirected to the root domain. We're going to add the domain. So it's going to give us some some options to add. This is what I can then um use on my namecheep account. So uh it needs to verify the ownership. But we have a text record and a CNAME record. Let's go ahead and we'll grab this. So, let's go ahead and in my NameCheep account, we need a text record

  185. that we add. So, I'm going to manage this one right here, um, in advanced DNS. Uh, I want to add a new record. And we're going to add a text record. And the value is this. Let's go ahead and bring this up here so I have it at the same time. Uh, and then, oh, that was the that was the name. This is the value. Let's actually do this side by side. See see if this

  186. works. All right. Add new record. We'll add a text record here. The uh name is going to be this. And the value is going to be this. We'll save changes. Um we'll add a new one. Text record. Name namecheep looks terrible on this small of a screen. But the good thing is Laravel Cloud looks really good. And uh apologize to any front-end engineers from the Laro cloud team who

  187. are on the call because it's not meant to be this small of a screen. Um uh but they did a great job. It looks great, huh? So we'll do this and we'll plop in this value. Save changes. Then we have a CNAME record we can add. So CNAME of this, we'll do this and this value. Bam.

  188. And then we'll have a another text record. Um, and so we'll add this right here. Text record. Bam. And then bam. And so I think that is all correct. We have exit that one. So we have the the text record for the Acme Challenge. We have the CNAME record hosting to this these values. So everything looks

  189. correct there. And so basically um the the next step within Laravel cloud is exactly kind of like what we talked about. It's just kind of like waiting for I might have accidentally closed out that one. Um the good thing is all this happens behind the scenes for us. So it's not like I have to have that page open for me. If I go back into my main environment and go to the domains, we should see that this is um it's it's verifying that ownership. Again, this can take up to 24 hours. I don't know if this will be

  190. ready for us even before we end the stream today. Uh but while we're waiting for this, we can look at these I'll look at these spinners kind of behind the scenes. Let's go ahead and answer some more questions. We're probably going to be wrapping up here in the next seven minutes, but thank you so much everyone for being here as well. If there's any other big questions, whether about Laravel Cloud, Laravel itself, again, I try to answer them as much as I can as as good as possible. Um, I am not the the sole source of truth for everything

  191. knowledgewise when it comes to Laravel, but I at least might know a little bit enough to point us in the right direction as well. I want to know about more about Cash Memo. I'm really looking forward to your video about it. Uh, Kyle, glad to have you here and thanks so much for for supporting. Um, yeah, Cash Memo is is very interesting for those who don't know. I'll kind of pull up my screen and kind of take a look at it as well. But if you go to the cache settings of

  192. oops cache memos settings of Laravel, we have this ability to very similar to if you have used livewire and you have computed properties, we have this ability to temporarily store these resolved cache values in memory during a singular request or a job execution. And so this is going to save resources. Um it it basically just like it says here, it prevents the repeated cache hits within the same execution significantly

  193. improving performance. And so if you have something that you're like um within that same request, you are accessing that cache multiple times or at least checking for that cache multiple times. This memoized cache basically takes that cache and makes another for all intents and purposes another little cache within that that cache itself. So you're caching your cache in a lot of ways. um it it's it's storing that resolved cache value. So the first time you grab it, you are

  194. resolving it. You are taking it from the cache itself, but then it's it's being stored in memory for that request for that job execution. again um any I I can't think off the top of my head and someone in the chat might be able to say hey this is a great use case for this but a single single request I can't think off the top of my head of when might be a good example of that in in terms of a request that you're probably you know using that value multiple times

  195. or at least retrieving that value multiple times but within job executions it's a perfect use case for this within a single job I grab something from the cache uh I don't want to within that. Maybe it's a maybe it's like further down the job or maybe it's like an if else statement where um if something happens I need to go back and grab that cache and grab that. Um instead of having to do all that work beforehand

  196. and saving that to a particular value, this just memoize memoizes it. Um so now that value is going to be memoed. It's going to be stored in memory so that you can use it throughout uh throughout your your application. Um and you can also do that within putting values as well. So it's it's written to the underlying cache but it's also memoized as well. Uh so like this one writes the

  197. underlying cache. U memo get hits the underlying cache and then memoise does not hit cache is right here. So the next time you get it. So this is writes to it. It hits the underlying cache and it's me. And then this one if you get it a second time because we called it again, it does not hit the cache. So again, a great way to kind of just stop a foot gun from happening. Uh if you're trying to hit the cache multiple times,

  198. this is the best way to do it. Uh but yeah, a full full video would be awesome because me personally off the top of my head, I don't know other than jobs, I don't know of like a best way that's practically this comes into be comes into play and I know that this was you know created for a reason and most of the time things that were created were probably for um the Larville team itself. So I I'd love to dive into that a little bit more myself as well.

  199. Um by the way, I really appreciate you answering all questions about just picking the ones that you like. It's not coming out. Well, well, thanks so much, Treasure. I appreciate that. Again, like I said, we try to be an open book here at Laraveville. There's some things I'm just not going to know. Um, there's some things I am going to know, but I can't tell you. Uh, but, uh, most of the time, um, we try to just be as transparent as possible. Um, without me losing my job, I should say. Um, Cow, thank you for your time with the explanations. I appreciate it. Uh, Ryan, will Laravevel beam become a domain registar and allow

  200. me to purchase a domain directly on cloud at some point? I actually don't know if that's even been talked about. I mean, obviously, it's probably something that the team has probably thought about at one point of reason in time. Um, I don't know if that's something that's in the future. Um, and if I do, it's probably something that um or and if it is in the future, I I don't know. It probably would be further in the future. Um, but there's a lot of things that we would I think the cloud team has more focus on. I'll say it that way. The cloud team probably has more things that

  201. they're focusing on um that make cloud better than the domain registar purchase at this point. Um, yeah, great question because it's like like I said, anything that I answer here there's it's probably going to change. A lot of things change, development changes, but uh uh uh I try to try to answer as best to my knowledge and I did not prepare for anything beforehand. So, I try to just just say what I what I know. Um, and you might see tweets from Taylor saying exact

  202. opposite and that's okay because he's the boss. Um, but yeah, let's go ahead and check back into the uh Laraveo Cloud domain. that I'm curious of if anything changes. So, it's still verifying ownership. Um, uh, if we click into that, you can see here that it's it's it's continuing to do that. And so, like I said, it it can take up to 24 hours. It really depends on your DNS. It just depends on that DNS provider. Like I'm

  203. using NameCheep. Sometimes, like I said, it takes 5 minutes. Sometimes it takes a little bit longer. Um, this was meant more meant to show that if there was some errors that showed up, it'd be nice to try to walk through them with you, but we haven't got any errors yet, so that's a good sign. It's probably just DNS propagation, doing DNS propagation things. Um, awesome. Uh, I think there's a few more questions and then we'll go

  204. ahead and and call it for the day. Uh, um, how will SSL for the custom domain work? Can you import the SSL certificate on the Laravel cloud UI? So I believe uh SSL is kind of already given out of the box within Laravel cloud domains. Um I don't know. Let me do a quick search. Um import SSL. I don't think there is a way

  205. at this point in time to import an existing SSL certificate um for that domain. I could be wrong about that. If that is something that you absolutely need, be sure to write into our support team. Um I don't know the correct answer off the top of my head. Uh but SSL is given for custom domains out of the box. Um within Laravel within Laravel

  206. cloud. Um uh I'll I'll try to get to everyone's questions, but I'll try to wrap up here in a little bit as well. So I apologize if I do not get to your questions, but thank you so much everyone for joining in. Bruno, hi from Uricway. Thank you so much for joining in. Lots of questions about the cloud from Kyle. I think it would be cool to have a live with the cloud infrastructure guys. That is a great option. I know that I know that uh we've talked about a little bit like with our within our Reddit AMA. A lot of those questions still hold true. Those answers

  207. still hold true with Joe Dixon who is the who is the lead engineer on the cloud team. Um yeah, that I I think this is a great great point. Something I'll bring up to the team team as well. Um difference between cache and sessions. Uh so a cache is going to be stored externally usually like in a separate table. So like a um you can use a database cache or something like reddus and then session is going to be stored uh in memory as well. Uh Kenny has a

  208. huge Laravel fan base host Africa's first LARON. Uh uh who knows? I know that I know that um Laravel meetups are something that is is is we're wanting more and more people to host their own Laravel meetups and be able to have that opportunity. So we we never know when uh when opportunities like that might arise. Um, yeah, we'll we'll call it there everyone. Thank you so much again for everyone who joined, everyone who uh hung out in the chat. I really appreciate it and just loved hanging out

  209. with all of you. Um, and just uh appreciate just being able to to to walk through this as well. Um, and then Chris did answer for showstopper. As far as I know, it will be a new certificate issued and managed by Cloudfare via Laravel Cloud. No need to use less encryps. Yes, that's correct. if you did happen to need your own SSL certificate. I know some people need that for whatever reason for their specific domain. Um, and I don't think existing

  210. SSL certificates are supported, but let us know uh in in support if you if that is something you absolutely need. Uh, but yeah, thanks so much for joining. Again, if you want to click that like and subscribe button, that helps us that way in the next time we go live, it just push the the algorithm and all that kind of stuff helps push it out to as many people as possible. But thank you everyone for joining, for being here. Um, I really appreciate everyone and I just like hanging out with all of you as

  211. well. So yeah, uh, thanks Kyle, thanks Chris. Uh, hopefully you have a fantastic rest of your day, evening, night, morning, wherever you are. Have a good night's sleep. Have a good day. Uh, and we will see you next time on Laravel Cloud or next time on Laravel channel. Um, I think there might be a uh some some more live streams as well as some more videos coming out shortly. So, make sure to to stay tuned for that and

  212. hopefully to see you all at Laracon. So, have a great day.

just you here