Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Upload image in the database with local folder and image send mail.

Step-1 open terminal as a git base here in C:\xampp\htdocs look a pic

After click on git base Here it will be open like this look a pic.

After an open the terminal, you have to paste this code in the terminal below this code for making laravel project.and press enter to run this project. It will take a few minutes for installing this project.

composer create-project --prefer-dist laravel/laravel ImageUploadMailSend "5.8.*"Code language: JavaScript (javascript)

Step-2 After installed the project type in your terminal for inter the project cd ImageUploadMailSend

Step-3 Open this project in any code editor like that notepad++,visual code. and go to .env file and write database name.

Step-4 make database in follow this step.

Step:5 After start Apache and MySql ,open browser write this url http://localhost/phpmyadmin/server_databases.php then make database anme.

Step-6 mkae a controller.
php artisan make:controller SendEmailController

Step:7 make a model
php artisan make:model UploadImage -m

Step:8 write a column name in this table name, email, image. database\migrations\2020_10_23_070450_create_upload_images_table.php

Step-9 Then migrate table
go to terminal and write this keyword for migrate
php artisan migrate

Step:10 Then make a view page send_email.blade.php

This is code of send_email.blade.php

Step:11 make one blade page resources/view/dynamic_email_template.blade.php

Step-12. make route go to and write this code in web.php

Step-13 web.php

Step-14 go to controller and call model class.

Step:15 make a mail
php artisan make:mail SendMail

Step-16 go to Mail/Sendmail then write this code. it will work for send mail.

Step-17 open mailtrap and make a account,
https://mailtrap.io/signin

Step-18 Then Configure .env file

Step-19– After run this command in the terminal
php artisan c:cache
Then
php artisan serve after serve you can run run this url in your broswer
http://127.0.0.1:8000/sendemail

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
sam
MotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage of affordability and ease.

Related Posts

What is Laravel and use cases of Laravel?

What is Laravel? Laravel is an open-source, free PHP web framework designed for the development of web applications following the model-view-controller (MVC) architectural pattern. It was generated…

Read More

Complete guide of Laravel certification courses, tutorials & training

What is Laravel Laravel is a reliable and simple to use open-source PHP framework. It adheres to the model-view-controller pattern of design. Laravel makes use of pre-existing…

Read More

Top 100 laravel interview questions and answers

1) What is Laravel? Laravel is an open-source widely used PHP framework. The platform was intended for the development of web application by using MVC architectural pattern….

Read More

[SOLVED] Laravel : Supervisor FATAL/BACKOFF Exited too quickly (process log may have details)

Problem I’m trying to use Laravel queues with a supervisor but the service is not working properly. When I try to check status:$ sudo supervisorctl status$ laravel-worker:laravel-worker_00:…

Read More

How to Login with Token in Laravel PHP Framework?

How to Login with Token in Laravel PHP Framework? Step 1. Create a new Project, so write down the following command on Git Bash: Step 2. Move…

Read More

Directory Structure Of Laravel Application

devopsschool – This is Project Folder app – The app directory contains the core code of your application. bootstrap – The bootstrap directory contains the app.php file…

Read More