Heimdall/app/SettingGroup.php

32 lines
571 B
PHP
Raw Normal View History

2018-02-04 20:50:59 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
2018-02-04 20:50:59 +00:00
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;
/**
* @return HasMany
*/
public function settings(): HasMany
2018-02-04 20:50:59 +00:00
{
return $this->hasMany(\App\Setting::class, 'group_id');
2018-02-04 20:50:59 +00:00
}
}