kfriars/connection-shim

A Laravel Connection implementation that allows you to persist the Schema Builder instance.

v11.0.0 2025-02-13 21:28 UTC

This package is auto-updated.

Last update: 2025-05-12 21:18:13 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package is a set of Laravel Connection implementations that allow you to persist the Schema Builder on the Connection instance.

The Laravel Framework has hard-coded the schema builder into the connections, so if you want to customize the schema builder you would need to override the connection classes.

I have started a discussion on the laravel/framework repository, to see if this behavior can be changed.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the package via composer:

composer require kfriars/connection-shim

Usage

After installing the package, you will not need to do anything else. All first-party database drivers will allow you to call the setSchemaBuilder method on them. This ensures the connection will be using a consistent schema throughout execution.

Credits

License

The MIT License (MIT). Please see License File for more information.