view src/Generator/Model/stubs/model.pivot.stub @ 24:31109c61ce02 codex

Refactor RelationshipNavigator formatting and implement belongsTo, hasMany, belongsToMany injection in ModelGenerator
author Luka Sitas <sitas.luka.97@gmail.com>
date Tue, 22 Apr 2025 21:37:44 -0400
parents 827efbf4d73c
children b17f81b804ff
line wrap: on
line source

<?php

namespace {{ namespace }};

use Illuminate\Database\Eloquent\Relations\Pivot;

class {{ class }} extends Pivot
{
    //

    /**
     * Indicates if the model should be timestamped.
     * By default our pivots will not use timestamps
     *
     * @var bool
     */
    public $timestamps = false;


		//relations

		// BelongsTo
		# {{ belongs_to_relationships }}

		// HasMany
		# {{ has_many_relationships }}
		
    // HasManyThrough
		# {{ has_many_through_relationships }}

}