My Development Setup
Hi 👋🏻 I have to depend on some eco-system, software, package, and helpers to work on day to day basis. Here is my list of items that I mostly use every single day. # Editor I am heavily re...
How to activate Laravel Horizon on Cloudways
Hi, If you are wondering how to activate [Laravel Horizon](https://laravel.com/docs/master/horizon) in [Cloudways](https://www.cloudways.com/), I think these tiny tips will help you. Recently I hav...
How to Mock Http Response in Laravel
Hi 👋 The mocking with HTTP response in Laravel might not be easy. Today, I will show you how to mock HTTP response with [Http Fake](https://laravel.com/docs/9.x/mocking). ## Why? Imagine you...
Laravel Complex Conditional Validator
Imagine that, you have two fields to validate. - first - second **Validation Rules**: - The `first` field is **required**. - The `second` field is required **IF** the `first` field has value...
Deep Dive into get() method in Laravel Collection
If you use Laravel, I am sure that you already used `get()` method from the collection. Today, I will try to deep dive into get() method in Laravel collection. ### Uses ```php $data = [ "f...
Re: Best practices for writing code comments
Hey Buddy. I found **9 Rules** for writing comments on code. **Rule 1: Comments should not duplicate the code.** **Rule 2: Good comments do not excuse unclear code.** **Rule 3: If you ca...
VS Code VIM daily practice
Hey, I practice these **Key binding** in my day-to-day basis work with VIM and VS Code. ## Switching Tabs | Command | Keyboard Shortcuts | |:------------|:----------------------| | S...
How to install Brew on Mac
Here is the step-by-step process how to install Brew on Mac. type below: ``` brew update brew install redis ``` To have launchd start redis now and restart at login: ``` brew services s...
Re: Automatically deploy on Server from Bitbucket and Github
If you are looking for a way how to do automatically deploy on the server from **BitBucket** and **GitHub**, I found an interesting article for that. It's pretty useful and handy. >Git auto-deploym...
Laravel 8 database factory not found!
For some reason, if you change the model directory in laravel 8, you may face issues with creating the factory. It will show you the following error- ```php Class 'Database\Factories\Your\Director...