[00:00]
Laravel 13 is due out next month,
[00:04]
so just around the corner.
[00:06]
Today, let's talk about some of
[00:08]
the new features that
[00:09]
are coming to Laravel 13.
[00:11]
So far, not much has actually been said.
[00:16]
The reason why is because I feel
[00:18]
like Laravel has been
[00:19]
focused on all these other areas,
[00:21]
so the framework really
[00:22]
hasn't needed to change much.
[00:24]
We've got the Laravel AI SDK,
[00:27]
the Laravel Boost, Laravel MCP.
[00:30]
We've got all these new tools that are
[00:33]
not technically part of the framework,
[00:36]
so they've been built
[00:38]
and they're awesome,
[00:40]
but they're on their own
[00:41]
repos and everything else.
[00:43]
So the framework itself,
[00:45]
now version 13 is pretty stable,
[00:48]
so it's not needing a ton of changes.
[00:52]
Laravel 13 is going to be
[00:55]
a basic upgrade, I believe,
[00:58]
but it's not due out till next month,
[01:00]
so there's still time
[01:01]
for stuff to change,
[01:02]
so who knows what's going to happen.
[01:04]
But as of today,
[01:05]
let's go through and look
[01:07]
at everything we know so far.
[01:09]
So first up, the big
[01:12]
feature is PHP Attribute Support.
[01:16]
Taylor made a tweet about this,
[01:18]
and one of the important things
[01:21]
is it's non-breaking.
[01:23]
So you're not going to
[01:25]
have to do anything here,
[01:26]
but you'll have those features
[01:29]
in Laravel 13, which is nice.
[01:32]
What's cool though is if
[01:33]
you look at the examples,
[01:34]
eloquent models, you
[01:35]
can define the table,
[01:37]
the hidden, the fillable,
[01:38]
all that right as attributes,
[01:41]
versus the way we do
[01:42]
it now as properties.
[01:46]
Here is the available model attributes,
[01:49]
there's a whole bunch of them.
[01:50]
But it doesn't end with eloquent,
[01:52]
it works off of queue
[01:53]
jobs, console commands,
[01:56]
and it says other
[01:58]
components, form request,
[02:01]
API resources,
[02:02]
factories, and test-seaters.
[02:04]
So we're getting
[02:04]
those kind of everywhere,
[02:05]
which I think is going to
[02:06]
be awesome as we progress
[02:09]
as a community and sort of
[02:10]
switch from those properties
[02:11]
over to these.
[02:14]
Outside of that,
[02:16]
a cache-touch method that
[02:20]
extends a cache item's time
[02:22]
to live without fetching
[02:23]
or restoring the value.
[02:25]
Here's some examples, extend by seconds,
[02:28]
you can just
[02:29]
cache-touch this user session
[02:30]
for 3,600 seconds,
[02:33]
you can actually
[02:33]
extend it with a date time,
[02:36]
which works off of the carbon instance,
[02:39]
and you can even extend it indefinitely.
[02:43]
So that's kind of cool.
[02:45]
And then the final thing, PHP 13,
[02:47]
I mean, Laravel 13 will require PHP 8.3
[02:50]
as the minimum version,
[02:52]
but that is the minimum version,
[02:55]
but as a developer, you
[02:58]
should always run the latest.
[03:01]
You should be running up to
[03:02]
the latest version of PHP,
[03:04]
that's out, because that
[03:05]
gives you all the security fixes,
[03:07]
all the bug fixes, all the other things.
[03:09]
And the same way with Laravel,
[03:12]
some people want to run a year behind,
[03:14]
but of course, I always
[03:15]
recommend running the latest,
[03:17]
and not only for the bug fixes,
[03:19]
but any security thing, anything else,
[03:22]
just the latest is always
[03:23]
sort of the way to go with this.
[03:25]
So coming up next
[03:27]
month, I say next month,
[03:29]
coming up in like a week
[03:30]
and a half, is Laricon EU.
[03:33]
And Laricon News, we are
[03:35]
gonna be an official partner
[03:37]
of Laricon EU 2026,
[03:39]
and we're actually gonna
[03:39]
run the live stream live
[03:41]
on the Laricon News website.
[03:43]
So we have a little
[03:44]
registration page here,
[03:46]
it's larvel-news.com slash laricon-eu.
[03:53]
And the only, it's free,
[03:55]
but we have the register up,
[03:57]
that way you can throw your email in,
[03:59]
and I'm gonna email you next
[04:00]
week when I get the page live,
[04:02]
that way I'll send you the
[04:03]
link to the location of it,
[04:06]
so you can go watch it.
[04:07]
Of course, you don't have to
[04:08]
do this, it doesn't matter.
[04:09]
We'll have a big banner on the website,
[04:12]
the day of the event
[04:13]
with a link over to it.
[04:17]
But from there, as part of the schedule,
[04:20]
the first day, the last talk is Taylor
[04:23]
giving a Larvel update,
[04:25]
and he will go through,
[04:27]
you know, some of the Larvel 13 stuff,
[04:29]
but also some of the other new stuff
[04:31]
that they've been working on.
[04:32]
So you'll definitely
[04:32]
wanna tune into that.
[04:34]
I think it's gonna be great.
[04:35]
Again, this is coming, what is the dates?
[04:38]
This is coming next week,
[04:40]
and I think it's March 1st
[04:41]
and 2nd is the actual dates.
[04:45]
So tune into that and get ready to
[04:48]
upgrade to Larvel 13.
[04:51]
You know, if you're dreading the upgrade,
[04:52]
there's always Larvel Shift.
[04:55]
You know, it's probably the easiest,
[04:57]
most straightforward
[04:58]
way to update Larvel.
[05:00]
You can just, you
[05:01]
know, give it your repo,
[05:02]
it'll send you a ton of pull
[05:03]
request with all the features.
[05:05]
The great thing though is
[05:07]
it actually goes through
[05:09]
and like those attributes,
[05:13]
they're a non-breaking change,
[05:14]
but I guarantee you Shift will go ahead
[05:16]
and move your code to those.
[05:18]
That way you're ready for, you know,
[05:20]
the next major version,
[05:21]
which will be 14 in 2027.
[05:24]
Go check out all that stuff.
[05:25]
So sign up for Laricon EU livestream,
[05:27]
check out Larvel Shift
[05:28]
and tune in to Taylor's talk
[05:31]
when it happens live on
[05:33]
the first day of Laricon EU.
[05:37]
So I hope you have a great day.
[05:38]
Get ready for this update
[05:39]
and we will talk to you soon.