Answers for "laravel a href url"

C#
0

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>
Posted by: Guest on August-21-2021
1

laravel use url

use Illuminate\Support\Facades\URL;

echo URL::current();
Posted by: Guest on June-30-2020

C# Answers by Framework

Browse Popular Code Answers by Language