Search by

yokuru / laravel-schema-cache

yokuru

A database schema loading and caching library for Laravel.

Package info

github.com/yokuru/laravel-schema-cache

pkg:composer/yokuru/laravel-schema-cache

Statistics

Installs: 616

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 1

1.1.0 2019-04-24 09:40 UTC

This package is auto-updated.

Last update: 2026-09-25 02:43:39 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