Blog A collection of my thoughts and writings.

How My Server Got Hacked Through a Pirated WordPress Plugin => A Developer's Wake-Up Call

Last week, I discovered that my personal website was showing a blank page. What followed was a deep investigation that uncovered a full server compromise, all because of a single pirated WordPress plugin on a different website hosted on the same server. I'm sharing this story because I want other developers and website owners to learn from my mistake. If you run multiple websites on shared hosting, please read this carefully. The Symptoms It started innocently, my Laravel-based personal websit...

5 minute read · 58 views · 2 likes

Native Php array operations

Laravel offers many eloquent - collections but native is always faster due to its less overhead. Some great array related in built functions in php 8.3 can be listed below: Below is a concise list of native PHP array functions, their definitions, and short examples. I’ll focus on providing just the answers you want, keeping descriptions and examples brief. PHP Native Array Functions array_change_key_case Changes the case of all keys in an array (upper or lower). php$arr = ["Name" => "Joh...

7 minute read · 156 views · 2 likes

Flutter Widgets List

Comprehensive Guide to Flutter Widgets for Professional App Development Flutter's widget-based architecture is the cornerstone of its flexible and powerful UI framework. Widgets serve as the essential components for crafting rich, responsive, and visually appealing user interfaces. This guide organizes and describes key Flutter widgets, reshuffled for a fresh perspective, to help developers understand their functionality and use cases for professional app development. A. Layout Widgets...

9 minute read · 159 views · 7 likes

How to be a good Software Engineer

Title: 7 Habits to Become a Better Software Engineer Introduction: In the ever-evolving landscape of technology, software engineering stands at the forefront. Being a software engineer isn't just about writing code; it's about problem-solving, creativity, and continuous learning. Whether you're a novice or a seasoned professional, there's always room for improvement. Here are seven habits that can help you become a better software engineer. Embrace Continuous Learning: Technology i...

3 minute read · 265 views · 16 likes

Cookie Based Authentication with Laravel Sanctum

Why COOKIE based Authentication? Choosing between cookie-based and token-based authentication in Laravel depends on various factors, including the specific requirements of your application, security considerations, and ease of implementation. Here are some reasons why you might choose cookie-based authentication over token-based authentication in Laravel: Built-in Support Laravel has built-in support for cookie-based authentication through its session and auth middleware. This makes it s...

6 minute read · 136 views · 4 likes

Using Content based and Collaborative Based Filter in Laravel Applications

Hello Guys, One client of mine wanted to use recommendation system in their movie recommendation system, which was redesigned using laravel. After the successful completion of their product, I decide to write about how I did it. What is Recommendation System and why is it important? A recommendation system, also known as a recommender system, is a type of artificial intelligence that uses data to help predict and suggest items or services to users. It does this by learning user preferences,...

4 minute read · 306 views · 14 likes

Laravel Collections Introducution and examples - PART 1

Programming Languages and Frameworks are a way of expressing the data we have. They all are worthless if we do not have any data. The idea of laravel eloquent is to provide a powerful ORM, where we can do many magic functions with less codes to write. In this series of articles, we'll explore the power and versatility of Laravel Collections. I have divided this series into the following articles, from time to time, I will update the series accordingly: Part 1: all average avg chunk c...

1 minute read · 72 views · 8 likes