I have been trying to get a simple example to work but it keeps giving me Route [login] not defined when I try to load the page. I have tried to test each part individually with no luck; what could be the issue here?
My code is as follows:
Class:Users.php
class users extends Model
{
public $table = 'users';
}
Controller:UserController.php
use App\users;
public function index()
{
return "Hello Laravel";
}
Route:
Route::get('/user','UserController@index');
php artisan route:listto see if route is defined - Mahdi Younesi