| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace ThurData\Servers\KerioEmail\Core\Models\Whmcs;
- use Illuminate\Database\Eloquent\model as EloquentModel;
- /**
- * Description of ServersRelations
- *
- * @autor ThurData <info@thrudata.ch>
- *
- * @property int $groupid
- * @property int $serverid
- */
- class ServersRelations extends EloquentModel
- {
- /**
- * Table name
- *
- * @var string
- */
- protected $table = 'tblservergroupsrel';
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public $timestamps = false;
- public function servers()
- {
- return $this->hasOne(Servers::class, 'id', 'serverid');
- }
- public function group()
- {
- return $this->hasOne(ServersGroups::class, 'id', 'serverid');
- }
- }
|