Zubair
Zubair

Reputation: 295

Trying to get property 'id' of non-object How to fix it?

Trying to get property 'id' of non-object (View: /home/zubair/htdocs/et-solves/cms/resources/views/cms/pages/Industry/include/industry-js.blade.php)

please check erorr https://flareapp.io/share/Lm8M3jPv#F66

Upvotes: 0

Views: 156

Answers (2)

Uzair Riaz
Uzair Riaz

Reputation: 919

$industry must be null or a non-object like an array. Try dd($industry) and confirm it.

Upvotes: 0

A.A Noman
A.A Noman

Reputation: 5270

Use like this

axios.post('{{route('industry.update',[$industry['id']])}}'

Upvotes: 1

Related Questions