yokuru/laravel-schema-cache

用于 Laravel 的数据库模式加载和缓存库。

1.1.0 2019-04-24 09:40 UTC

This package is auto-updated.

Last update: 2024-09-24 21:52:44 UTC


README

Build Status Coverage Status MIT License

用于 Laravel 的数据库模式加载和缓存库。

安装

使用 Composer

composer require yokuru/laravel-schema-cache

用法

现在您可以使用 Facade 获取模式信息。
它是 Doctrine DBAL 模式管理器的封装。

SchemaCache::getTable('table_name');

命令

在将应用程序部署到生产环境时,我建议缓存模式。

缓存模式

php artisan schema:cache

清除缓存

php artisan schema:clear

许可证

MIT