Laughter Logs ๐
Release Versionology ๐ค
Welcome, brave coders! This is where we break down the nitty-gritty details of our versioning scheme. You know, for those who enjoy a good number crunch and canโt resist the thrill of deciphering release codes like some sort of software detective ๐ต๏ธโโ๏ธ.
Support Policy ๐ค
Ah, our support policy! The heart and soul of Laravelโs customer service. Here we lay down the ground rules for how weโll help you navigate through this beautiful journey together โค๏ธ. Keep in mind, our support team is like a trusty sidekick - always there when you need them, but not about to babysit your every move ๐.
Laravel 13 ๐
And now, folks, we present to you the latest addition to our superhero roster - Laravel 13! With new features thatโll make your coding heart skip a beat and performance enhancements thatโll make your server grin ear-to-ear, this release is sure to leave an indelible mark on web development history ๐ฅ.
So sit back, relax, and let the code flow! Weโve got your back, and we canโt wait to see what amazing things youโll create with Laravel 13 ๐!
The Laravel Versioning Jamboree! ๐๐
Get ready for the wild ride that is Laravel versioning! Just like a circus, weโve got acts coming up every year (around Q1) with our major framework releases. But donโt worry, unlike clowns, we wonโt disappear and leave you hanging - these are our BIG TOP shows! ๐ช
Now for the supporting acts - minor and patch releases. These little stars perform weekly, bringing updates and improvements to keep our big show running smoothly. And hereโs the best part: Unlike those sleight-of-hand magicians who make you think theyโve taken something away, we promise these smaller releases will never introduce any breaking changes! ๐
So when it comes to referencing Laravel or its friendly sidekicks (a.k.a components) in your application or package, remember to use a version constraint, like ^13.0. This will ensure that you and your code are on the same page, even during our major releases where some old routines may be replaced with new, improved ones! ๐บ๏ธ
But donโt fret - weโre committed to ensuring that moving up to a new major release is as effortless as a magician pulling a rabbit out of a hat. You can update in one day or less and continue the show without missing a beat! ๐ฐโจ
Ah, the delightful world of Named Arguments! A veritable smorgasbord for those who fancy themselves as avant-garde PHP coders. But beware, dear Laravel traveler, for these arenโt your garden-variety arguments. Theyโre not even your posh, black-tie affairs. Oh no, theyโre the glamorous, jet-setting celebrities of the function world!
In Laravelville, named arguments are a bit like those boldface names who can show up at any event, in any order, and still be recognized by the paparazzi (or in this case, the PHP interpreter). But, as with Hollywood, change is constant. The siren call of code optimization may lure our developers into renaming these stars, so when calling Laravel methods, tread carefully!
Remember, itโs a bit like inviting your eccentric, rearrange-the-furniture-at-will friend over for dinner. You might think youโve invited Cheese before Wine, but they could just as easily arrive in the opposite order. And while we appreciate your adaptability, itโs best to expect the unexpected when dealing with named arguments.
In a nutshell: Named arguments are here to add a touch of pizzazz to your Laravel functions, but donโt be surprised if they decide to switch dance partners one day! ๐๐บ
Laravel Support Policy: A Tale of Updates, Fixes, and Good Times! ๐๐
Welcome to the Laravel Support Party Central! Hereโs a fun rundown of when weโll be dropping bug fixes and security patches like itโs hot. ๐ฅ๐
Laravel Releases: The Fix-a-Palooza ๐ง๐ค
For each Laravel release, we guarantee bug fixes for a whopping 18 months! And for your peace of mind, security fixes are on the menu for a generous 2 years. Itโs like having your very own tech support squad, minus the pesky overtime charges. ๐ฐ๏ธ๐ฐ
But, remember: only the coolest, latest major release gets all the love when it comes to additional libraries. You know what they say - โTreat โem mean, keep โem keen!โ
Database Version Support: Letโs Get Connected! ๐ค๐ป
Now, letโs not forget about our database buddies. Check out the database versions that we heartily support, because a happy Laravel needs a happy DB!
The Time Table: When to Expect Updates ๐ฐ๏ธ๐
Hereโs a fun table to help you plan your Laravel updates and parties! (Because who doesnโt love a good party?)
| Release Name | PHP (*) | Launch Date | Bug Fixes Until | Security Fixes Until |
|---|---|---|---|---|
| Lara-Love | 8.1 - 8.3 | Valentineโs Day, 2023 | Summer Solstice, 2024 | New Yearโs Eve, 2025 |
| Laravel XIII | 8.2 - 8.4 | St. Patrickโs Day, 2024 | Halloween, 2025 | St. Patrickโs Day, 2026 |
| Lara-Luxe | 8.2 - 8.5 | Valentineโs Day, 2025 | Summer Solstice, 2026 | New Yearโs Eve, 2027 |
| Laravel XIV | 8.3 - 8.5 | St. Patrickโs Day, 2026 | Q3 2027 | St. Patrickโs Day, 2028 |
(*) Supported PHP versions
So grab your popcorn and get ready for a rollercoaster ride of updates! And remember: with Laravel, youโre never left high and dry - weโve got your back (and your databases) covered. ๐ข๐ญ๐
Alrighty then! Buckle up, coders! Laravel 13 is here to rock your world with its spiffy new features, all while keeping the annual release tradition alive like a well-oiled robot at a disco. This time around, weโre serving up AI-native workflows, stronger defaults thatโll make your grandmaโs knitting look amateurish, and developer APIs so expressive they could give Marlene Dietrich a run for her money!
First off, weโve sprinkled in some first-party AI primitives thatโll make you feel like a digital Sherlock Holmes. No more guesswork or googling for hours on end โ our smart AI will help you solve cases faster than Columbo could say โJust one more thingโฆโ
Next up, weโve got JSON:API resources thatโll have you feeling like Tony Stark when he first donned his Iron Man suit. Theyโre sleek, powerful, and ready to conquer the vast digital universe.
Weโve also added semantic/vector search capabilities that make Googleโs algorithm look like a calculator from the 1800s. Say goodbye to endless scrolling and hello to finding exactly what you need with a single query.
Finally, there are incremental improvements across queues, cache, and security thatโll make your life easier than watching paint dry on a wall. Theyโre the unsung heroes of this release โ working tirelessly behind the scenes so you can focus on more important things (like perfecting your cat meme collection).
So gear up, dear developers! Laravel 13 is here to make your coding life a breeze, or at least as breezy as it can be when dealing with servers and databases. Happy coding!
Alright, folks! Buckle up, because weโve got some exciting news that wonโt buckle your code! After a tireless year of behind-the-scenes tinkering and under-the-hood polishing, weโre proud to present Laravel 13 โ the upgrade thatโs as easy on your application as a well-timed dad joke is on your nerves.
Fear not, breakers of the internet! Weโve been diligently minimizing those pesky breaking changes, so you can focus on building awesome things without having to rebuild them entirely. Our mission? To deliver a steady stream of life-enhancing updates throughout the year that leave your existing apps unscathed and ready for their close-ups.
So, what does this mean for you and your trusty Laravel sidekick? Well, upgrading to Laravel 13 is about as much work as teaching a cat to play the harmonica โ relatively minimal effort, but still delivers a surprising amount of new tricks!
Now, grab your popcorn and dive into the goodies weโve cooked up for you in this release. But first, a quick detour through the world of PHP 8โฆ
PHP 8 Compatibility
Yes, you read that right! Laravel 13 plays nicely with PHP 8, meaning you can enjoy all the sweet performance improvements and shiny new features that come with it. Donโt worry, we wonโt force you to dance with PHP 8 just yet โ but when youโre ready to hit the dance floor, weโll be there with bells on (or rather, with improved code execution speeds).
So go ahead and prepare your applications for a smooth upgrade to Laravel 13. With minimal effort, youโll unlock a world of new possibilities, without having to say goodbye to your favorite cat videos!
Long live the harmony of cats and harmonicas โ and long live Laravel!
Ahoy there, Laravel adventurers! Listen up, as we embark on a journey thatโs smoother than Captain Jackโs sea shanties and more exciting than a treasure chest full of code gold: Laravel 13.x! But before we set sail, letโs ensure our ship is in tip-top shape by checking the minimum requirements.
First things first: itโs time to upgrade your PHP version to a sprightly 8.3! Yep, you heard that right - no more creaky old ships for us! This shiny new PHP version will power your Laravel app faster than a bottle of Kraken rum at a pirate party.
Now, before you start hoisting the mainsails and swabbing the decks, remember to update your composer.json file with the latest Laravel package versions. Itโs like applying fresh tar and feathers on our ship - itโll keep the scallywags at bay!
So grab your eyepatches and buckle up for a voyage full of adventures and improved code efficiency. Happy sailing, matey! Arrrgh, Laravel 13.x awaits!
Ahoy, Laravelers! Buckle up as we embark on a fantastic voyage into the realm of the Laravel AI SDK, version 13โs piรจce de rรฉsistance! This nifty toolkit is like the Swiss Army knife of AI โ text generation, command-calling agents, embeddings, audio, images, and even vector-store integrations are all at your fingertips!
Imagine building provider-agnostic AI features without having to learn a new programming language or master a secret handshake. You can now create a basic agent with just one call:
use App\Ai\Agents\SalesCoach;
$response = SalesCoach::make()->prompt('Analyze this sales transcript...');
return (string) $response;
Thatโs right, folks! Our AI SDK is so easy to use that even a salesperson can make it work. ๐ค๐
But wait! Thereโs more! The Laravel AI SDK doesnโt just talk the talk โ it walks the walk (or rather, generates images and audio). For visual generation scenarios, our SDK offers a neat API for creating images from plain-language prompts:
use Laravel\Ai\Image;
$image = Image::of('A donut sitting on the kitchen counter')->generate();
$rawContent = (string) $image;
And for voice experiences, you can synthesize audio so lifelike that youโll think Siri and Alexa are having a friendly argument over who gets to be our AIโs BFF:
use Laravel\Ai\Audio;
$audio = Audio::of('I love coding with Laravel.')->generate();
$rawContent = (string) $audio;
Lastly, for semantic search and retrieval workflows, our SDK can generate embeddings directly from strings:
use Illuminate\Support\Str;
$embeddings = Str::of('Napa Valley has great wine.')->toEmbeddings();
In short, the Laravel AI SDK is like the dream assistant youโve always wanted โ and now itโs here to make your coding life easier (and more fun) than ever before! ๐๐๐ค๐
The Incredible Edible JSON:APIs! ๐ API! ๐ถ
Get ready to party like itโs 2016 (well, technically, you can party anytime with Laravel) because weโve got a snazzy new feature thatโll make your life a whole lot easier: First-Party JSON:API Resources! ๐๐
Now, you might be thinking, โWhat on earth is a JSON:API resource?โ Well, letโs take a little journey together and find out. Imagine if you will, a magical box filled with all the goodness of an API response thatโs been carefully crafted to comply with the enchanting JSON:API specification.
JSON:API resources are the sorcerers who wield this magic box, taking care of serializing resource objects, including relationships, serving up sparse fieldsets (just like a fancy restaurant would), linking you to other related resources, and even sprinkling in some JSON:API-compliant response headers for good measure. Itโs like having your own personal API butler, always ready to serve!
So grab a (virtual) cocktail, put on your favorite dance music, and letโs get this party started with Laravelโs brand new, first-class JSON:API Resources! ๐ถ๐
P.S. Donโt forget your request forgery protection (because nobody likes a gatecrasher at the API party)!
The Magic Shield: Laravelโs Request Forgery Protection
In the realm of digital knighthood, where trolls lurk and cookies crumble, our noble hero, Laravel, has donned an enchanted suit of armor - PreventRequestForgery. This is not your typical medieval armor; itโs a state-of-the-art security system that protects against nefarious request forgeries while maintaining perfect compatibility with token-based CSRF protection.
Now, you might wonder what this magic shield does exactly? Well, imagine if someone pretended to be you and tried to sneakily submit a form or make a secret API call. Our trusty PreventRequestForgery would catch them red-handed, verify theyโre from the right origin (not some fishy domain claiming to be your trusted friend), and chuck them back into the digital abyss from whence they came.
So, embrace the knightly spirit, Laravel style! Fortify your applications with this enchanted armor and rest assured knowing that your kingdomโs secrets are safe in these digital times. (Just remember to bake a fresh batch of cookies for your users โ you donโt want them thinking theyโre dealing with a troll!)
Queue Choreography: Laravelโs Star Turn! ๐
Ahoy there, coders! Buckle up for a jolly ride into the world of Laravel 13โs glamorous queue routing, where your jobs take center stage like never before. ๐ญ
Now, you can orchestrate your queued tasks with the grace and precision of a maestro using Queue::route(...). Itโs like having a secret directorโs chair that lets you set default queue and connection rules for specific jobs right from the heart of the spotlight! ๐ฌ
// Cue the curtain call: ProcessPodcast takes center stage on the Redis circus tent!
Queue::route(ProcessPodcast::class, connection: 'redis', queue: 'podcasts');
Now that youโve got your star performers lined up and ready to shine, letโs dive into a magical world of attributes ๐ช:
PHP Attire (Attributes) for the Stars
Just like dressing your star actors in the finest costumes, you can adorn your jobs with attributes that define their roles and responsibilities. Hereโs a quick fashion show of how itโs done:
// ProcessPodcast dons its Redis cape and joins the podcast queue line!
Queue::route(ProcessPodcast::class, connection: 'redis', queue: 'podcasts');
Remember, lifeโs a stage, and with Laravel 13โs queue routing by class, youโre the ultimate director! Now go out there and make those queues dance! ๐๐บ๏ธ๐
Laravel 13 is like the hipster kid at the coding block party, continually leveling up its PHP attribute game across the entire framework! Now, itโs easier than ever to turn your code into a declarative, colocated masterpiece that makes your old imperative programming grandpa roll his eyes in disbelief.
The fresh additions include controller and authorization attributes like #[Middleware('auth')], perfect for those times when you want to make sure Uncle Bob is logged in before he wrecks the party (your website). Or, thereโs #[Authorize('create', [Comment::class, 'post'])]โa magical spell that makes sure only authorized users can create comments on a postโjust what we need to keep Spammy McSpambot from crashing our virtual soiree!
Speaking of parties, letโs not forget about the queue-oriented job controls like #[Tries], #[Backoff], #[Timeout], and #[FailOnTimeout]. Imagine having a digital bouncer that deals with failed jobs and kicks them out when they overstay their welcome! Itโs like having the best party host everโLaravel.
But wait, thereโs more! Attributes have also been introduced in Eloquent, events, notifications, validation, testing, and resource serialization APIsโgiving you a consistent attribute-first option in more areas of the framework than a well-stocked buffet table at a networking event.
So grab your favorite drink and join the attribute party! Itโs time to let your code shine with less boilerplate and more fun. Hereโs a peek into the future:
<?php
namespace App\Http\Controllers;
use App\Models\Comment;
use App\Models\Post;
use Illuminate\Routing\Attributes\Controllers\Authorize;
use Illuminate\Routing\Attributes\Controllers\Middleware;
#[Middleware('auth')]
class CommentController
{
#[Middleware('subscribed')]
#[Authorize('create', [Comment::class, 'post'])]
public function store(Post $post)
{
// ...
}
}
Now thatโs some attribute-tacular code! ๐ฅณ๐๐ฅ
Time Travel for your Cache Items! ๐๐ฐ๏ธ
Ah, the good olโ Laravel โ where every new update is like a fresh bag of chips! And we just got a brand spanking new flavor: Cache TTL Extension! ๐
Ever found yourself in a situation where you wanted to prolong the life of an already cached item without having to re-fetch and re-store its value? Well, my friend, your wish is Laravelโs command!
Introducing Cache::touch(...) โ the magical spell that extends the TTL (Time To Live) of an existing cache item without making it leave its cozy little home in memory. Itโs like giving your cached items a fountain of youth, but without the wrinkles and awkward conversations with teenagers! ๐งโโ๏ธโจ
Now, donโt get too carried away โ just because you can, doesnโt mean you should! Prolonging cache life must be done wisely to ensure your application remains zippy and responsive. So, use this power judiciously, and may your caching adventures be fruitful and fun! ๐๐
In a daring leap forward for the search game, Laravel 13 takes semantic searching to new heights with native vector query support! Think of it like when Chewbacca finally learned how to use a computer (spoiler alert: heโs a natural).
Weโve got embedded workflows and APIs galore, all meticulously documented for your pleasure in our search, queries, and AI SDK sections. Just imagine building AI-driven search experiences with PostgreSQL + pgvector, without breaking a sweat or losing any hair (well, maybe a few extra strands).
Now, you can even perform semantic similarity searches directly from the query builder. Itโs like having Googleโs AI brain but in PHP form! Check out this example:
$documents = DB::table('documents')
->whereVectorSimilarTo('embedding', 'The finest vineyards in Napa Valley')
->limit(10)
->get();
Just remember, itโs not magic. Itโs just a super advanced algorithm that can tell the difference between โBest wineriesโ and โWorst fast food chains.โ Pretty impressive, huh? So go forth, Laravelistas, and conquer search like never before!