Soyhuce/l5-repository

View on GitHub
src/Prettus/Repository/Generators/Stubs/migration/change.stub

Summary

Maintainability
Test Coverage
˜<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class $CLASS$ extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
    
        Schema::table('$TABLE$', function(Blueprint $table) {
$FIELDS_UP$
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

        Schema::table('$TABLE$', function(Blueprint $table) {
$FIELDS_DOWN$
        });

    }

}