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 …
Read More “Use React JS styles in Laravel blade template”
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 …
Read More “Securely deploy Laravel website on live server”
In this article, I will share with you, a boilerplate for authentication created in Laravel 10 and React JS. User authentication is a module used in almost every project. Whether you are creating a blog website, or an E-commerce or a video streaming website, you need to have a page where user can create an …
Read More “Authentication boilerplate in Laravel and 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. …
Read More “Share value between components – React JS”
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 …
Read More “WordPress – Disable multiple image sizes”
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 …
Read More “Search in all fields in DataTable”
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: …
Read More “Send response from other method in Laravel”
If your CMD is picking the wrong version of PHP and you are tired of fixing it via Homebrew, then this article is for you !!!
Imagine if you are displaying an image from the server in your React app. And the image gets deleted from the server. You do not want to show the broken image icon, as it does not look professional. You can show a placeholder image in your ReactJS App if the original image fails to load. …
Read More “Show placeholder image in ReactJS”
In this tutorial, you will learn how to render JSX in HTML. Video tutorial: Include JS files First, you need to include the required JS files. The required JS files are: You can download all these files from cdnjs.com. Make sure to include the UMD version and not CJS. You might like: Render JSX The …
Read More “How to render JSX in HTML”