Ao rodar o comando php artisan db:seed me deparei com esse erro no terminal
"There are no commands defined in the "db:" namespace. Did you mean this? db"
Ao rodar o comando php artisan db:seed me deparei com esse erro no terminal
"There are no commands defined in the "db:" namespace. Did you mean this? db"
meu DatabaseSeeder.php
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder { /**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->cal('UsuarioSeeder');
}
}
meu UsuarioSeeder.php
<?php
namespace Database\Seeders;
use App\Models\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Hash;
class UsuarioSeeder extends Seeder { /**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create([
'email' => 'teste@email',
'password'=> Hash::make('senha')
]);
}
O erro estava na digitação, faltou um "l" em call