send($mailable); } } public function sendSms(User $user, String $text) { $cliant = new client(); $data= array_merge( config('services.sms.auth'), ['op'=>'send', 'message'=>$text, 'to'=>[$user->phone_number], ] ); $options=[ 'json'=>$data ]; $response = $cliant->post(config('services.sms.uri'),$options); echo $response->getbody(); } }