title: How to concatenate Faker's random first name and its last name to a full name in Laravel 5
body: <p>I am trying to use Faker in Laravel 5. Now I need to create some users in my User table, I choose Faker.</p>
  
  <p>I know how to create random firstname, lastname or userName, but I want to concatenate each FN and LN to be username, how can I do that? Here is my codes in seeder file.</p>
  
  <pre><code>public function run()
  {
      $faker = Faker::create();
  
      foreach(range(1, 10) as $index) {
          User::create([
              'first_name'     =&gt; $faker-&gt;firstName($gender = null|'male'|'female'),
              'last_name'     =&gt; $faker-&gt;lastName,
              'username'     =&gt; $faker-&gt;userName(),
              'email'     =&gt; $faker-&gt;email,
              'password'     =&gt; bcrypt($faker-&gt;password(6))
          ]);
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/xgNDK.jpg" alt="image of seeder content"></p>