Boa tarde, quando eu tento rodar o comando
php artisan db:seed
aparecem as mensagens
In Container.php line 811:
Target class [UsuarioSeeder] does not exist.
In Container.php line 809:
Class UsuarioSeeder does not exist
Minha classe UsuarioSeeder está assim:
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use App\User;
class UsuarioSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create([
'email' => 'teste@email',
'password' =>Hash::make('senha')
]);
}
}
MInha Classe Database Seeder:
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call('UsuarioSeeder');
}
}
Estou usando o Ubuntu 20.04 LTS, e PHP 7.4, podem me ajudar?
Já rodei o composer dumpautoload e nada.