Support the ongoing development of Laravel.io →
Installation Views Blade
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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.1IntegratingFrontEndComponentsWebA.... It went through. yaya, so Should I worry about long URL letters? Is nothing wrong with it?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.