Hi guys, i have a issue so i have relations many to many product and category, in table product i have filed of category, when user insert new product he want to choice multiply choice of categories, my question is how to do this?

|
Sunilk16 2020-11-17 22:17:00
Create migration
Relaxed Guy 2020-11-17 22:52:18
Guys
Relaxed Guy 2020-11-17 22:54:57
How do I store multiselect2 values and attach them to a pivot table this is ma scenario am creating a project and assigning employees that are to work on the project then create the project after so ma point is how do I attach array of values picked from the form then attach them to the model project user the pivot table this is wat I have done but it only attaches one I’d it doenst attach the other ids selected
DesolatorMagno 2020-11-17 23:33:16
Relaxed Guy 2020-11-17 22:54:57
How do I store multiselect2 values and attach them to a pivot table this is ma scenario am creating a project and assigning employees that are to work on the project then create the project after so ma point is how do I attach array of values picked from the form then attach them to the model project user the pivot table this is wat I have done but it only attaches one I’d it doenst attach the other ids selected

Read again the documentation part for relationship, there are clear examples of attaching to pivot table.

Begroups 2020-11-18 00:16:15
laravel_discuss-59419.jpg
Pls Help
absoluthalal 2020-11-18 05:20:09
laravel_discuss-59432.jpg
#ASK
I write this code, to convert svg to png/jpeg
absoluthalal 2020-11-18 05:20:37
laravel_discuss-59433.jpg
the output like this
absoluthalal 2020-11-18 05:21:09
absoluthalal 2020-11-18 05:20:37
the output like this

how can I fix the text?

shaildark 2020-11-18 06:35:48
Begroups 2020-11-18 00:16:15
Pls Help

maybe start MySQL server from xampp

Begroups 2020-11-18 07:45:13
shaildark 2020-11-18 06:35:48
maybe start MySQL server from xampp

I dont understand

2020-11-18 08:44:23
Relaxed Guy 2020-11-17 22:54:57
How do I store multiselect2 values and attach them to a pivot table this is ma scenario am creating a project and assigning employees that are to work on the project then create the project after so ma point is how do I attach array of values picked from the form then attach them to the model project user the pivot table this is wat I have done but it only attaches one I’d it doenst attach the other ids selected

$user->posts()->attach([your array])

Something like this u may try

2020-11-18 08:45:21
Or u may use sync instead attach
2020-11-18 09:48:21
i friends
2020-11-18 09:48:48
laravel_discuss-59445.jpg
hii guys
Jadidi_82 2020-11-18 10:00:41
laravel_discuss-59446.jpg
hi guys how can I insert array of data into database?
Meet Vaghasiya 2020-11-18 11:17:57
when to use web.php and when use api.php?

what is difference?

if we give same route in both… when which router is work?

2020-11-18 11:26:36
Meet Vaghasiya 2020-11-18 11:17:57
when to use web.php and when use api.php?

what is difference?

if we give same route in both… when which router is work?

For example: your url is http://127.0.0.1/demo

If you want to access api route you should write “api” After your url

Example: http://127.0.0.1/demo/api/

JeevaniSM 2020-11-18 12:15:06
absoluthalal 2020-11-18 05:20:37
the output like this

Did ypu try nay other names ? May be a font issue ??

susheelk985 2020-11-18 12:16:42
Svg image is not showing in laravel why?
Chi_Thian 2020-11-18 12:18:57
Hello Guys, How to Laravel Lang with dynamic data from database ?
Chi_Thian 2020-11-18 12:19:07
Thanks 🙏
ili145 2020-11-18 12:48:36
I made a file manager for my project when upload it in host
Don’t work correctly
ili145 2020-11-18 12:49:22
ili145 2020-11-18 12:48:36
I made a file manager for my project when upload it in host
Don’t work correctly

Anyone help me

susheelk985 2020-11-18 12:57:29
susheelk985 2020-11-18 12:16:42
Svg image is not showing in laravel why?

Please help me

skys215 2020-11-18 12:59:06
susheelk985 2020-11-18 12:16:42
Svg image is not showing in laravel why?

Shou your code

susheelk985 2020-11-18 13:01:28
skys215 2020-11-18 12:59:06
Shou your code

laravel_discuss-59466.jpg

skys215 2020-11-18 13:02:23
And where is the file?
ili145 2020-11-18 13:03:52
susheelk985 2020-11-18 13:01:28

Delete (storage) from backgroung-image and move images from storage to public

susheelk985 2020-11-18 13:04:51
Ok
The_ark3 2020-11-18 13:07:37
laravel_discuss-59470.jpg

The_ark3 2020-11-18 13:07:58
The_ark3 2020-11-18 13:07:37

Want to have this on a table

The_ark3 2020-11-18 13:08:09
Someone help me
skys215 2020-11-18 13:08:50
Foreach
ili145 2020-11-18 13:09:10
ili145 2020-11-18 12:48:36
I made a file manager for my project when upload it in host
Don’t work correctly

Please help me 🙏

skys215 2020-11-18 13:09:36
ili145 2020-11-18 13:09:10
Please help me 🙏

What is not working?

ili145 2020-11-18 13:13:35
skys215 2020-11-18 13:09:36
What is not working?

When upload project in host file manager manage files in storage but user not access

skys215 2020-11-18 13:14:50
Only the file under public is accessable.
Under storage is not.
Search doc for storage:link
ili145 2020-11-18 13:18:32
ili145 2020-11-18 13:13:35
When upload project in host file manager manage files in storage but user not access

For accessable must file be in public_html but file manager don’t manage file in to the public_html

TheFeLuM 2020-11-18 13:19:40
hi guys, i have a issue so i have relations many to many product and category, in table product i have filed of category, when user insert new product he want to choice multiply choice of categories, my question is how to do this ? how can i insert in db multiple choice after that to verify that product category and attach to specify categories
ili145 2020-11-18 13:20:56
TheFeLuM 2020-11-18 13:19:40
hi guys, i have a issue so i have relations many to many product and category, in table product i have filed of category, when user insert new product he want to choice multiply choice of categories, my question is how to do this ? how can i insert in db multiple choice after that to verify that product category and attach to specify categories

Sync method

|