Files
backend_vib360_laravel/app/Http/Requests/CreateAssetRequest.php

40 lines
1.2 KiB
PHP
Raw Normal View History

2025-03-20 11:52:34 +05:30
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateAssetRequest 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 [
2025-03-27 15:26:26 +05:30
// 'id' => 'required|uuid',
2025-04-15 13:42:38 +05:30
// 'entity_type' => 'required|string|in:ASSET',
// 'created_time' => 'required|integer',
2025-03-27 15:26:26 +05:30
// 'tenant_id' => 'required|uuid',
2025-03-20 11:52:34 +05:30
'customer_xid' => 'required|uuid',
'name' => 'required|string|max:255',
2025-04-15 16:27:43 +05:30
// 'type' => 'required|string|max:255',
2025-03-20 11:52:34 +05:30
'label' => 'nullable|string|max:255',
2025-03-27 15:26:26 +05:30
// 'asset_profile_id' => 'required|uuid',
2025-04-15 16:27:43 +05:30
// 'external_id' => 'nullable|uuid',
// 'version' => 'nullable|integer|min:1',
'additional_info' => 'nullable|json',
2025-03-20 11:52:34 +05:30
];
}
}