Answers for "redirect base url laravel"

PHP
2

laravel redirect external url

return redirect()->away('https://www.google.com');
Posted by: Guest on January-27-2021
1

laravel base url

// Get the base URL.
echo url('');

// Get the app URL from configuration which we set in .env file.
echo config('app.url');
Posted by: Guest on September-16-2021

Browse Popular Code Answers by Language