/** * Display a listing of ratings * * @return Response */ public function index() { $ratings = Rating::all(); return View::make('ratings.index', compact('ratings')); }
public function testGetTimelineSuccessNoRating() { $this->setUpCountry(); $this->setUpWineNote(); $this->setUpProfile(); $_params = $this->_params; $_params['user_id'] = "user_id"; $response = $this->_getAuth($_params); $rating = Rating::all(); $this->assertEquals(array("code" => ApiResponse::OK, "data" => $rating->toArray()), json_decode($response->getContent(), true)); }