mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	update plan fetch
This commit is contained in:
		| @@ -22,6 +22,10 @@ class PlanController extends Controller | ||||
|             DB::raw("count(*) as count") | ||||
|         ) | ||||
|             ->where('plan_id', '!=', NULL) | ||||
|             ->where(function ($query) { | ||||
|                 $query->where('expired_at', '>=', time()) | ||||
|                     ->orWhere('expired_at', NULL); | ||||
|             }) | ||||
|             ->groupBy("plan_id") | ||||
|             ->get(); | ||||
|         $plans = Plan::orderBy('sort', 'ASC')->get(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user