My Main Blog

Monday 24 November 2014

Create a simple page in Laravel using Route

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




2 comments:

  1. nice information i like it very much give me more information
    How to start laravel framework about this topic

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete