Can i use two create method in one StoreController?

|
Samvel Shamamyan 2022-02-04 18:18:59
Hello) how can i adding data to multiple tables with one form Laravel?
ro9527 2022-02-04 18:24:49
Samvel Shamamyan 2022-02-04 18:18:59
Hello) how can i adding data to multiple tables with one form Laravel?

disconnect diff fields and arrange then send diff model

Samvel Shamamyan 2022-02-04 18:36:57
ro9527 2022-02-04 18:24:49
disconnect diff fields and arrange then send diff model

How exactly i can do that?

Samvel Shamamyan 2022-02-04 18:42:09
Can i use two create method in one StoreController???
umeshkrrana 2022-02-04 19:06:42
Samvel Shamamyan 2022-02-04 18:18:59
Hello) how can i adding data to multiple tables with one form Laravel?

If you have multiple models for that then simply create different data array according to the form fields and table columns.

And then pass it to it’s respective model.

DesolatorMagno 2022-02-04 19:13:29
Stephan Munde 2022-02-04 17:10:00
Videos online and personal blogs always says react is popular than vue.

That’s false…!

I made my personal research and I found that vue has a larger community which implies is more popular. They say that because job market mostly ask for react.

This is because react is développer used and maintained by Facebook whereas vue is développer and maintained by an individual or group of individuals.

If you read blogs from USA and you are from (a example) Rusia, that info is as good as a guess, you need to check is the local market that you are after, in some places PHP is super popular, in others no so much.

DesolatorMagno 2022-02-04 19:15:19
Samvel Shamamyan 2022-02-04 18:42:09
Can i use two create method in one StoreController???

Just make another controller, you don’t need to put everything in the same controller.

Samvel Shamamyan 2022-02-04 19:27:59
DesolatorMagno 2022-02-04 19:15:19
Just make another controller, you don’t need to put everything in the same controller.

Hello) how can i adding data to multiple tables with one form Laravel?

Rakesh 2022-02-04 19:30:35
Hello all.
Please help
Video file working fine in localhost but not working on server
DesolatorMagno 2022-02-04 19:33:45
Samvel Shamamyan 2022-02-04 19:27:59
Hello) how can i adding data to multiple tables with one form Laravel?

Just do it, I don’t understand what’s the problem, just put the data of each one in their place.

mynameisbrad 2022-02-04 19:35:08
DesolatorMagno 2022-02-04 19:33:45
Just do it, I don’t understand what’s the problem, just put the data of each one in their place.

Yeah basically you have different Models and each Model represents different table on your database. So call them and add whatever you need where you need it and save

mynameisbrad 2022-02-04 19:36:48
Rakesh 2022-02-04 19:30:35
Hello all.
Please help
Video file working fine in localhost but not working on server

Check the video paths, they could be different.

Rakesh 2022-02-04 19:38:53
mynameisbrad 2022-02-04 19:36:48
Check the video paths, they could be different.

Thanks for reply

Path is ok but in console showing error like not found

Rakesh 2022-02-04 19:39:11
laravel_discuss-107152.jpg

Samvel Shamamyan 2022-02-04 19:42:07
DesolatorMagno 2022-02-04 19:33:45
Just do it, I don’t understand what’s the problem, just put the data of each one in their place.

I just have two SQL tables and only one form in html. I need when i submit all the data in the form they are separated

Samvel Shamamyan 2022-02-04 19:43:57
DesolatorMagno 2022-02-04 19:33:45
Just do it, I don’t understand what’s the problem, just put the data of each one in their place.

One part got let’s say table_1and the other in tabble_2

Samvel Shamamyan 2022-02-04 19:44:18
Hello) how can i adding data to multiple tables with one form Laravel?
DesolatorMagno 2022-02-04 19:44:51
You can separate the data in the back, you can so whatever you want with the data.
Rahman_jn 2022-02-04 19:55:34
Samvel Shamamyan 2022-02-04 19:44:18
Hello) how can i adding data to multiple tables with one form Laravel?

You get your form’s data through request->get, then call each model you want and store each request value to each model you want.

Samvel Shamamyan 2022-02-04 20:17:10
Rahman_jn 2022-02-04 19:55:34
You get your form’s data through request->get, then call each model you want and store each request value to each model you want.

Can i use thet with hasOne relations?

Ojsholly 2022-02-04 20:24:48
Rakesh 2022-02-04 19:38:53
Thanks for reply

Path is ok but in console showing error like not found

Is the video in your storage folder?

Rakesh 2022-02-04 20:27:40
Ojsholly 2022-02-04 20:24:48
Is the video in your storage folder?

laravel_discuss-107161.jpg
In uploads/video

Working fine in localhost

web design 2022-02-04 20:38:50
web design 2022-02-04 15:00:12
I method
path()
I’m in the Course.php model – now I want to import this into ajax. But it’s error

Uncaught TypeError: element.path is not a function

This is the code.

public function path ()
{
return “/ course / $ this-> slug”;
}

Code inside ajax

$ (‘. courseFilters’). append (`<a href=”${element.path()}”> $ {element.title} </a>`);

Answer my question

Samvel Shamamyan 2022-02-04 20:47:03
Hello) how can i adding data to multiple tables with one form Laravel?
Ojsholly 2022-02-04 21:37:38
web design 2022-02-04 15:00:12
I method
path()
I’m in the Course.php model – now I want to import this into ajax. But it’s error

Uncaught TypeError: element.path is not a function

This is the code.

public function path ()
{
return “/ course / $ this-> slug”;
}

Code inside ajax

$ (‘. courseFilters’). append (`<a href=”${element.path()}”> $ {element.title} </a>`);

This is a JS error

Ojsholly 2022-02-04 21:38:15
The path() method youre trying to reference is in the backend and the JS does not read into that
Abiodun_Web 2022-02-04 21:52:30
Samvel Shamamyan 2022-02-04 19:42:07
I just have two SQL tables and only one form in html. I need when i submit all the data in the form they are separated

Its possible

DesolatorMagno 2022-02-04 22:02:06
Samvel Shamamyan 2022-02-04 19:42:07
I just have two SQL tables and only one form in html. I need when i submit all the data in the form they are separated

Good luck with that, you need more that just a clue.

Samvel Shamamyan 2022-02-04 22:04:39
Thank you chmo Reny
kartikkathuria 2022-02-04 22:20:18
For college Projects and assignments in minimal prices then DM me
umeshkrrana 2022-02-05 06:13:44
Samvel Shamamyan 2022-02-04 20:17:10
Can i use thet with hasOne relations?

Hey man, hasOne relation will be used while fetching data not while inserting data into the table.

WEBLYSS SOFTWARE 2022-02-05 06:40:19
Dear Valued Customer,

Greetings from Weblyss!!!

We are Offering Best Price on:

• Domain name Registration, Hosting Server ( VPS,DEDICATED,CLOUD) & SSL

• Static Website Design

• Dynamic Website Design

• Ecommerce Website

• Web Application

• Mobile Application

Email Solution:
• Webmail/ ZOHO/Office 365/ GSUIT Business/Professional Email Account with 30 GB Space in a discounted price.

• Digital Marketing (SEO &SMO).

. SET UP ADD CAMPAIN( FB,GOOGLE,LINKEDIN)

• Website Bug fixing and Enhancement.

• Graphics designing (Logo, Social Media Posters, Brochures,Intro Logo/Animation Logo/ 2D /3D/ Explainer Video etc.

Kindly forward your enquiries.

Best Regards, Mohammed Gous
Mob: +918763609732 ( whatsapp)
Weblyss Software Solutions Pvt Ltd
Website: www.weblyss.com
Email: info@weblyss.com

skpnation 2022-02-05 08:54:44
Hello everyone. I want to host my mysql database on a hosting site, so I can remotely link my DB to my api in heroku. Please who knows the best and affordable/free hosting site to setup remote mysql?
2022-02-05 09:09:16
Need any assignment or academic help??… We can help at very low price.
Ojsholly 2022-02-05 09:14:15
skpnation 2022-02-05 08:54:44
Hello everyone. I want to host my mysql database on a hosting site, so I can remotely link my DB to my api in heroku. Please who knows the best and affordable/free hosting site to setup remote mysql?

Install the JawsDB addon on Heroku

|