I'm newbie in laravel. So I've created TestController.php file, inside file:
<?php
class TestController extends BaseController {
public function testFunction()
{
return "It works";
}
}
In routes:
Route::get('test', 'TestController@testFunction');
I'm got this error:
FatalErrorException in TestController.php line 2: Class 'BaseController' not found
I'm using laravel 5, I'm trying to change from BaseController to Controller, not works :( What's wrong here? Thanks in advance :(
P.S I'm tried change to "\BaseController". Not works.