📜  示例测试 tinker php artisan - PHP 代码示例

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

代码示例1
>>> $admin = new App\Models\AdminUser
=> App\Models\AdminUser {#3379}
>>> $admin->name = 'Admin'
=> "Admin"
>>> $admin->email = 'admin@ids.com'
=> "admin@ids.com"
>>> $admin->password = Hash::make('manojd123')
=> "$2y$10$s7IfVxrc48RYUbYwIbOuXOQRKdDZzXb.4RIVQ1P8bWPcxY6s1IPZe"
>>> $admin->job_title = 'Admin'
=> "Admin"
>>> $admin->save()
=> true
>>>