Support the ongoing development of Laravel.io →

769 Threads

Importing Illuminate components into ProcessWire

Hi everyone :) I have just started using ProcessWire, and I really do think it is a great CMF. The o...

0 Likes 2 Replies
Solved

Modify one part of Input::old()

I have in my post controller: return Redirect::back()->withInput()->withErrors($validator)...

0 Likes 2 Replies
Solved

Custom validation - get name of returned error

I'd need to do an if clause in case a validation error occurs. For "normal" fields, i can...

0 Likes 2 Replies
Solved

$errors->all() in view won't display errors

Ok so I have this in my Controller: [code]/** * Execute creating of topic * @param id Category...

0 Likes 0 Replies

problem with errors message when passing Former to array.

I want to pass Former to array and then view it like // in view $form = array( Former::text(), Forme...

0 Likes 0 Replies

Validation rule "required_without:foo" isn't working as expected

I have a form to create a new category : {{ Form::open(['route' => ['category.store'], 'method' =...

0 Likes 0 Replies

File upload validation error

Hi, I have following problems, I get an error when I try to upload an image file within the validati...

0 Likes 2 Replies

Saving data array using Eloquent ORM saves only one data row not multiple row

Hi i have a problem saving multiple data using array extracted from explode. heres the code The Arti...

0 Likes 2 Replies
Solved

Check if conversation exists

I'm creating an app where users can send messages to each other. These are my models and relationshi...

0 Likes 2 Replies
Solved

How to pass non-simple e.g. object or multi-level array as parameters to validation rules

In Laravel doc, a validator can be defined as follows... $validator = Validator::make( array(...

0 Likes 0 Replies

Validation value instead of attribute

Hi, is possible to return the input value instead of the :attribute in the error messages? Thanks

0 Likes 0 Replies

How to check if date is not null

Hey, i wonder how to check if a date is null. The database column is defined in function getDates(),...

0 Likes 2 Replies

Lost with MessageBag and validation errors

I have a repository EloquentPageRepository that creates and saves pages. I have an Observer than is...

0 Likes 2 Replies
Solved

Set other fields when user registers

Here is my User model. I would like to set two fields when the user registers for the first time. A...

0 Likes 3 Replies

Using forms in arrays and validation issues

Hi, I need some help with handling array validation from form data. I have a form which has fields n...

0 Likes 0 Replies

Form error on submit (update)

I am a Laravel newbie and trying to figure out basic updating. It loads the form data but every tim...

0 Likes 3 Replies
Solved

Validation based on different fields

I have 3 select lists with countries, I want the user to change only one of the 3 lists, this works...

0 Likes 0 Replies

laravel test fail in route redirection

i am testing a form. Upon success it must redirect to a route and upon failure it must return to th...

0 Likes 1 Replies

Strange Validation behaviour

I've been struggling to figure this out, but with no result so far. This is what I have: My view:...

0 Likes 0 Replies

Show required field validation message ONLY ONCE

Hi, I got couple of mandatory fields. Required field validation is done and error message are shown....

0 Likes 4 Replies
Solved

Thanks to our community

Solutions given in the past year.

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.