Skip to content

Commit

Permalink
enforce it being required so you get the asterisk
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Nov 28, 2023
1 parent febd968 commit 9fc72fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Controllers/CP/Users/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function create(Request $request)
$this->authorize('create', UserContract::class);

$blueprint = User::blueprint();
$blueprint->ensureFieldHasConfig('email', ['validate' => 'required']);

$fields = $blueprint->fields()->preProcess();

Expand Down

0 comments on commit 9fc72fe

Please sign in to comment.