Support the ongoing development of Laravel.io →
damonsharp

damonsharp

Joined 14 Feb 2014

Statistics

Threads 3
Replies 2
Solutions 1
Articles 0

Run custom validation only if required_if check returns true?

I have a validation rule like this... required_if:field_name,field_value|date_format:m/d/Y|futureDat...

Likes Replies
Solved

Class Carbon not found??

Trying to use Carbon for date formatting within a class used by calling a custom artisan command, bu...

Likes Replies

How to save XML response output to file for uploading with SSH::into()?

In my controller I have the following with $registration_data coming from the database and the xml.i...

Likes Replies
7 years ago

Run custom validation only if required_if check returns true?

Nevermind... "sometimes" to the rescue... $validation->sometimes('some_date', 'date_fo...

0 Likes
Solved
8 years ago

Class Carbon not found??

Aha, would probably help if I put use Carbon\Carbon at the top of my artisan class. Fixed.

0 Likes

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.