Using the Eloquent ORM I have my models set up like so: Post belongsToMany Category
Post
belongsToMany
Category
Post.php
public function c
I can't access my Vagrant box right now, but I believe this should work:
$posts = Post::whereHas('categories', function($q) { $q->where('slug', '=', Input::get('category_slug')); })->get();