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,758 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,525 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,117 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,492 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,176 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,388 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,403 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,949 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,170 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
135,207 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,174 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,608 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,229 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,990 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,631 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
76,184 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
24,019 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
139 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
154 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
169 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
177 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
196 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
143 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
146 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
151 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
150 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
233 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
264 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
242 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
227 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
195 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
401 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
322 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,413 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 259 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 244 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 230 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,533 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,670 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,119 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,807 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,369 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,662 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,452 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,885 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
3,024 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,405 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,953 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,563 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,169 views