PHP Schema::collection Examples

PHP Schema::collection - 2 examples found. These are the top rated real world PHP examples of Schema::collection extracted from open source projects. You can rate examples to help us improve the quality of examples.
 public function testDummies()
 {
     Schema::collection('newcollection', function ($collection) {
         $collection->boolean('activated')->default(0);
         $collection->integer('user_id')->unsigned();
     });
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::collection('datadom', function ($table) {
         $table->enum('user_validation', array('pos', 'neg', 'neu'));
     });
 }