Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function countryInverso(){
- return $this->belongsTo(Country::class);
- }
- public function umPraUmReverso(){
- $location = Location::where('latitude', 54)->get()->first();
- $country = $location->countryInverso;
- dd($country);
- }
- public function country(){
- return $this->belongsTo(Country::class);
- }
- public function umPraUmReverso(){
- $location = Location::where('latitude', 54)->get()->first();
- $country = $location->country;
- dd($country);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement