kfriars / connection-shim
A Laravel Connection implementation that allows you to persist the Schema Builder instance.
Fund package maintenance!
Kurt Friars
Requires
- php: ^8.2
- illuminate/contracts: ^11.0
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1
- orchestra/testbench: ^9.0.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
README
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.