niclas-timm/eloquent-schema-viewer
最新稳定版本:1.0.0
Composer 安装命令:
composer require niclas-timm/eloquent-schema-viewer
包简介
README 文档
README
Eloquent schema viewer is is a small package for Laravel applications that let's you view the database table schema for your eloquent models.
Installation
Install the package via composer:
composer require --dev niclas-timm/eloquent-schema-viewer
Usage
Once the package is installed, you can use it to print your eloquent model schemas to the terminal:
php artisan eloquent-schema-viewer:view --model="User"
This command will print the schema of the user model to the terminal like so:

Options
| Option | Description | Example |
|---|---|---|
| model | The name of the model you want to view the schema for. | --model="User" |
| table | The name of the table you want to view the schema for. | --table="users" |
One of those two options must be set. Otherwise, the command will fail.
Aliases
Since the command eloquent-schema-viewer:view is quite long, we configured some shorter aliases:
esv:view and esv:view-schema do the same thing as eloquent-schema-viewer:view.
统计信息
- 总下载量: 987
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-27