Created
April 26, 2015 17:18
-
-
Save iamdtang/4a1bd27eb4a33bfce7dc to your computer and use it in GitHub Desktop.
search dvds by genre name
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
$dvds = Dvd::with('genre', 'rating', 'label') | |
->whereHas('genre', function($query) use ($genre_name) { | |
$query->where('genre_name', '=', $genre_name); | |
}) | |
->get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment