I am building my first Laravel 4 application (PHP).
It seems to me that I need to often call such things in most of my models and controllers ...
$this->user = Auth::user();
So my question is that you call this several times in the application, several times get into the database, or is it enough to cache it somewhere for the rest of the request / page assembly?
Or do I need to do it differently? I looked at the Auth class, but did not manage to check each file (16 files for Auth)
source share