Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 962 Bytes

Static Pages.md

File metadata and controls

34 lines (25 loc) · 962 Bytes

From Simple and Easy Laravel Routing

    // ===============================================
    // STATIC PAGES ==================================
    // ===============================================

    // show a static view for the home page (app/views/home.blade.php)
    Route::get('/', function()
    {
        return View::make('home');
    });

    // about page (app/views/about.blade.php)
    Route::get('about', function()
    {
        return View::make('about');
    });

    // work page (app/views/work.blade.php)
    Route::get('work', array('as' => 'work', function()
    {
        return View::make('work');
    }));

Also