|string> */ public function rules(): array { return [ 'name' => 'required|string|max:255', ]; } /** * Get custom messages for validator errors. */ public function messages(): array { return [ 'name.required' => 'Nama diperlukan.', 'name.max' => 'Nama tidak boleh melebihi 255 aksara.', ]; } /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } }