MIF_E31222707/routes/web.php

31 lines
832 B
PHP

<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
*/
Route::get('/', function () {
return view('auth.login');
})->middleware('guest');
Auth::routes(['register' => false]);
Route::group(['middleware' => 'auth'], function () {
Route::get('/home', 'HomeController@index')
->name('home');
Route::get('/sales-purchases/chart-data', 'HomeController@salesPurchasesChart')
->name('sales-purchases.chart');
Route::get('/current-month/chart-data', 'HomeController@currentMonthChart')
->name('current-month.chart');
Route::get('/payment-flow/chart-data', 'HomeController@paymentChart')
->name('payment-flow.chart');
});