Create a simple page in Laravel using Route
To configure Laravel look here
Here I am creating a simple "aboutus" page using "Routes" in Laravel.
Follow below steps:
1) Open "app/routes.php" file and paste as:
Route::get('aboutus', function()
{
return View::make('aboutus');
});
2) Now create "aboutus.php" in "app/views/" folder with any matter,
<html>
...............................
...............................
...............................
</html>
3) now open browser with this URL:
http://localhost:90/MyLaravel/public/aboutus
To configure Laravel look here
Here I am creating a simple "aboutus" page using "Routes" in Laravel.
Follow below steps:
1) Open "app/routes.php" file and paste as:
Route::get('aboutus', function()
{
return View::make('aboutus');
});
2) Now create "aboutus.php" in "app/views/" folder with any matter,
<html>
...............................
...............................
...............................
</html>
3) now open browser with this URL:
http://localhost:90/MyLaravel/public/aboutus
0 comments:
Post a Comment