chuoke/laravel-table-comment

Laravel table comment for migration

Maintainers

👁 chuoke

Package info

github.com/chuoke/laravel-table-comment

pkg:composer/chuoke/laravel-table-comment

Fund package maintenance!

chuoke

Statistics

Installs: 526

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.1 2021-07-14 01:22 UTC

Requires

  • php: ^7|^8.0

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 6f1cf112fecdc0cc1f51a92cab98c3e7fcd6ad29

  • chuoke <chuokechungyoung.woop@gmail.com>

chuokelaravel-table-comment

This package is auto-updated.

Last update: 2026-06-14 11:46:27 UTC


README

👁 Latest Version on Packagist
👁 GitHub Code Style Action Status
👁 Total Downloads

Just a simple extension for commenting table in laravel migration.

Installation

You can install the package via composer:

composer require chuoke/laravel-table-comment

Usage

<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
// use Illuminate\Database\Migrations\Migration;
use Chuoke\LaravelTableComment\Migration;

class CreateUsersTable extends Migration
{
 /**
 * Run the migrations.
 *
 * @return void
 */
 public function up()
 {
 Schema::create('users', function (Blueprint $table) {
 $table->id();
 $table->string('name', 30)->comment('Name');

 $table->comment('User info table');
 });
 }

 /**
 * Reverse the migrations.
 *
 * @return void
 */
 public function down()
 {
 Schema::dropIfExists('users');
 }
}

License

The MIT License (MIT). Please see License File for more information.