svoydom/database/seeders/UserSeeder.php
2023-05-17 09:57:20 +03:00

26 lines
473 B
PHP
Executable File

<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create([
'name' => 'Admin',
'email' => 'admin@gmail.com',
'password' => Hash::make('secret'),
]);
}
}