Skip to content

Instantly share code, notes, and snippets.

@tararoutray
Created September 26, 2021 10:34
Show Gist options
  • Save tararoutray/b856692fc06f0af1eab5e5a5ed9a0a6e to your computer and use it in GitHub Desktop.
Save tararoutray/b856692fc06f0af1eab5e5a5ed9a0a6e to your computer and use it in GitHub Desktop.
<?php
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
/**
* Add a new route named "send-email". Upon accessing this URL, the "sendEmail"
* function inside the "EmailController" class will be triggered.
*/
Route::get('send-email', [App\Http\Controllers\EmailController::class, 'sendEmail']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment