[WIP] Setup of skeleton
This commit is contained in:
6
routes/shop/Customers.php
Normal file
6
routes/shop/Customers.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
Route::middleware('auth')->prefix('Customers')->name('Customers.')->group(function () {
|
||||
Route::get('show/{id}', 'CustomerController@show')->name('show');
|
||||
});
|
||||
|
||||
6
routes/shop/Invoices.php
Normal file
6
routes/shop/Invoices.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
Route::middleware('auth')->prefix('Invoices')->name('Invoices.')->group(function () {
|
||||
Route::get('show/{id}', 'InvoiceController@show')->name('show');
|
||||
});
|
||||
|
||||
11
routes/shop/Orders.php
Normal file
11
routes/shop/Orders.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Orders')->name('Orders.')->group(function () {
|
||||
Route::get('', 'OrderController@index')->name('index');
|
||||
Route::get('create', 'OrderController@create')->name('create');
|
||||
Route::delete('destroy', 'OrderController@destroy')->name('destroy');
|
||||
Route::post('update', 'OrderController@update')->name('update');
|
||||
Route::post('store', 'OrderController@store')->name('store');
|
||||
Route::get('edit/{id}', 'OrderController@edit')->name('edit');
|
||||
});
|
||||
|
||||
8
routes/shop/Products.php
Normal file
8
routes/shop/Products.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Products')->name('Products.')->group(function () {
|
||||
Route::get('', 'ProductController@index')->name('index');
|
||||
Route::get('bySection/{id}', 'ProductController@bySection')->name('index');
|
||||
Route::get('show/{id}', 'ProductController@show')->name('show');
|
||||
});
|
||||
|
||||
7
routes/shop/Sections.php
Normal file
7
routes/shop/Sections.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Sections')->name('Sections.')->group(function () {
|
||||
Route::get('', 'SectionController@index')->name('index');
|
||||
Route::get('show/{id}', 'SectionController@show')->name('show');
|
||||
});
|
||||
|
||||
12
routes/shop/admin/Customers.php
Normal file
12
routes/shop/admin/Customers.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Customers')->name('Customers.')->group(function () {
|
||||
Route::get('', 'CustomerController@index')->name('index');
|
||||
Route::get('create', 'CustomerController@create')->name('create');
|
||||
Route::delete('destroy', 'CustomerController@destroy')->name('destroy');
|
||||
Route::post('update', 'CustomerController@update')->name('update');
|
||||
Route::post('store', 'CustomerController@store')->name('store');
|
||||
Route::get('edit/{id}', 'CustomerController@edit')->name('edit');
|
||||
|
||||
});
|
||||
|
||||
4
routes/shop/admin/Inventories.php
Normal file
4
routes/shop/admin/Inventories.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
Route::resource('Inventories', 'InventoryController');
|
||||
|
||||
4
routes/shop/admin/InventoryPlaces.php
Normal file
4
routes/shop/admin/InventoryPlaces.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
Route::resource('InventoryPlaces', 'InventoryPlaceController');
|
||||
|
||||
4
routes/shop/admin/InvoiceItems.php
Normal file
4
routes/shop/admin/InvoiceItems.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
Route::resource('InvoiceItems', 'InvoiceItemController');
|
||||
|
||||
12
routes/shop/admin/Invoices.php
Normal file
12
routes/shop/admin/Invoices.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Invoices')->name('Invoices.')->group(function () {
|
||||
Route::get('', 'InvoiceController@index')->name('index');
|
||||
Route::get('create', 'InvoiceController@create')->name('create');
|
||||
Route::delete('destroy', 'InvoiceController@destroy')->name('destroy');
|
||||
Route::post('update', 'InvoiceController@update')->name('update');
|
||||
Route::post('store', 'InvoiceController@store')->name('store');
|
||||
Route::get('edit/{id}', 'InvoiceController@edit')->name('edit');
|
||||
|
||||
});
|
||||
|
||||
4
routes/shop/admin/OrderPayments.php
Normal file
4
routes/shop/admin/OrderPayments.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
Route::resource('OrderPayments', 'OrderPaymentController');
|
||||
|
||||
12
routes/shop/admin/Orders.php
Normal file
12
routes/shop/admin/Orders.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Orders')->name('Orders.')->group(function () {
|
||||
Route::get('', 'OrderController@index')->name('index');
|
||||
Route::get('create', 'OrderController@create')->name('create');
|
||||
Route::delete('destroy', 'OrderController@destroy')->name('destroy');
|
||||
Route::post('update', 'OrderController@update')->name('update');
|
||||
Route::post('store', 'OrderController@store')->name('store');
|
||||
Route::get('edit/{id}', 'OrderController@edit')->name('edit');
|
||||
|
||||
});
|
||||
|
||||
4
routes/shop/admin/ProductAttributes.php
Normal file
4
routes/shop/admin/ProductAttributes.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
Route::resource('ProductAttributes', 'ProductAttributeController');
|
||||
|
||||
4
routes/shop/admin/ProductPrices.php
Normal file
4
routes/shop/admin/ProductPrices.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
Route::resource('ProductPrices', 'ProductPriceController');
|
||||
|
||||
12
routes/shop/admin/Products.php
Normal file
12
routes/shop/admin/Products.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Products')->name('Products.')->group(function () {
|
||||
Route::get('', 'ProductController@index')->name('index');
|
||||
Route::get('create', 'ProductController@create')->name('create');
|
||||
Route::delete('destroy', 'ProductController@destroy')->name('destroy');
|
||||
Route::post('update', 'ProductController@update')->name('update');
|
||||
Route::post('store', 'ProductController@store')->name('store');
|
||||
Route::get('edit/{id}', 'ProductController@edit')->name('edit');
|
||||
|
||||
});
|
||||
|
||||
12
routes/shop/admin/Sections.php
Normal file
12
routes/shop/admin/Sections.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Sections')->name('Sections.')->group(function () {
|
||||
Route::get('', 'SectionController@index')->name('index');
|
||||
Route::get('create', 'SectionController@create')->name('create');
|
||||
Route::delete('destroy', 'SectionController@destroy')->name('destroy');
|
||||
Route::post('update', 'SectionController@update')->name('update');
|
||||
Route::post('store', 'SectionController@store')->name('store');
|
||||
Route::get('edit/{id}', 'SectionController@edit')->name('edit');
|
||||
|
||||
});
|
||||
|
||||
16
routes/shop/admin/route.php
Normal file
16
routes/shop/admin/route.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
Route::middleware('auth')->prefix('Admin')->namespace('Admin')->name('Admin.')->group(function () {
|
||||
Route::get('dashboard', 'DashboardController@index')->name('dashboard');
|
||||
include( __DIR__ . '/Customers.php');
|
||||
include( __DIR__ . '/Inventories.php');
|
||||
include( __DIR__ . '/InventoryPlaces.php');
|
||||
include( __DIR__ . '/InvoiceItems.php');
|
||||
include( __DIR__ . '/Invoices.php');
|
||||
include( __DIR__ . '/OrderPayments.php');
|
||||
include( __DIR__ . '/Orders.php');
|
||||
include( __DIR__ . '/ProductAttributes.php');
|
||||
include( __DIR__ . '/ProductPrices.php');
|
||||
include( __DIR__ . '/Products.php');
|
||||
include( __DIR__ . '/Sections.php');
|
||||
});
|
||||
10
routes/shop/route.php
Normal file
10
routes/shop/route.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
Route::prefix('Shop')->namespace('Shop')->name('Shop.')->group(function () {
|
||||
include( __DIR__ . '/Customers.php');
|
||||
include( __DIR__ . '/Invoices.php');
|
||||
include( __DIR__ . '/Orders.php');
|
||||
include( __DIR__ . '/Products.php');
|
||||
include( __DIR__ . '/Sections.php');
|
||||
include( __DIR__ . '/admin/route.php');
|
||||
});
|
||||
@@ -11,6 +11,14 @@
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
Auth::routes();
|
||||
|
||||
Route::get('', 'Shop\HomeController@index')->name('welcome');
|
||||
Route::get('home', 'Shop\HomeController@index')->name('home');
|
||||
|
||||
// include( __DIR__ . '/boilerplate/route.php');
|
||||
// include( __DIR__ . '/admin/route.php');
|
||||
include( __DIR__ . '/shop/route.php');
|
||||
|
||||
|
||||
Route::get('cache', 'JS\CacheController@getCacheVersions')->name('cacheVersions');
|
||||
|
||||
Reference in New Issue
Block a user