Recover Lost Laravel Migration Files From an Existing Database

While working on one of my client projects, I was shocked to see as there were no migration files in a Laravel project. They provided me the live database to work with and it was somehow okay for now but we all know what migration files do in Laravel. It was itching me and I started researching for generating the migration files by using our existing database. Here comes to the rescue, one of the packages by Bennett Treptow was just what I was looking for....

April 22, 2022 · 1 min · Me

How to Enable Php Extensions From Whm

Let’s get started. Step 1 : Get access to the WHM Log into to your WHM Click on EasyApache 4 Click on Customize Step 2 : Enable extensions/versions Toggle the php version/extensions you want to enable. Let’s go to Extensions for now If toggle bar is on then it’s enabled else disabled. Enable the required extensions. Step 3 : Save the Changes Click on Review....

April 5, 2022 · 1 min · Me

Get SSH access to your shared hosted cpanel

SSH, or Secure Shell, is used to log into a remote machine and execute commands and many other things like viewing CPU usage and performance. It creates a secure connection between two computers through a encrypted tunnel. To make a SSH connection we need an SSH Client in our computer. PUTTY and WinSCP are two popular SSH solutions for windows environment. As Both Linux and macOs have their own built-in terminals so we won’t necessarily need to download an SSH Client....

April 4, 2022 · 2 min · Me

Composer🌙Useful Commands

View the config list 1 composer config --list Checking common errors to help debug problems 1 composer diagnose Show the list of outdated packages 1 composer outdated Show information about installed dependencies 1 composer info 1 composer show For specific dependencies 1 composer show intervention/image Dependencies available 1 composer show --all Navigation Show dependency homepage or repo url 1 composer browse intervention/image --show Navigate to dependency homepage url 1 composer browse intervention/image --homepage Navigate to dependency repo url 1 composer browse intervention/image To be continued … 😄

August 16, 2021 · 1 min · Me

How to Cause an Intentional Error Php

Hello, the topic about getting an intentional error is not so often you look up to but sometimes you need it to make sure the error is handled correctly. Let’s dive into the content directly. 1 trigger_error("Error Triggered!", E_USER_ERROR); DOC Reference 1 2 3 4 5 6 7 <?php try { trigger_error("Error Triggered!", E_USER_ERROR); } catch(Exception $e) { echo 'Message: ' .$e->getMessage(); } Above code will give you an triggered fatal error....

April 7, 2022 · 1 min · Me