Latest questions in Web Development

0 votes
1 answer

How to get all pending jobs in laravel queue on redis?

Hello @kartik, Here is the way I do ...READ MORE

Apr 6, 2020 in Laravel by Niroj
• 82,880 points
8,989 views
0 votes
1 answer

How to install all required PHP extensions for Laravel?

Hello, Laravel Server Requirements mentions that BCMath, Ctype, JSON, Mbstring, OpenSSL, PDO, Tokenizer and XML extensions are required. Most the ...READ MORE

Apr 6, 2020 in Laravel by Niroj
• 82,880 points
21,800 views
0 votes
1 answer

Artisan migration error “Class 'Doctrine\\DBAL\\Driver\\PDOMySql\\Driver' not found”?

Hello @kartik, This message shows up if you ...READ MORE

Apr 6, 2020 in Laravel by Niroj
• 82,880 points
5,464 views
0 votes
1 answer

How I can disable templates caching in development mode?

Hii @kartik, Create a new middleware, add to ...READ MORE

Apr 6, 2020 in Laravel by Niroj
• 82,880 points
1,531 views
0 votes
1 answer

Constructor redirect is not working in Laravel?

Hello, vent with Illuminate\Routing\Redirector, laravel set redirect in ...READ MORE

Apr 6, 2020 in Laravel by Niroj
• 82,880 points
5,186 views
0 votes
1 answer

Where to register Facades & Service Providers in Lumen?

Hello, To register a facade with an alias, ...READ MORE

Apr 6, 2020 in Laravel by Niroj
• 82,880 points
4,158 views
+1 vote
1 answer

Error:file_put_contents(meta/services.json): failed to open stream: Permission denied?

Hello @kartik, Below steps helped me fix the ...READ MORE

Apr 3, 2020 in Laravel by Niroj
• 82,880 points
8,368 views
0 votes
1 answer

How to echo to console in Laravel and Artisan?

Hello @kartik, You can try this as this ...READ MORE

Apr 3, 2020 in Laravel by Niroj
• 82,880 points
5,190 views
0 votes
1 answer

How to execute Stored Procedure from Laravel?

Hello @kartik, You can try something like this DB::select('exec ...READ MORE

Apr 3, 2020 in Laravel by Niroj
• 82,880 points
10,778 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
128,479 views
0 votes
1 answer

Why soft deleted entities appear in query results?

Hello @kartik, Sometimes, you will get the soft deleted table ...READ MORE

Apr 3, 2020 in Laravel by Niroj
• 82,880 points
4,734 views
0 votes
1 answer

How to import a mysql dump to a laravel migration?

Hello @kartik You can import dumps in Laravel ...READ MORE

Apr 3, 2020 in Laravel by Niroj
• 82,880 points
6,534 views
+1 vote
1 answer

Error:Class '\App\User' not found in Laravel when changing the namespace in Laravel?

Hello @kartik Go to config/auth.php and change App\User:class ...READ MORE

Apr 3, 2020 in Laravel by Niroj
• 82,880 points
29,557 views
0 votes
2 answers

Error:Failed to open stream: Permission denied in Laravel?

I had this problem lately with my ...READ MORE

Nov 4, 2020 in Laravel by anonymous
• 140 points
16,426 views
0 votes
2 answers

Error:Class 'App\Http\Controllers\App\Model' not found?

Class ‘App\Http\Controllers\Auth’ Not Found in Class ‘App\Http\Controllers\Auth’ not ...READ MORE

Aug 6, 2020 in Laravel by pakainfo
17,129 views
0 votes
1 answer

How to place the ~/.composer/vendor/bin directory in your PATH?

Hello @kartik, To put this folder on the ...READ MORE

Apr 2, 2020 in Laravel by Niroj
• 82,880 points
23,078 views
0 votes
1 answer

How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?

Hello, To create both of the created_at and updated_at columns: $t->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); $t->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP on update ...READ MORE

Apr 2, 2020 in Laravel by Niroj
• 82,880 points
11,555 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,880 points
11,943 views
0 votes
1 answer

What does double question mark (??) operator mean in PHP?

Hello, It's the "null coalescing operator", added in ...READ MORE

Apr 2, 2020 in PHP by Niroj
• 82,880 points
7,150 views
0 votes
1 answer

Composer install error - requires ext_curl when it's actually enabled?

Hello, on php7 run for example: > sudo apt-get ...READ MORE

Apr 2, 2020 in PHP by Niroj
• 82,880 points
15,736 views
0 votes
0 answers

How to compile PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?

PHP is compiled to byte code before ...READ MORE

Apr 2, 2020 in PHP by kartik
• 37,510 points
2,857 views
0 votes
1 answer

Error:PDOException SQLSTATE[HY000] [2020] No such file or directory in php?

Hello, I checked php -i | grep pdo and noticed ...READ MORE

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

How to Scroll to the top of the page using JavaScript?

Hii @kartik, Using javascript <script> $("a[href='#top']").click(function() { ...READ MORE

Apr 2, 2020 in Java-Script by Niroj
• 82,880 points
798 views
0 votes
1 answer

what is the $(document).ready equivalent without jQuery?

Hello @kartik, There are three options: If script is the last ...READ MORE

Apr 2, 2020 in Java-Script by Niroj
• 82,880 points
20,806 views
0 votes
1 answer

How to clone a JavaScript object?

Hello, You can clone an object and remove ...READ MORE

Apr 2, 2020 in Java-Script by Niroj
• 82,880 points
694 views
0 votes
1 answer

How to prevent XSS with HTML/PHP?

Hello, HTML Encoding htmlspecialchars will convert any "HTML special characters" ...READ MORE

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

How to merge two arrays while keeping keys instead of reindexing in php?

Hello, Considering that you have $replaced = array('1' => ...READ MORE

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

What are the best way to allow plugins for a PHP application?

Hii, Here is an approach I have  used, it's ...READ MORE

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

How to convert an image to base64 encoding?

Hello @kartik, You can also do this via ...READ MORE

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

How to send email using php?

Hello @kartik 1.) Download PHPMailer, open the zip file ...READ MORE

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

How to install a specific version of package using Composer?

Hello, Just use php composer.phar require For example : php ...READ MORE

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

How to check if php session is already started or not?

Hello kartik, Use session_id(), it returns an empty string ...READ MORE

Apr 1, 2020 in PHP by Niroj
• 82,880 points
5,199 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,939 views
0 votes
1 answer

How to get thumbnail of youtube video from youtube API?

Hii @kartik, If you want the biggest image ...READ MORE

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

How to get a list of registered route paths in Laravel?

Hello, Route::getRoutes() returns a RouteCollection. On each element, you can ...READ MORE

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

How can I install Laravel via Laravel Installer on Windows?

Hello, The PATH for Windows: I’ve found the location ...READ MORE

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

Class ClassName does not exist:ReflectionException in Laravel?

Hello @lkartik, Perform a composer update, then composer dump-autoload. If the ...READ MORE

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

How to include a sub-view in Blade templates in Laravel?

Hello @kartik, You can use the blade template ...READ MORE

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

How do I set up phpMyAdmin on a Laravel Homestead box?

Hello, Step 1: Go to the phpMyAdmin website, download the latest ...READ MORE

Mar 31, 2020 in Laravel by Niroj
• 82,880 points
6,902 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
41,130 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,840 views
+3 votes
2 answers

Error - 419 Sorry, your session has expired.Post request in Laravel?

Sometimes the cache can also lead to ...READ MORE

Aug 28, 2020 in Laravel by Ishita
• 150 points
30,198 views
+1 vote
1 answer

Error [PDOException]: Could not Find Driver in PostgreSQL?

Hii, I got this problem too. I have ...READ MORE

Mar 31, 2020 in Laravel by Niroj
• 82,880 points
28,905 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,350 views
0 votes
1 answer

Error:My Routes are Returning a 404 in Laravel?

Hii @kartik Routes Use them to define specific routes ...READ MORE

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

How to get distinct values for non-key column fields in Laravel?

Hello @kartik In eloquent you can use this $users ...READ MORE

Mar 30, 2020 in Laravel by Niroj
• 82,880 points
22,116 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,686 views
0 votes
1 answer

How to set port for php artisan.php serve in Laravel?

Hii @kartik, When we use the php artisan serve ...READ MORE

Mar 30, 2020 in Laravel by Niroj
• 82,880 points
16,349 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
120,704 views
0 votes
1 answer

How can we Create Multiple Where Clause Query Using Laravel Eloquent?

Hii, You can use Conditions using Array: $users = User::where([ ...READ MORE

Mar 30, 2020 in Laravel by Niroj
• 82,880 points
16,298 views