generated from boboko/starter
product custom fields
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
use App\Http\Controllers\CategoryController;
|
||||
use App\Http\Controllers\ContactController;
|
||||
use App\Http\Controllers\CustomFieldUploadController;
|
||||
use App\Http\Controllers\HomeController;
|
||||
use App\Http\Controllers\LegalPageController;
|
||||
use App\Http\Controllers\ProductController;
|
||||
@@ -33,6 +34,13 @@
|
||||
'product.stock-check',
|
||||
);
|
||||
|
||||
// Photo for a product custom field, uploaded as soon as it's picked —
|
||||
// see CustomFieldUploadController. Throttled: it writes to disk and
|
||||
// needs no cart/session to call.
|
||||
Route::post('/custom-field-uploads', [CustomFieldUploadController::class, 'store'])
|
||||
->middleware('throttle:20,1')
|
||||
->name('custom-field-upload.store');
|
||||
|
||||
Route::post('/products/{product}/reviews', [ProductController::class, 'storeReview'])->name(
|
||||
'product.reviews.store',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user