belongsTo.stub 201 B

12345
  1. public function {%relationMethod%}(): \think\model\relation\BelongsTo
  2. {
  3. return $this->{%relationMode%}({%relationClassName%}, '{%relationForeignKey%}', '{%relationPrimaryKey%}');
  4. }