#In your Controller Frontend\AuthController
public function contact_titles()
{
$contact_titles = ContactTitle::lists('title');
return View::make('frontend.auth.login',compact('contact_titles'));
}
#And your select Title in the view
<div class="select">
{{Form::select('title', $contact_titles , null,['id' => 'title'])}}
{{$errors->first('title','<span class=error>:message</span>')}}
</div>
It is also best to separate the countries selection. Either seed those values to a database table and cache them, or just separate them into a different blade view and include it in this view. It's more neat that way
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community