Update Pricing.php
Updated allPricing() to only be for active services, changed its cache name so this will instantly populate and work
This commit is contained in:
parent
0aeb38d516
commit
171eb63b9a
|
@ -143,8 +143,8 @@ class Pricing extends Model
|
|||
|
||||
public static function allPricing()
|
||||
{
|
||||
return Cache::remember('all_pricing', now()->addWeek(1), function () {
|
||||
return Pricing::get();
|
||||
return Cache::remember('all_active_pricing', now()->addWeek(1), function () {
|
||||
return Pricing::where('active', 1)->get();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user