Laravel 5 44ABDA604F695CE08BDFFEFF46FAD63D0第28行中的FatalErrorException:语法错误,意外(#x27;)';,应为'';或者'';

Laravel 5 44ABDA604F695CE08BDFFEFF46FAD63D0第28行中的FatalErrorException:语法错误,意外(#x27;)';,应为'';或者'';,laravel-5,Laravel 5,我是新的拉威尔5,并使简单的wep应用程序登录和注册论坛 但是当我使用 return View::make('users.new')->with('title', 'Make it snappy Q&A - Register'); 我犯了这个致命的错误 44abda604f695ce08bdffef46fad63d0第28行中的FatalErrorException: 语法错误,意外“'),应为“,”或“;”让我头痛了很长时间,无法解决 这是我的用户控制器: namespace

我是新的拉威尔5,并使简单的wep应用程序登录和注册论坛

但是当我使用

 return View::make('users.new')->with('title', 'Make it snappy Q&A - Register');
我犯了这个致命的错误

44abda604f695ce08bdffef46fad63d0第28行中的FatalErrorException: 语法错误,意外“'),应为“,”或“;”让我头痛了很长时间,无法解决

这是我的用户控制器:
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')->with('title', 'Make it snappy Q&A - Register');
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        $validation = User::validate(Input::all());

        if($validation->passes()){
            User::create(array(
                'username'=>Input::get('username'),
                'password'=>Hash::make(Input::get('password'))
                ));
             return Redirect::to_route('home')->with('message','Thanks for registering!');
        } else{
            return Redirect::to_route('register')->with_errors($validation)->with_input();
        }

    }
这是我的布局页面new.blade.php:

    @extends('layout.default')

    @section('content')
    <h1>Register</h1>
    @if($errors->has())
    <p>The following error has occured:</p>
    <ul id ="form-errors">
       {{ $errors->first('username','<li>:message</li>') }}
       {{ $errors->first('password','<li>:message</li>') }}
       {{ $errors->first('password_confirmation','<li>:message</li>') }}
    </ul>
    @endif
    {!! Form::open('register','POST') !!}
    <P>
        {{ Form::label('username','Username:') }}<br />
        {{ Form::text('username',Input::old('username')) }}
    </P>
    <P>
        {{ Form::label('password','Password:') }}<br />
        {{ Form::password('password') }}
    </P>
    <P>
        {{ Form::label('password_confirmation','Confirm password:') }}<br />
        {{ Form::password('password_confirmation')) }}
    </P>

    <p>{{ Form::submit('Register') }}</p>
    {!! Form::close() !!}
    @endsection
@extends('layout.default')
@节(“内容”)
登记
@如果($errors->has())
发生了以下错误:

    {{$errors->first('username','li>:message')} {{$errors->first('password','li>:message')} {{$errors->first('password_confirmation','li>:message')}
@恩迪夫 {!!Form::open('register','POST')

{{Form::label('username','username:')}
{{Form::text('username',Input::old('username'))}

{{Form::label('password','password:')}
{{Form::password('password')}

{{Form::label('password_confirmation','Confirm password:')}
{{Form::password('password_confirmation'))}

{{Form::submit('Register')}

{!!Form::close()!!} @端部
这一行

{{ Form::password('password_confirmation')) }}
有一个额外的
,应该是

{{ Form::password('password_confirmation') }}

请,至少,修复你的代码的格式,它是完全混乱的。事实上,我是新来的拉威尔。代码中有任何错误。这里有我的新代码。这里是我的新版本。BLADE“这里输入代码”<代码>实际上是Ne.BLADE.PHP布局。它被错误地张贴了,但是我不能计算出刀片中的错误。你能整理一下吗?好吧,SRY,我确实改变了我的SnpPiTo问题@ ANANDHESRESTA57。如果您按下答案旁边的“勾选”按钮,您可以接受该选项作为问题的答案。