In this tutorial, you will learn how to get or fetch data from a JSON file using readfile() and readfilesync() of fs module in node js. How to Get/Read Data from JSON File in Node JS? Here are steps: Step
How to Check Query Execution Time in Laravel
To check query execution time in Laravel; For this, you can use getQueryLog(), when you use this function you will get all the information related to the query execution. If you want to get or check any information related such
How to Read a File in Node JS
To read the file (text, HTML, JSON, etc) from the system or server using node js, you can do it in two ways first asynchronous (non-blocking) and second synchronous (blocking). You can read a file in NodeJS using fs the module, and can also read files in synchronous
How to Enable Query Log in Laravel
To enable and get query log in laravel; Just use enableQueryLog to enable query log and use DB::getQueryLog() to print log in laravel. By default, Laravel’s query builder has two enableQueryLog and getQueryLog methods that you can use to get
How to Get or Print Last Executed Query in Laravel
To get or print the last executed query in Laravel, simply enable the query log using the DB::enableQueryLog() method and print the last executed query using the DB::getQueryLog() method. Also, you can use toSQL() function with a query, and print
Read More How to Get or Print Last Executed Query in Laravel
How to Remove Column From Existing Tables in Laravel Migration
Dropping a column in laravel using migrations; Simply open your migration file and add DropColumn() method along with the column name in migration file and after that, run the PHP Artisan migrate command on CMD or command line. The dropIfExists
Read More How to Remove Column From Existing Tables in Laravel Migration
How to Install & Create React JS App on Windows 11/10
To install react js on windows 11/10; Simply just install node js from the official website and after that install react js and create react app by running the npm install -g create-react-app command on cmd or terminal window. You
Read More How to Install & Create React JS App on Windows 11/10
How to Increase Maximum File Upload Size in WordPress
To increase max or maximum upload file size in WordPress; You have a lot of options for this in WordPress, you can do this through cPanel, from wp-config.php, from .htaccess file, and with the help of plugins. In this tutorial
Read More How to Increase Maximum File Upload Size in WordPress
How to Take Browser Screenshots in Laravel
Taking screenshots of browsers is very easy in Laravel applications with the help of spatie/browsershot package. Just install spatie/browsershot in laravel project and use its object browsershot, you can take screenshots of browser. How to Take Browser Screenshot in Laravel
Laravel Error Call to Member Function store() on Null
If you are uploading files using ajax in Laravel and at that time, face error fatal call in a member function store() on null, It means you are missing something in your ajax request or your controller file. So, in
Read More Laravel Error Call to Member Function store() on Null