Answers for "laravel get current url for domain"

PHP
0

laravel get current domain

request()->getHost();
Posted by: Guest on April-22-2020
1

laravel get a url using name

$url = route('routeName');

//if there is a param:
$url = route('routeName', ['id' => 1]);

https://laravel.com/docs/5.1/helpers#method-route
Posted by: Guest on April-20-2021

Code answers related to "laravel get current url for domain"

Browse Popular Code Answers by Language