Last active
May 23, 2019 23:18
-
-
Save Luizgpp/d734ee6e2cbd1e51565c8e3ede4d0440 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 Colaborador extends Model | |
{ | |
protected $table = "colaboradores"; | |
public function user() | |
{ | |
return $this->belongsTo(User::class); | |
} | |
public function cargo() | |
{ | |
return $this->belongsTo(Cargo::class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment