Пример #1
0
 public static function _schema_tagModel(\Illuminate\Database\Schema\Blueprint $table)
 {
     $table->text('name')->nullable();
     $table->string('type')->default('default');
     $table->morphs('taggable');
     return $table;
 }
Пример #2
0
 public static function _schema_imageModel(Blueprint $table)
 {
     $table->string('image');
     $table->string('url');
     $table->unsignedInteger('order')->default(0);
     $table->string('type')->default('default');
     $table->integer('width');
     $table->integer('height');
     $table->morphs('imageable');
     return $table;
 }
Пример #3
0
 public static function _schema_activityTrait(\Illuminate\Database\Schema\Blueprint $table)
 {
     $table->dateTime('activity_start')->nullable();
     $table->dateTime('activity_end')->nullable();
     $table->dateTime('signup_start')->nullable();
     $table->dateTime('signup_end')->nullable();
     $table->text('activity_title')->nullable();
     $table->longText('activity_content')->nullable();
     $table->morphs('owner');
     return $table;
 }