/**
  * Implement getAll()
  */
 public function getAll($limit = 10)
 {
     // using the Eloquent model
     if ($limit == 0) {
         return Pallet::get();
     } else {
         if ($limit == 1) {
             return Pallet::first();
         }
     }
     return Pallet::limit($limit)->get();
 }