{"id":14750,"date":"2023-03-01T06:55:21","date_gmt":"2023-03-01T06:55:21","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=14750"},"modified":"2024-04-10T07:33:39","modified_gmt":"2024-04-10T06:33:39","slug":"know-how-to-reset-laravel-admin-passwords-from-database","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/","title":{"rendered":"Know How to Reset Laravel Admin Passwords from Database?"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.milesweb.co.uk\/blog\/technology-hub\/why-laravel-is-the-best-php-framework\/\">Laravel is an open-source PHP framework<\/a> that is highly robust and easy to understand. Laravel offers a set of advanced functionalities which also incorporates the basic features of PHP frameworks like CodeIgniter.\u00a0<\/p>\n\n\n\n<p>When it comes to passwords, Laravel hashes its password using Bcrypt to make it secure.&nbsp;<\/p>\n\n\n\n<p>This way, you can neither decrypt it without knowing the correct password nor type the password directly into the database to reset a user&#8217;s password.<\/p>\n\n\n\n<p>Laravel has the \u2018users\u2019 table in the database to store the user credentials like email and password.<\/p>\n\n\n\n<p>To do so, you need to reset the password for a Laravel user from the database.&nbsp;<\/p>\n\n\n\n<p>In this short guide, we will understand these steps:&nbsp;<\/p>\n\n\n\n<p>1. First, log in to your cPanel account.&nbsp;<\/p>\n\n\n\n<p>2. Go to the <strong>Terminal <\/strong>section and access your folder via SSH.&nbsp;<\/p>\n\n\n\n<p>3. Once you are inside the folder, type in the below command to open a different console.&nbsp;<\/p>\n\n\n\n<p><strong><em>[user@abc106 public_html]$ php artisan tinker<\/em><\/strong><\/p>\n\n\n\n<p><h4 style=\"background-color: #D5EAFF; padding: 10px;\">Try Our <a href=\"https:\/\/www.milesweb.co.uk\/hosting\/laravel-hosting\" target=\"_blank\" rel=\"noopener\">Laravel Hosting<\/a> To Scale Your Business.!<\/h4><\/p>\n\n\n\n<p>4. You will then view a console that starts with &gt;&gt;&gt;<\/p>\n\n\n\n<p>5. And type in the command:<\/p>\n\n\n\n<p><strong><em>user@abc106 public_html]$ echo Hash::make(&#8216;enter-your-new-plain-text-password-here&#8217;)<\/em><\/strong><\/p>\n\n\n\n<p>Replace your new plain text password here with the main password you want to use.&nbsp;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em><strong>Note: <\/strong>This will be in plain text, not in the hashed format.&nbsp;<\/em><\/p>\n<\/blockquote>\n\n\n\n<p>6. Then, you will get to see the output as shown below:<\/p>\n\n\n\n<p>$2y$10$GTP5DRX5IBTH9iCikZV7zeKHZeRC9EHP28Hs2LaHBGC9oZkTaHKfW\u23ce&nbsp;<\/p>\n\n\n\n<p>7. After you have the password, copy and paste it under the password field in the user\u2019s table.&nbsp;<\/p>\n\n\n\n<p>And that\u2019s it!&nbsp;<\/p>\n\n\n\n<p>You can now log in to your account with the username and the updated password, as shown above.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel is an open-source PHP framework that is highly robust and easy to understand. Laravel offers a set of advanced functionalities which also incorporates the basic features of PHP frameworks like CodeIgniter.\u00a0 When it comes to passwords, Laravel hashes its password using Bcrypt to make it secure.&nbsp; This way, you can neither decrypt it without [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[1152,2958],"class_list":["post-14750","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos","tag-database","tag-laravel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Know How to Reset Laravel Admin Passwords from Database? | MilesWeb<\/title>\n<meta name=\"description\" content=\"In this article, we will understand the steps to reset the laravel admin passwords from the Database.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Know How to Reset Laravel Admin Passwords from Database? | MilesWeb\" \/>\n<meta property=\"og:description\" content=\"In this article, we will understand the steps to reset the laravel admin passwords from the Database.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-01T06:55:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-10T06:33:39+00:00\" \/>\n<meta name=\"author\" content=\"Nehal Khatri\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nehal Khatri\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/\",\"name\":\"Know How to Reset Laravel Admin Passwords from Database? | MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2023-03-01T06:55:21+00:00\",\"dateModified\":\"2024-04-10T06:33:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/0241ea191f60975839d956b6952e0a1d\"},\"description\":\"In this article, we will understand the steps to reset the laravel admin passwords from the Database.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Know How to Reset Laravel Admin Passwords from Database?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/0241ea191f60975839d956b6952e0a1d\",\"name\":\"Nehal Khatri\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/736396ef8d8bdecec53ce8851058903e?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/736396ef8d8bdecec53ce8851058903e?s=96&d=blank&r=g\",\"caption\":\"Nehal Khatri\"},\"description\":\"Nehal is an ardent content writer. She's passionate about crafting content that's simple but adds value. Her insatiable interest in writing has allowed her to explore her skills. She is adept and can write for different types of content formats.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/nehal-khatri\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Know How to Reset Laravel Admin Passwords from Database? | MilesWeb","description":"In this article, we will understand the steps to reset the laravel admin passwords from the Database.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/","og_locale":"en_GB","og_type":"article","og_title":"Know How to Reset Laravel Admin Passwords from Database? | MilesWeb","og_description":"In this article, we will understand the steps to reset the laravel admin passwords from the Database.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2023-03-01T06:55:21+00:00","article_modified_time":"2024-04-10T06:33:39+00:00","author":"Nehal Khatri","twitter_misc":{"Written by":"Nehal Khatri","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/","name":"Know How to Reset Laravel Admin Passwords from Database? | MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2023-03-01T06:55:21+00:00","dateModified":"2024-04-10T06:33:39+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/0241ea191f60975839d956b6952e0a1d"},"description":"In this article, we will understand the steps to reset the laravel admin passwords from the Database.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/know-how-to-reset-laravel-admin-passwords-from-database\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Know How to Reset Laravel Admin Passwords from Database?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/0241ea191f60975839d956b6952e0a1d","name":"Nehal Khatri","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/736396ef8d8bdecec53ce8851058903e?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/736396ef8d8bdecec53ce8851058903e?s=96&d=blank&r=g","caption":"Nehal Khatri"},"description":"Nehal is an ardent content writer. She's passionate about crafting content that's simple but adds value. Her insatiable interest in writing has allowed her to explore her skills. She is adept and can write for different types of content formats.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/nehal-khatri\/"}]}},"views":122,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=14750"}],"version-history":[{"count":4,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14750\/revisions"}],"predecessor-version":[{"id":15303,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14750\/revisions\/15303"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=14750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=14750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=14750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}