I am trying to get a view page without passing extra parameters in url
routes.php
Route::controller('site','SiteController');
menu.php
<li><a href="">Home</a></li>
<li><a href="">About</a></li>
<li><a href="">Contact</a></li>
SiteController.php
public function index(){
return view('welcome');
}
public function getAbout(){
return view('about');
}
when i am trying to access my about page the URL is coming like http://localhost/fitness/public/site/about
but here how can modify my code to get URL like http://localhost/fitness/public/about
.It is happening for all other pages. I do not want to write get and post method in routes page.My routes page should remains with same code.I do not want site to come in URL
.
will this possible ?? Can anybody help me out ?
Thank you.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire