I'm trying to make a registration application in laravel and I'm getting an incorrect syntax exception stating that the table 'users' doesn't exist/is invalid?
My User model class:
class User extends Eloquent implements UserInterface, RemindableInterface {
use UserTrait, RemindableTrait;
protected $table = 'users';
protected $hidden = array('password', 'remember_token');
}
relevant section of database.php config:
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'tforum',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
And this is how I am saving the data in db:
$user = new User();
$user->username = Input::get('username');
$user->password = Hash::make(Input::get('password'));
if($user->save())
The table 'users' exists in my database and I have migrated all created migrations so I don't understand why my 'users' table is incorrect, have I used an invalid naming convention for this table?