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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire