A database schema loading and caching library for Laravel.
With Composer:
composer require yokuru/laravel-schema-cache
You can now get schema information using Facade.
It it wrapper of Doctrine DBAL schema manager.
SchemaCache::getTable('table_name');
When deploying your application to production, I recommend caching schema.
Cache schema:
php artisan schema:cache
Clear cache:
php artisan schema:clear
MIT