little-superman/laravel-database is a Laravel package for 重写laravel部(database) 不部分代码.
It currently has 0 GitHub stars and 3 downloads on Packagist (latest version v0.0.2).
Install it with composer require little-superman/laravel-database.
Discover more Laravel packages by little-superman
or browse all Laravel packages to compare alternatives.
Last updated
composer require little-superman/laravel-database
php artisan customize:migration 表名称
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use LittleSuperman\Database\Facades\SchemaExtends;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
SchemaExtends::create('users', function (Blueprint $table) {
$table->bigIncrements('id');
$table->tableComment('表备注');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user');
}
}