Fatal error: Call to a member function to_array() on a non-object in /home/nutchies/public_html/src/App/Models/Repositories/ProductRepository.php on line 24