Ted
Ted

Reputation: 4166

Laravel 4 - controller ReflectionException Class / does not exist

When attempting to load the page, I'm getting the error that the ReflectionException …\vendor\laravel\framework\src\Illuminate\Container\Container.php485, could use some insight on what is causing this error.

routes.php

Route::get('contact', 'Pages@contact');

laravel\app\controllers\PagesController.php

<?php
class PagesController extends BaseController {
public function contact()
    {
        return View::make('hello');
    }
}

Upvotes: 1

Views: 4871

Answers (1)

Antonio Carlos Ribeiro
Antonio Carlos Ribeiro

Reputation: 87719

Probably your controller name:

 Route::get('contact', 'PagesController@contact');

Upvotes: 6

Related Questions