We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
primaryKeyType
1 parent e460543 commit 3497096Copy full SHA for 3497096
src/Support/ModelHelper.php
@@ -68,6 +68,20 @@ public function primaryKey($model): string
68
->getKeyName();
69
}
70
71
+ /**
72
+ * @param \Illuminate\Database\Eloquent\Model|string $model
73
+ *
74
+ * @throws \Helldar\LaravelSupport\Exceptions\IncorrectModelException
75
76
+ * @return string
77
+ */
78
+ public function primaryKeyType($model): string
79
+ {
80
+ return $this
81
+ ->model($model)
82
+ ->getKeyType();
83
+ }
84
+
85
/**
86
* @param \Illuminate\Database\Eloquent\Model|string $model
87
*
0 commit comments