Most viewed questions in Web Development

–1 vote
1 answer

How to read an external local JSON file in JavaScript?

Hello @kartik, For reading the external Local JSON ...READ MORE

Sep 3, 2020 in Java-Script by Niroj
• 82,880 points
182,623 views
0 votes
1 answer

How to see indexes for a database or table in MySQL?

Hello @kartik, To see the index for a ...READ MORE

Aug 18, 2020 in PHP by Niroj
• 82,880 points
146,030 views
+1 vote
4 answers

How to access images inside public folder in laravel?

If you are inside a blade template {{ ...READ MORE

Dec 14, 2020 in Laravel by Rajiv
• 8,910 points
127,905 views
0 votes
1 answer

How to find event listeners on a DOM node when debugging or from the JavaScript code?

Hii @kartik, It is possible to list all ...READ MORE

Jun 8, 2020 in Java-Script by Niroj
• 82,880 points
127,062 views
+2 votes
2 answers

How to add a new column to existing table of laravel in a migration?

You need do little modification in your ...READ MORE

Dec 10, 2020 in Laravel by anonymous
• 82,880 points
119,957 views
0 votes
3 answers

Explain the difference between visibility:hidden; and display:none?

display:none means that the tag in question will ...READ MORE

Dec 14, 2020 in Web Development by Gitika
• 65,910 points
118,532 views
0 votes
2 answers

How to delete or clear caching in Laravel?

You can call an Artisan command outside ...READ MORE

Dec 16, 2020 in Laravel by Rajiv
• 8,910 points
94,660 views
0 votes
1 answer

How to add a custom HTTP header to ajax request with javascript?

Hello @kartik, There is different way based on ...READ MORE

Aug 25, 2020 in Java-Script by Niroj
• 82,880 points
94,417 views
0 votes
1 answer

Error: Failed to load resource: the server responded with a status of 404 (Not Found)

Your files are not under the JSP folder that's ...READ MORE

Dec 16, 2020 in Web Development by Gitika
• 65,910 points
87,109 views
0 votes
2 answers

Error:Laravel Installation failed, reverting ./composer.json to its original content.?

Hello, You need to install php zip extension. Something ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,880 points
82,584 views
0 votes
3 answers

How to get full path of selected file on change of <input type=‘file’> using javascript, jquery-ajax?

You have to download the file with ...READ MORE

Nov 29, 2022 in Java-Script by Wilson S.S
71,497 views
0 votes
0 answers

http://localhost/phpMyAdmin/ unable to connect

I tried to start phpMyAdmin from my ...READ MORE

May 27, 2022 in PHP by Kichu
• 19,050 points
71,101 views
+1 vote
5 answers

How to get user's IP address in Laravel?

Hey, We can get the user's IP address ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,880 points
71,088 views
+1 vote
2 answers

How to convert entire div data into image and save it into directory without using canvas?

Hello @kartik, You can try the sample code ...READ MORE

Apr 29, 2020 in Java-Script by Niroj
• 82,880 points
70,359 views
0 votes
3 answers

How to load external scripts dynamically in Angular?

Hello kartik, You can use following technique to ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
70,176 views
0 votes
1 answer

How to get input field value using PHP?

Hello, Use PHP's $_POST or $_GET superglobals to retrieve the value of ...READ MORE

Nov 20, 2020 in PHP by Niroj
• 82,880 points
67,401 views
+6 votes
2 answers

Error:Uncaught ReferenceError: is not defined at HTMLAnchorElement.onclick

The most common reason behind the error ...READ MORE

Dec 14, 2020 in Laravel by Gitika
• 65,910 points
64,831 views
0 votes
3 answers

HTML - Change\Update page contents without refreshing\reloading the page?

pushState() # The pushState() method let's you update the URL and create ...READ MORE

Dec 15, 2020 in HTML by Gitika
• 65,910 points
60,483 views
0 votes
1 answer

Error: 'Unchecked runtime.lastError: The message port closed before a response was received' chrome issue?

Hii, I had same problem when responding on ...READ MORE

Mar 30, 2020 in Laravel by Niroj
• 82,880 points
52,523 views
0 votes
1 answer

How to select all records from one table that do not exist in another table?

Hello @kartik, You can either do like this: SELECT ...READ MORE

Jul 21, 2020 in PHP by Niroj
• 82,880 points
51,687 views
0 votes
1 answer

How to find the php.ini file from the command line?

Hello @kartik, You can get a full phpinfo() using : php ...READ MORE

May 19, 2020 in PHP by Niroj
• 82,880 points
50,409 views
+1 vote
3 answers

Error: Exception file_put_contents failed to open stream: No such file or directory in Laravel?

Hello, You should typically run the php artisan config:cache command ...READ MORE

Mar 31, 2020 in Laravel by Niroj
• 82,880 points
47,624 views
0 votes
2 answers
0 votes
2 answers

Error:Composer: file_put_contents(./composer.json): failed to open stream: Permission denied

I used sudo and it managed to ...READ MORE

Nov 2, 2020 in Laravel by anonymous
46,688 views
0 votes
1 answer

PHP undefined key and variable

Hi, @Dann, If you are using some variable ...READ MORE

Dec 30, 2020 in PHP by anonymous
• 65,910 points
44,808 views
0 votes
1 answer

How to return data from Axios API?

Hello @kartik, The issue is that the original axiosTest() function ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,880 points
43,980 views
0 votes
1 answer

How to set cookie value with AJAX request?

Hello @kartik, Basically, ajax request as well as ...READ MORE

Jun 18, 2020 in Java-Script by Niroj
• 82,880 points
43,549 views
0 votes
1 answer

How to pass parameters in GET requests with jQuery?

Hello, Here is the syntax using jQuery $.get $.get(url, data, ...READ MORE

Apr 28, 2020 in JQuery by Niroj
• 82,880 points
41,765 views
+1 vote
1 answer

What are named routes in Laravel and How can specify route names for controller actions?

Hey @kartik, Named routing is another amazing feature of ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,880 points
41,726 views
0 votes
2 answers

How to solve expected response code 220 but got code “”, with message “” in Laravel?

This problem can generally occur when you ...READ MORE

Dec 16, 2020 in Laravel by Gitika
• 65,910 points
40,882 views
0 votes
2 answers

Describe Fillable Attribute in a Laravel model?

Hello @kartik In eloquent ORM, $fillable attribute is ...READ MORE

Mar 27, 2020 in Laravel by Niroj
• 82,880 points
40,533 views
0 votes
1 answer

jQuery checkbox change and click event

Have shared an approach which will add ...READ MORE

Feb 23, 2022 in Java-Script by Aditya
• 7,680 points
40,152 views
0 votes
1 answer

How do I add a custom script to my package.json file that runs a javascript file?

Hello @kartik, I have created the following, and ...READ MORE

Jul 16, 2020 in Node-js by Niroj
• 82,880 points
39,791 views
0 votes
1 answer

How do I test a single file using Jest?

Hii, All you have to do is chant ...READ MORE

Nov 26, 2020 in Node-js by Niroj
• 82,880 points
39,689 views
0 votes
1 answer

How to pass CSRF token with ajax request in Laravel?

Hey, In between head, tag put <meta name="csrf-token" ...READ MORE

Mar 24, 2020 in Laravel by Dey
38,457 views
0 votes
1 answer

How to pass an array as a URL parameter?

Hello, Here you can try this out var myArray ...READ MORE

Apr 14, 2020 in Laravel by Niroj
• 82,880 points
37,089 views
0 votes
1 answer

Error:“Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP

Hello @kartik, The best way for getting input string is: $value ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,880 points
36,852 views
0 votes
1 answer

Error:Failed to open stream : No such file or directory.

Hello @kartik, Go to the file to include ...READ MORE

Oct 1, 2020 in PHP by Niroj
• 82,880 points
36,218 views
0 votes
1 answer

How to clear https proxy setting of NPM?

Hello @kartik, By running npm config rm proxy you remove ...READ MORE

Jul 14, 2020 in Node-js by Niroj
• 82,880 points
35,806 views
0 votes
1 answer

How to Smooth scroll to div id jQuery?

Hello @kartik, You need to animate the html, body $("#button").click(function() ...READ MORE

Oct 5, 2020 in JQuery by Niroj
• 82,880 points
34,584 views
0 votes
1 answer

How do I get a “select count(*) group by” using laravel eloquent?

Hello @kartik, You could use this: $reserves = DB::table('reserves')->selectRaw('*, ...READ MORE

Oct 21, 2020 in Laravel by Niroj
• 82,880 points
34,206 views
0 votes
1 answer

Explain Guarded Attribute in a Laravel model?

Hii, The guarded attribute is the opposite of ...READ MORE

Mar 27, 2020 in Laravel by Niroj
• 82,880 points
33,914 views
0 votes
1 answer

NodeJS - What does "socket hang up" actually mean?

When a socket hang up is thrown, ...READ MORE

Jun 7, 2022 in Node-js by Neha
• 9,060 points
33,574 views
0 votes
1 answer

MySQL - UPDATE multiple rows with different values in one query

Hello @kartik You can use a CASE statement to handle ...READ MORE

Jun 1, 2020 in PHP by Niroj
• 82,880 points
33,093 views
0 votes
1 answer

How to resolve the problem of losing a session after a redirect in PHP?

Hello @kartik, Carry out these usual checks: Make sure session_start(); is ...READ MORE

Aug 24, 2020 in PHP by Niroj
• 82,880 points
32,867 views
0 votes
1 answer

What do you meant by dd() function in Laravel?

Hey @kartik dd stands for "Dump and Die." Laravel's ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,880 points
32,541 views
0 votes
2 answers

How to use basic authorization in PHP curl?

If you are saying Basic authentication, then ...READ MORE

Jan 3, 2021 in PHP by Manas
• 140 points
32,463 views
+1 vote
1 answer

How to check if a record already exists in a laravel?

Hey, As a newbie it is most common ...READ MORE

Mar 31, 2020 in Laravel by Niroj
• 82,880 points
31,081 views
0 votes
1 answer

How to validate array in Laravel?

Hello @kartik, you can call validate() method directly ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,880 points
30,656 views