Vigyata.AI
Is this your channel?

New Pipe Method On Process Facade - 4 New Things Added - New in Laravel 10.9.0

1.5K views· 43 likes· 3:50· May 1, 2023

🛍️ Products Mentioned (8)

Here, we will be looking at 4 new things that are added to the latest version of Laravel which is v10.9.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 === https://github.com/laravel/framework/compare/v10.6.0...v10.9.0 00:00 Intro 00:19 Add caseSensitive flag to Stringable replace function https://github.com/laravel/framework/pull/46527 01:36 Add Storage::json() method to read and decode a json file https://github.com/laravel/framework/pull/46745 01:56 Allow specifying index name when calling ForeignIdColumnDefinition@constrained() https://github.com/laravel/framework/pull/46746 02:33 Add new HTTP status assertions https://github.com/laravel/framework/pull/46841 02:55 Cloudways Sponsorship === Other Videos === 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

In this video I’m covering what’s new in Laravel v10.9.0 (coming from around 10.7 to 10.9), and I’m focusing on the changes that actually make your day-to-day dev work cleaner. The first big one is the new pipe method on the Process facade. Before, you could run a command like `ls -la` and get the output, but you couldn’t easily “chain” another command on top of it. Now I can pipe the output into something like `grep composer` so I only see what I care about (like `composer.json` and `composer.lock`). Then I show the syntax sugar for the same Process piping feature: instead of writing a closure, you can pass an array of commands, and it’s just much more cleaner and easy to use. After that, I go over a small but super useful migration improvement: when you call `constrained()` on a foreign id, you can now specify the index name (using the third parameter) which wasn’t possible with the newer syntax before. Finally, Laravel added convenient HTTP status assertions like `assertGone()`, `assertInternalServerError()`, and `assertServiceUnavailable()` so you don’t have to remember and compare raw status code numbers in tests.

Frequently Asked Questions

🎬 More from Laratips