{"id":6315,"date":"2021-05-21T12:02:07","date_gmt":"2021-05-21T12:02:07","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=6315"},"modified":"2022-04-13T16:33:34","modified_gmt":"2022-04-13T16:33:34","slug":"target-class-postcontroller-does-not-exist","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/","title":{"rendered":"Target class [PostController] does not exist."},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/2732\/1*zYXhZ0W-6FNZD4gN90uQIQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"9f4a\">Whenever you got this types of error go to your Route\/web.php file and checkout your Controller class is mention there or not.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1366\/1*dknFRNBrkf7i3jNGw5aJPQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"c977\">Next Go to PostController file and copy your controller class<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1366\/1*shUfc-bV_sUa7VQhtWqBhQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"8e2f\">Now go to Routes\/web.php and class this class<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">use App\\Http\\Controllers\\PostController;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1366\/1*T3oto9BjfSeFrEXyRRLPbw.png\" alt=\"\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">php artisan serve<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"dd66\">Now its working properly<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/max\/1276\/1*N4nSNuQMwFyD8PUAxWB0tw.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"57db\">Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever you got this types of error go to your Route\/web.php file and checkout your Controller class is mention there [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5049,156],"tags":[5204,5072,5084,5052,177],"class_list":["post-6315","post","type-post","status-publish","format-standard","hentry","category-laravel","category-websites","tag-controller","tag-crud","tag-crud-operation-in-laravel","tag-laravel","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Target class [PostController] does not exist. - 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\/target-class-postcontroller-does-not-exist\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Target class [PostController] does not exist. - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Whenever you got this types of error go to your Route\/web.php file and checkout your Controller class is mention there [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-21T12:02:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-13T16:33:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/miro.medium.com\/max\/2732\/1*zYXhZ0W-6FNZD4gN90uQIQ.png\" \/>\n<meta name=\"author\" content=\"rajeshkumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rajeshkumar\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/\"},\"author\":{\"name\":\"rajeshkumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"headline\":\"Target class [PostController] does not exist.\",\"datePublished\":\"2021-05-21T12:02:07+00:00\",\"dateModified\":\"2022-04-13T16:33:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/\"},\"wordCount\":55,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/miro.medium.com\\\/max\\\/2732\\\/1*zYXhZ0W-6FNZD4gN90uQIQ.png\",\"keywords\":[\"controller\",\"crud\",\"crud operation in laravel\",\"laravel\",\"Php\"],\"articleSection\":[\"Laravel\",\"Websites\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/\",\"name\":\"Target class [PostController] does not exist. - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/miro.medium.com\\\/max\\\/2732\\\/1*zYXhZ0W-6FNZD4gN90uQIQ.png\",\"datePublished\":\"2021-05-21T12:02:07+00:00\",\"dateModified\":\"2022-04-13T16:33:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/a40e0dd38feee7c2779460a804d49361\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/#primaryimage\",\"url\":\"https:\\\/\\\/miro.medium.com\\\/max\\\/2732\\\/1*zYXhZ0W-6FNZD4gN90uQIQ.png\",\"contentUrl\":\"https:\\\/\\\/miro.medium.com\\\/max\\\/2732\\\/1*zYXhZ0W-6FNZD4gN90uQIQ.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/target-class-postcontroller-does-not-exist\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Target class [PostController] does not exist.\"}]},{\"@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\\\/a40e0dd38feee7c2779460a804d49361\",\"name\":\"rajeshkumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g\",\"caption\":\"rajeshkumar\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/rajeshkumar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Target class [PostController] does not exist. - 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\/target-class-postcontroller-does-not-exist\/","og_locale":"en_US","og_type":"article","og_title":"Target class [PostController] does not exist. - scmGalaxy","og_description":"Whenever you got this types of error go to your Route\/web.php file and checkout your Controller class is mention there [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/","og_site_name":"scmGalaxy","article_published_time":"2021-05-21T12:02:07+00:00","article_modified_time":"2022-04-13T16:33:34+00:00","og_image":[{"url":"https:\/\/miro.medium.com\/max\/2732\/1*zYXhZ0W-6FNZD4gN90uQIQ.png","type":"","width":"","height":""}],"author":"rajeshkumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rajeshkumar"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/"},"author":{"name":"rajeshkumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"headline":"Target class [PostController] does not exist.","datePublished":"2021-05-21T12:02:07+00:00","dateModified":"2022-04-13T16:33:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/"},"wordCount":55,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/max\/2732\/1*zYXhZ0W-6FNZD4gN90uQIQ.png","keywords":["controller","crud","crud operation in laravel","laravel","Php"],"articleSection":["Laravel","Websites"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/","name":"Target class [PostController] does not exist. - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/max\/2732\/1*zYXhZ0W-6FNZD4gN90uQIQ.png","datePublished":"2021-05-21T12:02:07+00:00","dateModified":"2022-04-13T16:33:34+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/a40e0dd38feee7c2779460a804d49361"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/#primaryimage","url":"https:\/\/miro.medium.com\/max\/2732\/1*zYXhZ0W-6FNZD4gN90uQIQ.png","contentUrl":"https:\/\/miro.medium.com\/max\/2732\/1*zYXhZ0W-6FNZD4gN90uQIQ.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/target-class-postcontroller-does-not-exist\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Target class [PostController] does not exist."}]},{"@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\/a40e0dd38feee7c2779460a804d49361","name":"rajeshkumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82337e1fc8642c7f36795aa0775af055a4f38882994004b593efd31758d4434e?s=96&d=mm&r=g","caption":"rajeshkumar"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/rajeshkumar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6315","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=6315"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6315\/revisions"}],"predecessor-version":[{"id":6316,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6315\/revisions\/6316"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=6315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=6315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=6315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}