Laravel Rust: The first framework built for Agents?

It's quite a big thing!

Show notes

Infinite, my new learning platform: https://academind.com/go/infinite-yt-laravel-with-rust Systems Design Fundamentals: https://academind.com/go/systems-design-course-yt-laravel-with-rust My free Effect course, Effect: Fundamentals for TypeScript Developers: https://academind.com/go/effect-course-yt-laravel-with-rust

Website: https://maximilian-schwarzmueller.com/

Socials: 👉 Twitch: https://www.twitch.tv/maxedapps 👉 X: https://x.com/maxedapps 👉 Udemy: https://www.udemy.com/user/maximilian-schwarzmuller/ 👉 LinkedIn: https://www.linkedin.com/in/maximilian-schwarzmueller/

Want to become a web developer or expand your web development knowledge? I have multiple bestselling online courses on React, Angular, NodeJS, Docker & much more! 👉 https://academind.com/courses

Show transcript

00:00:00: Things are changing, in case you have noticed, and this is a big one.

00:00:05: Taylor Otwell, the creator of Laravel,

00:00:08: the owner of the Laravel empire, released a new framework.

00:00:13: Laravel Rust. And this is big for many reasons.

00:00:18: Most importantly, as he also makes it pretty clear in a letter to the Laravel

00:00:22: community he also released, because it's a new direction for Laravel.

00:00:28: And make no mistake, even though in this letter he clearly says that

00:00:33: Laravel for PHP is not going anywhere and is not entering maintenance mode,

00:00:39: Laravel Rust I believe is the future of Laravel.

00:00:43: Because, unlike Laravel for PHP, it's built for agents.

00:00:48: And of course it is, because everything, every framework,

00:00:53: every library you build these days must be built for agents.

00:00:58: Now, what is Laravel Rust about? And why is it such a huge thing?

00:01:03: We've had other frameworks that were built for agents,

00:01:08: a lot of small ones we maybe never heard about.

00:01:10: We, of course, also see that all the existing frameworks are moving

00:01:15: into a direction that they are better suited to be used by agents.

00:01:19: That starts with releasing official agent skills,

00:01:22: and it continues with new features being shipped. If we take Effect,

00:01:27: for example, which is a framework I personally like a lot for all my projects,

00:01:31: this is a TypeScript framework, not comparable to Laravel.

00:01:36: It's way more focused, or it is not as batteries included. It's not a full

00:01:42: stack framework, but still it's a framework with lots of built-in features.

00:01:46: And it is a framework that can really help keep your agents on track.

00:01:51: And I've created other videos about that.

00:01:53: And I got an entire free course you can take on my brand new learning platform.

00:01:58: You just need an account. It's free then.

00:02:00: And it's not about learning the underlying syntax.

00:02:04: In the course, I do explain the essentials of that too, because I believe

00:02:09: it helps everybody to understand that in order to be able to use it.

00:02:13: But what I focus on in this course and what Laravel Rust in the end focus on is

00:02:20: giving you something that you can use to direct your agent.

00:02:25: In the case of Laravel Rust, they try to get the strengths,

00:02:29: the advantages of Laravel for PHP, but remove the disadvantages and weaknesses.

00:02:35: And what does that mean? Laravel, if we look at old school Laravel,

00:02:40: Laravel for PHP, which of course is not going anywhere,

00:02:43: is a framework that's amazing for a couple of reasons.

00:02:47: One reason is that it's batteries included. If you dive into the

00:02:51: documentation, you will see that this framework has everything you need.

00:02:57: It comes with an ORM for communicating with your database. It comes with

00:03:03: a broad variety of packages that make it easy to add payments.

00:03:08: It comes with support for queues and jobs, for front end rendering,

00:03:13: so for views, and even there, it gives you different adapters so that you

00:03:17: can connect your React application to the Laravel back end, so to say.

00:03:22: It's a true full stack application with batteries included.

00:03:25: If you use Laravel, chances are high that you don't need a

00:03:29: lot of other libraries to build whatever you want to build.

00:03:33: And if you do need more, the good news is Laravel is such a popular framework that

00:03:38: it has a very active and broad ecosystem. You can find lots of learning resources.

00:03:44: Of course, that space is also changing because of AI, but still you find a

00:03:48: lot of learning resources and you find lots of packages for the few missing

00:03:52: pieces that may not be included in Laravel itself. But it doesn't stop there.

00:03:57: What's also amazing about Laravel is, of course, that it's actively maintained.

00:04:02: I actually started my freelance career many years ago with Laravel.

00:04:06: I think it was Laravel 5.2 or something. And I could trust back then

00:04:12: already that Laravel would very likely be well maintained because Taylor Otwell,

00:04:18: the creator of Laravel, built this empire around Laravel.

00:04:23: So his economic success was tied to the framework, and as a user of the framework,

00:04:28: that of course gives me some, well, some security that it will be developed.

00:04:34: So that was huge. And then there was another huge advantage. Laravel,

00:04:39: or two actually, Laravel was beautiful code, at least in my opinion.

00:04:44: And I say that as somebody who is not a big fan of PHP when it comes to

00:04:50: the beautifulness of the code. And that's of course totally subjective.

00:04:53: But Laravel, of course, is and was a PHP framework, and it made

00:04:59: writing code so beautiful and nice because of what it built on top of that

00:05:05: PHP language. And PHP, of course, that is another advantage, was and still

00:05:11: is one of the main languages the internet, also thanks to WordPress,

00:05:16: of course. Now the question is how that will change now with agents.

00:05:20: I don't believe WordPress really has a right to be there going forward,

00:05:25: as many things don't, but that is a different question.

00:05:29: But PHP, of course, was a core building block of the internet and still is.

00:05:34: So using PHP was another advantage, and making it beautiful to work with

00:05:39: that was also amazing. It had great developer experience. Laravel for PHP

00:05:43: offered a great developer experience, and that was another huge advantage.

00:05:49: Now, fast forward to today, and things look quite different,

00:05:54: as I mentioned initially. And that is what leads us to Laravel Rust. Nowadays,

00:06:00: of course, as developers, we should be working with coding agents.

00:06:04: And we're not really writing code anymore.

00:06:07: So does it matter if the code is beautiful?

00:06:10: If you have a syntax that you find easy to write? I would say it does not matter.

00:06:16: It does not matter anymore. Hence what I mentioned about this Effect course,

00:06:20: and in general, how I try to teach things, it's no longer about the exact code,

00:06:26: it's about understanding what a certain framework gives you,

00:06:30: which building block it offers, which advantages it offers.

00:06:33: It's about understanding how you may want to prompt

00:06:35: your agent to use something or which features to use.

00:06:38: It's more about the architecture and the systems design and making these decisions.

00:06:43: And I've shared that in countless other videos at a talk at CityJS where I

00:06:48: shared a slide how our role is changing and how we become decision makers.

00:06:52: That is what matters. And yes, you need to understand what a framework or

00:06:57: a library offers and what its ideas are in order to make those decisions,

00:07:02: starting with the decision which tech stack to use.

00:07:05: You need to understand what you're working with.

00:07:08: Will you need to understand that in 10 years? I don't know, but right now you do.

00:07:13: But the syntax, the details, not so important.

00:07:16: What is important, though, or what finally becomes possible,

00:07:21: you could say, thanks to AI, is focusing on other things like performance.

00:07:26: And Rust has been gaining attention and popularity over the last years,

00:07:32: steadily, even before AI agents became such a thing.

00:07:37: Because Rust brings a lot of useful things to the table.

00:07:41: Performance, memory safety, quite an active ecosystem,

00:07:46: and a syntax that divides people. Some find it beautiful,

00:07:51: some find it ugly. It's definitely a language that can be challenging to learn,

00:07:56: I would say. And it's way more fragmented, of course.

00:07:59: You can combine 10 different Rust libraries to build a web application,

00:08:04: but you have to hope that all of them stay maintained.

00:08:07: Now, with AI agents, a lot of that pain is going away. And finally, we can

00:08:13: focus on picking the tech stack that gives us two important things.

00:08:19: One is great performance. Well, it's not just these two things, it's all,

00:08:24: of course, other things like being maintained, security, and so on.

00:08:27: But two things that were a bit harder in the past, let's say.

00:08:30: Performance is one of them. We used Laravel for PHP because of all

00:08:36: these reasons I outlined, but performance was not one of them.

00:08:39: PHP is not one of the most performant languages. By the way,

00:08:42: TypeScript isn't either, right? So that too is something you can question.

00:08:47: Now, what Effect, for example, gives you, coming back to my favorite framework here,

00:08:52: is not the best performance because TypeScript doesn't have it,

00:08:56: but it gives you an approach to building programs that makes it

00:09:01: harder for agents and AI to write bad code. And that matters too.

00:09:06: Again, that may not matter in a couple of years,

00:09:09: we don't know, but right now it matters a lot.

00:09:12: Having a tech stack that keeps your agent on track and that gives you the confidence

00:09:18: that the code you're operating on is good and works,

00:09:23: and the agent writes code you want it to write, that is worth a lot.

00:09:28: Because right now, even though AI, of course, is very, very good already,

00:09:32: not everything it does is great, and it could have a tendency

00:09:36: to pile up a bunch of patches in order to make something work.

00:09:39: And I rather have a foundation on which AI can build up on that kind of forces

00:09:45: it to write good clean code. And Effect is one core building block here.

00:09:48: And it's the same, of course, with Laravel. Laravel for PHP and Rust.

00:09:53: Because, as I mentioned, this is such a complete framework with such hard,

00:09:58: clear rules regarding how to build your application,

00:10:03: how to structure it, how different pieces work together.

00:10:06: This is perfect for agents. This was already pretty good for humans.

00:10:10: It's perfect for agents. This is what you want.

00:10:14: You have something where agents can find pretty much everything they need.

00:10:17: You have that maintenance and everything I mentioned, and you have something

00:10:21: that keeps on track and that kind of forces agents to write good code.

00:10:26: And that's true for Laravel for PHP too. It's even more true for Laravel for Rust,

00:10:32: because you get the same advantages, but now you also get the performance.

00:10:36: And this is why this is such a huge tool, but also why it's not a

00:10:39: framework built for you or me. Laravel Rust, despite having, of course,

00:10:44: because this is important to Taylor, I know, it has amazing documentation.

00:10:51: But let's be honest, you're not going to read that.

00:10:55: Only a few humans are going to read that. This documentation is for agents.

00:10:59: This documentation is not for you and me. This framework is not for you and me.

00:11:05: This framework is for you to make the decision that you want to use it,

00:11:09: but then it's for your agent to use it.

00:11:11: And that is why I think it's such a huge thing, because it's the, I would say,

00:11:16: first major framework, or built by someone who had a huge impact on the

00:11:22: entire web development ecosystem in the past, that is built only for agents.

00:11:28: Now I do agree, Laravel for PHP is not going to go anywhere for now,

00:11:34: but I'm sure Laravel Rust will be the future if you want

00:11:39: to use Laravel and if you're starting a new project.

00:11:43: Because I don't see a lot of reasons for using Laravel for PHP,

00:11:47: except for maybe the ecosystem. But then again, let's face it,

00:11:51: if something's missing, agents can build that for you.

00:11:53: They can build up on that foundation, Laravel Rust gives you.

00:11:56: And if I were to start a new project using Laravel with Rust would

00:12:01: be one option I would take a look at, even though it's brand new,

00:12:04: even though I haven't built anything with it, but I trust Taylor enough that it

00:12:08: is a good framework, that it's not full of bugs, that it has a high quality,

00:12:13: and that it forces agents to write code I want them to write,

00:12:17: and then I gain all these advantages I have with Rust.

00:12:21: So this is pretty interesting and I believe worth a closer look if

00:12:26: you're looking for a tech stack or a solution for future projects.

New comment

Your name or nickname, will be shown publicly
At least 10 characters long
By submitting your comment you agree that the content of the field "Name or nickname" will be stored and shown publicly next to your comment. Using your real name is optional.