php - Class 'Users' not found when running artisan migration -


i trying run

project$ php artisan migrate:refresh 

but error

[symfony\component\debug\exception\fatalerrorexception] class 'users' not found 

why need users class? have app/user.php:

<?php namespace app;  use illuminate\auth\authenticatable; use illuminate\database\eloquent\model; use illuminate\auth\passwords\canresetpassword; use illuminate\contracts\auth\authenticatable authenticatablecontract; use illuminate\contracts\auth\canresetpassword canresetpasswordcontract;  class user extends model implements authenticatablecontract, canresetpasswordcontract {  [...] 

and migration, database/migration/2015_05_27_143124_create_users_table:

<?php  use illuminate\database\schema\blueprint; use illuminate\database\migrations\migration;  class createuserstable extends migration {      /**      * run migrations.      *      * @return void      */     public function up()     {         schema::create('users', function(blueprint $table)         {             $table->increments('id');             $table->string('username')->unique();             [...]             $table->string('password', 60);             $table->remembertoken();             $table->timestamps();         });     }      [...] 

my config/auth.php has 'model' => 'app\user'. tried running project$ composer dump-autoload. user class being defined. why need users class?

fixed. dropped database , went ahead , made new 1 same name, then:

project$ php artisan migrate migration table created successfully. 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -