Skip to content
Advertisement

Tag: base-url

Changing navigation and link URLs?

I am new to laravel and this will be inappropriate question. Although I searched I couldn’t find the answer. My project run smoothly with php artisan serve command. I just wanted to remove the artisan command. So I added my project into htdoc folder of XAMPP. Then I changed according to this answer https://stackoverflow.com/a/28799205/3558507 When I run my project by

Laravel: Get base URL

Simple question, but the answer seems quite hard to come by. In Codeigniter, I could load the URL helper and then simply do to get my site’s URL. Is there an equivalent in Laravel? Answer You can use the URL facade which lets you do calls to the URL generator So you can do: You can also use the application

Advertisement