tethys/app/Models/License.php
2020-06-10 21:09:12 +02:00

31 lines
624 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Dataset;
class License extends Model
{
protected $table = 'document_licences';
public $timestamps = false;
protected $fillable = [
'active',
'desc_text',
'desc_text',
'desc_text',
'language',
'link_licence',
'link_logo',
'mime_type',
'name_long',
'pod_allowed',
'sort_order',
];
public function datasets()
{
return $this->belongsToMany(Dataset::class, 'link_documents_licences', 'licence_id', 'document_id');
}
}