/** * Get all of the tasks for a given user. * * @param User $user * @return Collection */ public function allCostStatuses() { return Cost::orderBy('id', 'asc')->get(); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $items = Cost::orderBy('name', 'ASC')->paginate(10); return View::make('cost.view_cost', compact('items')); }