Vigyata.AI
Is this your channel?

New Way To Load Components - 3 New Things Added - New in Laravel 9.45.0

2.9K views· 79 likes· 6:04· Dec 21, 2022

🛍️ Products Mentioned (6)

Here, we will be looking at 3 new things that are added to the latest version of Laravel which is v9.45.0 === OFFER === GET 30% DISCOUNT ON ALL PLANS OF CLOUDWAYS HOSTING FOR 3 MONTHS https://unified.cloudways.com/signup?id=1029148&coupon=CW30FOR3 === Important Links === Fonts, extensions I use, and Support Laratips links: https://bit.ly/m/laratips === Video Related Links === 00:00 Intro 00:08 Anonymous component paths https://github.com/laravel/framework/pull/45338 03:08 Add decimal validation rule https://github.com/laravel/framework/pull/45356 04:35 Add whereUlid(param) support for routing https://github.com/laravel/framework/pull/45372 === Other Videos === What's New In Laravel 9 https://youtu.be/qAzrZUG_9Z0 New In Laravel Playlist https://www.youtube.com/playlist?list=PL2DahmvUpeuu4UVWrcxlvVkMiI0SeS2OZ Laravel Package Development Playlist https://www.youtube.com/playlist?list=PL2DahmvUpeuu8HkpbNT-cKernolVdqZq_ Password Validation In Laravel with at least one Letters, Numbers, Upper and Lowercase or Symbols: https://youtu.be/f-g3P9imPZs Multiple Apis With ForwardsCalls Trait And Code Refactoring Tip - Laravel Hidden Feature: https://youtu.be/vzgNm86ezWE Laravel Chunking - You Might Be Doing This Wrong - Problem and Solution: https://youtu.be/aQCHmB4Uh0Q Laravel Tip - Properly Get Data Between Two Dates https://youtu.be/bJkEBTg1NGA Get Data From Multiple Databases In One Project | Laravel Tip https://youtu.be/KJAXLf78QPs === Attribution === Boy waving hand Video by VideoPlasty .com from Pixabay https://pixabay.com/users/videoplasty-19751245/?utm_source=link-attribution&utm_medium=referral&utm_campaign=video&utm_content=80696 #laravel #php #laraveltip #laratips #newinlaravel

About This Video

Hey guys, welcome to Laratips. In this video I’m covering 3 new things added in Laravel v9.45.0, and they’re actually pretty practical updates you can use right away. First up is the new `anonymousComponentPath()` method for Blade. Previously, we were limited to registering anonymous components only from inside the `resources/views` directory using the namespace method. Now I can point Laravel to literally any folder in my app—like a custom `app/Domain/Packages/.../Components` folder—and Laravel will discover those Blade components from there. I also show how to avoid naming conflicts by passing a second argument (a namespace). That way you can call components like `x-laratips::container` instead of colliding with your default `resources/views/components` folder. And you’ll notice the old method is removed from the docs, which basically tells you the team wants us to use this new one going forward (this one was contributed by Taylor Otwell). After that, I jump into the new `decimal` validation rule. I tested exact decimal places like `decimal:2`, and also ranges like `decimal:1,2` (or even `1,3`). Finally, I show the new `whereUlid()` route constraint—same idea as `whereUuid()`, but for ULIDs—so your routes only match valid ULID strings and return 404 for random values.

Frequently Asked Questions

🎬 More from Laratips