How to force download files in Laravel?

Giving download option to the user is a pretty common requirement in today’s web apps for the variety of reasons. For example, if your application is related to online shopping, you might need an invoice download […]

How to Deploy an Angular app in Production with Nginx

This tutorial I will show you Nginx installation and configuration steps to serve Angular application in production. I am gonna use Ubuntu 16.04 operating system. Install and Configure Nginx for Angular First update the […]

PHP Program to Check Prime Number

In this tutorial, you will learn what is a prime number and how to check whether the given number is a prime number or not using PHP. What is Prime Number? A prime number is a natural number which is exactly two positive […]

How to Clear cache in Laravel 5

Here I am gonna show you few artisan commands which will help you to clear different caches in your Laravel application. Clear Application Cache To clear application cache use the php artisan cache:clear command. Generally […]

How to use JWT (JSON Web Token) with Express JS

Today I am gonna show you JWT(JSON Web Token) token generating and verification steps with express JS framework. What is JWT (JSON Web Token)? A JSON Web Token, or JWT, is used to send information that can be verified […]

How to serve static files with Express

In many instances you required to server static assets such as images, css files and JavaScript files, so today we gonna show you, how you can server static files using express framework. For example, If you have following […]

How to Apply CSS Classes Conditionally in Angular 2

Angular 2 provide different ways to apply class to the elements based on certain conditions. In this post I would like to show you couple of ways to conditionally applying class to a DOM element in Angular 2 with ngClass. […]

How to get Client IP Address in Laravel 5

Sometime you need to track the ip address of the visitors for different reasons. In this tutorial, I would like to show you, how to get IP address of clients in Laravel application. In PHP you use super global variable […]

How to Delete a File in Node JS

The following tutorial will describe how to delete files that you no longer need, deleting files using node js extremely simple with node js’s fs library. Note: There is no way of undoing deleted files, just keep […]

DMCA.com Protection Status