laravel base url

47

laravel previous url -

{{ URL::previous() }}

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'); 

laravel use url -

use Illuminate\Support\Facades\URL;

echo URL::current();

Comments

Submit
0 Comments