So I am new to Laravel. I have a project named Blog created using Composer and placed inside WWW of Wamp server.
I am using the following routes
Route::get('/', function () {
return view('welcome');
});
Route::get('/contact', function () {
return view('contact');
});
Route::get('/about', function () {
return view('about');
});
Here is the code I am using in layout.blade.php in views folder.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
<li><a href="/contact">Contact</a></li>
</ul>
</body>
</html>
Once I click Home, it takes me to http://localhost How can I make sure it takes me to http://localhost/blog/public
Also, how to hide the "public" folder from url?
I did change the .env file to this
APP_URL=http://localhost/blog/public/
thoughts? where am I going wrong? Thanks
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2QnB9G2
via IFTTT
Aucun commentaire:
Enregistrer un commentaire