Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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>
Comment

PREVIOUS NEXT
Code Example
Php :: Get all Country List using php 
Php :: php array subset by slicing 
Php :: where in laravel 
Php :: symnfony bearer token 
Php :: eloquent get trashed record 
Php :: Unable to locate package php7.4 for kali 2021 
Php :: how to redirect to another page after login in laravel 
Php :: php throw exception get message 
Php :: laravel make model along with its controller and migration file 
Php :: php api method post 
Php :: laravel update all relations 
Php :: php ip log 
Php :: loop in loop wordpress 
Php :: laravel create model 
Php :: check website ssl certificate using php 
Php :: calling fucnction in an other function php 
Php :: laravel APP_ENV config 
Php :: get value from url in laravel blade 
Php :: test post request laravel 
Php :: pdf to image php 
Php :: php string search in array 
Php :: How To Check If A String Ends With Another String In PHP 
Php :: How do I get current taxonomy "term id" on wordpress? 
Php :: install php pdo mysql PHP5.6 alpine-apache 
Php :: delete and return response and nocontent laravel 
Php :: Genrate Random number in php 
Php :: php exec get pid 
Php :: how to set up the laravel ssh keygen 
Php :: wp_debug 
Php :: wordpress enqueue js 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =