PHPackages                             edupham/fillable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. edupham/fillable

ActiveLibrary

edupham/fillable
================

Artisan Command Get Table Field

71152[1 issues](https://github.com/doan281/edupham_fillable/issues)PHP

Since Nov 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/doan281/edupham_fillable)[ Packagist](https://packagist.org/packages/edupham/fillable)[ RSS](/packages/edupham-fillable/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Package: Edupham Fillable
=================================

[](#laravel-package-edupham-fillable)

Package giúp DEV xem danh sách các table trong DB và các trường của một table bằng dòng lệnh.

Ngoài ra, bạn có thể dùng các field trên để khai báo fillable trong model.

> Lưu ý: package xử lý với DB MySQL và MariaDB.

Cài đặt
-------

[](#cài-đặt)

Chạy lệnh:

```
composer require edupham/fillable:dev-master

```

Hoặc nếu chỉ muốn cài đặt ở môi trường phát triển, chạy lệnh:

```
composer require --dev edupham/fillable:dev-master

```

Với Laravel 5.4.x trở về trước, Bạn phải cấu hình trong file config/app.php và tìm đến đoạn cấu hình mảng providers, sau đó thêm đoạn mã sau để đăng ký với hệ thống:

```
'providers' => [
    ...
    \Edupham\Fillable\EduphamFillableServiceProvider::class,
    ...
]

```

Với Laravel từ 5.5.x, hệ thống đăng ký tự động nên không phải cấu hình.

Chức năng:
----------

[](#chức-năng)

#### 1. Xem danh sách table

[](#1-xem-danh-sách-table)

Bao gồm các tùy chọn:

- default: sẽ hiển thị tên table như trong DB và kèm theo số thứ tự
- record: sẽ hiển thị tên table như trong DB, kèm theo số thứ tự và số bản ghi hiện có của bảng. Mặc định kết quả sắp xếp tăng dần theo tên của bảng. Nếu cần sắp xếp giảm dần theo số bản ghi thì thêm tuỳ chọn --order=desc
- upper: sẽ chuyển tên table thành chữ hoa và kèm theo số thứ tự
- const: sẽ tạo sẵn câu lệnh khai báo hằng số với const
- define: sẽ tạo sẵn câu lệnh khai báo hằng số với define

Các lệnh tương ứng với các tùy chọn:

```
- php artisan table:show-list hoặc php artisan table:show-list default
- php artisan table:show-list upper
- php artisan table:show-list record hoặc php artisan table:show-list record --order=desc
- php artisan table:show-list const
- php artisan table:show-list define

```

Các kết quả tương ứng với từng tùy chọn, ví dụ DB có một bảng users:

- default: 1. users
- record: 1. users (1000)
- upper: 1. USERS
- const: const TABLE\_USERS = 'users';
- define: define('TABLE\_USERS', 'users');

Kết quả được lưu ra file theo đường dẫn:

- storage/app/public/tables.txt

#### 2. Xem danh sách field của một table

[](#2-xem-danh-sách-field-của-một-table)

Chạy lệnh:

```
php artisan table:show-field

```

hoặc

```
php artisan table:show-field

```

Ví dụ:

```
php artisan table:show-field

```

hoặc

```
php artisan table:show-field users

```

> Lưu ý: nếu không truyền tên bảng &lt;table\_name&gt; thì package sẽ liệt kê toàn bộ bảng trong DB đang kết nối để cho người dùng chọn theo số thứ tự.

Kết quả được lưu ra file theo đường dẫn:

- storage/app/public/fields.txt

Lưu ý:
------

[](#lưu-ý)

Trong một số trường hợp phát sinh lỗi liên quan đến tên lệnh 'table', chạy lệnh sau để cập nhật tải class:

```
composer dump-autoload

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/eedbb3d75aefcbc754dc01f112a0e8a24d846d6ee6677d9e8969950bf88df448?d=identicon)[doan281](/maintainers/doan281)

---

Top Contributors

[![doan281](https://avatars.githubusercontent.com/u/5410749?v=4)](https://github.com/doan281 "doan281 (1 commits)")

### Embed Badge

![Health badge](/badges/edupham-fillable/health.svg)

```
[![Health](https://phpackages.com/badges/edupham-fillable/health.svg)](https://phpackages.com/packages/edupham-fillable)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
