laravel use url
use IlluminateSupportFacadesURL;
echo URL::current();
laravel use url
use IlluminateSupportFacadesURL;
echo URL::current();
how to add page link in laravel
At first give a name to your route and then use it in then use it in anchar tag
Route::get('/', function () {
return view('welcome');
})->name('welcome');
Route::get('/about', 'PagesController@about')->name('about');
Now you can use it in any page to refer them. like in contact page
<html>
..
....
<a href="{{route('welcome')}}">Home</a>
<a href="{{route('about')}}">About</a>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us