title: FatalErrorException in 44abda604f695ce08bdffef46fad63d0 line 28: syntax error, unexpected ')', expecting ',' or ';'
body: <p>I am new to laravel 5 and making simple wep app for login and registering forum.</p>
  
  <p>But when I use</p>
  
  <pre><code> return View::make('users.new')-&gt;with('title', 'Make it snappy Q&amp;A - Register');
  </code></pre>
  
  <p>i get this fatal error</p>
  
  <blockquote>
    <p>FatalErrorException in 44abda604f695ce08bdffef46fad63d0 line 28:
            syntax error, unexpected ')', expecting ',' or ';'giving me headache for long time and couldnot resolve.</p>
  </blockquote>
  
  <p>Here is my User controller:
      
  
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  use View;
  
  class User extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
       public $restful = true;
  
      public function index()
      {
          return View::make('users.new')-&gt;with('title', 'Make it snappy Q&amp;A - Register');
      }
  
      /**
       * Show the form for creating a new resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function create()
      {
          $validation = User::validate(Input::all());
  
          if($validation-&gt;passes()){
              User::create(array(
                  'username'=&gt;Input::get('username'),
                  'password'=&gt;Hash::make(Input::get('password'))
                  ));
               return Redirect::to_route('home')-&gt;with('message','Thanks for registering!');
          } else{
              return Redirect::to_route('register')-&gt;with_errors($validation)-&gt;with_input();
          }
  
      }
  </code></pre>
  
  <p>Here is my layout page new.blade.php:</p>
  
  <pre><code>    @extends('layout.default')
  
      @section('content')
      &lt;h1&gt;Register&lt;/h1&gt;
      @if($errors-&gt;has())
      &lt;p&gt;The following error has occured:&lt;/p&gt;
      &lt;ul id ="form-errors"&gt;
         {{ $errors-&gt;first('username','&lt;li&gt;:message&lt;/li&gt;') }}
         {{ $errors-&gt;first('password','&lt;li&gt;:message&lt;/li&gt;') }}
         {{ $errors-&gt;first('password_confirmation','&lt;li&gt;:message&lt;/li&gt;') }}
      &lt;/ul&gt;
      @endif
      {!! Form::open('register','POST') !!}
      &lt;P&gt;
          {{ Form::label('username','Username:') }}&lt;br /&gt;
          {{ Form::text('username',Input::old('username')) }}
      &lt;/P&gt;
      &lt;P&gt;
          {{ Form::label('password','Password:') }}&lt;br /&gt;
          {{ Form::password('password') }}
      &lt;/P&gt;
      &lt;P&gt;
          {{ Form::label('password_confirmation','Confirm password:') }}&lt;br /&gt;
          {{ Form::password('password_confirmation')) }}
      &lt;/P&gt;
  
      &lt;p&gt;{{ Form::submit('Register') }}&lt;/p&gt;
      {!! Form::close() !!}
      @endsection
  </code></pre>