Find the latest of my writings here.
Learn how to set up pre-commit and pre-push hooks in Git to auto-format, lint, and test your code before committing or pushing to the repository. Ensure that your code is clean, consistent, and error-free before sharing it with others.
Recently, I stumbled upon a situation where I had to use my personal device for work. I already had my personal GitHub account set up on my machine, and now I had to use my work GitHub account as well. I had to figure out a way to use both accounts on the same machine without any conflicts. In this blog, I will share the steps to set up multiple GitHub accounts on the same computer using SSH keys.
Laravel provides a variety of Blade directives to simplify common tasks in your Blade templates. In this article, we'll explore several useful Blade directives for working with CSS classes, error messages, JavaScript variables, JSON data, PHP code, and more. These directives help you write cleaner, more expressive Blade templates and streamline your development workflow.
In this article, we will learn about Laravel Blade Directives: Loops. Laravel Blade provides a set of directives to work with loops. We will learn about `@for`, `@foreach`, `@forelse`, `@while`, `@empty`, `@continue` and `@break`.
In this article, we'll learn about different Blade directives for conditional checks in Laravel. These directives provide a convenient way to manage and handle conditional logic within your Blade templates.
In this article, we'll learn how to secure our Laravel app by exploring different blade directives for authorization checks.
In this article, we'll explore advanced techniques for managing Laravel Macros using the `mixin` method provided within the `Macroable` trait. We'll learn how to organize and maintain Macros effectively, enhancing the flexibility and maintainability of Laravel projects.
In this article, we'll explore Laravel macros and learn how to extend Laravel's core functionality with custom macros. We'll cover the basics of macros, how to define them, and how to use them to enhance your Laravel applications.
In this tutorial, we'll explore how to convert English date to Nepali date (AD to BS) and vice-versa in a Laravel project. We'll utilize the `anuzpandey/laravel-nepali-date` package to achieve this functionality, which provides a simple and efficient solution for date conversion.
This article will explore how to utilize Laravel Queues on shared hosting environments. In scenarios where the installation of supervisor for queue worker management isn't feasible due to restrictions imposed by shared hosting environments, such as those utilizing Cpanel access exclusively, alternative strategies are required.
Environment variables play a crucial role in configuring and customizing applications. They provide a convenient way to store sensitive information or dynamic settings that can vary across different environments. In this article, we will explore how to create and utilize environment variables in Nuxt.js 3.
A friend of mine asked me what is the best way to set up a programming project from the start. This article will help you to speed up your workflow by making you a way more efficient programmer. The tools and techniques described in this article will help you maintain structure and organize your programming project.
In this blog post, I'll take you on an exciting journey of deploying a Laravel project on a Digital Ocean droplet. From creating and configuring your droplet to deploying your code and securing your application, we'll cover each step in detail, ensuring that you gain a solid understanding of the entire process.