示例#1
0
 /**
  * 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);
 }
示例#2
0
 /**
  * @test
  * @large
  */
 public function testGetAll()
 {
     $assert = Booking::all();
     $this->assertInstanceOf('Illuminate\\Database\\Eloquent\\Collection', $assert);
     $this->assertEquals(5, $assert->count());
 }