Most voted questions in Laravel

0 votes
1 answer

How Can I Remove “public/index.php” in the URL Generated Laravel?

Hello @kartik, If it isn't already there, create ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,880 points
12,846 views
0 votes
1 answer

How to change value of a request parameter in laravel?

Hello @kartik, Use merge(): $request->merge([ 'user_id' => ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,880 points
15,345 views
0 votes
2 answers

Error:Composer: file_put_contents(./composer.json): failed to open stream: Permission denied

I used sudo and it managed to ...READ MORE

Nov 2, 2020 in Laravel by anonymous
46,175 views
0 votes
1 answer

How to use API Routes in Laravel?

Hello @kartik, You call it by http://localhost:8080/api/test ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,880 points
7,286 views
0 votes
1 answer

How to Install Laravel without using Composer?

Hello @kartik, If you really wanted to, you ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,880 points
3,701 views
0 votes
1 answer

How to validate array in Laravel?

Hello @kartik, you can call validate() method directly ...READ MORE

Aug 10, 2020 in Laravel by Niroj
• 82,880 points
30,578 views
0 votes
1 answer

How to access url for the current if statement of laravel?

Hello @ subham , If you want to access the ...READ MORE

Aug 7, 2020 in Laravel by Niroj
• 82,880 points
940 views
0 votes
1 answer

How to install Laravel's Artisan?

Hello @kartik, Artisan comes with Laravel by default, ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
1,126 views
0 votes
1 answer

Error:Non-static method Illuminate\Http\Request::all() should not be called statically, assuming $this from incompatible context

Hello @kartik, The error message is due to ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
9,804 views
0 votes
1 answer

How to create a laravel hashed password?

Hii @kartik, Hashing A Password Using Bcrypt in Laravel: $password ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
4,023 views
0 votes
1 answer

Laravel Pagination links not including other GET parameters

Hello @kartik, I think you should use this ...READ MORE

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

How to Make Laravel Eloquent “IN” Query?

Hello @kartik, Here is how you do in ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
676 views
0 votes
1 answer

Error:“The page has expired due to inactivity” - Laravel 5.5

Hello @kartik, Make sure you have already added ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
2,752 views
0 votes
1 answer

Error:Laravel - Session store not set on request

Hello @kartik, You'll need to use the web middleware if ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
26,348 views
0 votes
1 answer

Error:Loading composer repositories with package information Updating dependencies (including require-dev) Killed

Hello @kartik, The "Killed" message usually means your ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
7,506 views
0 votes
1 answer

How to populating a database in a Laravel migration file?

Hello @kartik, Don't put the DB::insert() inside of ...READ MORE

Aug 4, 2020 in Laravel by Niroj
• 82,880 points
2,673 views
0 votes
1 answer

Error:Laravel PHP Command Not Found

Hello @kartik, Try the follwing snippet: nano ~/.bash_profile And ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
6,632 views
0 votes
1 answer

How can I get the error message for the mail() function?

Hello @kartik, You can use error_get_last() when mai l()returns false. $success = mail('example@example.com', ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
8,617 views
0 votes
1 answer

How to make Django serve that file for download as opposed to trying to find a URL and View to display it?

Hello @kartik, You can just use the built ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
6,142 views
0 votes
1 answer

Error:sending email via php mail function goes to spam

Hello @kartik, Try changing your headers to this: $headers ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
10,460 views
0 votes
1 answer

Error:PHP mail function doesn't complete sending of e-mail

Hello @kartik, If you are using an SMTP ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
2,095 views
0 votes
1 answer

How to pass data to mail View in laravel Mail send?

Hello @kartik, Send data like this. $data = [ ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
7,366 views
0 votes
1 answer

How to use multiple databases in Laravel?

Hello @kartik, Laravel has inbuilt support for multiple ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
2,095 views
0 votes
1 answer

Error:Swift_TransportException Expected response code 220 but got code "", with message ""

Hello @kartik, This problem can generally occur when ...READ MORE

Jul 30, 2020 in Laravel by Niroj
• 82,880 points
3,879 views
0 votes
1 answer

How can I specify the required Node.js version in package.json?

Hello @kartik, I think you can use the ...READ MORE

Jul 20, 2020 in Laravel by Niroj
• 82,880 points
4,878 views
0 votes
1 answer

How to sync props to state using React hooks : setState()?

Hello @kartik, useState hooks function argument is being used ...READ MORE

Jun 1, 2020 in Laravel by Niroj
• 82,880 points
3,130 views
0 votes
0 answers

Error:DataTables wont show results : “Ajax Error” and “500 Internal Server Error”

I'm new to Laravel PHP Framework and currently continue ...READ MORE

Apr 15, 2020 in Laravel by kartik
• 37,510 points
2,411 views
0 votes
1 answer

Error:“Uncaught SyntaxError: Identifier 'Common' has already been declared after making javascript class object” in console?

Hello, You can write like this, you need ...READ MORE

Apr 14, 2020 in Laravel by Niroj
• 82,880 points
9,960 views
0 votes
1 answer

How to set a new value for data-url attribute using jquery?

Hii, In your line: $(this).attr('data-url',value.url); are you sure this refers to the ...READ MORE

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

How to pass an array as a URL parameter?

Hello, Here you can try this out var myArray ...READ MORE

Apr 14, 2020 in Laravel by Niroj
• 82,880 points
36,988 views
0 votes
1 answer

Error “ETXTBSY: text file is busy” on npm install

Hello, 1.Make sure to update node to latest ...READ MORE

Apr 14, 2020 in Laravel by Niroj
• 82,880 points
1,523 views
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,880 points
1,999 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,880 points
2,873 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,880 points
1,225 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,880 points
7,331 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,880 points
12,722 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,880 points
8,824 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,543 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,415 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,503 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,101 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,080 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,103 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,622 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,661 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,387 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,319 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,027 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
22,654 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,459 views