1
When I add this route to the file Routes.php:
Routes.php
Route::get('postagem', function (){
return "teste";
});
Route::get('/', function(){
return View::make('hello');
});
Presents this error:
Fatal error: Class 'Route' not found in C: wamp www Laravel app Routes.php on line 13
Use Laravel 4.2, Wamp Server. I have already made several commands with the upgrade software, but without success.
Type in the http://localhost/seusite/public/posting URL, which appears ?
– Diego Souza
@Taopaipai NOT Found 404
– Everson Souza de Araujo
How’s your URL? Put it there.
– Diego Souza
@Taopaipai localhost/Standard/public/posting
– Everson Souza de Araujo
So, but the name of your route is
posting
and notpostagem
.– Diego Souza
@Taopaipai is posting is because I put this question in the English forum then I just copied
– Everson Souza de Araujo
That’s all there is in your route file? And
.htaccess
?– Diego Souza
@Taopaipai this way >'<Ifmodule mod_rewrite. c> <Ifmodule mod_negotiation. c> Options -Multiviews </Ifmodule> Rewriteengine On # Redirect Trailing Slashes... Rewriterule (.*)/$ /$1 [L,R=301] # Handle Front Controller... Rewritecond %{REQUST_FILENAME} ! -d Rewritecond %{REQUEST_FILENAME} ! -f Rewriterule index.php [L] </Ifmodule>'
– Everson Souza de Araujo
When you installed Laravel worked the test page ?
– Diego Souza
@Taopaipai yes, this is the only route that works
– Everson Souza de Araujo
Everson, post the entire route file code in your question.
– Diego Souza
@Taopaipai ready made
– Everson Souza de Araujo
Did you install it like Laravel? And what command did you use to create the project? The problem here doesn’t seem to be with Apache or folder permission.
– Guilherme Nascimento