// Get the base URL. echo url(''); // Get the app URL from configuration which we set in .env file. echo config('app.url');