a2design-inc / laravel-list-db by rabbiabram

Allows DB structure listing (with types)
60
0
5
Package Data
Maintainer Username: rabbiabram
Maintainer Contact: bezverhiy@a2design.biz (Vladislav Bezverkhiy)
Package Create Date: 2016-05-14
Package Last Update: 2016-06-30
Language: PHP
License: MIT
Last Refreshed: 2024-04-23 03:12:33
Package Statistics
Total Downloads: 60
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 5
Total Forks: 1
Total Open Issues: 0

laravel-list-db

Allows DB structure listing (with types)

Code Climate

Installation

  • Run Composer install
    composer require a2design/laravel-list-db
  • Add service provider to your app config:
    'providers' => [
        ...
        A2Design\LaravelListDb\ListDbServiceProvider::class,
    ],
    ...

If you want to see table columns listing, use:

    php artisan table:columns tableName

And for models:

    php artidan model:columns modelName

Formatting

  • %po - Platform options
  • %nn - Not Null
  • %dt - Default Value
  • %ai - Auto Increment
  • %c - Column Name
  • %t - Column Type
  • %u - Unsigned
  • %l - Column Length
  • %p - Column Precision
  • %s - Column Scale
  • %f - Column is fixed