Use React JS styles in Laravel blade template

Use React JS styles in Laravel blade template

If you are trying to give CSS styles in React JS inside Laravel blade template, but having the following error: This happens when you try to give CSS styles in React JS in the following way: The error you are having is because the double curly braces {{ which are used in React JS for …

Securely deploy Laravel website on live server

Most programmers find it difficult and confusing to deploy a Laravel website on a live server. Some don’t know where to start. Some get stuck in creating a virtual host. Some got attracted by cloud servers, but later realized that deploying on a cloud is very difficult. Most of the developers starts tempering the directory …

Share value between components – React JS

In this article, I will show you, how you can share value between multiple components in React JS. If you are new to React JS, check this tutorial to setup React JS in your project. Step 1: First, we are going to create a global state variable. This will be like a simple Javascript object. …

WordPress – Disable multiple image sizes

WORDPRESS - Disable multiple image sizes

If you are using WordPress, you will notice that when you upload an image media, it creates multiple images of different resolutions. In this article, I will show you how you can disable multiple image sizes on WordPress. Open your active theme’s functions.php file. It will be in “wp-content/themes/{your_active_theme_name}/functions.php”. Then add the following 2 hooks …

Search in all fields in DataTable

If you are using the DataTable Javascript library and are having trouble searching in all fields of the dataset except for the only one visible, then I will show you, how you can search in all fields of the DataTable. By default, DataTable searches in all fields only on those fields that are visible on …

Send response from other method in Laravel

In Laravel, generally, you can send the response back to the client only from the method that was directly called from the route. But there is a way to send a response from other method as well. Let’s say you created the following route: And in your UserController class, you have the following 2 methods: …