{"id":6876,"date":"2021-09-30T05:12:12","date_gmt":"2021-09-30T05:12:12","guid":{"rendered":"https:\/\/truehost.co.ke\/support\/?post_type=ht_kb&#038;p=6876"},"modified":"2024-06-07T13:03:02","modified_gmt":"2024-06-07T13:03:02","password":"","slug":"how-to-display-errors-on-laravel-sites","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/","title":{"rendered":"How to Display Errors on Laravel Sites"},"content":{"rendered":"\n<p>Error display is useful to help in debugging applications. Laravel apps are no different. Laravel applications, however, do not use the default php.ini error display technique to display errors. If error display is not enabled well, you will see a customised error page.<\/p>\n\n\n\n<p>Below are the steps to use to enable error display on laravel sites in cPanel.<\/p>\n\n\n\n<p>1.Login to <a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-login-to-cpanel\/\">cPanel<\/a><\/p>\n\n\n\n<p>2.Go to File Manager under Files section and click it<\/p>\n\n\n\n<p>3.Navigate to your .env file. If you deployed laravel inside public_html file, your .env file should be there. Otherwise, check inside the public folder of your application<\/p>\n\n\n\n<p>4.Set the following values and Save<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>APP_ENV=local\n\nAPP_DEBUG=true<\/code><\/pre>\n\n\n\n<p>5. Reload the site and the errors should now display<\/p>\n\n\n\n<p>NOTE: For security reasons, it is not recommended to always leave the error display On. Once you are done fixing the error, please change the <strong>APP_DEBUG<\/strong> to false.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<p>If after changing the above, you still do not see errors displayed, check the file permissions of your app and set them correctly. Basically, folders should have 755 permissions and files 644<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error display is useful to help in debugging applications. Laravel apps are no different. Laravel applications, however, do not use the default php.ini error display technique to display errors. If error display is not enabled well, you will see a customised error page. Below are the steps to use to enable error display on laravel [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[],"doc_tag":[],"class_list":["post-6876","docs","type-docs","status-publish","hentry"],"year_month":"2026-06","word_count":181,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"w m","author_nicename":"wm","author_url":"https:\/\/truehost.com\/support\/author\/wm\/"},"doc_category_info":[],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Display Errors on Laravel Sites -<\/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:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Display Errors on Laravel Sites -\" \/>\n<meta property=\"og:description\" content=\"Error display is useful to help in debugging applications. Laravel apps are no different. Laravel applications, however, do not use the default php.ini error display technique to display errors. If error display is not enabled well, you will see a customised error page. Below are the steps to use to enable error display on laravel [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-07T13:03:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-display-errors-on-laravel-sites\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-display-errors-on-laravel-sites\\\/\",\"name\":\"How to Display Errors on Laravel Sites -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"datePublished\":\"2021-09-30T05:12:12+00:00\",\"dateModified\":\"2024-06-07T13:03:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-display-errors-on-laravel-sites\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-display-errors-on-laravel-sites\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-display-errors-on-laravel-sites\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Display Errors on Laravel Sites\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Display Errors on Laravel Sites -","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:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/","og_locale":"en_US","og_type":"article","og_title":"How to Display Errors on Laravel Sites -","og_description":"Error display is useful to help in debugging applications. Laravel apps are no different. Laravel applications, however, do not use the default php.ini error display technique to display errors. If error display is not enabled well, you will see a customised error page. Below are the steps to use to enable error display on laravel [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/","article_modified_time":"2024-06-07T13:03:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/","name":"How to Display Errors on Laravel Sites -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"datePublished":"2021-09-30T05:12:12+00:00","dateModified":"2024-06-07T13:03:02+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-display-errors-on-laravel-sites\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Display Errors on Laravel Sites"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=6876"}],"version-history":[{"count":2,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6876\/revisions"}],"predecessor-version":[{"id":7380,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6876\/revisions\/7380"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=6876"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=6876"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=6876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}