creat controller model,migration,factory,sedder.request resourse,web for 4item . such as event call,callhistory,category

This commit is contained in:
2025-04-29 16:50:55 +03:30
parent 01eaed4bb2
commit 46c7c11260
23 changed files with 892 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests\Call;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class StoreRequest 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, ValidationRule|array|string>
*/
public function rules(): array
{
return [
'telephone_id' => 'required|string|exists:users,telephone_id',
'caller_phone_number' => 'required|numeric|regex:/^09\d{9}$/',
];
}
}