Working interface and parsed symfony cast data to a database.

This commit is contained in:
Krzysztof Płaczek
2022-08-23 08:09:14 +02:00
parent 119b94470f
commit a92c75c1dd
22 changed files with 488 additions and 224 deletions

View File

@@ -0,0 +1,28 @@
<?php
use App\Models\Course;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('chapters', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(Course::class);
$table->integer('order');
$table->text('title');
$table->text('duration')->nullable();
$table->text('link');
$table->text('video_link');
$table->integer('video_size');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('chapters');
}
};