view src/Generator/Model/stubs/model.pivot.stub @ 23:827efbf4d73c main-dev

Huge changes to the relationships for models and more complex
author Luka Sitas <sitas.luka.97@gmail.com>
date Fri, 11 Apr 2025 20:50:20 -0400
parents b0b2e79ad8e6
children 31109c61ce02
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_may_relationships }}
		
    // HasManyThrough
		# {{ has_many_through_relationships }}

}