mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update: add coupon and notice switch
This commit is contained in:
		| @@ -13,7 +13,8 @@ class NoticeController extends Controller | ||||
|     { | ||||
|         $current = $request->input('current') ? $request->input('current') : 1; | ||||
|         $pageSize = 5; | ||||
|         $model = Notice::orderBy('created_at', 'DESC'); | ||||
|         $model = Notice::orderBy('created_at', 'DESC') | ||||
|             ->where('show', 1); | ||||
|         $total = $model->count(); | ||||
|         $res = $model->forPage($current, $pageSize) | ||||
|             ->get(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user