Basically, i am trying to validate form used in "Laravel" where i need to know the name of the form.
For instance in HTML we can simply write:
<form action="" name="registration">
From the above code we can get the name of the form whereas in "Laravel" I cannot specify the form name as such.
You can use this library for laravel form syntax:
https://laravelcollective.com/docs/5.2/html
You can provide form name like this in the form syntax:
{!! Form::open(array('url'=>'some route url','id'=>"some_form_id",'name'=>"form name")) !!}
Try this,
{!! Form::open(array('route' => 'your route url', 'name' => 'registration')) !!}
You will get sample contact form here using laravel form and html tags
Give it a try, this will work.
Above answers are correct as below you can achieve it.
{{ Form::open(['action' => 'your_action_url','name' => 'registration', 'class'=>'your classes']) }}
Add more attributes of form as you want.
@SnowmanOnFire : For your revised comment, following will work
{!! Form::open( array( 'route' => array(getLang(). '.admin.package.update', $package->id), 'method' => 'PATCH', 'files'=>true, 'name' => 'registration')) !!}