Most voted questions in Laravel

0 votes
1 answer

How to connect to mysql with laravel?

Hello, Laravel makes it very easy to manage ...READ MORE

Apr 9, 2020 in Laravel by Niroj
• 82,800 points
2,406 views
0 votes
1 answer

How to get data from Laravel backend and display in Vue/Nuxt frontend

Hello, You have to use the package dotenv. Then ...READ MORE

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

Error:Laravel [InvalidArgumentException] Script “post-install-cmd” is not defined in this package

Hello @kartik, Do composer global update before laravel new <project-name> and you'll ...READ MORE

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

Error: “No scheduled commands are ready to run.” in Laravel?

Hello @kartik, Run php artisan and see if your commands ...READ MORE

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

How to break a for each loop in laravel blade view?

Hello @kartik, By default, blade doesn't have @break and @continue which are ...READ MORE

Apr 6, 2020 in Laravel by Niroj
• 82,800 points
14,009 views
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,800 points
10,267 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,800 points
23,557 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,800 points
6,191 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,800 points
1,890 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,800 points
6,017 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,800 points
4,813 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,800 points
6,063 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,800 points
11,841 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,800 points
5,495 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,800 points
7,520 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
17,411 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
18,235 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,800 points
25,052 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,800 points
12,638 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,800 points
4,282 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,800 points
1,909 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,800 points
5,971 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,800 points
15,789 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,800 points
7,770 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,730 points
43,664 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,800 points
17,201 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,800 points
23,595 views
0 votes
1 answer

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

uninstall chrome extension one by one and ...READ MORE

Sep 25, 2021 in Laravel by Nitish Verma

edited Mar 5 54,383 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,800 points
18,930 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,800 points
17,142 views
0 votes
1 answer

Getting the query builder to output its raw SQL query as a String?

Hello, DB::QueryLog() only work after you execute the query $builder->get(). ...READ MORE

Mar 30, 2020 in Laravel by Niroj
• 82,800 points
2,816 views
0 votes
1 answer

Error:Composer Out of memory in Laravel?

Hey @kartik, This Error  happens in almost all ...READ MORE

Mar 30, 2020 in Laravel by Niroj
• 82,800 points
10,259 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,800 points
35,592 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,800 points
42,168 views
0 votes
1 answer

What is url helper in Laravel?

Hello, The url helper may be used to ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
1,352 views
0 votes
1 answer

What do you mean by Rate Limiting?How can we access control in number of routes in an application ?

Hey kartik, Laravel includes a middleware to rate ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
1,617 views
0 votes
1 answer

What is the difference between Facades and Dependency Injection in Laravel?

Hello, The main differnece between them is explained ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
3,718 views
0 votes
1 answer

How can we Create custom name while uploading image using storage?

Hello, You also can do like this $ImgValue ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
906 views
0 votes
2 answers

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

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

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
91,816 views
0 votes
1 answer

Error:login in Laravel. How to solve?

Hey, First check if your model login has a field password in ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
8,157 views
0 votes
1 answer

How do you register service providers?

Hey,  It is one of the most easy ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
1,017 views
0 votes
1 answer

Explain Extending Bindings in Laravel? And where to extend the bind in laravel?

Hii,  The extend method allows the modification of ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
2,029 views
0 votes
1 answer

What is Tagging in Laravel?

Hii @kartik, Occasionally, you may need to resolve ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
1,207 views
0 votes
1 answer

Explain Contextual Binding and how does it work?

Hello, Sometimes you may have two classes that ...READ MORE

Mar 26, 2020 in Laravel by Niroj
• 82,800 points
1,484 views
0 votes
1 answer

How to enable or disable maintenance mode in Laravel?

Hii, We have to use the following artisan ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,800 points
4,272 views
0 votes
1 answer

How to upload files in laravel?

Hey @kartik, We have to call Facades in ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,800 points
1,099 views
0 votes
1 answer

What is with() in Laravel?

Hello, with() function is used to eager load in ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,800 points
16,422 views
0 votes
1 answer

How to make a constant and use globally in laravel?

Hii, You can create a constants.php page in config folder ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,800 points
4,569 views
0 votes
1 answer

How to use mail() in laravel?

Hello, Laravel provides a powerful and clean API ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,800 points
1,241 views
0 votes
1 answer

How to create custom validation rules with Laravel?

Hii @kartik, Follow are the steps to create ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,800 points
1,472 views