/** * Display a listing of the resource. * GET|/booking|index|booking.index * * @return Response */ public function index() { $bookings = Booking::all(); return \View::make('booking.index')->with('bookings', $bookings); }
/** * @test * @large */ public function testGetAll() { $assert = Booking::all(); $this->assertInstanceOf('Illuminate\\Database\\Eloquent\\Collection', $assert); $this->assertEquals(5, $assert->count()); }