i have this code but my Method not find ?
Route.php
Route::controller('Basic', 'BasicController');
BasicController.php
class BasicController extends BaseController {
public function getIndex()
{
return View::make('hello');
}
public function getTest()
{
return 'test';
}
}
when i call test from browser : `http://mydomain.dev/Basic/Test Not Work !
and get this error :
Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
Controller method [Test] not found.
open: /var/www/mydomain.dev/vendor/laravel/framework/src/Illuminate/Routing/Controller.php
* @param array $parameters
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
public function missingMethod($method, $parameters = array())
{
throw new NotFoundHttpException("Controller method [{$method}] not found.");
}
Why ?
My laravel version is 4.1.8