Laravel 5 about shared host issues

I am trying to deploy my site with laravel to a web host, not vps. I have 2 problems:

  • When I overwrite an image in a shared folder, the image will not be resized. But if I checked the file manager on cpanel, it really changed, and when I copy the address of the image and paste it to other tabs, it does not change until I update it, the image changed the same way on the Internet. I use Laravel Image Intervention to upload an image, I think it has no problems with the library. For this problem, I am just writing Image::make($imgDriver->getRealPath())->save($pathDriver);to upload images. I tried using File::deletebefore overwriting the image, but this does not solve the problem.

  • The second error, sometimes I got stuck in the redirect cycle, and I don’t know why, all I did was clear the cache to fix this. I really need to clear the cache every time it shows a redirect loop. Any other way to solve it?
    I use Route::controllerfor routing. This is problem?

I really appreciate any help. thank you

+4
source share
1 answer
  • , , , -. Google Chrome, , , . , , HTML, . <img src="my_image.jpg?ts=12345">. , , , .

  • , , , - , . , /, , . dd("i'm here"), , .

+2

Source: https://habr.com/ru/post/1629226/


All Articles