|
@@ -112,7 +112,7 @@ class LibraryController extends Controller
|
|
|
$libraries = Library::query()
|
|
|
->allowed()
|
|
|
->where("type", $type)->when($where, fn($query) => $query->where($where))
|
|
|
- ->get(['id', 'name'])
|
|
|
+ ->get(['id', 'name', 'created_at', 'updated_at'])
|
|
|
->each(function ($libraries) {
|
|
|
// 设置固定的type值
|
|
|
$libraries->type = 'library';
|