osb/app/Models/SiteDetails.php

22 lines
385 B
PHP
Raw Normal View History

2018-07-31 04:11:00 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Leenooks\Traits\CompositeKeys;
class SiteDetails extends Model
{
use CompositeKeys;
public $fillable = ['site_id','key','value'];
public $incrementing = false;
protected $primaryKey = ['site_id','key'];
public $timestamps = FALSE;
public function site()
{
return $this->belongsTo(Site::class);
}
}