PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Ahmed Khan   PHP Realtime Chat with Laravel, Vue.js and Pusher   routes/web.php   Download  
File: routes/web.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Realtime Chat with Laravel, Vue.js and Pusher
Realtime chat application with an API and channels
Author: By
Last change:
Date: 2 years ago
Size: 674 bytes
 

Contents

Class file image Download
<?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');
});
Auth::routes();
Route::get('/home', 'HomeController@index');
Route::post('/chat','ChatController@sendMessage');
Route::get('/chat','ChatController@chatPage');


Auth::routes();

Route::get('/home', 'HomeController@index');