added install request

This commit is contained in:
Denis Duliçi
2022-02-14 18:00:44 +03:00
parent 6b10f5a200
commit a179232734
8 changed files with 111 additions and 11 deletions

View File

@ -0,0 +1,24 @@
<?php
namespace App\Http\Requests\Module;
use App\Abstracts\Http\FormRequest;
class Install extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'nullable|string',
'alias' => 'alpha_dash',
'version' => 'nullable|regex:/^[a-z0-9.]+$/i',
'installed' => 'nullable|regex:/^[a-z0-9.]+$/i',
'path' => 'nullable|string',
];
}
}