Skip to content

Commit feed60a

Browse files
Refactor and optimize migrations for improved performance
1 parent 04f2e90 commit feed60a

File tree

4 files changed

+645
-515
lines changed

4 files changed

+645
-515
lines changed

app/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class User extends Authenticatable
1818
use TwoFactorAuthenticatable;
1919

2020
protected $guarded = [];
21+
2122
/**
2223
* The attributes that are mass assignable.
2324
*
@@ -72,7 +73,6 @@ public function role()
7273

7374
public function isAdmin()
7475
{
75-
// return $this->role()->id == 1;
7676
return $this->role->id == 1;
7777
}
7878
}

0 commit comments

Comments
 (0)