Skip to content

Instantly share code, notes, and snippets.

@ManiruzzamanAkash
Created March 19, 2022 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManiruzzamanAkash/74269dc2f5cc79d14e81d701e22af558 to your computer and use it in GitHub Desktop.
Save ManiruzzamanAkash/74269dc2f5cc79d14e81d701e22af558 to your computer and use it in GitHub Desktop.
Laravel + Twilio SMS integration routes file
<?php
use App\Http\Controllers\HomeController;
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('/', [HomeController::class, 'show'])->name('home');
Route::post('/', [HomeController::class, 'storePhoneNumber']);
Route::post('/custom', [HomeController::class, 'sendCustomMessage']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment