title: ErrorException in registerController.php line 18: Undefined variable: name
body: <p>I made a signup form with laravel 5 and im getting this error</p>
  
  <p>ErrorException in registerController.php line 18:
  Undefined variable: name</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Hash;
  use App\User;
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  
  class registerController extends Controller
  {
      public function register()
      {
          $request = new Request;
  
          $user = new User;
  
          $user-&gt;$name = $request-&gt;input('nameInputSignup');
          $user-&gt;$email = $request-&gt;input('emailInputSignup');
          $user-&gt;$password = HASH::make($request-&gt;input('passwordInputSignup'));
          $user-&gt;save();
  
          return view('index');
      }
  }
  Route::post('/register' , 'registerController@register');
  </code></pre>
  
  <p>here is my code, can anyone help with this error.</p>