Snippets | Suman Shrestha
Learn how to create powerful query scopes in Laravel for filtering and searching your data
Using scopes to add data with sub select
Learn how to use PHP query scopes in Laravel
Learn how to use HTTP pool in Laravel for efficient HTTP requests handling
Laravel 11 introduces a new `casts()` method for Eloquent models, offering a more flexible and dynamic approach to attribute casting. This enhancement allows developers to utilize static methods with parameters, providing greater control over how attributes are cast.
Sure! Here's a blog post explaining the new `before` and `after` methods introduced in the `Collection` and `LazyCollection` classes in Laravel.---
Optimization in Laravel using toBase
Explore best practices for testing in Laravel using assertion methods for debugging, interface implementation, suffix verification, and strict typing.
Learn why `php artisan test` slows down when optimized and how to manage it.
I don't need to get to heaven. I'm here now.
- Thomas Shelby
Need one on one help with Laravel and its ecosystem?