Hello i am trying to create a UI with fname and lname and i want it to be added to my mysql db table. 
following are my codes for reference.

```
**register1.blade.php**

@extends('master')

@section('content')

<div class="row">
    <div class="span4 offset1">
        <div class="well">
            <legend>Please Register Here</legend> <br/>
            {{ Form::open(array('url' => 'register1')) }}
            @if($errors->any())
            <div class="alert alert-error">
                            <a href="#" class="close" data-dismiss="alert">&times;</a>
                {{ implode('', $errors->all('<li class="error">:message</li>')) }}
            </div>
            @endif
            First Name:{{ Form::text('fname', '', array('placeholder' => 'First Name')) }}<br>
            Last Name:{{ Form::text('lname', '',array('placeholder' => 'Last Name')) }}<br>
            {{ Form::submit('Submit', array('class' => 'btn btn-success')) }}
<!--            {{ HTML::link('register', 'Sign Up', array('class' => 'btn btn-primary')) }}-->
            {{ Form::close() }}
        </div>
    </div>
</div>

@stop

**HomeController.php**

        public function getRegister1()
        {
            return View::make('home.register1');
        }
        public function postRegister1()
    {
        $input = Input::all();

        $rules = array('fname' => 'required', 'lname' => 'required');

        $v = Validator::make($input, $rules);

        if($v->fails())
        {

            return Redirect::to('register1')->withErrors($v);

        } else { 

            $credentials = array('fname' => $input['fname'], 'lname' => $input['lname']);

            if(Auth::attempt($credentials))
            {

                return Redirect::to('admin');

            } else {

                return Redirect::to('register1');
            }
        }
    }
**in models-> register.php**
<?php
use Illuminate\Auth\RegisterInterface;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;

class register extends Eloquent implements UserInterface, RemindableInterface {

    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'register1';

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = array('password');

    /**
     * Get the unique identifier for the user.
     *
     * @return mixed
     */
    public function getAuthIdentifier()
    {
        return $this->getKey();
    }

    /**
     * Get the password for the user.
     *
     * @return string
     */
    public function getFirstName()
    {
        return $this->fname;
    }

    /**
     * Get the e-mail address where password reminders are sent.
     *
     * @return string
     */
    public function getLastName()
    {
        return $this->lname;
    }
**routes.php**

Route::get('register1','HomeController@getRegister1');
Route::post('register1','HomeController@postRegister1');

```

when i execute registration it gives me text boxes and submit. onclick of submit i have the following error

```
**illuminate \ Database \ QueryException**

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'fname' in 'where clause' (SQL: select * from `users` where `fname` = sonu and `lname` = k limit 1) 

please help me out with this issue. 

```