Category : PHP

Laravel provides different way to pass data in view files. Data can be passed to view either from controller or directly from route in web file. For simpler view where not much calculation is needed o...
Read Article

PHP

Oct 17, 2022

tgugnani

To format a Carbon date to string output, you can use the format function and pass the following parameter $carbonDate->format('l jS \\of F Y h:i:s A'); //Output -> Thursday 25th of Decembe...
Read Article
Introduction While working on a team consisting of multiple developers, it's really important to have a predefined set of rules about different aspects of the project. Whether it is about the authori...
Read Article

PHP

Sep 1, 2020

tgugnani

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....
Read Article
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 databas...
Read Article
# 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...
Read Article
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...
Read Article

PHP

May 12, 2018

tgugnani

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

PHP

Sep 5, 2017

tgugnani

In this article we will see how we can add a separate virtual domain in XAMPP. [caption id="attachment_674" align="aligncenter" width="300"] XAMPP Console[/caption] Objective : To be able t...
Read Article

PHP

Jul 18, 2017

tgugnani

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