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 on …
Category: PHP
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 December 1975 02:15:16 PM If …
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 authority to review and merge …
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 …
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, …