You can do a $user->find($id)->delete(); if you want to delete it in tinker.
You can also just run a delete query directory on the database itself using the sqlite cli or any database gui that supports sqlite.
Hi, while adding the user in PHP artisan tinker on laravel-5-from-scratch/episodes/10, I accidentally typed $username->username = 'JohnDoe'; instead of $user->username = 'JohnDoe'; So the $username does not exist and is therefore causing an issue when trying to save a user. How do I delete it? Thanks
You can do a $user->find($id)->delete(); if you want to delete it in tinker.
You can also just run a delete query directory on the database itself using the sqlite cli or any database gui that supports sqlite.
Please or to participate in this conversation.