LosAngeles
LosAngeles

Reputation: 83

Laravel Route Failed

I have a little problem. When I connect to the site: mysite.com/uebersicht, I get this error:

Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException

Controller method not found.

My Routes:

Route::controller('/', 'HomeController');
Route::controller('uebersicht', 'UebersichtController');

UebersichtController

<?php

class UebersichtController extends BaseController {
    public $layout = 'master';

    public function getIndex() {
        $this->layout->content = View::make('uebersicht.index');
        $this->layout->title = 'Server &Uuml;bersicht';
    }

}

The HomeController works, but the UebersichtController not...

Upvotes: 1

Views: 559

Answers (2)

Anam
Anam

Reputation: 12169

Put / controller at the bottom.

Try the following:

Route::controller('uebersicht', 'UebersichtController');
Route::controller('/', 'HomeController');

Upvotes: 2

Cody Covey
Cody Covey

Reputation: 1060

Change the order of the routes so '/' is last.

Upvotes: 2

Related Questions