[WIP] Setup of skeleton

This commit is contained in:
Ludovic CANDELLIER
2020-03-25 00:08:27 +01:00
parent baf8e13c25
commit 36267139a1
377 changed files with 18248 additions and 26 deletions

View 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
View 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
View 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
View 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
View 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');
});

View 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');
});

View File

@@ -0,0 +1,4 @@
<?php
Route::resource('Inventories', 'InventoryController');

View File

@@ -0,0 +1,4 @@
<?php
Route::resource('InventoryPlaces', 'InventoryPlaceController');

View File

@@ -0,0 +1,4 @@
<?php
Route::resource('InvoiceItems', 'InvoiceItemController');

View 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');
});

View File

@@ -0,0 +1,4 @@
<?php
Route::resource('OrderPayments', 'OrderPaymentController');

View 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');
});

View File

@@ -0,0 +1,4 @@
<?php
Route::resource('ProductAttributes', 'ProductAttributeController');

View File

@@ -0,0 +1,4 @@
<?php
Route::resource('ProductPrices', 'ProductPriceController');

View 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');
});

View 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');
});

View 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
View 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');
});

View File

@@ -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');