This is driving me bonkers. See this insert:
$subscription = new Subscription([
'user_id' => \Auth::user()->id,
'stripe_id' => $cart->stripe_sub_id,
'stripe_plan' => $panel->chosen_plan,
'last_order_id' => $order->id,
'latest_order_created' => true,
'price' => $panel->chosen_price,
'interval' => $cart->interval,
'next_billed' => \Carbon\Carbon::now()->addMonths($cart->interval)
]);
Everything works except this bit: 'latest_order_created' =>true which I have also tried as 'latest_order_created' => 1
It works on local, but on production it is always false, I cannot understand it?!
Migrations have been run, the field exists in DB, it's enabled as fillable and boolean in the model, and I've cleared the cache, config etc just to be sure.
What am I missing I am sure it must be something simple!