\app\Http\Controllers\TestController.php This is the file which will invoke email sending logic.
php artisan make:mail TestEmailSender
- The above command will create \app\Mail\TestEmailSender.php with below code
// Fonts | |
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600"); | |
// Variables | |
@import "variables"; | |
// Bootstrap | |
//@import "~bootstrap-sass/assets/stylesheets/bootstrap"; //remove this line | |
@import "~bootstrap/scss/bootstrap.scss"; //add this line |
<?php | |
namespace App\Http\Controllers; | |
use App\Http\Controllers; | |
use Mail; | |
use Illuminate\Http\Request; | |
use App\Mail\TestEmailSender; | |
use Illuminate\Support\Facades\Log; |
<?php | |
namespace App\Http\Controllers; | |
use App\Http\Controllers; | |
use Mail; | |
use Illuminate\Http\Request; | |
use App\Mail\TestEmailSender; | |
use Illuminate\Support\Facades\Log; |
Ans- When we have to Configure Gmail SMTP Server in Laravel Application
Our .env file looks like this after Configuration:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=ENTER_YOUR_EMAIL_ADDRESS(GMAIL)
MAIL_PASSWORD=ENTER_YOUR_GMAIL_PASSWORD
This browser does not support PDFs. Please download the PDF to view it: Download PDF.
image credit goes to https://www.ibm.com/
The term Virtual Host refers to the practice of running more than one web site (such as Demo.Website1.com and Demo.Website2.com) on a single machine. Virtual hosts can be "IP-based", meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user.
With name-based virtual hosting, the server relies on the client to report the hostname as part of the HTTP headers. Using this technique, many different hosts can share the same IP address.
Name-based virtual hosting is usually simpler, since you need only configure your DNS server to map each hostname to the correct IP address and then configure the Apache HTTP Server to recognize the di
Laravel Migration Example Tutorial. This tutorial explain you step by step, how you can add single or multiple columns in your existing database tables.
Sometimes there is a need to add new columns in your database tables. Today we will show you how to add new columns or columns to an existing table using Laravel migration.
Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. Supervisor provides you with one place to start, stop, and monitor your processes. Processes can be controlled individually or in groups. You can configure Supervisor to provide a local or remote command line and web interface.
The supervisor is a process manager which Laravel suggests to use as a process monitor for queue workers. It will automatically start the queue worker in the background, even after the system has booted and will automatically restart the worker if the worker exits unexpectedly.