⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.31
Server IP:
95.217.99.93
Server:
Linux sv1.sonichosted.com 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifestylescentra
/
www
/
app
/
Http
/
Requests
/
View File Name :
AttributeRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class AttributeRequest 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 [ 'name' => 'required|string|max:255|unique:attributes,name,' . $this->attribute, 'slug' => 'required|string|max:255', 'values' => 'array', 'values.*' => 'string|max:255', ]; } /** * Get the error messages for the defined validation rules. * * @return array<string, string> */ public function messages(): array { return [ 'name.required' => 'Name is required', 'name.unique' => 'Name is already exists', 'slug.required' => 'Slug is required', 'values.array' => 'Values must be an array', 'values.*.string' => 'Values must be a string', ]; } }