Trending questions in Web Development

0 votes
1 answer

How to run process with realtime output in PHP?

Hello @kartik, This worked for me: $cmd = "ping ...READ MORE

Oct 20, 2020 in PHP by Niroj
• 82,840 points
4,144 views
0 votes
1 answer

How do I insert user into mysql table from within Laravel?

Hello @kartik, First Create seeder with artisan: php artisan make:seeder ...READ MORE

Nov 12, 2020 in Laravel by Niroj
• 82,840 points
3,147 views
0 votes
1 answer

Error:installing mysql2: Failed to build gem native extension

Hello @kartik, In my case this helped: $ export ...READ MORE

Jul 24, 2020 in Java-Script by Niroj
• 82,840 points
7,924 views
0 votes
1 answer

How can I get the browser language in node.js?

Hello @kartik, You can use req.headers["accept-language"] to get the language/locale ...READ MORE

Oct 16, 2020 in Node-js by Niroj
• 82,840 points
4,298 views
0 votes
1 answer

How to add new value in collection laravel?

Hello @kartik, If you have a collection you ...READ MORE

Dec 4, 2020 in Laravel by Niroj
• 82,840 points
2,159 views
0 votes
1 answer

How to add “active” class to Html.ActionLink in ASP.NET MVC?

Hello @kartik, The way you handle your UI ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,840 points
7,946 views
0 votes
1 answer

How To Cast Eloquent Pivot Parameters?

Hello, In Laravel 5.1 or higher you can ...READ MORE

Nov 12, 2020 in Laravel by Niroj
• 82,840 points
3,106 views
0 votes
1 answer

How to load return array from a PHP file?

Hii @kartik, When an included file returns something, ...READ MORE

Nov 10, 2020 in PHP by Niroj
• 82,840 points
3,186 views
0 votes
1 answer

How to change public folder to public_html in laravel 5?

Hello @kartik, go to this address : /app/Providers/AppServiceProvider.php and append ...READ MORE

Nov 9, 2020 in PHP by Niroj
• 82,840 points
3,199 views
0 votes
1 answer

How to post the values into validation and return the response as json rather than return view in laravel blade?

Hii, You can also tell Laravel you want ...READ MORE

Nov 12, 2020 in Laravel by Niroj
• 82,840 points
3,077 views
0 votes
1 answer

How do I find the mime-type of a file with php?

Hello @kartik, mime_content_type() is deprecated, so you won't ...READ MORE

Nov 16, 2020 in PHP by Niroj
• 82,840 points
2,889 views
0 votes
1 answer

How can I convert a DOM element to a jQuery element?

Hello, Use this: var elm = document.createElement("div"); var jelm = ...READ MORE

Nov 25, 2020 in JQuery by Niroj
• 82,840 points
2,493 views
0 votes
1 answer

PHP __PHP_Incomplete_Class Object with my $_SESSION data

Hello @kartik, You just have to include the safestring.class.php before ...READ MORE

Nov 23, 2020 in PHP by Niroj
• 82,840 points
2,566 views
0 votes
1 answer

How to disable HTML links using jquery?

Hello @kartik, Got the fix in css. td.disabledAnchor a{ ...READ MORE

Nov 26, 2020 in JQuery by Niroj
• 82,840 points
2,446 views
0 votes
1 answer

How do I embed PHP code in JavaScript?

Hello @kartik, If you have individual .js files, and you ...READ MORE

Jul 7, 2020 in Java-Script by Niroj
• 82,840 points
8,584 views
0 votes
1 answer

In an Laravelcollective submit button how to add icon?

Hello @kartik, Try to use Form::button instead of ...READ MORE

Dec 4, 2020 in Laravel by Niroj
• 82,840 points
2,087 views
0 votes
1 answer

How to check request is ajax or not in Laravel?

Hello, Laravel allow use of their library method that ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,840 points
13,139 views
0 votes
1 answer

How to give custom field name in laravel form validation error message?

Hello @kartik, You can specify custom error message ...READ MORE

Sep 30, 2020 in Laravel by Niroj
• 82,840 points
4,866 views
0 votes
1 answer

How do you add headers to a response with a middleware?

Hello @kartik, Using the response helper. use Illuminate\Http\RedirectResponse; $response = $next($request); $response = ...READ MORE

Oct 28, 2020 in Laravel by Niroj
• 82,840 points
3,629 views
0 votes
1 answer

Error: Call to undefined function money_format()

Hello @kartik, If you are using windows based ...READ MORE

Nov 16, 2020 in PHP by Niroj
• 82,840 points
2,786 views
0 votes
1 answer

How do I PHP-unserialize a jQuery-serialized form?

Hello @kartik, Provided that your server is receiving ...READ MORE

Oct 19, 2020 in PHP by Niroj
• 82,840 points
4,014 views
0 votes
1 answer

How to pass an array within a query string?

Hello, Submitting multi-value form fields, i.e. submitting arrays ...READ MORE

Apr 8, 2020 in PHP by Niroj
• 82,840 points
12,396 views
0 votes
1 answer

How to use paginate() with a having() clause when column does not exist in table

Hello @kartik, You can calculate the distance in ...READ MORE

Dec 2, 2020 in Laravel by Niroj
• 82,840 points
2,074 views
0 votes
1 answer

How do I resize pngs with transparency in PHP?

Hello @kartik, you need to set the blending ...READ MORE

Nov 23, 2020 in PHP by Niroj
• 82,840 points
2,454 views
0 votes
1 answer

How do I access ViewBag from JS?

Hello @kartik, in your view write : <script> var ...READ MORE

Sep 9, 2020 in Java-Script by Niroj
• 82,840 points
5,694 views
0 votes
1 answer

How to return an array from an AJAX call?

Hello, Php has a function for this, just ...READ MORE

Nov 8, 2020 in PHP by Niroj
• 82,840 points
3,085 views
0 votes
2 answers

How to change website favicon dynamically?

There is a way of doing it ...READ MORE

Sep 28, 2020 in Java-Script by anju
• 160 points
4,997 views
0 votes
1 answer

How to matching an IP to a CIDR mask in PHP 5?

Hello @kartik, If only using IPv4: use ip2long() to convert the ...READ MORE

Nov 6, 2020 in PHP by Niroj
• 82,840 points
3,172 views
0 votes
1 answer

How do I remove http, https and slash from user input in php

Hello @kartik, Use: $url = preg_replace("(^https?://)", "", $url ); This ...READ MORE

Nov 19, 2020 in PHP by Niroj
• 82,840 points
2,604 views
0 votes
1 answer

How to set “checked” for a checkbox with jQuery?

Hello @kartik, Use: $(".myCheckbox").attr('checked', true); // Deprecated $(".myCheckbox").prop('checked', true); And if ...READ MORE

Aug 28, 2020 in Java-Script by Niroj
• 82,840 points
6,204 views
0 votes
1 answer

How to enable cURL in PHP / XAMPP?

Hello @kartik, Since you're using XAMPP, uncomment the ...READ MORE

Oct 1, 2020 in PHP by Niroj
• 82,840 points
4,685 views
0 votes
1 answer

How do I find out my MySQL URL, host, port and username?

Hello @kartik, If you're already logged into the ...READ MORE

Aug 20, 2020 in PHP by Niroj
• 82,840 points
6,493 views
0 votes
1 answer

How to set .env values in laravel programmatically on the fly?

Hello @kartik, Since Laravel uses config files to ...READ MORE

Sep 24, 2020 in Laravel by Niroj
• 82,840 points
4,980 views
0 votes
1 answer

How to show all the variables as proper currency format in laravel?

Hello, You could create a custom Laravel directive. You ...READ MORE

Nov 2, 2020 in Laravel by Niroj
• 82,840 points
3,310 views
0 votes
1 answer

How can I get ID of the last updated row in MySQL?

Hello @kartik, Suppose, item_id is an integer identity column in items table ...READ MORE

Apr 9, 2020 in PHP by Niroj
• 82,840 points
12,216 views
0 votes
1 answer

How to get route action name in laravel?

Hello @kartik, To get action name, you need ...READ MORE

Sep 28, 2020 in Laravel by Niroj
• 82,840 points
4,805 views
0 votes
1 answer

How to delete a single record in Laravel 5?

Hello @kartik, Delete an existing Model $user = User::find(1); $user->delete(); Deleting ...READ MORE

Dec 2, 2020 in Laravel by Niroj
• 82,840 points
1,961 views
+2 votes
1 answer

Error: laravel.log could not be opened?

Hello, Never use 777 for directories on your ...READ MORE

Apr 2, 2020 in Laravel by Niroj
• 82,840 points
12,412 views
0 votes
1 answer

How to open a URL in a new Tab using JavaScript or jQuery?

Hello @kartik, Use window.open(): var win = window.open('http://edureka.co/', '_blank'); if (win) ...READ MORE

Aug 25, 2020 in Java-Script by Niroj
• 82,840 points
6,214 views
0 votes
1 answer

Error:preg_match() [function.preg-match]: Unknown modifier '+' in raptr.php on line 14

Hello, Try this code: preg_match('/[a-zA-Z]+<\/a>.$/', $lastgame, $match); print_r($match); Using / as a delimiter ...READ MORE

Nov 23, 2020 in PHP by Niroj
• 82,840 points
2,324 views
0 votes
1 answer

Error: Cannot find module 'html'

Hello @kartik, You can have jade include a ...READ MORE

Sep 3, 2020 in Java-Script by Niroj
• 82,840 points
5,820 views
0 votes
1 answer

How to comment out HTML and PHP together?

Hello @kartik, Instead of using HTML comments (which have ...READ MORE

Oct 6, 2020 in PHP by Niroj
• 82,840 points
4,390 views
0 votes
1 answer

Error: Class 'SoapClient' not found in /home/user/mysite.com/path/to/file.php on line 16

Hello @kartik, find this line in php.ini : ;extension=soap then ...READ MORE

Oct 29, 2020 in Laravel by Niroj
• 82,840 points
3,387 views
0 votes
1 answer

How to use the middleware to check the authorization before entering each route in express?

Hello @kartik, As long as app.use(authChecker); is before app.use(app.router); it will get ...READ MORE

Nov 30, 2020 in Node-js by Niroj
• 82,840 points
2,042 views
0 votes
1 answer

How do I set laravel test to go to site name instead of localhost?

Hii, For Laravel 5, In the tests directory there should ...READ MORE

Nov 2, 2020 in Laravel by Niroj
• 82,840 points
3,240 views
0 votes
0 answers

TypeError: this.client.incrementMaxListeners is not a function

I'm making a command for my discord ...READ MORE

Dec 29, 2020 in Web Development by anonymous
• 120 points
807 views
0 votes
1 answer

Error: Class'Illuminate\Foundation\Application' not found

Hii, Use the --no-scripts flag to prevent artisan from executing ...READ MORE

Nov 13, 2020 in PHP by Niroj
• 82,840 points
2,727 views
0 votes
1 answer

How to break _.forEach in lodash?

Hello @kartik, To finish lodash#forEach method use return false; statement: _.forEach(oIncludedFileMap, function(aIncludedFiles, sKey) ...READ MORE

Nov 27, 2020 in Node-js by Niroj
• 82,840 points
2,093 views
0 votes
1 answer

How to remove the querystring and get only the url?

Hello @kartik, ou can use strtok to get string before ...READ MORE

Sep 29, 2020 in Laravel by Niroj
• 82,840 points
4,639 views
0 votes
1 answer

How to make a new page with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

Mar 18, 2020 in Laravel by Niroj
• 82,840 points
13,040 views