PHPackages                             va/cutlet-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. va/cutlet-migrate

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

va/cutlet-migrate
=================

A package to use migrate:update command with options for migrations in custom directories in laravel apps.

v1.0.8(4y ago)106MITPHPPHP 7.\*|8.\*

Since May 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/imvahid/cutlet-migrate)[ Packagist](https://packagist.org/packages/va/cutlet-migrate)[ Docs](https://github.com/va1hi9da9sh2ou0rz2ad1eh7/cutlet-migrate)[ RSS](/packages/va-cutlet-migrate/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Laravel Cutlet migrate
======================

[](#laravel-cutlet-migrate)

[![GitHub issues](https://camo.githubusercontent.com/6633af5b436f07b982b63de499d1ff9ed00862df31392b2fcc371b2b6c2b95de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7661316869396461397368326f7530727a326164316568372f6375746c65742d6d6967726174653f7374796c653d666c61742d737175617265)](https://github.com/va1hi9da9sh2ou0rz2ad1eh7/cutlet-migrate/issues)[![GitHub stars](https://camo.githubusercontent.com/445e5bfb96cbb089a61e1740d60aa84b386605df91fa0383dd0c61c997830cb4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7661316869396461397368326f7530727a326164316568372f6375746c65742d6d6967726174653f7374796c653d666c61742d737175617265)](https://github.com/va1hi9da9sh2ou0rz2ad1eh7/cutlet-migrate/stargazers)[![GitHub forks](https://camo.githubusercontent.com/0af475544caee7d734f8dbf5cf325944fbd656f69e0e8753ae1c896da1647356/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f7661316869396461397368326f7530727a326164316568372f6375746c65742d6d6967726174653f7374796c653d666c61742d737175617265)](https://github.com/va1hi9da9sh2ou0rz2ad1eh7/cutlet-migrate/network)[![GitHub license](https://camo.githubusercontent.com/cf2b1c25925e18463cc6878e5580466b75ab7ce97867c9897af118688099ca13/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7661316869396461397368326f7530727a326164316568372f6375746c65742d6d6967726174653f7374796c653d666c61742d737175617265)](https://github.com/va1hi9da9sh2ou0rz2ad1eh7/cutlet-migrate/blob/master/LICENSE)

### Installation

[](#installation)

```
composer require va/cutlet-migrate

```

#### Publish Config

[](#publish-config)

```
php artisan vendor:publish --tag=cutlet-migrate

```

#### Usage

[](#usage)

You can run this command for use:

```
php artisan migrate:update
php artisan migrate:update --migrate|-m
php artisan migrate:update --migrate|-m --seed|-s
php artisan migrate:update --migrate|-m --seed|-s --status|-t

```

and show the help with this command:

```
php artisan --help migrate:update
or
php artisan migrate:update -h

```

and you can customize the mysql migrations directories:

```
return [
    /*
     * It's from 'database/migrations/' path..
     */
    'functions_path' => 'mysql/functions',
    'procedures_path' => 'mysql/procedures',
    'triggers_path' => 'mysql/triggers',
    'views_path' => 'mysql/views',
];
```

#### How to create functions, procedures, triggers and views in laravel:

[](#how-to-create-functions-procedures-triggers-and-views-in-laravel)

```
Use this command once time in project after install cutlet-migrate:
php artisan migrate:update

## Create a function:
php artisan make:migration function_name --path=database/migrations/mysql/functions

## Create a procedure:
php artisan make:migration procedure_name --path=database/migrations/mysql/procedures

## Create a trigger:
php artisan make:migration trigger_name --path=database/migrations/mysql/triggers

## Create a view:
php artisan make:migration view_name --path=database/migrations/mysql/views

```

#### How to write functions, procedures, triggers and views in migrations:

[](#how-to-write-functions-procedures-triggers-and-views-in-migrations)

```
## Write a function:
