This commit adds functionality for creating widget of whatever type. Controller calls widget admin handler, which renders and handles input form.
19 lines
284 B
PHP
19 lines
284 B
PHP
<?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'
|
|
];
|
|
}
|
|
}
|