laravel/framework — pull request #3424 by markhuot (2014-02-01 14:07:58+00:00)
Title: Update foreign key generation in belongsTo

Now uses the `getForeignKey` method on the related model. This is useful when subclassing Eloquent and overriding key names while working with non-standard column names.

For example, if you have a BaseModel such as…

```php