Your IP : 18.118.120.13
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('courses', function (Blueprint $table) {
$table->id();
$table->integer('category_id');
$table->integer('topic_id');
$table->integer('user_id');
$table->string('title');
$table->string('subtitle')->nullable();
$table->text('description')->nullable();
$table->text('language')->nullable();
$table->string('image')->nullable();
$table->string('video')->nullable();
$table->integer('level')->nullable();
$table->integer('course_type');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('courses');
}
};