Support the ongoing development of Laravel.io →
Views Blade Forms

@section('content')

	<h1>Neue Vorlesung Erstellen<h1>

			{{ Form::open(array('url'=> 'vorlesung/create,)) }}

	<p>
			{{ Form::label('name', 'Name:') }}	</br>
			{{ Form::text('name') }}
	</p>

	<p> {{ Form::submit('Vorlesung erstellen') }} </p>

	{{Form::close() }}



@endsection
@stop

If i want to open that page it throws me the error:

syntax error, unexpected 'name' (T_STRING), expecting ')'

Please help me :))

Last updated 2 years ago.
0

You typed a comma instead of a single quote

This:

{{ Form::open(array('url'=> 'vorlesung/create,)) }}

Should be this:

{{ Form::open(array('url'=> 'vorlesung/create')) }}
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

eftz eftz Joined 26 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.