Download the PHP package genealabs/laravel-optimized-postgres without Composer
On this page you can find all versions of the php package genealabs/laravel-optimized-postgres. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download genealabs/laravel-optimized-postgres
More information about genealabs/laravel-optimized-postgres
Files in genealabs/laravel-optimized-postgres
Package laravel-optimized-postgres
Short Description optimizes field types for Postgres.
License MIT
Informations about the package laravel-optimized-postgres
Optimized Postgres for Laravel
Impetus
By default I like my Postgres database to use text type for all textual fields.
When you run your migrations with this package installed, it will convert the
following migration types to text: char, and string.
Installation
Requirements
- PHP 8.2+
- Laravel 10, 11, 12, or 13
Version Support
| PHP | Laravel | Support |
|---|---|---|
| 8.2 | 10, 11 | ✅ |
| 8.3 | 10, 11, 12, 13 | ✅ |
| 8.4 | 10, 11, 12, 13 | ✅ |
| 8.5 | 10, 11, 12, 13 | ✅ |
Composer Command
Service Provider
If you are on Laravel 5.5, the service provider will auto-register once the
package is installed. You can skip this step. If you haven't upgraded to
Laravel 5.5 yet, add the following to the providers array in your
\config\app.php file:
Usage
When writing migrations, be sure to remove the following use statement from the top of the file:
This is included in the two default migrations provided with Laravel projects,
but I don't believe is added when you make a new migration.
Future Updates
- possibly expand to normalize numbers, more research needed.
All versions of laravel-optimized-postgres with dependencies
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0