forked from admin/services_core
ticker work proses
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Ticket;
|
||||
|
||||
use Illuminate\Contracts\Validation\ValidationRule;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ReassignTicketRequest 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<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'technicians' => 'required|array|min:1',
|
||||
'technicians.*' => 'integer',
|
||||
'leader_id' => 'required|integer'
|
||||
];
|
||||
}
|
||||
|
||||
public function messages(): array
|
||||
{
|
||||
return [
|
||||
'technicians.required' => 'Daftar teknisi wajib diisi',
|
||||
'technicians.array' => 'Format teknisi harus array',
|
||||
'leader_id.required' => 'Leader teknisi wajib dipilih'
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user