{"id":8365,"date":"2021-08-26T12:37:59","date_gmt":"2021-08-26T12:37:59","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=8365"},"modified":"2021-08-26T12:52:49","modified_gmt":"2021-08-26T12:52:49","slug":"how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/","title":{"rendered":"How do I redirect to another page when clicking a button in Laravel."},"content":{"rendered":"\n<h2 class=\"has-text-align-center wp-block-heading\">Step by Step:-<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">My next page name is &#8220;next&#8221;. which we are going to link the page through the button.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step1:-<\/strong> Where you are creating the button, put the link in it.<\/li><\/ul>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/28ccc8a830d1b6c158f55ba30c84d3af.js\"><\/script>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step2:- <\/strong>Then go to web.php(inside routes) and put some commands.<\/li><\/ul>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/85fe1c39b0e71746b76b2093e2661c83.js\"><\/script>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step3:-<\/strong> Then go to home controller.php and write after the index function<\/li><\/ul>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/4201ae993a7f639042c7d5253b3fa94d.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step by Step:- My next page name is &#8220;next&#8221;. which we are going to link the page through the button. [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5049],"tags":[6517,1122,545,6514,6515,593,6516,213],"class_list":["post-8365","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-easy-way-to-link-new-page-inside-button-in-laravel","tag-guide","tag-how","tag-how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel","tag-link-new-page-in-laravel-through-a-button","tag-process","tag-step-by-step-link-new-page-through-a-button-in-laravel","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I redirect to another page when clicking a button in Laravel. - scmGalaxy<\/title>\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.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I redirect to another page when clicking a button in Laravel. - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Step by Step:- My next page name is &#8220;next&#8221;. which we are going to link the page through the button. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-26T12:37:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-26T12:52:49+00:00\" \/>\n<meta name=\"author\" content=\"vikashdev k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"vikashdev k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/\"},\"author\":{\"name\":\"vikashdev k\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\"},\"headline\":\"How do I redirect to another page when clicking a button in Laravel.\",\"datePublished\":\"2021-08-26T12:37:59+00:00\",\"dateModified\":\"2021-08-26T12:52:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/\"},\"wordCount\":74,\"commentCount\":1,\"keywords\":[\"easy way to link new page inside button in laravel\",\"Guide\",\"How\",\"how do i redirect to another page when clicking a button in laravel\",\"link new page in laravel through a button\",\"Process\",\"step by step link new page through a button in laravel\",\"Tutorial\"],\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/\",\"name\":\"How do I redirect to another page when clicking a button in Laravel. - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2021-08-26T12:37:59+00:00\",\"dateModified\":\"2021-08-26T12:52:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I redirect to another page when clicking a button in Laravel.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\",\"name\":\"vikashdev k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"caption\":\"vikashdev k\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/vikashdev\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I redirect to another page when clicking a button in Laravel. - scmGalaxy","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.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/","og_locale":"en_US","og_type":"article","og_title":"How do I redirect to another page when clicking a button in Laravel. - scmGalaxy","og_description":"Step by Step:- My next page name is &#8220;next&#8221;. which we are going to link the page through the button. [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/","og_site_name":"scmGalaxy","article_published_time":"2021-08-26T12:37:59+00:00","article_modified_time":"2021-08-26T12:52:49+00:00","author":"vikashdev k","twitter_card":"summary_large_image","twitter_misc":{"Written by":"vikashdev k","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/"},"author":{"name":"vikashdev k","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515"},"headline":"How do I redirect to another page when clicking a button in Laravel.","datePublished":"2021-08-26T12:37:59+00:00","dateModified":"2021-08-26T12:52:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/"},"wordCount":74,"commentCount":1,"keywords":["easy way to link new page inside button in laravel","Guide","How","how do i redirect to another page when clicking a button in laravel","link new page in laravel through a button","Process","step by step link new page through a button in laravel","Tutorial"],"articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/","name":"How do I redirect to another page when clicking a button in Laravel. - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2021-08-26T12:37:59+00:00","dateModified":"2021-08-26T12:52:49+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-do-i-redirect-to-another-page-when-clicking-a-button-in-laravel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How do I redirect to another page when clicking a button in Laravel."}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515","name":"vikashdev k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","caption":"vikashdev k"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/vikashdev\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=8365"}],"version-history":[{"count":4,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8365\/revisions"}],"predecessor-version":[{"id":8377,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/8365\/revisions\/8377"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=8365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=8365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=8365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}