blob: 61ccb167d5c6bba94ade4fd89698fcfb5bf43708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
namespace Peopleaps\Scorm\Model;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $uuid
* @property string $title
* @property string $version
* @property string $entryUrl
*/
class ScormModel extends Model
{
public function getTable()
{
return config('scorm.table_names.scorm_table', parent::getTable());
}
public function scos()
{
return $this->hasMany(ScormScoModel::class, 'scorm_id', 'id');
}
/**
* @return HasOne
*/
public function resource()
{
return $this->hasOne(config('scorm.table_names.resource_table'));
}
}
|