This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// it ain't pretty but it works | |
// grab all the beer_user pivot records from a table and the corresponding commentable records | |
$comments = \DB::table('users') | |
->select('beer_user.id', 'comments.comment', 'comments.commentable_id', 'comments.created_at') | |
->join('beer_user', 'users.id', '=', 'beer_user.id') | |
->join('comments', 'beer_user.id', '=', 'comments.commentable_id') | |
->where('beer_user.user_id', $id) | |
->where('comments.commentable_type', 'App\Beer') | |
->get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$gemeentes = [ | |
'Aa en Hunze', | |
'Aalburg', | |
'Aalsmeer', | |
'Aalten', | |
'Achtkarspelen', | |
'Alblasserdam', | |
'Albrandswaard', |
NewerOlder