This commit is contained in:
Tokumeikoi 2020-01-30 19:59:06 +08:00
parent 6cf3b73da2
commit 50ffdd9db9

View File

@ -12,7 +12,9 @@ class NoticeController extends Controller
public function fetch(Request $request) public function fetch(Request $request)
{ {
return response([ return response([
'data' => Notice::orderBy('created_at', 'DESC')->get() 'data' => Notice::orderBy('created_at', 'DESC')
->limit(5)
->get()
]); ]);
} }
} }