Menu
About LCS
Projects
All snippet related to projects
Listing rows of orders - crud
Step 01: Changing index() method in OrderController public function index( Request $request ) { $meta_title = 'All Orders'; $query =...
Topic:
Mini Ecommerce
3 years ago
Adding order with order item - cruds of order
Step 01: Adding add button just above of table element in list of products All Orders Add Order Step 02:...
Topic:
Mini Ecommerce
3 years ago
Editing order data - crud of orders
Step 01: In OrderController, adding edit() method public function edit( Order $order ) { $meta_title = 'Edit Order ' ....
Topic:
Mini Ecommerce
3 years ago
Deleting and searching order data - crud of orders
Step 01: In OrderController, adding destroy() method public function destroy( Order $order ) { $order->order_items->each->delete(); $order->delete(); $redirectTo = session()->get('submit_redirect'); if(...
Topic:
Mini Ecommerce
3 years ago
Adding total price calculation of an order item for an order - cruds of order
In this previous post where order addition tutorial was posted we have not implemented one step where we created a...
Topic:
Mini Ecommerce
3 years ago
Listing rows of order items - crud
Step 01: Setting up web.php in routes for order_item resource and also moving out calculateOrderPrice ( which we implemented in...
Topic:
Mini Ecommerce
3 years ago
Adding order item for an order - cruds of order item
Step 01: Adding create() method inside OrderItemController.php fetching query string orderId with request->query object public function create( Request $request )...
Topic:
Mini Ecommerce
3 years ago
Editing and deleting order item data with some code optimization - crud of order items
Step 01: In OrderItemController, adding edit() method public function edit( OrderItem $order_item ) { $order_item->load(['order','product','fwidth','profile']); $meta_title = 'Edit Order '...
Topic:
Mini Ecommerce
3 years ago
Adding additional requests with ajax in modal in item preivew list of order items - cruds of order items
Step 01: In preview.blade.php changing inside element of td where link is added with class 'additional-request-link' so that it can...
Topic:
Mini Ecommerce
3 years ago
Adding pdf download for an order with all its items
Step 01: Adding routes for exporting pdf inside auth middleware // so whole auth routes will be like below Route::group(['middleware'=>...
Topic:
Mini Ecommerce
3 years ago
‹
1
2
3
4
5
6
7
8
9
10
›