Validate post length to prevent truncation

closes #235
This commit is contained in:
Toby Zerner 2015-08-31 12:36:19 +09:30
parent 2f72ff3bc1
commit 81e0ac7f90

View File

@ -43,7 +43,7 @@ class Post extends Model
protected $rules = [
'discussion_id' => 'required|integer',
'time' => 'required|date',
'content' => 'required',
'content' => 'required|max:65535',
'number' => 'integer',
'user_id' => 'integer',
'edit_time' => 'date',