app/Http/Controllers/PurchaseRequestController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $purchaseRequest = PurchaseRequest::where('branchID',Auth::user()->branchID)->get();
		return View::make('purchaseRequest.index')->with('purchaseRequest', $purchaseRequest);
    }
public function index ( ) { $ purchaseRequest = PurchaseRequest :: where ( 'branchID' , Auth :: user ( ) -> branchID ) -> get ( ) ; return View :: make ( 'purchaseRequest.index' ) -> with ( 'purchaseRequest' , $ purchaseRequest ) ; }
Display a listing of the resource.
Display a listing of the resource .
// Retrieve all the purchase order // Load the view and pass the retrieved Purchase Order to the view for further processing