yokuru / laravel-schema-cache
A database schema loading and caching library for Laravel.
1.1.0
2019-04-24 09:40 UTC
Requires
- php: ^7.1
- doctrine/dbal: ^2.9
- illuminate/console: ^5.8
- illuminate/database: ^5.8
- illuminate/filesystem: ^5.8
- illuminate/support: ^5.8
Requires (Dev)
- mockery/mockery: ^1.2
- orchestra/testbench: ^3.5
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-04-24 23:29:06 UTC
README
A database schema loading and caching library for Laravel.
Installation
With Composer:
composer require yokuru/laravel-schema-cache
Usage
You can now get schema information using Facade.
It it wrapper of Doctrine DBAL schema manager.
SchemaCache::getTable('table_name');
Commands
When deploying your application to production, I recommend caching schema.
Cache schema:
php artisan schema:cache
Clear cache:
php artisan schema:clear
License
MIT