Try the following code
User::create(array('name' => 'Name', 'pass' => Hash::make('password')));
What other columns do you have your table? Could it be another column that is NOT NULL, not being passed? (you may have a column that is required when inserting a new record, and your are not passing that user property).
Could you show your code by making a link from Pastebin.
Don't forget to make your records fillable.
In your model you can add the following:
protected $fillable = ['name', 'pass'];
Also, please don't forget to hash your password.
$password = Hash::make(Input::get('password'));
Please read about fillable at: http://laravel.com/docs/eloquent#mass-assignment
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community