Support the ongoing development of Laravel.io →
posted 3 years ago
Laravel Cache
Last updated 2 years 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!

Eventy

Your banner here too?

Mohsen Movahed bidak Joined 30 Sep 2021

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.