{"id":103,"date":"2025-05-20T04:37:16","date_gmt":"2025-05-20T04:37:16","guid":{"rendered":"https:\/\/documentation.iqonic.design\/frezka\/?p=103"},"modified":"2026-02-03T11:03:24","modified_gmt":"2026-02-03T11:03:24","slug":"laravel-configuration","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/frezka\/laravel-configuration\/","title":{"rendered":"Configuration"},"content":{"rendered":"<div class=\"nolwrap\">\n<h2 class=\"wp-block-heading\">\u2699\ufe0f Configuration \u2013 Mail Setup<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Why is Mail Configuration Required?<\/h3>\n\n\n\n<p>If your Laravel application includes features such as <strong>password resets, booking confirmations, notifications, or contact forms<\/strong>, the system needs to send emails.<\/p>\n\n\n\n<p>To make this work, you must properly configure the <strong>mail settings<\/strong>.<\/p>\n\n\n\n<p>Laravel stores sensitive system settings like email credentials inside a special configuration file called:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.env<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udce9 Steps to Configure Mail in Laravel<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 1: Open the <code>.env<\/code> File<\/strong><\/h2>\n\n\n\n<p>Locate the <code>.env<\/code> file in the <strong>root directory<\/strong> of your Laravel project and open it in a code editor.<\/p>\n\n\n\n<p>Add or update the following mail configuration:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MAIL_MAILER=\"smtp\"<br>MAIL_HOST=\"your_mail_host\"<br>MAIL_PORT=\"your_mail_port\"<br>MAIL_USERNAME=\"your_email_id\"<br>MAIL_PASSWORD=\"your_email_password\"<br>MAIL_ENCRYPTION=\"tls_or_ssl\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 2: Understand Each Mail Setting<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><strong>MAIL_MAILER<\/strong><\/td><td>Mail driver, usually set to <code>smtp<\/code><\/td><\/tr><tr><td><strong>MAIL_HOST<\/strong><\/td><td>Your email provider\u2019s SMTP server (e.g., <code>smtp.gmail.com<\/code>)<\/td><\/tr><tr><td><strong>MAIL_PORT<\/strong><\/td><td>SMTP port number (commonly <code>587<\/code>, <code>465<\/code>, or <code>2525<\/code>)<\/td><\/tr><tr><td><strong>MAIL_USERNAME<\/strong><\/td><td>The email address used to send emails<\/td><\/tr><tr><td><strong>MAIL_PASSWORD<\/strong><\/td><td>Your email password or <strong>app-specific password<\/strong><\/td><\/tr><tr><td><strong>MAIL_ENCRYPTION<\/strong><\/td><td>Security type \u2014 usually <code>tls<\/code> or <code>ssl<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcdd Example: Gmail Mail Configuration<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">MAIL_MAILER=smtp<br>MAIL_HOST=smtp.gmail.com<br>MAIL_PORT=587<br>MAIL_USERNAME=yourname@gmail.com<br>MAIL_PASSWORD=your_app_password<br>MAIL_ENCRYPTION=tls<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u26a0\ufe0f <strong>Important:<\/strong> If you are using Gmail, you must generate an <strong>App Password<\/strong> instead of using your normal Gmail password.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 Final Step<\/h2>\n\n\n\n<p>After saving the <code>.env<\/code> file:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Restart your server (if running)<\/li>\n\n\n\n<li>Clear config cache (recommended):<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">php artisan config:clear<br>php artisan cache:clear<\/pre>\n\n\n\n<p>Your Laravel application should now be able to send emails successfully.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f App Configuration Settings<\/h2>\n\n\n\n<p>You can also update general website\/app information from the Admin Panel, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Application Name<\/li>\n\n\n\n<li>Footer Text<\/li>\n\n\n\n<li>Copyright Text<\/li>\n\n\n\n<li>Helpline Number<\/li>\n\n\n\n<li>Inquiry Email<\/li>\n\n\n\n<li>Site Description<\/li>\n\n\n\n<li>Website Logos<\/li>\n<\/ul>\n\n\n\n<p>These settings help personalize the platform according to your business branding.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1599\" height=\"1366\" src=\"https:\/\/documentation.iqonic.design\/frezka\/wp-content\/uploads\/sites\/13\/2025\/05\/Configuration.png\" alt=\"\" class=\"wp-image-498\" \/><\/figure>\n\n\n\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u2699\ufe0f Configuration \u2013 Mail Setup Why is Mail Configuration Required? If your Laravel application includes features such as password resets, booking confirmations, notifications, or contact forms, the system needs to send emails. To make this work, you must properly configure the mail settings. Laravel stores sensitive system settings like email credentials inside a special configuration [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":44,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"featured_image_src":null,"author_info":{"display_name":"laraveladminiq","author_link":"https:\/\/documentation.iqonic.design\/frezka\/author\/laraveladminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":7,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":1417,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts\/103\/revisions\/1417"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/posts\/44"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/frezka\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}