This commit is contained in:
Tokumeikoi
2020-01-30 19:57:18 +08:00
parent e963a61910
commit 6cf3b73da2
2 changed files with 2 additions and 2 deletions

View File

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