diff src/Generator/Model/stubs/model.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 3426c7e91c24
children 31109c61ce02
line wrap: on
line diff
--- a/src/Generator/Model/stubs/model.stub	Wed Feb 26 20:12:17 2025 -0500
+++ b/src/Generator/Model/stubs/model.stub	Fri Apr 11 20:50:20 2025 -0400
@@ -27,6 +27,10 @@
 			# {{ atributeInsertPoint }}
     ];
 
+		protected $fillable =[
+			# {{ fillableInsertPoint }}
+		];
+
 
 		public static function boot() : void {
 			parent::boot();
@@ -45,8 +49,12 @@
 		//relations
 
 		// BelongsTo
+		# {{ belongs_to_relationships }}
 
 		// HasMany
+		# {{ has_may_relationships }}
 		
+    // HasManyThrough
+		# {{ has_many_through_relationships }}
 
 }