Skip to content

Commit e787c94

Browse files
committed
Finish 0.31.1
2 parents 3720157 + bddd188 commit e787c94

File tree

4 files changed

+3899
-9209
lines changed

4 files changed

+3899
-9209
lines changed

app/Http/Controllers/Server/LibraryController.php

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020
namespace App\Http\Controllers\Server;
2121

22+
use Carbon\Carbon;
2223
use Illuminate\Http\Request;
2324

2425
use App\Http\Requests;
@@ -125,6 +126,7 @@ public function postAdd(Request $request)
125126
$book->content = $request->input('content');
126127
$book->category = $request->input('category');
127128
$book->uploader = $request->user()->byond_key;
129+
$book->uploadtime = Carbon::now();
128130
$book->save();
129131

130132
Log::notice('perm.library.add - Book has been added',['user_id' => $request->user()->user_id, 'book_id' => $book->id]);

0 commit comments

Comments
 (0)