Commit 153c2837 authored by Taylor Otwell's avatar Taylor Otwell

Update docs.

parent 9bdf0264
......@@ -36,12 +36,14 @@ Eloquent makes a few basic assumptions about your database structure:
- Each table should have a primary key named **id**.
- Each table name should be the plural form of its corresponding model name.
Sometimes you may wish to use a table name other than the plural form of your model. No problem. Just add a static **table** property your model:
Sometimes you may wish to use a table name other than the plural form of your model, or a diffrent primary key column. No problem. Just add a static **table** property your model:
class User extends Eloquent {
public static $table = 'my_users';
public static $key = 'my_primary_key';
}
<a name="get"></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment