I have a validation rule like this... required_if:field_name,field_value|date_format:m/d/Y|futureDat...
Trying to use Carbon for date formatting within a class used by calling a custom artisan command, bu...
In my controller I have the following with $registration_data coming from the database and the xml.i...
Nevermind... "sometimes" to the rescue... $validation->sometimes('some_date', 'date_fo...
Aha, would probably help if I put use Carbon\Carbon at the top of my artisan class. Fixed.
The Laravel portal for problem solving, knowledge sharing and community building.
The community