How to Pass PHP Variable to JavaScript ?

Hello developer In this blog we will see how to access or use PHP variables in to Javascript. Sometime we need to just pass a PHP variable to Javascript on same page. So here simply set a variable value in PHP and we will use in show a alert in Javascript. HTML code In the … Read more

How to use Multiple Databases in Laravel?

How to use Multiple Databases in Laravel

Sometimes we need two or more databases for the same Laravel project, So we can easily connect our Laravel Application with external data from another database Step: 1 Update config/database.php In config/database.php Here we can see an array of all connections like MySQL, PostgreSQL, SQL Server. Here we can add more than one connection with the same database system. … Read more

Image Preview Before Upload With Simple Javascript

This post describes how to preview an image before uploading it to the server by using javascript step by step. using FileReader and jquery. There are many methods to do this task. Some of them are through Jquery and some through pure JavaScript. So let’s start. Here is the result of the code Here is … Read more

How To Display A Loader While Sent Request Is In Progress In Vue

In this blog, we learn How To Display A Loader While Sent Request Is In Progress In Vue. So, To demonstrate this loader function. we will create a component for login or register and then send a request to the server. while sending a request to the server we will show a loader animation or … Read more

Laravel vs Flask | Which is Better for Web Development?

Laravel vs Flask

In this post, we compared Flask vs Laravel, Most of the community recommends Flask for most developers. Now Question is “Which is the best framework for the backend?” Flash is ranked on 2 while Laravel is on the 4th rank. Express is on the first rank. The most important reason the developer chose Flask because it’s very … Read more

How To Make an Omegle Bot [2023 Updated Method]

How To Make an Omegle Bot

Omegle is a great social network site on which millions of users live online almost all the time. In such a situation, if you want to promote something, then this platform will be very good. If you are unfamiliar with Omegle, a free online anonymous chat platform, and its work, we have penned down an … Read more

Vue routing tutorial with mode history

In this post, we learn how to configure a laravel project with Vue routing tutorial with mode history. Vue routing tutorial with mode history. by default in vuejs mode is hash(#) mode. To remove hash(#) from URL we use history mode in vuejs routing. After add mode: history in the router URL looks normal //www.codermen.com/articles/submit Routing in vuejs with history mode … Read more

Add Watermark on an Images in Laravel 5.8 step by step

In this blog post, we will learn, how to adding watermark to an image in Laravel 5.8 application. to add watermark to images we will use intervention image composer package in Laravel 5.8. we can add image or text as a watermark on the image in Laravel. To create copyright on images, make image private we … Read more

Create zip file and download in Laravel

This is a blog post explaining to create zip file and download in Laravel. we also see create zip single file or multiple files of a folder. Some developer needs a file or a folder to zip and download at realtime when some website provides a downloadable link to the user. so this blog post … Read more

How To Solve CORS issue in Laravel and make Laravel CORS Middleware

In this blog post, we make Laravel CORS Middleware solve the issue of CORS. Sometimes we need backend as a Laravel framework which is run on another port normally it run on //localhost:8000/ and other frontend framework run on another port. then this problem arrives.  So let’s solve this issue. Step: 1 Create a Middleware Create a … Read more