/**
  * Temp method to get a JSO output of movies with any reviews
  */
 public function listJSON()
 {
     return Movie::with('reviews')->get();
 }
Esempio n. 2
0
 /**
  * Return a list of all of the movies.
  *
  * @return Response
  */
 public function index()
 {
     return Movie::with('user')->get();
 }