Merge pull request #338 from lbausch/discussion_validation

Add validation to limit discussion title length
This commit is contained in:
Toby Zerner 2015-08-29 18:58:42 +09:30
commit 4033319ed0

2
src/Core/Discussions/Discussion.php Executable file → Normal file
View File

@ -46,7 +46,7 @@ class Discussion extends Model
* @var array
*/
protected $rules = [
'title' => 'required',
'title' => 'required|max:80',
'start_time' => 'required|date',
'comments_count' => 'integer',
'participants_count' => 'integer',