{"id":5657,"date":"2021-03-19T12:47:09","date_gmt":"2021-03-19T12:47:09","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=5657"},"modified":"2021-03-19T13:03:05","modified_gmt":"2021-03-19T13:03:05","slug":"how-to-upload-image-in-the-database-and-send-mail-image","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/","title":{"rendered":"How to upload image in the database and send mail image"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>1<sup>st<\/sup> step<\/strong>:- Open command prompt in C:\\xampp\\htdocs.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1024x576.png\" alt=\"\" class=\"wp-image-5658\" width=\"474\" height=\"266\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2.png 1920w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2<sup>nd<\/sup> step:-<\/strong> Write the code given below in the opened command prompt to make laravel project.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;&nbsp; composer create-project --prefer-dist laravel\/laravel ImageUpload \"5.8.*\"<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3<sup>rd<\/sup> step:-<\/strong> After the project is created, open the folder in any code editor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-4-1024x576.png\" alt=\"\" class=\"wp-image-5659\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-4-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-4-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-4-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-4-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-4.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4<sup>th<\/sup> step:-<\/strong> Now open xampp. And make a database.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-5-1024x576.png\" alt=\"\" class=\"wp-image-5660\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-5-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-5-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-5-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-5-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-5.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5<sup>th<\/sup> step:-<\/strong> Open the .env file of the project and change the name of the database same as defined in phpmyadmin.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-6-1024x576.png\" alt=\"\" class=\"wp-image-5661\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-6-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-6-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-6-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-6-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-6.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>6<sup>th<\/sup> step:-<\/strong> Write the code given below in command prompt to make controller.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>php artisan make:controller<\/strong><strong> <\/strong>ImageUpload<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>7<sup>th<\/sup> step:-<\/strong> Write the code given below in command prompt to make model.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp; <strong>php artisan make:model<\/strong><strong> <\/strong>ImageUpload<strong> <\/strong><strong>\u2013m<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>8<sup>th<\/sup> step:-<\/strong> write the name of the column of the databse in<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>database\\migrations\\2020_10_23_070450_create_ images _<\/strong><strong> <\/strong><strong>upload _table.php<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-7-1024x576.png\" alt=\"\" class=\"wp-image-5662\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-7-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-7-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-7-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-7-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-7.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>9<sup>th<\/sup> step:-<\/strong> Write the code given below in command prompt to migrate the table to the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/strong><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/strong><strong>php artisan migrate<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-8-1024x576.png\" alt=\"\" class=\"wp-image-5663\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-8-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-8-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-8-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-8-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-8.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>10<sup>th<\/sup> step:-<\/strong>Then make view page in resource\\views<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-10-1024x576.png\" alt=\"\" class=\"wp-image-5664\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-10-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-10-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-10-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-10-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-10.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Code of <strong>imageupload.blade.php<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/shashank969\/66502b1755eb7d1c9a48566b1d1d0b67.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>11<sup>th<\/sup> step:-<\/strong> Make one blade file <strong>resources\/view\/dynamic_email_template.blade.php<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-11-1024x576.png\" alt=\"\" class=\"wp-image-5665\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-11-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-11-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-11-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-11-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-11.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>And paste the code given below:-<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;p&nbsp;style=&#8221;margin-left:10%;&#8221;&gt;First&nbsp;Name&nbsp;&#8211;&nbsp;&lt;b&gt;{{&nbsp;$data[&#8216;name&#8217;]&nbsp;}}&nbsp;&lt;\/b&gt;&lt;\/p&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;p&nbsp;style=&#8221;margin-left:10%;&#8221;&gt;last&nbsp;Name&nbsp;&#8211;&nbsp;&lt;b&gt;{{&nbsp;$data[&#8217;email&#8217;]&nbsp;}}&nbsp;&nbsp;&lt;\/b&gt;&lt;\/p&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;p&gt;It&nbsp;would&nbsp;be&nbsp;appriciative,&nbsp;if&nbsp;you&nbsp;gone&nbsp;through&nbsp;this&nbsp;feedback.&lt;\/p&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>12<sup>th<\/sup> step:-<\/strong> Go to <strong>web.php<\/strong> and make routes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-12-1024x576.png\" alt=\"\" class=\"wp-image-5666\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-12-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-12-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-12-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-12-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-12.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The code is given below:-<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Route::get(&#8216;sendemail&#8217;,&#8217;SendEmailController@index&#8217;);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Route::post(&#8216;sendemail.store&#8217;,&#8217;SendEmailController@store&#8217;)-&gt;name(&#8216;sendemail.store&#8217;);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>13<sup>th<\/sup> step:-<\/strong> Go to controller and call model class<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Paste the code given below below <\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/shashank969\/164b6f563be83821fa9d242c5b493166.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>14<sup>th<\/sup> step:-<\/strong> Now make the mail. Write the code given below in command prompt:-<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>php artisan make:mail SendMail<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-13-1024x576.png\" alt=\"\" class=\"wp-image-5667\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-13-1024x576.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-13-300x169.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-13-768x432.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-13-1536x864.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-13.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>15<sup>th<\/sup> step:-<\/strong> Paste the code given below in the file made by the above command:-<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/shashank969\/a13b3a70e424fa8d939949f5bfa61dfd.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>16<sup>th<\/sup> step:-<\/strong> Make an account in mailtrap. 17<sup>th<\/sup> step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>17<sup>th<\/sup> step:-<\/strong> copy host, port, Username and password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>18<sup>th<\/sup> step:-<\/strong>configure <strong>.env<\/strong> file with the details copied by the mailtrap id.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>19<sup>th<\/sup> step:-<\/strong> Now run the command given below in the terminal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>php artisan c:cache<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>php artisan serve<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1st step:- Open command prompt in C:\\xampp\\htdocs. 2nd step:- Write the code given below in the opened command prompt to [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[473,5052,5149],"class_list":["post-5657","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-email","tag-laravel","tag-upload-image"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to upload image in the database and send mail image - 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-to-upload-image-in-the-database-and-send-mail-image\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to upload image in the database and send mail image - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"1st step:- Open command prompt in C:xampphtdocs. 2nd step:- Write the code given below in the opened command prompt to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-19T12:47:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-19T13:03:05+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1024x576.png\" \/>\n<meta name=\"author\" content=\"shashank 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=\"shashank K\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/\"},\"author\":{\"name\":\"shashank K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/c88b513657ea9e9a6cd8a9b3a3bff6f3\"},\"headline\":\"How to upload image in the database and send mail image\",\"datePublished\":\"2021-03-19T12:47:09+00:00\",\"dateModified\":\"2021-03-19T13:03:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/\"},\"wordCount\":433,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/Screenshot-2-1024x576.png\",\"keywords\":[\"email\",\"laravel\",\"upload image\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/\",\"name\":\"How to upload image in the database and send mail image - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/Screenshot-2-1024x576.png\",\"datePublished\":\"2021-03-19T12:47:09+00:00\",\"dateModified\":\"2021-03-19T13:03:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/c88b513657ea9e9a6cd8a9b3a3bff6f3\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/Screenshot-2-1024x576.png\",\"contentUrl\":\"http:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/Screenshot-2-1024x576.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-upload-image-in-the-database-and-send-mail-image\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to upload image in the database and send mail image\"}]},{\"@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\\\/c88b513657ea9e9a6cd8a9b3a3bff6f3\",\"name\":\"shashank K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1d7da7c43d650339f6ab219ed52f462ee8ce994ce0d45b50c0700eead0676a4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1d7da7c43d650339f6ab219ed52f462ee8ce994ce0d45b50c0700eead0676a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1d7da7c43d650339f6ab219ed52f462ee8ce994ce0d45b50c0700eead0676a4?s=96&d=mm&r=g\",\"caption\":\"shashank K\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/shashank\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to upload image in the database and send mail image - 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-to-upload-image-in-the-database-and-send-mail-image\/","og_locale":"en_US","og_type":"article","og_title":"How to upload image in the database and send mail image - scmGalaxy","og_description":"1st step:- Open command prompt in C:xampphtdocs. 2nd step:- Write the code given below in the opened command prompt to [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/","og_site_name":"scmGalaxy","article_published_time":"2021-03-19T12:47:09+00:00","article_modified_time":"2021-03-19T13:03:05+00:00","og_image":[{"url":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1024x576.png","type":"","width":"","height":""}],"author":"shashank K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"shashank K","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/"},"author":{"name":"shashank K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/c88b513657ea9e9a6cd8a9b3a3bff6f3"},"headline":"How to upload image in the database and send mail image","datePublished":"2021-03-19T12:47:09+00:00","dateModified":"2021-03-19T13:03:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/"},"wordCount":433,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/#primaryimage"},"thumbnailUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1024x576.png","keywords":["email","laravel","upload image"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/","name":"How to upload image in the database and send mail image - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/#primaryimage"},"thumbnailUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1024x576.png","datePublished":"2021-03-19T12:47:09+00:00","dateModified":"2021-03-19T13:03:05+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/c88b513657ea9e9a6cd8a9b3a3bff6f3"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/#primaryimage","url":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1024x576.png","contentUrl":"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/03\/Screenshot-2-1024x576.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-upload-image-in-the-database-and-send-mail-image\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to upload image in the database and send mail image"}]},{"@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\/c88b513657ea9e9a6cd8a9b3a3bff6f3","name":"shashank K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a1d7da7c43d650339f6ab219ed52f462ee8ce994ce0d45b50c0700eead0676a4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a1d7da7c43d650339f6ab219ed52f462ee8ce994ce0d45b50c0700eead0676a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a1d7da7c43d650339f6ab219ed52f462ee8ce994ce0d45b50c0700eead0676a4?s=96&d=mm&r=g","caption":"shashank K"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/shashank\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5657","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\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=5657"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5657\/revisions"}],"predecessor-version":[{"id":5673,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/5657\/revisions\/5673"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=5657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=5657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=5657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}