Last active
September 11, 2020 14:20
-
-
Save EricMcWinNer/fe3c602f975842b0109b46864bcf1d5e 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 | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class PoliticalParty extends Model { | |
/** | |
* Get the candidates this party has | |
*/ | |
public function candidates() { | |
return $this->hasMany(App\Model\Candidate::class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment