{"id":8019,"date":"2023-07-12T12:57:49","date_gmt":"2023-07-12T12:57:49","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=8019"},"modified":"2023-07-12T12:57:54","modified_gmt":"2023-07-12T12:57:54","slug":"how-to-reset-laravel-admin-password-directly-from-the-database","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/how-to-reset-laravel-admin-password-directly-from-the-database\/","title":{"rendered":"How to Reset Laravel Admin Password directly from the Database?"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 3,403<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>Laravel uses the safe Bcrypt hashing algorithm for hashing passwords by default. The database cannot be directly accessed to reset a user&#8217;s password, nor can it be decrypted without the right password. A password like that will obviously fail.With the help of this comprehensive guide, you&#8217;ll be able to easily change the Laravel admin password in the database and regain access to the administration panel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Follow these directives to ensure that a Laravel user&#8217;s password is appropriately set from the database.<\/h2>\n\n\n\n<p>1. Login to cPanel<\/p>\n\n\n\n<p>2. Go to&nbsp;<strong>Terminal<\/strong>&nbsp;section and access your Laravel folder via SSH<\/p>\n\n\n\n<p>3. Once inside the folder, type in this command to open a different console<\/p>\n\n\n\n<p><code>[user@rbx106 public_html]$ php artisan tinker<\/code><\/p>\n\n\n\n<p>4. You will view a console that starts with&nbsp;<strong>&gt;&gt;&gt;<\/strong><\/p>\n\n\n\n<p>5. Type in the command below<\/p>\n\n\n\n<p><code>user@rbx106 public_html]$ echo Hash::make('your-new-plaintext-password-here')<\/code><\/p>\n\n\n\n<p>Replace&nbsp;<strong>your-new-plaintext-password-here<\/strong>&nbsp;with the actual password you want to use. This is in plain text and&nbsp;<strong>NOT<\/strong>&nbsp;hashed.<\/p>\n\n\n\n<p>6. You should see output as below.<\/p>\n\n\n\n<p><code>$2y$10$GTP5DRX5IBTH9iCikZV7zeKHZeRC9EHP28Hs2LaHBGC9oZkTaHKfW\u23ce<\/code><\/p>\n\n\n\n<p>7. Copy the output and paste it under the password field in users table.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>3,403 Views Laravel uses the safe Bcrypt hashing algorithm for hashing passwords by default. The database cannot be directly accessed to reset a user&#8217;s password, nor can it be decrypted without the right password. A password like that will obviously fail.With the help of this comprehensive guide, you&#8217;ll be able to easily change the Laravel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[72],"tags":[],"class_list":["post-8019","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=8019"}],"version-history":[{"count":2,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8019\/revisions"}],"predecessor-version":[{"id":8021,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8019\/revisions\/8021"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=8019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=8019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=8019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}