Slide 1
Most trusted JOB oriented professional program
DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2
DevOps to DevSecOps – Learn the evolution
DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2
Get certified in the new tech skill to rule the industry
Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2
Master the art of DevOps
Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2
Gain expertise and certified yourself
Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3
Learn and get certified
AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

previous arrow
next arrow

How can send a mail with Attachment using laravel 5.5

Spread the Knowledge

Step:1- composer create-project laravel/laravel mail
composer create-project –prefer-dist laravel/laravel mail “5.8.*”

Step:2 – Create Controller php artisan make:controller:SendEmailController This command will make SendEmailController.php file in app/Http/Controllers

Step:3- Go to the this path app/Http/Controllers/SendEmailController.php copy this code all and paste in this controller page SendEmailController.php

Step 4 – Create View Contact Form

Now we would make a view file for the display contact form on the web page. Below you can find the source code of contact form view file.

Step 5 – Set Route we have created under the Controller file. So here we will make two methods like index() and send() method under the controller. For this, we have to go to routes/web.php to set the route.

Step 6 – Create a Mailable class first you have to create an account in mailtrap or click this url after create account you have to copy Username: XXXXXXXXX and password: XXXXXXXXXX and put in .env file see pic

Step:7- Now we are ready for make mailable class for this we have to go teminal and write following command. php artisan make:mail SendMail

This command will make SendMail.php file inside App\Mail\SendMail.php. In this class we have to define one property with name $data, by using this property we can pass data at the time of create an new instance of this class. App\Mail\SendMail.php

Step: 8 – Make View file for Email Body resources/views/dynamic_email_template.blade.php

Step:9- php artisan serve run this command and put url in your browser


Facebook Notice for EU! You need to login to view and post FB Comments!