hej,
dlaczego nie mogę tak
$customers = Customer::BelongingToUser()->pluck('name', 'id');
$locations = $customers->location(); //Location::pluck('location_name', 'id');
dostaje
Method location does not exist.
w przypadku $customers->location property
oczywiście na Customer
public function locations()
{
return $this->hasMany('App\Models\Location');
}