John Davidson

php - Is there a way to make my laravel project to use https from form just as the route

0 comments
Message:


I am new to Laravel and I have been given a task to maintain an old project that is in Laravel. So I have hosted it in ec2 and placed a load balancer to it and then placed SSL on it.


Now my routes work well for example I have https://example.com. But when I go to the login form I see that the links within the webpage are:


<a class="dropdown-toggle" href="http://example.com/category/design">

Now I saw the Laravel version is 6.0. I have checked online on how to redirect http to https. The route is okay but the links within the webpage are not https as the route shows.


I am asking for some help in how to also make my links within the webpage also be https


Thank you in advance.



My Answer:
_http://example.com/login_

_Instead of_

_https://example.com/login_

_Is there a way to make my Laravel project to use https from form just as the route?_

Rate this post

5 of 5 based on 7114 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us