[6.0] Where is the command app:name? AHK 12:01Problem The app:name command, no longer available in laravel 6.0, there is some way to change the namespaces, as was being done with that co... Read More
How to Install Multiple PHP(7.3 and 8) Versions on Ubuntu > 20 AHK 11:50 Step 1: System Update First, log in to Ubuntu via console. Then update the Apt cache and upgrade the current packages of the system using t... Read More
Run Composer versions 1 and 2 simultaneously AHK 11:26Composer 2 is great. But it is not compatible with PHP versions lesser than 7.2. So if you're maintaining legacy projects that require o... Read More
How to send an attachment from request to mail without first saving it to storage? AHK 17:53How to send an attachment from request to mail without first saving it to storage? public function build(){ $email = $this->from(... Read More
Laravel: Transform Request to custom validation request AHK 11:41Laravel: Transform Request to custom validation request we can convert any request to any other request, as long as it extends from Illumina... Read More
Git Cheatsheet AHK 16:32Hello everyone, here is a quick reference guide of the git commands: git config Setup author name and mail to be used for all commits in cur... Read More
Resolved: “Could not store password” for MySQL workbench community + ubuntu AHK 11:33If MySQL Workbench not saving passwords in the keychain In order to resolve Could not store password: An AppArmor policy prevents this sende... Read More
Install MySQL workbench in ubuntu AHK 11:30Install MySQL workbench in ubuntu sudo snap install mysql-workbench-community Run the below command for a password-saving issue sudo snap co... Read More
Double the first element and move zero to end AHK 13:05Given an array\list containing integers, zero is considered an invalid number and the rest of the other numbers are valid. If the two neares... Read More
Generating random CSS hex color code using PHP md5() function AHK 11:26 <?php $rand_color = "#".substr(md5(rand()), 0, 6); echo $rand_color; ?> In the above code, we have taken the PHP rand() fun... Read More
MySQL: Updating all rows setting a field to 0, but setting one row's field to 1 AHK 12:19 efficient way to update a selection of rows' field to 0, but set One of these rows to 1 based on an ID. UPDATE `table` SET `inuse` = (`... Read More
Find all triplets in an array that add up to a given sum - Brute Force Technique AHK 10:37Hello everyone, Welcome to Sprint Master! In this post, we are going to look at solving the following coding question "Find all tripl... Read More
Cannot run Apache2.4 with xampp AHK 13:28The Apache service named reported the following error: httpd.exe: Syntax error on line 520 of C:/xampp/apache/conf/httpd.conf: Syntax error ... Read More
How do you convert between 12 hour time and 24 hour time in PHP? AHK 13:00$time = '5:36 pm'; // 24-hour time to 12-hour time $time_in_12_hour_format = date("g:i a", strtotime($time)); // 12-hour ... Read More
Android App Version Update using the following cordova cli commands AHK 10:26 Change the version in config.xml ionic cordova build --release android jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-... Read More
Coding Challenges and Competitions AHK 13:15 Be a Warrior and Start to Code Coding contests are like open markets. Don’t think of them only as gladiatorial arenas but also as real-li... Read More
Kali Linux -- How to change time and date language to English? AHK 15:45 Kali Linux -- How to change time and date language to English? I do not know how it comes, but my calendar(upper right corner) is in Poli... Read More
javascript:array to string in javascript:enclosed with single quotes AHK 11:12 array to string in javascript: var array = ["power","education"]; var string = array.toString(); Result: power,e... Read More
How to update npm on Windows? AHK 10:54 This is the new best way to upgrade npm on Windows. Run PowerShell as Administrator Set-ExecutionPolicy Unrestricted -Scope CurrentUser... Read More
How to convert 1000 to 1k, 1 000 000 to 1m AHK 15:44 How to convert 1000 to 1k, 1 000 000 to 1m Here the logic is explained using php <?php // Your code here! function convert_text... Read More