Search in Snippets
 

All Projects

Building mini ecommerce in Laravel

Building RESTful APIs in Laravel

Building Mini Issue tracker with Laravel and Vue



All Snippets

Sending an email to admin about a order with all its item

Step 01: Adding routes for emailing order inside auth middleware in web.php inside routes folder Route::group(['middleware'=> [ 'auth']], function() {     ...


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'=>...


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...


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 '...


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 )...


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...


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...


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(...


Editing order data - crud of orders

Step 01: In OrderController, adding edit() method public function edit( Order $order ) { $meta_title = 'Edit Order ' ....


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:...


mahfooz

Hello, I am Mahfoozur Rahman and LCS is a site where I have been put together all my development experience with laravel in tutorials and step by step manner.

I am also working remotely for clients with development services so that they can achieve their business goals.

If that is what you want, you can contact me on mahfoozur.rahman.bd@gmail.com

I am currently also available for freelance work.

Categories

VS Code Tips and Tricks (2)
Restful API (1)
Coding Assistance (1)
Database Concepts (1)
Schema Design (0)
Data Retrieval (1)
Searching Data (0)
DevOps (1)
Amazon web services (1)
Livewire (1)
Crud (1)
Storage and retrieval (1)
Caching (1)
Frontend (2)
Select dropdown (2)
File Uploads (1)
File Uploads (1)
Vue (2)
Vite Vue (1)
Mixin (1)
Packages (1)
Debugging (1)
Security (1)
Authentication (1)
View (1)
View Composer (1)
Projects (99)
Model Performance (4)
Registration (1)
Login (1)
Restful API (16)
Topic oriented Community (1)
Mini Ecommerce (38)
Mini Blog (2)
Mini Issue tracker (28)
Database tables and data scaffolding (1)
Stripe (1)
Topic oriented user community (6)
Collections (7)
Collection Methods (7)
Sessions (2)
Storing Data (1)
Retrieving Data (1)
Improvements (7)
Laravel Code Snippets (6)
Mini Ecommerce (1)
Definitions (2)
Generating Commands (0)
Eloquent Builder (1)
Resource Controllers (0)
Seeding (1)
Executing Commands (0)
Controller (4)
Resource Controllers (0)
Middleware (4)
My Weeknesses (1)
My Weekness (1)
Eloquent ORM (50)
Eloquent Builder (30)
Seeding (4)
Relationship (6)
Configurations (8)
Accessors (2)
Artisan Console (4)
Executing Commands (4)
Generating Commands (0)