We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3d1b88 commit c0df57cCopy full SHA for c0df57c
1 file changed
app/Models/User.php
@@ -146,4 +146,13 @@ public function sendPasswordResetNotification($token)
146
{
147
$this->notify(new ResetPasswordNotification($token));
148
}
149
+
150
+ /**
151
+ * Return true or false depending on wether the user is root admin or not.
152
+ *
153
+ * @return boolean the user is root admin
154
+ */
155
+ public function isRootAdmin() {
156
+ return $this->root_admin === 1;
157
+ }
158
0 commit comments