Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

Commit bdf2cff

Browse files
committed
Removed confusing example
The code examples above and below this change, as well as the text below of this change, talk about the "User" model, but the old code example creates a "Photo" model.
1 parent 635d4ea commit bdf2cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: eloquent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To get started, create an Eloquent model. Models typically live in the `app` dir
4040

4141
You may also generate Eloquent models using the `make:model` command:
4242

43-
php artisan make:model Photo
43+
php artisan make:model User
4444

4545
Note that we did not tell Eloquent which table to use for our `User` model. The lower-case, plural name of the class will be used as the table name unless another name is explicitly specified. So, in this case, Eloquent will assume the `User` model stores records in the `users` table. You may specify a custom table by defining a `table` property on your model:
4646

0 commit comments

Comments
 (0)