Support the ongoing development of Laravel.io →
modbase

modbase

Joined 31 Jan 2014

Statistics

Threads 3
Replies 2
Solutions 0
Articles 0

Cache Auth::user()

I'd like to cache Auth::user() calls, because I have the username of the logged in user in my top na...

Likes Replies

"Prefix" all queries with a where clause

I'm buidling a SaaS and have added a client_id column to each of my tables. Now in my repositories,...

Likes Replies

Mail::queue() sync fallback not working

While locally developing, I don't use queues, so I've set the queue driver to sync. I'm creating a b...

Likes Replies
8 years ago

"Prefix" all queries with a where clause

Thanks. Didn't think about scopes. That makes it cleaner.

0 Likes
8 years ago

Mail::queue() sync fallback not working

Thank you both. Great tip about passing information to a queue closure. You're absolutely right, but...

0 Likes

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.