Snippets tagged “artisan-migrate”
2 snippets use this tag.
- Laravel Migration table already exists, but I want to add new not the olderPHP
If you have an existing table in your database that you want to add new columns to using a Laravel migration, you can use the Schema::table method to modify the existing table.
- Laravel migration table field's type changePHP
To change the type of a field in a table using a migration in Laravel, you can use the change method on the Schema facade.