Open in app

Sign In

Write

Sign In

Mohit Mehta
Mohit Mehta

21 Followers

Home

About

Apr 15, 2022

Multiple PHP versions in single XAMPP on Windows

Now a days everybody requires multiple PHP versions for different projects. In the Linux system, it is very easy to install & run multiple PHP simultaneously. However in the windows, it requires to install different version of XAMPP but it’s not feasible every time. …

Multiple Php

2 min read

Multiple PHP versions in single XAMPP on Windows
Multiple PHP versions in single XAMPP on Windows
Multiple Php

2 min read


Jan 2, 2022

Laravel where date between

Laravel Eloquent has built-in function whereBetween to get the records between two dates but there is problem here. This method does not returns the records which are created on end date. Let’s say you want to retrieve the created records between two dates then we will use below function, $data…

Laravel

3 min read

Laravel

3 min read


Dec 16, 2020

Laravel .env Exposed

When it comes to host a Laravel project on shared hosting, many of the developers finds a difficulty. So they just apply any random solutions from different websites to make their project working without even knowing the consequence of that. Let me give one example. One of the easiest way…

Laravel

2 min read

Laravel .env Exposed
Laravel .env Exposed
Laravel

2 min read


Sep 20, 2020

React Native Dynamic Drawer Items

I have created react native app with dynamic drawer items. Currently drawer items are fetched from local JSON file. This can be also used with axios or fetch methods. mohitmehta1996/react-native-dynamic-drawer Create dynamic drawer items in react native. Contribute to mohitmehta1996/react-native-dynamic-drawer development by…github.com Check this out and let me know your thoughts.

React Native

1 min read

React Native Dynamic Drawer Items
React Native Dynamic Drawer Items
React Native

1 min read


Sep 20, 2020

React Native Loader

Loader is very essential component in every application. Loader should be light-weight, attractive and should cover whole screen also. Here I have created Loader component in React Native without using any third-party packages. import React from 'react'; import { StyleSheet, View, Modal, ActivityIndicator } from 'react-native'; export default class Loader…

React Native

1 min read

React Native Loader
React Native Loader
React Native

1 min read


Sep 20, 2020

Laravel Force User Logout

Many times we store data in user session. Now what if that session data is updated and we want to show updated data to user ? Because user is already logged in, new data won’t be visible for user. In this can we need to break user’s current session. …

Laravel

1 min read

Laravel

1 min read


Jul 7, 2019

Laravel Backup and Flush

Note*: Please don't use this code/article to harm any people/project. This code will help you to take backup of Laravel files/database very easily without FTP/Database access. You just need to upload this files once in a project. This code will also help you to delete/flush whole project with database in…

Laravel

1 min read

Laravel

1 min read


Mar 5, 2019

Shopify Create Sitemap Page

The Sitemaps informs search engines about URLs on a website that are available for crawling. So it’s very important for better SEO. Foe e-commerce sitemap is just a page which has listed all of your products, collections or categories and other pages. First of all you need to create new…

Shopify

2 min read

Shopify Create Sitemap Page
Shopify Create Sitemap Page
Shopify

2 min read


Mar 1, 2019

Laravel export data to Excel/CSV

Many times we need data to be exported in CSV or Excel file. There are many packages available to export data but we can also do this by few lines of code. Export data in Excel file $headers = [ 'Cache-Control' => 'must-revalidate, post-check=0, pre-check=0', 'Content-type'…

Laravel

1 min read

Laravel

1 min read


Feb 18, 2019

Laravel create helper which can be accessed anywhere

Many times we need some general functions which needs to be called from many controllers or blades. So creating same function in multiple files is not feasible solution. So let me tell you how you can create helper file which will be loaded in every controllers, models and blades. First…

Laravel

2 min read

Laravel

2 min read

Mohit Mehta

Mohit Mehta

21 Followers

Full stack enthusiastic developer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams