]> _ Git - psq.git/commitdiff
Update User.php
authorLouis Jeckel <louis.jeckel@outlook.cm>
Fri, 11 Sep 2020 14:05:41 +0000 (16:05 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Fri, 11 Sep 2020 14:05:41 +0000 (16:05 +0200)
app/Nova/User.php

index 9d764e1a04d1d2c3ed41ec69f48a14745eaa7cd2..4e88bd4f3745512ffc0f03a8dc954c5832b0aff6 100644 (file)
@@ -68,7 +68,7 @@ class User extends Resource
             Text::make('Téléphone', 'phone'),
             new Panel('Adresse', $this->addressFields()),
             new Panel('Affiliation', [
-                BelongsTo::make('Organisation', 'organization', Organization::class)->searchable(),
+                BelongsTo::make('Organisation', 'organization', Organization::class)->searchable()->nullable(),
             ]),
             Boolean::make('Compte activé', 'reg_complete')->hideWhenCreating(),
             Select::make('Type')->options([