Working interface and parsed symfony cast data to a database.
This commit is contained in:
36
app/Models/Chapter.php
Normal file
36
app/Models/Chapter.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user