Skip to content

Commit f4c68ae

Browse files
committed
docs: add use Entities\User
1 parent 549b5b6 commit f4c68ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/quickstart.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ Since Shield uses a more complex user setup than many other systems, due to the
268268
By default, the only values stored in the users table is the username. The first step is to create the user record with the username. If you don't have a username, be sure to set the value to `null` anyway, so that it passes CodeIgniter's empty data check.
269269

270270
```php
271+
use CodeIgniter\Shield\Entities\User;
272+
271273
$users = model('UserModel');
272274
$user = new User([
273275
'username' => 'foo-bar',

0 commit comments

Comments
 (0)