1. Links with url()
web.php
Route::get('/article'), function(){
return view('article');
});
article.blade.php
<a href="{{url('article')}}">Article</a>
2. Passing Data from Controller/web.php: https://laravel.com/docs/10.x/blade#displaying-data
Route::get('/', function () {
return view('welcome', ['name' => 'Samantha']); // pass string
return view('welcome', ['names' => ['Samantha'],'Edward','Audrey']); // pass array
});
welcome.blade.php
Welcome, {{ $name }}. // Welcome, Samantha