Updated project for admin panel

This commit is contained in:
2022-02-15 22:35:59 +01:00
parent 984d2eeae6
commit 282e5ccc46
13 changed files with 371 additions and 14 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ProjectRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'title' => 'required|string|min:3|max:255',
'author' => 'required|string|min:3|max:50',
'categories' => 'nullable|string',
'release_date' => 'required|date:Y-m-d',
'update_date' => 'nullable|date:Y-m-d',
'project_url' => 'nullable|string',
'project_version' => 'nullable|string',
'description' => 'nullable|string',
];
}
}