Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php FatalErrorException:语法错误,意外';:';,应为'';或者'';在拉维尔_Php_Laravel_Laravel 5 - Fatal编程技术网

Php FatalErrorException:语法错误,意外';:';,应为'';或者'';在拉维尔

Php FatalErrorException:语法错误,意外';:';,应为'';或者'';在拉维尔,php,laravel,laravel-5,Php,Laravel,Laravel 5,这件事让我很烦。我收到此解析错误:语法错误,意外的“:”,应为“,”或“;”在第21行的/opt/lampp/htdocs/pratice/storage/framework/views/36f62563d0e17e05a5f15bec012dd0cd中 我的视图文件是 @extends('layouts.loginlayout') @section('content') @if (session('status')) <div class="alert ale

这件事让我很烦。我收到此解析错误:
语法错误,意外的“:”,应为“,”或“;”在第21行的/opt/lampp/htdocs/pratice/storage/framework/views/36f62563d0e17e05a5f15bec012dd0cd中

我的视图文件是

@extends('layouts.loginlayout')

@section('content')

    @if (session('status'))
        <div class="alert alert-success">
            {!! session('status') !!}
        </div>
    @endif

    @if (count($errors) > 0)
        <div class="alert alert-danger">
            <strong>Whoops!</strong> There were some problems with your input.<br><br>
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{!! $error !!}</li>
                @endforeach
            </ul>
        </div>
    @endif 
//this is line 21
    {!! Form:open() !!}
        <div class="form-group">
            {!! Form::label('email','Email:') !!}
            {!! Form::text('email',null,['class'=>'form-control','id'=>'email']) !!}
        </div>

        {!! Form::submit('Login',['class'=>'btn pull-right default-button']) !!}


    {!! Form:close() !!}

@endsection
@extends('layouts.loginlayout'))
@节(“内容”)
@if(会话(“状态”))
{!!会话('status')!!}
@恩迪夫
@如果(计数($errors)>0)
哇您的输入有一些问题。

    @foreach($errors->all()作为$error)
  • {!!$error!!}
  • @endforeach
@恩迪夫 //这是21号线 {!!Form:open()!!} {!!Form::label('email','email:') {!!Form::text('email',null,['class'=>'Form-control','id'=>'email']) {!!表单::提交('Login',['class'=>'btn右拉默认按钮]) {!!Form:close()!!} @端部
{!!表单:open()!!}
更改为

  {!! Form::open() !!}
{!! Form::close() !!}
{!!Form:close()!!}

  {!! Form::open() !!}
{!! Form::close() !!}

第21行是哪一行?在@endif和{!!Form:open()!!}
Form:open()
之间,而不是
Form::open()
?未解决..出现相同错误