Dear @jozeperez have a look at your code specially at this point
$customer = DB::table('customers')->find($id);
Try to change into
$customer = Customer::find($id)
Thanks Eshan Alizad! That is exaclty what was wrong. I wasn't using the eloquent model for the customer record. Thanks for taking the time to point me in the right direction.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.