mercredi 29 mars 2017

How to insert array fields data in Laravel5

How can i insert multiple text fields data with laravel. I have two fields.

<input type="text" name="title[]" />
<input type="text" name="email[]" />

Now in controller i can get these values like this.

$name =  $request->title;
$description =  $request->email;

How can i add this with eloquent.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nLuo4C
via IFTTT

Aucun commentaire:

Enregistrer un commentaire