Skip to content

Laravel + React: Handling API Data

I’m new to react and laravel and I am trying to boost my skills during this god awful lockdown. I’m following tons of tutorials but I keep finding that they are either incomplete, have very bad english or not indepth enough and skip over things too quickly. I don’t mean to sound ungrateful, …

E-commerce in Laravel

Good afternoon, I am making a website on e-commerce. And it allows me to add products and everything. But when I want to see my product list in admin panel and main page, I get two errors. Error …

Laravel: how to pass GET array to controller?

How to pass array of GET parameters to the controller? This is my route file routes/web.php: And my controller ‘app/Http/Controllers/Parser.php’: So, I expect to get an array of parameters like this: But if I pass GET array to my route path: http://example.com/ids?ids[]=1&ids[]=2&ids[]=15&…

Uncaught SyntaxError: Unexpected token < in JSON at position

I am currently trying to make a system of “favorites”. It works correctly but in the console of my browser gives an error (image below) and I do not understand why it happens. I tried to find solutions but I can not understand them at all. Can anyone help me? index.php: scripts.js: The error I get…

PayPal checkout buttons JS to PHP [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. This post was edited and submitted for review 1 year ago and failed to reopen the post: Original close reason(s) we…

Laravel grouping or taking from list in six

I’m not sure the title of this topic is correct, I apologize, you suppose I have this list which I get them from the database: as you can see we can grouping them with the first part of each item that we can have that them in three groups, after grouping them I want to use foreach for each one