first(); $sRandBoxPath = $oBook->path.$oBook->id."/"; $aBookRandbox = ModelBook::where("path", $sRandBoxPath)->where("is_del", 0)->get()->toArray(); $sRandBoxPathLen = count($aBookRandbox) - 1; $iRandKey = rand(0, $sRandBoxPathLen); $aGetOne = $aBookRandbox[$iRandKey]; $sMsg = $aGetOne["rag"]; TelegramSlave::notify()->send($sMsg); // tomd($sMsg); } }