Ejemplo n.º 1
0
 public function offers($timestamp = 0)
 {
     $offers = Offer::whereDate('created_at', '>', Carbon::createFromTimestamp($timestamp))->get();
     return response()->json($offers->toArray(), 200, [], JSON_UNESCAPED_UNICODE);
 }