First Commit

This commit is contained in:
Kevin Adametz 2018-10-29 09:15:36 +01:00
commit 0c9a118281
633 changed files with 76612 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<?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 $table = 'arrangement_template';
public function arrangements()
{
return $this->hasMany('App\Models\Sym\Arrangement', 'template_id', 'id')->orderBy('view_position', 'DESC');
}
}