Latest questions in Laravel

+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,680 points
10,750 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,680 points
8,216 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,680 points
10,058 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,680 points
18,910 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,680 points
3,933 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,680 points
29,152 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,680 points
7,260 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,680 points
682 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,680 points
4,560 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,680 points
5,416 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,680 points
7,901 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,680 points
295 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,680 points
135 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,680 points
979 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,680 points
86 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,680 points
12,701 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,680 points
1,671 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,680 points
135 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,680 points
257 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,680 points
214 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,680 points
329 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,680 points
1,542 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,680 points
110 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,680 points
6,428 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,680 points
514 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,680 points
169 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,680 points
177 views
0 votes
1 answer

How to use Stored Procedures in Laravel?

Hey, To create a Stored Procedure you can ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,680 points
2,212 views
0 votes
1 answer

.How to turn off CSRF protection for a particular route in Laravel?

Hey, We can add that particular URL or ...READ MORE

Mar 24, 2020 in Laravel by Niroj
• 82,680 points
1,908 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
9,424 views
0 votes
1 answer

What is dependency injection in Laravel?

hey, In software engineering, dependency injection is a ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,680 points
247 views
0 votes
1 answer

What is yield in Laravel and what is the use of yield?

Hii kartik, In Laravel, @yield is principally used to define ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,680 points
6,951 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,680 points
572 views
0 votes
1 answer

What is Lumen in Laravel?

Hey @kartik Lumen is PHP micro-framework that built on ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,680 points
420 views
0 votes
1 answer

What are traits in Laravel?

Hii, PHP Traits are simply a group of methods ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,680 points
155 views
0 votes
1 answer

How to enable query log in Laravel?

Hello, You can use simple function that is ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,680 points
339 views
0 votes
1 answer

What is database migration and how to create database migration in Laravel?

Hii, Migrations are like version control for your database, ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,680 points
741 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,680 points
7,211 views
0 votes
1 answer

How to install Laravel via composer?

Hello, This is simple you just need to ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,680 points
594 views
0 votes
1 answer

Explain validations in laravel and How to validate my application incoming data?

Hey @kartik, In Programming validations are a handy ...READ MORE

Mar 23, 2020 in Laravel by Niroj
• 82,680 points
221 views
0 votes
1 answer

How can we check the logged-in user info in Laravel?

Hey @kartik, yes we can keep track of ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,680 points
174 views
0 votes
1 answer

How can we create a record in Laravel using eloquent?

We need to create a new model ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,680 points
232 views
0 votes
1 answer

How can someone change the default database type in Laravel?

Laravel is configured to use MySQL by ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,680 points
1,697 views
0 votes
1 answer

What is the use of the Eloquent cursor() method in Laravel?

Hello, The cursor method allows us to iterate ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,680 points
3,238 views
0 votes
1 answer

How can we use the custom table in Laravel?

Hey, We can easily use custom table in ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,680 points
462 views
0 votes
5 answers

How to get user's IP address in Laravel?

Looking at the Laravel API: Request::ip(); Internally, it uses the getClientIps the ...READ MORE

Dec 15, 2020 in Laravel by Roshni
• 10,430 points
20,990 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,680 points
5,030 views
0 votes
1 answer

What is service provider in Laravel?

Hey, Service providers can be defined as the ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,680 points
1,717 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,880 points
37,227 views
0 votes
1 answer

Does Laravel support caching and what are the Cache Usage?

Hey, Yes, Laravel provides support for popular caching ...READ MORE

Mar 20, 2020 in Laravel by Niroj
• 82,680 points
301 views