Beispiel #1
0
 public function testAll()
 {
     $expected = array('$all' => array('a', 'b', 'c'));
     $property = new Property($this->getMockQuery());
     $property->all(array('a', 'b', 'c'));
     $this->assertEquals($expected, $property->getConstraints());
 }
 /**
  * Show the form for editing the specified resource.
  * GET /houses/{id}/edit
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $paymenttypes = Paymenttype::find($id);
     $properties = Property::all();
     if (is_null($paymenttypes)) {
         return Redirect::route('paymenttype.index');
     }
     return View::make('backend.code.paymenttype.edit', compact('paymenttypes', 'properties'));
 }
Beispiel #3
0
 public function addTenant()
 {
     $properties = Property::all();
     return View::make('backend.code.property.tenantadd', compact('properties'));
 }
 public function all()
 {
     return Property::all();
 }
 /**
  * Display a listing of properties
  *
  * @return Response
  */
 public function getIndex()
 {
     $properties = Property::all();
     return View::make('properties.index', compact('properties'));
 }
Beispiel #6
0
 /**
  * Show the form for creating a new resource.
  * GET /houses/create
  *
  * @return Response
  */
 public function create()
 {
     $properties = Property::all();
     $frequencies = Frequency::all();
     return View::make('backend.code.houses.create', compact('houses', 'frequencies'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $properties = $this->property->all();
     return View::make('admin.properties.index', compact('properties'));
 }