Trying to get property 'slug' of non-object – Laravel
I want to display my data/product by category in frontend with URL/slug. I watch on YouTube, but I'm stuck when I click URL/link category got an error like this. ErrorException Trying to get property 'slug' of non-object (View: D:xampphtdocse-catalogresourcesviewsfrontendlayoutsheader.blade.php) This…