PHP

Why Developers Prefer JavaScript Over PHP

It’s important to note that there isn’t necessarily a one-size-fits-all answer to this question, as different developers may have different preferences based on their own experiences and skill sets. Both languages have their strengths and weaknesses and are commonly used in different contexts. here are some potential reasons why some…

How to set up Spatie Media Library in Laravel 8

if you are a laravel developer and want to know how to setup Spatie Media Library in Laravel 8. Spatie Media Library is easily manage files and images associated with your models. Step 1: Install the package Step 2: Publish the config file Step 3: Add the Trait to model…

Beginner: create Laravel controllers

Hi, If you are a beginner and want to know how to create laravel controller so this post is very useful for you. in this blog I will explain how to create controller in Laravel. Controller is the main key component in Laravel. it will handle all user request and…

How to create migration and rollback in Laravel 8?

Hi, if you are beginner and want to create database table in laravel 8 so this post is very useful. in laravel we need to create database table through migration. laravel providing migration command that helps we can create/remove database table and its column. Table of contents 1) Migration 2)…

Form Validation In Laravel 8 

in any website, we can see different type of forms validation available . we need to validate forms because it will create a bunch of garbage data in database. if we will specify which type of data we require so it will store proper data in database table. we need…

Laravel Passport integration

if you want to develop mobile application so Web Services is very important, you need to create API. As we know laravel is very popular because of creating API but if you are beginner and want to know how to create API and webservices you are in right place. I will…

How to send OTP in the email on registration using Laravel API

if you want to apply send OTP on user registration and after OTP verify make and update to true is_email_verified field in users table. user can able to login if field is_email_verified is true .I understand you have already is_email_verified in users table. Step 1. I am creating new migration…

A quick guide to Install Laravel 8 on Windows 10 localhost Wamp server

Laravel is a web application framework created in PHP language. it is open-source framework. it provide functionality for building powerful and robust applications. it provided a structure that saves lots of time and plan for large applications to develop in laravel. Below I mentioning some steps to install laravel in…

how to generate JSON file with read content from Google spreadsheet in php?

I am explaining you, how to generate JSON file with read content from Google spread sheet in php.. if you have any requirement to read Google spead sheet and generate JSON file or want JSON type content so this post is very userful to you. I am explaining, you can…

how to calculate number of Age from date of birth in PHP?

I am explaining you, how to calculate number of Age from date of birth in PHP. if you want to show user’s age from date of birth so you can use this process and show Age in php. here I will use some function like date(), date_create() and date_diff() that…

PHP how to get all the keys of an associative array?

I am explaining you, how to get all the keys of an associative array in PHP. we need to use PHP array_keys() function to extract the keys in an associative array. Example : Output : Otherway, I will apply foreach loop so it will also show key and its related…

How to merge two array into single array in php ?

I am explaining you, how to merge two array into single array in php. we can use array_merge() function in php code so that will merge two different array into single array.here I having two array called arrayfirst and arraysecond array, I will merge both array into single array with…

PHP How to check if a variable is null?

I am explaining you, how to check if a variable is null or not in PHP. I will check null values through is_null() function in PHP. Example : Output :…

PHP how to generate random numbers?

I am explaining you, how to generate random numbers in PHP. I will use rand() function to generate random numbers. rand() function can able to use to generate a random number with specific range like starting number is 1 and ending number id 999 so it will generate random number…

How to submit HTML Form Using jQuery Ajax in PHP

Hello, In this tutorial, I am explaining you how to submit HTML form’s fields values/data using jQuery Ajax to PHP file. AJAX is useful for send form data to server site without refresh to page. if you want to send data to PHP file without reload you need to use…

How to Install Magento 2 on Wamp Windows

Hello folks, I am explaining you, if you are looking how to install Magento 2 version(2.3.0) so this post is very useful for you. here you need to have Wamp server installed in localhost and Magento 2.3.0 that requires for PHP(7.2). I am giving you some scratch and step by…