/** * Construct a new AppointmentReminder * * @param Illuminate\Support\Collection $twilioClient The client to use to query the API */ function __construct() { $this->appointments = \App\Appointment::appointmentsDue()->get(); $twilioConfig = config('services.twilio'); $accountSid = $twilioConfig['twilio_account_sid']; $authToken = $twilioConfig['twilio_auth_token']; $this->sendingNumber = $twilioConfig['twilio_sending_number']; $this->twilioClient = new \Services_Twilio($accountSid, $authToken); }