42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class ArrangementTemplate
|
|
*
|
|
* @property int $id
|
|
* @property string $title
|
|
* @property Collection|Arrangement[] $arrangements
|
|
* @package App\Models
|
|
* @property-read int|null $arrangements_count
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArrangementTemplate newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArrangementTemplate newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArrangementTemplate query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArrangementTemplate whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ArrangementTemplate whereTitle($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class ArrangementTemplate extends Model
|
|
{
|
|
protected $connection = 'mysql';
|
|
|
|
protected $table = 'arrangement_template';
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'title'
|
|
];
|
|
|
|
public function arrangements()
|
|
{
|
|
return $this->hasMany(Arrangement::class, 'template_id');
|
|
}
|
|
}
|