mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 20:44:04 +00:00
47c12e5e97
added example to get user info
22 lines
397 B
PHP
22 lines
397 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UsersTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('users')->insert([
|
|
'name' => str_random(10),
|
|
'phone' => "01234567890",
|
|
'password' => bcrypt('secret'),
|
|
'is_verified' => true
|
|
]);
|
|
}
|
|
}
|