public function postSlack() { $weather = new Weather(); $locationStr = Input::get('text'); $locations = Location::get_by_str($locationStr); if (empty($locations)) { return "Hmmm, we can't seem to find that place"; } $weather->lat = $locations[0]->lat; $weather->lng = $locations[0]->lon; $weather->set_current(); //dd($weather); if ($weather->ride) { return "Hell Yeah it's ride time! Looks like it's " . $weather->temperature . "C and " . $weather->descriptive; } else { return "Nope, no ride for you. Looks like it's " . $weather->temperature . "C and " . $weather->descriptive; } }