[WIP] Working on orders & invoices

This commit is contained in:
Ludovic CANDELLIER
2022-08-19 22:04:44 +02:00
parent c22b10dd10
commit f89acd9399
32 changed files with 440 additions and 323 deletions

View File

@@ -1,6 +1,6 @@
<?php
Route::middleware('auth')->prefix('Customers')->name('Customers.')->group(function () {
Route::prefix('Customers')->name('Customers.')->group(function () {
Route::get('show/{id}', 'CustomerController@show')->name('show');
Route::get('profile/{id?}', 'CustomerController@profile')->name('profile');
});

View File

@@ -1,6 +1,6 @@
<?php
Route::middleware('auth')->prefix('Invoices')->name('Invoices.')->group(function () {
Route::get('show/{id}', 'InvoiceController@show')->name('show');
Route::prefix('Invoices')->name('Invoices.')->group(function () {
Route::get('show/{id}', 'InvoiceController@show')->name('show');
});

View File

@@ -2,6 +2,7 @@
Route::prefix('Orders')->name('Orders.')->group(function () {
Route::get('order', 'OrderController@order')->name('order');
Route::get('confirmed', 'OrderController@confirmed')->name('confirmed');
Route::post('order', 'OrderController@store')->name('store');
});