Skip to content

Commit

Permalink
close #1303 Fixed: Add new widget not check request
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Feb 26, 2020
1 parent 05f1a8e commit 4148d0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Http/Requests/Common/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public function authorize()
*/
public function rules()
{
return [];
return [
'dashboard_id' => 'required|integer',
'name' => 'required|string',
'class' => 'required',
];
}
}

0 comments on commit 4148d0c

Please sign in to comment.