I try to seed a user to the database but cannot. I could easely create the migration tables, so the problem is not in the connection to the database, but I cannot create a user, I get the "Class UsersTableSeeder does not exist" error. How can I solve it? (I use laravel 5.3)
Here is my code:
DatabaseSeeder.php
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class DatabaseSeeder extends Seeder
{
public function run()
{
$this->call(UsersTableSeeder::class);
}
}
UsersTableSeeder.php
<?php
use Illuminate\Database\Seeder;
use App/User;
use Illuminate\Support\Facades\DB;
class UsersTableSeeder extends Seeder
{
public function run()
{
\DB::table('users')->delete();
User::create([
'name' => 'lamin',
'email' => 'lamin@laravel.com',
'password' => bcrypt('lamin')
]);
}
}