title: how to concatenate a string in controller side to autofill form?
body: <p>I have a bootstrap form where user enter an email I want if user doesn't enter @scoops.com it concatenates automatically either form side or controller side</p>
  <p>In controller it saves using this <code>$customer-&gt;email = $request-&gt;email;</code> if want to check at controller side how I can check if user enters @scoops.com at the end of user name. If it is missing then concatenate @scoops.com with user name</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div class=&quot;form-group&quot;&gt;
    &lt;label&gt;Email &lt;span style=&quot;opacity: 0.5; font-style: italic; color: red;&quot;&gt;(Required)&lt;/span&gt;&lt;/label&gt;
    &lt;div class=&quot;input-group&quot;&gt;
      &lt;input type=&quot;search&quot; name=&quot;email&quot; id=&quot;email&quot; autocomplete=&quot;off&quot; class=&quot;form-control input-lg&quot; placeholder=&quot;Enter Email&quot; name=&quot;name&quot; required=&quot;@scoops.com&quot; / onfocus='tmp=this.value;this.value=&quot;&quot;' onblur='if(this.value==&quot;&quot;)this.value=tmp'&gt;
      &lt;div class=&quot;input-group-append&quot;&gt;
        &lt;span class=&quot;input-group-text&quot;&gt;@scoops.com&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;ul id=&quot;suggested-emails&quot; class=&quot;list-group&quot;&gt;&lt;/ul&gt;
    &lt;span id=&quot;error_email&quot;&gt;&lt;/span&gt; 
    @if($errors-&gt;has('email'))
      &lt;div class=&quot;alert alert-danger&quot;&gt;
        {{ $errors-&gt;first('email') }}
      &lt;/div&gt;
    @endif
  &lt;/div&gt;
  
  `
  </code></pre>