[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
surat
/
app
/
Http
/
Requests
/
[
Home
]
File: StoreClassificationRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class StoreClassificationRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } public function attributes(): array { return [ 'code' => __('model.classification.code'), 'type' => __('model.classification.type'), 'description' => __('model.classification.description'), ]; } /** * Get the validation rules that apply to the request. * * @return array<string, mixed> */ public function rules(): array { return [ 'code' => ['required', Rule::unique('classifications')], 'type' => ['required'], 'description'=> ['nullable'], ]; } }