A look at what is coming to Laravel 9
🌎PHP 8 is the minimum version in Laravel 9
Since Laravel 9 will require Symfony 6.0 and it has a minimum requirement of PHP 8 that means Laravel 9 will carry this same restriction.
For more details: https://t.co/1NwQOAhKxw
#Laravel#query
🔴How to filter route list in Laravel ?
⭐filter by method
✔php artisan route:list --method=post
⭐filter by name
✔php artisan route:list --sort=name
⭐filter by method & name
✔php artisan route:list --method=post --sort=name
#laravel#routes#php
For our Laravel based applications, we are using both approaches as we see appropriate. We should use Laravel’s Eloquent for UI forms to process a single record and use DB methods to retrieve data for UI tables, export tasks, etc.
Thread about Eloquent and Query builder
Laravel Eloquent — Why use eloquent to decrease performance?
eloquent is Laravel’s implementation and comes with all its strengths and weaknesses.
Eloquent is a good solution for processing a single entity in a CRUD manner
#Laravel
Many developers know withCount() in Laravel, not not everyone know Laravel 8+ new aggregations withAvg, withSum and others. Here's a demo video from my course: https://t.co/D9rjjtljhk
🔥Another amazing #Laravel feature!🔥
We often write if statements to check if a value is present on a request or not.
You can simplify it with the whenFilled() helper.
👋If you find this useful, consider clicking the button that says Retweet. It's a very cool button!