Heimdall/app/SettingGroup.php

28 lines
471 B
PHP
Raw Normal View History

2018-02-04 20:50:59 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class SettingGroup extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'setting_groups';
/**
* Tell the Model this Table doesn't support timestamps.
*
* @var bool
*/
public $timestamps = false;
public function settings()
{
return $this->hasMany(\App\Setting::class, 'group_id');
2018-02-04 20:50:59 +00:00
}
}