agb registrierung wip
This commit is contained in:
1 parent
b5d090cf5e
commit
04e2797667
13 files changed
+343
-68
No files matched your search
+11
-2
@@ -27,6 +27,8 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'first_name',
|
||||
'last_name',
|
||||
'email',
|
||||
'konto_id',
|
||||
'password',
|
||||
@@ -36,12 +38,16 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
|
||||
'first_name',
|
||||
'last_name',
|
||||
'gender',
|
||||
|
||||
'title',
|
||||
'company',
|
||||
'uid_number',
|
||||
'address',
|
||||
'place',
|
||||
'location',
|
||||
'code',
|
||||
'country',
|
||||
'kontoemail',
|
||||
'phone',
|
||||
'uid_number',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -78,6 +84,9 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
|
||||
static::addGlobalScope(new KontoScope);
|
||||
|
||||
static::creating(function (User $user) {
|
||||
|
||||
dd($user);
|
||||
|
||||
$user->role = 'gutachter';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user