Here is a short and quick article for How To Install Specific Version of Package using Composer TL;DR version composer require vendor/package:version //Example composer require laravel/passport:6.0 Detailed version Navigate to the project root directory in the …
Category: PHP
PHPMyAdmin is a free tool written in PHP and is used to manage mySQL databases over the web. Ever sine I started with PHP development I have been accustomed to using PHPMyAdmin to manage my databases. …
# TL;DR version Here is the short version of setting up PHP version 7.3 on your Ubuntu Machine (I am currently on v 20.04) sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install -y php7.3 # …
One of the most common ways to debug an error in PHP ecosystem is to dump the variable on the screen, and figure out what is going wrong with it. The most common way we do …
If you are are trying to use file_get_contents() function to fetch the contents of a URL and you receive Error something like Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 Then you …
In this article we will see how we can add a separate virtual domain in XAMPP. Objective : To be able to access php code via XAMPP that is in a directory other than htdocs which …
Laravel comes with a default Logging library which is built on the top of Monolog Library. Monolog recognizes the following severity levels – from least severe to most severe: debug, info, notice, warning, error, critical, alert, …
1. If you have your parameter attached to the URL after the question mark like http://www.yoursite.com/controllerMethod?key=value Your route for this controller will look something like this Route::get('controllerMethod', $controller . 'controllerMethod'); You can get the value of …
There are quite a lot of posts online that guides on how to install Xdebug and then configure it with your PHP Editor. I found many of the tutorials confusing and was not able to accomplish …
I spent a lot of time of figuring out how to send mails through PHP mail() function on my new installation of Yosemite. Things were weird because I was able to run the unix mail command …