ldc-dam/app/Site.php

19 lines
261 B
PHP
Raw Normal View History

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Site extends Model
{
/**
* The medias that belong to the sites.
*/
public function medias()
{
return $this->belongsToMany('App\Media', 'medias_sites', 'site_id', 'media_id');
}
}