I am beginner on laravel. Now, I want to run laravel project on localhost. Now, what I have done? I have create index.blade.php
file inside resource/view/index.blade.php
and modify web.php
file inside routes/web.php
routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('index', function () {
return view('index');
});
resources/view/index.blade.php
<!doctype html>
<html>
<head>
<title>Demo</title>
</head>
<body>
<h1>Laravel start</h1>
</body>
</html>
I have change server.php
to index.php
and move .htaccess
file from public
to root directory and restart apache
server. but it show me 500 Internal Server Error
. I have run localhost/laravel
but its not working. So, How can I fix this problem? Please help me.
Error occuring
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@dummy-host2.example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.4.29 (Win32) OpenSSL/1.0.2l PHP/5.6.32 Server at localhost Port 80
Thank You