PHP

Install Specific Version of Package using Composer

Install Specific Version of Package using Composer

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....

Sep 01, 2020 · Tushar
How to Install PHP v 7.3 on Ubuntu 20.04

How to Install PHP v 7.3 on Ubuntu 20.04

# 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 i...

Aug 10, 2020 · Tushar
Using Laravel's dd (dump and die) function in PHP

Using Laravel's dd (dump and die) function in PHP

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 it in PHP is via using va...

Feb 16, 2019 · Tushar
Fix: file_get_contents() wrapper is disabled error in PHP

Fix: file_get_contents() wrapper is disabled error in PHP

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...

May 12, 2018 · Tushar
Changing Log Severity Level from debug to error in Laravel 4

Changing Log Severity Level from debug to error in Laravel 4

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, wa...

Jul 18, 2017 · Tushar
How to get value of URL parameters into Controller (Laravel)

How to get value of URL parameters into Controller (Laravel)

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 Ro...

May 17, 2015 · Tushar
Configure XDebug Extension for PHP on Eclipse

Configure XDebug Extension for PHP on Eclipse

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 the task w...

Mar 30, 2015 · Tushar