I'm studying more on my own Laravel, but I already looked at his documentation on routes and I can not make it work here.
I did a little test:
Route::get('/', function () {
return view('welcome');
});
Route::get('teste', function() {
return view('teste');
});
and I created the file teste.blade.php
in the resources/views/teste.blade.php
this is along with the file welcome.blade.php
, where it works without problems, but when I put it in the browser dev.project/teste
it does not find the file.
but if you put dev.project/
it opens the welcome file.
Can anyone tell me if I'm missing a configuration, or maybe I have to create a controller file to run?