Added database recording

This commit is contained in:
2023-03-03 10:29:39 +11:00
parent a389264ec4
commit 32a75cb140
5 changed files with 101 additions and 41 deletions

17
app/Models/Site.php Normal file
View File

@@ -0,0 +1,17 @@
<?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);
}
}