/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $giftCards = GiftCard::all(); if ($giftCards === null) { $giftCards = null; } //return $giftCards; return \View::make('admin.gift_card.manage_giftCard')->withCards($giftCards); }