FatalErrorException: syntax error, unexpected ':', pending ',' or ';' in Laravel

This thing annoys me a lot. I get this parsing error: syntax error, unexpected ':', expecting ',' or ';' in /opt/lampp/htdocs/pratice/storage/framework/views/36f62563d0e17e05a5f15bec012dd0cd at line 21 syntax error, unexpected ':', expecting ',' or ';' in /opt/lampp/htdocs/pratice/storage/framework/views/36f62563d0e17e05a5f15bec012dd0cd at line 21

My view file

 @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 
+6
source share
1 answer

Change {!! Form:open() !!} {!! Form:open() !!} on

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

and {!! Form:close() !!} {!! Form:close() !!} to

 {!! Form::close() !!} 
+9
source

Source: https://habr.com/ru/post/982839/


All Articles