Support the ongoing development of Laravel.io →
Laravel Cache
Last updated 3 months ago.
0

i dont know about caching ,but i know that if the view is static that means it dose not change and it's public to all you shoude call it from Route; but if the view is dynamic and using different data ,meybe it also checking or dose some processes before showing so the calling use controller is more usefull .

about cache i think if the method view() cache the view it will cache it automatically by call it from Route or Controller ,coz it is the same method.

about caching ,you can learn more about Route

0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Mohsen Movahed Mohsen Movahed bidak Joined 30 Sep 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.