2020-10-02 16:02:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Word extends Model
|
|
|
|
{
|
2020-10-05 20:13:37 +00:00
|
|
|
public $incrementing = false;
|
|
|
|
|
2020-10-02 16:02:56 +00:00
|
|
|
public $fillable = [
|
2020-10-05 20:13:37 +00:00
|
|
|
'id',
|
2020-10-02 16:02:56 +00:00
|
|
|
'ulb',
|
|
|
|
'greek',
|
|
|
|
'lemma',
|
|
|
|
'morph',
|
|
|
|
'ognt_sort',
|
|
|
|
'strongs_number',
|
|
|
|
];
|
|
|
|
|
|
|
|
public $visible = [
|
|
|
|
'ulb',
|
|
|
|
'greek',
|
|
|
|
'lemma',
|
|
|
|
'morph',
|
|
|
|
'ognt_sort',
|
|
|
|
'strongs_number',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
*/
|
|
|
|
public function verse()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Word::class);
|
|
|
|
}
|
2020-10-07 03:03:25 +00:00
|
|
|
|
2020-10-07 16:06:52 +00:00
|
|
|
/**
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
|
|
*/
|
2020-10-07 18:43:40 +00:00
|
|
|
public function lexicalEntries()
|
2020-10-07 03:03:25 +00:00
|
|
|
{
|
2020-10-07 16:06:52 +00:00
|
|
|
return $this->belongsTo(LexicalEntry::class, 'strongs_number', 'id');
|
2020-10-07 03:03:25 +00:00
|
|
|
}
|
2020-10-02 16:02:56 +00:00
|
|
|
}
|