How can I reverse the product list in Laravel? Below is the code:
public function index() {
$products = Product::with('owner', 'memberInfo')->paginate($this->perPage);
return View::make('layouts.sales', array('products' => $products, 'status' => 'all'));
}
You can use Eloquent's reverse() function for collections.