I'm having problems: I'm editing a site and the Laravel view is only working in /
and when I put another type http://localhost/blog/public/Termos
it gives as it had not found
codig routes:
Route::get('/', 'SiteController@index');
Route::get('/Contato', 'SiteController@Contrat');
Route::get('/Dicas', 'SiteController@Dicas');
Route::get('/Regulamento', 'SiteController@Regulamento');
Route::get('/Termos', 'SiteController@Termos');
Route::get('/Tutorial', 'SiteController@Tutorial');
Route::get('/Cadastro', 'SiteController@Cadastro');
SiteController code:
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class SiteController extends Controller
{
public function index(){
return view('/site.Home.index') ;
}
public function Contrato(){
return view('/site.Contrato.index') ;
}
public function Dicas(){
return view('/site.Dicas.index') ;
}
public function Regulamento(){
return view('/site.Regulamento.index') ;
}
public function Termos(){
return view('/site.Termos.index') ;
}
public function Tutorial(){
return view('/site.Tutorial.index') ;
}
public function Cadastro(){
return view('/site.Cadastro.index') ;
}
}
Print the error that paginanot speaks
Butthearticleexists:
The strange thing is that if I change the location of the:
public function index(){
return view('/site.Home.index') ;
}
By:
public function index(){
return view('/site.Termos.index') ;
}
He finds the page
and if I do the same procedure on Route::get
and change the command Route::get('/', 'SiteController@index');
to Route::get('/', 'SiteController@Termos');
it usually finds the stranger just want to run /