{"id":1777,"date":"2024-02-12T09:23:42","date_gmt":"2024-02-12T09:23:42","guid":{"rendered":"https:\/\/www.devopsfreelancer.com\/blog\/?p=1777"},"modified":"2024-02-29T09:41:46","modified_gmt":"2024-02-29T09:41:46","slug":"class-apphttpcontrollersstudent-not-found","status":"publish","type":"post","link":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/","title":{"rendered":"Class \u2018App\\Http\\Controllers\\Student\u2019 not found"},"content":{"rendered":"\n<p id=\"a1b5\">In this tutorial I\u2019m going to describe how to solve \u201cClass \u2018App\\Http\\Controllers\\Student\u2019 not found\u201d if you got this types of error.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"292\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png\" alt=\"\" class=\"wp-image-1778\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png 720w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78-300x122.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p>1step this types of error is showing when you\u2019re not using class name whatever you have define below code as like :-<a href=\"https:\/\/laravelamit.medium.com\/?source=post_page-----ce972d80408e--------------------------------\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public function index()\r\n{\r\n$students = Student::all();\r\n\r\nreturn view(\u2018students.dashboard\u2019,compact(\u2018student\u2019));\r\n}<\/code><\/pre>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:692\/1*LtdkwGO_SS-ch_rHQB24ww.png\"><\/p>\n\n\n\n<p id=\"b958\"><strong>2nd you have to add your model name above of the StudenController class name<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"255\" height=\"109\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-79.png\" alt=\"\" class=\"wp-image-1779\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>3rd step got your Controller :- StudentController.php\r\n\r<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"382\" height=\"128\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-80.png\" alt=\"\" class=\"wp-image-1780\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-80.png 382w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-80-300x101.png 300w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/figure>\n\n\n\n<p id=\"4e54\">And add model name in the Student Controller class here as like this<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>use App\\Student;\r\n\r<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"201\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-81.png\" alt=\"\" class=\"wp-image-1781\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-81.png 720w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-81-300x84.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p id=\"bd75\">Then refresh your browser and you got solve your errors.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;127.0.0.1:8000\/<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"322\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-82.png\" alt=\"\" class=\"wp-image-1782\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-82.png 720w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-82-300x134.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p id=\"dac5\">Thanks hopefully it will helpful for you. \ud83d\udc4d\ud83d\udc4d<a href=\"https:\/\/medium.com\/tag\/controller?source=post_page-----ce972d80408e---------------controller-----------------\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial I\u2019m going to describe how to solve \u201cClass \u2018App\\Http\\Controllers\\Student\u2019 not found\u201d if you got this types of error. 1step this types of error is&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[3,451,705],"class_list":["post-1777","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-laravel","tag-laravel-errror","tag-model-not-found"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Class \u2018App\\Http\\Controllers\\Student\u2019 not found - DevOps Freelancer<\/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.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Class \u2018App\\Http\\Controllers\\Student\u2019 not found - DevOps Freelancer\" \/>\n<meta property=\"og:description\" content=\"In this tutorial I\u2019m going to describe how to solve \u201cClass \u2018AppHttpControllersStudent\u2019 not found\u201d if you got this types of error. 1step this types of error is...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps Freelancer\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/amitsthakurs\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-12T09:23:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-29T09:41:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png\" \/>\n<meta name=\"author\" content=\"Amit Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/amits_thakurs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amit Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. 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.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/\",\"url\":\"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/\",\"name\":\"Class \u2018App\\\\Http\\\\Controllers\\\\Student\u2019 not found - DevOps Freelancer\",\"isPartOf\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png\",\"datePublished\":\"2024-02-12T09:23:42+00:00\",\"dateModified\":\"2024-02-29T09:41:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#primaryimage\",\"url\":\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png\",\"contentUrl\":\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png\",\"width\":720,\"height\":292},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.devopsfreelancer.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Class \u2018App\\\\Http\\\\Controllers\\\\Student\u2019 not found\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#website\",\"url\":\"https:\/\/www.devopsfreelancer.com\/blog\/\",\"name\":\"DevOps Freelancer\",\"description\":\"We provide DevOps | SRE | DevSecOps | MLOps Freelancing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.devopsfreelancer.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b\",\"name\":\"Amit Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"caption\":\"Amit Kumar\"},\"description\":\"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.\",\"sameAs\":[\"https:\/\/www.facebook.com\/amitsthakurs\/\",\"https:\/\/www.instagram.com\/amits_thakurs\/\",\"https:\/\/www.linkedin.com\/in\/amits-thakurs\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/amits_thakurs\"],\"url\":\"https:\/\/www.devopsfreelancer.com\/blog\/author\/amit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Class \u2018App\\Http\\Controllers\\Student\u2019 not found - DevOps Freelancer","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.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/","og_locale":"en_US","og_type":"article","og_title":"Class \u2018App\\Http\\Controllers\\Student\u2019 not found - DevOps Freelancer","og_description":"In this tutorial I\u2019m going to describe how to solve \u201cClass \u2018AppHttpControllersStudent\u2019 not found\u201d if you got this types of error. 1step this types of error is...","og_url":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/","og_site_name":"DevOps Freelancer","article_author":"https:\/\/www.facebook.com\/amitsthakurs\/","article_published_time":"2024-02-12T09:23:42+00:00","article_modified_time":"2024-02-29T09:41:46+00:00","og_image":[{"url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png","type":"","width":"","height":""}],"author":"Amit Kumar","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/amits_thakurs","twitter_misc":{"Written by":"Amit Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/","url":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/","name":"Class \u2018App\\Http\\Controllers\\Student\u2019 not found - DevOps Freelancer","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#primaryimage"},"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png","datePublished":"2024-02-12T09:23:42+00:00","dateModified":"2024-02-29T09:41:46+00:00","author":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"breadcrumb":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#primaryimage","url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png","contentUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2024\/02\/image-78.png","width":720,"height":292},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopsfreelancer.com\/blog\/class-apphttpcontrollersstudent-not-found\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopsfreelancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Class \u2018App\\Http\\Controllers\\Student\u2019 not found"}]},{"@type":"WebSite","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website","url":"https:\/\/www.devopsfreelancer.com\/blog\/","name":"DevOps Freelancer","description":"We provide DevOps | SRE | DevSecOps | MLOps Freelancing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopsfreelancer.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b","name":"Amit Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","caption":"Amit Kumar"},"description":"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.","sameAs":["https:\/\/www.facebook.com\/amitsthakurs\/","https:\/\/www.instagram.com\/amits_thakurs\/","https:\/\/www.linkedin.com\/in\/amits-thakurs\/","https:\/\/x.com\/https:\/\/twitter.com\/amits_thakurs"],"url":"https:\/\/www.devopsfreelancer.com\/blog\/author\/amit\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=1777"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1777\/revisions"}],"predecessor-version":[{"id":1783,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1777\/revisions\/1783"}],"wp:attachment":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=1777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=1777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=1777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}