Support the ongoing development of Laravel.io →
posted 9 years ago
Blade
Last updated 2 years ago.
0
#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>
Last updated 8 years ago.
0

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

yokeswar yokeswar Joined 9 Oct 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.

© 2024 Laravel.io - All rights reserved.