Log systems polling
This commit is contained in:
@@ -39,6 +39,11 @@ class System extends Model
|
||||
->FTNorder();
|
||||
}
|
||||
|
||||
public function logs()
|
||||
{
|
||||
return $this->hasMany(SystemLog::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Session Passwords for system
|
||||
*
|
||||
|
15
app/Models/SystemLog.php
Normal file
15
app/Models/SystemLog.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SystemLog extends Model
|
||||
{
|
||||
/* RELATIONS */
|
||||
|
||||
public function system()
|
||||
{
|
||||
return $this->belongsTo(System::class);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user