I'm using a Laravel Package for sending SMS. Package Link: https://github.com/arif98741/laravelbdsms
sms_settings Table:
| id | ac_open | ac_open_sms | 
|---|---|---|
| 1 | 1 | Hello {$name}, Your Account has been created | 
My controller:
 $sms_settings = SmsSetting::where('id', 1)->first();
 $name = $request->name;
 $msg =  $sms_settings->ac_open_sms;
 $send= SMS::shoot($request->mobile, $msg);
Here I want to save the message body in database. While saving I want to pass a varibale $name. So that I can show the name anywhere in message body.
While sending the message it shows client error.
If I set the message body like this:  $msg =  "{$name}, \r\n Your account has been created"; it works.
How can I make it work?
 
     
     
    