Tuesday, March 13, 2018

Laravel how to store an array in to database - development

Laravel how to store an array in to database

I store data into array[], when i do dd(($request)); i can see the array with the date.

Question how i can store it inside the DB?

blade

<div class="form-group">
                    <label for="qualifiche">qualifiche:</label>
                    <input type="checkbox" name="array[]" value="uno" > Uno <br>
                    <input type="checkbox" name="array[]" value="due"> Due <br>
                    <input type="checkbox" name="array[]" value="tre"> Tre <br>
                </div>



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-how-to-store-an-array-in-to-database/
via Lzo Media

No comments:

Post a Comment