public function listing() { $movies = Movie::get()->toArray(); $customers = Customer::get()->toArray(); return view('movies.listing')->with('movies', $movies)->with('customers', $customers); }
public function indexbis() { // get all the customers $customers = Customer::get(); return $customers; }
/** * Temp method to get a JSO output of movies with any reviews */ public function listJSON() { return Customer::get(); }