PHP code example of mombuyish / laravel-batch-migrations

1. Go to this page and download the library: Download mombuyish/laravel-batch-migrations library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mombuyish / laravel-batch-migrations example snippets


return [

    /**
     * Accessible paths.
     */
    'path' => 'database/migrations',

];

   database/
      migrations/
         testing1/
             create_posts_table.php
             create_comment_table.php
         testing2/
             create_articles_table.php
             create_messages_table.php
 
 php
    'providers' => [
    ...
    /*
     * Package Service Providers...
     */
     Mombuyish\BatchMigration\BatchMigrationServiceProvider::class,
    ...
 php
protected $commands = [
        \Mombuyish\BatchMigration\Commands\BatchMigration::class,
        \Mombuyish\BatchMigration\Commands\RollbackBatchedMigration::class
    ];
 bash
$ php artisan vendor:publish --provider="Mombuyish\BatchMigration\BatchMigrationServiceProvider"