change the migration columns and add form request

This commit is contained in:
2024-11-03 06:26:26 +00:00
parent e9098b0a55
commit 1a15a5d7ed
16 changed files with 444 additions and 66 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Http\Requests\V3\AzmayeshSample;
use Illuminate\Foundation\Http\FormRequest;
class UpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'azmayesh_id' => 'required|exists:azmayeshes,id',
'data' => 'required',
];
}
}