Ap3twe
1 month ago
344
13
Laravel

Carbon Fails in job Queue

Posted 1 month ago by Ap3twe

Carbon instance fails my job but works in the controller directly. I have imported the class use Illuminate\Support\Carbon; That will not be the problem I guess

$dateWanted = $request->date_wanted; //"12/17/2019"
$dateObject = Carbon::createFromFormat("m/d/Y", $dateWanted)->format('Y-m-d')

Please sign in or create an account to participate in this conversation.