Created
December 11, 2015 18:30
-
-
Save amy/7ea2210ff8f66726be48 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // project/app/Application.php | |
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Application extends Model | |
| { | |
| protected $table = 'application'; | |
| public $timestamps = false; | |
| public function student() { | |
| return $this->belongsTo('App\Student', 'SSN', 'SSN'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment