PHP 7.4 - Arrow functions

PHP 7.4 - Arrow functions

Arrow functions also called "short closures". We can always access the parent scope, there's no need for the use keyword....

PHP / MySQL - 9 months ago

Eloquent - A better way to increment or decrements an int

Eloquent - A better way to increment or decrements an int

Laravel has in-built increment() and decrement() functions to increase or decrease a value of the column, by 1 or with...

Laravel - 9 months ago

Difference between two date in JavaScript

Difference between two date in JavaScript

Let us see an example of how to calculate the difference between dates using Javascript. First, write an HTML code...

Javascript / JQuery Snippets - 9 months ago

Laravel Drop all tables

Laravel Drop all tables

This is useful for migrations when you can't rollback. It can easily be run in artisan mode or you can...

Laravel Code Snippets - 9 months ago

PHP 7.4 - Numeric Literal Separator

PHP 7.4 - Numeric Literal Separator

PHP 7.4 allows for underscores to be used to visually separate numeric values. It looks like this: $unformattedNumber = 123456789.78;...

PHP / MySQL - 9 months ago

How to Connect to SQL Server database using Python, pyodbc

How to Connect to SQL Server database using Python, pyodbc

In this post, we gonna use pyodbc package to connect to the SQL server using Python. So let's install the...

Python - 11 months ago

How to deploy angular universal to production

How to deploy angular universal to production

This post will cover the step needed to take the angular universal app to the production server. This post assumes...

Angular 2 - 1 year ago

Word document placeholder replacement with Node js

Word document placeholder replacement with Node js

In this post, we gonna see how we can use Docxtemplater library to replace placeholders in the Word Document in...

Node JS - 1 year ago

How to Upload, download, remove Files to Amazon S3 Using Laravel

How to Upload, download, remove Files to Amazon S3 Using Laravel

Create a controller called UploadController.php with following code. <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; class UploadController extends Controller {...

Laravel - 1 year ago

How to integrate sonar for a Node JS project?

How to integrate sonar for a Node JS project?

In this post I will show you SonarQube integration steps for Node based projects. SonarQube is an Open Source Software...

Node JS - 1 year ago