Created
November 13, 2013 16:27
-
-
Save dadamssg/7451921 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Person extends BaseModel | |
{ | |
protected $table = 'people'; | |
protected $fillable = [ | |
'firstName', | |
'lastName', | |
'email', | |
'city', | |
'state', | |
'company_id' | |
]; | |
protected $guarded = ['id']; | |
public function company() | |
{ | |
return $this->belongsTo('Company'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment