Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.23 KB

README.md

File metadata and controls

48 lines (40 loc) · 1.23 KB

What it gives?

It adds new features to Schema which you can use in your migrations:

Schema::create('tests', function ($table) {
    $table->increments('id');
    $table->string('description', 1000)->collate('utf8_general_ci');
    $table->binary('md5', 16); // will use BINARY(16) instead of BLOB
    $table->binary('sha1', 20); // will use BINARY(20) instead of BLOB
    $table->boolean('enabled')->comment('columns comment');
    $table->comment = 'table comment';
});

What versions of Laravel are supported

It have been tested only with Laravel 5.0. But you can try it with Laravel 5.1 too.

How to install

Add package to package.json

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/rafis/schema-extended"
    }
],
"require": {
    "laravel/framework": "5.0.*",
    "rafis/schema-extended": "~1.0"
},

Do not forget to run composer install or composer update rafis/schema-extended after modifying package.json.

Replace "alias" in the configuration file config/app.php:

'aliases' => array(
    ...
    // 'Schema' => 'Illuminate\Support\Facades\Schema',
    'Schema'    => 'SchemaExtended\Schema',
),