PHPackages                             brodsolutions/laravel-dynamic-migrate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. brodsolutions/laravel-dynamic-migrate

ActiveLibrary[Database &amp; ORM](/categories/database)

brodsolutions/laravel-dynamic-migrate
=====================================

03PHP

Since Oct 19Pushed 2y agoCompare

[ Source](https://github.com/brodsolutions/laravelDynamicMigrate10)[ Packagist](https://packagist.org/packages/brodsolutions/laravel-dynamic-migrate)[ RSS](/packages/brodsolutions-laravel-dynamic-migrate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Dynamic Migrate
=======================

[](#laravel-dynamic-migrate)

The Laravel Dynamic Migrate package allows you to dynamically create or update database tables based on your Eloquent models. This can save you time and effort, as you no longer have to manually create or update your database tables every time you make changes to your models.

Installation
------------

[](#installation)

You can install the Laravel Dynamic Migrate package via Composer:

`composer require brodsolutions/laravel-dynamic-migrate`

Once the package is installed, you can run the following command to generate the necessary migration files:

```
php artisan dynamic:migrate

```

Usage
-----

[](#usage)

To use the Laravel Dynamic Migrate package, you need to add the setColumns() method to your Eloquent models. This method should define the columns for your database table, using the Blueprint class from the Illuminate\\Database\\Schema namespace. Here's an example:

```
