Exemplo n.º 1
0
 /**
  * Get all of the tasks for a given user.
  *
  * @param  User  $user
  * @return Collection
  */
 public function allCostStatuses()
 {
     return Cost::orderBy('id', 'asc')->get();
 }
Exemplo n.º 2
0
 /**
  * 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'));
 }