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