add keywords during publishing

This commit is contained in:
Arno Kaimbacher 2019-03-18 14:32:29 +01:00
parent f3f17d9371
commit d9b26afb3f
13 changed files with 332 additions and 96 deletions

19
app/Models/Subject.php Normal file
View file

@ -0,0 +1,19 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Dataset;
class Subject extends Model
{
protected $table = 'document_subjects';
public $timestamps = false;
protected $fillable = ['value', 'type'];
public function dataset()
{
return $this->belongsTo(Dataset::class, 'document_id', 'id');
}
}