Support the ongoing development of Laravel.io →

779 Threads

posted 4 weeks ago

withValidator $validator->fails() make server slow

PHP 8.1.4 Apache/2.4.53 Laravel Framework 9.33.0 I am trying to add messages error in every valida...

0 Likes 0 Replies

Laravel: how can I return redirect()->back() with a variable

Hi, How am I able to use redirect()-> back() width a variable. I tried below code but it is not w...

0 Likes 3 Replies

Conditional Validation with dependency to other fields

I am trying to validate import data using Laravel Excel. I got through to using required_if when a f...

0 Likes 5 Replies

Get Laravel validation errors from Vue component using Ajax

Hi I am able to get all validations errors from Laravel ProductController when submitting my Vue cre...

0 Likes 0 Replies
posted 5 months ago

get all ValidatorMessage from rules

I am trying to show all possible error messages that come from the rules I created. how can i show i...

0 Likes 1 Replies
Solved

What makes the image type validation fail?

What makes the image type validation in this Laravel application fail? I am making a blogging applic...

0 Likes 3 Replies
Solved

How do I keep the value of a checkbox in an invalid form?

I am working on a Laravel 8 blogging application. The "Add article" form has a "swit...

1 Likes 12 Replies

Why does this form fail to validate?

I am making a blogging application with Laravel 8 and Bootstrap 5. I run into a problem trying to va...

0 Likes 2 Replies

How do I keep the invalid form open?

I am making a blogging application with Laravel 8 and Bootstrap 5. For adding a post I use a form pl...

0 Likes 6 Replies
Solved

What causes the data validation failure in this API?

I am working on an application consisting of a Laravel 8 API and a Vue 3 front-end. I have a registr...

0 Likes 1 Replies
Solved

laravel package

hello i install propaganistas/laravel-phone with composer on local laravel prjoject i copy vendor di...

0 Likes 0 Replies
posted 1 year ago

[Help] API Response for Validation errors \w Rule name

I'm working on a project where I provide API services for the clients / consumers. In my APIs with s...

0 Likes 2 Replies

can not insert data in database in laravel 8x

When i insert data in database with sign up register page, it shows me the same page without passing...

0 Likes 1 Replies
Solved

Define Sanctum login route in api.php or web.php?

I am manually implementing login for Sanctum SPA (AngularJS) app and based on the Sanctum documentat...

0 Likes 0 Replies

Validate API-JSON and limit input

Hi all, I am building an API for my application and I want to limit my endpoints to the JSON Data, I...

0 Likes 1 Replies

Testing validation rule exists

Hello, I have a form request class with a validation rule that looks like this 'array.*.type' =>...

0 Likes 1 Replies
posted 1 year ago

PHP 7.3 and Laravel preg_match(): Compilation failed

Hello, after updating to php 7.3 (or above) my Laravel 5.7 App throws me a preg_match(): Compilation...

0 Likes 1 Replies
Solved

laravel check errors in controller

Hi everyone,i ve problem with laravel check errors in controller public function registerPost(Reques...

0 Likes 1 Replies

Proper dynamic form request refactor issue

Hello. I have issue when I'm trying refactor dynamic form validation into form request. Main issue i...

0 Likes 0 Replies

Laravel App Front-end and Backend Validation is being bypass

Hi There, this is my first post here as I have encountered a weird issue for the very first time eve...

0 Likes 1 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.