Laravel Insert Multiple Rows in database

preview_player
Показать описание
DON'T FORGET TO SUBSCRIBE NOW.

#laravel
#multiple data insert
laravel multiple data insert
laravel multiple data send database

IMPORTANT LINKS:

ASK any questions about this video and any other business on the comments below.

Find more of my written blogs on :

Donate to help us and make more videos:

Follow us on social media:
Комментарии
Автор

Thank you very much for your help. Big thanks

setveasna
Автор

"DON'T FORGET TO SUBSCRIBE NOW." .... of course, I did...

TrikNgonlen
Автор

Men fuiste mi salvación, te lo agradezco mucho

sorinjaramillo
Автор

beautiful, although need a little explanation but anyways amazing

arslannaseeb
Автор

How to set addRow select name="brandName" with looping @foreach in javascript? It's not working....

atanasli
Автор

just try this code in your controller its working

lalitbohara
Автор

in this way how to upload an image/file??

skrony
Автор

Question how can I insert using text inputs . Cause in your video your brandname is using select while mine is using text.

brentgulde
Автор

Hi, I have a question, how can I do the validation like your code in the name called model[ ].

I tried something’s like ‘model’ => ‘required | alpha | min:2’ in the controller.

the error says : htmlspecialchars() expects parameter 1 to be strong, array given

nosnek
Автор

You don't have the source code to this? I'm trying to do something similar but for some reason when submitting the form.. on the $request I always get NULL.

alexmepy
Автор

public function insert(Request $request){
$this->validate($request, [
'name'=>'required',
'status' =>'required',
]);
$name = $request->name;
$status= $request->status;
for($i=0; $i++)
{
$sauthor=new Sauthor;
$sauthor->name=$name[$i];

$sauthor->slug=Str::slug($name[$i], '-');
$sauthor->save();
}
return redirect()->route('Sauthor')->with('Message', 'Multiple author details has been added successfully');
}

lalitbohara
Автор

can you please provide the source code?

RajanSharma-rzcm