JBeluche's avatar

Laravel load pages very slow

Hi, I am currently learning Laravel and following the "Laravel 5.4 from scratch" tutorial series. Before, I started the tutorial I setup homestead to work with Laravel. My problem now is that the pages load very slow. I have searched on Google and could not find any proper way to fix the problem. I saved every step I made in github: https://github.com/JBeluche/demandarijn Does anyone have any tips?

0 likes
11 replies
RamjithAp's avatar

$ php artisan optimize

$ php artisan route:cache

$ php artisan config:cache

JBeluche's avatar

Great now all my views are not found? Everything was working earlier. Does anyone know what happened?

RamjithAp's avatar

Use cache:clear if you are not sure what happened.

JBeluche's avatar

It did not help with the problem. The error still says that the controller cannot find the views.

JBeluche's avatar

Well took a day to rollback everything. Everything works again, but the slow loading page problem remains :/

azmin87's avatar

@RAMJITHAP - i applied this command ...now i cannot login at all , can help me on this issue ??

soheilyou's avatar

I faced 1.40s while working with a pure laravel in development area! the problem was using: php artisan serve when I used apache webserver instead for the same code I got it down to 153ms

hamaad's avatar

I faced something similar, IDK why, but after I disabled ad blocker on my local host server it worked... The ad blocker I used for chrome was Ublocker.

Please or to participate in this conversation.