Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel route name 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
Comment

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
Comment

PREVIOUS NEXT
Code Example
Php :: how to on debugger in wordpress 
Php :: check duplicate data in array php 
Php :: laravel wheredate 
Php :: file upload codeigniter 
Php :: APP_DEBUG is set to true while APP_ENV is not local 
Php :: php close unclosed HTML Tags 
Php :: php date diff in days 
Php :: woocommerce php product gallery change to carousel 
Php :: php if elseif g 
Php :: laravel where not equal 
Php :: php - How do I calculate the percentage of a number? 
Php :: if exists in string php 
Php :: laravel faker example 
Php :: count_chars (PHP 4, PHP 5, PHP 7, PHP 8) count_chars — Return information about characters used in a string 
Php :: laravel form 
Php :: model find by certain column laravel 
Php :: like %% inside the array php 
Php :: php write to standard out 
Php :: laravel APP_ENV config 
Php :: laravel mail send to multiple recipients 
Php :: php currency formator 
Php :: wordpress get plugin list 
Php :: while true php 
Php :: php artisanmigrate 
Php :: how to make a comment in php 
Php :: laravel cors enable 
Php :: laravel except method 
Php :: php remove element from array by value 
Php :: joomla get group id 
Php :: update codeigniter 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =