/** * Display a listing of the resource. * * @return Response */ public function index() { if ($this->salesman) { // get all the Order $orders = Order::all(); // load the view and pass the Order return View::make('order.index')->with('orders', $orders); } else { return Redirect::route("user.signup-success"); } }