why dont you try SCOPE in your products table and see if that works?
btw you are doing two queries.. if type exists, i would do an if/else or something so you always do ONE QUERY
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community