add child element ordering

This commit is contained in:
Yisroel Baum 2026-06-22 09:51:21 +03:00
parent 7323925319
commit 62dc119b11
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
12 changed files with 554 additions and 11 deletions

View file

@ -16,6 +16,7 @@ use Illuminate\Database\Eloquent\Model;
* @property string|null $long_pdf_path
* @property string|null $youtube_url
* @property int|null $parent_element_id
* @property int $sort_order
*
* @method static Builder<static>|ElementModel newModelQuery()
* @method static Builder<static>|ElementModel newQuery()
@ -30,6 +31,7 @@ use Illuminate\Database\Eloquent\Model;
* @method static Builder<static>|ElementModel whereShortPdfPath($value)
* @method static Builder<static>|ElementModel whereLongPdfPath($value)
* @method static Builder<static>|ElementModel whereYoutubeUrl($value)
* @method static Builder<static>|ElementModel whereSortOrder($value)
*
* @mixin \Eloquent
*/
@ -49,10 +51,12 @@ class ElementModel extends Model
'long_pdf_path',
'youtube_url',
'parent_element_id',
'sort_order',
];
protected $casts = [
'set_id' => 'integer',
'parent_element_id' => 'integer',
'sort_order' => 'integer',
];
}