← prev | next →
Amir 2022-07-27 11:41:15
Hi.
I have a question that is both technical and experimental.
Take into a situation that you are working on an API project in the Admin Panel (an eCommerce admin panel, for example)
You, therefore, have a variety of pages, such as one for adding new products, etc. Here is my question!
When creating a new product with ‘store()’ page, we need to collect information from the user about the product, including the product name, numerous images (an image gallery), meta tags, variants, and other information.
yep, also A lot of inputs!
How am I going to manage such a massive amount of inputs?
Amir 2022-07-27 11:41:26
The first solution is to use built-in Laravel function to interact with user inputs (‘$request->input()’). But how do I receive an infinite list? How can multiple images and more than 30 inputs be received? Is this the normal and expected way to get this job done?
Amir 2022-07-27 11:41:36
The second solution that I’ve discovered is to accept all inputs as a single json-encoded input.
But, once again, I’m not sure what I’m doing here!
Amir 2022-07-27 11:42:05
What are your thoughts on this? What steps would you take if you were in my shoes?
This screenshot is also from my admin panel, which was created in Figma (as you can see at the bottom of the page, there is an infinite list, there is an image gallery, and many more fields)
Web Developer 2022-07-27 11:43:00
All fields are of one single table???
Amir 2022-07-27 11:47:17
Web Developer 2022-07-27 11:43:00
All fields are of one single table???
No. Images will be stored in the resources table, and we will need to perform some processing on them (saving them on S3). The product name is added to the products table. Attributes have their table called attributes and variations have their own table called variants
This is my main challenge!
Web Developer 2022-07-27 11:49:49
In this type of case
Web Developer 2022-07-27 11:50:01
You can use rollback and commit for better programming
Web Developer 2022-07-27 11:50:23
Because there are little bit high chances to getting error until youbhave perfect code
Web Developer 2022-07-27 11:51:00
You can use new object; process for insertion if you don’t Wants to use model::create
Anand Tujare 2022-07-27 11:56:55
InjaPMBedeh 2022-07-27 11:06:10
I do, and I get the above error
In the .env file update the app url to project url…
farooklg 2022-07-27 12:06:53
Hello i need help with call to a member function isAdmin() on null. I am trying to prevent non admin users from visiting a route
farooklg 2022-07-27 12:07:28
farooklg 2022-07-27 12:07:28
farooklg 2022-07-27 12:07:28
ualikhandulat 2022-07-27 12:22:07
See view file
ualikhandulat 2022-07-27 12:22:59
Error inside blade file app.blade.php
InjaPMBedeh 2022-07-27 12:24:30
Anand Tujare 2022-07-27 11:56:55
In the .env file update the app url to project url…
Adding include /etc/nginx/mime.types; in nginx solved the problem.
InjaPMBedeh 2022-07-27 12:24:40
InjaPMBedeh 2022-07-27 03:20:03
My JS and CSS files don’t load; how can I solve it?
<script type=”text/javascript” src=”http://localhost/js/app.js”></script>
<link rel=”stylesheet” type=”text/css” href=”http://localhost/css/app.css”>
Adding include /etc/nginx/mime.types; in nginx solved the problem.
InjaPMBedeh 2022-07-27 12:24:51
Thanks everyone
Dhruv Trivedi 2022-07-27 12:31:40
Dhruv Trivedi 2022-07-27 12:32:17
valid code for search button
mocchalatte 2022-07-27 12:32:22
Guys, how to return two variables to view?
mocchalatte 2022-07-27 12:33:07

I tried this and this is the result
Dhruv Trivedi 2022-07-27 12:33:35
Dhruv Trivedi 2022-07-27 12:31:40
give me valid code for search function
InjaPMBedeh 2022-07-27 12:37:44
mocchalatte 2022-07-27 12:33:07
I tried this and this is the result
I think the error itself is self explanatory 🤷♂️
ualikhandulat 2022-07-27 12:49:09
mocchalatte 2022-07-27 12:32:22
Guys, how to return two variables to view?
Use compact()
marichka_ry 2022-07-27 13:28:15
hello ) I hope you are well🤗
marichka_ry 2022-07-27 13:28:31
Guys, maybe some of you are looking for a new job position as a PHP Laravel Back-end developer?
If you are interested – text me or put a like , I’ll contact you.
marichka_ry 2022-07-27 13:29:10
* Just from Ukraine
segungreat 2022-07-27 13:29:42
marichka_ry 2022-07-27 13:28:31
Guys, maybe some of you are looking for a new job position as a PHP Laravel Back-end developer?
If you are interested – text me or put a like , I’ll contact you.
Remote?
marichka_ry 2022-07-27 13:30:05
segungreat 2022-07-27 13:29:42
Remote?
yes
marichka_ry 2022-07-27 13:30:15
It can be
Importpandas 2022-07-27 13:45:23
marichka_ry 2022-07-27 13:28:31
Guys, maybe some of you are looking for a new job position as a PHP Laravel Back-end developer?
If you are interested – text me or put a like , I’ll contact you.
Contact me
Importpandas 2022-07-27 13:46:58
Anyone who is good at laravel livewire i need help
shyampitroda21 2022-07-27 13:50:58
How can I add submenu under option tag ? With drop down menu ?
King 2022-07-27 14:28:48
Is any one tell me how to apply orderby name in alphabetic order in relation table
Leone Bkl 2022-07-27 14:32:11

hello i have problem i hope someone could help me laragon terminal show all message you see how i can do to fix this problem thank you
Leone Bkl 2022-07-27 14:35:41
I uninstalled and reinstalled but when I finish working on the terminal and close it when I open it again this is the message that appears ☝️☝️
raulzidan07 2022-07-27 14:44:05

inbox interest 085770313479
Madhesh 2022-07-27 15:27:22
How to check if the i value is exist in array using javascript or jquery
dharmik4 2022-07-27 15:42:42
DarshanSaroya 2022-07-27 16:35:19
Madhesh 2022-07-27 15:27:22
How to check if the i value is exist in array using javascript or jquery
IndexOf
Godwin Akpah 2022-07-27 16:40:25
Who wants to trade
vevomalik547 2022-07-27 16:42:05
Guys
vevomalik547 2022-07-27 16:42:57

This is my code
vevomalik547 2022-07-27 16:43:28

This is my error
Abbas_roholamin 2022-07-27 16:47:26
vevomalik547 2022-07-27 16:43:28
This is my error
Import link Controller class
vevomalik547 2022-07-27 16:47:43
Alrdy done that too
vevomalik547 2022-07-27 16:48:16
← prev | next →