pla-version/app/Models/Site.php

18 lines
237 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Site extends Model
{
protected $fillable = ['ip_address'];
/* RELATIONS */
public function versions()
{
return $this->hasMany(SiteVersion::class);
}
}