Skip to content

Instantly share code, notes, and snippets.

@victorsteven
Last active April 15, 2019 17:06
Show Gist options
  • Save victorsteven/e9ef508059169cac09dbe498705dcc37 to your computer and use it in GitHub Desktop.
Save victorsteven/e9ef508059169cac09dbe498705dcc37 to your computer and use it in GitHub Desktop.
Route file
<?php
/*
|--------------------------------------------------------------------------
| 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');
});
Route::get('/get_users', 'MessageController@getUsers');
Route::get('/get_messages', 'MessageController@getMessages');
Route::post('notifications', 'MessageController@sendMail');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment