Laravel 4 clean code review of users controller and model, trying to maintain MVC structure I'd like you to review my attempt at creating an authorization class and let me know if there is re-factoring to be done and/or how I can make the code cleaner and abide by the MVC structure. 

UsersController.php

&lt;?php

    class UsersController extends BaseController {

    protected $user;

    public function __construct(User $user)
    {
        $this-&gt;beforeFilter('csrf', array('on' =&gt; 'post'));
        $this-&gt;user = $user;
    }

    public function getRegister() 
    {
        return View::make('admin.register');
    }

    public function postRegister()
    {
        try 
        {
            $this-&gt;user-&gt;insertUserIntoDatabase(Input::all());
        } 
        catch (ValidationError $e) 
        {
            return Redirect::to('admin/register')
            -&gt;with('message', 'Something went wrong')
            -&gt;withInput()   
            -&gt;withErrors($e-&gt;getErrors());
        }

        return Redirect::to('admin/login')
                -&gt;with('message', 'Thank you for creating a new account');
    }

    public function getLogin()
    {
        return View::make('admin.login');
    }

    public function postLogin()
    {
        if (Auth::attempt(array('email' =&gt; Input::get('email'), 'password' =&gt; Input::get('password') ))){
            return Redirect::to('admin/dashboard')-&gt;with('message', 'Thanks for logging in');
        }

        return Redirect::to('admin/login')-&gt;with('message', 'Your email/password combo failed.');
    }

    public function getLogout()
    {
        Auth::logout();
        return Redirect::to('admin/login')-&gt;with('message', 'You have been logged out.');
    }

    public function getDashboard()
    {
        return View::make('admin/dashboard');
    }   
}


Users.php (Model)

&lt;?php

use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;

class User extends Eloquent implements UserInterface, RemindableInterface {

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

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

    protected $fillable = array('firstname', 'lastname', 'email');
    /**
    * Get the unique identifier for the user.
    *
    * @return mixed
    */
    public function getAuthIdentifier()
    {
        return $this-&gt;getKey();
    }

    /**
    * Get the password for the user.
    *
    * @return string
    */
    public function getAuthPassword()
    {
        return $this-&gt;password;
    }

    /**
    * Get the e-mail address where password reminders are sent.
    *
    * @return string
    */
    public function getReminderEmail()
    {
        return $this-&gt;email;
    }

    public function insertUserIntoDatabase($input)
    {
        $validation = new Services\Validators\Users;

        if ($validation-&gt;passes()) {

            $user = new User;
            $user-&gt;firstname = Input::get('firstname');
            $user-&gt;lastname = Input::get('lastname');
            $user-&gt;email = Input::get('email');
            $user-&gt;password = Hash::make(Input::get('password'));
            $user-&gt;save();
        }

        else {
            $this-&gt;errors = $validation-&gt;errors;
            throw new ValidationError($validation-&gt;errors);
        }
    }
}
I didn't used PHP in the last few years, so just some generic notes:


The $input parameter of insertUserIntoDatabase($input) is unused. I guess you wanted to use the parameter instead of direct Input:: calls inside the function.
You could use a guard clause in insertUserIntoDatabase to make the code flatten:

public function insertUserIntoDatabase($input)
{
    $validation = new Services\Validators\Users;

    if (!$validation-&gt;passes()) {
        $this-&gt;errors = $validation-&gt;errors;
        throw new ValidationError($validation-&gt;errors);
    }

    $user = new User;
    $user-&gt;firstname = Input::get('firstname');
    $user-&gt;lastname = Input::get('lastname');
    $user-&gt;email = Input::get('email');
    $user-&gt;password = Hash::make(Input::get('password'));
    $user-&gt;save();
}

The fields in the User class are protected. You might want to use private instead. See: Should I always use the private access modifier for class fields?; Item 13 of Effective Java 2nd Edition: Minimize the accessibility of classes and members.
In postRegister() you could move the return inside the try block. I guess Redirect::to doesn't throw any ValidationError exceptions, so the following is the same:

public function postRegister()
{
    try 
    {
        $this-&gt;user-&gt;insertUserIntoDatabase(Input::all());
        return Redirect::to('admin/login')
            -&gt;with('message', 'Thank you for creating a new account');
    } 
    catch (ValidationError $e) 
    {
        return Redirect::to('admin/register')
        -&gt;with('message', 'Something went wrong')
        -&gt;withInput()   
        -&gt;withErrors($e-&gt;getErrors());
    }
}

if (Auth::attempt(array('email' =&gt; Input::get('email'), 'password' =&gt; Input::get('password') ))){
    return Redirect::to('admin/dashboard')-&gt;with('message', 'Thanks for logging in');
}


I would create an explanatory local variable for the array for better readability:

$credentials = array(
    'email' =&gt; Input::get('email'), 
    'password' =&gt; Input::get('password') 
);
if (Auth::attempt($credentials)) {
    return Redirect::to('admin/dashboard')-&gt;with('message', 'Thanks for logging in');
}


(Clean Code by Robert C. Martin, G19: Use Explanatory Variables;  Refactoring: Improving the Design of Existing Code by Martin Fowler, Introduce Explaining Variable)