Last active
September 12, 2022 18:31
-
-
Save tobyjoiner/4648961a4f5521f16a97434f5cbf50ea 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
public function getSalesmanTerritory() | |
{ | |
return | |
$this->salesman->fname . | |
' ' . | |
$this->salesman->lname . | |
' ' . | |
$this->territory->name; | |
} | |
public function salesman() | |
{ | |
return this->belongsTo(Salesman::class); | |
} | |
public function territory() | |
{ | |
return this->belongsTo(Territory::class); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment