2017 © Pedro Peláez
 

library laravel-optimized-postgres

image

genealabs/laravel-optimized-postgres

  • Monday, March 12, 2018
  • by mikebronner
  • Repository
  • 2 Watchers
  • 2 Stars
  • 172 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 244 % Grown

The README.md

Optimized Postgres for Laravel

Optimized Postgres for Laravel, (*1)

Join the chat at https://gitter.im/GeneaLabs/laravel-optimized-postgres, (*2)

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., (*3)

Installation

Requirements

  • PHP >=7.0
  • Laravel >=5.4

Composer Command

composer require genealabs/laravel-optimized-postgres

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:, (*4)

GeneaLabs\LaravelOptimizedPostgres\Providers\LaravelOptimizedPostgresService::class,

Usage

When writing migrations, be sure to remove the following use statement from the top of the file:, (*5)

use Illuminate\Support\Facades\Schema;

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., (*6)

Future Updates

  • possibly expand to normalize numbers, more research needed.

The Versions

12/03 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

12/03 2018

0.1.3

0.1.3.0

  Sources   Download

MIT

The Requires

 

20/11 2017

0.1.2

0.1.2.0

  Sources   Download

MIT

The Requires

 

21/06 2017

0.1.1

0.1.1.0

  Sources   Download

MIT

The Requires