Skip to content

Commit 5e8bf2d

Browse files
author
Shawn McCool
committed
Merge branch 'hotfix-typo' into develop
2 parents 881dbf6 + e54f4cc commit 5e8bf2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Laravel provides an easy method of protecting your application from cross-site r
129129

130130
In this example we need to create a drop-down list that allows an administrator to choose a user account. To do so we use the lists() method.
131131

132-
$user_options = User::where('type', '=', 'standard')->lists('real_name', 'id')
132+
$user_options = User::where('type', '=', 'standard')->lists('real_name', 'id');
133133

134134
This will create an array called $user_options which will have the user record's 'id' field as the key and the user record's 'real_name' field as the value. This is ideal for drop-down lists.
135135

0 commit comments

Comments
 (0)