Laravel required if validation issue - laravel

Laravel required if validation issue
Blade:
{{ Form::open(['route' => ['updateEmailSettings']]) }}
<div class="form-group row">
{{ Form::label('driver','Mail Driver',['class' => 'col-md-3 col-form-label required']) }}
<div class="col-md-9">
{{ Form::select('driver',$drivers, null,['class' => 'form-control', 'placeholder' => 'Select']) }}
</div>
</div>
<div class="form-group row">
<label class="col-md-3 col-form-label font-weight-bold">Mandrill</label>
</div>
<div class="form-group row">
{{ Form::label('mailgun_secret','Secret',['class' => 'col-md-3 col-form-label']) }}
<div class="col-md-9">
{{ Form::text('mailgun["secret"]',null,['class' => 'form-control', 'id' => 'mailgun_secret']) }}
</div>
</div>
<div class="form-group row">
<div class="col-md-9 ml-md-auto">
{{ Form::button('<i class="far fa-save"></i> Save',['class'=>'btn btn-primary mr-3','type'=>'submit']) }}
<a class="btn btn-danger" href="{{ route('emailSettings') }}"><i class="far fa-times-circle"></i> Cancel</a>
</div>
</div>
{{ Form::close() }}
Form Request:
return [
'driver' => 'required',
'mailgun.*.domain' => 'required_if:driver,mailgun'
];
Validation always fails. Please suggest me if i miss anything.

Resolved myself
Blade: Removed double quotes inside the bracket.
{{ Form::text('mailgun[secret]',null,['class' => 'form-control', 'id' => 'mailgun_secret']) }}
Form Request: Removed asterisk
'mailgun.domain' => 'required_if:driver,mailgun'

Related

Laravel view load twice to display comment

I don't know why the page has to load twice to display comments.
Here is my route: Route::post('/addComment', 'CommentsController#addComment');
Here is my controller:
public function addComment(Request $request)
{
$this->validate($request, [
'name' => 'required',
'body' => 'required',
]);
$lesson_id = $request->lesson_id;
$comment = new Comment;
$comment->name = $request->input('name');
$comment->body = $request->input('body');
$comment->parrent_id = '0';
$comment->lesson_id = $request->lesson_id;
$comment->save();
return back();
}
Here is my view:
<div class="leave_review">
<h3 class="blog_heading_border"> コメント </h3>
{!! Form::open(['action' => ['CommentsController#addComment'], 'method' => 'POST', 'id' => 'postForm' ]) !!}
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
<input type="hidden" id ="lesson_id" name="lesson_id" value="{{$lesson->id}}" />
</div>
<div class="row">
<div class="col-sm-6">
#error('name')
<div class="alert alert-danger">{{ $message }}</div>
#enderror
{{Form::label('name','名前')}}
{{Form::text('name', '', ['class' => 'form-group', 'id' => 'name' ]) }}
</div>
<div class="col-sm-12">
#error('body')
<div class="alert alert-danger">{{ $message }}</div>
#enderror
{{Form::label('body','メッセージ')}}
{{Form::textarea('body', '', ['class' => 'form-group', 'id' => 'body']) }}
</div>
</div>
<div class="row">
<div class="col-md-12">
</div>
</div>
{{Form::submit('Submit', ['class' => 'send mt_btn_yellow pull-right', 'id' => 'submit'])}}
{!! Form::close() !!}
{{-- End add comment --}}
{{--Display comment--}}
<ol class="review-lists">
#foreach ($comment as $value)
<li class="comment">
<div class="activity_rounded">
<img src="/storage/icon/icon.jpg" alt="image"> </div>
<div class="comment-body">
<h4 class="text-left">{{$value->name}}
<small class="date-posted pull-right">{{ \Carbon\Carbon::parse($value->created_at)->diffForHumans() }}</small>
</h4>
<p>{{$value->body}} </p>
<button class="pull-left mt_btn_yellow" onclick="toggleReply('{{$value->id}}')">返事</button>
{{-- ENd Display comment--}}
#foreach ($comment as $value)
<li class="comment">
<div class="activity_rounded">
<img src="/storage/icon/icon.jpg" alt="image"> </div>
<div class="comment-body">
<h4 class="text-left">{{$value->name}}
<small class="date-posted pull-right">{{ \Carbon\Carbon::parse($value->created_at)->diffForHumans() }}</small>
</h4>
<p>{{$value->body}} </p>
<button class="pull-left mt_btn_yellow" onclick="toggleReply('{{$value->id}}')">返事</button>
{{-- ENd Display comment--}}
you don't have a #endforeach

Making a radio button checked in laravel collectives

How to make a radio button checked in laravel collectives?
{{Form::radio('gender','1',['class'=>'form-check-input'])}}
I'm taking the value from the database and I need to select the appropriate gender value.
$data->gender
Full code is as follows
<div class="col-sm-9" style="margin:auto">
<div class="form-check form-check-inline">
{{Form::radio('gender','1',['class'=>'form-check-input'])}}
<label class="form-check-label ml-2" for="inlineRadio1">Male</label>
</div>
<div class="form-check form-check-inline">
{{Form::radio('gender','2',['class'=>'form-check-input'])}}
<label class="form-check-label ml-2" for="inlineRadio2">Female</label>
</div>
</div>
The data to populate your form should go on your Form::model() method.
Something like this:
On the controller function
// on the controller function
$data['gender'] = 1;
return view('my-view')
->with('data' $data);
On the template
{{ Form::model($data/*, ...*/) }}
<div class="col-sm-9" style="margin:auto">
<div class="form-check form-check-inline">
{{Form::radio('gender','1',['class'=>'form-check-input'])}}
<label class="form-check-label ml-2" for="inlineRadio1">Male</label>
</div>
<div class="form-check form-check-inline">
{{Form::radio('gender','2',['class'=>'form-check-input'])}}
<label class="form-check-label ml-2" for="inlineRadio2">Female</label>
</div>
</div>
{{ Form::close() }}
Add true before options array and empty '' on others
{{ Form::radio('gender', 1, true, ['class'=>'form-check-input', 'id' => 'inlineRadio1']) }}
{{ Form::label('inlineRadio1', 'Male', ['class' => 'form-check-label']) }}
{{ Form::radio('gender', 2, '', ['class'=>'form-check-input', 'id' => 'inlineRadio2']) }}
{{ Form::label('inlineRadio2', 'Female', ['class' => 'form-check-label']) }}

Link Button Not Working in Laravel

I want to edit a record in a CRUD application in laravel where I have a button which has been linked to go to the index view but when I click it, it redirects me to the UPDATE method of the controller.
This is my form:
{!! Form::open(['route' => ['players.update', $player->id], 'method' => 'PUT', 'files'=>'true']) !!}
<div class="row col-md-10 col-md-offset-1 panel">
<div class="col-md-8 col-md-offset-2">
<br />
<div class="form-group">
{{ Form::label('name', 'Player Name') }}
{{ Form::text('name', $player->name, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('file', 'Upload Image') }}
{{ Form::file('pic') }}
</div>
<div class="form-group">
{{Form::button('Save Record', ['type' => 'submit', 'class' => 'btn btn-success'])}}
{!! Form::close() !!}
<a href="{{ route('players.index') }}">
<button class="btn btn-danger" >Cancel</button>
</a>
</div>
</div>
</div>
I have the following button for going back to the index page but this is taking me to the UPDATE method of the controller:
<a href="{{ route('players.index') }}">
<button class="btn btn-danger" >Cancel</button>
</a>
This is my index method in the controller:
public function index()
{
$players = Player::paginate(5);
return view('players.index', compact('players'));
}
This is the UPDATE method in the controller:
public function update(Request $request, $id)
{
return "Hi";
}
This is my route file contents:
Route::resource('news', 'NewsController');
Route::resource('competition', 'CompetitionsController');
Route::resource('players', 'PlayersConroller');
Everything looks fine to me but I don't know what goes wrong here.
Any help is appreciated in advance.
I am not sure if it will solve your issue, try to put your button code outside the form-group div.
You can change your code as
Cancel
You can check your html you have put button inside form tag which of type submit that's why it is submitting the form again.
Replace your form code with:
<div class="row col-md-10 col-md-offset-1 panel">
<div class="col-md-8 col-md-offset-2">
{!! Form::open(['route' => ['players.update', $player->id], 'method' => 'PUT', 'files'=>'true']) !!}
<br />
<div class="form-group">
{{ Form::label('name', 'Player Name') }} {{ Form::text('name', $player->name, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('file', 'Upload Image') }} {{ Form::file('pic') }}
</div>
<div class="form-group">
{{Form::button('Save Record', ['type' => 'submit', 'class' => 'btn btn-success'])}}
</div>
{!! Form::close() !!}
</div>
<a href="{{ route('players.index') }}">
<button class="btn btn-danger">Cancel</button>
</a>
</div>

logout and TokenMismatchException in Laravel 5.4

I have controller where I save invoice, but it is option to add item, bank and company. When I want to save the item and return to the invoice view, there is a problem:
TokenMismatchException
in VerifyCsrfToken.php (line 68)
or I refresh page I get an error: HttpException
This is my controller:
public function create()
{
$banks = Bank::all();
$methods = Payment_method::pluck('name_payment', 'id');
$users = User::pluck('name', 'id');
$items = Item::all();
$vats = Vat::all();
$companies = Company::all('name', 'id');
$numberProform = $this->setNumberProform();
if (isset($_COOKIE["addInvoiceForm"])) {
$previousData = $_COOKIE["addInvoiceForm"];
$previousData = unserialize($previousData);
return view('invoice.addInvoice', compact('items', 'companies', 'users', 'vats', 'numberProform', 'methods', 'banks', 'previousData'));
}
return view('invoice.addInvoice', compact('items', 'companies', 'users', 'vats', 'numberProform', 'methods', 'banks'));
}
public function store(Request $request)
{
if ($request->add === 'item') {
setcookie('addInvoiceForm', serialize($request->input()), time() + (86400 * 30), "/");
return redirect('addItem');
}
$this->validation($request);
$input = Req::all();
$invoice = Invoice::create($input);
$i = 1;
while ($request->has('item_' . $i)) {
$invoice->items()->attach([$request->{'item_' . $i} => ['quantity' => $request->{'quantity_' . $i}]]);
$i++;
}
return redirect('listInvoice');
}
view addInvoice.blade.php:
#extends('layouts.app')
#section('content')
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 col-sm-12 col-sm-offset-0">
<div class="panel panel-default">
{!! Form::open(['url' => 'saveInvoice', 'method' => 'post', 'class' => 'form-horizontal']) !!}
{{ csrf_field() }}
<div class="panel-heading">
<h2>Proforma nr {{$numberProform}}</h2>
</div>
<div class="form-group">
<div class="col-sm-12">
{!! Form::hidden('number', $numberProform) !!}
<span>UWAGA: PRO FORMA nie jest dokumentem księgowym i nie jest podstawą do odliczenia VAT.</span>
</div>
</div>
<div class="panel-body">
<div class="form-horizontal">
<div class="row">
{!! Form::hidden('proforma', "1") !!}
{!! Form::hidden('user_id', \Illuminate\Support\Facades\Auth::user()->getAuthIdentifier()) !!}
<div class="form-group {{ $errors->has('place_issue') ? ' has-error' : '' }}">
<div class="col-sm-4 control-label">
{!! Form::label('place_issue', 'Miejsce:') !!}
</div>
<div class="col-sm-6">
{!! Form::text('place_issue', $previousData['place_issue'], ['class' => 'form-control']) !!}
#if ($errors->has('place_issue'))
<span class="help-block"><strong>{{ $errors->first('place_issue') }} </strong></span>
#endif
</div>
</div>
<div class="form-group {{ $errors->has('date_issue') ? ' has-error' : '' }}">
<div class="col-sm-4 control-label">
{!! Form::label('date_issue', 'Data wystawienia:') !!}
</div>
<div class="col-sm-6">
{!! Form::date('date_issue', $previousData['date_issue'], ['class' => 'form-control']) !!}
#if ($errors->has('date_issue'))
<span class="help-block"><strong>{{ $errors->first('date_issue') }} </strong></span>
#endif
</div>
</div>
<div class="form-group{{ $errors->has('date_payment') ? ' has-error' : '' }}">
<div class="col-sm-4 control-label">
{!! Form::label('date_payment', 'Zapłata do:') !!}
</div>
<div class="col-sm-6">
{!! Form::date('date_payment', $previousData['date_payment'], ['class' => 'form-control']) !!}
#if ($errors->has('date_payment'))
<span class="help-block"><strong>{{ $errors->first('date_payment') }} </strong></span>
#endif
</div>
</div>
<div class="form-group {{ $errors->has('description') ? ' has-error' : '' }}">
<div class="col-sm-4 control-label">
{!! Form::label('description', 'Opis:') !!}
</div>
<div class="col-sm-6">
{!! Form::text('description', $previousData['description'], ['class' => 'form-control']) !!}
#if ($errors->has('description'))
<span class="help-block"><strong>{{ $errors->first('description') }} </strong></span>
#endif
</div>
</div>
{{------------FIRMA------------}}
<div class="form-group {{ $errors->has('company_id') ? ' has-error' : '' }}">
<div class="col-sm-4 control-label">
<label for="company_id">Nazwa firmy</label>
</div>
<div class="col-sm-6">
<select name="company_id" id="company_id" class="form-control">
#foreach($companies as $company)
<option
value="{{$company->id }}" {{ $company->id==$previousData['company_id'] ? 'selected' : '' }}>
{{ $company->name }}
</option>
#endforeach
</select>
#if ($errors->has('company_id'))
<span class="help-block"><strong>{{ $errors->first('company_id') }} </strong></span>
#endif
</div>
<div class="col-sm-2">
<a href="{{ url('addCompany') }}" class="btn btn-success">
<span class="glyphicon glyphicon-plus"></span>
</a>
</div>
</div>
<div class="form-group">
<div class="col-sm-4 control-label">
{!! Form::label('bank_id', 'Bank:') !!}
</div>
<div class="col-sm-6">
<select class="form-control control-label" name="bank_id">
#foreach($banks as $bank)
<option value="{{$bank->id}}" {{ $bank->id==$previousData['bank_id']?'selected':''}}>
{{$bank->label}} ({{$bank->number_bank}});
</option>
#endforeach
</select>
</div>
<div class="col-sm-2">
<a href="{{ url('addBank') }}" class="btn btn-success">
<span class="glyphicon glyphicon-plus"></span>
</a>
</div>
</div>
<div class="form-group {{ $errors->has('item_id') ? ' has-error' : '' }}">
<div class="col-sm-4 control-label">
{!! Form::label('item_1_id', 'Dodaj przedmioty:') !!}
</div>
<div class="col-sm-6">
<select class="form-control control-label search-item">
#foreach($items as $item)
<option value="{{$item->id}}">
{{$item->name}}
</option>
#endforeach
</select>
</div>
<div class="col-sm-2">
<button type="submit" name="add" value="item" href="{{ url('addItem') }}" class="btn btn-success">
<span class="glyphicon glyphicon-plus"></span>
</button>
</div>
</div>
<div class="col-sm-12">
<div class="items-table-wr">
<table class="table table-hover items-table">
<tr>
<th>nazwa</th>
<th>vat</th>
<th>jednostka</th>
<th>cena netto</th>
<th>cena brutto</th>
<th>ilość</th>
<th>suma</th>
<th></th>
</tr>
<tbody class="items-list">
</tbody>
</table>
</div>
</div>
<div class="form-group {{ $errors->has('payment_method_id') ? ' has-error' : '' }}">
<div class="col-sm-4 control-label">
{!! Form::label('payment_method_id', 'Metoda płatności:') !!}
</div>
<div class="col-sm-6">
{!! Form::select('payment_method_id', $methods, ['class' => 'form-control']) !!}
#if ($errors->has('payment_method_id'))
<span class="help-block"><strong>{{ $errors->first('payment_method_id') }} </strong></span>
#endif
</div>
</div>
<div class="form-group">
<div class="col-sm-6 col-sm-offset-4 text-right">
<button type="submit" class="btn btn-primary">Zapisz proformę
<span class="glyphicon glyphicon-ok"></span></button>
</div>
</div>
{{--<pre>--}}
{{-- {{print_r($previousData)}}--}}
{{--</pre>--}}
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
#endsection
I add that the form is csrf token ({{csrf_field() }}).
I have no idea what it is, someone can help me? :)

Laravel - Form only submitting data from one section in blade view

I have two sections included in one view file that I am working out of and they are the sidebar and content sections. I ran into a rather confusing issue, being that both sections contain data that I want submitted via the form.
For some reason, the view is only rendering the form across the content section and excluding all of the data from the sidebar section. Originally I thought opening the form at the top of the content section and closing it at the end of the sidebar section would work. Unfortunately that was not the case and I'm at a loss.
I was wondering if there was any way possible to extend the form so it includes the data across both sections? Any suggestions on how to fix this issue would be greatly appreciated!
#extends('main')
#section('title', 'Sign Up')
#section('content')
{!! Form::open(['route' => 'signup.store', 'method' => 'post']) !!}
<div class="panel-header"><span>{{ $visitor->username }}'s Profile</span></div>
<div class="secondary-panel" align="center"><strong>Player Information</strong></div>
<div class="xbs-border"></div>
<div class="row_1g">
<div class="body-content">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('first', 'First Name') }}
{{ Form::text('first', $player->first, array('class' => 'form-control', 'placeholder' => 'First Name')) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('last', 'Last Name') }}
{{ Form::text('last', $player->last, array('class' => 'form-control', 'placeholder' => 'Last Name')) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('number', 'Number') }}
{{ Form::selectRange('number', 0, 99, $player->num, array('class' => 'form-control')) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('birthday', 'Birthday') }}
{{ Form::date('birthday', $player->birthday, array('class' => 'form-control')) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('city', 'City') }}
{{ Form::text('city', $player->city, array('class' => 'form-control', 'placeholder' => 'City')) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('state_province', 'State/Province') }}
{{ Form::select('state_province',['United States' => ['' => 'State/Province', 'AL'=>'Alabama','AK'=>'Alaska','AZ'=>'Arizona','AR'=>'Arkansas','CA'=>'California','CO'=>'Colorado','CT'=>'Connecticut','DE'=>'Delaware','DC'=>'District of Columbia','FL'=>'Florida','GA'=>'Georgia','HI'=>'Hawaii','ID'=>'Idaho','IL'=>'Illinois','IN'=>'Indiana','IA'=>'Iowa','KS'=>'Kansas','KY'=>'Kentucky','LA'=>'Louisiana','ME'=>'Maine','MD'=>'Maryland','MA'=>'Massachusetts','MI'=>'Michigan','MN'=>'Minnesota','MS'=>'Mississippi','MO'=>'Missouri','MT'=>'Montana','NE'=>'Nebraska','NV'=>'Nevada','NH'=>'New Hampshire','NJ'=>'New Jersey','NM'=>'New Mexico','NY'=>'New York','NC'=>'North Carolina','ND'=>'North Dakota','OH'=>'Ohio','OK'=>'Oklahoma','OR'=>'Oregon','PA'=>'Pennsylvania','RI'=>'Rhode Island','SC'=>'South Carolina','SD'=>'South Dakota','TN'=>'Tennessee','TX'=>'Texas','UT'=>'Utah','VT'=>'Vermont','VA'=>'Virginia','WA'=>'Washington','WV'=>'West Virginia','WI'=>'Wisconsin','WY'=>'Wyoming',], 'Canada' => ['AB' => 'Alberta', 'BC' => 'British Columbia', 'MB' => 'Manitoba', 'NB' => 'New Brunswick', 'NL' => 'Newfoundland', 'NS' => 'Nova Scotia', 'NT' => 'Northwest Territories', 'NU' => 'Nunavut', 'ON' => 'Ontario', 'PE' => 'Prince Edward Island', 'QC' => 'Quebec', 'SK' => 'Saskatchewan', 'YT' => 'Yukon']], $player->state_province, array('class' => 'form-control')) }}
</div>
</div>
</div>
<div class="row_1f" style="text-align:center;border-top:1px solid #ddd;">
<div class="body-content">
<strong>Player name falls under the site terms and conditions.</strong>
</div>
</div>
</div>
<div class="panel-header"><span>Additional Information</span></div>
<div class="secondary-panel" align="center"><strong>Player Availability</strong></div>
<div class="xbs-border"></div>
<div class="row_1g">
<div class="body-content">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('time', 'Preferred Time (EST)') }}
{{ Form::select('time', ['9' => '9:00 PM', '10' => '10:00 PM', '11' => '11:00 PM'], $player->time, array('class' => 'form-control')) }}
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('commitment', 'League Commitment') }}
{{ Form::select('commitment', ['0' => 'Part-Time', '1' => 'Full-Time',], $player->commitment, array('class' => 'form-control')) }}
</div>
</div>
<div class="col-md-12">
<div class="form-group">
{{ Form::label('available_extra', 'Availability Extra') }}
{{ Form::textarea('available_extra', $player->available_extra, array('class' => 'form-control', 'placeholder' => 'Any additional information that you would like to add.')) }}
</div>
</div>
</div>
</div>
<div class="row_1g">
<div class="body-content">
<div class="form-group" align="center">
{!! Form::hidden('player_id', $visitor->user_id) !!}
{{ Form::submit('Submit Registration', array('class' => 'btn xbs-button')) }}
</div>
</div>
</div>
<div class="row_1f" style="border-top:1px solid #ddd;">
<div class="body-content">
<ul style="margin-bottom:0;">
<li><strong>Part-Time Player</strong> - At least two games per week.</li>
<li><strong>Full-Time Player</strong> - Anything over two games games per week.</li>
</ul>
</div>
</div>
#endsection
#section('sidebar')
<div class="panel-header"><span>Position Preferences</span></div>
<div class="secondary-panel" align="center"><strong>Position Breakdown</strong></div>
<div class="xbs-border"></div>
<div class="col-md-12 no-padding">
<div class="row_1g">
<div class="body-content">
<div class="col-xs-12">
<div class="form-group">
{{ Form::label('pos_c', 'Center') }}
{{ Form::select('pos_c', ['0' => 'Never', '1' => 'Rarely', '2' => 'Occasional', '3' => 'Preferred'], null, array('class' => 'form-control')) }}
</div>
<div class="form-group">
{{ Form::label('pos_lw', 'Left Wing') }}
{{ Form::select('pos_lw', ['0' => 'Never', '1' => 'Rarely', '2' => 'Occasional', '3' => 'Preferred'], null, array('class' => 'form-control')) }}
</div>
<div class="form-group">
{{ Form::label('pos_rw', 'Right Wing') }}
{{ Form::select('pos_rw', ['0' => 'Never', '1' => 'Rarely', '2' => 'Occasional', '3' => 'Preferred'], null, array('class' => 'form-control')) }}
</div>
<div class="form-group">
{{ Form::label('pos_ld', 'Left Defense') }}
{{ Form::select('pos_ld', ['0' => 'Never', '1' => 'Rarely', '2' => 'Occasional', '3' => 'Preferred'], null, array('class' => 'form-control')) }}
</div>
<div class="form-group">
{{ Form::label('pos_rd', 'Right Defense') }}
{{ Form::select('pos_rd', ['0' => 'Never', '1' => 'Rarely', '2' => 'Occasional', '3' => 'Preferred'], null, array('class' => 'form-control')) }}
</div>
<div class="form-group">
{{ Form::label('pos_g', 'Goalie') }}
{{ Form::select('pos_g', ['0' => 'Never', '1' => 'Rarely', '2' => 'Occasional', '3' => 'Preferred'], null, array('class' => 'form-control')) }}
</div>
</div>
</div>
</div>
<div class="row_1f" style="border-top:1px solid #ddd;">
<div class="body-content">
<ul style="margin-bottom:0;">
<li><strong>Never</strong> - 0 games per season.</li>
<li><strong>Rarely</strong> - up to 10 games per season.</li>
<li><strong>Occasional</strong> - 10 to 20 games per season.</li>
<li><strong>Preferred</strong> - Any amount of games.</li>
</ul>
</div>
</div>
</div>
{!! Form::close() !!}
#endsection
Main.blade.php
<!DOCTYPE html>
<html lang="en">
<head>
#include('partials._header')
#yield('stylesheets')
</head>
<body>
#include('partials._navigation')
<div class="container">
<div class="col-md-12" style="padding:0;margin-top:20px;">
#include('partials._messages')
</div>
<div class="col-md-4" style="padding-left:0;">
#yield('sidebar')
</div>
<div class="col-md-8" style="padding-right:0;">
#yield('content')
</div>
</div>
#include('partials._footer')
#include('partials._javascript')
#yield('scripts')
So the problem is in your main.blade.php file.
This markup will cause a browser to try and fix your form, because the opening and closing form element do not share the same parent.
<div class="col-md-4" style="padding-left:0;">
#yield('sidebar')
</div>
<div class="col-md-8" style="padding-right:0;">
#yield('content')
</div>
This would most likely result in a form in the content section and no form in the sidebar section. For example:
<div class="col-md-4" style="padding-left:0;">
<form>
...
</form>
</div>
<div class="col-md-8" style="padding-right:0;">
...
</div>
You need to either wrap your columns with the form element, or move the column divs into your sections.
#section('content')
{!! Form::open(['route' => 'signup.store', 'method' => 'post']) !!}
<div class="col-md-8" style="padding-right:0;">
...
</div>
#endsection
#section('sidebar')
<div class="col-md-4" style="padding-left:0;">
...
</div>
{!! Form::close() !!}
#endsection

Resources