Chaining "Where" conditions using dynamic methods
Laravel Eloquent can chain "where" conditions using dynamic/magic methods to fetch entries:
Order::whereMethodAndStatus('card', 'paid')->get();
// before
Order::where('method' 'card')
->where('status', 'paid')
->get();
// after
Order::whereMethodAndStatus('card', 'paid') ->get();