mein-sterntours/app/Models/Sym/ArrangementTemplate.php
2019-03-19 15:47:23 +01:00

29 lines
814 B
PHP

<?php
namespace App\Models\Sym;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\Sym\ArrangementTemplate
*
* @property int $id
* @property string|null $title
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Sym\Arrangement[] $arrangements
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\ArrangementTemplate whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Sym\ArrangementTemplate whereTitle($value)
* @mixin \Eloquent
*/
class ArrangementTemplate extends Model
{
protected $connection = 'mysql';
protected $table = 'arrangement_template';
public function arrangements()
{
return $this->hasMany('App\Models\Sym\Arrangement', 'template_id', 'id')->orderBy('view_position', 'DESC');
}
}