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

36
app/Models/Chapter.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $order
* @property string $link
* @property string $video_link
* @property integer $video_size
* @property string $title
* @property string $duration
* @property integer $course_id
*/
class Chapter extends Model
{
use HasFactory;
protected $fillable = [
'order',
'link',
'video_link',
'video_size',
'title',
'duration',
'course_id',
];
public function course(): BelongsTo
{
return $this->belongsTo(Course::class);
}
}