beckenrode / mysql-workbench-export-laravel-5-migrations

A MySQL Workbench plugin which exports a Model to Laravel 5 Migrations
MIT License
898 stars 236 forks source link

Added Class property "$set_schema_table" to edit table name manually … #45

Closed noncent closed 7 years ago

noncent commented 7 years ago

Added Class property "$set_schema_table" to edit table name manually (if required)

Added a class property to maintain table name easily if required to change by user manually.

// added in class property

/**
 * Schema table name to migrate
 * @var string
 */
public $set_schema_table = '{tableName}';

// change table name string to class property
Schema::create($this->set_schema_table, function (Blueprint $table) {{

// change table name string to class property
migrationEndingTemplate = '''       Schema::dropIfExists($this->set_schema_table);