PHP Method Schema::collection, someline-starter Code Examples

This page contains top rated real world PHP examples of method Schema::collection from package someline-starter extracted from open source projects. You can rate examples to help us improve the quality of examples
Example #1
Show file File: SchemaTest.php Project: danielheyman/TechDimeProjects
0
 public function testDummies()
 {
     Schema::collection('newcollection', function ($collection) {
         $collection->boolean('activated')->default(0);
         $collection->integer('user_id')->unsigned();
     });
 }
Example #2
Show file File: 2015_02_23_075049_add_usercolumn_to_datadom.php Project: luoxun/SensysPHP
0
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::collection('datadom', function ($table) {
         $table->enum('user_validation', array('pos', 'neg', 'neu'));
     });
 }