PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   PHP Inventory Management System with Scanner   routes/web.php   Download  
File: routes/web.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Inventory Management System with Scanner
Manage inventory stock using scanner application
Author: By
Last change: Update of routes/web.php
Date: 4 years ago
Size: 3,706 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('auth.login');
   
return redirect()->route('login');
});

Auth::routes();

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

Route::get('dashboard', function () {
   return
view('layouts.master');
});

Route::group(['middleware' => 'auth'], function () {
   
Route::resource('categories','CategoryController');
   
Route::get('/apiCategories','CategoryController@apiCategories')->name('api.categories');
   
Route::get('/exportCategoriesAll','CategoryController@exportCategoriesAll')->name('exportPDF.categoriesAll');
   
Route::get('/exportCategoriesAllExcel','CategoryController@exportExcel')->name('exportExcel.categoriesAll');

   
Route::resource('customers','CustomerController');
   
Route::get('/apiCustomers','CustomerController@apiCustomers')->name('api.customers');
   
Route::post('/importCustomers','CustomerController@ImportExcel')->name('import.customers');
   
Route::get('/exportCustomersAll','CustomerController@exportCustomersAll')->name('exportPDF.customersAll');
   
Route::get('/exportCustomersAllExcel','CustomerController@exportExcel')->name('exportExcel.customersAll');

   
Route::resource('sales','SaleController');
   
Route::get('/apiSales','SaleController@apiSales')->name('api.sales');
   
Route::post('/importSales','SaleController@ImportExcel')->name('import.sales');
   
Route::get('/exportSalesAll','SaleController@exportSalesAll')->name('exportPDF.salesAll');
   
Route::get('/exportSalesAllExcel','SaleController@exportExcel')->name('exportExcel.salesAll');

   
Route::resource('suppliers','SupplierController');
   
Route::get('/apiSuppliers','SupplierController@apiSuppliers')->name('api.suppliers');
   
Route::post('/importSuppliers','SupplierController@ImportExcel')->name('import.suppliers');
   
Route::get('/exportSupplierssAll','SupplierController@exportSuppliersAll')->name('exportPDF.suppliersAll');
   
Route::get('/exportSuppliersAllExcel','SupplierController@exportExcel')->name('exportExcel.suppliersAll');

   
Route::resource('products','ProductController');
   
Route::get('/apiProducts','ProductController@apiProducts')->name('api.products');

   
Route::resource('productsOut','ProductOutController');
   
Route::get('/apiProductsOut','ProductOutController@apiProductsOut')->name('api.productsOut');
   
Route::get('/exportProductOutAll','ProductOutController@exportProductOutAll')->name('exportPDF.productOutAll');
   
Route::get('/exportProductOutAllExcel','ProductOutController@exportExcel')->name('exportExcel.productOutAll');
   
Route::get('/exportProductOut/','ProductOutController@exportProductOut')->name('exportPDF.productOut');
   
Route::get('/checkAvailable/{id}','ProductOutController@checkAvailable')->name('checkAvailable');

   
Route::resource('productsIn','ProductInController');
   
Route::get('/apiProductsIn','ProductInController@apiProductsIn')->name('api.productsIn');
   
Route::get('/exportProductInAll','ProductInController@exportProductInAll')->name('exportPDF.productInAll');
   
Route::get('/exportProductInAllExcel','ProductInController@exportExcel')->name('exportExcel.productInAll');

   
Route::resource('users','UserController');
   
Route::get('/apiUsers','UserController@apiUsers')->name('api.users');

   
Route::resource('company','CompanyController');
});