Hi,

I am looking at migrating my users to a database and have built a seeder class to insert current users into the database.

However, upon running php please db:seed I get a Reflection Exception:

[ReflectionException]
Class DatabaseSeeder does not exist

The artisan generator uses the Seeder class so I'm not sure why it's referencing DatabaseSeeder. I don't know how to get around this. Does anyone have any ideas?

<?php

use Illuminate\Database\Seeder;
use Statamic\API\User;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $users = User::all();

        $users->each(function($user) {

            DB::table('users')->insert([
                'first_name' => $user['first_name'],
                'last_name' => $user['last_name'],
                'username' => $user['username'],
                'email' => $user['email'],
                'phone' => $user['phone'],
                'password' => $user['password_hash'],
                'super' => $user['super'],
            ]);
    }
}

Thanks!