Laravel soft delete allows you to enable some models that will not be permanently deleted by just calling the delete() method. Instead, you need to call the forceDelete() method in order to permanently delete the data. The deleted models will not be fetched from Eloquent or Query Builder queries. Instead, you need to call a …
Read More “Laravel Soft Delete – Create a Trash Can using PHP and MySQL”
In this article, we will show you, how you can save BLOB images in a MySQL database using PHP. You will also be able to download the BLOB images as well. To upload the file to the server and save its path in the MySQL database, you can follow our this tutorial. Table structure: Run …
Read More “Save and Download BLOB images – PHP and MySQL”
In this tutorial, we will teach you how you can prevent file access from URL using htaccess. Laravel is one of the most secured PHP frameworks, only if it’s used correctly. It can also be a huge security leak if not utilized properly. One problem I saw with many websites is that they move to …
Read More “Prevent file access URL – htaccess”
In this article, we are going to teach you how you can display a custom marquee tag effect on your website without downloading any library. You can check the demo from here. The problem with the HTML marquee tag Right now, with the default <marquee> tag, you will notice that its animation is not smooth. …
Read More “Marquee Effect in HTML and Javascript – No library”
Buy the 14 premium projects bundle for $1000. The bundle contains projects in the following technologies: Project’s list You can buy each project separately too as well. Besides getting all the pro features of all 14 projects, we also provide additional services to them. Secure payment We allow users to make payments easily and securely …
Read More “Premium projects bundle”
In this article, we are going to teach you how you can check your internet connection using Javascript. We will be displaying a toast or alert message to the user if their internet gets disconnected. And hide the toast when the internet gets reconnected. Video tutorial: First, you need to download a library called Toastify. …
Read More “Check internet connection javascript”
In this tutorial, we are going to teach you how you can receive payments online with Stripe using simple Javascript and PHP. Video Tutorial: Installing Stripe PHP SDK First, you need to open the command prompt or terminal in your project’s root folder and run the following command. Make sure you have the composer installed, …
Read More “Stripe Payment Gateway – Javascript, PHP”
In this tutorial, we are going to teach you how you can receive payments online via the PayPal payment gateway using Javascript and PHP. This tutorial uses simple Javascript and PHP, so you will be able to apply this tutorial to any framework like React, Vue, Laravel, etc. It also goes with any backend framework …
Read More “PayPal Javascript PHP SDK”
In this tutorial, we are going to perform a complete CRUD (create, read, update, delete) operation using Vue JS and PHP. We will be using Vue JS for the frontend and PHP for backend processing. We will also be using PDO prepared statements for preventing SQL injection. First, you need to download Vue JS from …
Read More “CRUD in Vue JS and PHP”
In this article, we are going to discuss 2 options that how you can prevent your HTML form submit event from reloading the page. Normally, when you submit the form, it redirects to the action attribute link. But you can stop that reload and call an AJAX or any other Javascript function. 1. preventDefault You …
Read More “Prevent form submit event from reloading the page”