“Laravel Blade Routeis” Code-Antworten

Laravel Routenname Blade

How to use routes in web.php :
  Route::get('/', function () { return view('home'); })->name('home');


How to use routes in your page.blade.php :
  <a href="{{ url("/") }}">home</a>
  // or
  <a href="{{ route('home') }}">home</a>

// Like the post if you found it usefull and help other devs to find the good answer
Worrisome Willet

Laravel Blade Routeis

// This has been the best way for me to test routes with parameters

@if(url()->current() == route('named-route', 'parameter')
	// do stuff
@endif
Bloody Booby

Ähnliche Antworten wie “Laravel Blade Routeis”

Fragen ähnlich wie “Laravel Blade Routeis”

Weitere verwandte Antworten zu “Laravel Blade Routeis” auf PHP

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen