yokuru/laravel-schema-cache

A database schema loading and caching library for Laravel.

1.1.0 2019-04-24 09:40 UTC

This package is auto-updated.

Last update: 2024-04-24 20:46:55 UTC


README

Build Status Coverage Status MIT License

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