Most voted questions in Laravel

+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,730 points
67,642 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
32,439 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,800 points
13,051 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,800 points
126,339 views
+1 vote
1 answer

Laravel Error: 419 session expired

Ramen Castro Maravilla READ MORE

Oct 14, 2022 in Laravel by anonymous

edited Mar 5 18,123 views
+1 vote
1 answer

How to get public directory in laravel?

Hello @kartik, Use public_path() For reference: // Path to the project's ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,800 points
28,339 views
+1 vote
1 answer

How can I run specific migration in laravel?

Hello @kartik, Use this command it worked for ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,800 points
24,325 views
+1 vote
1 answer

How to load blade or php content into a view via ajax/jquery in laravel?

Hello @kartik, Assuming you're using jQuery... create a route ...READ MORE

Apr 14, 2020 in Laravel by Niroj
• 82,800 points
28,899 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,800 points
9,140 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,870 points
134,920 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,800 points
31,109 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,800 points
50,522 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,800 points
31,158 views
+1 vote
1 answer

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

$user = User::where('email' , $request->email)->first(); READ MORE

May 24, 2022 in Laravel by saad farooq

edited Mar 5 33,905 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,800 points
46,539 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,800 points
75,906 views
+1 vote
1 answer

How to make anchor tag with routing using Laravel?

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

Mar 18, 2020 in Laravel by Niroj
• 82,800 points
23,919 views
0 votes
0 answers

What is async workflow in React Redux architecture?

With the help of code can i ...READ MORE

May 7 in Laravel by Ashutosh
• 33,350 points
112 views
0 votes
0 answers

What is the purpose of yield in Redux-Saga generators?

Can i know What is the purpose ...READ MORE

May 7 in Laravel by Ashutosh
• 33,350 points
118 views
0 votes
0 answers

What saga methods are commonly used in async workflows?

Can i know What saga methods are ...READ MORE

May 7 in Laravel by Ashutosh
• 33,350 points
132 views
0 votes
0 answers

What changes are required in reducers for async logic?

Can i know What changes are required ...READ MORE

Apr 29 in Laravel by Ashutosh
• 33,350 points
136 views
0 votes
0 answers

What are the differences between takeEvery and takeLatest?

Can i know What are the differences ...READ MORE

Apr 29 in Laravel by Ashutosh
• 33,350 points
153 views
0 votes
0 answers

What are generators in Redux-Saga and how do they work?

WIth the help of code can i ...READ MORE

Apr 29 in Laravel by Ashutosh
• 33,350 points
123 views
0 votes
0 answers

What are best practices for writing clean Redux-Saga code?

Can i know What are best practices ...READ MORE

Apr 29 in Laravel by Ashutosh
• 33,350 points
113 views
0 votes
0 answers

How to write an async action creator using Redux Thunk?

Can you tell me How to write ...READ MORE

Apr 29 in Laravel by Ashutosh
• 33,350 points
116 views
0 votes
0 answers

How to trigger async action creators in Redux?

Can i know How to trigger async ...READ MORE

Apr 29 in Laravel by Ashutosh
• 33,350 points
114 views
0 votes
1 answer

How do reducers handle async action types in Redux?

Reducers are inherently pure functions, which means ...READ MORE

Apr 24 in Laravel by anonymous
187 views
0 votes
1 answer

What is the purpose of the useRouteMatch hook in React Router v5, and how is it used?

The useRouteMatch hook provides access to the ...READ MORE

Apr 17 in Laravel by anonymous
222 views
0 votes
1 answer

What is the role of the Switch component in React Router v5, and how does it differ from Routes in v6?

Switch Component (React Router v5) Role: Renders the ...READ MORE

Apr 17 in Laravel by anonymous
215 views
0 votes
1 answer

What are the main differences between BrowserRouter and HashRouter in React Router?

Here's a precise comparison between BrowserRouter and HashRouter in React Router ...READ MORE

Apr 17 in Laravel by anonymous
204 views
0 votes
1 answer

How to develop a pipe that formats credit card numbers with masking?

To develop a pipe that formats and ...READ MORE

Apr 17 in Laravel by anonymous
163 views
0 votes
1 answer

How to get current financial year in PHP?

You can get the current financial year ...READ MORE

Mar 11 in Laravel by Sanvi
349 views
0 votes
1 answer

How can you resolve merge conflicts in Git?

To resolve merge conflicts in Git, follow ...READ MORE

Dec 17, 2024 in Laravel by Navya
287 views
0 votes
0 answers

Laravel 5.3 - TokenMismatchException in VerifyCsrfToken.php line 68:

How can I fix the title-related issue ...READ MORE

Jul 28, 2022 in Laravel by Kithuzzz
• 38,000 points
1,386 views
0 votes
0 answers

How to add keywords in meta tag?

I have a categories table and I ...READ MORE

Jun 20, 2022 in Laravel by Mahmoud

edited Mar 4 241 views
0 votes
0 answers

Dependent form layout in Laravel 8 with Ajax

I want to create a form layout ...READ MORE

Feb 13, 2022 in Laravel by amijanina

edited Mar 4 230 views
0 votes
0 answers

How can I insert multiple unchecked checkboxes' values into DB not one input with hidden input fields?

<input type="checkbox" name="correct_answer[]" class="form-check-input" multiple> <input type="text" name="option[]" class="form-control"> <input type="checkbox" name="correct_answer[]" class="form-check-input" multiple> <input type="text" name="option[]" class="form-control my-2"> <input type="checkbox" name="correct_answer[]" class="form-check-input" multiple> <input type="text" name="option[]" class="form-control"> <input type="checkbox" name="correct_answer[]" class="form-check-input" multiple> <input type="text" name="option[]" class="form-control"> I want to insert first and second ...READ MORE

May 23, 2021 in Laravel by anonymous

edited Mar 4 216 views
0 votes
1 answer

How can I obtain a list of all files in a public folder in laravel?

'disks' => [ ...READ MORE

Mar 15, 2022 in Laravel by dhd

edited Mar 5 4,497 views
0 votes
1 answer

Required_if laravel with multiple value

You just have to pass all the ...READ MORE

Dec 8, 2020 in Laravel by Niroj
• 82,800 points
10,627 views
0 votes
1 answer

How to get all the users except current logged in user in laravel eloquent?

Hello @kartik, You can get the current user's ...READ MORE

Dec 8, 2020 in Laravel by Niroj
• 82,800 points
8,072 views
0 votes
1 answer

TypeError: process.getuid is not a function”

Hello @kartik, Simply running npm install solved it for ...READ MORE

Dec 8, 2020 in Laravel by Niroj
• 82,800 points
1,767 views
0 votes
1 answer

How to order results of related models in laravel eloquent?

Hello @kartik, You have a few ways of ...READ MORE

Dec 8, 2020 in Laravel by Niroj
• 82,800 points
2,345 views
0 votes
1 answer

How to chunk results from a custom query in Laravel

Hello @kartik, Try something like this: <?php $max = 100; $total ...READ MORE

Dec 7, 2020 in Laravel by Niroj
• 82,800 points
2,623 views
0 votes
1 answer

How to check if a cookie is set in laravel?

Hello @kartik, You can change: @if (Cookie::get('cookiename') !== false) to @if ...READ MORE

Dec 7, 2020 in Laravel by Niroj
• 82,800 points
4,418 views
0 votes
1 answer

How to check if a user email already exist?

Hello @kartik, The validation feature built into Laravel ...READ MORE

Dec 7, 2020 in Laravel by Niroj
• 82,800 points
3,848 views
0 votes
1 answer

How to create migration from existing database in laravel?

Hello @kartik,  Laravel migration generator for your existing ...READ MORE

Dec 7, 2020 in Laravel by Niroj
• 82,800 points
2,982 views
0 votes
1 answer

How to insert raw data in mysql database in laravel?

Try this: Suppose you have the following tables ...READ MORE

Dec 7, 2020 in Laravel by Niroj
• 82,800 points
1,379 views
0 votes
1 answer

How to validate exact words in Laravel?

Hello, Try this code: // option one: 'in' takes ...READ MORE

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

How to redirect to Login if user not logged in Laravel?

Hello @kartik, You can use it in middleware. ...READ MORE

Dec 4, 2020 in Laravel by Niroj
• 82,800 points
28,502 views
0 votes
1 answer

How to delete confirmation in laravel?

Hello @kartik, If this is your link: <a href="#" ...READ MORE

Dec 4, 2020 in Laravel by Niroj
• 82,800 points
1,141 views