view src/Generator/Model/snippets/belongs_to_relation.stub @ 26:555bfaa500ac codex

Big update for view creation based on the column type.
author Luka Sitas <sitas.luka.97@gmail.com>
date Thu, 15 May 2025 21:50:38 -0400
parents 827efbf4d73c
children
line wrap: on
line source


public function {{relationName}}()
{
	return $this->belongsTo({{relatedModel}}::class, '{{columnName}}');
}