File: D:/HostingSpaces/SBogers85/equichecker.com/app/KommaApp/Domains/Models/Domain.php
<?php
namespace KommaApp\Domains\Models;
/**
*
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma Mediadesign
*/
use Illuminate\Database\Eloquent\Model;
class Domain extends Model
{
protected $table = 'domains';
public function site()
{
$this->belongsTo('KommaApp\Site\Models\Site');
}
public function country()
{
return $this->belongsTo('KommaApp\Countries\Models\Country', 'country_id');
}
public function fullDomain()
{
return 'https://www.' . $this->domain;
}
}