A variation of http://www.laravel-tricks.com/tricks/column-selection-in-eager-loading
Credits: http://stackoverflow.com/questions/16994253/laravel-eager-loading-load-only-specific-columns
Warning: this trick does not work on many-to-many relations, see:
https://github.com/laravel/framework/issues/2966
Monitor user activity on laravel application with Laravel user activity package. It has build-in beautiful responsive & user-friendly UI with various useful features.
Temporarily log in as another user, but switch back to the original user at any time. Inspired by the User Switching plugin for WordPress. I use this for testing data being shown based on user role.
if you want to use ORM eloquent to get a query with the third table and select only particular attributes then here is the trick.
Here users can have multiple positions in a company and each user has their own user profile.
*note that user_id must be here to fetch data with a specific column. without foreign key eloquent cannot map relational table