2019-03-21 19:46:38 +00:00
|
|
|
<?php
|
|
|
|
|
2020-10-17 17:15:06 +01:00
|
|
|
namespace Database\Seeders;
|
|
|
|
|
2019-03-21 19:46:38 +00:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
class UsersTableSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
2023-02-18 09:34:57 +00:00
|
|
|
* Seed the users table.
|
2023-07-28 11:48:07 +01:00
|
|
|
*
|
|
|
|
* @psalm-suppress PossiblyUnusedMethod
|
2019-03-21 19:46:38 +00:00
|
|
|
*/
|
2023-02-18 09:34:57 +00:00
|
|
|
public function run(): void
|
2019-03-21 19:46:38 +00:00
|
|
|
{
|
|
|
|
DB::table('users')->insert([
|
|
|
|
'name' => 'jonny',
|
|
|
|
'password' => bcrypt('password'),
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|