FEATURE: add functionality for creating new widget.

This commit adds functionality for creating widget of whatever type. Controller calls widget admin handler, which renders and handles input form.
This commit is contained in:
Michal Kváček
2016-02-15 12:19:54 +01:00
parent 043c842aef
commit ccc2d918c9
8 changed files with 289 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Http\Requests;
class NewWidgetRequest extends Request
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required'
];
}
}