D
D
Denis Bukreev2017-04-21 19:16:24
Laravel
Denis Bukreev, 2017-04-21 19:16:24

How to add additional fields to a table in laravel?

I created a table, filled it with data, but then I suddenly needed to add fields with a default value.
Is this possible with laravel or do you have to do it in PMA?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav, 2017-04-21
@denisbookreev

Why migrations)
1) Create a migration
2) Add nullable() or default(params) to the required field

S
Stanislav Pochepko, 2017-04-21
@DJZT

Read here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question