This is just a fork to add geometry element to the Laravel Schema. Tanks to rafis
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';
});
It have been tested only with Laravel 5.0. But you can try it with Laravel 5.1 too.
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',
),