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)
Regards
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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community