Skip to content

Extended Schema builder for Laravel 5 (currently only MySQL features)

License

Notifications You must be signed in to change notification settings

rafis/schema-extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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',
),

About

Extended Schema builder for Laravel 5 (currently only MySQL features)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages