public function getquote() { $carbon = new Carbon(); $today = $carbon->now()->format("Y-m-d"); $quote = Quote::where("quotedfor", $today)->first(); if (!$quote) { $quote = Quote::all()->random(); } return \Response::json(array_except($quote->toArray(), ["id", "addedby", "quotedfor"]), 200); }