tethys/app/Models/Title.php

21 lines
365 B
PHP
Raw Normal View History

2018-08-06 12:30:51 +00:00
<?php
2018-08-29 15:18:15 +00:00
namespace App\Models;
2018-08-06 12:30:51 +00:00
use Illuminate\Database\Eloquent\Model;
2018-09-10 13:09:10 +00:00
use App\Models\Dataset;
2018-08-06 12:30:51 +00:00
class Title extends Model
{
protected $table = 'document_title_abstracts';
public $timestamps = false;
protected $fillable = [
];
public function dataset()
{
2018-09-10 13:09:10 +00:00
return $this->belongsTo(Dataset::class, 'document_id', 'id');
2018-08-06 12:30:51 +00:00
}
}