📜  postgresql 插入 bcrypt - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:10.342000             🧑  作者: Mango

代码示例1
shell:

    php artisan tinker

        $user = new App\Models\User
        $user->name = 'WideWolf'
        $user->email = 'example@gmail.com'
        $user->password = bcrypt('1234')
        var_dump($user->getAttributes())
        $user->save() // true
        exit
        
Check in table users the user created - Checked