It sounds like you probably want something like:
Route::get('register', function(){
View::make('registration');
});
then in your <li> tag, you'd use the href of "/register"
note that your routes file determines what URLs will work in your application Route::get('register'... is telling Laravel to listen for and route traffic to the url http://yourapp.com/register the view::make('registration') part is telling Laravel to use the view file registration.blade.php
Perfect that what I need to know!... thank you, one more question, I have noticed when my <li> use the href of "/register" it does not found object so obviously no file in there which is localhost/register. so I decided to remove the slash "register". What I got URL is http://localhost/laravel/ch.1IntegratingFrontEndComponentsWebApp/public/register. It went through. yaya, so Should I worry about long URL letters? Is nothing wrong with it?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community