- landing page -> detail page of dataset
Dataset.php and show.blade.php
This commit is contained in:
parent
43748471dc
commit
6c54dae8f5
2 changed files with 150 additions and 51 deletions
|
@ -227,6 +227,10 @@ class Dataset extends Model
|
|||
{
|
||||
return $this->belongsToMany(License::class, 'link_documents_licences', 'document_id', 'licence_id');
|
||||
}
|
||||
public function license()
|
||||
{
|
||||
return $this->belongsToMany(License::class, 'link_documents_licences', 'document_id', 'licence_id')->first();
|
||||
}
|
||||
|
||||
public function files()
|
||||
{
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue