PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Naif Alshaye  >  PHP Twitter Bot  >  routes/web.php  >  Download  
File: routes/web.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Twitter Bot
Application to automate interactions using Twitter
Author: By
Last change:
Date: 1 year ago
Size: 1,249 bytes
 

Contents

Class file image Download
<?php

Auth
::routes();

Route::get('/', function () {
    return
redirect('/login');
});

Route::group(['middleware' => 'auth'], function() {
   
Route::post('/change_password', 'Auth\ChangePasswordController@update');

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

   
Route::get('/setting', 'SettingController@index');
   
Route::post('/setting', 'SettingController@update');

   
Route::resource('chat', 'ChatController');
   
Route::resource('archive', 'ArchiveController');
   
Route::resource('schedule', 'ScheduleController');

   
Route::get('/chat/status/{id}', 'ChatController@status');
   
Route::get('/archive/status/{id}', 'ArchiveController@status');
   
Route::get('/schedule/status/{id}', 'ScheduleController@status');

   
Route::get('/chat_tweets', "ChatTweetController@index");
   
Route::get('/tweets', "ArchiveTweetsController@index");

   
Route::get('/dm', "DMController@index");
   
Route::get('/dm_config', "DMController@dmConfig");
   
Route::post('/dm_config', "DMController@updateConfig");

   
Route::get('/analytics', "AnalyticsController@index");

   
Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');

});

Route::get('storage/{filename}', "GuestController@showImage");


For more information send a message to info at phpclasses dot org.