view src/Generator/Model/stubs/model.pivot.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 31109c61ce02
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 }}

}