skip to Main Content

The GET method is not supported for route new-order-form. Supported methods: POST. LARAVEL

Please help me! I don't know where am I wrong? web.php: Route::post('new-order-form', [OrderController::class, 'showNewOrderForm'])->name('new.order.form'); OrderController.php: public function showNewOrderForm() { $products = SanPham::all(); $employees = Employee::all(); return view('order.new_order_form', compact('products', 'employees')); } /order/new_order_form.blade.php /order/order.blade.php: $(document).ready(function(){ // Hiển thị form tạo đơn hàng…

VIEW QUESTION

Html – CSS and JS: How to prevent "event.target.innerText" from deleting inside tag

For example, I have a tag like: <p><a href="mailto:[email protected]">[email protected]</a></p> When it runs through this: const repetitions = setInterval(x => { originalText = event.target.innerText; splitText = event.target.dataset.value.split(""); event.target.innerText = splitText.map((character, index) => { if (index < i) { return event.target.dataset.value[index]; }…

VIEW QUESTION

Javascript – Unable to run yarn clasp login

Unable to run yarn clasp login I am not good at English. Please understand. 8> yarn clasp login yarn run v1.22.22 $ C:UsersmynameDesktop個人開発プロジェクトclasp-240418node_modules.binclasp login Error retrieving access token: FetchError: request to https://oauth2.googleapis.com/token failed, reason: unable to verify the first certificate…

VIEW QUESTION
Back To Top
Search