In addition to @chanafdo's answer, you can use a route name
when working with a caramel blade
<a href="{{route('login')}}">login here</a> with the parameter in the route name
when go to a url like URI: profile / {id} <a href="{{route('profile', ['id' => 1])}}">login here</a>
without blade
<a href="<?php echo route('login')?>">login here</a>
with a parameter in the route name
when go to a url like URI: profile / {id} <a href="<?php echo route('profile', ['id' => 1])?>">login here</a>
With laravel 5.2 you can use @php @endphp to create <?php ?> In laravel. Using the blade is your personal opinion, but I suggest using it. Get to know him. It has many great features like template inheritance , components and slots , subviews , etc.
sumit sharma
source share