laravel tinker insert db record code example
Example: laravel tinker insert DB record
>>> $user = new App\User
=> App\User {#3024}
>>> $user->name = 'CoderMen'
=> "CoderMen"
>>> $user->email = '[email protected]'
=> "[email protected]"
>>> $user->password = bcrypt('password')
=> "$2y$10$GJCQzj71L56TDAG2wa3VNeSONgMWp8zAk2TQ1kfHVxPgARXg75fxO"
>>> $user->save()
=> true
>>> By Munthir Zikri