Search the Community
Showing results for tags 'laravel 5.1'.
Found 1 result
Retrieve Data From Pivot Table
osherdo posted a topic in PHP Coding HelpI have this pivot table: http://3.1m.yt/0_7a5sa.png I need to return multiple names of users (from users table) that have at least one expectation_id value as the current user have. How do I achieve that? Do I need to iterate with foreach loop and use Auth::user() to do this? Thanks.