Whoops, looks like something went wrong.

1/1 FatalErrorException in ProductController.php line 20: Call to undefined method Illuminate\Database\Eloquent\Collection::categories()

  1. in ProductController.php line 20