_ide_helper.php 886 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035
  1. <?php
  2. /* @noinspection ALL */
  3. // @formatter:off
  4. // phpcs:ignoreFile
  5. /**
  6. * A helper file for Laravel, to provide autocomplete information to your IDE
  7. * Generated for Laravel 12.20.0.
  8. *
  9. * This file should not be included in your code, only analyzed by your IDE!
  10. *
  11. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  12. * @see https://github.com/barryvdh/laravel-ide-helper
  13. */
  14. namespace Illuminate\Support\Facades {
  15. /**
  16. * @see \Illuminate\Foundation\Application
  17. */
  18. class App {
  19. /**
  20. * Begin configuring a new Laravel application instance.
  21. *
  22. * @param string|null $basePath
  23. * @return \Illuminate\Foundation\Configuration\ApplicationBuilder
  24. * @static
  25. */
  26. public static function configure($basePath = null)
  27. {
  28. return \Illuminate\Foundation\Application::configure($basePath);
  29. }
  30. /**
  31. * Infer the application's base directory from the environment.
  32. *
  33. * @return string
  34. * @static
  35. */
  36. public static function inferBasePath()
  37. {
  38. return \Illuminate\Foundation\Application::inferBasePath();
  39. }
  40. /**
  41. * Get the version number of the application.
  42. *
  43. * @return string
  44. * @static
  45. */
  46. public static function version()
  47. {
  48. /** @var \Illuminate\Foundation\Application $instance */
  49. return $instance->version();
  50. }
  51. /**
  52. * Run the given array of bootstrap classes.
  53. *
  54. * @param string[] $bootstrappers
  55. * @return void
  56. * @static
  57. */
  58. public static function bootstrapWith($bootstrappers)
  59. {
  60. /** @var \Illuminate\Foundation\Application $instance */
  61. $instance->bootstrapWith($bootstrappers);
  62. }
  63. /**
  64. * Register a callback to run after loading the environment.
  65. *
  66. * @param \Closure $callback
  67. * @return void
  68. * @static
  69. */
  70. public static function afterLoadingEnvironment($callback)
  71. {
  72. /** @var \Illuminate\Foundation\Application $instance */
  73. $instance->afterLoadingEnvironment($callback);
  74. }
  75. /**
  76. * Register a callback to run before a bootstrapper.
  77. *
  78. * @param string $bootstrapper
  79. * @param \Closure $callback
  80. * @return void
  81. * @static
  82. */
  83. public static function beforeBootstrapping($bootstrapper, $callback)
  84. {
  85. /** @var \Illuminate\Foundation\Application $instance */
  86. $instance->beforeBootstrapping($bootstrapper, $callback);
  87. }
  88. /**
  89. * Register a callback to run after a bootstrapper.
  90. *
  91. * @param string $bootstrapper
  92. * @param \Closure $callback
  93. * @return void
  94. * @static
  95. */
  96. public static function afterBootstrapping($bootstrapper, $callback)
  97. {
  98. /** @var \Illuminate\Foundation\Application $instance */
  99. $instance->afterBootstrapping($bootstrapper, $callback);
  100. }
  101. /**
  102. * Determine if the application has been bootstrapped before.
  103. *
  104. * @return bool
  105. * @static
  106. */
  107. public static function hasBeenBootstrapped()
  108. {
  109. /** @var \Illuminate\Foundation\Application $instance */
  110. return $instance->hasBeenBootstrapped();
  111. }
  112. /**
  113. * Set the base path for the application.
  114. *
  115. * @param string $basePath
  116. * @return \Illuminate\Foundation\Application
  117. * @static
  118. */
  119. public static function setBasePath($basePath)
  120. {
  121. /** @var \Illuminate\Foundation\Application $instance */
  122. return $instance->setBasePath($basePath);
  123. }
  124. /**
  125. * Get the path to the application "app" directory.
  126. *
  127. * @param string $path
  128. * @return string
  129. * @static
  130. */
  131. public static function path($path = '')
  132. {
  133. /** @var \Illuminate\Foundation\Application $instance */
  134. return $instance->path($path);
  135. }
  136. /**
  137. * Set the application directory.
  138. *
  139. * @param string $path
  140. * @return \Illuminate\Foundation\Application
  141. * @static
  142. */
  143. public static function useAppPath($path)
  144. {
  145. /** @var \Illuminate\Foundation\Application $instance */
  146. return $instance->useAppPath($path);
  147. }
  148. /**
  149. * Get the base path of the Laravel installation.
  150. *
  151. * @param string $path
  152. * @return string
  153. * @static
  154. */
  155. public static function basePath($path = '')
  156. {
  157. /** @var \Illuminate\Foundation\Application $instance */
  158. return $instance->basePath($path);
  159. }
  160. /**
  161. * Get the path to the bootstrap directory.
  162. *
  163. * @param string $path
  164. * @return string
  165. * @static
  166. */
  167. public static function bootstrapPath($path = '')
  168. {
  169. /** @var \Illuminate\Foundation\Application $instance */
  170. return $instance->bootstrapPath($path);
  171. }
  172. /**
  173. * Get the path to the service provider list in the bootstrap directory.
  174. *
  175. * @return string
  176. * @static
  177. */
  178. public static function getBootstrapProvidersPath()
  179. {
  180. /** @var \Illuminate\Foundation\Application $instance */
  181. return $instance->getBootstrapProvidersPath();
  182. }
  183. /**
  184. * Set the bootstrap file directory.
  185. *
  186. * @param string $path
  187. * @return \Illuminate\Foundation\Application
  188. * @static
  189. */
  190. public static function useBootstrapPath($path)
  191. {
  192. /** @var \Illuminate\Foundation\Application $instance */
  193. return $instance->useBootstrapPath($path);
  194. }
  195. /**
  196. * Get the path to the application configuration files.
  197. *
  198. * @param string $path
  199. * @return string
  200. * @static
  201. */
  202. public static function configPath($path = '')
  203. {
  204. /** @var \Illuminate\Foundation\Application $instance */
  205. return $instance->configPath($path);
  206. }
  207. /**
  208. * Set the configuration directory.
  209. *
  210. * @param string $path
  211. * @return \Illuminate\Foundation\Application
  212. * @static
  213. */
  214. public static function useConfigPath($path)
  215. {
  216. /** @var \Illuminate\Foundation\Application $instance */
  217. return $instance->useConfigPath($path);
  218. }
  219. /**
  220. * Get the path to the database directory.
  221. *
  222. * @param string $path
  223. * @return string
  224. * @static
  225. */
  226. public static function databasePath($path = '')
  227. {
  228. /** @var \Illuminate\Foundation\Application $instance */
  229. return $instance->databasePath($path);
  230. }
  231. /**
  232. * Set the database directory.
  233. *
  234. * @param string $path
  235. * @return \Illuminate\Foundation\Application
  236. * @static
  237. */
  238. public static function useDatabasePath($path)
  239. {
  240. /** @var \Illuminate\Foundation\Application $instance */
  241. return $instance->useDatabasePath($path);
  242. }
  243. /**
  244. * Get the path to the language files.
  245. *
  246. * @param string $path
  247. * @return string
  248. * @static
  249. */
  250. public static function langPath($path = '')
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->langPath($path);
  254. }
  255. /**
  256. * Set the language file directory.
  257. *
  258. * @param string $path
  259. * @return \Illuminate\Foundation\Application
  260. * @static
  261. */
  262. public static function useLangPath($path)
  263. {
  264. /** @var \Illuminate\Foundation\Application $instance */
  265. return $instance->useLangPath($path);
  266. }
  267. /**
  268. * Get the path to the public / web directory.
  269. *
  270. * @param string $path
  271. * @return string
  272. * @static
  273. */
  274. public static function publicPath($path = '')
  275. {
  276. /** @var \Illuminate\Foundation\Application $instance */
  277. return $instance->publicPath($path);
  278. }
  279. /**
  280. * Set the public / web directory.
  281. *
  282. * @param string $path
  283. * @return \Illuminate\Foundation\Application
  284. * @static
  285. */
  286. public static function usePublicPath($path)
  287. {
  288. /** @var \Illuminate\Foundation\Application $instance */
  289. return $instance->usePublicPath($path);
  290. }
  291. /**
  292. * Get the path to the storage directory.
  293. *
  294. * @param string $path
  295. * @return string
  296. * @static
  297. */
  298. public static function storagePath($path = '')
  299. {
  300. /** @var \Illuminate\Foundation\Application $instance */
  301. return $instance->storagePath($path);
  302. }
  303. /**
  304. * Set the storage directory.
  305. *
  306. * @param string $path
  307. * @return \Illuminate\Foundation\Application
  308. * @static
  309. */
  310. public static function useStoragePath($path)
  311. {
  312. /** @var \Illuminate\Foundation\Application $instance */
  313. return $instance->useStoragePath($path);
  314. }
  315. /**
  316. * Get the path to the resources directory.
  317. *
  318. * @param string $path
  319. * @return string
  320. * @static
  321. */
  322. public static function resourcePath($path = '')
  323. {
  324. /** @var \Illuminate\Foundation\Application $instance */
  325. return $instance->resourcePath($path);
  326. }
  327. /**
  328. * Get the path to the views directory.
  329. *
  330. * This method returns the first configured path in the array of view paths.
  331. *
  332. * @param string $path
  333. * @return string
  334. * @static
  335. */
  336. public static function viewPath($path = '')
  337. {
  338. /** @var \Illuminate\Foundation\Application $instance */
  339. return $instance->viewPath($path);
  340. }
  341. /**
  342. * Join the given paths together.
  343. *
  344. * @param string $basePath
  345. * @param string $path
  346. * @return string
  347. * @static
  348. */
  349. public static function joinPaths($basePath, $path = '')
  350. {
  351. /** @var \Illuminate\Foundation\Application $instance */
  352. return $instance->joinPaths($basePath, $path);
  353. }
  354. /**
  355. * Get the path to the environment file directory.
  356. *
  357. * @return string
  358. * @static
  359. */
  360. public static function environmentPath()
  361. {
  362. /** @var \Illuminate\Foundation\Application $instance */
  363. return $instance->environmentPath();
  364. }
  365. /**
  366. * Set the directory for the environment file.
  367. *
  368. * @param string $path
  369. * @return \Illuminate\Foundation\Application
  370. * @static
  371. */
  372. public static function useEnvironmentPath($path)
  373. {
  374. /** @var \Illuminate\Foundation\Application $instance */
  375. return $instance->useEnvironmentPath($path);
  376. }
  377. /**
  378. * Set the environment file to be loaded during bootstrapping.
  379. *
  380. * @param string $file
  381. * @return \Illuminate\Foundation\Application
  382. * @static
  383. */
  384. public static function loadEnvironmentFrom($file)
  385. {
  386. /** @var \Illuminate\Foundation\Application $instance */
  387. return $instance->loadEnvironmentFrom($file);
  388. }
  389. /**
  390. * Get the environment file the application is using.
  391. *
  392. * @return string
  393. * @static
  394. */
  395. public static function environmentFile()
  396. {
  397. /** @var \Illuminate\Foundation\Application $instance */
  398. return $instance->environmentFile();
  399. }
  400. /**
  401. * Get the fully qualified path to the environment file.
  402. *
  403. * @return string
  404. * @static
  405. */
  406. public static function environmentFilePath()
  407. {
  408. /** @var \Illuminate\Foundation\Application $instance */
  409. return $instance->environmentFilePath();
  410. }
  411. /**
  412. * Get or check the current application environment.
  413. *
  414. * @param string|array $environments
  415. * @return string|bool
  416. * @static
  417. */
  418. public static function environment(...$environments)
  419. {
  420. /** @var \Illuminate\Foundation\Application $instance */
  421. return $instance->environment(...$environments);
  422. }
  423. /**
  424. * Determine if the application is in the local environment.
  425. *
  426. * @return bool
  427. * @static
  428. */
  429. public static function isLocal()
  430. {
  431. /** @var \Illuminate\Foundation\Application $instance */
  432. return $instance->isLocal();
  433. }
  434. /**
  435. * Determine if the application is in the production environment.
  436. *
  437. * @return bool
  438. * @static
  439. */
  440. public static function isProduction()
  441. {
  442. /** @var \Illuminate\Foundation\Application $instance */
  443. return $instance->isProduction();
  444. }
  445. /**
  446. * Detect the application's current environment.
  447. *
  448. * @param \Closure $callback
  449. * @return string
  450. * @static
  451. */
  452. public static function detectEnvironment($callback)
  453. {
  454. /** @var \Illuminate\Foundation\Application $instance */
  455. return $instance->detectEnvironment($callback);
  456. }
  457. /**
  458. * Determine if the application is running in the console.
  459. *
  460. * @return bool
  461. * @static
  462. */
  463. public static function runningInConsole()
  464. {
  465. /** @var \Illuminate\Foundation\Application $instance */
  466. return $instance->runningInConsole();
  467. }
  468. /**
  469. * Determine if the application is running any of the given console commands.
  470. *
  471. * @param string|array $commands
  472. * @return bool
  473. * @static
  474. */
  475. public static function runningConsoleCommand(...$commands)
  476. {
  477. /** @var \Illuminate\Foundation\Application $instance */
  478. return $instance->runningConsoleCommand(...$commands);
  479. }
  480. /**
  481. * Determine if the application is running unit tests.
  482. *
  483. * @return bool
  484. * @static
  485. */
  486. public static function runningUnitTests()
  487. {
  488. /** @var \Illuminate\Foundation\Application $instance */
  489. return $instance->runningUnitTests();
  490. }
  491. /**
  492. * Determine if the application is running with debug mode enabled.
  493. *
  494. * @return bool
  495. * @static
  496. */
  497. public static function hasDebugModeEnabled()
  498. {
  499. /** @var \Illuminate\Foundation\Application $instance */
  500. return $instance->hasDebugModeEnabled();
  501. }
  502. /**
  503. * Register a new registered listener.
  504. *
  505. * @param callable $callback
  506. * @return void
  507. * @static
  508. */
  509. public static function registered($callback)
  510. {
  511. /** @var \Illuminate\Foundation\Application $instance */
  512. $instance->registered($callback);
  513. }
  514. /**
  515. * Register all of the configured providers.
  516. *
  517. * @return void
  518. * @static
  519. */
  520. public static function registerConfiguredProviders()
  521. {
  522. /** @var \Illuminate\Foundation\Application $instance */
  523. $instance->registerConfiguredProviders();
  524. }
  525. /**
  526. * Register a service provider with the application.
  527. *
  528. * @param \Illuminate\Support\ServiceProvider|string $provider
  529. * @param bool $force
  530. * @return \Illuminate\Support\ServiceProvider
  531. * @static
  532. */
  533. public static function register($provider, $force = false)
  534. {
  535. /** @var \Illuminate\Foundation\Application $instance */
  536. return $instance->register($provider, $force);
  537. }
  538. /**
  539. * Get the registered service provider instance if it exists.
  540. *
  541. * @param \Illuminate\Support\ServiceProvider|string $provider
  542. * @return \Illuminate\Support\ServiceProvider|null
  543. * @static
  544. */
  545. public static function getProvider($provider)
  546. {
  547. /** @var \Illuminate\Foundation\Application $instance */
  548. return $instance->getProvider($provider);
  549. }
  550. /**
  551. * Get the registered service provider instances if any exist.
  552. *
  553. * @param \Illuminate\Support\ServiceProvider|string $provider
  554. * @return array
  555. * @static
  556. */
  557. public static function getProviders($provider)
  558. {
  559. /** @var \Illuminate\Foundation\Application $instance */
  560. return $instance->getProviders($provider);
  561. }
  562. /**
  563. * Resolve a service provider instance from the class name.
  564. *
  565. * @param string $provider
  566. * @return \Illuminate\Support\ServiceProvider
  567. * @static
  568. */
  569. public static function resolveProvider($provider)
  570. {
  571. /** @var \Illuminate\Foundation\Application $instance */
  572. return $instance->resolveProvider($provider);
  573. }
  574. /**
  575. * Load and boot all of the remaining deferred providers.
  576. *
  577. * @return void
  578. * @static
  579. */
  580. public static function loadDeferredProviders()
  581. {
  582. /** @var \Illuminate\Foundation\Application $instance */
  583. $instance->loadDeferredProviders();
  584. }
  585. /**
  586. * Load the provider for a deferred service.
  587. *
  588. * @param string $service
  589. * @return void
  590. * @static
  591. */
  592. public static function loadDeferredProvider($service)
  593. {
  594. /** @var \Illuminate\Foundation\Application $instance */
  595. $instance->loadDeferredProvider($service);
  596. }
  597. /**
  598. * Register a deferred provider and service.
  599. *
  600. * @param string $provider
  601. * @param string|null $service
  602. * @return void
  603. * @static
  604. */
  605. public static function registerDeferredProvider($provider, $service = null)
  606. {
  607. /** @var \Illuminate\Foundation\Application $instance */
  608. $instance->registerDeferredProvider($provider, $service);
  609. }
  610. /**
  611. * Resolve the given type from the container.
  612. *
  613. * @template TClass of object
  614. * @param string|class-string<TClass> $abstract
  615. * @param array $parameters
  616. * @return ($abstract is class-string<TClass> ? TClass : mixed)
  617. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  618. * @static
  619. */
  620. public static function make($abstract, $parameters = [])
  621. {
  622. /** @var \Illuminate\Foundation\Application $instance */
  623. return $instance->make($abstract, $parameters);
  624. }
  625. /**
  626. * Determine if the given abstract type has been bound.
  627. *
  628. * @param string $abstract
  629. * @return bool
  630. * @static
  631. */
  632. public static function bound($abstract)
  633. {
  634. /** @var \Illuminate\Foundation\Application $instance */
  635. return $instance->bound($abstract);
  636. }
  637. /**
  638. * Determine if the application has booted.
  639. *
  640. * @return bool
  641. * @static
  642. */
  643. public static function isBooted()
  644. {
  645. /** @var \Illuminate\Foundation\Application $instance */
  646. return $instance->isBooted();
  647. }
  648. /**
  649. * Boot the application's service providers.
  650. *
  651. * @return void
  652. * @static
  653. */
  654. public static function boot()
  655. {
  656. /** @var \Illuminate\Foundation\Application $instance */
  657. $instance->boot();
  658. }
  659. /**
  660. * Register a new boot listener.
  661. *
  662. * @param callable $callback
  663. * @return void
  664. * @static
  665. */
  666. public static function booting($callback)
  667. {
  668. /** @var \Illuminate\Foundation\Application $instance */
  669. $instance->booting($callback);
  670. }
  671. /**
  672. * Register a new "booted" listener.
  673. *
  674. * @param callable $callback
  675. * @return void
  676. * @static
  677. */
  678. public static function booted($callback)
  679. {
  680. /** @var \Illuminate\Foundation\Application $instance */
  681. $instance->booted($callback);
  682. }
  683. /**
  684. * {@inheritdoc}
  685. *
  686. * @return \Symfony\Component\HttpFoundation\Response
  687. * @static
  688. */
  689. public static function handle($request, $type = 1, $catch = true)
  690. {
  691. /** @var \Illuminate\Foundation\Application $instance */
  692. return $instance->handle($request, $type, $catch);
  693. }
  694. /**
  695. * Handle the incoming HTTP request and send the response to the browser.
  696. *
  697. * @param \Illuminate\Http\Request $request
  698. * @return void
  699. * @static
  700. */
  701. public static function handleRequest($request)
  702. {
  703. /** @var \Illuminate\Foundation\Application $instance */
  704. $instance->handleRequest($request);
  705. }
  706. /**
  707. * Handle the incoming Artisan command.
  708. *
  709. * @param \Symfony\Component\Console\Input\InputInterface $input
  710. * @return int
  711. * @static
  712. */
  713. public static function handleCommand($input)
  714. {
  715. /** @var \Illuminate\Foundation\Application $instance */
  716. return $instance->handleCommand($input);
  717. }
  718. /**
  719. * Determine if the framework's base configuration should be merged.
  720. *
  721. * @return bool
  722. * @static
  723. */
  724. public static function shouldMergeFrameworkConfiguration()
  725. {
  726. /** @var \Illuminate\Foundation\Application $instance */
  727. return $instance->shouldMergeFrameworkConfiguration();
  728. }
  729. /**
  730. * Indicate that the framework's base configuration should not be merged.
  731. *
  732. * @return \Illuminate\Foundation\Application
  733. * @static
  734. */
  735. public static function dontMergeFrameworkConfiguration()
  736. {
  737. /** @var \Illuminate\Foundation\Application $instance */
  738. return $instance->dontMergeFrameworkConfiguration();
  739. }
  740. /**
  741. * Determine if middleware has been disabled for the application.
  742. *
  743. * @return bool
  744. * @static
  745. */
  746. public static function shouldSkipMiddleware()
  747. {
  748. /** @var \Illuminate\Foundation\Application $instance */
  749. return $instance->shouldSkipMiddleware();
  750. }
  751. /**
  752. * Get the path to the cached services.php file.
  753. *
  754. * @return string
  755. * @static
  756. */
  757. public static function getCachedServicesPath()
  758. {
  759. /** @var \Illuminate\Foundation\Application $instance */
  760. return $instance->getCachedServicesPath();
  761. }
  762. /**
  763. * Get the path to the cached packages.php file.
  764. *
  765. * @return string
  766. * @static
  767. */
  768. public static function getCachedPackagesPath()
  769. {
  770. /** @var \Illuminate\Foundation\Application $instance */
  771. return $instance->getCachedPackagesPath();
  772. }
  773. /**
  774. * Determine if the application configuration is cached.
  775. *
  776. * @return bool
  777. * @static
  778. */
  779. public static function configurationIsCached()
  780. {
  781. /** @var \Illuminate\Foundation\Application $instance */
  782. return $instance->configurationIsCached();
  783. }
  784. /**
  785. * Get the path to the configuration cache file.
  786. *
  787. * @return string
  788. * @static
  789. */
  790. public static function getCachedConfigPath()
  791. {
  792. /** @var \Illuminate\Foundation\Application $instance */
  793. return $instance->getCachedConfigPath();
  794. }
  795. /**
  796. * Determine if the application routes are cached.
  797. *
  798. * @return bool
  799. * @static
  800. */
  801. public static function routesAreCached()
  802. {
  803. /** @var \Illuminate\Foundation\Application $instance */
  804. return $instance->routesAreCached();
  805. }
  806. /**
  807. * Get the path to the routes cache file.
  808. *
  809. * @return string
  810. * @static
  811. */
  812. public static function getCachedRoutesPath()
  813. {
  814. /** @var \Illuminate\Foundation\Application $instance */
  815. return $instance->getCachedRoutesPath();
  816. }
  817. /**
  818. * Determine if the application events are cached.
  819. *
  820. * @return bool
  821. * @static
  822. */
  823. public static function eventsAreCached()
  824. {
  825. /** @var \Illuminate\Foundation\Application $instance */
  826. return $instance->eventsAreCached();
  827. }
  828. /**
  829. * Get the path to the events cache file.
  830. *
  831. * @return string
  832. * @static
  833. */
  834. public static function getCachedEventsPath()
  835. {
  836. /** @var \Illuminate\Foundation\Application $instance */
  837. return $instance->getCachedEventsPath();
  838. }
  839. /**
  840. * Add new prefix to list of absolute path prefixes.
  841. *
  842. * @param string $prefix
  843. * @return \Illuminate\Foundation\Application
  844. * @static
  845. */
  846. public static function addAbsoluteCachePathPrefix($prefix)
  847. {
  848. /** @var \Illuminate\Foundation\Application $instance */
  849. return $instance->addAbsoluteCachePathPrefix($prefix);
  850. }
  851. /**
  852. * Get an instance of the maintenance mode manager implementation.
  853. *
  854. * @return \Illuminate\Contracts\Foundation\MaintenanceMode
  855. * @static
  856. */
  857. public static function maintenanceMode()
  858. {
  859. /** @var \Illuminate\Foundation\Application $instance */
  860. return $instance->maintenanceMode();
  861. }
  862. /**
  863. * Determine if the application is currently down for maintenance.
  864. *
  865. * @return bool
  866. * @static
  867. */
  868. public static function isDownForMaintenance()
  869. {
  870. /** @var \Illuminate\Foundation\Application $instance */
  871. return $instance->isDownForMaintenance();
  872. }
  873. /**
  874. * Throw an HttpException with the given data.
  875. *
  876. * @param int $code
  877. * @param string $message
  878. * @param array $headers
  879. * @return never
  880. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  881. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  882. * @static
  883. */
  884. public static function abort($code, $message = '', $headers = [])
  885. {
  886. /** @var \Illuminate\Foundation\Application $instance */
  887. return $instance->abort($code, $message, $headers);
  888. }
  889. /**
  890. * Register a terminating callback with the application.
  891. *
  892. * @param callable|string $callback
  893. * @return \Illuminate\Foundation\Application
  894. * @static
  895. */
  896. public static function terminating($callback)
  897. {
  898. /** @var \Illuminate\Foundation\Application $instance */
  899. return $instance->terminating($callback);
  900. }
  901. /**
  902. * Terminate the application.
  903. *
  904. * @return void
  905. * @static
  906. */
  907. public static function terminate()
  908. {
  909. /** @var \Illuminate\Foundation\Application $instance */
  910. $instance->terminate();
  911. }
  912. /**
  913. * Get the service providers that have been loaded.
  914. *
  915. * @return array<string, bool>
  916. * @static
  917. */
  918. public static function getLoadedProviders()
  919. {
  920. /** @var \Illuminate\Foundation\Application $instance */
  921. return $instance->getLoadedProviders();
  922. }
  923. /**
  924. * Determine if the given service provider is loaded.
  925. *
  926. * @param string $provider
  927. * @return bool
  928. * @static
  929. */
  930. public static function providerIsLoaded($provider)
  931. {
  932. /** @var \Illuminate\Foundation\Application $instance */
  933. return $instance->providerIsLoaded($provider);
  934. }
  935. /**
  936. * Get the application's deferred services.
  937. *
  938. * @return array
  939. * @static
  940. */
  941. public static function getDeferredServices()
  942. {
  943. /** @var \Illuminate\Foundation\Application $instance */
  944. return $instance->getDeferredServices();
  945. }
  946. /**
  947. * Set the application's deferred services.
  948. *
  949. * @param array $services
  950. * @return void
  951. * @static
  952. */
  953. public static function setDeferredServices($services)
  954. {
  955. /** @var \Illuminate\Foundation\Application $instance */
  956. $instance->setDeferredServices($services);
  957. }
  958. /**
  959. * Determine if the given service is a deferred service.
  960. *
  961. * @param string $service
  962. * @return bool
  963. * @static
  964. */
  965. public static function isDeferredService($service)
  966. {
  967. /** @var \Illuminate\Foundation\Application $instance */
  968. return $instance->isDeferredService($service);
  969. }
  970. /**
  971. * Add an array of services to the application's deferred services.
  972. *
  973. * @param array $services
  974. * @return void
  975. * @static
  976. */
  977. public static function addDeferredServices($services)
  978. {
  979. /** @var \Illuminate\Foundation\Application $instance */
  980. $instance->addDeferredServices($services);
  981. }
  982. /**
  983. * Remove an array of services from the application's deferred services.
  984. *
  985. * @param array $services
  986. * @return void
  987. * @static
  988. */
  989. public static function removeDeferredServices($services)
  990. {
  991. /** @var \Illuminate\Foundation\Application $instance */
  992. $instance->removeDeferredServices($services);
  993. }
  994. /**
  995. * Configure the real-time facade namespace.
  996. *
  997. * @param string $namespace
  998. * @return void
  999. * @static
  1000. */
  1001. public static function provideFacades($namespace)
  1002. {
  1003. /** @var \Illuminate\Foundation\Application $instance */
  1004. $instance->provideFacades($namespace);
  1005. }
  1006. /**
  1007. * Get the current application locale.
  1008. *
  1009. * @return string
  1010. * @static
  1011. */
  1012. public static function getLocale()
  1013. {
  1014. /** @var \Illuminate\Foundation\Application $instance */
  1015. return $instance->getLocale();
  1016. }
  1017. /**
  1018. * Get the current application locale.
  1019. *
  1020. * @return string
  1021. * @static
  1022. */
  1023. public static function currentLocale()
  1024. {
  1025. /** @var \Illuminate\Foundation\Application $instance */
  1026. return $instance->currentLocale();
  1027. }
  1028. /**
  1029. * Get the current application fallback locale.
  1030. *
  1031. * @return string
  1032. * @static
  1033. */
  1034. public static function getFallbackLocale()
  1035. {
  1036. /** @var \Illuminate\Foundation\Application $instance */
  1037. return $instance->getFallbackLocale();
  1038. }
  1039. /**
  1040. * Set the current application locale.
  1041. *
  1042. * @param string $locale
  1043. * @return void
  1044. * @static
  1045. */
  1046. public static function setLocale($locale)
  1047. {
  1048. /** @var \Illuminate\Foundation\Application $instance */
  1049. $instance->setLocale($locale);
  1050. }
  1051. /**
  1052. * Set the current application fallback locale.
  1053. *
  1054. * @param string $fallbackLocale
  1055. * @return void
  1056. * @static
  1057. */
  1058. public static function setFallbackLocale($fallbackLocale)
  1059. {
  1060. /** @var \Illuminate\Foundation\Application $instance */
  1061. $instance->setFallbackLocale($fallbackLocale);
  1062. }
  1063. /**
  1064. * Determine if the application locale is the given locale.
  1065. *
  1066. * @param string $locale
  1067. * @return bool
  1068. * @static
  1069. */
  1070. public static function isLocale($locale)
  1071. {
  1072. /** @var \Illuminate\Foundation\Application $instance */
  1073. return $instance->isLocale($locale);
  1074. }
  1075. /**
  1076. * Register the core class aliases in the container.
  1077. *
  1078. * @return void
  1079. * @static
  1080. */
  1081. public static function registerCoreContainerAliases()
  1082. {
  1083. /** @var \Illuminate\Foundation\Application $instance */
  1084. $instance->registerCoreContainerAliases();
  1085. }
  1086. /**
  1087. * Flush the container of all bindings and resolved instances.
  1088. *
  1089. * @return void
  1090. * @static
  1091. */
  1092. public static function flush()
  1093. {
  1094. /** @var \Illuminate\Foundation\Application $instance */
  1095. $instance->flush();
  1096. }
  1097. /**
  1098. * Get the application namespace.
  1099. *
  1100. * @return string
  1101. * @throws \RuntimeException
  1102. * @static
  1103. */
  1104. public static function getNamespace()
  1105. {
  1106. /** @var \Illuminate\Foundation\Application $instance */
  1107. return $instance->getNamespace();
  1108. }
  1109. /**
  1110. * Define a contextual binding.
  1111. *
  1112. * @param array|string $concrete
  1113. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  1114. * @static
  1115. */
  1116. public static function when($concrete)
  1117. {
  1118. //Method inherited from \Illuminate\Container\Container
  1119. /** @var \Illuminate\Foundation\Application $instance */
  1120. return $instance->when($concrete);
  1121. }
  1122. /**
  1123. * Define a contextual binding based on an attribute.
  1124. *
  1125. * @param string $attribute
  1126. * @param \Closure $handler
  1127. * @return void
  1128. * @static
  1129. */
  1130. public static function whenHasAttribute($attribute, $handler)
  1131. {
  1132. //Method inherited from \Illuminate\Container\Container
  1133. /** @var \Illuminate\Foundation\Application $instance */
  1134. $instance->whenHasAttribute($attribute, $handler);
  1135. }
  1136. /**
  1137. * Returns true if the container can return an entry for the given identifier.
  1138. *
  1139. * Returns false otherwise.
  1140. *
  1141. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  1142. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  1143. *
  1144. * @return bool
  1145. * @param string $id Identifier of the entry to look for.
  1146. * @return bool
  1147. * @static
  1148. */
  1149. public static function has($id)
  1150. {
  1151. //Method inherited from \Illuminate\Container\Container
  1152. /** @var \Illuminate\Foundation\Application $instance */
  1153. return $instance->has($id);
  1154. }
  1155. /**
  1156. * Determine if the given abstract type has been resolved.
  1157. *
  1158. * @param string $abstract
  1159. * @return bool
  1160. * @static
  1161. */
  1162. public static function resolved($abstract)
  1163. {
  1164. //Method inherited from \Illuminate\Container\Container
  1165. /** @var \Illuminate\Foundation\Application $instance */
  1166. return $instance->resolved($abstract);
  1167. }
  1168. /**
  1169. * Determine if a given type is shared.
  1170. *
  1171. * @param string $abstract
  1172. * @return bool
  1173. * @static
  1174. */
  1175. public static function isShared($abstract)
  1176. {
  1177. //Method inherited from \Illuminate\Container\Container
  1178. /** @var \Illuminate\Foundation\Application $instance */
  1179. return $instance->isShared($abstract);
  1180. }
  1181. /**
  1182. * Determine if a given string is an alias.
  1183. *
  1184. * @param string $name
  1185. * @return bool
  1186. * @static
  1187. */
  1188. public static function isAlias($name)
  1189. {
  1190. //Method inherited from \Illuminate\Container\Container
  1191. /** @var \Illuminate\Foundation\Application $instance */
  1192. return $instance->isAlias($name);
  1193. }
  1194. /**
  1195. * Register a binding with the container.
  1196. *
  1197. * @param \Closure|string $abstract
  1198. * @param \Closure|string|null $concrete
  1199. * @param bool $shared
  1200. * @return void
  1201. * @throws \TypeError
  1202. * @throws ReflectionException
  1203. * @static
  1204. */
  1205. public static function bind($abstract, $concrete = null, $shared = false)
  1206. {
  1207. //Method inherited from \Illuminate\Container\Container
  1208. /** @var \Illuminate\Foundation\Application $instance */
  1209. $instance->bind($abstract, $concrete, $shared);
  1210. }
  1211. /**
  1212. * Determine if the container has a method binding.
  1213. *
  1214. * @param string $method
  1215. * @return bool
  1216. * @static
  1217. */
  1218. public static function hasMethodBinding($method)
  1219. {
  1220. //Method inherited from \Illuminate\Container\Container
  1221. /** @var \Illuminate\Foundation\Application $instance */
  1222. return $instance->hasMethodBinding($method);
  1223. }
  1224. /**
  1225. * Bind a callback to resolve with Container::call.
  1226. *
  1227. * @param array|string $method
  1228. * @param \Closure $callback
  1229. * @return void
  1230. * @static
  1231. */
  1232. public static function bindMethod($method, $callback)
  1233. {
  1234. //Method inherited from \Illuminate\Container\Container
  1235. /** @var \Illuminate\Foundation\Application $instance */
  1236. $instance->bindMethod($method, $callback);
  1237. }
  1238. /**
  1239. * Get the method binding for the given method.
  1240. *
  1241. * @param string $method
  1242. * @param mixed $instance
  1243. * @return mixed
  1244. * @static
  1245. */
  1246. public static function callMethodBinding($method, $instance)
  1247. {
  1248. //Method inherited from \Illuminate\Container\Container
  1249. /** @var \Illuminate\Foundation\Application $instance */
  1250. return $instance->callMethodBinding($method, $instance);
  1251. }
  1252. /**
  1253. * Add a contextual binding to the container.
  1254. *
  1255. * @param string $concrete
  1256. * @param \Closure|string $abstract
  1257. * @param \Closure|string $implementation
  1258. * @return void
  1259. * @static
  1260. */
  1261. public static function addContextualBinding($concrete, $abstract, $implementation)
  1262. {
  1263. //Method inherited from \Illuminate\Container\Container
  1264. /** @var \Illuminate\Foundation\Application $instance */
  1265. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1266. }
  1267. /**
  1268. * Register a binding if it hasn't already been registered.
  1269. *
  1270. * @param \Closure|string $abstract
  1271. * @param \Closure|string|null $concrete
  1272. * @param bool $shared
  1273. * @return void
  1274. * @static
  1275. */
  1276. public static function bindIf($abstract, $concrete = null, $shared = false)
  1277. {
  1278. //Method inherited from \Illuminate\Container\Container
  1279. /** @var \Illuminate\Foundation\Application $instance */
  1280. $instance->bindIf($abstract, $concrete, $shared);
  1281. }
  1282. /**
  1283. * Register a shared binding in the container.
  1284. *
  1285. * @param \Closure|string $abstract
  1286. * @param \Closure|string|null $concrete
  1287. * @return void
  1288. * @static
  1289. */
  1290. public static function singleton($abstract, $concrete = null)
  1291. {
  1292. //Method inherited from \Illuminate\Container\Container
  1293. /** @var \Illuminate\Foundation\Application $instance */
  1294. $instance->singleton($abstract, $concrete);
  1295. }
  1296. /**
  1297. * Register a shared binding if it hasn't already been registered.
  1298. *
  1299. * @param \Closure|string $abstract
  1300. * @param \Closure|string|null $concrete
  1301. * @return void
  1302. * @static
  1303. */
  1304. public static function singletonIf($abstract, $concrete = null)
  1305. {
  1306. //Method inherited from \Illuminate\Container\Container
  1307. /** @var \Illuminate\Foundation\Application $instance */
  1308. $instance->singletonIf($abstract, $concrete);
  1309. }
  1310. /**
  1311. * Register a scoped binding in the container.
  1312. *
  1313. * @param \Closure|string $abstract
  1314. * @param \Closure|string|null $concrete
  1315. * @return void
  1316. * @static
  1317. */
  1318. public static function scoped($abstract, $concrete = null)
  1319. {
  1320. //Method inherited from \Illuminate\Container\Container
  1321. /** @var \Illuminate\Foundation\Application $instance */
  1322. $instance->scoped($abstract, $concrete);
  1323. }
  1324. /**
  1325. * Register a scoped binding if it hasn't already been registered.
  1326. *
  1327. * @param \Closure|string $abstract
  1328. * @param \Closure|string|null $concrete
  1329. * @return void
  1330. * @static
  1331. */
  1332. public static function scopedIf($abstract, $concrete = null)
  1333. {
  1334. //Method inherited from \Illuminate\Container\Container
  1335. /** @var \Illuminate\Foundation\Application $instance */
  1336. $instance->scopedIf($abstract, $concrete);
  1337. }
  1338. /**
  1339. * "Extend" an abstract type in the container.
  1340. *
  1341. * @param string $abstract
  1342. * @param \Closure $closure
  1343. * @return void
  1344. * @throws \InvalidArgumentException
  1345. * @static
  1346. */
  1347. public static function extend($abstract, $closure)
  1348. {
  1349. //Method inherited from \Illuminate\Container\Container
  1350. /** @var \Illuminate\Foundation\Application $instance */
  1351. $instance->extend($abstract, $closure);
  1352. }
  1353. /**
  1354. * Register an existing instance as shared in the container.
  1355. *
  1356. * @template TInstance of mixed
  1357. * @param string $abstract
  1358. * @param TInstance $instance
  1359. * @return TInstance
  1360. * @static
  1361. */
  1362. public static function instance($abstract, $instance)
  1363. {
  1364. //Method inherited from \Illuminate\Container\Container
  1365. /** @var \Illuminate\Foundation\Application $instance */
  1366. return $instance->instance($abstract, $instance);
  1367. }
  1368. /**
  1369. * Assign a set of tags to a given binding.
  1370. *
  1371. * @param array|string $abstracts
  1372. * @param array|mixed $tags
  1373. * @return void
  1374. * @static
  1375. */
  1376. public static function tag($abstracts, $tags)
  1377. {
  1378. //Method inherited from \Illuminate\Container\Container
  1379. /** @var \Illuminate\Foundation\Application $instance */
  1380. $instance->tag($abstracts, $tags);
  1381. }
  1382. /**
  1383. * Resolve all of the bindings for a given tag.
  1384. *
  1385. * @param string $tag
  1386. * @return iterable
  1387. * @static
  1388. */
  1389. public static function tagged($tag)
  1390. {
  1391. //Method inherited from \Illuminate\Container\Container
  1392. /** @var \Illuminate\Foundation\Application $instance */
  1393. return $instance->tagged($tag);
  1394. }
  1395. /**
  1396. * Alias a type to a different name.
  1397. *
  1398. * @param string $abstract
  1399. * @param string $alias
  1400. * @return void
  1401. * @throws \LogicException
  1402. * @static
  1403. */
  1404. public static function alias($abstract, $alias)
  1405. {
  1406. //Method inherited from \Illuminate\Container\Container
  1407. /** @var \Illuminate\Foundation\Application $instance */
  1408. $instance->alias($abstract, $alias);
  1409. }
  1410. /**
  1411. * Bind a new callback to an abstract's rebind event.
  1412. *
  1413. * @param string $abstract
  1414. * @param \Closure $callback
  1415. * @return mixed
  1416. * @static
  1417. */
  1418. public static function rebinding($abstract, $callback)
  1419. {
  1420. //Method inherited from \Illuminate\Container\Container
  1421. /** @var \Illuminate\Foundation\Application $instance */
  1422. return $instance->rebinding($abstract, $callback);
  1423. }
  1424. /**
  1425. * Refresh an instance on the given target and method.
  1426. *
  1427. * @param string $abstract
  1428. * @param mixed $target
  1429. * @param string $method
  1430. * @return mixed
  1431. * @static
  1432. */
  1433. public static function refresh($abstract, $target, $method)
  1434. {
  1435. //Method inherited from \Illuminate\Container\Container
  1436. /** @var \Illuminate\Foundation\Application $instance */
  1437. return $instance->refresh($abstract, $target, $method);
  1438. }
  1439. /**
  1440. * Wrap the given closure such that its dependencies will be injected when executed.
  1441. *
  1442. * @param \Closure $callback
  1443. * @param array $parameters
  1444. * @return \Closure
  1445. * @static
  1446. */
  1447. public static function wrap($callback, $parameters = [])
  1448. {
  1449. //Method inherited from \Illuminate\Container\Container
  1450. /** @var \Illuminate\Foundation\Application $instance */
  1451. return $instance->wrap($callback, $parameters);
  1452. }
  1453. /**
  1454. * Call the given Closure / class@method and inject its dependencies.
  1455. *
  1456. * @param callable|string $callback
  1457. * @param array<string, mixed> $parameters
  1458. * @param string|null $defaultMethod
  1459. * @return mixed
  1460. * @throws \InvalidArgumentException
  1461. * @static
  1462. */
  1463. public static function call($callback, $parameters = [], $defaultMethod = null)
  1464. {
  1465. //Method inherited from \Illuminate\Container\Container
  1466. /** @var \Illuminate\Foundation\Application $instance */
  1467. return $instance->call($callback, $parameters, $defaultMethod);
  1468. }
  1469. /**
  1470. * Get a closure to resolve the given type from the container.
  1471. *
  1472. * @template TClass of object
  1473. * @param string|class-string<TClass> $abstract
  1474. * @return ($abstract is class-string<TClass> ? \Closure(): TClass : \Closure(): mixed)
  1475. * @static
  1476. */
  1477. public static function factory($abstract)
  1478. {
  1479. //Method inherited from \Illuminate\Container\Container
  1480. /** @var \Illuminate\Foundation\Application $instance */
  1481. return $instance->factory($abstract);
  1482. }
  1483. /**
  1484. * An alias function name for make().
  1485. *
  1486. * @template TClass of object
  1487. * @param string|class-string<TClass>|callable $abstract
  1488. * @param array $parameters
  1489. * @return ($abstract is class-string<TClass> ? TClass : mixed)
  1490. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1491. * @static
  1492. */
  1493. public static function makeWith($abstract, $parameters = [])
  1494. {
  1495. //Method inherited from \Illuminate\Container\Container
  1496. /** @var \Illuminate\Foundation\Application $instance */
  1497. return $instance->makeWith($abstract, $parameters);
  1498. }
  1499. /**
  1500. * {@inheritdoc}
  1501. *
  1502. * @template TClass of object
  1503. * @param string|class-string<TClass> $id
  1504. * @return ($id is class-string<TClass> ? TClass : mixed)
  1505. * @static
  1506. */
  1507. public static function get($id)
  1508. {
  1509. //Method inherited from \Illuminate\Container\Container
  1510. /** @var \Illuminate\Foundation\Application $instance */
  1511. return $instance->get($id);
  1512. }
  1513. /**
  1514. * Instantiate a concrete instance of the given type.
  1515. *
  1516. * @template TClass of object
  1517. * @param \Closure(static, array): TClass|class-string<TClass> $concrete
  1518. * @return TClass
  1519. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1520. * @throws \Illuminate\Contracts\Container\CircularDependencyException
  1521. * @static
  1522. */
  1523. public static function build($concrete)
  1524. {
  1525. //Method inherited from \Illuminate\Container\Container
  1526. /** @var \Illuminate\Foundation\Application $instance */
  1527. return $instance->build($concrete);
  1528. }
  1529. /**
  1530. * Resolve a dependency based on an attribute.
  1531. *
  1532. * @param \ReflectionAttribute $attribute
  1533. * @return mixed
  1534. * @static
  1535. */
  1536. public static function resolveFromAttribute($attribute)
  1537. {
  1538. //Method inherited from \Illuminate\Container\Container
  1539. /** @var \Illuminate\Foundation\Application $instance */
  1540. return $instance->resolveFromAttribute($attribute);
  1541. }
  1542. /**
  1543. * Register a new before resolving callback for all types.
  1544. *
  1545. * @param \Closure|string $abstract
  1546. * @param \Closure|null $callback
  1547. * @return void
  1548. * @static
  1549. */
  1550. public static function beforeResolving($abstract, $callback = null)
  1551. {
  1552. //Method inherited from \Illuminate\Container\Container
  1553. /** @var \Illuminate\Foundation\Application $instance */
  1554. $instance->beforeResolving($abstract, $callback);
  1555. }
  1556. /**
  1557. * Register a new resolving callback.
  1558. *
  1559. * @param \Closure|string $abstract
  1560. * @param \Closure|null $callback
  1561. * @return void
  1562. * @static
  1563. */
  1564. public static function resolving($abstract, $callback = null)
  1565. {
  1566. //Method inherited from \Illuminate\Container\Container
  1567. /** @var \Illuminate\Foundation\Application $instance */
  1568. $instance->resolving($abstract, $callback);
  1569. }
  1570. /**
  1571. * Register a new after resolving callback for all types.
  1572. *
  1573. * @param \Closure|string $abstract
  1574. * @param \Closure|null $callback
  1575. * @return void
  1576. * @static
  1577. */
  1578. public static function afterResolving($abstract, $callback = null)
  1579. {
  1580. //Method inherited from \Illuminate\Container\Container
  1581. /** @var \Illuminate\Foundation\Application $instance */
  1582. $instance->afterResolving($abstract, $callback);
  1583. }
  1584. /**
  1585. * Register a new after resolving attribute callback for all types.
  1586. *
  1587. * @param string $attribute
  1588. * @param \Closure $callback
  1589. * @return void
  1590. * @static
  1591. */
  1592. public static function afterResolvingAttribute($attribute, $callback)
  1593. {
  1594. //Method inherited from \Illuminate\Container\Container
  1595. /** @var \Illuminate\Foundation\Application $instance */
  1596. $instance->afterResolvingAttribute($attribute, $callback);
  1597. }
  1598. /**
  1599. * Fire all of the after resolving attribute callbacks.
  1600. *
  1601. * @param \ReflectionAttribute[] $attributes
  1602. * @param mixed $object
  1603. * @return void
  1604. * @static
  1605. */
  1606. public static function fireAfterResolvingAttributeCallbacks($attributes, $object)
  1607. {
  1608. //Method inherited from \Illuminate\Container\Container
  1609. /** @var \Illuminate\Foundation\Application $instance */
  1610. $instance->fireAfterResolvingAttributeCallbacks($attributes, $object);
  1611. }
  1612. /**
  1613. * Get the name of the binding the container is currently resolving.
  1614. *
  1615. * @return class-string|string|null
  1616. * @static
  1617. */
  1618. public static function currentlyResolving()
  1619. {
  1620. //Method inherited from \Illuminate\Container\Container
  1621. /** @var \Illuminate\Foundation\Application $instance */
  1622. return $instance->currentlyResolving();
  1623. }
  1624. /**
  1625. * Get the container's bindings.
  1626. *
  1627. * @return array
  1628. * @static
  1629. */
  1630. public static function getBindings()
  1631. {
  1632. //Method inherited from \Illuminate\Container\Container
  1633. /** @var \Illuminate\Foundation\Application $instance */
  1634. return $instance->getBindings();
  1635. }
  1636. /**
  1637. * Get the alias for an abstract if available.
  1638. *
  1639. * @param string $abstract
  1640. * @return string
  1641. * @static
  1642. */
  1643. public static function getAlias($abstract)
  1644. {
  1645. //Method inherited from \Illuminate\Container\Container
  1646. /** @var \Illuminate\Foundation\Application $instance */
  1647. return $instance->getAlias($abstract);
  1648. }
  1649. /**
  1650. * Remove all of the extender callbacks for a given type.
  1651. *
  1652. * @param string $abstract
  1653. * @return void
  1654. * @static
  1655. */
  1656. public static function forgetExtenders($abstract)
  1657. {
  1658. //Method inherited from \Illuminate\Container\Container
  1659. /** @var \Illuminate\Foundation\Application $instance */
  1660. $instance->forgetExtenders($abstract);
  1661. }
  1662. /**
  1663. * Remove a resolved instance from the instance cache.
  1664. *
  1665. * @param string $abstract
  1666. * @return void
  1667. * @static
  1668. */
  1669. public static function forgetInstance($abstract)
  1670. {
  1671. //Method inherited from \Illuminate\Container\Container
  1672. /** @var \Illuminate\Foundation\Application $instance */
  1673. $instance->forgetInstance($abstract);
  1674. }
  1675. /**
  1676. * Clear all of the instances from the container.
  1677. *
  1678. * @return void
  1679. * @static
  1680. */
  1681. public static function forgetInstances()
  1682. {
  1683. //Method inherited from \Illuminate\Container\Container
  1684. /** @var \Illuminate\Foundation\Application $instance */
  1685. $instance->forgetInstances();
  1686. }
  1687. /**
  1688. * Clear all of the scoped instances from the container.
  1689. *
  1690. * @return void
  1691. * @static
  1692. */
  1693. public static function forgetScopedInstances()
  1694. {
  1695. //Method inherited from \Illuminate\Container\Container
  1696. /** @var \Illuminate\Foundation\Application $instance */
  1697. $instance->forgetScopedInstances();
  1698. }
  1699. /**
  1700. * Get the globally available instance of the container.
  1701. *
  1702. * @return static
  1703. * @static
  1704. */
  1705. public static function getInstance()
  1706. {
  1707. //Method inherited from \Illuminate\Container\Container
  1708. return \Illuminate\Foundation\Application::getInstance();
  1709. }
  1710. /**
  1711. * Set the shared instance of the container.
  1712. *
  1713. * @param \Illuminate\Contracts\Container\Container|null $container
  1714. * @return \Illuminate\Contracts\Container\Container|static
  1715. * @static
  1716. */
  1717. public static function setInstance($container = null)
  1718. {
  1719. //Method inherited from \Illuminate\Container\Container
  1720. return \Illuminate\Foundation\Application::setInstance($container);
  1721. }
  1722. /**
  1723. * Determine if a given offset exists.
  1724. *
  1725. * @param string $key
  1726. * @return bool
  1727. * @static
  1728. */
  1729. public static function offsetExists($key)
  1730. {
  1731. //Method inherited from \Illuminate\Container\Container
  1732. /** @var \Illuminate\Foundation\Application $instance */
  1733. return $instance->offsetExists($key);
  1734. }
  1735. /**
  1736. * Get the value at a given offset.
  1737. *
  1738. * @param string $key
  1739. * @return mixed
  1740. * @static
  1741. */
  1742. public static function offsetGet($key)
  1743. {
  1744. //Method inherited from \Illuminate\Container\Container
  1745. /** @var \Illuminate\Foundation\Application $instance */
  1746. return $instance->offsetGet($key);
  1747. }
  1748. /**
  1749. * Set the value at a given offset.
  1750. *
  1751. * @param string $key
  1752. * @param mixed $value
  1753. * @return void
  1754. * @static
  1755. */
  1756. public static function offsetSet($key, $value)
  1757. {
  1758. //Method inherited from \Illuminate\Container\Container
  1759. /** @var \Illuminate\Foundation\Application $instance */
  1760. $instance->offsetSet($key, $value);
  1761. }
  1762. /**
  1763. * Unset the value at a given offset.
  1764. *
  1765. * @param string $key
  1766. * @return void
  1767. * @static
  1768. */
  1769. public static function offsetUnset($key)
  1770. {
  1771. //Method inherited from \Illuminate\Container\Container
  1772. /** @var \Illuminate\Foundation\Application $instance */
  1773. $instance->offsetUnset($key);
  1774. }
  1775. /**
  1776. * Register a custom macro.
  1777. *
  1778. * @param string $name
  1779. * @param object|callable $macro
  1780. * @param-closure-this static $macro
  1781. * @return void
  1782. * @static
  1783. */
  1784. public static function macro($name, $macro)
  1785. {
  1786. \Illuminate\Foundation\Application::macro($name, $macro);
  1787. }
  1788. /**
  1789. * Mix another object into the class.
  1790. *
  1791. * @param object $mixin
  1792. * @param bool $replace
  1793. * @return void
  1794. * @throws \ReflectionException
  1795. * @static
  1796. */
  1797. public static function mixin($mixin, $replace = true)
  1798. {
  1799. \Illuminate\Foundation\Application::mixin($mixin, $replace);
  1800. }
  1801. /**
  1802. * Checks if macro is registered.
  1803. *
  1804. * @param string $name
  1805. * @return bool
  1806. * @static
  1807. */
  1808. public static function hasMacro($name)
  1809. {
  1810. return \Illuminate\Foundation\Application::hasMacro($name);
  1811. }
  1812. /**
  1813. * Flush the existing macros.
  1814. *
  1815. * @return void
  1816. * @static
  1817. */
  1818. public static function flushMacros()
  1819. {
  1820. \Illuminate\Foundation\Application::flushMacros();
  1821. }
  1822. }
  1823. /**
  1824. * @see \Illuminate\Foundation\Console\Kernel
  1825. */
  1826. class Artisan {
  1827. /**
  1828. * Re-route the Symfony command events to their Laravel counterparts.
  1829. *
  1830. * @internal
  1831. * @return \Illuminate\Foundation\Console\Kernel
  1832. * @static
  1833. */
  1834. public static function rerouteSymfonyCommandEvents()
  1835. {
  1836. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1837. return $instance->rerouteSymfonyCommandEvents();
  1838. }
  1839. /**
  1840. * Run the console application.
  1841. *
  1842. * @param \Symfony\Component\Console\Input\InputInterface $input
  1843. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1844. * @return int
  1845. * @static
  1846. */
  1847. public static function handle($input, $output = null)
  1848. {
  1849. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1850. return $instance->handle($input, $output);
  1851. }
  1852. /**
  1853. * Terminate the application.
  1854. *
  1855. * @param \Symfony\Component\Console\Input\InputInterface $input
  1856. * @param int $status
  1857. * @return void
  1858. * @static
  1859. */
  1860. public static function terminate($input, $status)
  1861. {
  1862. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1863. $instance->terminate($input, $status);
  1864. }
  1865. /**
  1866. * Register a callback to be invoked when the command lifecycle duration exceeds a given amount of time.
  1867. *
  1868. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  1869. * @param callable $handler
  1870. * @return void
  1871. * @static
  1872. */
  1873. public static function whenCommandLifecycleIsLongerThan($threshold, $handler)
  1874. {
  1875. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1876. $instance->whenCommandLifecycleIsLongerThan($threshold, $handler);
  1877. }
  1878. /**
  1879. * When the command being handled started.
  1880. *
  1881. * @return \Illuminate\Support\Carbon|null
  1882. * @static
  1883. */
  1884. public static function commandStartedAt()
  1885. {
  1886. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1887. return $instance->commandStartedAt();
  1888. }
  1889. /**
  1890. * Resolve a console schedule instance.
  1891. *
  1892. * @return \Illuminate\Console\Scheduling\Schedule
  1893. * @static
  1894. */
  1895. public static function resolveConsoleSchedule()
  1896. {
  1897. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1898. return $instance->resolveConsoleSchedule();
  1899. }
  1900. /**
  1901. * Register a Closure based command with the application.
  1902. *
  1903. * @param string $signature
  1904. * @param \Closure $callback
  1905. * @return \Illuminate\Foundation\Console\ClosureCommand
  1906. * @static
  1907. */
  1908. public static function command($signature, $callback)
  1909. {
  1910. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1911. return $instance->command($signature, $callback);
  1912. }
  1913. /**
  1914. * Register the given command with the console application.
  1915. *
  1916. * @param \Symfony\Component\Console\Command\Command $command
  1917. * @return void
  1918. * @static
  1919. */
  1920. public static function registerCommand($command)
  1921. {
  1922. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1923. $instance->registerCommand($command);
  1924. }
  1925. /**
  1926. * Run an Artisan console command by name.
  1927. *
  1928. * @param string $command
  1929. * @param array $parameters
  1930. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1931. * @return int
  1932. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1933. * @static
  1934. */
  1935. public static function call($command, $parameters = [], $outputBuffer = null)
  1936. {
  1937. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1938. return $instance->call($command, $parameters, $outputBuffer);
  1939. }
  1940. /**
  1941. * Queue the given console command.
  1942. *
  1943. * @param string $command
  1944. * @param array $parameters
  1945. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1946. * @static
  1947. */
  1948. public static function queue($command, $parameters = [])
  1949. {
  1950. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1951. return $instance->queue($command, $parameters);
  1952. }
  1953. /**
  1954. * Get all of the commands registered with the console.
  1955. *
  1956. * @return array
  1957. * @static
  1958. */
  1959. public static function all()
  1960. {
  1961. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1962. return $instance->all();
  1963. }
  1964. /**
  1965. * Get the output for the last run command.
  1966. *
  1967. * @return string
  1968. * @static
  1969. */
  1970. public static function output()
  1971. {
  1972. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1973. return $instance->output();
  1974. }
  1975. /**
  1976. * Bootstrap the application for artisan commands.
  1977. *
  1978. * @return void
  1979. * @static
  1980. */
  1981. public static function bootstrap()
  1982. {
  1983. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1984. $instance->bootstrap();
  1985. }
  1986. /**
  1987. * Bootstrap the application without booting service providers.
  1988. *
  1989. * @return void
  1990. * @static
  1991. */
  1992. public static function bootstrapWithoutBootingProviders()
  1993. {
  1994. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1995. $instance->bootstrapWithoutBootingProviders();
  1996. }
  1997. /**
  1998. * Set the Artisan application instance.
  1999. *
  2000. * @param \Illuminate\Console\Application|null $artisan
  2001. * @return void
  2002. * @static
  2003. */
  2004. public static function setArtisan($artisan)
  2005. {
  2006. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  2007. $instance->setArtisan($artisan);
  2008. }
  2009. /**
  2010. * Set the Artisan commands provided by the application.
  2011. *
  2012. * @param array $commands
  2013. * @return \Illuminate\Foundation\Console\Kernel
  2014. * @static
  2015. */
  2016. public static function addCommands($commands)
  2017. {
  2018. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  2019. return $instance->addCommands($commands);
  2020. }
  2021. /**
  2022. * Set the paths that should have their Artisan commands automatically discovered.
  2023. *
  2024. * @param array $paths
  2025. * @return \Illuminate\Foundation\Console\Kernel
  2026. * @static
  2027. */
  2028. public static function addCommandPaths($paths)
  2029. {
  2030. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  2031. return $instance->addCommandPaths($paths);
  2032. }
  2033. /**
  2034. * Set the paths that should have their Artisan "routes" automatically discovered.
  2035. *
  2036. * @param array $paths
  2037. * @return \Illuminate\Foundation\Console\Kernel
  2038. * @static
  2039. */
  2040. public static function addCommandRoutePaths($paths)
  2041. {
  2042. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  2043. return $instance->addCommandRoutePaths($paths);
  2044. }
  2045. }
  2046. /**
  2047. * @see \Illuminate\Auth\AuthManager
  2048. * @see \Illuminate\Auth\SessionGuard
  2049. */
  2050. class Auth {
  2051. /**
  2052. * Attempt to get the guard from the local cache.
  2053. *
  2054. * @param string|null $name
  2055. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  2056. * @static
  2057. */
  2058. public static function guard($name = null)
  2059. {
  2060. /** @var \Illuminate\Auth\AuthManager $instance */
  2061. return $instance->guard($name);
  2062. }
  2063. /**
  2064. * Create a session based authentication guard.
  2065. *
  2066. * @param string $name
  2067. * @param array $config
  2068. * @return \Illuminate\Auth\SessionGuard
  2069. * @static
  2070. */
  2071. public static function createSessionDriver($name, $config)
  2072. {
  2073. /** @var \Illuminate\Auth\AuthManager $instance */
  2074. return $instance->createSessionDriver($name, $config);
  2075. }
  2076. /**
  2077. * Create a token based authentication guard.
  2078. *
  2079. * @param string $name
  2080. * @param array $config
  2081. * @return \Illuminate\Auth\TokenGuard
  2082. * @static
  2083. */
  2084. public static function createTokenDriver($name, $config)
  2085. {
  2086. /** @var \Illuminate\Auth\AuthManager $instance */
  2087. return $instance->createTokenDriver($name, $config);
  2088. }
  2089. /**
  2090. * Get the default authentication driver name.
  2091. *
  2092. * @return string
  2093. * @static
  2094. */
  2095. public static function getDefaultDriver()
  2096. {
  2097. /** @var \Illuminate\Auth\AuthManager $instance */
  2098. return $instance->getDefaultDriver();
  2099. }
  2100. /**
  2101. * Set the default guard driver the factory should serve.
  2102. *
  2103. * @param string $name
  2104. * @return void
  2105. * @static
  2106. */
  2107. public static function shouldUse($name)
  2108. {
  2109. /** @var \Illuminate\Auth\AuthManager $instance */
  2110. $instance->shouldUse($name);
  2111. }
  2112. /**
  2113. * Set the default authentication driver name.
  2114. *
  2115. * @param string $name
  2116. * @return void
  2117. * @static
  2118. */
  2119. public static function setDefaultDriver($name)
  2120. {
  2121. /** @var \Illuminate\Auth\AuthManager $instance */
  2122. $instance->setDefaultDriver($name);
  2123. }
  2124. /**
  2125. * Register a new callback based request guard.
  2126. *
  2127. * @param string $driver
  2128. * @param callable $callback
  2129. * @return \Illuminate\Auth\AuthManager
  2130. * @static
  2131. */
  2132. public static function viaRequest($driver, $callback)
  2133. {
  2134. /** @var \Illuminate\Auth\AuthManager $instance */
  2135. return $instance->viaRequest($driver, $callback);
  2136. }
  2137. /**
  2138. * Get the user resolver callback.
  2139. *
  2140. * @return \Closure
  2141. * @static
  2142. */
  2143. public static function userResolver()
  2144. {
  2145. /** @var \Illuminate\Auth\AuthManager $instance */
  2146. return $instance->userResolver();
  2147. }
  2148. /**
  2149. * Set the callback to be used to resolve users.
  2150. *
  2151. * @param \Closure $userResolver
  2152. * @return \Illuminate\Auth\AuthManager
  2153. * @static
  2154. */
  2155. public static function resolveUsersUsing($userResolver)
  2156. {
  2157. /** @var \Illuminate\Auth\AuthManager $instance */
  2158. return $instance->resolveUsersUsing($userResolver);
  2159. }
  2160. /**
  2161. * Register a custom driver creator Closure.
  2162. *
  2163. * @param string $driver
  2164. * @param \Closure $callback
  2165. * @return \Illuminate\Auth\AuthManager
  2166. * @static
  2167. */
  2168. public static function extend($driver, $callback)
  2169. {
  2170. /** @var \Illuminate\Auth\AuthManager $instance */
  2171. return $instance->extend($driver, $callback);
  2172. }
  2173. /**
  2174. * Register a custom provider creator Closure.
  2175. *
  2176. * @param string $name
  2177. * @param \Closure $callback
  2178. * @return \Illuminate\Auth\AuthManager
  2179. * @static
  2180. */
  2181. public static function provider($name, $callback)
  2182. {
  2183. /** @var \Illuminate\Auth\AuthManager $instance */
  2184. return $instance->provider($name, $callback);
  2185. }
  2186. /**
  2187. * Determines if any guards have already been resolved.
  2188. *
  2189. * @return bool
  2190. * @static
  2191. */
  2192. public static function hasResolvedGuards()
  2193. {
  2194. /** @var \Illuminate\Auth\AuthManager $instance */
  2195. return $instance->hasResolvedGuards();
  2196. }
  2197. /**
  2198. * Forget all of the resolved guard instances.
  2199. *
  2200. * @return \Illuminate\Auth\AuthManager
  2201. * @static
  2202. */
  2203. public static function forgetGuards()
  2204. {
  2205. /** @var \Illuminate\Auth\AuthManager $instance */
  2206. return $instance->forgetGuards();
  2207. }
  2208. /**
  2209. * Set the application instance used by the manager.
  2210. *
  2211. * @param \Illuminate\Contracts\Foundation\Application $app
  2212. * @return \Illuminate\Auth\AuthManager
  2213. * @static
  2214. */
  2215. public static function setApplication($app)
  2216. {
  2217. /** @var \Illuminate\Auth\AuthManager $instance */
  2218. return $instance->setApplication($app);
  2219. }
  2220. /**
  2221. * Create the user provider implementation for the driver.
  2222. *
  2223. * @param string|null $provider
  2224. * @return \Illuminate\Contracts\Auth\UserProvider|null
  2225. * @throws \InvalidArgumentException
  2226. * @static
  2227. */
  2228. public static function createUserProvider($provider = null)
  2229. {
  2230. /** @var \Illuminate\Auth\AuthManager $instance */
  2231. return $instance->createUserProvider($provider);
  2232. }
  2233. /**
  2234. * Get the default user provider name.
  2235. *
  2236. * @return string
  2237. * @static
  2238. */
  2239. public static function getDefaultUserProvider()
  2240. {
  2241. /** @var \Illuminate\Auth\AuthManager $instance */
  2242. return $instance->getDefaultUserProvider();
  2243. }
  2244. /**
  2245. * Get the currently authenticated user.
  2246. *
  2247. * @return \App\Models\User|null
  2248. * @static
  2249. */
  2250. public static function user()
  2251. {
  2252. /** @var \Illuminate\Auth\SessionGuard $instance */
  2253. return $instance->user();
  2254. }
  2255. /**
  2256. * Get the ID for the currently authenticated user.
  2257. *
  2258. * @return int|string|null
  2259. * @static
  2260. */
  2261. public static function id()
  2262. {
  2263. /** @var \Illuminate\Auth\SessionGuard $instance */
  2264. return $instance->id();
  2265. }
  2266. /**
  2267. * Log a user into the application without sessions or cookies.
  2268. *
  2269. * @param array $credentials
  2270. * @return bool
  2271. * @static
  2272. */
  2273. public static function once($credentials = [])
  2274. {
  2275. /** @var \Illuminate\Auth\SessionGuard $instance */
  2276. return $instance->once($credentials);
  2277. }
  2278. /**
  2279. * Log the given user ID into the application without sessions or cookies.
  2280. *
  2281. * @param mixed $id
  2282. * @return \App\Models\User|false
  2283. * @static
  2284. */
  2285. public static function onceUsingId($id)
  2286. {
  2287. /** @var \Illuminate\Auth\SessionGuard $instance */
  2288. return $instance->onceUsingId($id);
  2289. }
  2290. /**
  2291. * Validate a user's credentials.
  2292. *
  2293. * @param array $credentials
  2294. * @return bool
  2295. * @static
  2296. */
  2297. public static function validate($credentials = [])
  2298. {
  2299. /** @var \Illuminate\Auth\SessionGuard $instance */
  2300. return $instance->validate($credentials);
  2301. }
  2302. /**
  2303. * Attempt to authenticate using HTTP Basic Auth.
  2304. *
  2305. * @param string $field
  2306. * @param array $extraConditions
  2307. * @return \Symfony\Component\HttpFoundation\Response|null
  2308. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  2309. * @static
  2310. */
  2311. public static function basic($field = 'email', $extraConditions = [])
  2312. {
  2313. /** @var \Illuminate\Auth\SessionGuard $instance */
  2314. return $instance->basic($field, $extraConditions);
  2315. }
  2316. /**
  2317. * Perform a stateless HTTP Basic login attempt.
  2318. *
  2319. * @param string $field
  2320. * @param array $extraConditions
  2321. * @return \Symfony\Component\HttpFoundation\Response|null
  2322. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  2323. * @static
  2324. */
  2325. public static function onceBasic($field = 'email', $extraConditions = [])
  2326. {
  2327. /** @var \Illuminate\Auth\SessionGuard $instance */
  2328. return $instance->onceBasic($field, $extraConditions);
  2329. }
  2330. /**
  2331. * Attempt to authenticate a user using the given credentials.
  2332. *
  2333. * @param array $credentials
  2334. * @param bool $remember
  2335. * @return bool
  2336. * @static
  2337. */
  2338. public static function attempt($credentials = [], $remember = false)
  2339. {
  2340. /** @var \Illuminate\Auth\SessionGuard $instance */
  2341. return $instance->attempt($credentials, $remember);
  2342. }
  2343. /**
  2344. * Attempt to authenticate a user with credentials and additional callbacks.
  2345. *
  2346. * @param array $credentials
  2347. * @param array|callable|null $callbacks
  2348. * @param bool $remember
  2349. * @return bool
  2350. * @static
  2351. */
  2352. public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
  2353. {
  2354. /** @var \Illuminate\Auth\SessionGuard $instance */
  2355. return $instance->attemptWhen($credentials, $callbacks, $remember);
  2356. }
  2357. /**
  2358. * Log the given user ID into the application.
  2359. *
  2360. * @param mixed $id
  2361. * @param bool $remember
  2362. * @return \App\Models\User|false
  2363. * @static
  2364. */
  2365. public static function loginUsingId($id, $remember = false)
  2366. {
  2367. /** @var \Illuminate\Auth\SessionGuard $instance */
  2368. return $instance->loginUsingId($id, $remember);
  2369. }
  2370. /**
  2371. * Log a user into the application.
  2372. *
  2373. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2374. * @param bool $remember
  2375. * @return void
  2376. * @static
  2377. */
  2378. public static function login($user, $remember = false)
  2379. {
  2380. /** @var \Illuminate\Auth\SessionGuard $instance */
  2381. $instance->login($user, $remember);
  2382. }
  2383. /**
  2384. * Log the user out of the application.
  2385. *
  2386. * @return void
  2387. * @static
  2388. */
  2389. public static function logout()
  2390. {
  2391. /** @var \Illuminate\Auth\SessionGuard $instance */
  2392. $instance->logout();
  2393. }
  2394. /**
  2395. * Log the user out of the application on their current device only.
  2396. *
  2397. * This method does not cycle the "remember" token.
  2398. *
  2399. * @return void
  2400. * @static
  2401. */
  2402. public static function logoutCurrentDevice()
  2403. {
  2404. /** @var \Illuminate\Auth\SessionGuard $instance */
  2405. $instance->logoutCurrentDevice();
  2406. }
  2407. /**
  2408. * Invalidate other sessions for the current user.
  2409. *
  2410. * The application must be using the AuthenticateSession middleware.
  2411. *
  2412. * @param string $password
  2413. * @return \App\Models\User|null
  2414. * @throws \Illuminate\Auth\AuthenticationException
  2415. * @static
  2416. */
  2417. public static function logoutOtherDevices($password)
  2418. {
  2419. /** @var \Illuminate\Auth\SessionGuard $instance */
  2420. return $instance->logoutOtherDevices($password);
  2421. }
  2422. /**
  2423. * Register an authentication attempt event listener.
  2424. *
  2425. * @param mixed $callback
  2426. * @return void
  2427. * @static
  2428. */
  2429. public static function attempting($callback)
  2430. {
  2431. /** @var \Illuminate\Auth\SessionGuard $instance */
  2432. $instance->attempting($callback);
  2433. }
  2434. /**
  2435. * Get the last user we attempted to authenticate.
  2436. *
  2437. * @return \App\Models\User
  2438. * @static
  2439. */
  2440. public static function getLastAttempted()
  2441. {
  2442. /** @var \Illuminate\Auth\SessionGuard $instance */
  2443. return $instance->getLastAttempted();
  2444. }
  2445. /**
  2446. * Get a unique identifier for the auth session value.
  2447. *
  2448. * @return string
  2449. * @static
  2450. */
  2451. public static function getName()
  2452. {
  2453. /** @var \Illuminate\Auth\SessionGuard $instance */
  2454. return $instance->getName();
  2455. }
  2456. /**
  2457. * Get the name of the cookie used to store the "recaller".
  2458. *
  2459. * @return string
  2460. * @static
  2461. */
  2462. public static function getRecallerName()
  2463. {
  2464. /** @var \Illuminate\Auth\SessionGuard $instance */
  2465. return $instance->getRecallerName();
  2466. }
  2467. /**
  2468. * Determine if the user was authenticated via "remember me" cookie.
  2469. *
  2470. * @return bool
  2471. * @static
  2472. */
  2473. public static function viaRemember()
  2474. {
  2475. /** @var \Illuminate\Auth\SessionGuard $instance */
  2476. return $instance->viaRemember();
  2477. }
  2478. /**
  2479. * Set the number of minutes the remember me cookie should be valid for.
  2480. *
  2481. * @param int $minutes
  2482. * @return \Illuminate\Auth\SessionGuard
  2483. * @static
  2484. */
  2485. public static function setRememberDuration($minutes)
  2486. {
  2487. /** @var \Illuminate\Auth\SessionGuard $instance */
  2488. return $instance->setRememberDuration($minutes);
  2489. }
  2490. /**
  2491. * Get the cookie creator instance used by the guard.
  2492. *
  2493. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  2494. * @throws \RuntimeException
  2495. * @static
  2496. */
  2497. public static function getCookieJar()
  2498. {
  2499. /** @var \Illuminate\Auth\SessionGuard $instance */
  2500. return $instance->getCookieJar();
  2501. }
  2502. /**
  2503. * Set the cookie creator instance used by the guard.
  2504. *
  2505. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  2506. * @return void
  2507. * @static
  2508. */
  2509. public static function setCookieJar($cookie)
  2510. {
  2511. /** @var \Illuminate\Auth\SessionGuard $instance */
  2512. $instance->setCookieJar($cookie);
  2513. }
  2514. /**
  2515. * Get the event dispatcher instance.
  2516. *
  2517. * @return \Illuminate\Contracts\Events\Dispatcher
  2518. * @static
  2519. */
  2520. public static function getDispatcher()
  2521. {
  2522. /** @var \Illuminate\Auth\SessionGuard $instance */
  2523. return $instance->getDispatcher();
  2524. }
  2525. /**
  2526. * Set the event dispatcher instance.
  2527. *
  2528. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2529. * @return void
  2530. * @static
  2531. */
  2532. public static function setDispatcher($events)
  2533. {
  2534. /** @var \Illuminate\Auth\SessionGuard $instance */
  2535. $instance->setDispatcher($events);
  2536. }
  2537. /**
  2538. * Get the session store used by the guard.
  2539. *
  2540. * @return \Illuminate\Contracts\Session\Session
  2541. * @static
  2542. */
  2543. public static function getSession()
  2544. {
  2545. /** @var \Illuminate\Auth\SessionGuard $instance */
  2546. return $instance->getSession();
  2547. }
  2548. /**
  2549. * Return the currently cached user.
  2550. *
  2551. * @return \App\Models\User|null
  2552. * @static
  2553. */
  2554. public static function getUser()
  2555. {
  2556. /** @var \Illuminate\Auth\SessionGuard $instance */
  2557. return $instance->getUser();
  2558. }
  2559. /**
  2560. * Set the current user.
  2561. *
  2562. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2563. * @return \Illuminate\Auth\SessionGuard
  2564. * @static
  2565. */
  2566. public static function setUser($user)
  2567. {
  2568. /** @var \Illuminate\Auth\SessionGuard $instance */
  2569. return $instance->setUser($user);
  2570. }
  2571. /**
  2572. * Get the current request instance.
  2573. *
  2574. * @return \Symfony\Component\HttpFoundation\Request
  2575. * @static
  2576. */
  2577. public static function getRequest()
  2578. {
  2579. /** @var \Illuminate\Auth\SessionGuard $instance */
  2580. return $instance->getRequest();
  2581. }
  2582. /**
  2583. * Set the current request instance.
  2584. *
  2585. * @param \Symfony\Component\HttpFoundation\Request $request
  2586. * @return \Illuminate\Auth\SessionGuard
  2587. * @static
  2588. */
  2589. public static function setRequest($request)
  2590. {
  2591. /** @var \Illuminate\Auth\SessionGuard $instance */
  2592. return $instance->setRequest($request);
  2593. }
  2594. /**
  2595. * Get the timebox instance used by the guard.
  2596. *
  2597. * @return \Illuminate\Support\Timebox
  2598. * @static
  2599. */
  2600. public static function getTimebox()
  2601. {
  2602. /** @var \Illuminate\Auth\SessionGuard $instance */
  2603. return $instance->getTimebox();
  2604. }
  2605. /**
  2606. * Determine if the current user is authenticated. If not, throw an exception.
  2607. *
  2608. * @return \App\Models\User
  2609. * @throws \Illuminate\Auth\AuthenticationException
  2610. * @static
  2611. */
  2612. public static function authenticate()
  2613. {
  2614. /** @var \Illuminate\Auth\SessionGuard $instance */
  2615. return $instance->authenticate();
  2616. }
  2617. /**
  2618. * Determine if the guard has a user instance.
  2619. *
  2620. * @return bool
  2621. * @static
  2622. */
  2623. public static function hasUser()
  2624. {
  2625. /** @var \Illuminate\Auth\SessionGuard $instance */
  2626. return $instance->hasUser();
  2627. }
  2628. /**
  2629. * Determine if the current user is authenticated.
  2630. *
  2631. * @return bool
  2632. * @static
  2633. */
  2634. public static function check()
  2635. {
  2636. /** @var \Illuminate\Auth\SessionGuard $instance */
  2637. return $instance->check();
  2638. }
  2639. /**
  2640. * Determine if the current user is a guest.
  2641. *
  2642. * @return bool
  2643. * @static
  2644. */
  2645. public static function guest()
  2646. {
  2647. /** @var \Illuminate\Auth\SessionGuard $instance */
  2648. return $instance->guest();
  2649. }
  2650. /**
  2651. * Forget the current user.
  2652. *
  2653. * @return \Illuminate\Auth\SessionGuard
  2654. * @static
  2655. */
  2656. public static function forgetUser()
  2657. {
  2658. /** @var \Illuminate\Auth\SessionGuard $instance */
  2659. return $instance->forgetUser();
  2660. }
  2661. /**
  2662. * Get the user provider used by the guard.
  2663. *
  2664. * @return \Illuminate\Contracts\Auth\UserProvider
  2665. * @static
  2666. */
  2667. public static function getProvider()
  2668. {
  2669. /** @var \Illuminate\Auth\SessionGuard $instance */
  2670. return $instance->getProvider();
  2671. }
  2672. /**
  2673. * Set the user provider used by the guard.
  2674. *
  2675. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2676. * @return void
  2677. * @static
  2678. */
  2679. public static function setProvider($provider)
  2680. {
  2681. /** @var \Illuminate\Auth\SessionGuard $instance */
  2682. $instance->setProvider($provider);
  2683. }
  2684. /**
  2685. * Register a custom macro.
  2686. *
  2687. * @param string $name
  2688. * @param object|callable $macro
  2689. * @param-closure-this static $macro
  2690. * @return void
  2691. * @static
  2692. */
  2693. public static function macro($name, $macro)
  2694. {
  2695. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2696. }
  2697. /**
  2698. * Mix another object into the class.
  2699. *
  2700. * @param object $mixin
  2701. * @param bool $replace
  2702. * @return void
  2703. * @throws \ReflectionException
  2704. * @static
  2705. */
  2706. public static function mixin($mixin, $replace = true)
  2707. {
  2708. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2709. }
  2710. /**
  2711. * Checks if macro is registered.
  2712. *
  2713. * @param string $name
  2714. * @return bool
  2715. * @static
  2716. */
  2717. public static function hasMacro($name)
  2718. {
  2719. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2720. }
  2721. /**
  2722. * Flush the existing macros.
  2723. *
  2724. * @return void
  2725. * @static
  2726. */
  2727. public static function flushMacros()
  2728. {
  2729. \Illuminate\Auth\SessionGuard::flushMacros();
  2730. }
  2731. }
  2732. /**
  2733. * @see \Illuminate\View\Compilers\BladeCompiler
  2734. */
  2735. class Blade {
  2736. /**
  2737. * Compile the view at the given path.
  2738. *
  2739. * @param string|null $path
  2740. * @return void
  2741. * @static
  2742. */
  2743. public static function compile($path = null)
  2744. {
  2745. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2746. $instance->compile($path);
  2747. }
  2748. /**
  2749. * Get the path currently being compiled.
  2750. *
  2751. * @return string
  2752. * @static
  2753. */
  2754. public static function getPath()
  2755. {
  2756. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2757. return $instance->getPath();
  2758. }
  2759. /**
  2760. * Set the path currently being compiled.
  2761. *
  2762. * @param string $path
  2763. * @return void
  2764. * @static
  2765. */
  2766. public static function setPath($path)
  2767. {
  2768. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2769. $instance->setPath($path);
  2770. }
  2771. /**
  2772. * Compile the given Blade template contents.
  2773. *
  2774. * @param string $value
  2775. * @return string
  2776. * @static
  2777. */
  2778. public static function compileString($value)
  2779. {
  2780. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2781. return $instance->compileString($value);
  2782. }
  2783. /**
  2784. * Evaluate and render a Blade string to HTML.
  2785. *
  2786. * @param string $string
  2787. * @param array $data
  2788. * @param bool $deleteCachedView
  2789. * @return string
  2790. * @static
  2791. */
  2792. public static function render($string, $data = [], $deleteCachedView = false)
  2793. {
  2794. return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
  2795. }
  2796. /**
  2797. * Render a component instance to HTML.
  2798. *
  2799. * @param \Illuminate\View\Component $component
  2800. * @return string
  2801. * @static
  2802. */
  2803. public static function renderComponent($component)
  2804. {
  2805. return \Illuminate\View\Compilers\BladeCompiler::renderComponent($component);
  2806. }
  2807. /**
  2808. * Strip the parentheses from the given expression.
  2809. *
  2810. * @param string $expression
  2811. * @return string
  2812. * @static
  2813. */
  2814. public static function stripParentheses($expression)
  2815. {
  2816. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2817. return $instance->stripParentheses($expression);
  2818. }
  2819. /**
  2820. * Register a custom Blade compiler.
  2821. *
  2822. * @param callable $compiler
  2823. * @return void
  2824. * @static
  2825. */
  2826. public static function extend($compiler)
  2827. {
  2828. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2829. $instance->extend($compiler);
  2830. }
  2831. /**
  2832. * Get the extensions used by the compiler.
  2833. *
  2834. * @return array
  2835. * @static
  2836. */
  2837. public static function getExtensions()
  2838. {
  2839. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2840. return $instance->getExtensions();
  2841. }
  2842. /**
  2843. * Register an "if" statement directive.
  2844. *
  2845. * @param string $name
  2846. * @param callable $callback
  2847. * @return void
  2848. * @static
  2849. */
  2850. public static function if($name, $callback)
  2851. {
  2852. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2853. $instance->if($name, $callback);
  2854. }
  2855. /**
  2856. * Check the result of a condition.
  2857. *
  2858. * @param string $name
  2859. * @param mixed $parameters
  2860. * @return bool
  2861. * @static
  2862. */
  2863. public static function check($name, ...$parameters)
  2864. {
  2865. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2866. return $instance->check($name, ...$parameters);
  2867. }
  2868. /**
  2869. * Register a class-based component alias directive.
  2870. *
  2871. * @param string $class
  2872. * @param string|null $alias
  2873. * @param string $prefix
  2874. * @return void
  2875. * @static
  2876. */
  2877. public static function component($class, $alias = null, $prefix = '')
  2878. {
  2879. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2880. $instance->component($class, $alias, $prefix);
  2881. }
  2882. /**
  2883. * Register an array of class-based components.
  2884. *
  2885. * @param array $components
  2886. * @param string $prefix
  2887. * @return void
  2888. * @static
  2889. */
  2890. public static function components($components, $prefix = '')
  2891. {
  2892. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2893. $instance->components($components, $prefix);
  2894. }
  2895. /**
  2896. * Get the registered class component aliases.
  2897. *
  2898. * @return array
  2899. * @static
  2900. */
  2901. public static function getClassComponentAliases()
  2902. {
  2903. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2904. return $instance->getClassComponentAliases();
  2905. }
  2906. /**
  2907. * Register a new anonymous component path.
  2908. *
  2909. * @param string $path
  2910. * @param string|null $prefix
  2911. * @return void
  2912. * @static
  2913. */
  2914. public static function anonymousComponentPath($path, $prefix = null)
  2915. {
  2916. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2917. $instance->anonymousComponentPath($path, $prefix);
  2918. }
  2919. /**
  2920. * Register an anonymous component namespace.
  2921. *
  2922. * @param string $directory
  2923. * @param string|null $prefix
  2924. * @return void
  2925. * @static
  2926. */
  2927. public static function anonymousComponentNamespace($directory, $prefix = null)
  2928. {
  2929. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2930. $instance->anonymousComponentNamespace($directory, $prefix);
  2931. }
  2932. /**
  2933. * Register a class-based component namespace.
  2934. *
  2935. * @param string $namespace
  2936. * @param string $prefix
  2937. * @return void
  2938. * @static
  2939. */
  2940. public static function componentNamespace($namespace, $prefix)
  2941. {
  2942. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2943. $instance->componentNamespace($namespace, $prefix);
  2944. }
  2945. /**
  2946. * Get the registered anonymous component paths.
  2947. *
  2948. * @return array
  2949. * @static
  2950. */
  2951. public static function getAnonymousComponentPaths()
  2952. {
  2953. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2954. return $instance->getAnonymousComponentPaths();
  2955. }
  2956. /**
  2957. * Get the registered anonymous component namespaces.
  2958. *
  2959. * @return array
  2960. * @static
  2961. */
  2962. public static function getAnonymousComponentNamespaces()
  2963. {
  2964. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2965. return $instance->getAnonymousComponentNamespaces();
  2966. }
  2967. /**
  2968. * Get the registered class component namespaces.
  2969. *
  2970. * @return array
  2971. * @static
  2972. */
  2973. public static function getClassComponentNamespaces()
  2974. {
  2975. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2976. return $instance->getClassComponentNamespaces();
  2977. }
  2978. /**
  2979. * Register a component alias directive.
  2980. *
  2981. * @param string $path
  2982. * @param string|null $alias
  2983. * @return void
  2984. * @static
  2985. */
  2986. public static function aliasComponent($path, $alias = null)
  2987. {
  2988. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2989. $instance->aliasComponent($path, $alias);
  2990. }
  2991. /**
  2992. * Register an include alias directive.
  2993. *
  2994. * @param string $path
  2995. * @param string|null $alias
  2996. * @return void
  2997. * @static
  2998. */
  2999. public static function include($path, $alias = null)
  3000. {
  3001. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3002. $instance->include($path, $alias);
  3003. }
  3004. /**
  3005. * Register an include alias directive.
  3006. *
  3007. * @param string $path
  3008. * @param string|null $alias
  3009. * @return void
  3010. * @static
  3011. */
  3012. public static function aliasInclude($path, $alias = null)
  3013. {
  3014. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3015. $instance->aliasInclude($path, $alias);
  3016. }
  3017. /**
  3018. * Register a handler for custom directives, binding the handler to the compiler.
  3019. *
  3020. * @param string $name
  3021. * @param callable $handler
  3022. * @return void
  3023. * @throws \InvalidArgumentException
  3024. * @static
  3025. */
  3026. public static function bindDirective($name, $handler)
  3027. {
  3028. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3029. $instance->bindDirective($name, $handler);
  3030. }
  3031. /**
  3032. * Register a handler for custom directives.
  3033. *
  3034. * @param string $name
  3035. * @param callable $handler
  3036. * @param bool $bind
  3037. * @return void
  3038. * @throws \InvalidArgumentException
  3039. * @static
  3040. */
  3041. public static function directive($name, $handler, $bind = false)
  3042. {
  3043. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3044. $instance->directive($name, $handler, $bind);
  3045. }
  3046. /**
  3047. * Get the list of custom directives.
  3048. *
  3049. * @return array
  3050. * @static
  3051. */
  3052. public static function getCustomDirectives()
  3053. {
  3054. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3055. return $instance->getCustomDirectives();
  3056. }
  3057. /**
  3058. * Indicate that the following callable should be used to prepare strings for compilation.
  3059. *
  3060. * @param callable $callback
  3061. * @return \Illuminate\View\Compilers\BladeCompiler
  3062. * @static
  3063. */
  3064. public static function prepareStringsForCompilationUsing($callback)
  3065. {
  3066. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3067. return $instance->prepareStringsForCompilationUsing($callback);
  3068. }
  3069. /**
  3070. * Register a new precompiler.
  3071. *
  3072. * @param callable $precompiler
  3073. * @return void
  3074. * @static
  3075. */
  3076. public static function precompiler($precompiler)
  3077. {
  3078. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3079. $instance->precompiler($precompiler);
  3080. }
  3081. /**
  3082. * Execute the given callback using a custom echo format.
  3083. *
  3084. * @param string $format
  3085. * @param callable $callback
  3086. * @return string
  3087. * @static
  3088. */
  3089. public static function usingEchoFormat($format, $callback)
  3090. {
  3091. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3092. return $instance->usingEchoFormat($format, $callback);
  3093. }
  3094. /**
  3095. * Set the echo format to be used by the compiler.
  3096. *
  3097. * @param string $format
  3098. * @return void
  3099. * @static
  3100. */
  3101. public static function setEchoFormat($format)
  3102. {
  3103. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3104. $instance->setEchoFormat($format);
  3105. }
  3106. /**
  3107. * Set the "echo" format to double encode entities.
  3108. *
  3109. * @return void
  3110. * @static
  3111. */
  3112. public static function withDoubleEncoding()
  3113. {
  3114. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3115. $instance->withDoubleEncoding();
  3116. }
  3117. /**
  3118. * Set the "echo" format to not double encode entities.
  3119. *
  3120. * @return void
  3121. * @static
  3122. */
  3123. public static function withoutDoubleEncoding()
  3124. {
  3125. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3126. $instance->withoutDoubleEncoding();
  3127. }
  3128. /**
  3129. * Indicate that component tags should not be compiled.
  3130. *
  3131. * @return void
  3132. * @static
  3133. */
  3134. public static function withoutComponentTags()
  3135. {
  3136. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3137. $instance->withoutComponentTags();
  3138. }
  3139. /**
  3140. * Get the path to the compiled version of a view.
  3141. *
  3142. * @param string $path
  3143. * @return string
  3144. * @static
  3145. */
  3146. public static function getCompiledPath($path)
  3147. {
  3148. //Method inherited from \Illuminate\View\Compilers\Compiler
  3149. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3150. return $instance->getCompiledPath($path);
  3151. }
  3152. /**
  3153. * Determine if the view at the given path is expired.
  3154. *
  3155. * @param string $path
  3156. * @return bool
  3157. * @throws \ErrorException
  3158. * @static
  3159. */
  3160. public static function isExpired($path)
  3161. {
  3162. //Method inherited from \Illuminate\View\Compilers\Compiler
  3163. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3164. return $instance->isExpired($path);
  3165. }
  3166. /**
  3167. * Get a new component hash for a component name.
  3168. *
  3169. * @param string $component
  3170. * @return string
  3171. * @static
  3172. */
  3173. public static function newComponentHash($component)
  3174. {
  3175. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  3176. }
  3177. /**
  3178. * Compile a class component opening.
  3179. *
  3180. * @param string $component
  3181. * @param string $alias
  3182. * @param string $data
  3183. * @param string $hash
  3184. * @return string
  3185. * @static
  3186. */
  3187. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  3188. {
  3189. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  3190. }
  3191. /**
  3192. * Compile the end-component statements into valid PHP.
  3193. *
  3194. * @return string
  3195. * @static
  3196. */
  3197. public static function compileEndComponentClass()
  3198. {
  3199. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3200. return $instance->compileEndComponentClass();
  3201. }
  3202. /**
  3203. * Sanitize the given component attribute value.
  3204. *
  3205. * @param mixed $value
  3206. * @return mixed
  3207. * @static
  3208. */
  3209. public static function sanitizeComponentAttribute($value)
  3210. {
  3211. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  3212. }
  3213. /**
  3214. * Compile an end-once block into valid PHP.
  3215. *
  3216. * @return string
  3217. * @static
  3218. */
  3219. public static function compileEndOnce()
  3220. {
  3221. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3222. return $instance->compileEndOnce();
  3223. }
  3224. /**
  3225. * Add a handler to be executed before echoing a given class.
  3226. *
  3227. * @param string|callable $class
  3228. * @param callable|null $handler
  3229. * @return void
  3230. * @static
  3231. */
  3232. public static function stringable($class, $handler = null)
  3233. {
  3234. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3235. $instance->stringable($class, $handler);
  3236. }
  3237. /**
  3238. * Compile Blade echos into valid PHP.
  3239. *
  3240. * @param string $value
  3241. * @return string
  3242. * @static
  3243. */
  3244. public static function compileEchos($value)
  3245. {
  3246. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3247. return $instance->compileEchos($value);
  3248. }
  3249. /**
  3250. * Apply the echo handler for the value if it exists.
  3251. *
  3252. * @param string $value
  3253. * @return string
  3254. * @static
  3255. */
  3256. public static function applyEchoHandler($value)
  3257. {
  3258. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  3259. return $instance->applyEchoHandler($value);
  3260. }
  3261. }
  3262. /**
  3263. * @method static mixed auth(\Illuminate\Http\Request $request)
  3264. * @method static mixed validAuthenticationResponse(\Illuminate\Http\Request $request, mixed $result)
  3265. * @method static void broadcast(array $channels, string $event, array $payload = [])
  3266. * @method static array|null resolveAuthenticatedUser(\Illuminate\Http\Request $request)
  3267. * @method static void resolveAuthenticatedUserUsing(\Closure $callback)
  3268. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(\Illuminate\Contracts\Broadcasting\HasBroadcastChannel|string $channel, callable|string $callback, array $options = [])
  3269. * @method static \Illuminate\Support\Collection getChannels()
  3270. * @see \Illuminate\Broadcasting\BroadcastManager
  3271. * @see \Illuminate\Broadcasting\Broadcasters\Broadcaster
  3272. */
  3273. class Broadcast {
  3274. /**
  3275. * Register the routes for handling broadcast channel authentication and sockets.
  3276. *
  3277. * @param array|null $attributes
  3278. * @return void
  3279. * @static
  3280. */
  3281. public static function routes($attributes = null)
  3282. {
  3283. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3284. $instance->routes($attributes);
  3285. }
  3286. /**
  3287. * Register the routes for handling broadcast user authentication.
  3288. *
  3289. * @param array|null $attributes
  3290. * @return void
  3291. * @static
  3292. */
  3293. public static function userRoutes($attributes = null)
  3294. {
  3295. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3296. $instance->userRoutes($attributes);
  3297. }
  3298. /**
  3299. * Register the routes for handling broadcast authentication and sockets.
  3300. *
  3301. * Alias of "routes" method.
  3302. *
  3303. * @param array|null $attributes
  3304. * @return void
  3305. * @static
  3306. */
  3307. public static function channelRoutes($attributes = null)
  3308. {
  3309. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3310. $instance->channelRoutes($attributes);
  3311. }
  3312. /**
  3313. * Get the socket ID for the given request.
  3314. *
  3315. * @param \Illuminate\Http\Request|null $request
  3316. * @return string|null
  3317. * @static
  3318. */
  3319. public static function socket($request = null)
  3320. {
  3321. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3322. return $instance->socket($request);
  3323. }
  3324. /**
  3325. * Begin sending an anonymous broadcast to the given channels.
  3326. *
  3327. * @static
  3328. */
  3329. public static function on($channels)
  3330. {
  3331. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3332. return $instance->on($channels);
  3333. }
  3334. /**
  3335. * Begin sending an anonymous broadcast to the given private channels.
  3336. *
  3337. * @static
  3338. */
  3339. public static function private($channel)
  3340. {
  3341. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3342. return $instance->private($channel);
  3343. }
  3344. /**
  3345. * Begin sending an anonymous broadcast to the given presence channels.
  3346. *
  3347. * @static
  3348. */
  3349. public static function presence($channel)
  3350. {
  3351. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3352. return $instance->presence($channel);
  3353. }
  3354. /**
  3355. * Begin broadcasting an event.
  3356. *
  3357. * @param mixed|null $event
  3358. * @return \Illuminate\Broadcasting\PendingBroadcast
  3359. * @static
  3360. */
  3361. public static function event($event = null)
  3362. {
  3363. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3364. return $instance->event($event);
  3365. }
  3366. /**
  3367. * Queue the given event for broadcast.
  3368. *
  3369. * @param mixed $event
  3370. * @return void
  3371. * @static
  3372. */
  3373. public static function queue($event)
  3374. {
  3375. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3376. $instance->queue($event);
  3377. }
  3378. /**
  3379. * Get a driver instance.
  3380. *
  3381. * @param string|null $driver
  3382. * @return mixed
  3383. * @static
  3384. */
  3385. public static function connection($driver = null)
  3386. {
  3387. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3388. return $instance->connection($driver);
  3389. }
  3390. /**
  3391. * Get a driver instance.
  3392. *
  3393. * @param string|null $name
  3394. * @return mixed
  3395. * @static
  3396. */
  3397. public static function driver($name = null)
  3398. {
  3399. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3400. return $instance->driver($name);
  3401. }
  3402. /**
  3403. * Get a Pusher instance for the given configuration.
  3404. *
  3405. * @param array $config
  3406. * @return \Pusher\Pusher
  3407. * @static
  3408. */
  3409. public static function pusher($config)
  3410. {
  3411. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3412. return $instance->pusher($config);
  3413. }
  3414. /**
  3415. * Get an Ably instance for the given configuration.
  3416. *
  3417. * @param array $config
  3418. * @return \Ably\AblyRest
  3419. * @static
  3420. */
  3421. public static function ably($config)
  3422. {
  3423. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3424. return $instance->ably($config);
  3425. }
  3426. /**
  3427. * Get the default driver name.
  3428. *
  3429. * @return string
  3430. * @static
  3431. */
  3432. public static function getDefaultDriver()
  3433. {
  3434. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3435. return $instance->getDefaultDriver();
  3436. }
  3437. /**
  3438. * Set the default driver name.
  3439. *
  3440. * @param string $name
  3441. * @return void
  3442. * @static
  3443. */
  3444. public static function setDefaultDriver($name)
  3445. {
  3446. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3447. $instance->setDefaultDriver($name);
  3448. }
  3449. /**
  3450. * Disconnect the given disk and remove from local cache.
  3451. *
  3452. * @param string|null $name
  3453. * @return void
  3454. * @static
  3455. */
  3456. public static function purge($name = null)
  3457. {
  3458. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3459. $instance->purge($name);
  3460. }
  3461. /**
  3462. * Register a custom driver creator Closure.
  3463. *
  3464. * @param string $driver
  3465. * @param \Closure $callback
  3466. * @return \Illuminate\Broadcasting\BroadcastManager
  3467. * @static
  3468. */
  3469. public static function extend($driver, $callback)
  3470. {
  3471. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3472. return $instance->extend($driver, $callback);
  3473. }
  3474. /**
  3475. * Get the application instance used by the manager.
  3476. *
  3477. * @return \Illuminate\Contracts\Foundation\Application
  3478. * @static
  3479. */
  3480. public static function getApplication()
  3481. {
  3482. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3483. return $instance->getApplication();
  3484. }
  3485. /**
  3486. * Set the application instance used by the manager.
  3487. *
  3488. * @param \Illuminate\Contracts\Foundation\Application $app
  3489. * @return \Illuminate\Broadcasting\BroadcastManager
  3490. * @static
  3491. */
  3492. public static function setApplication($app)
  3493. {
  3494. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3495. return $instance->setApplication($app);
  3496. }
  3497. /**
  3498. * Forget all of the resolved driver instances.
  3499. *
  3500. * @return \Illuminate\Broadcasting\BroadcastManager
  3501. * @static
  3502. */
  3503. public static function forgetDrivers()
  3504. {
  3505. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3506. return $instance->forgetDrivers();
  3507. }
  3508. }
  3509. /**
  3510. * @see \Illuminate\Bus\Dispatcher
  3511. * @see \Illuminate\Support\Testing\Fakes\BusFake
  3512. */
  3513. class Bus {
  3514. /**
  3515. * Dispatch a command to its appropriate handler.
  3516. *
  3517. * @param mixed $command
  3518. * @return mixed
  3519. * @static
  3520. */
  3521. public static function dispatch($command)
  3522. {
  3523. /** @var \Illuminate\Bus\Dispatcher $instance */
  3524. return $instance->dispatch($command);
  3525. }
  3526. /**
  3527. * Dispatch a command to its appropriate handler in the current process.
  3528. *
  3529. * Queueable jobs will be dispatched to the "sync" queue.
  3530. *
  3531. * @param mixed $command
  3532. * @param mixed $handler
  3533. * @return mixed
  3534. * @static
  3535. */
  3536. public static function dispatchSync($command, $handler = null)
  3537. {
  3538. /** @var \Illuminate\Bus\Dispatcher $instance */
  3539. return $instance->dispatchSync($command, $handler);
  3540. }
  3541. /**
  3542. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  3543. *
  3544. * @param mixed $command
  3545. * @param mixed $handler
  3546. * @return mixed
  3547. * @static
  3548. */
  3549. public static function dispatchNow($command, $handler = null)
  3550. {
  3551. /** @var \Illuminate\Bus\Dispatcher $instance */
  3552. return $instance->dispatchNow($command, $handler);
  3553. }
  3554. /**
  3555. * Attempt to find the batch with the given ID.
  3556. *
  3557. * @param string $batchId
  3558. * @return \Illuminate\Bus\Batch|null
  3559. * @static
  3560. */
  3561. public static function findBatch($batchId)
  3562. {
  3563. /** @var \Illuminate\Bus\Dispatcher $instance */
  3564. return $instance->findBatch($batchId);
  3565. }
  3566. /**
  3567. * Create a new batch of queueable jobs.
  3568. *
  3569. * @param \Illuminate\Support\Collection|array|mixed $jobs
  3570. * @return \Illuminate\Bus\PendingBatch
  3571. * @static
  3572. */
  3573. public static function batch($jobs)
  3574. {
  3575. /** @var \Illuminate\Bus\Dispatcher $instance */
  3576. return $instance->batch($jobs);
  3577. }
  3578. /**
  3579. * Create a new chain of queueable jobs.
  3580. *
  3581. * @param \Illuminate\Support\Collection|array $jobs
  3582. * @return \Illuminate\Foundation\Bus\PendingChain
  3583. * @static
  3584. */
  3585. public static function chain($jobs)
  3586. {
  3587. /** @var \Illuminate\Bus\Dispatcher $instance */
  3588. return $instance->chain($jobs);
  3589. }
  3590. /**
  3591. * Determine if the given command has a handler.
  3592. *
  3593. * @param mixed $command
  3594. * @return bool
  3595. * @static
  3596. */
  3597. public static function hasCommandHandler($command)
  3598. {
  3599. /** @var \Illuminate\Bus\Dispatcher $instance */
  3600. return $instance->hasCommandHandler($command);
  3601. }
  3602. /**
  3603. * Retrieve the handler for a command.
  3604. *
  3605. * @param mixed $command
  3606. * @return bool|mixed
  3607. * @static
  3608. */
  3609. public static function getCommandHandler($command)
  3610. {
  3611. /** @var \Illuminate\Bus\Dispatcher $instance */
  3612. return $instance->getCommandHandler($command);
  3613. }
  3614. /**
  3615. * Dispatch a command to its appropriate handler behind a queue.
  3616. *
  3617. * @param mixed $command
  3618. * @return mixed
  3619. * @throws \RuntimeException
  3620. * @static
  3621. */
  3622. public static function dispatchToQueue($command)
  3623. {
  3624. /** @var \Illuminate\Bus\Dispatcher $instance */
  3625. return $instance->dispatchToQueue($command);
  3626. }
  3627. /**
  3628. * Dispatch a command to its appropriate handler after the current process.
  3629. *
  3630. * @param mixed $command
  3631. * @param mixed $handler
  3632. * @return void
  3633. * @static
  3634. */
  3635. public static function dispatchAfterResponse($command, $handler = null)
  3636. {
  3637. /** @var \Illuminate\Bus\Dispatcher $instance */
  3638. $instance->dispatchAfterResponse($command, $handler);
  3639. }
  3640. /**
  3641. * Set the pipes through which commands should be piped before dispatching.
  3642. *
  3643. * @param array $pipes
  3644. * @return \Illuminate\Bus\Dispatcher
  3645. * @static
  3646. */
  3647. public static function pipeThrough($pipes)
  3648. {
  3649. /** @var \Illuminate\Bus\Dispatcher $instance */
  3650. return $instance->pipeThrough($pipes);
  3651. }
  3652. /**
  3653. * Map a command to a handler.
  3654. *
  3655. * @param array $map
  3656. * @return \Illuminate\Bus\Dispatcher
  3657. * @static
  3658. */
  3659. public static function map($map)
  3660. {
  3661. /** @var \Illuminate\Bus\Dispatcher $instance */
  3662. return $instance->map($map);
  3663. }
  3664. /**
  3665. * Allow dispatching after responses.
  3666. *
  3667. * @return \Illuminate\Bus\Dispatcher
  3668. * @static
  3669. */
  3670. public static function withDispatchingAfterResponses()
  3671. {
  3672. /** @var \Illuminate\Bus\Dispatcher $instance */
  3673. return $instance->withDispatchingAfterResponses();
  3674. }
  3675. /**
  3676. * Disable dispatching after responses.
  3677. *
  3678. * @return \Illuminate\Bus\Dispatcher
  3679. * @static
  3680. */
  3681. public static function withoutDispatchingAfterResponses()
  3682. {
  3683. /** @var \Illuminate\Bus\Dispatcher $instance */
  3684. return $instance->withoutDispatchingAfterResponses();
  3685. }
  3686. /**
  3687. * Specify the jobs that should be dispatched instead of faked.
  3688. *
  3689. * @param array|string $jobsToDispatch
  3690. * @return \Illuminate\Support\Testing\Fakes\BusFake
  3691. * @static
  3692. */
  3693. public static function except($jobsToDispatch)
  3694. {
  3695. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3696. return $instance->except($jobsToDispatch);
  3697. }
  3698. /**
  3699. * Assert if a job was dispatched based on a truth-test callback.
  3700. *
  3701. * @param string|\Closure $command
  3702. * @param callable|int|null $callback
  3703. * @return void
  3704. * @static
  3705. */
  3706. public static function assertDispatched($command, $callback = null)
  3707. {
  3708. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3709. $instance->assertDispatched($command, $callback);
  3710. }
  3711. /**
  3712. * Assert if a job was pushed a number of times.
  3713. *
  3714. * @param string|\Closure $command
  3715. * @param int $times
  3716. * @return void
  3717. * @static
  3718. */
  3719. public static function assertDispatchedTimes($command, $times = 1)
  3720. {
  3721. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3722. $instance->assertDispatchedTimes($command, $times);
  3723. }
  3724. /**
  3725. * Determine if a job was dispatched based on a truth-test callback.
  3726. *
  3727. * @param string|\Closure $command
  3728. * @param callable|null $callback
  3729. * @return void
  3730. * @static
  3731. */
  3732. public static function assertNotDispatched($command, $callback = null)
  3733. {
  3734. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3735. $instance->assertNotDispatched($command, $callback);
  3736. }
  3737. /**
  3738. * Assert that no jobs were dispatched.
  3739. *
  3740. * @return void
  3741. * @static
  3742. */
  3743. public static function assertNothingDispatched()
  3744. {
  3745. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3746. $instance->assertNothingDispatched();
  3747. }
  3748. /**
  3749. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3750. *
  3751. * @param string|\Closure $command
  3752. * @param callable|int|null $callback
  3753. * @return void
  3754. * @static
  3755. */
  3756. public static function assertDispatchedSync($command, $callback = null)
  3757. {
  3758. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3759. $instance->assertDispatchedSync($command, $callback);
  3760. }
  3761. /**
  3762. * Assert if a job was pushed synchronously a number of times.
  3763. *
  3764. * @param string|\Closure $command
  3765. * @param int $times
  3766. * @return void
  3767. * @static
  3768. */
  3769. public static function assertDispatchedSyncTimes($command, $times = 1)
  3770. {
  3771. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3772. $instance->assertDispatchedSyncTimes($command, $times);
  3773. }
  3774. /**
  3775. * Determine if a job was dispatched based on a truth-test callback.
  3776. *
  3777. * @param string|\Closure $command
  3778. * @param callable|null $callback
  3779. * @return void
  3780. * @static
  3781. */
  3782. public static function assertNotDispatchedSync($command, $callback = null)
  3783. {
  3784. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3785. $instance->assertNotDispatchedSync($command, $callback);
  3786. }
  3787. /**
  3788. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3789. *
  3790. * @param string|\Closure $command
  3791. * @param callable|int|null $callback
  3792. * @return void
  3793. * @static
  3794. */
  3795. public static function assertDispatchedAfterResponse($command, $callback = null)
  3796. {
  3797. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3798. $instance->assertDispatchedAfterResponse($command, $callback);
  3799. }
  3800. /**
  3801. * Assert if a job was pushed after the response was sent a number of times.
  3802. *
  3803. * @param string|\Closure $command
  3804. * @param int $times
  3805. * @return void
  3806. * @static
  3807. */
  3808. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3809. {
  3810. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3811. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3812. }
  3813. /**
  3814. * Determine if a job was dispatched based on a truth-test callback.
  3815. *
  3816. * @param string|\Closure $command
  3817. * @param callable|null $callback
  3818. * @return void
  3819. * @static
  3820. */
  3821. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3822. {
  3823. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3824. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3825. }
  3826. /**
  3827. * Assert if a chain of jobs was dispatched.
  3828. *
  3829. * @param array $expectedChain
  3830. * @return void
  3831. * @static
  3832. */
  3833. public static function assertChained($expectedChain)
  3834. {
  3835. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3836. $instance->assertChained($expectedChain);
  3837. }
  3838. /**
  3839. * Assert no chained jobs was dispatched.
  3840. *
  3841. * @return void
  3842. * @static
  3843. */
  3844. public static function assertNothingChained()
  3845. {
  3846. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3847. $instance->assertNothingChained();
  3848. }
  3849. /**
  3850. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3851. *
  3852. * @param string|\Closure $command
  3853. * @param callable|null $callback
  3854. * @return void
  3855. * @static
  3856. */
  3857. public static function assertDispatchedWithoutChain($command, $callback = null)
  3858. {
  3859. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3860. $instance->assertDispatchedWithoutChain($command, $callback);
  3861. }
  3862. /**
  3863. * Create a new assertion about a chained batch.
  3864. *
  3865. * @param \Closure $callback
  3866. * @return \Illuminate\Support\Testing\Fakes\ChainedBatchTruthTest
  3867. * @static
  3868. */
  3869. public static function chainedBatch($callback)
  3870. {
  3871. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3872. return $instance->chainedBatch($callback);
  3873. }
  3874. /**
  3875. * Assert if a batch was dispatched based on a truth-test callback.
  3876. *
  3877. * @param callable $callback
  3878. * @return void
  3879. * @static
  3880. */
  3881. public static function assertBatched($callback)
  3882. {
  3883. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3884. $instance->assertBatched($callback);
  3885. }
  3886. /**
  3887. * Assert the number of batches that have been dispatched.
  3888. *
  3889. * @param int $count
  3890. * @return void
  3891. * @static
  3892. */
  3893. public static function assertBatchCount($count)
  3894. {
  3895. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3896. $instance->assertBatchCount($count);
  3897. }
  3898. /**
  3899. * Assert that no batched jobs were dispatched.
  3900. *
  3901. * @return void
  3902. * @static
  3903. */
  3904. public static function assertNothingBatched()
  3905. {
  3906. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3907. $instance->assertNothingBatched();
  3908. }
  3909. /**
  3910. * Assert that no jobs were dispatched, chained, or batched.
  3911. *
  3912. * @return void
  3913. * @static
  3914. */
  3915. public static function assertNothingPlaced()
  3916. {
  3917. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3918. $instance->assertNothingPlaced();
  3919. }
  3920. /**
  3921. * Get all of the jobs matching a truth-test callback.
  3922. *
  3923. * @param string $command
  3924. * @param callable|null $callback
  3925. * @return \Illuminate\Support\Collection
  3926. * @static
  3927. */
  3928. public static function dispatched($command, $callback = null)
  3929. {
  3930. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3931. return $instance->dispatched($command, $callback);
  3932. }
  3933. /**
  3934. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3935. *
  3936. * @param string $command
  3937. * @param callable|null $callback
  3938. * @return \Illuminate\Support\Collection
  3939. * @static
  3940. */
  3941. public static function dispatchedSync($command, $callback = null)
  3942. {
  3943. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3944. return $instance->dispatchedSync($command, $callback);
  3945. }
  3946. /**
  3947. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3948. *
  3949. * @param string $command
  3950. * @param callable|null $callback
  3951. * @return \Illuminate\Support\Collection
  3952. * @static
  3953. */
  3954. public static function dispatchedAfterResponse($command, $callback = null)
  3955. {
  3956. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3957. return $instance->dispatchedAfterResponse($command, $callback);
  3958. }
  3959. /**
  3960. * Get all of the pending batches matching a truth-test callback.
  3961. *
  3962. * @param callable $callback
  3963. * @return \Illuminate\Support\Collection
  3964. * @static
  3965. */
  3966. public static function batched($callback)
  3967. {
  3968. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3969. return $instance->batched($callback);
  3970. }
  3971. /**
  3972. * Determine if there are any stored commands for a given class.
  3973. *
  3974. * @param string $command
  3975. * @return bool
  3976. * @static
  3977. */
  3978. public static function hasDispatched($command)
  3979. {
  3980. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3981. return $instance->hasDispatched($command);
  3982. }
  3983. /**
  3984. * Determine if there are any stored commands for a given class.
  3985. *
  3986. * @param string $command
  3987. * @return bool
  3988. * @static
  3989. */
  3990. public static function hasDispatchedSync($command)
  3991. {
  3992. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3993. return $instance->hasDispatchedSync($command);
  3994. }
  3995. /**
  3996. * Determine if there are any stored commands for a given class.
  3997. *
  3998. * @param string $command
  3999. * @return bool
  4000. * @static
  4001. */
  4002. public static function hasDispatchedAfterResponse($command)
  4003. {
  4004. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  4005. return $instance->hasDispatchedAfterResponse($command);
  4006. }
  4007. /**
  4008. * Dispatch an empty job batch for testing.
  4009. *
  4010. * @param string $name
  4011. * @return \Illuminate\Bus\Batch
  4012. * @static
  4013. */
  4014. public static function dispatchFakeBatch($name = '')
  4015. {
  4016. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  4017. return $instance->dispatchFakeBatch($name);
  4018. }
  4019. /**
  4020. * Record the fake pending batch dispatch.
  4021. *
  4022. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  4023. * @return \Illuminate\Bus\Batch
  4024. * @static
  4025. */
  4026. public static function recordPendingBatch($pendingBatch)
  4027. {
  4028. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  4029. return $instance->recordPendingBatch($pendingBatch);
  4030. }
  4031. /**
  4032. * Specify if commands should be serialized and restored when being batched.
  4033. *
  4034. * @param bool $serializeAndRestore
  4035. * @return \Illuminate\Support\Testing\Fakes\BusFake
  4036. * @static
  4037. */
  4038. public static function serializeAndRestore($serializeAndRestore = true)
  4039. {
  4040. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  4041. return $instance->serializeAndRestore($serializeAndRestore);
  4042. }
  4043. /**
  4044. * Get the batches that have been dispatched.
  4045. *
  4046. * @return array
  4047. * @static
  4048. */
  4049. public static function dispatchedBatches()
  4050. {
  4051. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  4052. return $instance->dispatchedBatches();
  4053. }
  4054. }
  4055. /**
  4056. * @see \Illuminate\Cache\CacheManager
  4057. * @see \Illuminate\Cache\Repository
  4058. */
  4059. class Cache {
  4060. /**
  4061. * Get a cache store instance by name, wrapped in a repository.
  4062. *
  4063. * @param string|null $name
  4064. * @return \Illuminate\Contracts\Cache\Repository
  4065. * @static
  4066. */
  4067. public static function store($name = null)
  4068. {
  4069. /** @var \Illuminate\Cache\CacheManager $instance */
  4070. return $instance->store($name);
  4071. }
  4072. /**
  4073. * Get a cache driver instance.
  4074. *
  4075. * @param string|null $driver
  4076. * @return \Illuminate\Contracts\Cache\Repository
  4077. * @static
  4078. */
  4079. public static function driver($driver = null)
  4080. {
  4081. /** @var \Illuminate\Cache\CacheManager $instance */
  4082. return $instance->driver($driver);
  4083. }
  4084. /**
  4085. * Get a memoized cache driver instance.
  4086. *
  4087. * @param string|null $driver
  4088. * @return \Illuminate\Contracts\Cache\Repository
  4089. * @static
  4090. */
  4091. public static function memo($driver = null)
  4092. {
  4093. /** @var \Illuminate\Cache\CacheManager $instance */
  4094. return $instance->memo($driver);
  4095. }
  4096. /**
  4097. * Resolve the given store.
  4098. *
  4099. * @param string $name
  4100. * @return \Illuminate\Contracts\Cache\Repository
  4101. * @throws \InvalidArgumentException
  4102. * @static
  4103. */
  4104. public static function resolve($name)
  4105. {
  4106. /** @var \Illuminate\Cache\CacheManager $instance */
  4107. return $instance->resolve($name);
  4108. }
  4109. /**
  4110. * Build a cache repository with the given configuration.
  4111. *
  4112. * @param array $config
  4113. * @return \Illuminate\Cache\Repository
  4114. * @static
  4115. */
  4116. public static function build($config)
  4117. {
  4118. /** @var \Illuminate\Cache\CacheManager $instance */
  4119. return $instance->build($config);
  4120. }
  4121. /**
  4122. * Create a new cache repository with the given implementation.
  4123. *
  4124. * @param \Illuminate\Contracts\Cache\Store $store
  4125. * @param array $config
  4126. * @return \Illuminate\Cache\Repository
  4127. * @static
  4128. */
  4129. public static function repository($store, $config = [])
  4130. {
  4131. /** @var \Illuminate\Cache\CacheManager $instance */
  4132. return $instance->repository($store, $config);
  4133. }
  4134. /**
  4135. * Re-set the event dispatcher on all resolved cache repositories.
  4136. *
  4137. * @return void
  4138. * @static
  4139. */
  4140. public static function refreshEventDispatcher()
  4141. {
  4142. /** @var \Illuminate\Cache\CacheManager $instance */
  4143. $instance->refreshEventDispatcher();
  4144. }
  4145. /**
  4146. * Get the default cache driver name.
  4147. *
  4148. * @return string
  4149. * @static
  4150. */
  4151. public static function getDefaultDriver()
  4152. {
  4153. /** @var \Illuminate\Cache\CacheManager $instance */
  4154. return $instance->getDefaultDriver();
  4155. }
  4156. /**
  4157. * Set the default cache driver name.
  4158. *
  4159. * @param string $name
  4160. * @return void
  4161. * @static
  4162. */
  4163. public static function setDefaultDriver($name)
  4164. {
  4165. /** @var \Illuminate\Cache\CacheManager $instance */
  4166. $instance->setDefaultDriver($name);
  4167. }
  4168. /**
  4169. * Unset the given driver instances.
  4170. *
  4171. * @param array|string|null $name
  4172. * @return \Illuminate\Cache\CacheManager
  4173. * @static
  4174. */
  4175. public static function forgetDriver($name = null)
  4176. {
  4177. /** @var \Illuminate\Cache\CacheManager $instance */
  4178. return $instance->forgetDriver($name);
  4179. }
  4180. /**
  4181. * Disconnect the given driver and remove from local cache.
  4182. *
  4183. * @param string|null $name
  4184. * @return void
  4185. * @static
  4186. */
  4187. public static function purge($name = null)
  4188. {
  4189. /** @var \Illuminate\Cache\CacheManager $instance */
  4190. $instance->purge($name);
  4191. }
  4192. /**
  4193. * Register a custom driver creator Closure.
  4194. *
  4195. * @param string $driver
  4196. * @param \Closure $callback
  4197. * @param-closure-this $this $callback
  4198. * @return \Illuminate\Cache\CacheManager
  4199. * @static
  4200. */
  4201. public static function extend($driver, $callback)
  4202. {
  4203. /** @var \Illuminate\Cache\CacheManager $instance */
  4204. return $instance->extend($driver, $callback);
  4205. }
  4206. /**
  4207. * Set the application instance used by the manager.
  4208. *
  4209. * @param \Illuminate\Contracts\Foundation\Application $app
  4210. * @return \Illuminate\Cache\CacheManager
  4211. * @static
  4212. */
  4213. public static function setApplication($app)
  4214. {
  4215. /** @var \Illuminate\Cache\CacheManager $instance */
  4216. return $instance->setApplication($app);
  4217. }
  4218. /**
  4219. * Determine if an item exists in the cache.
  4220. *
  4221. * @param array|string $key
  4222. * @return bool
  4223. * @static
  4224. */
  4225. public static function has($key)
  4226. {
  4227. /** @var \Illuminate\Cache\Repository $instance */
  4228. return $instance->has($key);
  4229. }
  4230. /**
  4231. * Determine if an item doesn't exist in the cache.
  4232. *
  4233. * @param string $key
  4234. * @return bool
  4235. * @static
  4236. */
  4237. public static function missing($key)
  4238. {
  4239. /** @var \Illuminate\Cache\Repository $instance */
  4240. return $instance->missing($key);
  4241. }
  4242. /**
  4243. * Retrieve an item from the cache by key.
  4244. *
  4245. * @param array|string $key
  4246. * @param mixed $default
  4247. * @return mixed
  4248. * @static
  4249. */
  4250. public static function get($key, $default = null)
  4251. {
  4252. /** @var \Illuminate\Cache\Repository $instance */
  4253. return $instance->get($key, $default);
  4254. }
  4255. /**
  4256. * Retrieve multiple items from the cache by key.
  4257. *
  4258. * Items not found in the cache will have a null value.
  4259. *
  4260. * @param array $keys
  4261. * @return array
  4262. * @static
  4263. */
  4264. public static function many($keys)
  4265. {
  4266. /** @var \Illuminate\Cache\Repository $instance */
  4267. return $instance->many($keys);
  4268. }
  4269. /**
  4270. * Obtains multiple cache items by their unique keys.
  4271. *
  4272. * @return iterable
  4273. * @param iterable<string> $keys A list of keys that can be obtained in a single operation.
  4274. * @param mixed $default Default value to return for keys that do not exist.
  4275. * @return iterable<string, mixed> A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  4276. * @throws \Psr\SimpleCache\InvalidArgumentException
  4277. * MUST be thrown if $keys is neither an array nor a Traversable,
  4278. * or if any of the $keys are not a legal value.
  4279. * @static
  4280. */
  4281. public static function getMultiple($keys, $default = null)
  4282. {
  4283. /** @var \Illuminate\Cache\Repository $instance */
  4284. return $instance->getMultiple($keys, $default);
  4285. }
  4286. /**
  4287. * Retrieve an item from the cache and delete it.
  4288. *
  4289. * @param array|string $key
  4290. * @param mixed $default
  4291. * @return mixed
  4292. * @static
  4293. */
  4294. public static function pull($key, $default = null)
  4295. {
  4296. /** @var \Illuminate\Cache\Repository $instance */
  4297. return $instance->pull($key, $default);
  4298. }
  4299. /**
  4300. * Store an item in the cache.
  4301. *
  4302. * @param array|string $key
  4303. * @param mixed $value
  4304. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  4305. * @return bool
  4306. * @static
  4307. */
  4308. public static function put($key, $value, $ttl = null)
  4309. {
  4310. /** @var \Illuminate\Cache\Repository $instance */
  4311. return $instance->put($key, $value, $ttl);
  4312. }
  4313. /**
  4314. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  4315. *
  4316. * @return bool
  4317. * @param string $key The key of the item to store.
  4318. * @param mixed $value The value of the item to store, must be serializable.
  4319. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  4320. * the driver supports TTL then the library may set a default value
  4321. * for it or let the driver take care of that.
  4322. * @return bool True on success and false on failure.
  4323. * @throws \Psr\SimpleCache\InvalidArgumentException
  4324. * MUST be thrown if the $key string is not a legal value.
  4325. * @static
  4326. */
  4327. public static function set($key, $value, $ttl = null)
  4328. {
  4329. /** @var \Illuminate\Cache\Repository $instance */
  4330. return $instance->set($key, $value, $ttl);
  4331. }
  4332. /**
  4333. * Store multiple items in the cache for a given number of seconds.
  4334. *
  4335. * @param array $values
  4336. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  4337. * @return bool
  4338. * @static
  4339. */
  4340. public static function putMany($values, $ttl = null)
  4341. {
  4342. /** @var \Illuminate\Cache\Repository $instance */
  4343. return $instance->putMany($values, $ttl);
  4344. }
  4345. /**
  4346. * Persists a set of key => value pairs in the cache, with an optional TTL.
  4347. *
  4348. * @return bool
  4349. * @param iterable $values A list of key => value pairs for a multiple-set operation.
  4350. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  4351. * the driver supports TTL then the library may set a default value
  4352. * for it or let the driver take care of that.
  4353. * @return bool True on success and false on failure.
  4354. * @throws \Psr\SimpleCache\InvalidArgumentException
  4355. * MUST be thrown if $values is neither an array nor a Traversable,
  4356. * or if any of the $values are not a legal value.
  4357. * @static
  4358. */
  4359. public static function setMultiple($values, $ttl = null)
  4360. {
  4361. /** @var \Illuminate\Cache\Repository $instance */
  4362. return $instance->setMultiple($values, $ttl);
  4363. }
  4364. /**
  4365. * Store an item in the cache if the key does not exist.
  4366. *
  4367. * @param string $key
  4368. * @param mixed $value
  4369. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  4370. * @return bool
  4371. * @static
  4372. */
  4373. public static function add($key, $value, $ttl = null)
  4374. {
  4375. /** @var \Illuminate\Cache\Repository $instance */
  4376. return $instance->add($key, $value, $ttl);
  4377. }
  4378. /**
  4379. * Increment the value of an item in the cache.
  4380. *
  4381. * @param string $key
  4382. * @param mixed $value
  4383. * @return int|bool
  4384. * @static
  4385. */
  4386. public static function increment($key, $value = 1)
  4387. {
  4388. /** @var \Illuminate\Cache\Repository $instance */
  4389. return $instance->increment($key, $value);
  4390. }
  4391. /**
  4392. * Decrement the value of an item in the cache.
  4393. *
  4394. * @param string $key
  4395. * @param mixed $value
  4396. * @return int|bool
  4397. * @static
  4398. */
  4399. public static function decrement($key, $value = 1)
  4400. {
  4401. /** @var \Illuminate\Cache\Repository $instance */
  4402. return $instance->decrement($key, $value);
  4403. }
  4404. /**
  4405. * Store an item in the cache indefinitely.
  4406. *
  4407. * @param string $key
  4408. * @param mixed $value
  4409. * @return bool
  4410. * @static
  4411. */
  4412. public static function forever($key, $value)
  4413. {
  4414. /** @var \Illuminate\Cache\Repository $instance */
  4415. return $instance->forever($key, $value);
  4416. }
  4417. /**
  4418. * Get an item from the cache, or execute the given Closure and store the result.
  4419. *
  4420. * @template TCacheValue
  4421. * @param string $key
  4422. * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
  4423. * @param \Closure(): TCacheValue $callback
  4424. * @return TCacheValue
  4425. * @static
  4426. */
  4427. public static function remember($key, $ttl, $callback)
  4428. {
  4429. /** @var \Illuminate\Cache\Repository $instance */
  4430. return $instance->remember($key, $ttl, $callback);
  4431. }
  4432. /**
  4433. * Get an item from the cache, or execute the given Closure and store the result forever.
  4434. *
  4435. * @template TCacheValue
  4436. * @param string $key
  4437. * @param \Closure(): TCacheValue $callback
  4438. * @return TCacheValue
  4439. * @static
  4440. */
  4441. public static function sear($key, $callback)
  4442. {
  4443. /** @var \Illuminate\Cache\Repository $instance */
  4444. return $instance->sear($key, $callback);
  4445. }
  4446. /**
  4447. * Get an item from the cache, or execute the given Closure and store the result forever.
  4448. *
  4449. * @template TCacheValue
  4450. * @param string $key
  4451. * @param \Closure(): TCacheValue $callback
  4452. * @return TCacheValue
  4453. * @static
  4454. */
  4455. public static function rememberForever($key, $callback)
  4456. {
  4457. /** @var \Illuminate\Cache\Repository $instance */
  4458. return $instance->rememberForever($key, $callback);
  4459. }
  4460. /**
  4461. * Retrieve an item from the cache by key, refreshing it in the background if it is stale.
  4462. *
  4463. * @template TCacheValue
  4464. * @param string $key
  4465. * @param array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int } $ttl
  4466. * @param (callable(): TCacheValue) $callback
  4467. * @param array{ seconds?: int, owner?: string }|null $lock
  4468. * @param bool $alwaysDefer
  4469. * @return TCacheValue
  4470. * @static
  4471. */
  4472. public static function flexible($key, $ttl, $callback, $lock = null, $alwaysDefer = false)
  4473. {
  4474. /** @var \Illuminate\Cache\Repository $instance */
  4475. return $instance->flexible($key, $ttl, $callback, $lock, $alwaysDefer);
  4476. }
  4477. /**
  4478. * Remove an item from the cache.
  4479. *
  4480. * @param string $key
  4481. * @return bool
  4482. * @static
  4483. */
  4484. public static function forget($key)
  4485. {
  4486. /** @var \Illuminate\Cache\Repository $instance */
  4487. return $instance->forget($key);
  4488. }
  4489. /**
  4490. * Delete an item from the cache by its unique key.
  4491. *
  4492. * @return bool
  4493. * @param string $key The unique cache key of the item to delete.
  4494. * @return bool True if the item was successfully removed. False if there was an error.
  4495. * @throws \Psr\SimpleCache\InvalidArgumentException
  4496. * MUST be thrown if the $key string is not a legal value.
  4497. * @static
  4498. */
  4499. public static function delete($key)
  4500. {
  4501. /** @var \Illuminate\Cache\Repository $instance */
  4502. return $instance->delete($key);
  4503. }
  4504. /**
  4505. * Deletes multiple cache items in a single operation.
  4506. *
  4507. * @return bool
  4508. * @param iterable<string> $keys A list of string-based keys to be deleted.
  4509. * @return bool True if the items were successfully removed. False if there was an error.
  4510. * @throws \Psr\SimpleCache\InvalidArgumentException
  4511. * MUST be thrown if $keys is neither an array nor a Traversable,
  4512. * or if any of the $keys are not a legal value.
  4513. * @static
  4514. */
  4515. public static function deleteMultiple($keys)
  4516. {
  4517. /** @var \Illuminate\Cache\Repository $instance */
  4518. return $instance->deleteMultiple($keys);
  4519. }
  4520. /**
  4521. * Wipes clean the entire cache's keys.
  4522. *
  4523. * @return bool
  4524. * @return bool True on success and false on failure.
  4525. * @static
  4526. */
  4527. public static function clear()
  4528. {
  4529. /** @var \Illuminate\Cache\Repository $instance */
  4530. return $instance->clear();
  4531. }
  4532. /**
  4533. * Begin executing a new tags operation if the store supports it.
  4534. *
  4535. * @param array|mixed $names
  4536. * @return \Illuminate\Cache\TaggedCache
  4537. * @throws \BadMethodCallException
  4538. * @static
  4539. */
  4540. public static function tags($names)
  4541. {
  4542. /** @var \Illuminate\Cache\Repository $instance */
  4543. return $instance->tags($names);
  4544. }
  4545. /**
  4546. * Get the name of the cache store.
  4547. *
  4548. * @return string|null
  4549. * @static
  4550. */
  4551. public static function getName()
  4552. {
  4553. /** @var \Illuminate\Cache\Repository $instance */
  4554. return $instance->getName();
  4555. }
  4556. /**
  4557. * Determine if the current store supports tags.
  4558. *
  4559. * @return bool
  4560. * @static
  4561. */
  4562. public static function supportsTags()
  4563. {
  4564. /** @var \Illuminate\Cache\Repository $instance */
  4565. return $instance->supportsTags();
  4566. }
  4567. /**
  4568. * Get the default cache time.
  4569. *
  4570. * @return int|null
  4571. * @static
  4572. */
  4573. public static function getDefaultCacheTime()
  4574. {
  4575. /** @var \Illuminate\Cache\Repository $instance */
  4576. return $instance->getDefaultCacheTime();
  4577. }
  4578. /**
  4579. * Set the default cache time in seconds.
  4580. *
  4581. * @param int|null $seconds
  4582. * @return \Illuminate\Cache\Repository
  4583. * @static
  4584. */
  4585. public static function setDefaultCacheTime($seconds)
  4586. {
  4587. /** @var \Illuminate\Cache\Repository $instance */
  4588. return $instance->setDefaultCacheTime($seconds);
  4589. }
  4590. /**
  4591. * Get the cache store implementation.
  4592. *
  4593. * @return \Illuminate\Contracts\Cache\Store
  4594. * @static
  4595. */
  4596. public static function getStore()
  4597. {
  4598. /** @var \Illuminate\Cache\Repository $instance */
  4599. return $instance->getStore();
  4600. }
  4601. /**
  4602. * Set the cache store implementation.
  4603. *
  4604. * @param \Illuminate\Contracts\Cache\Store $store
  4605. * @return static
  4606. * @static
  4607. */
  4608. public static function setStore($store)
  4609. {
  4610. /** @var \Illuminate\Cache\Repository $instance */
  4611. return $instance->setStore($store);
  4612. }
  4613. /**
  4614. * Get the event dispatcher instance.
  4615. *
  4616. * @return \Illuminate\Contracts\Events\Dispatcher|null
  4617. * @static
  4618. */
  4619. public static function getEventDispatcher()
  4620. {
  4621. /** @var \Illuminate\Cache\Repository $instance */
  4622. return $instance->getEventDispatcher();
  4623. }
  4624. /**
  4625. * Set the event dispatcher instance.
  4626. *
  4627. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4628. * @return void
  4629. * @static
  4630. */
  4631. public static function setEventDispatcher($events)
  4632. {
  4633. /** @var \Illuminate\Cache\Repository $instance */
  4634. $instance->setEventDispatcher($events);
  4635. }
  4636. /**
  4637. * Determine if a cached value exists.
  4638. *
  4639. * @param string $key
  4640. * @return bool
  4641. * @static
  4642. */
  4643. public static function offsetExists($key)
  4644. {
  4645. /** @var \Illuminate\Cache\Repository $instance */
  4646. return $instance->offsetExists($key);
  4647. }
  4648. /**
  4649. * Retrieve an item from the cache by key.
  4650. *
  4651. * @param string $key
  4652. * @return mixed
  4653. * @static
  4654. */
  4655. public static function offsetGet($key)
  4656. {
  4657. /** @var \Illuminate\Cache\Repository $instance */
  4658. return $instance->offsetGet($key);
  4659. }
  4660. /**
  4661. * Store an item in the cache for the default time.
  4662. *
  4663. * @param string $key
  4664. * @param mixed $value
  4665. * @return void
  4666. * @static
  4667. */
  4668. public static function offsetSet($key, $value)
  4669. {
  4670. /** @var \Illuminate\Cache\Repository $instance */
  4671. $instance->offsetSet($key, $value);
  4672. }
  4673. /**
  4674. * Remove an item from the cache.
  4675. *
  4676. * @param string $key
  4677. * @return void
  4678. * @static
  4679. */
  4680. public static function offsetUnset($key)
  4681. {
  4682. /** @var \Illuminate\Cache\Repository $instance */
  4683. $instance->offsetUnset($key);
  4684. }
  4685. /**
  4686. * Register a custom macro.
  4687. *
  4688. * @param string $name
  4689. * @param object|callable $macro
  4690. * @param-closure-this static $macro
  4691. * @return void
  4692. * @static
  4693. */
  4694. public static function macro($name, $macro)
  4695. {
  4696. \Illuminate\Cache\Repository::macro($name, $macro);
  4697. }
  4698. /**
  4699. * Mix another object into the class.
  4700. *
  4701. * @param object $mixin
  4702. * @param bool $replace
  4703. * @return void
  4704. * @throws \ReflectionException
  4705. * @static
  4706. */
  4707. public static function mixin($mixin, $replace = true)
  4708. {
  4709. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  4710. }
  4711. /**
  4712. * Checks if macro is registered.
  4713. *
  4714. * @param string $name
  4715. * @return bool
  4716. * @static
  4717. */
  4718. public static function hasMacro($name)
  4719. {
  4720. return \Illuminate\Cache\Repository::hasMacro($name);
  4721. }
  4722. /**
  4723. * Flush the existing macros.
  4724. *
  4725. * @return void
  4726. * @static
  4727. */
  4728. public static function flushMacros()
  4729. {
  4730. \Illuminate\Cache\Repository::flushMacros();
  4731. }
  4732. /**
  4733. * Dynamically handle calls to the class.
  4734. *
  4735. * @param string $method
  4736. * @param array $parameters
  4737. * @return mixed
  4738. * @throws \BadMethodCallException
  4739. * @static
  4740. */
  4741. public static function macroCall($method, $parameters)
  4742. {
  4743. /** @var \Illuminate\Cache\Repository $instance */
  4744. return $instance->macroCall($method, $parameters);
  4745. }
  4746. /**
  4747. * Get a lock instance.
  4748. *
  4749. * @param string $name
  4750. * @param int $seconds
  4751. * @param string|null $owner
  4752. * @return \Illuminate\Contracts\Cache\Lock
  4753. * @static
  4754. */
  4755. public static function lock($name, $seconds = 0, $owner = null)
  4756. {
  4757. /** @var \Illuminate\Cache\DatabaseStore $instance */
  4758. return $instance->lock($name, $seconds, $owner);
  4759. }
  4760. /**
  4761. * Restore a lock instance using the owner identifier.
  4762. *
  4763. * @param string $name
  4764. * @param string $owner
  4765. * @return \Illuminate\Contracts\Cache\Lock
  4766. * @static
  4767. */
  4768. public static function restoreLock($name, $owner)
  4769. {
  4770. /** @var \Illuminate\Cache\DatabaseStore $instance */
  4771. return $instance->restoreLock($name, $owner);
  4772. }
  4773. /**
  4774. * Remove an item from the cache if it is expired.
  4775. *
  4776. * @param string $key
  4777. * @return bool
  4778. * @static
  4779. */
  4780. public static function forgetIfExpired($key)
  4781. {
  4782. /** @var \Illuminate\Cache\DatabaseStore $instance */
  4783. return $instance->forgetIfExpired($key);
  4784. }
  4785. /**
  4786. * Remove all items from the cache.
  4787. *
  4788. * @return bool
  4789. * @static
  4790. */
  4791. public static function flush()
  4792. {
  4793. /** @var \Illuminate\Cache\DatabaseStore $instance */
  4794. return $instance->flush();
  4795. }
  4796. /**
  4797. * Get the underlying database connection.
  4798. *
  4799. * @return \Illuminate\Database\PostgresConnection
  4800. * @static
  4801. */
  4802. public static function getConnection()
  4803. {
  4804. /** @var \Illuminate\Cache\DatabaseStore $instance */
  4805. return $instance->getConnection();
  4806. }
  4807. /**
  4808. * Specify the name of the connection that should be used to manage locks.
  4809. *
  4810. * @param \Illuminate\Database\ConnectionInterface $connection
  4811. * @return \Illuminate\Cache\DatabaseStore
  4812. * @static
  4813. */
  4814. public static function setLockConnection($connection)
  4815. {
  4816. /** @var \Illuminate\Cache\DatabaseStore $instance */
  4817. return $instance->setLockConnection($connection);
  4818. }
  4819. /**
  4820. * Get the cache key prefix.
  4821. *
  4822. * @return string
  4823. * @static
  4824. */
  4825. public static function getPrefix()
  4826. {
  4827. /** @var \Illuminate\Cache\DatabaseStore $instance */
  4828. return $instance->getPrefix();
  4829. }
  4830. /**
  4831. * Set the cache key prefix.
  4832. *
  4833. * @param string $prefix
  4834. * @return void
  4835. * @static
  4836. */
  4837. public static function setPrefix($prefix)
  4838. {
  4839. /** @var \Illuminate\Cache\DatabaseStore $instance */
  4840. $instance->setPrefix($prefix);
  4841. }
  4842. }
  4843. /**
  4844. * @method static array run(\Closure|array $tasks)
  4845. * @method static \Illuminate\Support\Defer\DeferredCallback defer(\Closure|array $tasks)
  4846. * @see \Illuminate\Concurrency\ConcurrencyManager
  4847. */
  4848. class Concurrency {
  4849. /**
  4850. * Get a driver instance by name.
  4851. *
  4852. * @param string|null $name
  4853. * @return mixed
  4854. * @static
  4855. */
  4856. public static function driver($name = null)
  4857. {
  4858. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4859. return $instance->driver($name);
  4860. }
  4861. /**
  4862. * Create an instance of the process concurrency driver.
  4863. *
  4864. * @param array $config
  4865. * @return \Illuminate\Concurrency\ProcessDriver
  4866. * @static
  4867. */
  4868. public static function createProcessDriver($config)
  4869. {
  4870. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4871. return $instance->createProcessDriver($config);
  4872. }
  4873. /**
  4874. * Create an instance of the fork concurrency driver.
  4875. *
  4876. * @param array $config
  4877. * @return \Illuminate\Concurrency\ForkDriver
  4878. * @throws \RuntimeException
  4879. * @static
  4880. */
  4881. public static function createForkDriver($config)
  4882. {
  4883. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4884. return $instance->createForkDriver($config);
  4885. }
  4886. /**
  4887. * Create an instance of the sync concurrency driver.
  4888. *
  4889. * @param array $config
  4890. * @return \Illuminate\Concurrency\SyncDriver
  4891. * @static
  4892. */
  4893. public static function createSyncDriver($config)
  4894. {
  4895. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4896. return $instance->createSyncDriver($config);
  4897. }
  4898. /**
  4899. * Get the default instance name.
  4900. *
  4901. * @return string
  4902. * @static
  4903. */
  4904. public static function getDefaultInstance()
  4905. {
  4906. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4907. return $instance->getDefaultInstance();
  4908. }
  4909. /**
  4910. * Set the default instance name.
  4911. *
  4912. * @param string $name
  4913. * @return void
  4914. * @static
  4915. */
  4916. public static function setDefaultInstance($name)
  4917. {
  4918. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4919. $instance->setDefaultInstance($name);
  4920. }
  4921. /**
  4922. * Get the instance specific configuration.
  4923. *
  4924. * @param string $name
  4925. * @return array
  4926. * @static
  4927. */
  4928. public static function getInstanceConfig($name)
  4929. {
  4930. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4931. return $instance->getInstanceConfig($name);
  4932. }
  4933. /**
  4934. * Get an instance by name.
  4935. *
  4936. * @param string|null $name
  4937. * @return mixed
  4938. * @static
  4939. */
  4940. public static function instance($name = null)
  4941. {
  4942. //Method inherited from \Illuminate\Support\MultipleInstanceManager
  4943. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4944. return $instance->instance($name);
  4945. }
  4946. /**
  4947. * Unset the given instances.
  4948. *
  4949. * @param array|string|null $name
  4950. * @return \Illuminate\Concurrency\ConcurrencyManager
  4951. * @static
  4952. */
  4953. public static function forgetInstance($name = null)
  4954. {
  4955. //Method inherited from \Illuminate\Support\MultipleInstanceManager
  4956. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4957. return $instance->forgetInstance($name);
  4958. }
  4959. /**
  4960. * Disconnect the given instance and remove from local cache.
  4961. *
  4962. * @param string|null $name
  4963. * @return void
  4964. * @static
  4965. */
  4966. public static function purge($name = null)
  4967. {
  4968. //Method inherited from \Illuminate\Support\MultipleInstanceManager
  4969. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4970. $instance->purge($name);
  4971. }
  4972. /**
  4973. * Register a custom instance creator Closure.
  4974. *
  4975. * @param string $name
  4976. * @param \Closure $callback
  4977. * @param-closure-this $this $callback
  4978. * @return \Illuminate\Concurrency\ConcurrencyManager
  4979. * @static
  4980. */
  4981. public static function extend($name, $callback)
  4982. {
  4983. //Method inherited from \Illuminate\Support\MultipleInstanceManager
  4984. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4985. return $instance->extend($name, $callback);
  4986. }
  4987. /**
  4988. * Set the application instance used by the manager.
  4989. *
  4990. * @param \Illuminate\Contracts\Foundation\Application $app
  4991. * @return \Illuminate\Concurrency\ConcurrencyManager
  4992. * @static
  4993. */
  4994. public static function setApplication($app)
  4995. {
  4996. //Method inherited from \Illuminate\Support\MultipleInstanceManager
  4997. /** @var \Illuminate\Concurrency\ConcurrencyManager $instance */
  4998. return $instance->setApplication($app);
  4999. }
  5000. }
  5001. /**
  5002. * @see \Illuminate\Config\Repository
  5003. */
  5004. class Config {
  5005. /**
  5006. * Determine if the given configuration value exists.
  5007. *
  5008. * @param string $key
  5009. * @return bool
  5010. * @static
  5011. */
  5012. public static function has($key)
  5013. {
  5014. /** @var \Illuminate\Config\Repository $instance */
  5015. return $instance->has($key);
  5016. }
  5017. /**
  5018. * Get the specified configuration value.
  5019. *
  5020. * @param array|string $key
  5021. * @param mixed $default
  5022. * @return mixed
  5023. * @static
  5024. */
  5025. public static function get($key, $default = null)
  5026. {
  5027. /** @var \Illuminate\Config\Repository $instance */
  5028. return $instance->get($key, $default);
  5029. }
  5030. /**
  5031. * Get many configuration values.
  5032. *
  5033. * @param array<string|int,mixed> $keys
  5034. * @return array<string,mixed>
  5035. * @static
  5036. */
  5037. public static function getMany($keys)
  5038. {
  5039. /** @var \Illuminate\Config\Repository $instance */
  5040. return $instance->getMany($keys);
  5041. }
  5042. /**
  5043. * Get the specified string configuration value.
  5044. *
  5045. * @param string $key
  5046. * @param (\Closure():(string|null))|string|null $default
  5047. * @return string
  5048. * @static
  5049. */
  5050. public static function string($key, $default = null)
  5051. {
  5052. /** @var \Illuminate\Config\Repository $instance */
  5053. return $instance->string($key, $default);
  5054. }
  5055. /**
  5056. * Get the specified integer configuration value.
  5057. *
  5058. * @param string $key
  5059. * @param (\Closure():(int|null))|int|null $default
  5060. * @return int
  5061. * @static
  5062. */
  5063. public static function integer($key, $default = null)
  5064. {
  5065. /** @var \Illuminate\Config\Repository $instance */
  5066. return $instance->integer($key, $default);
  5067. }
  5068. /**
  5069. * Get the specified float configuration value.
  5070. *
  5071. * @param string $key
  5072. * @param (\Closure():(float|null))|float|null $default
  5073. * @return float
  5074. * @static
  5075. */
  5076. public static function float($key, $default = null)
  5077. {
  5078. /** @var \Illuminate\Config\Repository $instance */
  5079. return $instance->float($key, $default);
  5080. }
  5081. /**
  5082. * Get the specified boolean configuration value.
  5083. *
  5084. * @param string $key
  5085. * @param (\Closure():(bool|null))|bool|null $default
  5086. * @return bool
  5087. * @static
  5088. */
  5089. public static function boolean($key, $default = null)
  5090. {
  5091. /** @var \Illuminate\Config\Repository $instance */
  5092. return $instance->boolean($key, $default);
  5093. }
  5094. /**
  5095. * Get the specified array configuration value.
  5096. *
  5097. * @param string $key
  5098. * @param (\Closure():(array<array-key, mixed>|null))|array<array-key, mixed>|null $default
  5099. * @return array<array-key, mixed>
  5100. * @static
  5101. */
  5102. public static function array($key, $default = null)
  5103. {
  5104. /** @var \Illuminate\Config\Repository $instance */
  5105. return $instance->array($key, $default);
  5106. }
  5107. /**
  5108. * Get the specified array configuration value as a collection.
  5109. *
  5110. * @param string $key
  5111. * @param (\Closure():(array<array-key, mixed>|null))|array<array-key, mixed>|null $default
  5112. * @return Collection<array-key, mixed>
  5113. * @static
  5114. */
  5115. public static function collection($key, $default = null)
  5116. {
  5117. /** @var \Illuminate\Config\Repository $instance */
  5118. return $instance->collection($key, $default);
  5119. }
  5120. /**
  5121. * Set a given configuration value.
  5122. *
  5123. * @param array|string $key
  5124. * @param mixed $value
  5125. * @return void
  5126. * @static
  5127. */
  5128. public static function set($key, $value = null)
  5129. {
  5130. /** @var \Illuminate\Config\Repository $instance */
  5131. $instance->set($key, $value);
  5132. }
  5133. /**
  5134. * Prepend a value onto an array configuration value.
  5135. *
  5136. * @param string $key
  5137. * @param mixed $value
  5138. * @return void
  5139. * @static
  5140. */
  5141. public static function prepend($key, $value)
  5142. {
  5143. /** @var \Illuminate\Config\Repository $instance */
  5144. $instance->prepend($key, $value);
  5145. }
  5146. /**
  5147. * Push a value onto an array configuration value.
  5148. *
  5149. * @param string $key
  5150. * @param mixed $value
  5151. * @return void
  5152. * @static
  5153. */
  5154. public static function push($key, $value)
  5155. {
  5156. /** @var \Illuminate\Config\Repository $instance */
  5157. $instance->push($key, $value);
  5158. }
  5159. /**
  5160. * Get all of the configuration items for the application.
  5161. *
  5162. * @return array
  5163. * @static
  5164. */
  5165. public static function all()
  5166. {
  5167. /** @var \Illuminate\Config\Repository $instance */
  5168. return $instance->all();
  5169. }
  5170. /**
  5171. * Determine if the given configuration option exists.
  5172. *
  5173. * @param string $key
  5174. * @return bool
  5175. * @static
  5176. */
  5177. public static function offsetExists($key)
  5178. {
  5179. /** @var \Illuminate\Config\Repository $instance */
  5180. return $instance->offsetExists($key);
  5181. }
  5182. /**
  5183. * Get a configuration option.
  5184. *
  5185. * @param string $key
  5186. * @return mixed
  5187. * @static
  5188. */
  5189. public static function offsetGet($key)
  5190. {
  5191. /** @var \Illuminate\Config\Repository $instance */
  5192. return $instance->offsetGet($key);
  5193. }
  5194. /**
  5195. * Set a configuration option.
  5196. *
  5197. * @param string $key
  5198. * @param mixed $value
  5199. * @return void
  5200. * @static
  5201. */
  5202. public static function offsetSet($key, $value)
  5203. {
  5204. /** @var \Illuminate\Config\Repository $instance */
  5205. $instance->offsetSet($key, $value);
  5206. }
  5207. /**
  5208. * Unset a configuration option.
  5209. *
  5210. * @param string $key
  5211. * @return void
  5212. * @static
  5213. */
  5214. public static function offsetUnset($key)
  5215. {
  5216. /** @var \Illuminate\Config\Repository $instance */
  5217. $instance->offsetUnset($key);
  5218. }
  5219. /**
  5220. * Register a custom macro.
  5221. *
  5222. * @param string $name
  5223. * @param object|callable $macro
  5224. * @param-closure-this static $macro
  5225. * @return void
  5226. * @static
  5227. */
  5228. public static function macro($name, $macro)
  5229. {
  5230. \Illuminate\Config\Repository::macro($name, $macro);
  5231. }
  5232. /**
  5233. * Mix another object into the class.
  5234. *
  5235. * @param object $mixin
  5236. * @param bool $replace
  5237. * @return void
  5238. * @throws \ReflectionException
  5239. * @static
  5240. */
  5241. public static function mixin($mixin, $replace = true)
  5242. {
  5243. \Illuminate\Config\Repository::mixin($mixin, $replace);
  5244. }
  5245. /**
  5246. * Checks if macro is registered.
  5247. *
  5248. * @param string $name
  5249. * @return bool
  5250. * @static
  5251. */
  5252. public static function hasMacro($name)
  5253. {
  5254. return \Illuminate\Config\Repository::hasMacro($name);
  5255. }
  5256. /**
  5257. * Flush the existing macros.
  5258. *
  5259. * @return void
  5260. * @static
  5261. */
  5262. public static function flushMacros()
  5263. {
  5264. \Illuminate\Config\Repository::flushMacros();
  5265. }
  5266. }
  5267. /**
  5268. * @see \Illuminate\Log\Context\Repository
  5269. */
  5270. class Context {
  5271. /**
  5272. * Determine if the given key exists.
  5273. *
  5274. * @param string $key
  5275. * @return bool
  5276. * @static
  5277. */
  5278. public static function has($key)
  5279. {
  5280. /** @var \Illuminate\Log\Context\Repository $instance */
  5281. return $instance->has($key);
  5282. }
  5283. /**
  5284. * Determine if the given key is missing.
  5285. *
  5286. * @param string $key
  5287. * @return bool
  5288. * @static
  5289. */
  5290. public static function missing($key)
  5291. {
  5292. /** @var \Illuminate\Log\Context\Repository $instance */
  5293. return $instance->missing($key);
  5294. }
  5295. /**
  5296. * Determine if the given key exists within the hidden context data.
  5297. *
  5298. * @param string $key
  5299. * @return bool
  5300. * @static
  5301. */
  5302. public static function hasHidden($key)
  5303. {
  5304. /** @var \Illuminate\Log\Context\Repository $instance */
  5305. return $instance->hasHidden($key);
  5306. }
  5307. /**
  5308. * Determine if the given key is missing within the hidden context data.
  5309. *
  5310. * @param string $key
  5311. * @return bool
  5312. * @static
  5313. */
  5314. public static function missingHidden($key)
  5315. {
  5316. /** @var \Illuminate\Log\Context\Repository $instance */
  5317. return $instance->missingHidden($key);
  5318. }
  5319. /**
  5320. * Retrieve all the context data.
  5321. *
  5322. * @return array<string, mixed>
  5323. * @static
  5324. */
  5325. public static function all()
  5326. {
  5327. /** @var \Illuminate\Log\Context\Repository $instance */
  5328. return $instance->all();
  5329. }
  5330. /**
  5331. * Retrieve all the hidden context data.
  5332. *
  5333. * @return array<string, mixed>
  5334. * @static
  5335. */
  5336. public static function allHidden()
  5337. {
  5338. /** @var \Illuminate\Log\Context\Repository $instance */
  5339. return $instance->allHidden();
  5340. }
  5341. /**
  5342. * Retrieve the given key's value.
  5343. *
  5344. * @param string $key
  5345. * @param mixed $default
  5346. * @return mixed
  5347. * @static
  5348. */
  5349. public static function get($key, $default = null)
  5350. {
  5351. /** @var \Illuminate\Log\Context\Repository $instance */
  5352. return $instance->get($key, $default);
  5353. }
  5354. /**
  5355. * Retrieve the given key's hidden value.
  5356. *
  5357. * @param string $key
  5358. * @param mixed $default
  5359. * @return mixed
  5360. * @static
  5361. */
  5362. public static function getHidden($key, $default = null)
  5363. {
  5364. /** @var \Illuminate\Log\Context\Repository $instance */
  5365. return $instance->getHidden($key, $default);
  5366. }
  5367. /**
  5368. * Retrieve the given key's value and then forget it.
  5369. *
  5370. * @param string $key
  5371. * @param mixed $default
  5372. * @return mixed
  5373. * @static
  5374. */
  5375. public static function pull($key, $default = null)
  5376. {
  5377. /** @var \Illuminate\Log\Context\Repository $instance */
  5378. return $instance->pull($key, $default);
  5379. }
  5380. /**
  5381. * Retrieve the given key's hidden value and then forget it.
  5382. *
  5383. * @param string $key
  5384. * @param mixed $default
  5385. * @return mixed
  5386. * @static
  5387. */
  5388. public static function pullHidden($key, $default = null)
  5389. {
  5390. /** @var \Illuminate\Log\Context\Repository $instance */
  5391. return $instance->pullHidden($key, $default);
  5392. }
  5393. /**
  5394. * Retrieve only the values of the given keys.
  5395. *
  5396. * @param array<int, string> $keys
  5397. * @return array<string, mixed>
  5398. * @static
  5399. */
  5400. public static function only($keys)
  5401. {
  5402. /** @var \Illuminate\Log\Context\Repository $instance */
  5403. return $instance->only($keys);
  5404. }
  5405. /**
  5406. * Retrieve only the hidden values of the given keys.
  5407. *
  5408. * @param array<int, string> $keys
  5409. * @return array<string, mixed>
  5410. * @static
  5411. */
  5412. public static function onlyHidden($keys)
  5413. {
  5414. /** @var \Illuminate\Log\Context\Repository $instance */
  5415. return $instance->onlyHidden($keys);
  5416. }
  5417. /**
  5418. * Retrieve all values except those with the given keys.
  5419. *
  5420. * @param array<int, string> $keys
  5421. * @return array<string, mixed>
  5422. * @static
  5423. */
  5424. public static function except($keys)
  5425. {
  5426. /** @var \Illuminate\Log\Context\Repository $instance */
  5427. return $instance->except($keys);
  5428. }
  5429. /**
  5430. * Retrieve all hidden values except those with the given keys.
  5431. *
  5432. * @param array<int, string> $keys
  5433. * @return array<string, mixed>
  5434. * @static
  5435. */
  5436. public static function exceptHidden($keys)
  5437. {
  5438. /** @var \Illuminate\Log\Context\Repository $instance */
  5439. return $instance->exceptHidden($keys);
  5440. }
  5441. /**
  5442. * Add a context value.
  5443. *
  5444. * @param string|array<string, mixed> $key
  5445. * @param mixed $value
  5446. * @return \Illuminate\Log\Context\Repository
  5447. * @static
  5448. */
  5449. public static function add($key, $value = null)
  5450. {
  5451. /** @var \Illuminate\Log\Context\Repository $instance */
  5452. return $instance->add($key, $value);
  5453. }
  5454. /**
  5455. * Add a hidden context value.
  5456. *
  5457. * @param string|array<string, mixed> $key
  5458. * @param mixed $value
  5459. * @return \Illuminate\Log\Context\Repository
  5460. * @static
  5461. */
  5462. public static function addHidden($key, $value = null)
  5463. {
  5464. /** @var \Illuminate\Log\Context\Repository $instance */
  5465. return $instance->addHidden($key, $value);
  5466. }
  5467. /**
  5468. * Add a context value if it does not exist yet, and return the value.
  5469. *
  5470. * @param string $key
  5471. * @param mixed $value
  5472. * @return mixed
  5473. * @static
  5474. */
  5475. public static function remember($key, $value)
  5476. {
  5477. /** @var \Illuminate\Log\Context\Repository $instance */
  5478. return $instance->remember($key, $value);
  5479. }
  5480. /**
  5481. * Add a hidden context value if it does not exist yet, and return the value.
  5482. *
  5483. * @param string $key
  5484. * @param mixed $value
  5485. * @return mixed
  5486. * @static
  5487. */
  5488. public static function rememberHidden($key, $value)
  5489. {
  5490. /** @var \Illuminate\Log\Context\Repository $instance */
  5491. return $instance->rememberHidden($key, $value);
  5492. }
  5493. /**
  5494. * Forget the given context key.
  5495. *
  5496. * @param string|array<int, string> $key
  5497. * @return \Illuminate\Log\Context\Repository
  5498. * @static
  5499. */
  5500. public static function forget($key)
  5501. {
  5502. /** @var \Illuminate\Log\Context\Repository $instance */
  5503. return $instance->forget($key);
  5504. }
  5505. /**
  5506. * Forget the given hidden context key.
  5507. *
  5508. * @param string|array<int, string> $key
  5509. * @return \Illuminate\Log\Context\Repository
  5510. * @static
  5511. */
  5512. public static function forgetHidden($key)
  5513. {
  5514. /** @var \Illuminate\Log\Context\Repository $instance */
  5515. return $instance->forgetHidden($key);
  5516. }
  5517. /**
  5518. * Add a context value if it does not exist yet.
  5519. *
  5520. * @param string $key
  5521. * @param mixed $value
  5522. * @return \Illuminate\Log\Context\Repository
  5523. * @static
  5524. */
  5525. public static function addIf($key, $value)
  5526. {
  5527. /** @var \Illuminate\Log\Context\Repository $instance */
  5528. return $instance->addIf($key, $value);
  5529. }
  5530. /**
  5531. * Add a hidden context value if it does not exist yet.
  5532. *
  5533. * @param string $key
  5534. * @param mixed $value
  5535. * @return \Illuminate\Log\Context\Repository
  5536. * @static
  5537. */
  5538. public static function addHiddenIf($key, $value)
  5539. {
  5540. /** @var \Illuminate\Log\Context\Repository $instance */
  5541. return $instance->addHiddenIf($key, $value);
  5542. }
  5543. /**
  5544. * Push the given values onto the key's stack.
  5545. *
  5546. * @param string $key
  5547. * @param mixed $values
  5548. * @return \Illuminate\Log\Context\Repository
  5549. * @throws \RuntimeException
  5550. * @static
  5551. */
  5552. public static function push($key, ...$values)
  5553. {
  5554. /** @var \Illuminate\Log\Context\Repository $instance */
  5555. return $instance->push($key, ...$values);
  5556. }
  5557. /**
  5558. * Pop the latest value from the key's stack.
  5559. *
  5560. * @param string $key
  5561. * @return mixed
  5562. * @throws \RuntimeException
  5563. * @static
  5564. */
  5565. public static function pop($key)
  5566. {
  5567. /** @var \Illuminate\Log\Context\Repository $instance */
  5568. return $instance->pop($key);
  5569. }
  5570. /**
  5571. * Push the given hidden values onto the key's stack.
  5572. *
  5573. * @param string $key
  5574. * @param mixed $values
  5575. * @return \Illuminate\Log\Context\Repository
  5576. * @throws \RuntimeException
  5577. * @static
  5578. */
  5579. public static function pushHidden($key, ...$values)
  5580. {
  5581. /** @var \Illuminate\Log\Context\Repository $instance */
  5582. return $instance->pushHidden($key, ...$values);
  5583. }
  5584. /**
  5585. * Pop the latest hidden value from the key's stack.
  5586. *
  5587. * @param string $key
  5588. * @return mixed
  5589. * @throws \RuntimeException
  5590. * @static
  5591. */
  5592. public static function popHidden($key)
  5593. {
  5594. /** @var \Illuminate\Log\Context\Repository $instance */
  5595. return $instance->popHidden($key);
  5596. }
  5597. /**
  5598. * Increment a context counter.
  5599. *
  5600. * @param string $key
  5601. * @param int $amount
  5602. * @return \Illuminate\Log\Context\Repository
  5603. * @static
  5604. */
  5605. public static function increment($key, $amount = 1)
  5606. {
  5607. /** @var \Illuminate\Log\Context\Repository $instance */
  5608. return $instance->increment($key, $amount);
  5609. }
  5610. /**
  5611. * Decrement a context counter.
  5612. *
  5613. * @param string $key
  5614. * @param int $amount
  5615. * @return \Illuminate\Log\Context\Repository
  5616. * @static
  5617. */
  5618. public static function decrement($key, $amount = 1)
  5619. {
  5620. /** @var \Illuminate\Log\Context\Repository $instance */
  5621. return $instance->decrement($key, $amount);
  5622. }
  5623. /**
  5624. * Determine if the given value is in the given stack.
  5625. *
  5626. * @param string $key
  5627. * @param mixed $value
  5628. * @param bool $strict
  5629. * @return bool
  5630. * @throws \RuntimeException
  5631. * @static
  5632. */
  5633. public static function stackContains($key, $value, $strict = false)
  5634. {
  5635. /** @var \Illuminate\Log\Context\Repository $instance */
  5636. return $instance->stackContains($key, $value, $strict);
  5637. }
  5638. /**
  5639. * Determine if the given value is in the given hidden stack.
  5640. *
  5641. * @param string $key
  5642. * @param mixed $value
  5643. * @param bool $strict
  5644. * @return bool
  5645. * @throws \RuntimeException
  5646. * @static
  5647. */
  5648. public static function hiddenStackContains($key, $value, $strict = false)
  5649. {
  5650. /** @var \Illuminate\Log\Context\Repository $instance */
  5651. return $instance->hiddenStackContains($key, $value, $strict);
  5652. }
  5653. /**
  5654. * Run the callback function with the given context values and restore the original context state when complete.
  5655. *
  5656. * @param callable $callback
  5657. * @param array<string, mixed> $data
  5658. * @param array<string, mixed> $hidden
  5659. * @return mixed
  5660. * @static
  5661. */
  5662. public static function scope($callback, $data = [], $hidden = [])
  5663. {
  5664. /** @var \Illuminate\Log\Context\Repository $instance */
  5665. return $instance->scope($callback, $data, $hidden);
  5666. }
  5667. /**
  5668. * Determine if the repository is empty.
  5669. *
  5670. * @return bool
  5671. * @static
  5672. */
  5673. public static function isEmpty()
  5674. {
  5675. /** @var \Illuminate\Log\Context\Repository $instance */
  5676. return $instance->isEmpty();
  5677. }
  5678. /**
  5679. * Execute the given callback when context is about to be dehydrated.
  5680. *
  5681. * @param callable $callback
  5682. * @return \Illuminate\Log\Context\Repository
  5683. * @static
  5684. */
  5685. public static function dehydrating($callback)
  5686. {
  5687. /** @var \Illuminate\Log\Context\Repository $instance */
  5688. return $instance->dehydrating($callback);
  5689. }
  5690. /**
  5691. * Execute the given callback when context has been hydrated.
  5692. *
  5693. * @param callable $callback
  5694. * @return \Illuminate\Log\Context\Repository
  5695. * @static
  5696. */
  5697. public static function hydrated($callback)
  5698. {
  5699. /** @var \Illuminate\Log\Context\Repository $instance */
  5700. return $instance->hydrated($callback);
  5701. }
  5702. /**
  5703. * Handle unserialize exceptions using the given callback.
  5704. *
  5705. * @param callable|null $callback
  5706. * @return static
  5707. * @static
  5708. */
  5709. public static function handleUnserializeExceptionsUsing($callback)
  5710. {
  5711. /** @var \Illuminate\Log\Context\Repository $instance */
  5712. return $instance->handleUnserializeExceptionsUsing($callback);
  5713. }
  5714. /**
  5715. * Flush all context data.
  5716. *
  5717. * @return \Illuminate\Log\Context\Repository
  5718. * @static
  5719. */
  5720. public static function flush()
  5721. {
  5722. /** @var \Illuminate\Log\Context\Repository $instance */
  5723. return $instance->flush();
  5724. }
  5725. /**
  5726. * Dehydrate the context data.
  5727. *
  5728. * @internal
  5729. * @return \Illuminate\Log\Context\?array
  5730. * @static
  5731. */
  5732. public static function dehydrate()
  5733. {
  5734. /** @var \Illuminate\Log\Context\Repository $instance */
  5735. return $instance->dehydrate();
  5736. }
  5737. /**
  5738. * Hydrate the context instance.
  5739. *
  5740. * @internal
  5741. * @param \Illuminate\Log\Context\?array $context
  5742. * @return \Illuminate\Log\Context\Repository
  5743. * @throws \RuntimeException
  5744. * @static
  5745. */
  5746. public static function hydrate($context)
  5747. {
  5748. /** @var \Illuminate\Log\Context\Repository $instance */
  5749. return $instance->hydrate($context);
  5750. }
  5751. /**
  5752. * Apply the callback if the given "value" is (or resolves to) truthy.
  5753. *
  5754. * @template TWhenParameter
  5755. * @template TWhenReturnType
  5756. * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
  5757. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  5758. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  5759. * @return $this|TWhenReturnType
  5760. * @static
  5761. */
  5762. public static function when($value = null, $callback = null, $default = null)
  5763. {
  5764. /** @var \Illuminate\Log\Context\Repository $instance */
  5765. return $instance->when($value, $callback, $default);
  5766. }
  5767. /**
  5768. * Apply the callback if the given "value" is (or resolves to) falsy.
  5769. *
  5770. * @template TUnlessParameter
  5771. * @template TUnlessReturnType
  5772. * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  5773. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  5774. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  5775. * @return $this|TUnlessReturnType
  5776. * @static
  5777. */
  5778. public static function unless($value = null, $callback = null, $default = null)
  5779. {
  5780. /** @var \Illuminate\Log\Context\Repository $instance */
  5781. return $instance->unless($value, $callback, $default);
  5782. }
  5783. /**
  5784. * Register a custom macro.
  5785. *
  5786. * @param string $name
  5787. * @param object|callable $macro
  5788. * @param-closure-this static $macro
  5789. * @return void
  5790. * @static
  5791. */
  5792. public static function macro($name, $macro)
  5793. {
  5794. \Illuminate\Log\Context\Repository::macro($name, $macro);
  5795. }
  5796. /**
  5797. * Mix another object into the class.
  5798. *
  5799. * @param object $mixin
  5800. * @param bool $replace
  5801. * @return void
  5802. * @throws \ReflectionException
  5803. * @static
  5804. */
  5805. public static function mixin($mixin, $replace = true)
  5806. {
  5807. \Illuminate\Log\Context\Repository::mixin($mixin, $replace);
  5808. }
  5809. /**
  5810. * Checks if macro is registered.
  5811. *
  5812. * @param string $name
  5813. * @return bool
  5814. * @static
  5815. */
  5816. public static function hasMacro($name)
  5817. {
  5818. return \Illuminate\Log\Context\Repository::hasMacro($name);
  5819. }
  5820. /**
  5821. * Flush the existing macros.
  5822. *
  5823. * @return void
  5824. * @static
  5825. */
  5826. public static function flushMacros()
  5827. {
  5828. \Illuminate\Log\Context\Repository::flushMacros();
  5829. }
  5830. /**
  5831. * Restore the model from the model identifier instance.
  5832. *
  5833. * @param \Illuminate\Contracts\Database\ModelIdentifier $value
  5834. * @return \Illuminate\Database\Eloquent\Model
  5835. * @static
  5836. */
  5837. public static function restoreModel($value)
  5838. {
  5839. /** @var \Illuminate\Log\Context\Repository $instance */
  5840. return $instance->restoreModel($value);
  5841. }
  5842. }
  5843. /**
  5844. * @see \Illuminate\Cookie\CookieJar
  5845. */
  5846. class Cookie {
  5847. /**
  5848. * Create a new cookie instance.
  5849. *
  5850. * @param string $name
  5851. * @param string $value
  5852. * @param int $minutes
  5853. * @param string|null $path
  5854. * @param string|null $domain
  5855. * @param bool|null $secure
  5856. * @param bool $httpOnly
  5857. * @param bool $raw
  5858. * @param string|null $sameSite
  5859. * @return \Symfony\Component\HttpFoundation\Cookie
  5860. * @static
  5861. */
  5862. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  5863. {
  5864. /** @var \Illuminate\Cookie\CookieJar $instance */
  5865. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  5866. }
  5867. /**
  5868. * Create a cookie that lasts "forever" (400 days).
  5869. *
  5870. * @param string $name
  5871. * @param string $value
  5872. * @param string|null $path
  5873. * @param string|null $domain
  5874. * @param bool|null $secure
  5875. * @param bool $httpOnly
  5876. * @param bool $raw
  5877. * @param string|null $sameSite
  5878. * @return \Symfony\Component\HttpFoundation\Cookie
  5879. * @static
  5880. */
  5881. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  5882. {
  5883. /** @var \Illuminate\Cookie\CookieJar $instance */
  5884. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  5885. }
  5886. /**
  5887. * Expire the given cookie.
  5888. *
  5889. * @param string $name
  5890. * @param string|null $path
  5891. * @param string|null $domain
  5892. * @return \Symfony\Component\HttpFoundation\Cookie
  5893. * @static
  5894. */
  5895. public static function forget($name, $path = null, $domain = null)
  5896. {
  5897. /** @var \Illuminate\Cookie\CookieJar $instance */
  5898. return $instance->forget($name, $path, $domain);
  5899. }
  5900. /**
  5901. * Determine if a cookie has been queued.
  5902. *
  5903. * @param string $key
  5904. * @param string|null $path
  5905. * @return bool
  5906. * @static
  5907. */
  5908. public static function hasQueued($key, $path = null)
  5909. {
  5910. /** @var \Illuminate\Cookie\CookieJar $instance */
  5911. return $instance->hasQueued($key, $path);
  5912. }
  5913. /**
  5914. * Get a queued cookie instance.
  5915. *
  5916. * @param string $key
  5917. * @param mixed $default
  5918. * @param string|null $path
  5919. * @return \Symfony\Component\HttpFoundation\Cookie|null
  5920. * @static
  5921. */
  5922. public static function queued($key, $default = null, $path = null)
  5923. {
  5924. /** @var \Illuminate\Cookie\CookieJar $instance */
  5925. return $instance->queued($key, $default, $path);
  5926. }
  5927. /**
  5928. * Queue a cookie to send with the next response.
  5929. *
  5930. * @param mixed $parameters
  5931. * @return void
  5932. * @static
  5933. */
  5934. public static function queue(...$parameters)
  5935. {
  5936. /** @var \Illuminate\Cookie\CookieJar $instance */
  5937. $instance->queue(...$parameters);
  5938. }
  5939. /**
  5940. * Queue a cookie to expire with the next response.
  5941. *
  5942. * @param string $name
  5943. * @param string|null $path
  5944. * @param string|null $domain
  5945. * @return void
  5946. * @static
  5947. */
  5948. public static function expire($name, $path = null, $domain = null)
  5949. {
  5950. /** @var \Illuminate\Cookie\CookieJar $instance */
  5951. $instance->expire($name, $path, $domain);
  5952. }
  5953. /**
  5954. * Remove a cookie from the queue.
  5955. *
  5956. * @param string $name
  5957. * @param string|null $path
  5958. * @return void
  5959. * @static
  5960. */
  5961. public static function unqueue($name, $path = null)
  5962. {
  5963. /** @var \Illuminate\Cookie\CookieJar $instance */
  5964. $instance->unqueue($name, $path);
  5965. }
  5966. /**
  5967. * Set the default path and domain for the jar.
  5968. *
  5969. * @param string $path
  5970. * @param string|null $domain
  5971. * @param bool|null $secure
  5972. * @param string|null $sameSite
  5973. * @return \Illuminate\Cookie\CookieJar
  5974. * @static
  5975. */
  5976. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  5977. {
  5978. /** @var \Illuminate\Cookie\CookieJar $instance */
  5979. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  5980. }
  5981. /**
  5982. * Get the cookies which have been queued for the next request.
  5983. *
  5984. * @return \Symfony\Component\HttpFoundation\Cookie[]
  5985. * @static
  5986. */
  5987. public static function getQueuedCookies()
  5988. {
  5989. /** @var \Illuminate\Cookie\CookieJar $instance */
  5990. return $instance->getQueuedCookies();
  5991. }
  5992. /**
  5993. * Flush the cookies which have been queued for the next request.
  5994. *
  5995. * @return \Illuminate\Cookie\CookieJar
  5996. * @static
  5997. */
  5998. public static function flushQueuedCookies()
  5999. {
  6000. /** @var \Illuminate\Cookie\CookieJar $instance */
  6001. return $instance->flushQueuedCookies();
  6002. }
  6003. /**
  6004. * Register a custom macro.
  6005. *
  6006. * @param string $name
  6007. * @param object|callable $macro
  6008. * @param-closure-this static $macro
  6009. * @return void
  6010. * @static
  6011. */
  6012. public static function macro($name, $macro)
  6013. {
  6014. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  6015. }
  6016. /**
  6017. * Mix another object into the class.
  6018. *
  6019. * @param object $mixin
  6020. * @param bool $replace
  6021. * @return void
  6022. * @throws \ReflectionException
  6023. * @static
  6024. */
  6025. public static function mixin($mixin, $replace = true)
  6026. {
  6027. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  6028. }
  6029. /**
  6030. * Checks if macro is registered.
  6031. *
  6032. * @param string $name
  6033. * @return bool
  6034. * @static
  6035. */
  6036. public static function hasMacro($name)
  6037. {
  6038. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  6039. }
  6040. /**
  6041. * Flush the existing macros.
  6042. *
  6043. * @return void
  6044. * @static
  6045. */
  6046. public static function flushMacros()
  6047. {
  6048. \Illuminate\Cookie\CookieJar::flushMacros();
  6049. }
  6050. }
  6051. /**
  6052. * @see \Illuminate\Encryption\Encrypter
  6053. */
  6054. class Crypt {
  6055. /**
  6056. * Determine if the given key and cipher combination is valid.
  6057. *
  6058. * @param string $key
  6059. * @param string $cipher
  6060. * @return bool
  6061. * @static
  6062. */
  6063. public static function supported($key, $cipher)
  6064. {
  6065. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  6066. }
  6067. /**
  6068. * Create a new encryption key for the given cipher.
  6069. *
  6070. * @param string $cipher
  6071. * @return string
  6072. * @static
  6073. */
  6074. public static function generateKey($cipher)
  6075. {
  6076. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  6077. }
  6078. /**
  6079. * Encrypt the given value.
  6080. *
  6081. * @param mixed $value
  6082. * @param bool $serialize
  6083. * @return string
  6084. * @throws \Illuminate\Contracts\Encryption\EncryptException
  6085. * @static
  6086. */
  6087. public static function encrypt($value, $serialize = true)
  6088. {
  6089. /** @var \Illuminate\Encryption\Encrypter $instance */
  6090. return $instance->encrypt($value, $serialize);
  6091. }
  6092. /**
  6093. * Encrypt a string without serialization.
  6094. *
  6095. * @param string $value
  6096. * @return string
  6097. * @throws \Illuminate\Contracts\Encryption\EncryptException
  6098. * @static
  6099. */
  6100. public static function encryptString($value)
  6101. {
  6102. /** @var \Illuminate\Encryption\Encrypter $instance */
  6103. return $instance->encryptString($value);
  6104. }
  6105. /**
  6106. * Decrypt the given value.
  6107. *
  6108. * @param string $payload
  6109. * @param bool $unserialize
  6110. * @return mixed
  6111. * @throws \Illuminate\Contracts\Encryption\DecryptException
  6112. * @static
  6113. */
  6114. public static function decrypt($payload, $unserialize = true)
  6115. {
  6116. /** @var \Illuminate\Encryption\Encrypter $instance */
  6117. return $instance->decrypt($payload, $unserialize);
  6118. }
  6119. /**
  6120. * Decrypt the given string without unserialization.
  6121. *
  6122. * @param string $payload
  6123. * @return string
  6124. * @throws \Illuminate\Contracts\Encryption\DecryptException
  6125. * @static
  6126. */
  6127. public static function decryptString($payload)
  6128. {
  6129. /** @var \Illuminate\Encryption\Encrypter $instance */
  6130. return $instance->decryptString($payload);
  6131. }
  6132. /**
  6133. * Get the encryption key that the encrypter is currently using.
  6134. *
  6135. * @return string
  6136. * @static
  6137. */
  6138. public static function getKey()
  6139. {
  6140. /** @var \Illuminate\Encryption\Encrypter $instance */
  6141. return $instance->getKey();
  6142. }
  6143. /**
  6144. * Get the current encryption key and all previous encryption keys.
  6145. *
  6146. * @return array
  6147. * @static
  6148. */
  6149. public static function getAllKeys()
  6150. {
  6151. /** @var \Illuminate\Encryption\Encrypter $instance */
  6152. return $instance->getAllKeys();
  6153. }
  6154. /**
  6155. * Get the previous encryption keys.
  6156. *
  6157. * @return array
  6158. * @static
  6159. */
  6160. public static function getPreviousKeys()
  6161. {
  6162. /** @var \Illuminate\Encryption\Encrypter $instance */
  6163. return $instance->getPreviousKeys();
  6164. }
  6165. /**
  6166. * Set the previous / legacy encryption keys that should be utilized if decryption fails.
  6167. *
  6168. * @param array $keys
  6169. * @return \Illuminate\Encryption\Encrypter
  6170. * @static
  6171. */
  6172. public static function previousKeys($keys)
  6173. {
  6174. /** @var \Illuminate\Encryption\Encrypter $instance */
  6175. return $instance->previousKeys($keys);
  6176. }
  6177. }
  6178. /**
  6179. * @see https://carbon.nesbot.com/docs/
  6180. * @see https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Factory.php
  6181. * @method static bool canBeCreatedFromFormat(?string $date, string $format)
  6182. * @method static \Illuminate\Support\Carbon|null create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $timezone = null)
  6183. * @method static \Illuminate\Support\Carbon createFromDate($year = null, $month = null, $day = null, $timezone = null)
  6184. * @method static \Illuminate\Support\Carbon|null createFromFormat($format, $time, $timezone = null)
  6185. * @method static \Illuminate\Support\Carbon|null createFromIsoFormat(string $format, string $time, $timezone = null, ?string $locale = 'en', ?\Symfony\Contracts\Translation\TranslatorInterface $translator = null)
  6186. * @method static \Illuminate\Support\Carbon|null createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null)
  6187. * @method static \Illuminate\Support\Carbon|null createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null)
  6188. * @method static \Illuminate\Support\Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null)
  6189. * @method static \Illuminate\Support\Carbon createFromTimeString(string $time, \DateTimeZone|string|int|null $timezone = null)
  6190. * @method static \Illuminate\Support\Carbon createFromTimestamp(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null)
  6191. * @method static \Illuminate\Support\Carbon createFromTimestampMs(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null)
  6192. * @method static \Illuminate\Support\Carbon createFromTimestampMsUTC($timestamp)
  6193. * @method static \Illuminate\Support\Carbon createFromTimestampUTC(string|int|float $timestamp)
  6194. * @method static \Illuminate\Support\Carbon createMidnightDate($year = null, $month = null, $day = null, $timezone = null)
  6195. * @method static \Illuminate\Support\Carbon|null createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $timezone = null)
  6196. * @method static \Illuminate\Support\Carbon createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $timezone = null)
  6197. * @method static void disableHumanDiffOption($humanDiffOption)
  6198. * @method static void enableHumanDiffOption($humanDiffOption)
  6199. * @method static mixed executeWithLocale(string $locale, callable $func)
  6200. * @method static \Illuminate\Support\Carbon fromSerialized($value)
  6201. * @method static array getAvailableLocales()
  6202. * @method static array getAvailableLocalesInfo()
  6203. * @method static array getDays()
  6204. * @method static ?string getFallbackLocale()
  6205. * @method static array getFormatsToIsoReplacements()
  6206. * @method static int getHumanDiffOptions()
  6207. * @method static array getIsoUnits()
  6208. * @method static array|false getLastErrors()
  6209. * @method static string getLocale()
  6210. * @method static int getMidDayAt()
  6211. * @method static string getTimeFormatByPrecision(string $unitPrecision)
  6212. * @method static string|\Closure|null getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null)
  6213. * @method static \Illuminate\Support\Carbon|null getTestNow()
  6214. * @method static \Symfony\Contracts\Translation\TranslatorInterface getTranslator()
  6215. * @method static int getWeekEndsAt(?string $locale = null)
  6216. * @method static int getWeekStartsAt(?string $locale = null)
  6217. * @method static array getWeekendDays()
  6218. * @method static bool hasFormat(string $date, string $format)
  6219. * @method static bool hasFormatWithModifiers(string $date, string $format)
  6220. * @method static bool hasMacro($name)
  6221. * @method static bool hasRelativeKeywords(?string $time)
  6222. * @method static bool hasTestNow()
  6223. * @method static \Illuminate\Support\Carbon instance(\DateTimeInterface $date)
  6224. * @method static bool isImmutable()
  6225. * @method static bool isModifiableUnit($unit)
  6226. * @method static bool isMutable()
  6227. * @method static bool isStrictModeEnabled()
  6228. * @method static bool localeHasDiffOneDayWords(string $locale)
  6229. * @method static bool localeHasDiffSyntax(string $locale)
  6230. * @method static bool localeHasDiffTwoDayWords(string $locale)
  6231. * @method static bool localeHasPeriodSyntax($locale)
  6232. * @method static bool localeHasShortUnits(string $locale)
  6233. * @method static void macro(string $name, ?callable $macro)
  6234. * @method static \Illuminate\Support\Carbon|null make($var, \DateTimeZone|string|null $timezone = null)
  6235. * @method static void mixin(object|string $mixin)
  6236. * @method static \Illuminate\Support\Carbon now(\DateTimeZone|string|int|null $timezone = null)
  6237. * @method static \Illuminate\Support\Carbon parse(\DateTimeInterface|\Carbon\WeekDay|\Carbon\Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null)
  6238. * @method static \Illuminate\Support\Carbon parseFromLocale(string $time, ?string $locale = null, \DateTimeZone|string|int|null $timezone = null)
  6239. * @method static string pluralUnit(string $unit)
  6240. * @method static \Illuminate\Support\Carbon|null rawCreateFromFormat(string $format, string $time, $timezone = null)
  6241. * @method static \Illuminate\Support\Carbon rawParse(\DateTimeInterface|\Carbon\WeekDay|\Carbon\Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null)
  6242. * @method static void resetMonthsOverflow()
  6243. * @method static void resetToStringFormat()
  6244. * @method static void resetYearsOverflow()
  6245. * @method static void serializeUsing($callback)
  6246. * @method static void setFallbackLocale(string $locale)
  6247. * @method static void setHumanDiffOptions($humanDiffOptions)
  6248. * @method static void setLocale(string $locale)
  6249. * @method static void setMidDayAt($hour)
  6250. * @method static void setTestNow(mixed $testNow = null)
  6251. * @method static void setTestNowAndTimezone(mixed $testNow = null, $timezone = null)
  6252. * @method static void setToStringFormat(string|\Closure|null $format)
  6253. * @method static void setTranslator(\Symfony\Contracts\Translation\TranslatorInterface $translator)
  6254. * @method static void setWeekEndsAt($day)
  6255. * @method static void setWeekStartsAt($day)
  6256. * @method static void setWeekendDays($days)
  6257. * @method static bool shouldOverflowMonths()
  6258. * @method static bool shouldOverflowYears()
  6259. * @method static string singularUnit(string $unit)
  6260. * @method static void sleep(int|float $seconds)
  6261. * @method static \Illuminate\Support\Carbon today(\DateTimeZone|string|int|null $timezone = null)
  6262. * @method static \Illuminate\Support\Carbon tomorrow(\DateTimeZone|string|int|null $timezone = null)
  6263. * @method static string translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = \Carbon\CarbonInterface::TRANSLATE_ALL)
  6264. * @method static string translateWith(\Symfony\Contracts\Translation\TranslatorInterface $translator, string $key, array $parameters = [], $number = null)
  6265. * @method static void useMonthsOverflow($monthsOverflow = true)
  6266. * @method static void useStrictMode($strictModeEnabled = true)
  6267. * @method static void useYearsOverflow($yearsOverflow = true)
  6268. * @method static mixed withTestNow(mixed $testNow, callable $callback)
  6269. * @method static static withTimeZone(\DateTimeZone|string|int|null $timezone)
  6270. * @method static \Illuminate\Support\Carbon yesterday(\DateTimeZone|string|int|null $timezone = null)
  6271. * @see \Illuminate\Support\DateFactory
  6272. */
  6273. class Date {
  6274. /**
  6275. * Use the given handler when generating dates (class name, callable, or factory).
  6276. *
  6277. * @param mixed $handler
  6278. * @return mixed
  6279. * @throws \InvalidArgumentException
  6280. * @static
  6281. */
  6282. public static function use($handler)
  6283. {
  6284. return \Illuminate\Support\DateFactory::use($handler);
  6285. }
  6286. /**
  6287. * Use the default date class when generating dates.
  6288. *
  6289. * @return void
  6290. * @static
  6291. */
  6292. public static function useDefault()
  6293. {
  6294. \Illuminate\Support\DateFactory::useDefault();
  6295. }
  6296. /**
  6297. * Execute the given callable on each date creation.
  6298. *
  6299. * @param callable $callable
  6300. * @return void
  6301. * @static
  6302. */
  6303. public static function useCallable($callable)
  6304. {
  6305. \Illuminate\Support\DateFactory::useCallable($callable);
  6306. }
  6307. /**
  6308. * Use the given date type (class) when generating dates.
  6309. *
  6310. * @param string $dateClass
  6311. * @return void
  6312. * @static
  6313. */
  6314. public static function useClass($dateClass)
  6315. {
  6316. \Illuminate\Support\DateFactory::useClass($dateClass);
  6317. }
  6318. /**
  6319. * Use the given Carbon factory when generating dates.
  6320. *
  6321. * @param object $factory
  6322. * @return void
  6323. * @static
  6324. */
  6325. public static function useFactory($factory)
  6326. {
  6327. \Illuminate\Support\DateFactory::useFactory($factory);
  6328. }
  6329. }
  6330. /**
  6331. * @see \Illuminate\Database\DatabaseManager
  6332. */
  6333. class DB {
  6334. /**
  6335. * Get a database connection instance.
  6336. *
  6337. * @param string|null $name
  6338. * @return \Illuminate\Database\Connection
  6339. * @static
  6340. */
  6341. public static function connection($name = null)
  6342. {
  6343. /** @var \Illuminate\Database\DatabaseManager $instance */
  6344. return $instance->connection($name);
  6345. }
  6346. /**
  6347. * Build a database connection instance from the given configuration.
  6348. *
  6349. * @param array $config
  6350. * @return \Illuminate\Database\PostgresConnection
  6351. * @static
  6352. */
  6353. public static function build($config)
  6354. {
  6355. /** @var \Illuminate\Database\DatabaseManager $instance */
  6356. return $instance->build($config);
  6357. }
  6358. /**
  6359. * Calculate the dynamic connection name for an on-demand connection based on its configuration.
  6360. *
  6361. * @param array $config
  6362. * @return string
  6363. * @static
  6364. */
  6365. public static function calculateDynamicConnectionName($config)
  6366. {
  6367. return \Illuminate\Database\DatabaseManager::calculateDynamicConnectionName($config);
  6368. }
  6369. /**
  6370. * Get a database connection instance from the given configuration.
  6371. *
  6372. * @param string $name
  6373. * @param array $config
  6374. * @param bool $force
  6375. * @return \Illuminate\Database\PostgresConnection
  6376. * @static
  6377. */
  6378. public static function connectUsing($name, $config, $force = false)
  6379. {
  6380. /** @var \Illuminate\Database\DatabaseManager $instance */
  6381. return $instance->connectUsing($name, $config, $force);
  6382. }
  6383. /**
  6384. * Disconnect from the given database and remove from local cache.
  6385. *
  6386. * @param string|null $name
  6387. * @return void
  6388. * @static
  6389. */
  6390. public static function purge($name = null)
  6391. {
  6392. /** @var \Illuminate\Database\DatabaseManager $instance */
  6393. $instance->purge($name);
  6394. }
  6395. /**
  6396. * Disconnect from the given database.
  6397. *
  6398. * @param string|null $name
  6399. * @return void
  6400. * @static
  6401. */
  6402. public static function disconnect($name = null)
  6403. {
  6404. /** @var \Illuminate\Database\DatabaseManager $instance */
  6405. $instance->disconnect($name);
  6406. }
  6407. /**
  6408. * Reconnect to the given database.
  6409. *
  6410. * @param string|null $name
  6411. * @return \Illuminate\Database\Connection
  6412. * @static
  6413. */
  6414. public static function reconnect($name = null)
  6415. {
  6416. /** @var \Illuminate\Database\DatabaseManager $instance */
  6417. return $instance->reconnect($name);
  6418. }
  6419. /**
  6420. * Set the default database connection for the callback execution.
  6421. *
  6422. * @param string $name
  6423. * @param callable $callback
  6424. * @return mixed
  6425. * @static
  6426. */
  6427. public static function usingConnection($name, $callback)
  6428. {
  6429. /** @var \Illuminate\Database\DatabaseManager $instance */
  6430. return $instance->usingConnection($name, $callback);
  6431. }
  6432. /**
  6433. * Get the default connection name.
  6434. *
  6435. * @return string
  6436. * @static
  6437. */
  6438. public static function getDefaultConnection()
  6439. {
  6440. /** @var \Illuminate\Database\DatabaseManager $instance */
  6441. return $instance->getDefaultConnection();
  6442. }
  6443. /**
  6444. * Set the default connection name.
  6445. *
  6446. * @param string $name
  6447. * @return void
  6448. * @static
  6449. */
  6450. public static function setDefaultConnection($name)
  6451. {
  6452. /** @var \Illuminate\Database\DatabaseManager $instance */
  6453. $instance->setDefaultConnection($name);
  6454. }
  6455. /**
  6456. * Get all of the supported drivers.
  6457. *
  6458. * @return string[]
  6459. * @static
  6460. */
  6461. public static function supportedDrivers()
  6462. {
  6463. /** @var \Illuminate\Database\DatabaseManager $instance */
  6464. return $instance->supportedDrivers();
  6465. }
  6466. /**
  6467. * Get all of the drivers that are actually available.
  6468. *
  6469. * @return string[]
  6470. * @static
  6471. */
  6472. public static function availableDrivers()
  6473. {
  6474. /** @var \Illuminate\Database\DatabaseManager $instance */
  6475. return $instance->availableDrivers();
  6476. }
  6477. /**
  6478. * Register an extension connection resolver.
  6479. *
  6480. * @param string $name
  6481. * @param callable $resolver
  6482. * @return void
  6483. * @static
  6484. */
  6485. public static function extend($name, $resolver)
  6486. {
  6487. /** @var \Illuminate\Database\DatabaseManager $instance */
  6488. $instance->extend($name, $resolver);
  6489. }
  6490. /**
  6491. * Remove an extension connection resolver.
  6492. *
  6493. * @param string $name
  6494. * @return void
  6495. * @static
  6496. */
  6497. public static function forgetExtension($name)
  6498. {
  6499. /** @var \Illuminate\Database\DatabaseManager $instance */
  6500. $instance->forgetExtension($name);
  6501. }
  6502. /**
  6503. * Return all of the created connections.
  6504. *
  6505. * @return array<string, \Illuminate\Database\Connection>
  6506. * @static
  6507. */
  6508. public static function getConnections()
  6509. {
  6510. /** @var \Illuminate\Database\DatabaseManager $instance */
  6511. return $instance->getConnections();
  6512. }
  6513. /**
  6514. * Set the database reconnector callback.
  6515. *
  6516. * @param callable $reconnector
  6517. * @return void
  6518. * @static
  6519. */
  6520. public static function setReconnector($reconnector)
  6521. {
  6522. /** @var \Illuminate\Database\DatabaseManager $instance */
  6523. $instance->setReconnector($reconnector);
  6524. }
  6525. /**
  6526. * Set the application instance used by the manager.
  6527. *
  6528. * @param \Illuminate\Contracts\Foundation\Application $app
  6529. * @return \Illuminate\Database\DatabaseManager
  6530. * @static
  6531. */
  6532. public static function setApplication($app)
  6533. {
  6534. /** @var \Illuminate\Database\DatabaseManager $instance */
  6535. return $instance->setApplication($app);
  6536. }
  6537. /**
  6538. * Register a custom macro.
  6539. *
  6540. * @param string $name
  6541. * @param object|callable $macro
  6542. * @param-closure-this static $macro
  6543. * @return void
  6544. * @static
  6545. */
  6546. public static function macro($name, $macro)
  6547. {
  6548. \Illuminate\Database\DatabaseManager::macro($name, $macro);
  6549. }
  6550. /**
  6551. * Mix another object into the class.
  6552. *
  6553. * @param object $mixin
  6554. * @param bool $replace
  6555. * @return void
  6556. * @throws \ReflectionException
  6557. * @static
  6558. */
  6559. public static function mixin($mixin, $replace = true)
  6560. {
  6561. \Illuminate\Database\DatabaseManager::mixin($mixin, $replace);
  6562. }
  6563. /**
  6564. * Checks if macro is registered.
  6565. *
  6566. * @param string $name
  6567. * @return bool
  6568. * @static
  6569. */
  6570. public static function hasMacro($name)
  6571. {
  6572. return \Illuminate\Database\DatabaseManager::hasMacro($name);
  6573. }
  6574. /**
  6575. * Flush the existing macros.
  6576. *
  6577. * @return void
  6578. * @static
  6579. */
  6580. public static function flushMacros()
  6581. {
  6582. \Illuminate\Database\DatabaseManager::flushMacros();
  6583. }
  6584. /**
  6585. * Dynamically handle calls to the class.
  6586. *
  6587. * @param string $method
  6588. * @param array $parameters
  6589. * @return mixed
  6590. * @throws \BadMethodCallException
  6591. * @static
  6592. */
  6593. public static function macroCall($method, $parameters)
  6594. {
  6595. /** @var \Illuminate\Database\DatabaseManager $instance */
  6596. return $instance->macroCall($method, $parameters);
  6597. }
  6598. /**
  6599. * Get a human-readable name for the given connection driver.
  6600. *
  6601. * @return string
  6602. * @static
  6603. */
  6604. public static function getDriverTitle()
  6605. {
  6606. /** @var \Illuminate\Database\PostgresConnection $instance */
  6607. return $instance->getDriverTitle();
  6608. }
  6609. /**
  6610. * Get a schema builder instance for the connection.
  6611. *
  6612. * @return \Illuminate\Database\Schema\PostgresBuilder
  6613. * @static
  6614. */
  6615. public static function getSchemaBuilder()
  6616. {
  6617. /** @var \Illuminate\Database\PostgresConnection $instance */
  6618. return $instance->getSchemaBuilder();
  6619. }
  6620. /**
  6621. * Get the schema state for the connection.
  6622. *
  6623. * @param \Illuminate\Filesystem\Filesystem|null $files
  6624. * @param callable|null $processFactory
  6625. * @return \Illuminate\Database\Schema\PostgresSchemaState
  6626. * @static
  6627. */
  6628. public static function getSchemaState($files = null, $processFactory = null)
  6629. {
  6630. /** @var \Illuminate\Database\PostgresConnection $instance */
  6631. return $instance->getSchemaState($files, $processFactory);
  6632. }
  6633. /**
  6634. * Set the query grammar to the default implementation.
  6635. *
  6636. * @return void
  6637. * @static
  6638. */
  6639. public static function useDefaultQueryGrammar()
  6640. {
  6641. //Method inherited from \Illuminate\Database\Connection
  6642. /** @var \Illuminate\Database\PostgresConnection $instance */
  6643. $instance->useDefaultQueryGrammar();
  6644. }
  6645. /**
  6646. * Set the schema grammar to the default implementation.
  6647. *
  6648. * @return void
  6649. * @static
  6650. */
  6651. public static function useDefaultSchemaGrammar()
  6652. {
  6653. //Method inherited from \Illuminate\Database\Connection
  6654. /** @var \Illuminate\Database\PostgresConnection $instance */
  6655. $instance->useDefaultSchemaGrammar();
  6656. }
  6657. /**
  6658. * Set the query post processor to the default implementation.
  6659. *
  6660. * @return void
  6661. * @static
  6662. */
  6663. public static function useDefaultPostProcessor()
  6664. {
  6665. //Method inherited from \Illuminate\Database\Connection
  6666. /** @var \Illuminate\Database\PostgresConnection $instance */
  6667. $instance->useDefaultPostProcessor();
  6668. }
  6669. /**
  6670. * Begin a fluent query against a database table.
  6671. *
  6672. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|string $table
  6673. * @param string|null $as
  6674. * @return \Illuminate\Database\Query\Builder
  6675. * @static
  6676. */
  6677. public static function table($table, $as = null)
  6678. {
  6679. //Method inherited from \Illuminate\Database\Connection
  6680. /** @var \Illuminate\Database\PostgresConnection $instance */
  6681. return $instance->table($table, $as);
  6682. }
  6683. /**
  6684. * Get a new query builder instance.
  6685. *
  6686. * @return \Illuminate\Database\Query\Builder
  6687. * @static
  6688. */
  6689. public static function query()
  6690. {
  6691. //Method inherited from \Illuminate\Database\Connection
  6692. /** @var \Illuminate\Database\PostgresConnection $instance */
  6693. return $instance->query();
  6694. }
  6695. /**
  6696. * Run a select statement and return a single result.
  6697. *
  6698. * @param string $query
  6699. * @param array $bindings
  6700. * @param bool $useReadPdo
  6701. * @return mixed
  6702. * @static
  6703. */
  6704. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  6705. {
  6706. //Method inherited from \Illuminate\Database\Connection
  6707. /** @var \Illuminate\Database\PostgresConnection $instance */
  6708. return $instance->selectOne($query, $bindings, $useReadPdo);
  6709. }
  6710. /**
  6711. * Run a select statement and return the first column of the first row.
  6712. *
  6713. * @param string $query
  6714. * @param array $bindings
  6715. * @param bool $useReadPdo
  6716. * @return mixed
  6717. * @throws \Illuminate\Database\MultipleColumnsSelectedException
  6718. * @static
  6719. */
  6720. public static function scalar($query, $bindings = [], $useReadPdo = true)
  6721. {
  6722. //Method inherited from \Illuminate\Database\Connection
  6723. /** @var \Illuminate\Database\PostgresConnection $instance */
  6724. return $instance->scalar($query, $bindings, $useReadPdo);
  6725. }
  6726. /**
  6727. * Run a select statement against the database.
  6728. *
  6729. * @param string $query
  6730. * @param array $bindings
  6731. * @return array
  6732. * @static
  6733. */
  6734. public static function selectFromWriteConnection($query, $bindings = [])
  6735. {
  6736. //Method inherited from \Illuminate\Database\Connection
  6737. /** @var \Illuminate\Database\PostgresConnection $instance */
  6738. return $instance->selectFromWriteConnection($query, $bindings);
  6739. }
  6740. /**
  6741. * Run a select statement against the database.
  6742. *
  6743. * @param string $query
  6744. * @param array $bindings
  6745. * @param bool $useReadPdo
  6746. * @return array
  6747. * @static
  6748. */
  6749. public static function select($query, $bindings = [], $useReadPdo = true)
  6750. {
  6751. //Method inherited from \Illuminate\Database\Connection
  6752. /** @var \Illuminate\Database\PostgresConnection $instance */
  6753. return $instance->select($query, $bindings, $useReadPdo);
  6754. }
  6755. /**
  6756. * Run a select statement against the database and returns all of the result sets.
  6757. *
  6758. * @param string $query
  6759. * @param array $bindings
  6760. * @param bool $useReadPdo
  6761. * @return array
  6762. * @static
  6763. */
  6764. public static function selectResultSets($query, $bindings = [], $useReadPdo = true)
  6765. {
  6766. //Method inherited from \Illuminate\Database\Connection
  6767. /** @var \Illuminate\Database\PostgresConnection $instance */
  6768. return $instance->selectResultSets($query, $bindings, $useReadPdo);
  6769. }
  6770. /**
  6771. * Run a select statement against the database and returns a generator.
  6772. *
  6773. * @param string $query
  6774. * @param array $bindings
  6775. * @param bool $useReadPdo
  6776. * @return \Generator<int, \stdClass>
  6777. * @static
  6778. */
  6779. public static function cursor($query, $bindings = [], $useReadPdo = true)
  6780. {
  6781. //Method inherited from \Illuminate\Database\Connection
  6782. /** @var \Illuminate\Database\PostgresConnection $instance */
  6783. return $instance->cursor($query, $bindings, $useReadPdo);
  6784. }
  6785. /**
  6786. * Run an insert statement against the database.
  6787. *
  6788. * @param string $query
  6789. * @param array $bindings
  6790. * @return bool
  6791. * @static
  6792. */
  6793. public static function insert($query, $bindings = [])
  6794. {
  6795. //Method inherited from \Illuminate\Database\Connection
  6796. /** @var \Illuminate\Database\PostgresConnection $instance */
  6797. return $instance->insert($query, $bindings);
  6798. }
  6799. /**
  6800. * Run an update statement against the database.
  6801. *
  6802. * @param string $query
  6803. * @param array $bindings
  6804. * @return int
  6805. * @static
  6806. */
  6807. public static function update($query, $bindings = [])
  6808. {
  6809. //Method inherited from \Illuminate\Database\Connection
  6810. /** @var \Illuminate\Database\PostgresConnection $instance */
  6811. return $instance->update($query, $bindings);
  6812. }
  6813. /**
  6814. * Run a delete statement against the database.
  6815. *
  6816. * @param string $query
  6817. * @param array $bindings
  6818. * @return int
  6819. * @static
  6820. */
  6821. public static function delete($query, $bindings = [])
  6822. {
  6823. //Method inherited from \Illuminate\Database\Connection
  6824. /** @var \Illuminate\Database\PostgresConnection $instance */
  6825. return $instance->delete($query, $bindings);
  6826. }
  6827. /**
  6828. * Execute an SQL statement and return the boolean result.
  6829. *
  6830. * @param string $query
  6831. * @param array $bindings
  6832. * @return bool
  6833. * @static
  6834. */
  6835. public static function statement($query, $bindings = [])
  6836. {
  6837. //Method inherited from \Illuminate\Database\Connection
  6838. /** @var \Illuminate\Database\PostgresConnection $instance */
  6839. return $instance->statement($query, $bindings);
  6840. }
  6841. /**
  6842. * Run an SQL statement and get the number of rows affected.
  6843. *
  6844. * @param string $query
  6845. * @param array $bindings
  6846. * @return int
  6847. * @static
  6848. */
  6849. public static function affectingStatement($query, $bindings = [])
  6850. {
  6851. //Method inherited from \Illuminate\Database\Connection
  6852. /** @var \Illuminate\Database\PostgresConnection $instance */
  6853. return $instance->affectingStatement($query, $bindings);
  6854. }
  6855. /**
  6856. * Run a raw, unprepared query against the PDO connection.
  6857. *
  6858. * @param string $query
  6859. * @return bool
  6860. * @static
  6861. */
  6862. public static function unprepared($query)
  6863. {
  6864. //Method inherited from \Illuminate\Database\Connection
  6865. /** @var \Illuminate\Database\PostgresConnection $instance */
  6866. return $instance->unprepared($query);
  6867. }
  6868. /**
  6869. * Get the number of open connections for the database.
  6870. *
  6871. * @return int|null
  6872. * @static
  6873. */
  6874. public static function threadCount()
  6875. {
  6876. //Method inherited from \Illuminate\Database\Connection
  6877. /** @var \Illuminate\Database\PostgresConnection $instance */
  6878. return $instance->threadCount();
  6879. }
  6880. /**
  6881. * Execute the given callback in "dry run" mode.
  6882. *
  6883. * @param \Closure $callback
  6884. * @return array
  6885. * @static
  6886. */
  6887. public static function pretend($callback)
  6888. {
  6889. //Method inherited from \Illuminate\Database\Connection
  6890. /** @var \Illuminate\Database\PostgresConnection $instance */
  6891. return $instance->pretend($callback);
  6892. }
  6893. /**
  6894. * Execute the given callback without "pretending".
  6895. *
  6896. * @param \Closure $callback
  6897. * @return mixed
  6898. * @static
  6899. */
  6900. public static function withoutPretending($callback)
  6901. {
  6902. //Method inherited from \Illuminate\Database\Connection
  6903. /** @var \Illuminate\Database\PostgresConnection $instance */
  6904. return $instance->withoutPretending($callback);
  6905. }
  6906. /**
  6907. * Bind values to their parameters in the given statement.
  6908. *
  6909. * @param \PDOStatement $statement
  6910. * @param array $bindings
  6911. * @return void
  6912. * @static
  6913. */
  6914. public static function bindValues($statement, $bindings)
  6915. {
  6916. //Method inherited from \Illuminate\Database\Connection
  6917. /** @var \Illuminate\Database\PostgresConnection $instance */
  6918. $instance->bindValues($statement, $bindings);
  6919. }
  6920. /**
  6921. * Prepare the query bindings for execution.
  6922. *
  6923. * @param array $bindings
  6924. * @return array
  6925. * @static
  6926. */
  6927. public static function prepareBindings($bindings)
  6928. {
  6929. //Method inherited from \Illuminate\Database\Connection
  6930. /** @var \Illuminate\Database\PostgresConnection $instance */
  6931. return $instance->prepareBindings($bindings);
  6932. }
  6933. /**
  6934. * Log a query in the connection's query log.
  6935. *
  6936. * @param string $query
  6937. * @param array $bindings
  6938. * @param float|null $time
  6939. * @return void
  6940. * @static
  6941. */
  6942. public static function logQuery($query, $bindings, $time = null)
  6943. {
  6944. //Method inherited from \Illuminate\Database\Connection
  6945. /** @var \Illuminate\Database\PostgresConnection $instance */
  6946. $instance->logQuery($query, $bindings, $time);
  6947. }
  6948. /**
  6949. * Register a callback to be invoked when the connection queries for longer than a given amount of time.
  6950. *
  6951. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  6952. * @param callable $handler
  6953. * @return void
  6954. * @static
  6955. */
  6956. public static function whenQueryingForLongerThan($threshold, $handler)
  6957. {
  6958. //Method inherited from \Illuminate\Database\Connection
  6959. /** @var \Illuminate\Database\PostgresConnection $instance */
  6960. $instance->whenQueryingForLongerThan($threshold, $handler);
  6961. }
  6962. /**
  6963. * Allow all the query duration handlers to run again, even if they have already run.
  6964. *
  6965. * @return void
  6966. * @static
  6967. */
  6968. public static function allowQueryDurationHandlersToRunAgain()
  6969. {
  6970. //Method inherited from \Illuminate\Database\Connection
  6971. /** @var \Illuminate\Database\PostgresConnection $instance */
  6972. $instance->allowQueryDurationHandlersToRunAgain();
  6973. }
  6974. /**
  6975. * Get the duration of all run queries in milliseconds.
  6976. *
  6977. * @return float
  6978. * @static
  6979. */
  6980. public static function totalQueryDuration()
  6981. {
  6982. //Method inherited from \Illuminate\Database\Connection
  6983. /** @var \Illuminate\Database\PostgresConnection $instance */
  6984. return $instance->totalQueryDuration();
  6985. }
  6986. /**
  6987. * Reset the duration of all run queries.
  6988. *
  6989. * @return void
  6990. * @static
  6991. */
  6992. public static function resetTotalQueryDuration()
  6993. {
  6994. //Method inherited from \Illuminate\Database\Connection
  6995. /** @var \Illuminate\Database\PostgresConnection $instance */
  6996. $instance->resetTotalQueryDuration();
  6997. }
  6998. /**
  6999. * Reconnect to the database if a PDO connection is missing.
  7000. *
  7001. * @return void
  7002. * @static
  7003. */
  7004. public static function reconnectIfMissingConnection()
  7005. {
  7006. //Method inherited from \Illuminate\Database\Connection
  7007. /** @var \Illuminate\Database\PostgresConnection $instance */
  7008. $instance->reconnectIfMissingConnection();
  7009. }
  7010. /**
  7011. * Register a hook to be run just before a database transaction is started.
  7012. *
  7013. * @param \Closure $callback
  7014. * @return \Illuminate\Database\PostgresConnection
  7015. * @static
  7016. */
  7017. public static function beforeStartingTransaction($callback)
  7018. {
  7019. //Method inherited from \Illuminate\Database\Connection
  7020. /** @var \Illuminate\Database\PostgresConnection $instance */
  7021. return $instance->beforeStartingTransaction($callback);
  7022. }
  7023. /**
  7024. * Register a hook to be run just before a database query is executed.
  7025. *
  7026. * @param \Closure $callback
  7027. * @return \Illuminate\Database\PostgresConnection
  7028. * @static
  7029. */
  7030. public static function beforeExecuting($callback)
  7031. {
  7032. //Method inherited from \Illuminate\Database\Connection
  7033. /** @var \Illuminate\Database\PostgresConnection $instance */
  7034. return $instance->beforeExecuting($callback);
  7035. }
  7036. /**
  7037. * Register a database query listener with the connection.
  7038. *
  7039. * @param \Closure $callback
  7040. * @return void
  7041. * @static
  7042. */
  7043. public static function listen($callback)
  7044. {
  7045. //Method inherited from \Illuminate\Database\Connection
  7046. /** @var \Illuminate\Database\PostgresConnection $instance */
  7047. $instance->listen($callback);
  7048. }
  7049. /**
  7050. * Get a new raw query expression.
  7051. *
  7052. * @param mixed $value
  7053. * @return \Illuminate\Contracts\Database\Query\Expression
  7054. * @static
  7055. */
  7056. public static function raw($value)
  7057. {
  7058. //Method inherited from \Illuminate\Database\Connection
  7059. /** @var \Illuminate\Database\PostgresConnection $instance */
  7060. return $instance->raw($value);
  7061. }
  7062. /**
  7063. * Escape a value for safe SQL embedding.
  7064. *
  7065. * @param string|float|int|bool|null $value
  7066. * @param bool $binary
  7067. * @return string
  7068. * @static
  7069. */
  7070. public static function escape($value, $binary = false)
  7071. {
  7072. //Method inherited from \Illuminate\Database\Connection
  7073. /** @var \Illuminate\Database\PostgresConnection $instance */
  7074. return $instance->escape($value, $binary);
  7075. }
  7076. /**
  7077. * Determine if the database connection has modified any database records.
  7078. *
  7079. * @return bool
  7080. * @static
  7081. */
  7082. public static function hasModifiedRecords()
  7083. {
  7084. //Method inherited from \Illuminate\Database\Connection
  7085. /** @var \Illuminate\Database\PostgresConnection $instance */
  7086. return $instance->hasModifiedRecords();
  7087. }
  7088. /**
  7089. * Indicate if any records have been modified.
  7090. *
  7091. * @param bool $value
  7092. * @return void
  7093. * @static
  7094. */
  7095. public static function recordsHaveBeenModified($value = true)
  7096. {
  7097. //Method inherited from \Illuminate\Database\Connection
  7098. /** @var \Illuminate\Database\PostgresConnection $instance */
  7099. $instance->recordsHaveBeenModified($value);
  7100. }
  7101. /**
  7102. * Set the record modification state.
  7103. *
  7104. * @param bool $value
  7105. * @return \Illuminate\Database\PostgresConnection
  7106. * @static
  7107. */
  7108. public static function setRecordModificationState($value)
  7109. {
  7110. //Method inherited from \Illuminate\Database\Connection
  7111. /** @var \Illuminate\Database\PostgresConnection $instance */
  7112. return $instance->setRecordModificationState($value);
  7113. }
  7114. /**
  7115. * Reset the record modification state.
  7116. *
  7117. * @return void
  7118. * @static
  7119. */
  7120. public static function forgetRecordModificationState()
  7121. {
  7122. //Method inherited from \Illuminate\Database\Connection
  7123. /** @var \Illuminate\Database\PostgresConnection $instance */
  7124. $instance->forgetRecordModificationState();
  7125. }
  7126. /**
  7127. * Indicate that the connection should use the write PDO connection for reads.
  7128. *
  7129. * @param bool $value
  7130. * @return \Illuminate\Database\PostgresConnection
  7131. * @static
  7132. */
  7133. public static function useWriteConnectionWhenReading($value = true)
  7134. {
  7135. //Method inherited from \Illuminate\Database\Connection
  7136. /** @var \Illuminate\Database\PostgresConnection $instance */
  7137. return $instance->useWriteConnectionWhenReading($value);
  7138. }
  7139. /**
  7140. * Get the current PDO connection.
  7141. *
  7142. * @return \PDO
  7143. * @static
  7144. */
  7145. public static function getPdo()
  7146. {
  7147. //Method inherited from \Illuminate\Database\Connection
  7148. /** @var \Illuminate\Database\PostgresConnection $instance */
  7149. return $instance->getPdo();
  7150. }
  7151. /**
  7152. * Get the current PDO connection parameter without executing any reconnect logic.
  7153. *
  7154. * @return \PDO|\Closure|null
  7155. * @static
  7156. */
  7157. public static function getRawPdo()
  7158. {
  7159. //Method inherited from \Illuminate\Database\Connection
  7160. /** @var \Illuminate\Database\PostgresConnection $instance */
  7161. return $instance->getRawPdo();
  7162. }
  7163. /**
  7164. * Get the current PDO connection used for reading.
  7165. *
  7166. * @return \PDO
  7167. * @static
  7168. */
  7169. public static function getReadPdo()
  7170. {
  7171. //Method inherited from \Illuminate\Database\Connection
  7172. /** @var \Illuminate\Database\PostgresConnection $instance */
  7173. return $instance->getReadPdo();
  7174. }
  7175. /**
  7176. * Get the current read PDO connection parameter without executing any reconnect logic.
  7177. *
  7178. * @return \PDO|\Closure|null
  7179. * @static
  7180. */
  7181. public static function getRawReadPdo()
  7182. {
  7183. //Method inherited from \Illuminate\Database\Connection
  7184. /** @var \Illuminate\Database\PostgresConnection $instance */
  7185. return $instance->getRawReadPdo();
  7186. }
  7187. /**
  7188. * Set the PDO connection.
  7189. *
  7190. * @param \PDO|\Closure|null $pdo
  7191. * @return \Illuminate\Database\PostgresConnection
  7192. * @static
  7193. */
  7194. public static function setPdo($pdo)
  7195. {
  7196. //Method inherited from \Illuminate\Database\Connection
  7197. /** @var \Illuminate\Database\PostgresConnection $instance */
  7198. return $instance->setPdo($pdo);
  7199. }
  7200. /**
  7201. * Set the PDO connection used for reading.
  7202. *
  7203. * @param \PDO|\Closure|null $pdo
  7204. * @return \Illuminate\Database\PostgresConnection
  7205. * @static
  7206. */
  7207. public static function setReadPdo($pdo)
  7208. {
  7209. //Method inherited from \Illuminate\Database\Connection
  7210. /** @var \Illuminate\Database\PostgresConnection $instance */
  7211. return $instance->setReadPdo($pdo);
  7212. }
  7213. /**
  7214. * Get the database connection name.
  7215. *
  7216. * @return string|null
  7217. * @static
  7218. */
  7219. public static function getName()
  7220. {
  7221. //Method inherited from \Illuminate\Database\Connection
  7222. /** @var \Illuminate\Database\PostgresConnection $instance */
  7223. return $instance->getName();
  7224. }
  7225. /**
  7226. * Get the database connection full name.
  7227. *
  7228. * @return string|null
  7229. * @static
  7230. */
  7231. public static function getNameWithReadWriteType()
  7232. {
  7233. //Method inherited from \Illuminate\Database\Connection
  7234. /** @var \Illuminate\Database\PostgresConnection $instance */
  7235. return $instance->getNameWithReadWriteType();
  7236. }
  7237. /**
  7238. * Get an option from the configuration options.
  7239. *
  7240. * @param string|null $option
  7241. * @return mixed
  7242. * @static
  7243. */
  7244. public static function getConfig($option = null)
  7245. {
  7246. //Method inherited from \Illuminate\Database\Connection
  7247. /** @var \Illuminate\Database\PostgresConnection $instance */
  7248. return $instance->getConfig($option);
  7249. }
  7250. /**
  7251. * Get the PDO driver name.
  7252. *
  7253. * @return string
  7254. * @static
  7255. */
  7256. public static function getDriverName()
  7257. {
  7258. //Method inherited from \Illuminate\Database\Connection
  7259. /** @var \Illuminate\Database\PostgresConnection $instance */
  7260. return $instance->getDriverName();
  7261. }
  7262. /**
  7263. * Get the query grammar used by the connection.
  7264. *
  7265. * @return \Illuminate\Database\Query\Grammars\Grammar
  7266. * @static
  7267. */
  7268. public static function getQueryGrammar()
  7269. {
  7270. //Method inherited from \Illuminate\Database\Connection
  7271. /** @var \Illuminate\Database\PostgresConnection $instance */
  7272. return $instance->getQueryGrammar();
  7273. }
  7274. /**
  7275. * Set the query grammar used by the connection.
  7276. *
  7277. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  7278. * @return \Illuminate\Database\PostgresConnection
  7279. * @static
  7280. */
  7281. public static function setQueryGrammar($grammar)
  7282. {
  7283. //Method inherited from \Illuminate\Database\Connection
  7284. /** @var \Illuminate\Database\PostgresConnection $instance */
  7285. return $instance->setQueryGrammar($grammar);
  7286. }
  7287. /**
  7288. * Get the schema grammar used by the connection.
  7289. *
  7290. * @return \Illuminate\Database\Schema\Grammars\Grammar
  7291. * @static
  7292. */
  7293. public static function getSchemaGrammar()
  7294. {
  7295. //Method inherited from \Illuminate\Database\Connection
  7296. /** @var \Illuminate\Database\PostgresConnection $instance */
  7297. return $instance->getSchemaGrammar();
  7298. }
  7299. /**
  7300. * Set the schema grammar used by the connection.
  7301. *
  7302. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  7303. * @return \Illuminate\Database\PostgresConnection
  7304. * @static
  7305. */
  7306. public static function setSchemaGrammar($grammar)
  7307. {
  7308. //Method inherited from \Illuminate\Database\Connection
  7309. /** @var \Illuminate\Database\PostgresConnection $instance */
  7310. return $instance->setSchemaGrammar($grammar);
  7311. }
  7312. /**
  7313. * Get the query post processor used by the connection.
  7314. *
  7315. * @return \Illuminate\Database\Query\Processors\Processor
  7316. * @static
  7317. */
  7318. public static function getPostProcessor()
  7319. {
  7320. //Method inherited from \Illuminate\Database\Connection
  7321. /** @var \Illuminate\Database\PostgresConnection $instance */
  7322. return $instance->getPostProcessor();
  7323. }
  7324. /**
  7325. * Set the query post processor used by the connection.
  7326. *
  7327. * @param \Illuminate\Database\Query\Processors\Processor $processor
  7328. * @return \Illuminate\Database\PostgresConnection
  7329. * @static
  7330. */
  7331. public static function setPostProcessor($processor)
  7332. {
  7333. //Method inherited from \Illuminate\Database\Connection
  7334. /** @var \Illuminate\Database\PostgresConnection $instance */
  7335. return $instance->setPostProcessor($processor);
  7336. }
  7337. /**
  7338. * Get the event dispatcher used by the connection.
  7339. *
  7340. * @return \Illuminate\Contracts\Events\Dispatcher
  7341. * @static
  7342. */
  7343. public static function getEventDispatcher()
  7344. {
  7345. //Method inherited from \Illuminate\Database\Connection
  7346. /** @var \Illuminate\Database\PostgresConnection $instance */
  7347. return $instance->getEventDispatcher();
  7348. }
  7349. /**
  7350. * Set the event dispatcher instance on the connection.
  7351. *
  7352. * @param \Illuminate\Contracts\Events\Dispatcher $events
  7353. * @return \Illuminate\Database\PostgresConnection
  7354. * @static
  7355. */
  7356. public static function setEventDispatcher($events)
  7357. {
  7358. //Method inherited from \Illuminate\Database\Connection
  7359. /** @var \Illuminate\Database\PostgresConnection $instance */
  7360. return $instance->setEventDispatcher($events);
  7361. }
  7362. /**
  7363. * Unset the event dispatcher for this connection.
  7364. *
  7365. * @return void
  7366. * @static
  7367. */
  7368. public static function unsetEventDispatcher()
  7369. {
  7370. //Method inherited from \Illuminate\Database\Connection
  7371. /** @var \Illuminate\Database\PostgresConnection $instance */
  7372. $instance->unsetEventDispatcher();
  7373. }
  7374. /**
  7375. * Set the transaction manager instance on the connection.
  7376. *
  7377. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  7378. * @return \Illuminate\Database\PostgresConnection
  7379. * @static
  7380. */
  7381. public static function setTransactionManager($manager)
  7382. {
  7383. //Method inherited from \Illuminate\Database\Connection
  7384. /** @var \Illuminate\Database\PostgresConnection $instance */
  7385. return $instance->setTransactionManager($manager);
  7386. }
  7387. /**
  7388. * Unset the transaction manager for this connection.
  7389. *
  7390. * @return void
  7391. * @static
  7392. */
  7393. public static function unsetTransactionManager()
  7394. {
  7395. //Method inherited from \Illuminate\Database\Connection
  7396. /** @var \Illuminate\Database\PostgresConnection $instance */
  7397. $instance->unsetTransactionManager();
  7398. }
  7399. /**
  7400. * Determine if the connection is in a "dry run".
  7401. *
  7402. * @return bool
  7403. * @static
  7404. */
  7405. public static function pretending()
  7406. {
  7407. //Method inherited from \Illuminate\Database\Connection
  7408. /** @var \Illuminate\Database\PostgresConnection $instance */
  7409. return $instance->pretending();
  7410. }
  7411. /**
  7412. * Get the connection query log.
  7413. *
  7414. * @return array
  7415. * @static
  7416. */
  7417. public static function getQueryLog()
  7418. {
  7419. //Method inherited from \Illuminate\Database\Connection
  7420. /** @var \Illuminate\Database\PostgresConnection $instance */
  7421. return $instance->getQueryLog();
  7422. }
  7423. /**
  7424. * Get the connection query log with embedded bindings.
  7425. *
  7426. * @return array
  7427. * @static
  7428. */
  7429. public static function getRawQueryLog()
  7430. {
  7431. //Method inherited from \Illuminate\Database\Connection
  7432. /** @var \Illuminate\Database\PostgresConnection $instance */
  7433. return $instance->getRawQueryLog();
  7434. }
  7435. /**
  7436. * Clear the query log.
  7437. *
  7438. * @return void
  7439. * @static
  7440. */
  7441. public static function flushQueryLog()
  7442. {
  7443. //Method inherited from \Illuminate\Database\Connection
  7444. /** @var \Illuminate\Database\PostgresConnection $instance */
  7445. $instance->flushQueryLog();
  7446. }
  7447. /**
  7448. * Enable the query log on the connection.
  7449. *
  7450. * @return void
  7451. * @static
  7452. */
  7453. public static function enableQueryLog()
  7454. {
  7455. //Method inherited from \Illuminate\Database\Connection
  7456. /** @var \Illuminate\Database\PostgresConnection $instance */
  7457. $instance->enableQueryLog();
  7458. }
  7459. /**
  7460. * Disable the query log on the connection.
  7461. *
  7462. * @return void
  7463. * @static
  7464. */
  7465. public static function disableQueryLog()
  7466. {
  7467. //Method inherited from \Illuminate\Database\Connection
  7468. /** @var \Illuminate\Database\PostgresConnection $instance */
  7469. $instance->disableQueryLog();
  7470. }
  7471. /**
  7472. * Determine whether we're logging queries.
  7473. *
  7474. * @return bool
  7475. * @static
  7476. */
  7477. public static function logging()
  7478. {
  7479. //Method inherited from \Illuminate\Database\Connection
  7480. /** @var \Illuminate\Database\PostgresConnection $instance */
  7481. return $instance->logging();
  7482. }
  7483. /**
  7484. * Get the name of the connected database.
  7485. *
  7486. * @return string
  7487. * @static
  7488. */
  7489. public static function getDatabaseName()
  7490. {
  7491. //Method inherited from \Illuminate\Database\Connection
  7492. /** @var \Illuminate\Database\PostgresConnection $instance */
  7493. return $instance->getDatabaseName();
  7494. }
  7495. /**
  7496. * Set the name of the connected database.
  7497. *
  7498. * @param string $database
  7499. * @return \Illuminate\Database\PostgresConnection
  7500. * @static
  7501. */
  7502. public static function setDatabaseName($database)
  7503. {
  7504. //Method inherited from \Illuminate\Database\Connection
  7505. /** @var \Illuminate\Database\PostgresConnection $instance */
  7506. return $instance->setDatabaseName($database);
  7507. }
  7508. /**
  7509. * Set the read / write type of the connection.
  7510. *
  7511. * @param string|null $readWriteType
  7512. * @return \Illuminate\Database\PostgresConnection
  7513. * @static
  7514. */
  7515. public static function setReadWriteType($readWriteType)
  7516. {
  7517. //Method inherited from \Illuminate\Database\Connection
  7518. /** @var \Illuminate\Database\PostgresConnection $instance */
  7519. return $instance->setReadWriteType($readWriteType);
  7520. }
  7521. /**
  7522. * Get the table prefix for the connection.
  7523. *
  7524. * @return string
  7525. * @static
  7526. */
  7527. public static function getTablePrefix()
  7528. {
  7529. //Method inherited from \Illuminate\Database\Connection
  7530. /** @var \Illuminate\Database\PostgresConnection $instance */
  7531. return $instance->getTablePrefix();
  7532. }
  7533. /**
  7534. * Set the table prefix in use by the connection.
  7535. *
  7536. * @param string $prefix
  7537. * @return \Illuminate\Database\PostgresConnection
  7538. * @static
  7539. */
  7540. public static function setTablePrefix($prefix)
  7541. {
  7542. //Method inherited from \Illuminate\Database\Connection
  7543. /** @var \Illuminate\Database\PostgresConnection $instance */
  7544. return $instance->setTablePrefix($prefix);
  7545. }
  7546. /**
  7547. * Execute the given callback without table prefix.
  7548. *
  7549. * @param \Closure $callback
  7550. * @return mixed
  7551. * @static
  7552. */
  7553. public static function withoutTablePrefix($callback)
  7554. {
  7555. //Method inherited from \Illuminate\Database\Connection
  7556. /** @var \Illuminate\Database\PostgresConnection $instance */
  7557. return $instance->withoutTablePrefix($callback);
  7558. }
  7559. /**
  7560. * Get the server version for the connection.
  7561. *
  7562. * @return string
  7563. * @static
  7564. */
  7565. public static function getServerVersion()
  7566. {
  7567. //Method inherited from \Illuminate\Database\Connection
  7568. /** @var \Illuminate\Database\PostgresConnection $instance */
  7569. return $instance->getServerVersion();
  7570. }
  7571. /**
  7572. * Register a connection resolver.
  7573. *
  7574. * @param string $driver
  7575. * @param \Closure $callback
  7576. * @return void
  7577. * @static
  7578. */
  7579. public static function resolverFor($driver, $callback)
  7580. {
  7581. //Method inherited from \Illuminate\Database\Connection
  7582. \Illuminate\Database\PostgresConnection::resolverFor($driver, $callback);
  7583. }
  7584. /**
  7585. * Get the connection resolver for the given driver.
  7586. *
  7587. * @param string $driver
  7588. * @return \Closure|null
  7589. * @static
  7590. */
  7591. public static function getResolver($driver)
  7592. {
  7593. //Method inherited from \Illuminate\Database\Connection
  7594. return \Illuminate\Database\PostgresConnection::getResolver($driver);
  7595. }
  7596. /**
  7597. * @template TReturn of mixed
  7598. *
  7599. * Execute a Closure within a transaction.
  7600. * @param (\Closure(static): TReturn) $callback
  7601. * @param int $attempts
  7602. * @return TReturn
  7603. * @throws \Throwable
  7604. * @static
  7605. */
  7606. public static function transaction($callback, $attempts = 1)
  7607. {
  7608. //Method inherited from \Illuminate\Database\Connection
  7609. /** @var \Illuminate\Database\PostgresConnection $instance */
  7610. return $instance->transaction($callback, $attempts);
  7611. }
  7612. /**
  7613. * Start a new database transaction.
  7614. *
  7615. * @return void
  7616. * @throws \Throwable
  7617. * @static
  7618. */
  7619. public static function beginTransaction()
  7620. {
  7621. //Method inherited from \Illuminate\Database\Connection
  7622. /** @var \Illuminate\Database\PostgresConnection $instance */
  7623. $instance->beginTransaction();
  7624. }
  7625. /**
  7626. * Commit the active database transaction.
  7627. *
  7628. * @return void
  7629. * @throws \Throwable
  7630. * @static
  7631. */
  7632. public static function commit()
  7633. {
  7634. //Method inherited from \Illuminate\Database\Connection
  7635. /** @var \Illuminate\Database\PostgresConnection $instance */
  7636. $instance->commit();
  7637. }
  7638. /**
  7639. * Rollback the active database transaction.
  7640. *
  7641. * @param int|null $toLevel
  7642. * @return void
  7643. * @throws \Throwable
  7644. * @static
  7645. */
  7646. public static function rollBack($toLevel = null)
  7647. {
  7648. //Method inherited from \Illuminate\Database\Connection
  7649. /** @var \Illuminate\Database\PostgresConnection $instance */
  7650. $instance->rollBack($toLevel);
  7651. }
  7652. /**
  7653. * Get the number of active transactions.
  7654. *
  7655. * @return int
  7656. * @static
  7657. */
  7658. public static function transactionLevel()
  7659. {
  7660. //Method inherited from \Illuminate\Database\Connection
  7661. /** @var \Illuminate\Database\PostgresConnection $instance */
  7662. return $instance->transactionLevel();
  7663. }
  7664. /**
  7665. * Execute the callback after a transaction commits.
  7666. *
  7667. * @param callable $callback
  7668. * @return void
  7669. * @throws \RuntimeException
  7670. * @static
  7671. */
  7672. public static function afterCommit($callback)
  7673. {
  7674. //Method inherited from \Illuminate\Database\Connection
  7675. /** @var \Illuminate\Database\PostgresConnection $instance */
  7676. $instance->afterCommit($callback);
  7677. }
  7678. }
  7679. /**
  7680. * @see \Illuminate\Events\Dispatcher
  7681. * @see \Illuminate\Support\Testing\Fakes\EventFake
  7682. */
  7683. class Event {
  7684. /**
  7685. * Register an event listener with the dispatcher.
  7686. *
  7687. * @param \Illuminate\Events\Queued\Closure|callable|array|class-string|string $events
  7688. * @param \Illuminate\Events\Queued\Closure|callable|array|class-string|null $listener
  7689. * @return void
  7690. * @static
  7691. */
  7692. public static function listen($events, $listener = null)
  7693. {
  7694. /** @var \Illuminate\Events\Dispatcher $instance */
  7695. $instance->listen($events, $listener);
  7696. }
  7697. /**
  7698. * Determine if a given event has listeners.
  7699. *
  7700. * @param string $eventName
  7701. * @return bool
  7702. * @static
  7703. */
  7704. public static function hasListeners($eventName)
  7705. {
  7706. /** @var \Illuminate\Events\Dispatcher $instance */
  7707. return $instance->hasListeners($eventName);
  7708. }
  7709. /**
  7710. * Determine if the given event has any wildcard listeners.
  7711. *
  7712. * @param string $eventName
  7713. * @return bool
  7714. * @static
  7715. */
  7716. public static function hasWildcardListeners($eventName)
  7717. {
  7718. /** @var \Illuminate\Events\Dispatcher $instance */
  7719. return $instance->hasWildcardListeners($eventName);
  7720. }
  7721. /**
  7722. * Register an event and payload to be fired later.
  7723. *
  7724. * @param string $event
  7725. * @param object|array $payload
  7726. * @return void
  7727. * @static
  7728. */
  7729. public static function push($event, $payload = [])
  7730. {
  7731. /** @var \Illuminate\Events\Dispatcher $instance */
  7732. $instance->push($event, $payload);
  7733. }
  7734. /**
  7735. * Flush a set of pushed events.
  7736. *
  7737. * @param string $event
  7738. * @return void
  7739. * @static
  7740. */
  7741. public static function flush($event)
  7742. {
  7743. /** @var \Illuminate\Events\Dispatcher $instance */
  7744. $instance->flush($event);
  7745. }
  7746. /**
  7747. * Register an event subscriber with the dispatcher.
  7748. *
  7749. * @param object|string $subscriber
  7750. * @return void
  7751. * @static
  7752. */
  7753. public static function subscribe($subscriber)
  7754. {
  7755. /** @var \Illuminate\Events\Dispatcher $instance */
  7756. $instance->subscribe($subscriber);
  7757. }
  7758. /**
  7759. * Fire an event until the first non-null response is returned.
  7760. *
  7761. * @param string|object $event
  7762. * @param mixed $payload
  7763. * @return mixed
  7764. * @static
  7765. */
  7766. public static function until($event, $payload = [])
  7767. {
  7768. /** @var \Illuminate\Events\Dispatcher $instance */
  7769. return $instance->until($event, $payload);
  7770. }
  7771. /**
  7772. * Fire an event and call the listeners.
  7773. *
  7774. * @param string|object $event
  7775. * @param mixed $payload
  7776. * @param bool $halt
  7777. * @return array|null
  7778. * @static
  7779. */
  7780. public static function dispatch($event, $payload = [], $halt = false)
  7781. {
  7782. /** @var \Illuminate\Events\Dispatcher $instance */
  7783. return $instance->dispatch($event, $payload, $halt);
  7784. }
  7785. /**
  7786. * Get all of the listeners for a given event name.
  7787. *
  7788. * @param string $eventName
  7789. * @return array
  7790. * @static
  7791. */
  7792. public static function getListeners($eventName)
  7793. {
  7794. /** @var \Illuminate\Events\Dispatcher $instance */
  7795. return $instance->getListeners($eventName);
  7796. }
  7797. /**
  7798. * Register an event listener with the dispatcher.
  7799. *
  7800. * @param \Closure|string|array $listener
  7801. * @param bool $wildcard
  7802. * @return \Closure
  7803. * @static
  7804. */
  7805. public static function makeListener($listener, $wildcard = false)
  7806. {
  7807. /** @var \Illuminate\Events\Dispatcher $instance */
  7808. return $instance->makeListener($listener, $wildcard);
  7809. }
  7810. /**
  7811. * Create a class based listener using the IoC container.
  7812. *
  7813. * @param string $listener
  7814. * @param bool $wildcard
  7815. * @return \Closure
  7816. * @static
  7817. */
  7818. public static function createClassListener($listener, $wildcard = false)
  7819. {
  7820. /** @var \Illuminate\Events\Dispatcher $instance */
  7821. return $instance->createClassListener($listener, $wildcard);
  7822. }
  7823. /**
  7824. * Remove a set of listeners from the dispatcher.
  7825. *
  7826. * @param string $event
  7827. * @return void
  7828. * @static
  7829. */
  7830. public static function forget($event)
  7831. {
  7832. /** @var \Illuminate\Events\Dispatcher $instance */
  7833. $instance->forget($event);
  7834. }
  7835. /**
  7836. * Forget all of the pushed listeners.
  7837. *
  7838. * @return void
  7839. * @static
  7840. */
  7841. public static function forgetPushed()
  7842. {
  7843. /** @var \Illuminate\Events\Dispatcher $instance */
  7844. $instance->forgetPushed();
  7845. }
  7846. /**
  7847. * Set the queue resolver implementation.
  7848. *
  7849. * @param callable $resolver
  7850. * @return \Illuminate\Events\Dispatcher
  7851. * @static
  7852. */
  7853. public static function setQueueResolver($resolver)
  7854. {
  7855. /** @var \Illuminate\Events\Dispatcher $instance */
  7856. return $instance->setQueueResolver($resolver);
  7857. }
  7858. /**
  7859. * Set the database transaction manager resolver implementation.
  7860. *
  7861. * @param callable $resolver
  7862. * @return \Illuminate\Events\Dispatcher
  7863. * @static
  7864. */
  7865. public static function setTransactionManagerResolver($resolver)
  7866. {
  7867. /** @var \Illuminate\Events\Dispatcher $instance */
  7868. return $instance->setTransactionManagerResolver($resolver);
  7869. }
  7870. /**
  7871. * Gets the raw, unprepared listeners.
  7872. *
  7873. * @return array
  7874. * @static
  7875. */
  7876. public static function getRawListeners()
  7877. {
  7878. /** @var \Illuminate\Events\Dispatcher $instance */
  7879. return $instance->getRawListeners();
  7880. }
  7881. /**
  7882. * Register a custom macro.
  7883. *
  7884. * @param string $name
  7885. * @param object|callable $macro
  7886. * @param-closure-this static $macro
  7887. * @return void
  7888. * @static
  7889. */
  7890. public static function macro($name, $macro)
  7891. {
  7892. \Illuminate\Events\Dispatcher::macro($name, $macro);
  7893. }
  7894. /**
  7895. * Mix another object into the class.
  7896. *
  7897. * @param object $mixin
  7898. * @param bool $replace
  7899. * @return void
  7900. * @throws \ReflectionException
  7901. * @static
  7902. */
  7903. public static function mixin($mixin, $replace = true)
  7904. {
  7905. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  7906. }
  7907. /**
  7908. * Checks if macro is registered.
  7909. *
  7910. * @param string $name
  7911. * @return bool
  7912. * @static
  7913. */
  7914. public static function hasMacro($name)
  7915. {
  7916. return \Illuminate\Events\Dispatcher::hasMacro($name);
  7917. }
  7918. /**
  7919. * Flush the existing macros.
  7920. *
  7921. * @return void
  7922. * @static
  7923. */
  7924. public static function flushMacros()
  7925. {
  7926. \Illuminate\Events\Dispatcher::flushMacros();
  7927. }
  7928. /**
  7929. * Specify the events that should be dispatched instead of faked.
  7930. *
  7931. * @param array|string $eventsToDispatch
  7932. * @return \Illuminate\Support\Testing\Fakes\EventFake
  7933. * @static
  7934. */
  7935. public static function except($eventsToDispatch)
  7936. {
  7937. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  7938. return $instance->except($eventsToDispatch);
  7939. }
  7940. /**
  7941. * Assert if an event has a listener attached to it.
  7942. *
  7943. * @param string $expectedEvent
  7944. * @param string|array $expectedListener
  7945. * @return void
  7946. * @static
  7947. */
  7948. public static function assertListening($expectedEvent, $expectedListener)
  7949. {
  7950. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  7951. $instance->assertListening($expectedEvent, $expectedListener);
  7952. }
  7953. /**
  7954. * Assert if an event was dispatched based on a truth-test callback.
  7955. *
  7956. * @param string|\Closure $event
  7957. * @param callable|int|null $callback
  7958. * @return void
  7959. * @static
  7960. */
  7961. public static function assertDispatched($event, $callback = null)
  7962. {
  7963. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  7964. $instance->assertDispatched($event, $callback);
  7965. }
  7966. /**
  7967. * Assert if an event was dispatched a number of times.
  7968. *
  7969. * @param string $event
  7970. * @param int $times
  7971. * @return void
  7972. * @static
  7973. */
  7974. public static function assertDispatchedTimes($event, $times = 1)
  7975. {
  7976. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  7977. $instance->assertDispatchedTimes($event, $times);
  7978. }
  7979. /**
  7980. * Determine if an event was dispatched based on a truth-test callback.
  7981. *
  7982. * @param string|\Closure $event
  7983. * @param callable|null $callback
  7984. * @return void
  7985. * @static
  7986. */
  7987. public static function assertNotDispatched($event, $callback = null)
  7988. {
  7989. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  7990. $instance->assertNotDispatched($event, $callback);
  7991. }
  7992. /**
  7993. * Assert that no events were dispatched.
  7994. *
  7995. * @return void
  7996. * @static
  7997. */
  7998. public static function assertNothingDispatched()
  7999. {
  8000. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  8001. $instance->assertNothingDispatched();
  8002. }
  8003. /**
  8004. * Get all of the events matching a truth-test callback.
  8005. *
  8006. * @param string $event
  8007. * @param callable|null $callback
  8008. * @return \Illuminate\Support\Collection
  8009. * @static
  8010. */
  8011. public static function dispatched($event, $callback = null)
  8012. {
  8013. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  8014. return $instance->dispatched($event, $callback);
  8015. }
  8016. /**
  8017. * Determine if the given event has been dispatched.
  8018. *
  8019. * @param string $event
  8020. * @return bool
  8021. * @static
  8022. */
  8023. public static function hasDispatched($event)
  8024. {
  8025. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  8026. return $instance->hasDispatched($event);
  8027. }
  8028. /**
  8029. * Get the events that have been dispatched.
  8030. *
  8031. * @return array
  8032. * @static
  8033. */
  8034. public static function dispatchedEvents()
  8035. {
  8036. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  8037. return $instance->dispatchedEvents();
  8038. }
  8039. }
  8040. /**
  8041. * @see \Illuminate\Filesystem\Filesystem
  8042. */
  8043. class File {
  8044. /**
  8045. * Determine if a file or directory exists.
  8046. *
  8047. * @param string $path
  8048. * @return bool
  8049. * @static
  8050. */
  8051. public static function exists($path)
  8052. {
  8053. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8054. return $instance->exists($path);
  8055. }
  8056. /**
  8057. * Determine if a file or directory is missing.
  8058. *
  8059. * @param string $path
  8060. * @return bool
  8061. * @static
  8062. */
  8063. public static function missing($path)
  8064. {
  8065. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8066. return $instance->missing($path);
  8067. }
  8068. /**
  8069. * Get the contents of a file.
  8070. *
  8071. * @param string $path
  8072. * @param bool $lock
  8073. * @return string
  8074. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  8075. * @static
  8076. */
  8077. public static function get($path, $lock = false)
  8078. {
  8079. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8080. return $instance->get($path, $lock);
  8081. }
  8082. /**
  8083. * Get the contents of a file as decoded JSON.
  8084. *
  8085. * @param string $path
  8086. * @param int $flags
  8087. * @param bool $lock
  8088. * @return array
  8089. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  8090. * @static
  8091. */
  8092. public static function json($path, $flags = 0, $lock = false)
  8093. {
  8094. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8095. return $instance->json($path, $flags, $lock);
  8096. }
  8097. /**
  8098. * Get contents of a file with shared access.
  8099. *
  8100. * @param string $path
  8101. * @return string
  8102. * @static
  8103. */
  8104. public static function sharedGet($path)
  8105. {
  8106. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8107. return $instance->sharedGet($path);
  8108. }
  8109. /**
  8110. * Get the returned value of a file.
  8111. *
  8112. * @param string $path
  8113. * @param array $data
  8114. * @return mixed
  8115. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  8116. * @static
  8117. */
  8118. public static function getRequire($path, $data = [])
  8119. {
  8120. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8121. return $instance->getRequire($path, $data);
  8122. }
  8123. /**
  8124. * Require the given file once.
  8125. *
  8126. * @param string $path
  8127. * @param array $data
  8128. * @return mixed
  8129. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  8130. * @static
  8131. */
  8132. public static function requireOnce($path, $data = [])
  8133. {
  8134. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8135. return $instance->requireOnce($path, $data);
  8136. }
  8137. /**
  8138. * Get the contents of a file one line at a time.
  8139. *
  8140. * @param string $path
  8141. * @return \Illuminate\Support\LazyCollection
  8142. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  8143. * @static
  8144. */
  8145. public static function lines($path)
  8146. {
  8147. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8148. return $instance->lines($path);
  8149. }
  8150. /**
  8151. * Get the hash of the file at the given path.
  8152. *
  8153. * @param string $path
  8154. * @param string $algorithm
  8155. * @return string|false
  8156. * @static
  8157. */
  8158. public static function hash($path, $algorithm = 'md5')
  8159. {
  8160. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8161. return $instance->hash($path, $algorithm);
  8162. }
  8163. /**
  8164. * Write the contents of a file.
  8165. *
  8166. * @param string $path
  8167. * @param string $contents
  8168. * @param bool $lock
  8169. * @return int|bool
  8170. * @static
  8171. */
  8172. public static function put($path, $contents, $lock = false)
  8173. {
  8174. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8175. return $instance->put($path, $contents, $lock);
  8176. }
  8177. /**
  8178. * Write the contents of a file, replacing it atomically if it already exists.
  8179. *
  8180. * @param string $path
  8181. * @param string $content
  8182. * @param int|null $mode
  8183. * @return void
  8184. * @static
  8185. */
  8186. public static function replace($path, $content, $mode = null)
  8187. {
  8188. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8189. $instance->replace($path, $content, $mode);
  8190. }
  8191. /**
  8192. * Replace a given string within a given file.
  8193. *
  8194. * @param array|string $search
  8195. * @param array|string $replace
  8196. * @param string $path
  8197. * @return void
  8198. * @static
  8199. */
  8200. public static function replaceInFile($search, $replace, $path)
  8201. {
  8202. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8203. $instance->replaceInFile($search, $replace, $path);
  8204. }
  8205. /**
  8206. * Prepend to a file.
  8207. *
  8208. * @param string $path
  8209. * @param string $data
  8210. * @return int
  8211. * @static
  8212. */
  8213. public static function prepend($path, $data)
  8214. {
  8215. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8216. return $instance->prepend($path, $data);
  8217. }
  8218. /**
  8219. * Append to a file.
  8220. *
  8221. * @param string $path
  8222. * @param string $data
  8223. * @param bool $lock
  8224. * @return int
  8225. * @static
  8226. */
  8227. public static function append($path, $data, $lock = false)
  8228. {
  8229. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8230. return $instance->append($path, $data, $lock);
  8231. }
  8232. /**
  8233. * Get or set UNIX mode of a file or directory.
  8234. *
  8235. * @param string $path
  8236. * @param int|null $mode
  8237. * @return mixed
  8238. * @static
  8239. */
  8240. public static function chmod($path, $mode = null)
  8241. {
  8242. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8243. return $instance->chmod($path, $mode);
  8244. }
  8245. /**
  8246. * Delete the file at a given path.
  8247. *
  8248. * @param string|array $paths
  8249. * @return bool
  8250. * @static
  8251. */
  8252. public static function delete($paths)
  8253. {
  8254. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8255. return $instance->delete($paths);
  8256. }
  8257. /**
  8258. * Move a file to a new location.
  8259. *
  8260. * @param string $path
  8261. * @param string $target
  8262. * @return bool
  8263. * @static
  8264. */
  8265. public static function move($path, $target)
  8266. {
  8267. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8268. return $instance->move($path, $target);
  8269. }
  8270. /**
  8271. * Copy a file to a new location.
  8272. *
  8273. * @param string $path
  8274. * @param string $target
  8275. * @return bool
  8276. * @static
  8277. */
  8278. public static function copy($path, $target)
  8279. {
  8280. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8281. return $instance->copy($path, $target);
  8282. }
  8283. /**
  8284. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  8285. *
  8286. * @param string $target
  8287. * @param string $link
  8288. * @return bool|null
  8289. * @static
  8290. */
  8291. public static function link($target, $link)
  8292. {
  8293. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8294. return $instance->link($target, $link);
  8295. }
  8296. /**
  8297. * Create a relative symlink to the target file or directory.
  8298. *
  8299. * @param string $target
  8300. * @param string $link
  8301. * @return void
  8302. * @throws \RuntimeException
  8303. * @static
  8304. */
  8305. public static function relativeLink($target, $link)
  8306. {
  8307. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8308. $instance->relativeLink($target, $link);
  8309. }
  8310. /**
  8311. * Extract the file name from a file path.
  8312. *
  8313. * @param string $path
  8314. * @return string
  8315. * @static
  8316. */
  8317. public static function name($path)
  8318. {
  8319. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8320. return $instance->name($path);
  8321. }
  8322. /**
  8323. * Extract the trailing name component from a file path.
  8324. *
  8325. * @param string $path
  8326. * @return string
  8327. * @static
  8328. */
  8329. public static function basename($path)
  8330. {
  8331. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8332. return $instance->basename($path);
  8333. }
  8334. /**
  8335. * Extract the parent directory from a file path.
  8336. *
  8337. * @param string $path
  8338. * @return string
  8339. * @static
  8340. */
  8341. public static function dirname($path)
  8342. {
  8343. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8344. return $instance->dirname($path);
  8345. }
  8346. /**
  8347. * Extract the file extension from a file path.
  8348. *
  8349. * @param string $path
  8350. * @return string
  8351. * @static
  8352. */
  8353. public static function extension($path)
  8354. {
  8355. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8356. return $instance->extension($path);
  8357. }
  8358. /**
  8359. * Guess the file extension from the mime-type of a given file.
  8360. *
  8361. * @param string $path
  8362. * @return string|null
  8363. * @throws \RuntimeException
  8364. * @static
  8365. */
  8366. public static function guessExtension($path)
  8367. {
  8368. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8369. return $instance->guessExtension($path);
  8370. }
  8371. /**
  8372. * Get the file type of a given file.
  8373. *
  8374. * @param string $path
  8375. * @return string
  8376. * @static
  8377. */
  8378. public static function type($path)
  8379. {
  8380. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8381. return $instance->type($path);
  8382. }
  8383. /**
  8384. * Get the mime-type of a given file.
  8385. *
  8386. * @param string $path
  8387. * @return string|false
  8388. * @static
  8389. */
  8390. public static function mimeType($path)
  8391. {
  8392. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8393. return $instance->mimeType($path);
  8394. }
  8395. /**
  8396. * Get the file size of a given file.
  8397. *
  8398. * @param string $path
  8399. * @return int
  8400. * @static
  8401. */
  8402. public static function size($path)
  8403. {
  8404. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8405. return $instance->size($path);
  8406. }
  8407. /**
  8408. * Get the file's last modification time.
  8409. *
  8410. * @param string $path
  8411. * @return int
  8412. * @static
  8413. */
  8414. public static function lastModified($path)
  8415. {
  8416. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8417. return $instance->lastModified($path);
  8418. }
  8419. /**
  8420. * Determine if the given path is a directory.
  8421. *
  8422. * @param string $directory
  8423. * @return bool
  8424. * @static
  8425. */
  8426. public static function isDirectory($directory)
  8427. {
  8428. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8429. return $instance->isDirectory($directory);
  8430. }
  8431. /**
  8432. * Determine if the given path is a directory that does not contain any other files or directories.
  8433. *
  8434. * @param string $directory
  8435. * @param bool $ignoreDotFiles
  8436. * @return bool
  8437. * @static
  8438. */
  8439. public static function isEmptyDirectory($directory, $ignoreDotFiles = false)
  8440. {
  8441. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8442. return $instance->isEmptyDirectory($directory, $ignoreDotFiles);
  8443. }
  8444. /**
  8445. * Determine if the given path is readable.
  8446. *
  8447. * @param string $path
  8448. * @return bool
  8449. * @static
  8450. */
  8451. public static function isReadable($path)
  8452. {
  8453. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8454. return $instance->isReadable($path);
  8455. }
  8456. /**
  8457. * Determine if the given path is writable.
  8458. *
  8459. * @param string $path
  8460. * @return bool
  8461. * @static
  8462. */
  8463. public static function isWritable($path)
  8464. {
  8465. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8466. return $instance->isWritable($path);
  8467. }
  8468. /**
  8469. * Determine if two files are the same by comparing their hashes.
  8470. *
  8471. * @param string $firstFile
  8472. * @param string $secondFile
  8473. * @return bool
  8474. * @static
  8475. */
  8476. public static function hasSameHash($firstFile, $secondFile)
  8477. {
  8478. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8479. return $instance->hasSameHash($firstFile, $secondFile);
  8480. }
  8481. /**
  8482. * Determine if the given path is a file.
  8483. *
  8484. * @param string $file
  8485. * @return bool
  8486. * @static
  8487. */
  8488. public static function isFile($file)
  8489. {
  8490. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8491. return $instance->isFile($file);
  8492. }
  8493. /**
  8494. * Find path names matching a given pattern.
  8495. *
  8496. * @param string $pattern
  8497. * @param int $flags
  8498. * @return array
  8499. * @static
  8500. */
  8501. public static function glob($pattern, $flags = 0)
  8502. {
  8503. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8504. return $instance->glob($pattern, $flags);
  8505. }
  8506. /**
  8507. * Get an array of all files in a directory.
  8508. *
  8509. * @param string $directory
  8510. * @param bool $hidden
  8511. * @return \Symfony\Component\Finder\SplFileInfo[]
  8512. * @static
  8513. */
  8514. public static function files($directory, $hidden = false)
  8515. {
  8516. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8517. return $instance->files($directory, $hidden);
  8518. }
  8519. /**
  8520. * Get all of the files from the given directory (recursive).
  8521. *
  8522. * @param string $directory
  8523. * @param bool $hidden
  8524. * @return \Symfony\Component\Finder\SplFileInfo[]
  8525. * @static
  8526. */
  8527. public static function allFiles($directory, $hidden = false)
  8528. {
  8529. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8530. return $instance->allFiles($directory, $hidden);
  8531. }
  8532. /**
  8533. * Get all of the directories within a given directory.
  8534. *
  8535. * @param string $directory
  8536. * @return array
  8537. * @static
  8538. */
  8539. public static function directories($directory)
  8540. {
  8541. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8542. return $instance->directories($directory);
  8543. }
  8544. /**
  8545. * Ensure a directory exists.
  8546. *
  8547. * @param string $path
  8548. * @param int $mode
  8549. * @param bool $recursive
  8550. * @return void
  8551. * @static
  8552. */
  8553. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  8554. {
  8555. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8556. $instance->ensureDirectoryExists($path, $mode, $recursive);
  8557. }
  8558. /**
  8559. * Create a directory.
  8560. *
  8561. * @param string $path
  8562. * @param int $mode
  8563. * @param bool $recursive
  8564. * @param bool $force
  8565. * @return bool
  8566. * @static
  8567. */
  8568. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  8569. {
  8570. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8571. return $instance->makeDirectory($path, $mode, $recursive, $force);
  8572. }
  8573. /**
  8574. * Move a directory.
  8575. *
  8576. * @param string $from
  8577. * @param string $to
  8578. * @param bool $overwrite
  8579. * @return bool
  8580. * @static
  8581. */
  8582. public static function moveDirectory($from, $to, $overwrite = false)
  8583. {
  8584. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8585. return $instance->moveDirectory($from, $to, $overwrite);
  8586. }
  8587. /**
  8588. * Copy a directory from one location to another.
  8589. *
  8590. * @param string $directory
  8591. * @param string $destination
  8592. * @param int|null $options
  8593. * @return bool
  8594. * @static
  8595. */
  8596. public static function copyDirectory($directory, $destination, $options = null)
  8597. {
  8598. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8599. return $instance->copyDirectory($directory, $destination, $options);
  8600. }
  8601. /**
  8602. * Recursively delete a directory.
  8603. *
  8604. * The directory itself may be optionally preserved.
  8605. *
  8606. * @param string $directory
  8607. * @param bool $preserve
  8608. * @return bool
  8609. * @static
  8610. */
  8611. public static function deleteDirectory($directory, $preserve = false)
  8612. {
  8613. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8614. return $instance->deleteDirectory($directory, $preserve);
  8615. }
  8616. /**
  8617. * Remove all of the directories within a given directory.
  8618. *
  8619. * @param string $directory
  8620. * @return bool
  8621. * @static
  8622. */
  8623. public static function deleteDirectories($directory)
  8624. {
  8625. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8626. return $instance->deleteDirectories($directory);
  8627. }
  8628. /**
  8629. * Empty the specified directory of all files and folders.
  8630. *
  8631. * @param string $directory
  8632. * @return bool
  8633. * @static
  8634. */
  8635. public static function cleanDirectory($directory)
  8636. {
  8637. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8638. return $instance->cleanDirectory($directory);
  8639. }
  8640. /**
  8641. * Apply the callback if the given "value" is (or resolves to) truthy.
  8642. *
  8643. * @template TWhenParameter
  8644. * @template TWhenReturnType
  8645. * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
  8646. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  8647. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  8648. * @return $this|TWhenReturnType
  8649. * @static
  8650. */
  8651. public static function when($value = null, $callback = null, $default = null)
  8652. {
  8653. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8654. return $instance->when($value, $callback, $default);
  8655. }
  8656. /**
  8657. * Apply the callback if the given "value" is (or resolves to) falsy.
  8658. *
  8659. * @template TUnlessParameter
  8660. * @template TUnlessReturnType
  8661. * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  8662. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  8663. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  8664. * @return $this|TUnlessReturnType
  8665. * @static
  8666. */
  8667. public static function unless($value = null, $callback = null, $default = null)
  8668. {
  8669. /** @var \Illuminate\Filesystem\Filesystem $instance */
  8670. return $instance->unless($value, $callback, $default);
  8671. }
  8672. /**
  8673. * Register a custom macro.
  8674. *
  8675. * @param string $name
  8676. * @param object|callable $macro
  8677. * @param-closure-this static $macro
  8678. * @return void
  8679. * @static
  8680. */
  8681. public static function macro($name, $macro)
  8682. {
  8683. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  8684. }
  8685. /**
  8686. * Mix another object into the class.
  8687. *
  8688. * @param object $mixin
  8689. * @param bool $replace
  8690. * @return void
  8691. * @throws \ReflectionException
  8692. * @static
  8693. */
  8694. public static function mixin($mixin, $replace = true)
  8695. {
  8696. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  8697. }
  8698. /**
  8699. * Checks if macro is registered.
  8700. *
  8701. * @param string $name
  8702. * @return bool
  8703. * @static
  8704. */
  8705. public static function hasMacro($name)
  8706. {
  8707. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  8708. }
  8709. /**
  8710. * Flush the existing macros.
  8711. *
  8712. * @return void
  8713. * @static
  8714. */
  8715. public static function flushMacros()
  8716. {
  8717. \Illuminate\Filesystem\Filesystem::flushMacros();
  8718. }
  8719. }
  8720. /**
  8721. * @see \Illuminate\Auth\Access\Gate
  8722. */
  8723. class Gate {
  8724. /**
  8725. * Determine if a given ability has been defined.
  8726. *
  8727. * @param string|array $ability
  8728. * @return bool
  8729. * @static
  8730. */
  8731. public static function has($ability)
  8732. {
  8733. /** @var \Illuminate\Auth\Access\Gate $instance */
  8734. return $instance->has($ability);
  8735. }
  8736. /**
  8737. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
  8738. *
  8739. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  8740. * @param string|null $message
  8741. * @param string|null $code
  8742. * @return \Illuminate\Auth\Access\Response
  8743. * @throws \Illuminate\Auth\Access\AuthorizationException
  8744. * @static
  8745. */
  8746. public static function allowIf($condition, $message = null, $code = null)
  8747. {
  8748. /** @var \Illuminate\Auth\Access\Gate $instance */
  8749. return $instance->allowIf($condition, $message, $code);
  8750. }
  8751. /**
  8752. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
  8753. *
  8754. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  8755. * @param string|null $message
  8756. * @param string|null $code
  8757. * @return \Illuminate\Auth\Access\Response
  8758. * @throws \Illuminate\Auth\Access\AuthorizationException
  8759. * @static
  8760. */
  8761. public static function denyIf($condition, $message = null, $code = null)
  8762. {
  8763. /** @var \Illuminate\Auth\Access\Gate $instance */
  8764. return $instance->denyIf($condition, $message, $code);
  8765. }
  8766. /**
  8767. * Define a new ability.
  8768. *
  8769. * @param \UnitEnum|string $ability
  8770. * @param callable|array|string $callback
  8771. * @return \Illuminate\Auth\Access\Gate
  8772. * @throws \InvalidArgumentException
  8773. * @static
  8774. */
  8775. public static function define($ability, $callback)
  8776. {
  8777. /** @var \Illuminate\Auth\Access\Gate $instance */
  8778. return $instance->define($ability, $callback);
  8779. }
  8780. /**
  8781. * Define abilities for a resource.
  8782. *
  8783. * @param string $name
  8784. * @param string $class
  8785. * @param array|null $abilities
  8786. * @return \Illuminate\Auth\Access\Gate
  8787. * @static
  8788. */
  8789. public static function resource($name, $class, $abilities = null)
  8790. {
  8791. /** @var \Illuminate\Auth\Access\Gate $instance */
  8792. return $instance->resource($name, $class, $abilities);
  8793. }
  8794. /**
  8795. * Define a policy class for a given class type.
  8796. *
  8797. * @param string $class
  8798. * @param string $policy
  8799. * @return \Illuminate\Auth\Access\Gate
  8800. * @static
  8801. */
  8802. public static function policy($class, $policy)
  8803. {
  8804. /** @var \Illuminate\Auth\Access\Gate $instance */
  8805. return $instance->policy($class, $policy);
  8806. }
  8807. /**
  8808. * Register a callback to run before all Gate checks.
  8809. *
  8810. * @param callable $callback
  8811. * @return \Illuminate\Auth\Access\Gate
  8812. * @static
  8813. */
  8814. public static function before($callback)
  8815. {
  8816. /** @var \Illuminate\Auth\Access\Gate $instance */
  8817. return $instance->before($callback);
  8818. }
  8819. /**
  8820. * Register a callback to run after all Gate checks.
  8821. *
  8822. * @param callable $callback
  8823. * @return \Illuminate\Auth\Access\Gate
  8824. * @static
  8825. */
  8826. public static function after($callback)
  8827. {
  8828. /** @var \Illuminate\Auth\Access\Gate $instance */
  8829. return $instance->after($callback);
  8830. }
  8831. /**
  8832. * Determine if all of the given abilities should be granted for the current user.
  8833. *
  8834. * @param iterable|\UnitEnum|string $ability
  8835. * @param array|mixed $arguments
  8836. * @return bool
  8837. * @static
  8838. */
  8839. public static function allows($ability, $arguments = [])
  8840. {
  8841. /** @var \Illuminate\Auth\Access\Gate $instance */
  8842. return $instance->allows($ability, $arguments);
  8843. }
  8844. /**
  8845. * Determine if any of the given abilities should be denied for the current user.
  8846. *
  8847. * @param iterable|\UnitEnum|string $ability
  8848. * @param array|mixed $arguments
  8849. * @return bool
  8850. * @static
  8851. */
  8852. public static function denies($ability, $arguments = [])
  8853. {
  8854. /** @var \Illuminate\Auth\Access\Gate $instance */
  8855. return $instance->denies($ability, $arguments);
  8856. }
  8857. /**
  8858. * Determine if all of the given abilities should be granted for the current user.
  8859. *
  8860. * @param iterable|\UnitEnum|string $abilities
  8861. * @param array|mixed $arguments
  8862. * @return bool
  8863. * @static
  8864. */
  8865. public static function check($abilities, $arguments = [])
  8866. {
  8867. /** @var \Illuminate\Auth\Access\Gate $instance */
  8868. return $instance->check($abilities, $arguments);
  8869. }
  8870. /**
  8871. * Determine if any one of the given abilities should be granted for the current user.
  8872. *
  8873. * @param iterable|\UnitEnum|string $abilities
  8874. * @param array|mixed $arguments
  8875. * @return bool
  8876. * @static
  8877. */
  8878. public static function any($abilities, $arguments = [])
  8879. {
  8880. /** @var \Illuminate\Auth\Access\Gate $instance */
  8881. return $instance->any($abilities, $arguments);
  8882. }
  8883. /**
  8884. * Determine if all of the given abilities should be denied for the current user.
  8885. *
  8886. * @param iterable|\UnitEnum|string $abilities
  8887. * @param array|mixed $arguments
  8888. * @return bool
  8889. * @static
  8890. */
  8891. public static function none($abilities, $arguments = [])
  8892. {
  8893. /** @var \Illuminate\Auth\Access\Gate $instance */
  8894. return $instance->none($abilities, $arguments);
  8895. }
  8896. /**
  8897. * Determine if the given ability should be granted for the current user.
  8898. *
  8899. * @param \UnitEnum|string $ability
  8900. * @param array|mixed $arguments
  8901. * @return \Illuminate\Auth\Access\Response
  8902. * @throws \Illuminate\Auth\Access\AuthorizationException
  8903. * @static
  8904. */
  8905. public static function authorize($ability, $arguments = [])
  8906. {
  8907. /** @var \Illuminate\Auth\Access\Gate $instance */
  8908. return $instance->authorize($ability, $arguments);
  8909. }
  8910. /**
  8911. * Inspect the user for the given ability.
  8912. *
  8913. * @param \UnitEnum|string $ability
  8914. * @param array|mixed $arguments
  8915. * @return \Illuminate\Auth\Access\Response
  8916. * @static
  8917. */
  8918. public static function inspect($ability, $arguments = [])
  8919. {
  8920. /** @var \Illuminate\Auth\Access\Gate $instance */
  8921. return $instance->inspect($ability, $arguments);
  8922. }
  8923. /**
  8924. * Get the raw result from the authorization callback.
  8925. *
  8926. * @param string $ability
  8927. * @param array|mixed $arguments
  8928. * @return mixed
  8929. * @throws \Illuminate\Auth\Access\AuthorizationException
  8930. * @static
  8931. */
  8932. public static function raw($ability, $arguments = [])
  8933. {
  8934. /** @var \Illuminate\Auth\Access\Gate $instance */
  8935. return $instance->raw($ability, $arguments);
  8936. }
  8937. /**
  8938. * Get a policy instance for a given class.
  8939. *
  8940. * @param object|string $class
  8941. * @return mixed
  8942. * @static
  8943. */
  8944. public static function getPolicyFor($class)
  8945. {
  8946. /** @var \Illuminate\Auth\Access\Gate $instance */
  8947. return $instance->getPolicyFor($class);
  8948. }
  8949. /**
  8950. * Specify a callback to be used to guess policy names.
  8951. *
  8952. * @param callable $callback
  8953. * @return \Illuminate\Auth\Access\Gate
  8954. * @static
  8955. */
  8956. public static function guessPolicyNamesUsing($callback)
  8957. {
  8958. /** @var \Illuminate\Auth\Access\Gate $instance */
  8959. return $instance->guessPolicyNamesUsing($callback);
  8960. }
  8961. /**
  8962. * Build a policy class instance of the given type.
  8963. *
  8964. * @param object|string $class
  8965. * @return mixed
  8966. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  8967. * @static
  8968. */
  8969. public static function resolvePolicy($class)
  8970. {
  8971. /** @var \Illuminate\Auth\Access\Gate $instance */
  8972. return $instance->resolvePolicy($class);
  8973. }
  8974. /**
  8975. * Get a gate instance for the given user.
  8976. *
  8977. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  8978. * @return static
  8979. * @static
  8980. */
  8981. public static function forUser($user)
  8982. {
  8983. /** @var \Illuminate\Auth\Access\Gate $instance */
  8984. return $instance->forUser($user);
  8985. }
  8986. /**
  8987. * Get all of the defined abilities.
  8988. *
  8989. * @return array
  8990. * @static
  8991. */
  8992. public static function abilities()
  8993. {
  8994. /** @var \Illuminate\Auth\Access\Gate $instance */
  8995. return $instance->abilities();
  8996. }
  8997. /**
  8998. * Get all of the defined policies.
  8999. *
  9000. * @return array
  9001. * @static
  9002. */
  9003. public static function policies()
  9004. {
  9005. /** @var \Illuminate\Auth\Access\Gate $instance */
  9006. return $instance->policies();
  9007. }
  9008. /**
  9009. * Set the default denial response for gates and policies.
  9010. *
  9011. * @param \Illuminate\Auth\Access\Response $response
  9012. * @return \Illuminate\Auth\Access\Gate
  9013. * @static
  9014. */
  9015. public static function defaultDenialResponse($response)
  9016. {
  9017. /** @var \Illuminate\Auth\Access\Gate $instance */
  9018. return $instance->defaultDenialResponse($response);
  9019. }
  9020. /**
  9021. * Set the container instance used by the gate.
  9022. *
  9023. * @param \Illuminate\Contracts\Container\Container $container
  9024. * @return \Illuminate\Auth\Access\Gate
  9025. * @static
  9026. */
  9027. public static function setContainer($container)
  9028. {
  9029. /** @var \Illuminate\Auth\Access\Gate $instance */
  9030. return $instance->setContainer($container);
  9031. }
  9032. /**
  9033. * Deny with a HTTP status code.
  9034. *
  9035. * @param int $status
  9036. * @param string|null $message
  9037. * @param int|null $code
  9038. * @return \Illuminate\Auth\Access\Response
  9039. * @static
  9040. */
  9041. public static function denyWithStatus($status, $message = null, $code = null)
  9042. {
  9043. /** @var \Illuminate\Auth\Access\Gate $instance */
  9044. return $instance->denyWithStatus($status, $message, $code);
  9045. }
  9046. /**
  9047. * Deny with a 404 HTTP status code.
  9048. *
  9049. * @param string|null $message
  9050. * @param int|null $code
  9051. * @return \Illuminate\Auth\Access\Response
  9052. * @static
  9053. */
  9054. public static function denyAsNotFound($message = null, $code = null)
  9055. {
  9056. /** @var \Illuminate\Auth\Access\Gate $instance */
  9057. return $instance->denyAsNotFound($message, $code);
  9058. }
  9059. }
  9060. /**
  9061. * @see \Illuminate\Hashing\HashManager
  9062. * @see \Illuminate\Hashing\AbstractHasher
  9063. */
  9064. class Hash {
  9065. /**
  9066. * Create an instance of the Bcrypt hash Driver.
  9067. *
  9068. * @return \Illuminate\Hashing\BcryptHasher
  9069. * @static
  9070. */
  9071. public static function createBcryptDriver()
  9072. {
  9073. /** @var \Illuminate\Hashing\HashManager $instance */
  9074. return $instance->createBcryptDriver();
  9075. }
  9076. /**
  9077. * Create an instance of the Argon2i hash Driver.
  9078. *
  9079. * @return \Illuminate\Hashing\ArgonHasher
  9080. * @static
  9081. */
  9082. public static function createArgonDriver()
  9083. {
  9084. /** @var \Illuminate\Hashing\HashManager $instance */
  9085. return $instance->createArgonDriver();
  9086. }
  9087. /**
  9088. * Create an instance of the Argon2id hash Driver.
  9089. *
  9090. * @return \Illuminate\Hashing\Argon2IdHasher
  9091. * @static
  9092. */
  9093. public static function createArgon2idDriver()
  9094. {
  9095. /** @var \Illuminate\Hashing\HashManager $instance */
  9096. return $instance->createArgon2idDriver();
  9097. }
  9098. /**
  9099. * Get information about the given hashed value.
  9100. *
  9101. * @param string $hashedValue
  9102. * @return array
  9103. * @static
  9104. */
  9105. public static function info($hashedValue)
  9106. {
  9107. /** @var \Illuminate\Hashing\HashManager $instance */
  9108. return $instance->info($hashedValue);
  9109. }
  9110. /**
  9111. * Hash the given value.
  9112. *
  9113. * @param string $value
  9114. * @param array $options
  9115. * @return string
  9116. * @static
  9117. */
  9118. public static function make($value, $options = [])
  9119. {
  9120. /** @var \Illuminate\Hashing\HashManager $instance */
  9121. return $instance->make($value, $options);
  9122. }
  9123. /**
  9124. * Check the given plain value against a hash.
  9125. *
  9126. * @param string $value
  9127. * @param string $hashedValue
  9128. * @param array $options
  9129. * @return bool
  9130. * @static
  9131. */
  9132. public static function check($value, $hashedValue, $options = [])
  9133. {
  9134. /** @var \Illuminate\Hashing\HashManager $instance */
  9135. return $instance->check($value, $hashedValue, $options);
  9136. }
  9137. /**
  9138. * Check if the given hash has been hashed using the given options.
  9139. *
  9140. * @param string $hashedValue
  9141. * @param array $options
  9142. * @return bool
  9143. * @static
  9144. */
  9145. public static function needsRehash($hashedValue, $options = [])
  9146. {
  9147. /** @var \Illuminate\Hashing\HashManager $instance */
  9148. return $instance->needsRehash($hashedValue, $options);
  9149. }
  9150. /**
  9151. * Determine if a given string is already hashed.
  9152. *
  9153. * @param string $value
  9154. * @return bool
  9155. * @static
  9156. */
  9157. public static function isHashed($value)
  9158. {
  9159. /** @var \Illuminate\Hashing\HashManager $instance */
  9160. return $instance->isHashed($value);
  9161. }
  9162. /**
  9163. * Get the default driver name.
  9164. *
  9165. * @return string
  9166. * @static
  9167. */
  9168. public static function getDefaultDriver()
  9169. {
  9170. /** @var \Illuminate\Hashing\HashManager $instance */
  9171. return $instance->getDefaultDriver();
  9172. }
  9173. /**
  9174. * Verifies that the configuration is less than or equal to what is configured.
  9175. *
  9176. * @param array $value
  9177. * @return bool
  9178. * @internal
  9179. * @static
  9180. */
  9181. public static function verifyConfiguration($value)
  9182. {
  9183. /** @var \Illuminate\Hashing\HashManager $instance */
  9184. return $instance->verifyConfiguration($value);
  9185. }
  9186. /**
  9187. * Get a driver instance.
  9188. *
  9189. * @param string|null $driver
  9190. * @return mixed
  9191. * @throws \InvalidArgumentException
  9192. * @static
  9193. */
  9194. public static function driver($driver = null)
  9195. {
  9196. //Method inherited from \Illuminate\Support\Manager
  9197. /** @var \Illuminate\Hashing\HashManager $instance */
  9198. return $instance->driver($driver);
  9199. }
  9200. /**
  9201. * Register a custom driver creator Closure.
  9202. *
  9203. * @param string $driver
  9204. * @param \Closure $callback
  9205. * @return \Illuminate\Hashing\HashManager
  9206. * @static
  9207. */
  9208. public static function extend($driver, $callback)
  9209. {
  9210. //Method inherited from \Illuminate\Support\Manager
  9211. /** @var \Illuminate\Hashing\HashManager $instance */
  9212. return $instance->extend($driver, $callback);
  9213. }
  9214. /**
  9215. * Get all of the created "drivers".
  9216. *
  9217. * @return array
  9218. * @static
  9219. */
  9220. public static function getDrivers()
  9221. {
  9222. //Method inherited from \Illuminate\Support\Manager
  9223. /** @var \Illuminate\Hashing\HashManager $instance */
  9224. return $instance->getDrivers();
  9225. }
  9226. /**
  9227. * Get the container instance used by the manager.
  9228. *
  9229. * @return \Illuminate\Contracts\Container\Container
  9230. * @static
  9231. */
  9232. public static function getContainer()
  9233. {
  9234. //Method inherited from \Illuminate\Support\Manager
  9235. /** @var \Illuminate\Hashing\HashManager $instance */
  9236. return $instance->getContainer();
  9237. }
  9238. /**
  9239. * Set the container instance used by the manager.
  9240. *
  9241. * @param \Illuminate\Contracts\Container\Container $container
  9242. * @return \Illuminate\Hashing\HashManager
  9243. * @static
  9244. */
  9245. public static function setContainer($container)
  9246. {
  9247. //Method inherited from \Illuminate\Support\Manager
  9248. /** @var \Illuminate\Hashing\HashManager $instance */
  9249. return $instance->setContainer($container);
  9250. }
  9251. /**
  9252. * Forget all of the resolved driver instances.
  9253. *
  9254. * @return \Illuminate\Hashing\HashManager
  9255. * @static
  9256. */
  9257. public static function forgetDrivers()
  9258. {
  9259. //Method inherited from \Illuminate\Support\Manager
  9260. /** @var \Illuminate\Hashing\HashManager $instance */
  9261. return $instance->forgetDrivers();
  9262. }
  9263. }
  9264. /**
  9265. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  9266. * @method static \Illuminate\Http\Client\PendingRequest withBody(\Psr\Http\Message\StreamInterface|string $content, string $contentType = 'application/json')
  9267. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  9268. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  9269. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string|resource $contents = '', string|null $filename = null, array $headers = [])
  9270. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  9271. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  9272. * @method static \Illuminate\Http\Client\PendingRequest withQueryParameters(array $parameters)
  9273. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  9274. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  9275. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  9276. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  9277. * @method static \Illuminate\Http\Client\PendingRequest withHeader(string $name, mixed $value)
  9278. * @method static \Illuminate\Http\Client\PendingRequest replaceHeaders(array $headers)
  9279. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  9280. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  9281. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  9282. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string|bool $userAgent)
  9283. * @method static \Illuminate\Http\Client\PendingRequest withUrlParameters(array $parameters = [])
  9284. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  9285. * @method static \Illuminate\Http\Client\PendingRequest maxRedirects(int $max)
  9286. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  9287. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  9288. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  9289. * @method static \Illuminate\Http\Client\PendingRequest timeout(int|float $seconds)
  9290. * @method static \Illuminate\Http\Client\PendingRequest connectTimeout(int|float $seconds)
  9291. * @method static \Illuminate\Http\Client\PendingRequest retry(array|int $times, \Closure|int $sleepMilliseconds = 0, callable|null $when = null, bool $throw = true)
  9292. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  9293. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  9294. * @method static \Illuminate\Http\Client\PendingRequest withRequestMiddleware(callable $middleware)
  9295. * @method static \Illuminate\Http\Client\PendingRequest withResponseMiddleware(callable $middleware)
  9296. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  9297. * @method static \Illuminate\Http\Client\PendingRequest throw(callable|null $callback = null)
  9298. * @method static \Illuminate\Http\Client\PendingRequest throwIf(callable|bool $condition)
  9299. * @method static \Illuminate\Http\Client\PendingRequest throwUnless(callable|bool $condition)
  9300. * @method static \Illuminate\Http\Client\PendingRequest dump()
  9301. * @method static \Illuminate\Http\Client\PendingRequest dd()
  9302. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  9303. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  9304. * @method static \Illuminate\Http\Client\Response post(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = [])
  9305. * @method static \Illuminate\Http\Client\Response patch(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = [])
  9306. * @method static \Illuminate\Http\Client\Response put(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = [])
  9307. * @method static \Illuminate\Http\Client\Response delete(string $url, array|\JsonSerializable|\Illuminate\Contracts\Support\Arrayable $data = [])
  9308. * @method static array pool(callable $callback)
  9309. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  9310. * @method static \GuzzleHttp\Client buildClient()
  9311. * @method static \GuzzleHttp\Client createClient(\GuzzleHttp\HandlerStack $handlerStack)
  9312. * @method static \GuzzleHttp\HandlerStack buildHandlerStack()
  9313. * @method static \GuzzleHttp\HandlerStack pushHandlers(\GuzzleHttp\HandlerStack $handlerStack)
  9314. * @method static \Closure buildBeforeSendingHandler()
  9315. * @method static \Closure buildRecorderHandler()
  9316. * @method static \Closure buildStubHandler()
  9317. * @method static \GuzzleHttp\Psr7\RequestInterface runBeforeSendingCallbacks(\GuzzleHttp\Psr7\RequestInterface $request, array $options)
  9318. * @method static array mergeOptions(array ...$options)
  9319. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  9320. * @method static \Illuminate\Http\Client\PendingRequest async(bool $async = true)
  9321. * @method static \GuzzleHttp\Promise\PromiseInterface|null getPromise()
  9322. * @method static \Illuminate\Http\Client\PendingRequest truncateExceptionsAt(int $length)
  9323. * @method static \Illuminate\Http\Client\PendingRequest dontTruncateExceptions()
  9324. * @method static \Illuminate\Http\Client\PendingRequest setClient(\GuzzleHttp\Client $client)
  9325. * @method static \Illuminate\Http\Client\PendingRequest setHandler(callable $handler)
  9326. * @method static array getOptions()
  9327. * @method static \Illuminate\Http\Client\PendingRequest|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  9328. * @method static \Illuminate\Http\Client\PendingRequest|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  9329. * @see \Illuminate\Http\Client\Factory
  9330. */
  9331. class Http {
  9332. /**
  9333. * Add middleware to apply to every request.
  9334. *
  9335. * @param callable $middleware
  9336. * @return \Illuminate\Http\Client\Factory
  9337. * @static
  9338. */
  9339. public static function globalMiddleware($middleware)
  9340. {
  9341. /** @var \Illuminate\Http\Client\Factory $instance */
  9342. return $instance->globalMiddleware($middleware);
  9343. }
  9344. /**
  9345. * Add request middleware to apply to every request.
  9346. *
  9347. * @param callable $middleware
  9348. * @return \Illuminate\Http\Client\Factory
  9349. * @static
  9350. */
  9351. public static function globalRequestMiddleware($middleware)
  9352. {
  9353. /** @var \Illuminate\Http\Client\Factory $instance */
  9354. return $instance->globalRequestMiddleware($middleware);
  9355. }
  9356. /**
  9357. * Add response middleware to apply to every request.
  9358. *
  9359. * @param callable $middleware
  9360. * @return \Illuminate\Http\Client\Factory
  9361. * @static
  9362. */
  9363. public static function globalResponseMiddleware($middleware)
  9364. {
  9365. /** @var \Illuminate\Http\Client\Factory $instance */
  9366. return $instance->globalResponseMiddleware($middleware);
  9367. }
  9368. /**
  9369. * Set the options to apply to every request.
  9370. *
  9371. * @param \Closure|array $options
  9372. * @return \Illuminate\Http\Client\Factory
  9373. * @static
  9374. */
  9375. public static function globalOptions($options)
  9376. {
  9377. /** @var \Illuminate\Http\Client\Factory $instance */
  9378. return $instance->globalOptions($options);
  9379. }
  9380. /**
  9381. * Create a new response instance for use during stubbing.
  9382. *
  9383. * @param array|string|null $body
  9384. * @param int $status
  9385. * @param array $headers
  9386. * @return \GuzzleHttp\Promise\PromiseInterface
  9387. * @static
  9388. */
  9389. public static function response($body = null, $status = 200, $headers = [])
  9390. {
  9391. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  9392. }
  9393. /**
  9394. * Create a new PSR-7 response instance for use during stubbing.
  9395. *
  9396. * @param array|string|null $body
  9397. * @param int $status
  9398. * @param array<string, mixed> $headers
  9399. * @return \GuzzleHttp\Psr7\Response
  9400. * @static
  9401. */
  9402. public static function psr7Response($body = null, $status = 200, $headers = [])
  9403. {
  9404. return \Illuminate\Http\Client\Factory::psr7Response($body, $status, $headers);
  9405. }
  9406. /**
  9407. * Create a new RequestException instance for use during stubbing.
  9408. *
  9409. * @param array|string|null $body
  9410. * @param int $status
  9411. * @param array<string, mixed> $headers
  9412. * @return \Illuminate\Http\Client\RequestException
  9413. * @static
  9414. */
  9415. public static function failedRequest($body = null, $status = 200, $headers = [])
  9416. {
  9417. return \Illuminate\Http\Client\Factory::failedRequest($body, $status, $headers);
  9418. }
  9419. /**
  9420. * Create a new connection exception for use during stubbing.
  9421. *
  9422. * @param string|null $message
  9423. * @return \Closure(\Illuminate\Http\Client\Request): \GuzzleHttp\Promise\PromiseInterface
  9424. * @static
  9425. */
  9426. public static function failedConnection($message = null)
  9427. {
  9428. return \Illuminate\Http\Client\Factory::failedConnection($message);
  9429. }
  9430. /**
  9431. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  9432. *
  9433. * @param array $responses
  9434. * @return \Illuminate\Http\Client\ResponseSequence
  9435. * @static
  9436. */
  9437. public static function sequence($responses = [])
  9438. {
  9439. /** @var \Illuminate\Http\Client\Factory $instance */
  9440. return $instance->sequence($responses);
  9441. }
  9442. /**
  9443. * Register a stub callable that will intercept requests and be able to return stub responses.
  9444. *
  9445. * @param callable|array<string, mixed>|null $callback
  9446. * @return \Illuminate\Http\Client\Factory
  9447. * @static
  9448. */
  9449. public static function fake($callback = null)
  9450. {
  9451. /** @var \Illuminate\Http\Client\Factory $instance */
  9452. return $instance->fake($callback);
  9453. }
  9454. /**
  9455. * Register a response sequence for the given URL pattern.
  9456. *
  9457. * @param string $url
  9458. * @return \Illuminate\Http\Client\ResponseSequence
  9459. * @static
  9460. */
  9461. public static function fakeSequence($url = '*')
  9462. {
  9463. /** @var \Illuminate\Http\Client\Factory $instance */
  9464. return $instance->fakeSequence($url);
  9465. }
  9466. /**
  9467. * Stub the given URL using the given callback.
  9468. *
  9469. * @param string $url
  9470. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable|int|string|array|\Illuminate\Http\Client\ResponseSequence $callback
  9471. * @return \Illuminate\Http\Client\Factory
  9472. * @static
  9473. */
  9474. public static function stubUrl($url, $callback)
  9475. {
  9476. /** @var \Illuminate\Http\Client\Factory $instance */
  9477. return $instance->stubUrl($url, $callback);
  9478. }
  9479. /**
  9480. * Indicate that an exception should be thrown if any request is not faked.
  9481. *
  9482. * @param bool $prevent
  9483. * @return \Illuminate\Http\Client\Factory
  9484. * @static
  9485. */
  9486. public static function preventStrayRequests($prevent = true)
  9487. {
  9488. /** @var \Illuminate\Http\Client\Factory $instance */
  9489. return $instance->preventStrayRequests($prevent);
  9490. }
  9491. /**
  9492. * Determine if stray requests are being prevented.
  9493. *
  9494. * @return bool
  9495. * @static
  9496. */
  9497. public static function preventingStrayRequests()
  9498. {
  9499. /** @var \Illuminate\Http\Client\Factory $instance */
  9500. return $instance->preventingStrayRequests();
  9501. }
  9502. /**
  9503. * Indicate that an exception should not be thrown if any request is not faked.
  9504. *
  9505. * @return \Illuminate\Http\Client\Factory
  9506. * @static
  9507. */
  9508. public static function allowStrayRequests()
  9509. {
  9510. /** @var \Illuminate\Http\Client\Factory $instance */
  9511. return $instance->allowStrayRequests();
  9512. }
  9513. /**
  9514. * Begin recording request / response pairs.
  9515. *
  9516. * @return \Illuminate\Http\Client\Factory
  9517. * @static
  9518. */
  9519. public static function record()
  9520. {
  9521. /** @var \Illuminate\Http\Client\Factory $instance */
  9522. return $instance->record();
  9523. }
  9524. /**
  9525. * Record a request response pair.
  9526. *
  9527. * @param \Illuminate\Http\Client\Request $request
  9528. * @param \Illuminate\Http\Client\Response|null $response
  9529. * @return void
  9530. * @static
  9531. */
  9532. public static function recordRequestResponsePair($request, $response)
  9533. {
  9534. /** @var \Illuminate\Http\Client\Factory $instance */
  9535. $instance->recordRequestResponsePair($request, $response);
  9536. }
  9537. /**
  9538. * Assert that a request / response pair was recorded matching a given truth test.
  9539. *
  9540. * @param callable|(\Closure(\Illuminate\Http\Client\Request, \Illuminate\Http\Client\Response|null): bool) $callback
  9541. * @return void
  9542. * @static
  9543. */
  9544. public static function assertSent($callback)
  9545. {
  9546. /** @var \Illuminate\Http\Client\Factory $instance */
  9547. $instance->assertSent($callback);
  9548. }
  9549. /**
  9550. * Assert that the given request was sent in the given order.
  9551. *
  9552. * @param list<string|(\Closure(\Illuminate\Http\Client\Request, \Illuminate\Http\Client\Response|null): bool)|callable> $callbacks
  9553. * @return void
  9554. * @static
  9555. */
  9556. public static function assertSentInOrder($callbacks)
  9557. {
  9558. /** @var \Illuminate\Http\Client\Factory $instance */
  9559. $instance->assertSentInOrder($callbacks);
  9560. }
  9561. /**
  9562. * Assert that a request / response pair was not recorded matching a given truth test.
  9563. *
  9564. * @param callable|(\Closure(\Illuminate\Http\Client\Request, \Illuminate\Http\Client\Response|null): bool) $callback
  9565. * @return void
  9566. * @static
  9567. */
  9568. public static function assertNotSent($callback)
  9569. {
  9570. /** @var \Illuminate\Http\Client\Factory $instance */
  9571. $instance->assertNotSent($callback);
  9572. }
  9573. /**
  9574. * Assert that no request / response pair was recorded.
  9575. *
  9576. * @return void
  9577. * @static
  9578. */
  9579. public static function assertNothingSent()
  9580. {
  9581. /** @var \Illuminate\Http\Client\Factory $instance */
  9582. $instance->assertNothingSent();
  9583. }
  9584. /**
  9585. * Assert how many requests have been recorded.
  9586. *
  9587. * @param int $count
  9588. * @return void
  9589. * @static
  9590. */
  9591. public static function assertSentCount($count)
  9592. {
  9593. /** @var \Illuminate\Http\Client\Factory $instance */
  9594. $instance->assertSentCount($count);
  9595. }
  9596. /**
  9597. * Assert that every created response sequence is empty.
  9598. *
  9599. * @return void
  9600. * @static
  9601. */
  9602. public static function assertSequencesAreEmpty()
  9603. {
  9604. /** @var \Illuminate\Http\Client\Factory $instance */
  9605. $instance->assertSequencesAreEmpty();
  9606. }
  9607. /**
  9608. * Get a collection of the request / response pairs matching the given truth test.
  9609. *
  9610. * @param (\Closure(\Illuminate\Http\Client\Request, \Illuminate\Http\Client\Response|null): bool)|callable $callback
  9611. * @return \Illuminate\Support\Collection<int, array{0: \Illuminate\Http\Client\Request, 1: \Illuminate\Http\Client\Response|null}>
  9612. * @static
  9613. */
  9614. public static function recorded($callback = null)
  9615. {
  9616. /** @var \Illuminate\Http\Client\Factory $instance */
  9617. return $instance->recorded($callback);
  9618. }
  9619. /**
  9620. * Create a new pending request instance for this factory.
  9621. *
  9622. * @return \Illuminate\Http\Client\PendingRequest
  9623. * @static
  9624. */
  9625. public static function createPendingRequest()
  9626. {
  9627. /** @var \Illuminate\Http\Client\Factory $instance */
  9628. return $instance->createPendingRequest();
  9629. }
  9630. /**
  9631. * Get the current event dispatcher implementation.
  9632. *
  9633. * @return \Illuminate\Contracts\Events\Dispatcher|null
  9634. * @static
  9635. */
  9636. public static function getDispatcher()
  9637. {
  9638. /** @var \Illuminate\Http\Client\Factory $instance */
  9639. return $instance->getDispatcher();
  9640. }
  9641. /**
  9642. * Get the array of global middleware.
  9643. *
  9644. * @return array
  9645. * @static
  9646. */
  9647. public static function getGlobalMiddleware()
  9648. {
  9649. /** @var \Illuminate\Http\Client\Factory $instance */
  9650. return $instance->getGlobalMiddleware();
  9651. }
  9652. /**
  9653. * Register a custom macro.
  9654. *
  9655. * @param string $name
  9656. * @param object|callable $macro
  9657. * @param-closure-this static $macro
  9658. * @return void
  9659. * @static
  9660. */
  9661. public static function macro($name, $macro)
  9662. {
  9663. \Illuminate\Http\Client\Factory::macro($name, $macro);
  9664. }
  9665. /**
  9666. * Mix another object into the class.
  9667. *
  9668. * @param object $mixin
  9669. * @param bool $replace
  9670. * @return void
  9671. * @throws \ReflectionException
  9672. * @static
  9673. */
  9674. public static function mixin($mixin, $replace = true)
  9675. {
  9676. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  9677. }
  9678. /**
  9679. * Checks if macro is registered.
  9680. *
  9681. * @param string $name
  9682. * @return bool
  9683. * @static
  9684. */
  9685. public static function hasMacro($name)
  9686. {
  9687. return \Illuminate\Http\Client\Factory::hasMacro($name);
  9688. }
  9689. /**
  9690. * Flush the existing macros.
  9691. *
  9692. * @return void
  9693. * @static
  9694. */
  9695. public static function flushMacros()
  9696. {
  9697. \Illuminate\Http\Client\Factory::flushMacros();
  9698. }
  9699. /**
  9700. * Dynamically handle calls to the class.
  9701. *
  9702. * @param string $method
  9703. * @param array $parameters
  9704. * @return mixed
  9705. * @throws \BadMethodCallException
  9706. * @static
  9707. */
  9708. public static function macroCall($method, $parameters)
  9709. {
  9710. /** @var \Illuminate\Http\Client\Factory $instance */
  9711. return $instance->macroCall($method, $parameters);
  9712. }
  9713. }
  9714. /**
  9715. * @see \Illuminate\Translation\Translator
  9716. */
  9717. class Lang {
  9718. /**
  9719. * Determine if a translation exists for a given locale.
  9720. *
  9721. * @param string $key
  9722. * @param string|null $locale
  9723. * @return bool
  9724. * @static
  9725. */
  9726. public static function hasForLocale($key, $locale = null)
  9727. {
  9728. /** @var \Illuminate\Translation\Translator $instance */
  9729. return $instance->hasForLocale($key, $locale);
  9730. }
  9731. /**
  9732. * Determine if a translation exists.
  9733. *
  9734. * @param string $key
  9735. * @param string|null $locale
  9736. * @param bool $fallback
  9737. * @return bool
  9738. * @static
  9739. */
  9740. public static function has($key, $locale = null, $fallback = true)
  9741. {
  9742. /** @var \Illuminate\Translation\Translator $instance */
  9743. return $instance->has($key, $locale, $fallback);
  9744. }
  9745. /**
  9746. * Get the translation for the given key.
  9747. *
  9748. * @param string $key
  9749. * @param array $replace
  9750. * @param string|null $locale
  9751. * @param bool $fallback
  9752. * @return string|array
  9753. * @static
  9754. */
  9755. public static function get($key, $replace = [], $locale = null, $fallback = true)
  9756. {
  9757. /** @var \Illuminate\Translation\Translator $instance */
  9758. return $instance->get($key, $replace, $locale, $fallback);
  9759. }
  9760. /**
  9761. * Get a translation according to an integer value.
  9762. *
  9763. * @param string $key
  9764. * @param \Countable|int|float|array $number
  9765. * @param array $replace
  9766. * @param string|null $locale
  9767. * @return string
  9768. * @static
  9769. */
  9770. public static function choice($key, $number, $replace = [], $locale = null)
  9771. {
  9772. /** @var \Illuminate\Translation\Translator $instance */
  9773. return $instance->choice($key, $number, $replace, $locale);
  9774. }
  9775. /**
  9776. * Add translation lines to the given locale.
  9777. *
  9778. * @param array $lines
  9779. * @param string $locale
  9780. * @param string $namespace
  9781. * @return void
  9782. * @static
  9783. */
  9784. public static function addLines($lines, $locale, $namespace = '*')
  9785. {
  9786. /** @var \Illuminate\Translation\Translator $instance */
  9787. $instance->addLines($lines, $locale, $namespace);
  9788. }
  9789. /**
  9790. * Load the specified language group.
  9791. *
  9792. * @param string $namespace
  9793. * @param string $group
  9794. * @param string $locale
  9795. * @return void
  9796. * @static
  9797. */
  9798. public static function load($namespace, $group, $locale)
  9799. {
  9800. /** @var \Illuminate\Translation\Translator $instance */
  9801. $instance->load($namespace, $group, $locale);
  9802. }
  9803. /**
  9804. * Register a callback that is responsible for handling missing translation keys.
  9805. *
  9806. * @param callable|null $callback
  9807. * @return static
  9808. * @static
  9809. */
  9810. public static function handleMissingKeysUsing($callback)
  9811. {
  9812. /** @var \Illuminate\Translation\Translator $instance */
  9813. return $instance->handleMissingKeysUsing($callback);
  9814. }
  9815. /**
  9816. * Add a new namespace to the loader.
  9817. *
  9818. * @param string $namespace
  9819. * @param string $hint
  9820. * @return void
  9821. * @static
  9822. */
  9823. public static function addNamespace($namespace, $hint)
  9824. {
  9825. /** @var \Illuminate\Translation\Translator $instance */
  9826. $instance->addNamespace($namespace, $hint);
  9827. }
  9828. /**
  9829. * Add a new path to the loader.
  9830. *
  9831. * @param string $path
  9832. * @return void
  9833. * @static
  9834. */
  9835. public static function addPath($path)
  9836. {
  9837. /** @var \Illuminate\Translation\Translator $instance */
  9838. $instance->addPath($path);
  9839. }
  9840. /**
  9841. * Add a new JSON path to the loader.
  9842. *
  9843. * @param string $path
  9844. * @return void
  9845. * @static
  9846. */
  9847. public static function addJsonPath($path)
  9848. {
  9849. /** @var \Illuminate\Translation\Translator $instance */
  9850. $instance->addJsonPath($path);
  9851. }
  9852. /**
  9853. * Parse a key into namespace, group, and item.
  9854. *
  9855. * @param string $key
  9856. * @return array
  9857. * @static
  9858. */
  9859. public static function parseKey($key)
  9860. {
  9861. /** @var \Illuminate\Translation\Translator $instance */
  9862. return $instance->parseKey($key);
  9863. }
  9864. /**
  9865. * Specify a callback that should be invoked to determined the applicable locale array.
  9866. *
  9867. * @param callable $callback
  9868. * @return void
  9869. * @static
  9870. */
  9871. public static function determineLocalesUsing($callback)
  9872. {
  9873. /** @var \Illuminate\Translation\Translator $instance */
  9874. $instance->determineLocalesUsing($callback);
  9875. }
  9876. /**
  9877. * Get the message selector instance.
  9878. *
  9879. * @return \Illuminate\Translation\MessageSelector
  9880. * @static
  9881. */
  9882. public static function getSelector()
  9883. {
  9884. /** @var \Illuminate\Translation\Translator $instance */
  9885. return $instance->getSelector();
  9886. }
  9887. /**
  9888. * Set the message selector instance.
  9889. *
  9890. * @param \Illuminate\Translation\MessageSelector $selector
  9891. * @return void
  9892. * @static
  9893. */
  9894. public static function setSelector($selector)
  9895. {
  9896. /** @var \Illuminate\Translation\Translator $instance */
  9897. $instance->setSelector($selector);
  9898. }
  9899. /**
  9900. * Get the language line loader implementation.
  9901. *
  9902. * @return \Illuminate\Contracts\Translation\Loader
  9903. * @static
  9904. */
  9905. public static function getLoader()
  9906. {
  9907. /** @var \Illuminate\Translation\Translator $instance */
  9908. return $instance->getLoader();
  9909. }
  9910. /**
  9911. * Get the default locale being used.
  9912. *
  9913. * @return string
  9914. * @static
  9915. */
  9916. public static function locale()
  9917. {
  9918. /** @var \Illuminate\Translation\Translator $instance */
  9919. return $instance->locale();
  9920. }
  9921. /**
  9922. * Get the default locale being used.
  9923. *
  9924. * @return string
  9925. * @static
  9926. */
  9927. public static function getLocale()
  9928. {
  9929. /** @var \Illuminate\Translation\Translator $instance */
  9930. return $instance->getLocale();
  9931. }
  9932. /**
  9933. * Set the default locale.
  9934. *
  9935. * @param string $locale
  9936. * @return void
  9937. * @throws \InvalidArgumentException
  9938. * @static
  9939. */
  9940. public static function setLocale($locale)
  9941. {
  9942. /** @var \Illuminate\Translation\Translator $instance */
  9943. $instance->setLocale($locale);
  9944. }
  9945. /**
  9946. * Get the fallback locale being used.
  9947. *
  9948. * @return string
  9949. * @static
  9950. */
  9951. public static function getFallback()
  9952. {
  9953. /** @var \Illuminate\Translation\Translator $instance */
  9954. return $instance->getFallback();
  9955. }
  9956. /**
  9957. * Set the fallback locale being used.
  9958. *
  9959. * @param string $fallback
  9960. * @return void
  9961. * @static
  9962. */
  9963. public static function setFallback($fallback)
  9964. {
  9965. /** @var \Illuminate\Translation\Translator $instance */
  9966. $instance->setFallback($fallback);
  9967. }
  9968. /**
  9969. * Set the loaded translation groups.
  9970. *
  9971. * @param array $loaded
  9972. * @return void
  9973. * @static
  9974. */
  9975. public static function setLoaded($loaded)
  9976. {
  9977. /** @var \Illuminate\Translation\Translator $instance */
  9978. $instance->setLoaded($loaded);
  9979. }
  9980. /**
  9981. * Add a handler to be executed in order to format a given class to a string during translation replacements.
  9982. *
  9983. * @param callable|string $class
  9984. * @param callable|null $handler
  9985. * @return void
  9986. * @static
  9987. */
  9988. public static function stringable($class, $handler = null)
  9989. {
  9990. /** @var \Illuminate\Translation\Translator $instance */
  9991. $instance->stringable($class, $handler);
  9992. }
  9993. /**
  9994. * Set the parsed value of a key.
  9995. *
  9996. * @param string $key
  9997. * @param array $parsed
  9998. * @return void
  9999. * @static
  10000. */
  10001. public static function setParsedKey($key, $parsed)
  10002. {
  10003. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  10004. /** @var \Illuminate\Translation\Translator $instance */
  10005. $instance->setParsedKey($key, $parsed);
  10006. }
  10007. /**
  10008. * Flush the cache of parsed keys.
  10009. *
  10010. * @return void
  10011. * @static
  10012. */
  10013. public static function flushParsedKeys()
  10014. {
  10015. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  10016. /** @var \Illuminate\Translation\Translator $instance */
  10017. $instance->flushParsedKeys();
  10018. }
  10019. /**
  10020. * Register a custom macro.
  10021. *
  10022. * @param string $name
  10023. * @param object|callable $macro
  10024. * @param-closure-this static $macro
  10025. * @return void
  10026. * @static
  10027. */
  10028. public static function macro($name, $macro)
  10029. {
  10030. \Illuminate\Translation\Translator::macro($name, $macro);
  10031. }
  10032. /**
  10033. * Mix another object into the class.
  10034. *
  10035. * @param object $mixin
  10036. * @param bool $replace
  10037. * @return void
  10038. * @throws \ReflectionException
  10039. * @static
  10040. */
  10041. public static function mixin($mixin, $replace = true)
  10042. {
  10043. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  10044. }
  10045. /**
  10046. * Checks if macro is registered.
  10047. *
  10048. * @param string $name
  10049. * @return bool
  10050. * @static
  10051. */
  10052. public static function hasMacro($name)
  10053. {
  10054. return \Illuminate\Translation\Translator::hasMacro($name);
  10055. }
  10056. /**
  10057. * Flush the existing macros.
  10058. *
  10059. * @return void
  10060. * @static
  10061. */
  10062. public static function flushMacros()
  10063. {
  10064. \Illuminate\Translation\Translator::flushMacros();
  10065. }
  10066. }
  10067. /**
  10068. * @method static void write(string $level, \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message, array $context = [])
  10069. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  10070. * @method static void listen(\Closure $callback)
  10071. * @method static \Psr\Log\LoggerInterface getLogger()
  10072. * @method static \Illuminate\Contracts\Events\Dispatcher getEventDispatcher()
  10073. * @method static void setEventDispatcher(\Illuminate\Contracts\Events\Dispatcher $dispatcher)
  10074. * @method static \Illuminate\Log\Logger|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  10075. * @method static \Illuminate\Log\Logger|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  10076. * @see \Illuminate\Log\LogManager
  10077. */
  10078. class Log {
  10079. /**
  10080. * Build an on-demand log channel.
  10081. *
  10082. * @param array $config
  10083. * @return \Psr\Log\LoggerInterface
  10084. * @static
  10085. */
  10086. public static function build($config)
  10087. {
  10088. /** @var \Illuminate\Log\LogManager $instance */
  10089. return $instance->build($config);
  10090. }
  10091. /**
  10092. * Create a new, on-demand aggregate logger instance.
  10093. *
  10094. * @param array $channels
  10095. * @param string|null $channel
  10096. * @return \Psr\Log\LoggerInterface
  10097. * @static
  10098. */
  10099. public static function stack($channels, $channel = null)
  10100. {
  10101. /** @var \Illuminate\Log\LogManager $instance */
  10102. return $instance->stack($channels, $channel);
  10103. }
  10104. /**
  10105. * Get a log channel instance.
  10106. *
  10107. * @param string|null $channel
  10108. * @return \Psr\Log\LoggerInterface
  10109. * @static
  10110. */
  10111. public static function channel($channel = null)
  10112. {
  10113. /** @var \Illuminate\Log\LogManager $instance */
  10114. return $instance->channel($channel);
  10115. }
  10116. /**
  10117. * Get a log driver instance.
  10118. *
  10119. * @param string|null $driver
  10120. * @return \Psr\Log\LoggerInterface
  10121. * @static
  10122. */
  10123. public static function driver($driver = null)
  10124. {
  10125. /** @var \Illuminate\Log\LogManager $instance */
  10126. return $instance->driver($driver);
  10127. }
  10128. /**
  10129. * Share context across channels and stacks.
  10130. *
  10131. * @param array $context
  10132. * @return \Illuminate\Log\LogManager
  10133. * @static
  10134. */
  10135. public static function shareContext($context)
  10136. {
  10137. /** @var \Illuminate\Log\LogManager $instance */
  10138. return $instance->shareContext($context);
  10139. }
  10140. /**
  10141. * The context shared across channels and stacks.
  10142. *
  10143. * @return array
  10144. * @static
  10145. */
  10146. public static function sharedContext()
  10147. {
  10148. /** @var \Illuminate\Log\LogManager $instance */
  10149. return $instance->sharedContext();
  10150. }
  10151. /**
  10152. * Flush the log context on all currently resolved channels.
  10153. *
  10154. * @param string[]|null $keys
  10155. * @return \Illuminate\Log\LogManager
  10156. * @static
  10157. */
  10158. public static function withoutContext($keys = null)
  10159. {
  10160. /** @var \Illuminate\Log\LogManager $instance */
  10161. return $instance->withoutContext($keys);
  10162. }
  10163. /**
  10164. * Flush the shared context.
  10165. *
  10166. * @return \Illuminate\Log\LogManager
  10167. * @static
  10168. */
  10169. public static function flushSharedContext()
  10170. {
  10171. /** @var \Illuminate\Log\LogManager $instance */
  10172. return $instance->flushSharedContext();
  10173. }
  10174. /**
  10175. * Get the default log driver name.
  10176. *
  10177. * @return string|null
  10178. * @static
  10179. */
  10180. public static function getDefaultDriver()
  10181. {
  10182. /** @var \Illuminate\Log\LogManager $instance */
  10183. return $instance->getDefaultDriver();
  10184. }
  10185. /**
  10186. * Set the default log driver name.
  10187. *
  10188. * @param string $name
  10189. * @return void
  10190. * @static
  10191. */
  10192. public static function setDefaultDriver($name)
  10193. {
  10194. /** @var \Illuminate\Log\LogManager $instance */
  10195. $instance->setDefaultDriver($name);
  10196. }
  10197. /**
  10198. * Register a custom driver creator Closure.
  10199. *
  10200. * @param string $driver
  10201. * @param \Closure $callback
  10202. * @param-closure-this $this $callback
  10203. * @return \Illuminate\Log\LogManager
  10204. * @static
  10205. */
  10206. public static function extend($driver, $callback)
  10207. {
  10208. /** @var \Illuminate\Log\LogManager $instance */
  10209. return $instance->extend($driver, $callback);
  10210. }
  10211. /**
  10212. * Unset the given channel instance.
  10213. *
  10214. * @param string|null $driver
  10215. * @return void
  10216. * @static
  10217. */
  10218. public static function forgetChannel($driver = null)
  10219. {
  10220. /** @var \Illuminate\Log\LogManager $instance */
  10221. $instance->forgetChannel($driver);
  10222. }
  10223. /**
  10224. * Get all of the resolved log channels.
  10225. *
  10226. * @return array
  10227. * @static
  10228. */
  10229. public static function getChannels()
  10230. {
  10231. /** @var \Illuminate\Log\LogManager $instance */
  10232. return $instance->getChannels();
  10233. }
  10234. /**
  10235. * System is unusable.
  10236. *
  10237. * @param string|\Stringable $message
  10238. * @param array $context
  10239. * @return void
  10240. * @static
  10241. */
  10242. public static function emergency($message, $context = [])
  10243. {
  10244. /** @var \Illuminate\Log\LogManager $instance */
  10245. $instance->emergency($message, $context);
  10246. }
  10247. /**
  10248. * Action must be taken immediately.
  10249. *
  10250. * Example: Entire website down, database unavailable, etc. This should
  10251. * trigger the SMS alerts and wake you up.
  10252. *
  10253. * @param string|\Stringable $message
  10254. * @param array $context
  10255. * @return void
  10256. * @static
  10257. */
  10258. public static function alert($message, $context = [])
  10259. {
  10260. /** @var \Illuminate\Log\LogManager $instance */
  10261. $instance->alert($message, $context);
  10262. }
  10263. /**
  10264. * Critical conditions.
  10265. *
  10266. * Example: Application component unavailable, unexpected exception.
  10267. *
  10268. * @param string|\Stringable $message
  10269. * @param array $context
  10270. * @return void
  10271. * @static
  10272. */
  10273. public static function critical($message, $context = [])
  10274. {
  10275. /** @var \Illuminate\Log\LogManager $instance */
  10276. $instance->critical($message, $context);
  10277. }
  10278. /**
  10279. * Runtime errors that do not require immediate action but should typically
  10280. * be logged and monitored.
  10281. *
  10282. * @param string|\Stringable $message
  10283. * @param array $context
  10284. * @return void
  10285. * @static
  10286. */
  10287. public static function error($message, $context = [])
  10288. {
  10289. /** @var \Illuminate\Log\LogManager $instance */
  10290. $instance->error($message, $context);
  10291. }
  10292. /**
  10293. * Exceptional occurrences that are not errors.
  10294. *
  10295. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  10296. * that are not necessarily wrong.
  10297. *
  10298. * @param string|\Stringable $message
  10299. * @param array $context
  10300. * @return void
  10301. * @static
  10302. */
  10303. public static function warning($message, $context = [])
  10304. {
  10305. /** @var \Illuminate\Log\LogManager $instance */
  10306. $instance->warning($message, $context);
  10307. }
  10308. /**
  10309. * Normal but significant events.
  10310. *
  10311. * @param string|\Stringable $message
  10312. * @param array $context
  10313. * @return void
  10314. * @static
  10315. */
  10316. public static function notice($message, $context = [])
  10317. {
  10318. /** @var \Illuminate\Log\LogManager $instance */
  10319. $instance->notice($message, $context);
  10320. }
  10321. /**
  10322. * Interesting events.
  10323. *
  10324. * Example: User logs in, SQL logs.
  10325. *
  10326. * @param string|\Stringable $message
  10327. * @param array $context
  10328. * @return void
  10329. * @static
  10330. */
  10331. public static function info($message, $context = [])
  10332. {
  10333. /** @var \Illuminate\Log\LogManager $instance */
  10334. $instance->info($message, $context);
  10335. }
  10336. /**
  10337. * Detailed debug information.
  10338. *
  10339. * @param string|\Stringable $message
  10340. * @param array $context
  10341. * @return void
  10342. * @static
  10343. */
  10344. public static function debug($message, $context = [])
  10345. {
  10346. /** @var \Illuminate\Log\LogManager $instance */
  10347. $instance->debug($message, $context);
  10348. }
  10349. /**
  10350. * Logs with an arbitrary level.
  10351. *
  10352. * @param mixed $level
  10353. * @param string|\Stringable $message
  10354. * @param array $context
  10355. * @return void
  10356. * @static
  10357. */
  10358. public static function log($level, $message, $context = [])
  10359. {
  10360. /** @var \Illuminate\Log\LogManager $instance */
  10361. $instance->log($level, $message, $context);
  10362. }
  10363. /**
  10364. * Set the application instance used by the manager.
  10365. *
  10366. * @param \Illuminate\Contracts\Foundation\Application $app
  10367. * @return \Illuminate\Log\LogManager
  10368. * @static
  10369. */
  10370. public static function setApplication($app)
  10371. {
  10372. /** @var \Illuminate\Log\LogManager $instance */
  10373. return $instance->setApplication($app);
  10374. }
  10375. }
  10376. /**
  10377. * @method static void alwaysFrom(string $address, string|null $name = null)
  10378. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  10379. * @method static void alwaysReturnPath(string $address)
  10380. * @method static void alwaysTo(string $address, string|null $name = null)
  10381. * @method static \Illuminate\Mail\SentMessage|null html(string $html, mixed $callback)
  10382. * @method static \Illuminate\Mail\SentMessage|null plain(string $view, array $data, mixed $callback)
  10383. * @method static string render(string|array $view, array $data = [])
  10384. * @method static mixed onQueue(\BackedEnum|string|null $queue, \Illuminate\Contracts\Mail\Mailable $view)
  10385. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable $view)
  10386. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable $view)
  10387. * @method static \Symfony\Component\Mailer\Transport\TransportInterface getSymfonyTransport()
  10388. * @method static \Illuminate\Contracts\View\Factory getViewFactory()
  10389. * @method static void setSymfonyTransport(\Symfony\Component\Mailer\Transport\TransportInterface $transport)
  10390. * @method static \Illuminate\Mail\Mailer setQueue(\Illuminate\Contracts\Queue\Factory $queue)
  10391. * @method static void macro(string $name, object|callable $macro)
  10392. * @method static void mixin(object $mixin, bool $replace = true)
  10393. * @method static bool hasMacro(string $name)
  10394. * @method static void flushMacros()
  10395. * @see \Illuminate\Mail\MailManager
  10396. * @see \Illuminate\Support\Testing\Fakes\MailFake
  10397. */
  10398. class Mail {
  10399. /**
  10400. * Get a mailer instance by name.
  10401. *
  10402. * @param string|null $name
  10403. * @return \Illuminate\Contracts\Mail\Mailer
  10404. * @static
  10405. */
  10406. public static function mailer($name = null)
  10407. {
  10408. /** @var \Illuminate\Mail\MailManager $instance */
  10409. return $instance->mailer($name);
  10410. }
  10411. /**
  10412. * Get a mailer driver instance.
  10413. *
  10414. * @param string|null $driver
  10415. * @return \Illuminate\Mail\Mailer
  10416. * @static
  10417. */
  10418. public static function driver($driver = null)
  10419. {
  10420. /** @var \Illuminate\Mail\MailManager $instance */
  10421. return $instance->driver($driver);
  10422. }
  10423. /**
  10424. * Build a new mailer instance.
  10425. *
  10426. * @param array $config
  10427. * @return \Illuminate\Mail\Mailer
  10428. * @static
  10429. */
  10430. public static function build($config)
  10431. {
  10432. /** @var \Illuminate\Mail\MailManager $instance */
  10433. return $instance->build($config);
  10434. }
  10435. /**
  10436. * Create a new transport instance.
  10437. *
  10438. * @param array $config
  10439. * @return \Symfony\Component\Mailer\Transport\TransportInterface
  10440. * @throws \InvalidArgumentException
  10441. * @static
  10442. */
  10443. public static function createSymfonyTransport($config)
  10444. {
  10445. /** @var \Illuminate\Mail\MailManager $instance */
  10446. return $instance->createSymfonyTransport($config);
  10447. }
  10448. /**
  10449. * Get the default mail driver name.
  10450. *
  10451. * @return string
  10452. * @static
  10453. */
  10454. public static function getDefaultDriver()
  10455. {
  10456. /** @var \Illuminate\Mail\MailManager $instance */
  10457. return $instance->getDefaultDriver();
  10458. }
  10459. /**
  10460. * Set the default mail driver name.
  10461. *
  10462. * @param string $name
  10463. * @return void
  10464. * @static
  10465. */
  10466. public static function setDefaultDriver($name)
  10467. {
  10468. /** @var \Illuminate\Mail\MailManager $instance */
  10469. $instance->setDefaultDriver($name);
  10470. }
  10471. /**
  10472. * Disconnect the given mailer and remove from local cache.
  10473. *
  10474. * @param string|null $name
  10475. * @return void
  10476. * @static
  10477. */
  10478. public static function purge($name = null)
  10479. {
  10480. /** @var \Illuminate\Mail\MailManager $instance */
  10481. $instance->purge($name);
  10482. }
  10483. /**
  10484. * Register a custom transport creator Closure.
  10485. *
  10486. * @param string $driver
  10487. * @param \Closure $callback
  10488. * @return \Illuminate\Mail\MailManager
  10489. * @static
  10490. */
  10491. public static function extend($driver, $callback)
  10492. {
  10493. /** @var \Illuminate\Mail\MailManager $instance */
  10494. return $instance->extend($driver, $callback);
  10495. }
  10496. /**
  10497. * Get the application instance used by the manager.
  10498. *
  10499. * @return \Illuminate\Contracts\Foundation\Application
  10500. * @static
  10501. */
  10502. public static function getApplication()
  10503. {
  10504. /** @var \Illuminate\Mail\MailManager $instance */
  10505. return $instance->getApplication();
  10506. }
  10507. /**
  10508. * Set the application instance used by the manager.
  10509. *
  10510. * @param \Illuminate\Contracts\Foundation\Application $app
  10511. * @return \Illuminate\Mail\MailManager
  10512. * @static
  10513. */
  10514. public static function setApplication($app)
  10515. {
  10516. /** @var \Illuminate\Mail\MailManager $instance */
  10517. return $instance->setApplication($app);
  10518. }
  10519. /**
  10520. * Forget all of the resolved mailer instances.
  10521. *
  10522. * @return \Illuminate\Mail\MailManager
  10523. * @static
  10524. */
  10525. public static function forgetMailers()
  10526. {
  10527. /** @var \Illuminate\Mail\MailManager $instance */
  10528. return $instance->forgetMailers();
  10529. }
  10530. /**
  10531. * Assert if a mailable was sent based on a truth-test callback.
  10532. *
  10533. * @param string|\Closure $mailable
  10534. * @param callable|array|string|int|null $callback
  10535. * @return void
  10536. * @static
  10537. */
  10538. public static function assertSent($mailable, $callback = null)
  10539. {
  10540. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10541. $instance->assertSent($mailable, $callback);
  10542. }
  10543. /**
  10544. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  10545. *
  10546. * @param string|\Closure $mailable
  10547. * @param callable|null $callback
  10548. * @return void
  10549. * @static
  10550. */
  10551. public static function assertNotOutgoing($mailable, $callback = null)
  10552. {
  10553. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10554. $instance->assertNotOutgoing($mailable, $callback);
  10555. }
  10556. /**
  10557. * Determine if a mailable was not sent based on a truth-test callback.
  10558. *
  10559. * @param string|\Closure $mailable
  10560. * @param callable|array|string|null $callback
  10561. * @return void
  10562. * @static
  10563. */
  10564. public static function assertNotSent($mailable, $callback = null)
  10565. {
  10566. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10567. $instance->assertNotSent($mailable, $callback);
  10568. }
  10569. /**
  10570. * Assert that no mailables were sent or queued to be sent.
  10571. *
  10572. * @return void
  10573. * @static
  10574. */
  10575. public static function assertNothingOutgoing()
  10576. {
  10577. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10578. $instance->assertNothingOutgoing();
  10579. }
  10580. /**
  10581. * Assert that no mailables were sent.
  10582. *
  10583. * @return void
  10584. * @static
  10585. */
  10586. public static function assertNothingSent()
  10587. {
  10588. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10589. $instance->assertNothingSent();
  10590. }
  10591. /**
  10592. * Assert if a mailable was queued based on a truth-test callback.
  10593. *
  10594. * @param string|\Closure $mailable
  10595. * @param callable|array|string|int|null $callback
  10596. * @return void
  10597. * @static
  10598. */
  10599. public static function assertQueued($mailable, $callback = null)
  10600. {
  10601. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10602. $instance->assertQueued($mailable, $callback);
  10603. }
  10604. /**
  10605. * Determine if a mailable was not queued based on a truth-test callback.
  10606. *
  10607. * @param string|\Closure $mailable
  10608. * @param callable|array|string|null $callback
  10609. * @return void
  10610. * @static
  10611. */
  10612. public static function assertNotQueued($mailable, $callback = null)
  10613. {
  10614. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10615. $instance->assertNotQueued($mailable, $callback);
  10616. }
  10617. /**
  10618. * Assert that no mailables were queued.
  10619. *
  10620. * @return void
  10621. * @static
  10622. */
  10623. public static function assertNothingQueued()
  10624. {
  10625. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10626. $instance->assertNothingQueued();
  10627. }
  10628. /**
  10629. * Assert the total number of mailables that were sent.
  10630. *
  10631. * @param int $count
  10632. * @return void
  10633. * @static
  10634. */
  10635. public static function assertSentCount($count)
  10636. {
  10637. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10638. $instance->assertSentCount($count);
  10639. }
  10640. /**
  10641. * Assert the total number of mailables that were queued.
  10642. *
  10643. * @param int $count
  10644. * @return void
  10645. * @static
  10646. */
  10647. public static function assertQueuedCount($count)
  10648. {
  10649. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10650. $instance->assertQueuedCount($count);
  10651. }
  10652. /**
  10653. * Assert the total number of mailables that were sent or queued.
  10654. *
  10655. * @param int $count
  10656. * @return void
  10657. * @static
  10658. */
  10659. public static function assertOutgoingCount($count)
  10660. {
  10661. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10662. $instance->assertOutgoingCount($count);
  10663. }
  10664. /**
  10665. * Get all of the mailables matching a truth-test callback.
  10666. *
  10667. * @param string|\Closure $mailable
  10668. * @param callable|null $callback
  10669. * @return \Illuminate\Support\Collection
  10670. * @static
  10671. */
  10672. public static function sent($mailable, $callback = null)
  10673. {
  10674. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10675. return $instance->sent($mailable, $callback);
  10676. }
  10677. /**
  10678. * Determine if the given mailable has been sent.
  10679. *
  10680. * @param string $mailable
  10681. * @return bool
  10682. * @static
  10683. */
  10684. public static function hasSent($mailable)
  10685. {
  10686. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10687. return $instance->hasSent($mailable);
  10688. }
  10689. /**
  10690. * Get all of the queued mailables matching a truth-test callback.
  10691. *
  10692. * @param string|\Closure $mailable
  10693. * @param callable|null $callback
  10694. * @return \Illuminate\Support\Collection
  10695. * @static
  10696. */
  10697. public static function queued($mailable, $callback = null)
  10698. {
  10699. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10700. return $instance->queued($mailable, $callback);
  10701. }
  10702. /**
  10703. * Determine if the given mailable has been queued.
  10704. *
  10705. * @param string $mailable
  10706. * @return bool
  10707. * @static
  10708. */
  10709. public static function hasQueued($mailable)
  10710. {
  10711. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10712. return $instance->hasQueued($mailable);
  10713. }
  10714. /**
  10715. * Begin the process of mailing a mailable class instance.
  10716. *
  10717. * @param mixed $users
  10718. * @return \Illuminate\Mail\PendingMail
  10719. * @static
  10720. */
  10721. public static function to($users)
  10722. {
  10723. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10724. return $instance->to($users);
  10725. }
  10726. /**
  10727. * Begin the process of mailing a mailable class instance.
  10728. *
  10729. * @param mixed $users
  10730. * @return \Illuminate\Mail\PendingMail
  10731. * @static
  10732. */
  10733. public static function cc($users)
  10734. {
  10735. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10736. return $instance->cc($users);
  10737. }
  10738. /**
  10739. * Begin the process of mailing a mailable class instance.
  10740. *
  10741. * @param mixed $users
  10742. * @return \Illuminate\Mail\PendingMail
  10743. * @static
  10744. */
  10745. public static function bcc($users)
  10746. {
  10747. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10748. return $instance->bcc($users);
  10749. }
  10750. /**
  10751. * Send a new message with only a raw text part.
  10752. *
  10753. * @param string $text
  10754. * @param \Closure|string $callback
  10755. * @return void
  10756. * @static
  10757. */
  10758. public static function raw($text, $callback)
  10759. {
  10760. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10761. $instance->raw($text, $callback);
  10762. }
  10763. /**
  10764. * Send a new message using a view.
  10765. *
  10766. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  10767. * @param array $data
  10768. * @param \Closure|string|null $callback
  10769. * @return mixed|void
  10770. * @static
  10771. */
  10772. public static function send($view, $data = [], $callback = null)
  10773. {
  10774. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10775. return $instance->send($view, $data, $callback);
  10776. }
  10777. /**
  10778. * Send a new message synchronously using a view.
  10779. *
  10780. * @param \Illuminate\Contracts\Mail\Mailable|string|array $mailable
  10781. * @param array $data
  10782. * @param \Closure|string|null $callback
  10783. * @return void
  10784. * @static
  10785. */
  10786. public static function sendNow($mailable, $data = [], $callback = null)
  10787. {
  10788. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10789. $instance->sendNow($mailable, $data, $callback);
  10790. }
  10791. /**
  10792. * Queue a new message for sending.
  10793. *
  10794. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  10795. * @param string|null $queue
  10796. * @return mixed
  10797. * @static
  10798. */
  10799. public static function queue($view, $queue = null)
  10800. {
  10801. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10802. return $instance->queue($view, $queue);
  10803. }
  10804. /**
  10805. * Queue a new e-mail message for sending after (n) seconds.
  10806. *
  10807. * @param \DateTimeInterface|\DateInterval|int $delay
  10808. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  10809. * @param string|null $queue
  10810. * @return mixed
  10811. * @static
  10812. */
  10813. public static function later($delay, $view, $queue = null)
  10814. {
  10815. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  10816. return $instance->later($delay, $view, $queue);
  10817. }
  10818. }
  10819. /**
  10820. * @see \Illuminate\Notifications\ChannelManager
  10821. * @see \Illuminate\Support\Testing\Fakes\NotificationFake
  10822. */
  10823. class Notification {
  10824. /**
  10825. * Send the given notification to the given notifiable entities.
  10826. *
  10827. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  10828. * @param mixed $notification
  10829. * @return void
  10830. * @static
  10831. */
  10832. public static function send($notifiables, $notification)
  10833. {
  10834. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10835. $instance->send($notifiables, $notification);
  10836. }
  10837. /**
  10838. * Send the given notification immediately.
  10839. *
  10840. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  10841. * @param mixed $notification
  10842. * @param array|null $channels
  10843. * @return void
  10844. * @static
  10845. */
  10846. public static function sendNow($notifiables, $notification, $channels = null)
  10847. {
  10848. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10849. $instance->sendNow($notifiables, $notification, $channels);
  10850. }
  10851. /**
  10852. * Get a channel instance.
  10853. *
  10854. * @param string|null $name
  10855. * @return mixed
  10856. * @static
  10857. */
  10858. public static function channel($name = null)
  10859. {
  10860. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10861. return $instance->channel($name);
  10862. }
  10863. /**
  10864. * Get the default channel driver name.
  10865. *
  10866. * @return string
  10867. * @static
  10868. */
  10869. public static function getDefaultDriver()
  10870. {
  10871. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10872. return $instance->getDefaultDriver();
  10873. }
  10874. /**
  10875. * Get the default channel driver name.
  10876. *
  10877. * @return string
  10878. * @static
  10879. */
  10880. public static function deliversVia()
  10881. {
  10882. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10883. return $instance->deliversVia();
  10884. }
  10885. /**
  10886. * Set the default channel driver name.
  10887. *
  10888. * @param string $channel
  10889. * @return void
  10890. * @static
  10891. */
  10892. public static function deliverVia($channel)
  10893. {
  10894. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10895. $instance->deliverVia($channel);
  10896. }
  10897. /**
  10898. * Set the locale of notifications.
  10899. *
  10900. * @param string $locale
  10901. * @return \Illuminate\Notifications\ChannelManager
  10902. * @static
  10903. */
  10904. public static function locale($locale)
  10905. {
  10906. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10907. return $instance->locale($locale);
  10908. }
  10909. /**
  10910. * Get a driver instance.
  10911. *
  10912. * @param string|null $driver
  10913. * @return mixed
  10914. * @throws \InvalidArgumentException
  10915. * @static
  10916. */
  10917. public static function driver($driver = null)
  10918. {
  10919. //Method inherited from \Illuminate\Support\Manager
  10920. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10921. return $instance->driver($driver);
  10922. }
  10923. /**
  10924. * Register a custom driver creator Closure.
  10925. *
  10926. * @param string $driver
  10927. * @param \Closure $callback
  10928. * @return \Illuminate\Notifications\ChannelManager
  10929. * @static
  10930. */
  10931. public static function extend($driver, $callback)
  10932. {
  10933. //Method inherited from \Illuminate\Support\Manager
  10934. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10935. return $instance->extend($driver, $callback);
  10936. }
  10937. /**
  10938. * Get all of the created "drivers".
  10939. *
  10940. * @return array
  10941. * @static
  10942. */
  10943. public static function getDrivers()
  10944. {
  10945. //Method inherited from \Illuminate\Support\Manager
  10946. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10947. return $instance->getDrivers();
  10948. }
  10949. /**
  10950. * Get the container instance used by the manager.
  10951. *
  10952. * @return \Illuminate\Contracts\Container\Container
  10953. * @static
  10954. */
  10955. public static function getContainer()
  10956. {
  10957. //Method inherited from \Illuminate\Support\Manager
  10958. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10959. return $instance->getContainer();
  10960. }
  10961. /**
  10962. * Set the container instance used by the manager.
  10963. *
  10964. * @param \Illuminate\Contracts\Container\Container $container
  10965. * @return \Illuminate\Notifications\ChannelManager
  10966. * @static
  10967. */
  10968. public static function setContainer($container)
  10969. {
  10970. //Method inherited from \Illuminate\Support\Manager
  10971. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10972. return $instance->setContainer($container);
  10973. }
  10974. /**
  10975. * Forget all of the resolved driver instances.
  10976. *
  10977. * @return \Illuminate\Notifications\ChannelManager
  10978. * @static
  10979. */
  10980. public static function forgetDrivers()
  10981. {
  10982. //Method inherited from \Illuminate\Support\Manager
  10983. /** @var \Illuminate\Notifications\ChannelManager $instance */
  10984. return $instance->forgetDrivers();
  10985. }
  10986. /**
  10987. * Assert if a notification was sent on-demand based on a truth-test callback.
  10988. *
  10989. * @param string|\Closure $notification
  10990. * @param callable|null $callback
  10991. * @return void
  10992. * @throws \Exception
  10993. * @static
  10994. */
  10995. public static function assertSentOnDemand($notification, $callback = null)
  10996. {
  10997. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  10998. $instance->assertSentOnDemand($notification, $callback);
  10999. }
  11000. /**
  11001. * Assert if a notification was sent based on a truth-test callback.
  11002. *
  11003. * @param mixed $notifiable
  11004. * @param string|\Closure $notification
  11005. * @param callable|null $callback
  11006. * @return void
  11007. * @throws \Exception
  11008. * @static
  11009. */
  11010. public static function assertSentTo($notifiable, $notification, $callback = null)
  11011. {
  11012. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11013. $instance->assertSentTo($notifiable, $notification, $callback);
  11014. }
  11015. /**
  11016. * Assert if a notification was sent on-demand a number of times.
  11017. *
  11018. * @param string $notification
  11019. * @param int $times
  11020. * @return void
  11021. * @static
  11022. */
  11023. public static function assertSentOnDemandTimes($notification, $times = 1)
  11024. {
  11025. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11026. $instance->assertSentOnDemandTimes($notification, $times);
  11027. }
  11028. /**
  11029. * Assert if a notification was sent a number of times.
  11030. *
  11031. * @param mixed $notifiable
  11032. * @param string $notification
  11033. * @param int $times
  11034. * @return void
  11035. * @static
  11036. */
  11037. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  11038. {
  11039. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11040. $instance->assertSentToTimes($notifiable, $notification, $times);
  11041. }
  11042. /**
  11043. * Determine if a notification was sent based on a truth-test callback.
  11044. *
  11045. * @param mixed $notifiable
  11046. * @param string|\Closure $notification
  11047. * @param callable|null $callback
  11048. * @return void
  11049. * @throws \Exception
  11050. * @static
  11051. */
  11052. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  11053. {
  11054. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11055. $instance->assertNotSentTo($notifiable, $notification, $callback);
  11056. }
  11057. /**
  11058. * Assert that no notifications were sent.
  11059. *
  11060. * @return void
  11061. * @static
  11062. */
  11063. public static function assertNothingSent()
  11064. {
  11065. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11066. $instance->assertNothingSent();
  11067. }
  11068. /**
  11069. * Assert that no notifications were sent to the given notifiable.
  11070. *
  11071. * @param mixed $notifiable
  11072. * @return void
  11073. * @throws \Exception
  11074. * @static
  11075. */
  11076. public static function assertNothingSentTo($notifiable)
  11077. {
  11078. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11079. $instance->assertNothingSentTo($notifiable);
  11080. }
  11081. /**
  11082. * Assert the total amount of times a notification was sent.
  11083. *
  11084. * @param string $notification
  11085. * @param int $expectedCount
  11086. * @return void
  11087. * @static
  11088. */
  11089. public static function assertSentTimes($notification, $expectedCount)
  11090. {
  11091. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11092. $instance->assertSentTimes($notification, $expectedCount);
  11093. }
  11094. /**
  11095. * Assert the total count of notification that were sent.
  11096. *
  11097. * @param int $expectedCount
  11098. * @return void
  11099. * @static
  11100. */
  11101. public static function assertCount($expectedCount)
  11102. {
  11103. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11104. $instance->assertCount($expectedCount);
  11105. }
  11106. /**
  11107. * Get all of the notifications matching a truth-test callback.
  11108. *
  11109. * @param mixed $notifiable
  11110. * @param string $notification
  11111. * @param callable|null $callback
  11112. * @return \Illuminate\Support\Collection
  11113. * @static
  11114. */
  11115. public static function sent($notifiable, $notification, $callback = null)
  11116. {
  11117. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11118. return $instance->sent($notifiable, $notification, $callback);
  11119. }
  11120. /**
  11121. * Determine if there are more notifications left to inspect.
  11122. *
  11123. * @param mixed $notifiable
  11124. * @param string $notification
  11125. * @return bool
  11126. * @static
  11127. */
  11128. public static function hasSent($notifiable, $notification)
  11129. {
  11130. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11131. return $instance->hasSent($notifiable, $notification);
  11132. }
  11133. /**
  11134. * Specify if notification should be serialized and restored when being "pushed" to the queue.
  11135. *
  11136. * @param bool $serializeAndRestore
  11137. * @return \Illuminate\Support\Testing\Fakes\NotificationFake
  11138. * @static
  11139. */
  11140. public static function serializeAndRestore($serializeAndRestore = true)
  11141. {
  11142. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11143. return $instance->serializeAndRestore($serializeAndRestore);
  11144. }
  11145. /**
  11146. * Get the notifications that have been sent.
  11147. *
  11148. * @return array
  11149. * @static
  11150. */
  11151. public static function sentNotifications()
  11152. {
  11153. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  11154. return $instance->sentNotifications();
  11155. }
  11156. /**
  11157. * Register a custom macro.
  11158. *
  11159. * @param string $name
  11160. * @param object|callable $macro
  11161. * @param-closure-this static $macro
  11162. * @return void
  11163. * @static
  11164. */
  11165. public static function macro($name, $macro)
  11166. {
  11167. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  11168. }
  11169. /**
  11170. * Mix another object into the class.
  11171. *
  11172. * @param object $mixin
  11173. * @param bool $replace
  11174. * @return void
  11175. * @throws \ReflectionException
  11176. * @static
  11177. */
  11178. public static function mixin($mixin, $replace = true)
  11179. {
  11180. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  11181. }
  11182. /**
  11183. * Checks if macro is registered.
  11184. *
  11185. * @param string $name
  11186. * @return bool
  11187. * @static
  11188. */
  11189. public static function hasMacro($name)
  11190. {
  11191. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  11192. }
  11193. /**
  11194. * Flush the existing macros.
  11195. *
  11196. * @return void
  11197. * @static
  11198. */
  11199. public static function flushMacros()
  11200. {
  11201. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  11202. }
  11203. }
  11204. /**
  11205. * @method static string sendResetLink(array $credentials, \Closure|null $callback = null)
  11206. * @method static mixed reset(array $credentials, \Closure $callback)
  11207. * @method static \Illuminate\Contracts\Auth\CanResetPassword|null getUser(array $credentials)
  11208. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  11209. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  11210. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  11211. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  11212. * @method static \Illuminate\Support\Timebox getTimebox()
  11213. * @see \Illuminate\Auth\Passwords\PasswordBrokerManager
  11214. * @see \Illuminate\Auth\Passwords\PasswordBroker
  11215. */
  11216. class Password {
  11217. /**
  11218. * Attempt to get the broker from the local cache.
  11219. *
  11220. * @param string|null $name
  11221. * @return \Illuminate\Contracts\Auth\PasswordBroker
  11222. * @static
  11223. */
  11224. public static function broker($name = null)
  11225. {
  11226. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  11227. return $instance->broker($name);
  11228. }
  11229. /**
  11230. * Get the default password broker name.
  11231. *
  11232. * @return string
  11233. * @static
  11234. */
  11235. public static function getDefaultDriver()
  11236. {
  11237. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  11238. return $instance->getDefaultDriver();
  11239. }
  11240. /**
  11241. * Set the default password broker name.
  11242. *
  11243. * @param string $name
  11244. * @return void
  11245. * @static
  11246. */
  11247. public static function setDefaultDriver($name)
  11248. {
  11249. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  11250. $instance->setDefaultDriver($name);
  11251. }
  11252. }
  11253. /**
  11254. * @method static \Illuminate\Process\PendingProcess command(array|string $command)
  11255. * @method static \Illuminate\Process\PendingProcess path(string $path)
  11256. * @method static \Illuminate\Process\PendingProcess timeout(int $timeout)
  11257. * @method static \Illuminate\Process\PendingProcess idleTimeout(int $timeout)
  11258. * @method static \Illuminate\Process\PendingProcess forever()
  11259. * @method static \Illuminate\Process\PendingProcess env(array $environment)
  11260. * @method static \Illuminate\Process\PendingProcess input(\Traversable|resource|string|int|float|bool|null $input)
  11261. * @method static \Illuminate\Process\PendingProcess quietly()
  11262. * @method static \Illuminate\Process\PendingProcess tty(bool $tty = true)
  11263. * @method static \Illuminate\Process\PendingProcess options(array $options)
  11264. * @method static \Illuminate\Contracts\Process\ProcessResult run(array|string|null $command = null, callable|null $output = null)
  11265. * @method static \Illuminate\Process\InvokedProcess start(array|string|null $command = null, callable|null $output = null)
  11266. * @method static bool supportsTty()
  11267. * @method static \Illuminate\Process\PendingProcess withFakeHandlers(array $fakeHandlers)
  11268. * @method static \Illuminate\Process\PendingProcess|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  11269. * @method static \Illuminate\Process\PendingProcess|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  11270. * @see \Illuminate\Process\PendingProcess
  11271. * @see \Illuminate\Process\Factory
  11272. */
  11273. class Process {
  11274. /**
  11275. * Create a new fake process response for testing purposes.
  11276. *
  11277. * @param array|string $output
  11278. * @param array|string $errorOutput
  11279. * @param int $exitCode
  11280. * @return \Illuminate\Process\FakeProcessResult
  11281. * @static
  11282. */
  11283. public static function result($output = '', $errorOutput = '', $exitCode = 0)
  11284. {
  11285. /** @var \Illuminate\Process\Factory $instance */
  11286. return $instance->result($output, $errorOutput, $exitCode);
  11287. }
  11288. /**
  11289. * Begin describing a fake process lifecycle.
  11290. *
  11291. * @return \Illuminate\Process\FakeProcessDescription
  11292. * @static
  11293. */
  11294. public static function describe()
  11295. {
  11296. /** @var \Illuminate\Process\Factory $instance */
  11297. return $instance->describe();
  11298. }
  11299. /**
  11300. * Begin describing a fake process sequence.
  11301. *
  11302. * @param array $processes
  11303. * @return \Illuminate\Process\FakeProcessSequence
  11304. * @static
  11305. */
  11306. public static function sequence($processes = [])
  11307. {
  11308. /** @var \Illuminate\Process\Factory $instance */
  11309. return $instance->sequence($processes);
  11310. }
  11311. /**
  11312. * Indicate that the process factory should fake processes.
  11313. *
  11314. * @param \Closure|array|null $callback
  11315. * @return \Illuminate\Process\Factory
  11316. * @static
  11317. */
  11318. public static function fake($callback = null)
  11319. {
  11320. /** @var \Illuminate\Process\Factory $instance */
  11321. return $instance->fake($callback);
  11322. }
  11323. /**
  11324. * Determine if the process factory has fake process handlers and is recording processes.
  11325. *
  11326. * @return bool
  11327. * @static
  11328. */
  11329. public static function isRecording()
  11330. {
  11331. /** @var \Illuminate\Process\Factory $instance */
  11332. return $instance->isRecording();
  11333. }
  11334. /**
  11335. * Record the given process if processes should be recorded.
  11336. *
  11337. * @param \Illuminate\Process\PendingProcess $process
  11338. * @param \Illuminate\Contracts\Process\ProcessResult $result
  11339. * @return \Illuminate\Process\Factory
  11340. * @static
  11341. */
  11342. public static function recordIfRecording($process, $result)
  11343. {
  11344. /** @var \Illuminate\Process\Factory $instance */
  11345. return $instance->recordIfRecording($process, $result);
  11346. }
  11347. /**
  11348. * Record the given process.
  11349. *
  11350. * @param \Illuminate\Process\PendingProcess $process
  11351. * @param \Illuminate\Contracts\Process\ProcessResult $result
  11352. * @return \Illuminate\Process\Factory
  11353. * @static
  11354. */
  11355. public static function record($process, $result)
  11356. {
  11357. /** @var \Illuminate\Process\Factory $instance */
  11358. return $instance->record($process, $result);
  11359. }
  11360. /**
  11361. * Indicate that an exception should be thrown if any process is not faked.
  11362. *
  11363. * @param bool $prevent
  11364. * @return \Illuminate\Process\Factory
  11365. * @static
  11366. */
  11367. public static function preventStrayProcesses($prevent = true)
  11368. {
  11369. /** @var \Illuminate\Process\Factory $instance */
  11370. return $instance->preventStrayProcesses($prevent);
  11371. }
  11372. /**
  11373. * Determine if stray processes are being prevented.
  11374. *
  11375. * @return bool
  11376. * @static
  11377. */
  11378. public static function preventingStrayProcesses()
  11379. {
  11380. /** @var \Illuminate\Process\Factory $instance */
  11381. return $instance->preventingStrayProcesses();
  11382. }
  11383. /**
  11384. * Assert that a process was recorded matching a given truth test.
  11385. *
  11386. * @param \Closure|string $callback
  11387. * @return \Illuminate\Process\Factory
  11388. * @static
  11389. */
  11390. public static function assertRan($callback)
  11391. {
  11392. /** @var \Illuminate\Process\Factory $instance */
  11393. return $instance->assertRan($callback);
  11394. }
  11395. /**
  11396. * Assert that a process was recorded a given number of times matching a given truth test.
  11397. *
  11398. * @param \Closure|string $callback
  11399. * @param int $times
  11400. * @return \Illuminate\Process\Factory
  11401. * @static
  11402. */
  11403. public static function assertRanTimes($callback, $times = 1)
  11404. {
  11405. /** @var \Illuminate\Process\Factory $instance */
  11406. return $instance->assertRanTimes($callback, $times);
  11407. }
  11408. /**
  11409. * Assert that a process was not recorded matching a given truth test.
  11410. *
  11411. * @param \Closure|string $callback
  11412. * @return \Illuminate\Process\Factory
  11413. * @static
  11414. */
  11415. public static function assertNotRan($callback)
  11416. {
  11417. /** @var \Illuminate\Process\Factory $instance */
  11418. return $instance->assertNotRan($callback);
  11419. }
  11420. /**
  11421. * Assert that a process was not recorded matching a given truth test.
  11422. *
  11423. * @param \Closure|string $callback
  11424. * @return \Illuminate\Process\Factory
  11425. * @static
  11426. */
  11427. public static function assertDidntRun($callback)
  11428. {
  11429. /** @var \Illuminate\Process\Factory $instance */
  11430. return $instance->assertDidntRun($callback);
  11431. }
  11432. /**
  11433. * Assert that no processes were recorded.
  11434. *
  11435. * @return \Illuminate\Process\Factory
  11436. * @static
  11437. */
  11438. public static function assertNothingRan()
  11439. {
  11440. /** @var \Illuminate\Process\Factory $instance */
  11441. return $instance->assertNothingRan();
  11442. }
  11443. /**
  11444. * Start defining a pool of processes.
  11445. *
  11446. * @param callable $callback
  11447. * @return \Illuminate\Process\Pool
  11448. * @static
  11449. */
  11450. public static function pool($callback)
  11451. {
  11452. /** @var \Illuminate\Process\Factory $instance */
  11453. return $instance->pool($callback);
  11454. }
  11455. /**
  11456. * Start defining a series of piped processes.
  11457. *
  11458. * @param callable|array $callback
  11459. * @return \Illuminate\Contracts\Process\ProcessResult
  11460. * @static
  11461. */
  11462. public static function pipe($callback, $output = null)
  11463. {
  11464. /** @var \Illuminate\Process\Factory $instance */
  11465. return $instance->pipe($callback, $output);
  11466. }
  11467. /**
  11468. * Run a pool of processes and wait for them to finish executing.
  11469. *
  11470. * @param callable $callback
  11471. * @param callable|null $output
  11472. * @return \Illuminate\Process\ProcessPoolResults
  11473. * @static
  11474. */
  11475. public static function concurrently($callback, $output = null)
  11476. {
  11477. /** @var \Illuminate\Process\Factory $instance */
  11478. return $instance->concurrently($callback, $output);
  11479. }
  11480. /**
  11481. * Create a new pending process associated with this factory.
  11482. *
  11483. * @return \Illuminate\Process\PendingProcess
  11484. * @static
  11485. */
  11486. public static function newPendingProcess()
  11487. {
  11488. /** @var \Illuminate\Process\Factory $instance */
  11489. return $instance->newPendingProcess();
  11490. }
  11491. /**
  11492. * Register a custom macro.
  11493. *
  11494. * @param string $name
  11495. * @param object|callable $macro
  11496. * @param-closure-this static $macro
  11497. * @return void
  11498. * @static
  11499. */
  11500. public static function macro($name, $macro)
  11501. {
  11502. \Illuminate\Process\Factory::macro($name, $macro);
  11503. }
  11504. /**
  11505. * Mix another object into the class.
  11506. *
  11507. * @param object $mixin
  11508. * @param bool $replace
  11509. * @return void
  11510. * @throws \ReflectionException
  11511. * @static
  11512. */
  11513. public static function mixin($mixin, $replace = true)
  11514. {
  11515. \Illuminate\Process\Factory::mixin($mixin, $replace);
  11516. }
  11517. /**
  11518. * Checks if macro is registered.
  11519. *
  11520. * @param string $name
  11521. * @return bool
  11522. * @static
  11523. */
  11524. public static function hasMacro($name)
  11525. {
  11526. return \Illuminate\Process\Factory::hasMacro($name);
  11527. }
  11528. /**
  11529. * Flush the existing macros.
  11530. *
  11531. * @return void
  11532. * @static
  11533. */
  11534. public static function flushMacros()
  11535. {
  11536. \Illuminate\Process\Factory::flushMacros();
  11537. }
  11538. /**
  11539. * Dynamically handle calls to the class.
  11540. *
  11541. * @param string $method
  11542. * @param array $parameters
  11543. * @return mixed
  11544. * @throws \BadMethodCallException
  11545. * @static
  11546. */
  11547. public static function macroCall($method, $parameters)
  11548. {
  11549. /** @var \Illuminate\Process\Factory $instance */
  11550. return $instance->macroCall($method, $parameters);
  11551. }
  11552. }
  11553. /**
  11554. * @see \Illuminate\Queue\QueueManager
  11555. * @see \Illuminate\Queue\Queue
  11556. * @see \Illuminate\Support\Testing\Fakes\QueueFake
  11557. */
  11558. class Queue {
  11559. /**
  11560. * Register an event listener for the before job event.
  11561. *
  11562. * @param mixed $callback
  11563. * @return void
  11564. * @static
  11565. */
  11566. public static function before($callback)
  11567. {
  11568. /** @var \Illuminate\Queue\QueueManager $instance */
  11569. $instance->before($callback);
  11570. }
  11571. /**
  11572. * Register an event listener for the after job event.
  11573. *
  11574. * @param mixed $callback
  11575. * @return void
  11576. * @static
  11577. */
  11578. public static function after($callback)
  11579. {
  11580. /** @var \Illuminate\Queue\QueueManager $instance */
  11581. $instance->after($callback);
  11582. }
  11583. /**
  11584. * Register an event listener for the exception occurred job event.
  11585. *
  11586. * @param mixed $callback
  11587. * @return void
  11588. * @static
  11589. */
  11590. public static function exceptionOccurred($callback)
  11591. {
  11592. /** @var \Illuminate\Queue\QueueManager $instance */
  11593. $instance->exceptionOccurred($callback);
  11594. }
  11595. /**
  11596. * Register an event listener for the daemon queue loop.
  11597. *
  11598. * @param mixed $callback
  11599. * @return void
  11600. * @static
  11601. */
  11602. public static function looping($callback)
  11603. {
  11604. /** @var \Illuminate\Queue\QueueManager $instance */
  11605. $instance->looping($callback);
  11606. }
  11607. /**
  11608. * Register an event listener for the failed job event.
  11609. *
  11610. * @param mixed $callback
  11611. * @return void
  11612. * @static
  11613. */
  11614. public static function failing($callback)
  11615. {
  11616. /** @var \Illuminate\Queue\QueueManager $instance */
  11617. $instance->failing($callback);
  11618. }
  11619. /**
  11620. * Register an event listener for the daemon queue starting.
  11621. *
  11622. * @param mixed $callback
  11623. * @return void
  11624. * @static
  11625. */
  11626. public static function starting($callback)
  11627. {
  11628. /** @var \Illuminate\Queue\QueueManager $instance */
  11629. $instance->starting($callback);
  11630. }
  11631. /**
  11632. * Register an event listener for the daemon queue stopping.
  11633. *
  11634. * @param mixed $callback
  11635. * @return void
  11636. * @static
  11637. */
  11638. public static function stopping($callback)
  11639. {
  11640. /** @var \Illuminate\Queue\QueueManager $instance */
  11641. $instance->stopping($callback);
  11642. }
  11643. /**
  11644. * Determine if the driver is connected.
  11645. *
  11646. * @param string|null $name
  11647. * @return bool
  11648. * @static
  11649. */
  11650. public static function connected($name = null)
  11651. {
  11652. /** @var \Illuminate\Queue\QueueManager $instance */
  11653. return $instance->connected($name);
  11654. }
  11655. /**
  11656. * Resolve a queue connection instance.
  11657. *
  11658. * @param string|null $name
  11659. * @return \Illuminate\Contracts\Queue\Queue
  11660. * @static
  11661. */
  11662. public static function connection($name = null)
  11663. {
  11664. /** @var \Illuminate\Queue\QueueManager $instance */
  11665. return $instance->connection($name);
  11666. }
  11667. /**
  11668. * Add a queue connection resolver.
  11669. *
  11670. * @param string $driver
  11671. * @param \Closure $resolver
  11672. * @return void
  11673. * @static
  11674. */
  11675. public static function extend($driver, $resolver)
  11676. {
  11677. /** @var \Illuminate\Queue\QueueManager $instance */
  11678. $instance->extend($driver, $resolver);
  11679. }
  11680. /**
  11681. * Add a queue connection resolver.
  11682. *
  11683. * @param string $driver
  11684. * @param \Closure $resolver
  11685. * @return void
  11686. * @static
  11687. */
  11688. public static function addConnector($driver, $resolver)
  11689. {
  11690. /** @var \Illuminate\Queue\QueueManager $instance */
  11691. $instance->addConnector($driver, $resolver);
  11692. }
  11693. /**
  11694. * Get the name of the default queue connection.
  11695. *
  11696. * @return string
  11697. * @static
  11698. */
  11699. public static function getDefaultDriver()
  11700. {
  11701. /** @var \Illuminate\Queue\QueueManager $instance */
  11702. return $instance->getDefaultDriver();
  11703. }
  11704. /**
  11705. * Set the name of the default queue connection.
  11706. *
  11707. * @param string $name
  11708. * @return void
  11709. * @static
  11710. */
  11711. public static function setDefaultDriver($name)
  11712. {
  11713. /** @var \Illuminate\Queue\QueueManager $instance */
  11714. $instance->setDefaultDriver($name);
  11715. }
  11716. /**
  11717. * Get the full name for the given connection.
  11718. *
  11719. * @param string|null $connection
  11720. * @return string
  11721. * @static
  11722. */
  11723. public static function getName($connection = null)
  11724. {
  11725. /** @var \Illuminate\Queue\QueueManager $instance */
  11726. return $instance->getName($connection);
  11727. }
  11728. /**
  11729. * Get the application instance used by the manager.
  11730. *
  11731. * @return \Illuminate\Contracts\Foundation\Application
  11732. * @static
  11733. */
  11734. public static function getApplication()
  11735. {
  11736. /** @var \Illuminate\Queue\QueueManager $instance */
  11737. return $instance->getApplication();
  11738. }
  11739. /**
  11740. * Set the application instance used by the manager.
  11741. *
  11742. * @param \Illuminate\Contracts\Foundation\Application $app
  11743. * @return \Illuminate\Queue\QueueManager
  11744. * @static
  11745. */
  11746. public static function setApplication($app)
  11747. {
  11748. /** @var \Illuminate\Queue\QueueManager $instance */
  11749. return $instance->setApplication($app);
  11750. }
  11751. /**
  11752. * Specify the jobs that should be queued instead of faked.
  11753. *
  11754. * @param array|string $jobsToBeQueued
  11755. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  11756. * @static
  11757. */
  11758. public static function except($jobsToBeQueued)
  11759. {
  11760. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11761. return $instance->except($jobsToBeQueued);
  11762. }
  11763. /**
  11764. * Assert if a job was pushed based on a truth-test callback.
  11765. *
  11766. * @param string|\Closure $job
  11767. * @param callable|int|null $callback
  11768. * @return void
  11769. * @static
  11770. */
  11771. public static function assertPushed($job, $callback = null)
  11772. {
  11773. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11774. $instance->assertPushed($job, $callback);
  11775. }
  11776. /**
  11777. * Assert if a job was pushed based on a truth-test callback.
  11778. *
  11779. * @param string $queue
  11780. * @param string|\Closure $job
  11781. * @param callable|null $callback
  11782. * @return void
  11783. * @static
  11784. */
  11785. public static function assertPushedOn($queue, $job, $callback = null)
  11786. {
  11787. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11788. $instance->assertPushedOn($queue, $job, $callback);
  11789. }
  11790. /**
  11791. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  11792. *
  11793. * @param string $job
  11794. * @param array $expectedChain
  11795. * @param callable|null $callback
  11796. * @return void
  11797. * @static
  11798. */
  11799. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  11800. {
  11801. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11802. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  11803. }
  11804. /**
  11805. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  11806. *
  11807. * @param string $job
  11808. * @param callable|null $callback
  11809. * @return void
  11810. * @static
  11811. */
  11812. public static function assertPushedWithoutChain($job, $callback = null)
  11813. {
  11814. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11815. $instance->assertPushedWithoutChain($job, $callback);
  11816. }
  11817. /**
  11818. * Assert if a closure was pushed based on a truth-test callback.
  11819. *
  11820. * @param callable|int|null $callback
  11821. * @return void
  11822. * @static
  11823. */
  11824. public static function assertClosurePushed($callback = null)
  11825. {
  11826. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11827. $instance->assertClosurePushed($callback);
  11828. }
  11829. /**
  11830. * Assert that a closure was not pushed based on a truth-test callback.
  11831. *
  11832. * @param callable|null $callback
  11833. * @return void
  11834. * @static
  11835. */
  11836. public static function assertClosureNotPushed($callback = null)
  11837. {
  11838. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11839. $instance->assertClosureNotPushed($callback);
  11840. }
  11841. /**
  11842. * Determine if a job was pushed based on a truth-test callback.
  11843. *
  11844. * @param string|\Closure $job
  11845. * @param callable|null $callback
  11846. * @return void
  11847. * @static
  11848. */
  11849. public static function assertNotPushed($job, $callback = null)
  11850. {
  11851. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11852. $instance->assertNotPushed($job, $callback);
  11853. }
  11854. /**
  11855. * Assert the total count of jobs that were pushed.
  11856. *
  11857. * @param int $expectedCount
  11858. * @return void
  11859. * @static
  11860. */
  11861. public static function assertCount($expectedCount)
  11862. {
  11863. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11864. $instance->assertCount($expectedCount);
  11865. }
  11866. /**
  11867. * Assert that no jobs were pushed.
  11868. *
  11869. * @return void
  11870. * @static
  11871. */
  11872. public static function assertNothingPushed()
  11873. {
  11874. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11875. $instance->assertNothingPushed();
  11876. }
  11877. /**
  11878. * Get all of the jobs matching a truth-test callback.
  11879. *
  11880. * @param string $job
  11881. * @param callable|null $callback
  11882. * @return \Illuminate\Support\Collection
  11883. * @static
  11884. */
  11885. public static function pushed($job, $callback = null)
  11886. {
  11887. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11888. return $instance->pushed($job, $callback);
  11889. }
  11890. /**
  11891. * Get all of the raw pushes matching a truth-test callback.
  11892. *
  11893. * @param null|\Closure(string, ?string, array): bool $callback
  11894. * @return \Illuminate\Support\Collection<int, RawPushType>
  11895. * @static
  11896. */
  11897. public static function pushedRaw($callback = null)
  11898. {
  11899. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11900. return $instance->pushedRaw($callback);
  11901. }
  11902. /**
  11903. * Get all of the jobs by listener class, passing an optional truth-test callback.
  11904. *
  11905. * @param class-string $listenerClass
  11906. * @param (\Closure(mixed, \Illuminate\Events\CallQueuedListener, string|null, mixed): bool)|null $callback
  11907. * @return \Illuminate\Support\Collection<int, \Illuminate\Events\CallQueuedListener>
  11908. * @static
  11909. */
  11910. public static function listenersPushed($listenerClass, $callback = null)
  11911. {
  11912. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11913. return $instance->listenersPushed($listenerClass, $callback);
  11914. }
  11915. /**
  11916. * Determine if there are any stored jobs for a given class.
  11917. *
  11918. * @param string $job
  11919. * @return bool
  11920. * @static
  11921. */
  11922. public static function hasPushed($job)
  11923. {
  11924. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11925. return $instance->hasPushed($job);
  11926. }
  11927. /**
  11928. * Get the size of the queue.
  11929. *
  11930. * @param string|null $queue
  11931. * @return int
  11932. * @static
  11933. */
  11934. public static function size($queue = null)
  11935. {
  11936. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11937. return $instance->size($queue);
  11938. }
  11939. /**
  11940. * Get the number of pending jobs.
  11941. *
  11942. * @param string|null $queue
  11943. * @return int
  11944. * @static
  11945. */
  11946. public static function pendingSize($queue = null)
  11947. {
  11948. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11949. return $instance->pendingSize($queue);
  11950. }
  11951. /**
  11952. * Get the number of delayed jobs.
  11953. *
  11954. * @param string|null $queue
  11955. * @return int
  11956. * @static
  11957. */
  11958. public static function delayedSize($queue = null)
  11959. {
  11960. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11961. return $instance->delayedSize($queue);
  11962. }
  11963. /**
  11964. * Get the number of reserved jobs.
  11965. *
  11966. * @param string|null $queue
  11967. * @return int
  11968. * @static
  11969. */
  11970. public static function reservedSize($queue = null)
  11971. {
  11972. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11973. return $instance->reservedSize($queue);
  11974. }
  11975. /**
  11976. * Get the creation timestamp of the oldest pending job, excluding delayed jobs.
  11977. *
  11978. * @param string|null $queue
  11979. * @return int|null
  11980. * @static
  11981. */
  11982. public static function creationTimeOfOldestPendingJob($queue = null)
  11983. {
  11984. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11985. return $instance->creationTimeOfOldestPendingJob($queue);
  11986. }
  11987. /**
  11988. * Push a new job onto the queue.
  11989. *
  11990. * @param string|object $job
  11991. * @param mixed $data
  11992. * @param string|null $queue
  11993. * @return mixed
  11994. * @static
  11995. */
  11996. public static function push($job, $data = '', $queue = null)
  11997. {
  11998. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  11999. return $instance->push($job, $data, $queue);
  12000. }
  12001. /**
  12002. * Determine if a job should be faked or actually dispatched.
  12003. *
  12004. * @param object $job
  12005. * @return bool
  12006. * @static
  12007. */
  12008. public static function shouldFakeJob($job)
  12009. {
  12010. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12011. return $instance->shouldFakeJob($job);
  12012. }
  12013. /**
  12014. * Push a raw payload onto the queue.
  12015. *
  12016. * @param string $payload
  12017. * @param string|null $queue
  12018. * @param array $options
  12019. * @return mixed
  12020. * @static
  12021. */
  12022. public static function pushRaw($payload, $queue = null, $options = [])
  12023. {
  12024. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12025. return $instance->pushRaw($payload, $queue, $options);
  12026. }
  12027. /**
  12028. * Push a new job onto the queue after (n) seconds.
  12029. *
  12030. * @param \DateTimeInterface|\DateInterval|int $delay
  12031. * @param string|object $job
  12032. * @param mixed $data
  12033. * @param string|null $queue
  12034. * @return mixed
  12035. * @static
  12036. */
  12037. public static function later($delay, $job, $data = '', $queue = null)
  12038. {
  12039. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12040. return $instance->later($delay, $job, $data, $queue);
  12041. }
  12042. /**
  12043. * Push a new job onto the queue.
  12044. *
  12045. * @param string $queue
  12046. * @param string|object $job
  12047. * @param mixed $data
  12048. * @return mixed
  12049. * @static
  12050. */
  12051. public static function pushOn($queue, $job, $data = '')
  12052. {
  12053. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12054. return $instance->pushOn($queue, $job, $data);
  12055. }
  12056. /**
  12057. * Push a new job onto a specific queue after (n) seconds.
  12058. *
  12059. * @param string $queue
  12060. * @param \DateTimeInterface|\DateInterval|int $delay
  12061. * @param string|object $job
  12062. * @param mixed $data
  12063. * @return mixed
  12064. * @static
  12065. */
  12066. public static function laterOn($queue, $delay, $job, $data = '')
  12067. {
  12068. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12069. return $instance->laterOn($queue, $delay, $job, $data);
  12070. }
  12071. /**
  12072. * Pop the next job off of the queue.
  12073. *
  12074. * @param string|null $queue
  12075. * @return \Illuminate\Contracts\Queue\Job|null
  12076. * @static
  12077. */
  12078. public static function pop($queue = null)
  12079. {
  12080. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12081. return $instance->pop($queue);
  12082. }
  12083. /**
  12084. * Push an array of jobs onto the queue.
  12085. *
  12086. * @param array $jobs
  12087. * @param mixed $data
  12088. * @param string|null $queue
  12089. * @return mixed
  12090. * @static
  12091. */
  12092. public static function bulk($jobs, $data = '', $queue = null)
  12093. {
  12094. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12095. return $instance->bulk($jobs, $data, $queue);
  12096. }
  12097. /**
  12098. * Get the jobs that have been pushed.
  12099. *
  12100. * @return array
  12101. * @static
  12102. */
  12103. public static function pushedJobs()
  12104. {
  12105. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12106. return $instance->pushedJobs();
  12107. }
  12108. /**
  12109. * Get the payloads that were pushed raw.
  12110. *
  12111. * @return list<RawPushType>
  12112. * @static
  12113. */
  12114. public static function rawPushes()
  12115. {
  12116. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12117. return $instance->rawPushes();
  12118. }
  12119. /**
  12120. * Specify if jobs should be serialized and restored when being "pushed" to the queue.
  12121. *
  12122. * @param bool $serializeAndRestore
  12123. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  12124. * @static
  12125. */
  12126. public static function serializeAndRestore($serializeAndRestore = true)
  12127. {
  12128. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12129. return $instance->serializeAndRestore($serializeAndRestore);
  12130. }
  12131. /**
  12132. * Get the connection name for the queue.
  12133. *
  12134. * @return string
  12135. * @static
  12136. */
  12137. public static function getConnectionName()
  12138. {
  12139. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12140. return $instance->getConnectionName();
  12141. }
  12142. /**
  12143. * Set the connection name for the queue.
  12144. *
  12145. * @param string $name
  12146. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  12147. * @static
  12148. */
  12149. public static function setConnectionName($name)
  12150. {
  12151. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  12152. return $instance->setConnectionName($name);
  12153. }
  12154. /**
  12155. * Migrate the delayed jobs that are ready to the regular queue.
  12156. *
  12157. * @param string $from
  12158. * @param string $to
  12159. * @return array
  12160. * @static
  12161. */
  12162. public static function migrateExpiredJobs($from, $to)
  12163. {
  12164. /** @var \Illuminate\Queue\RedisQueue $instance */
  12165. return $instance->migrateExpiredJobs($from, $to);
  12166. }
  12167. /**
  12168. * Delete a reserved job from the queue.
  12169. *
  12170. * @param string $queue
  12171. * @param \Illuminate\Queue\Jobs\RedisJob $job
  12172. * @return void
  12173. * @static
  12174. */
  12175. public static function deleteReserved($queue, $job)
  12176. {
  12177. /** @var \Illuminate\Queue\RedisQueue $instance */
  12178. $instance->deleteReserved($queue, $job);
  12179. }
  12180. /**
  12181. * Delete a reserved job from the reserved queue and release it.
  12182. *
  12183. * @param string $queue
  12184. * @param \Illuminate\Queue\Jobs\RedisJob $job
  12185. * @param int $delay
  12186. * @return void
  12187. * @static
  12188. */
  12189. public static function deleteAndRelease($queue, $job, $delay)
  12190. {
  12191. /** @var \Illuminate\Queue\RedisQueue $instance */
  12192. $instance->deleteAndRelease($queue, $job, $delay);
  12193. }
  12194. /**
  12195. * Delete all of the jobs from the queue.
  12196. *
  12197. * @param string $queue
  12198. * @return int
  12199. * @static
  12200. */
  12201. public static function clear($queue)
  12202. {
  12203. /** @var \Illuminate\Queue\RedisQueue $instance */
  12204. return $instance->clear($queue);
  12205. }
  12206. /**
  12207. * Get the queue or return the default.
  12208. *
  12209. * @param string|null $queue
  12210. * @return string
  12211. * @static
  12212. */
  12213. public static function getQueue($queue)
  12214. {
  12215. /** @var \Illuminate\Queue\RedisQueue $instance */
  12216. return $instance->getQueue($queue);
  12217. }
  12218. /**
  12219. * Get the connection for the queue.
  12220. *
  12221. * @return \Illuminate\Redis\Connections\Connection
  12222. * @static
  12223. */
  12224. public static function getConnection()
  12225. {
  12226. /** @var \Illuminate\Queue\RedisQueue $instance */
  12227. return $instance->getConnection();
  12228. }
  12229. /**
  12230. * Get the underlying Redis instance.
  12231. *
  12232. * @return \Illuminate\Contracts\Redis\Factory
  12233. * @static
  12234. */
  12235. public static function getRedis()
  12236. {
  12237. /** @var \Illuminate\Queue\RedisQueue $instance */
  12238. return $instance->getRedis();
  12239. }
  12240. /**
  12241. * Get the maximum number of attempts for an object-based queue handler.
  12242. *
  12243. * @param mixed $job
  12244. * @return mixed
  12245. * @static
  12246. */
  12247. public static function getJobTries($job)
  12248. {
  12249. //Method inherited from \Illuminate\Queue\Queue
  12250. /** @var \Illuminate\Queue\RedisQueue $instance */
  12251. return $instance->getJobTries($job);
  12252. }
  12253. /**
  12254. * Get the backoff for an object-based queue handler.
  12255. *
  12256. * @param mixed $job
  12257. * @return mixed
  12258. * @static
  12259. */
  12260. public static function getJobBackoff($job)
  12261. {
  12262. //Method inherited from \Illuminate\Queue\Queue
  12263. /** @var \Illuminate\Queue\RedisQueue $instance */
  12264. return $instance->getJobBackoff($job);
  12265. }
  12266. /**
  12267. * Get the expiration timestamp for an object-based queue handler.
  12268. *
  12269. * @param mixed $job
  12270. * @return mixed
  12271. * @static
  12272. */
  12273. public static function getJobExpiration($job)
  12274. {
  12275. //Method inherited from \Illuminate\Queue\Queue
  12276. /** @var \Illuminate\Queue\RedisQueue $instance */
  12277. return $instance->getJobExpiration($job);
  12278. }
  12279. /**
  12280. * Register a callback to be executed when creating job payloads.
  12281. *
  12282. * @param callable|null $callback
  12283. * @return void
  12284. * @static
  12285. */
  12286. public static function createPayloadUsing($callback)
  12287. {
  12288. //Method inherited from \Illuminate\Queue\Queue
  12289. \Illuminate\Queue\RedisQueue::createPayloadUsing($callback);
  12290. }
  12291. /**
  12292. * Get the container instance being used by the connection.
  12293. *
  12294. * @return \Illuminate\Container\Container
  12295. * @static
  12296. */
  12297. public static function getContainer()
  12298. {
  12299. //Method inherited from \Illuminate\Queue\Queue
  12300. /** @var \Illuminate\Queue\RedisQueue $instance */
  12301. return $instance->getContainer();
  12302. }
  12303. /**
  12304. * Set the IoC container instance.
  12305. *
  12306. * @param \Illuminate\Container\Container $container
  12307. * @return void
  12308. * @static
  12309. */
  12310. public static function setContainer($container)
  12311. {
  12312. //Method inherited from \Illuminate\Queue\Queue
  12313. /** @var \Illuminate\Queue\RedisQueue $instance */
  12314. $instance->setContainer($container);
  12315. }
  12316. }
  12317. /**
  12318. * @see \Illuminate\Cache\RateLimiter
  12319. */
  12320. class RateLimiter {
  12321. /**
  12322. * Register a named limiter configuration.
  12323. *
  12324. * @param \BackedEnum|\UnitEnum|string $name
  12325. * @param \Closure $callback
  12326. * @return \Illuminate\Cache\RateLimiter
  12327. * @static
  12328. */
  12329. public static function for($name, $callback)
  12330. {
  12331. /** @var \Illuminate\Cache\RateLimiter $instance */
  12332. return $instance->for($name, $callback);
  12333. }
  12334. /**
  12335. * Get the given named rate limiter.
  12336. *
  12337. * @param \BackedEnum|\UnitEnum|string $name
  12338. * @return \Closure|null
  12339. * @static
  12340. */
  12341. public static function limiter($name)
  12342. {
  12343. /** @var \Illuminate\Cache\RateLimiter $instance */
  12344. return $instance->limiter($name);
  12345. }
  12346. /**
  12347. * Attempts to execute a callback if it's not limited.
  12348. *
  12349. * @param string $key
  12350. * @param int $maxAttempts
  12351. * @param \Closure $callback
  12352. * @param \DateTimeInterface|\DateInterval|int $decaySeconds
  12353. * @return mixed
  12354. * @static
  12355. */
  12356. public static function attempt($key, $maxAttempts, $callback, $decaySeconds = 60)
  12357. {
  12358. /** @var \Illuminate\Cache\RateLimiter $instance */
  12359. return $instance->attempt($key, $maxAttempts, $callback, $decaySeconds);
  12360. }
  12361. /**
  12362. * Determine if the given key has been "accessed" too many times.
  12363. *
  12364. * @param string $key
  12365. * @param int $maxAttempts
  12366. * @return bool
  12367. * @static
  12368. */
  12369. public static function tooManyAttempts($key, $maxAttempts)
  12370. {
  12371. /** @var \Illuminate\Cache\RateLimiter $instance */
  12372. return $instance->tooManyAttempts($key, $maxAttempts);
  12373. }
  12374. /**
  12375. * Increment (by 1) the counter for a given key for a given decay time.
  12376. *
  12377. * @param string $key
  12378. * @param \DateTimeInterface|\DateInterval|int $decaySeconds
  12379. * @return int
  12380. * @static
  12381. */
  12382. public static function hit($key, $decaySeconds = 60)
  12383. {
  12384. /** @var \Illuminate\Cache\RateLimiter $instance */
  12385. return $instance->hit($key, $decaySeconds);
  12386. }
  12387. /**
  12388. * Increment the counter for a given key for a given decay time by a given amount.
  12389. *
  12390. * @param string $key
  12391. * @param \DateTimeInterface|\DateInterval|int $decaySeconds
  12392. * @param int $amount
  12393. * @return int
  12394. * @static
  12395. */
  12396. public static function increment($key, $decaySeconds = 60, $amount = 1)
  12397. {
  12398. /** @var \Illuminate\Cache\RateLimiter $instance */
  12399. return $instance->increment($key, $decaySeconds, $amount);
  12400. }
  12401. /**
  12402. * Decrement the counter for a given key for a given decay time by a given amount.
  12403. *
  12404. * @param string $key
  12405. * @param \DateTimeInterface|\DateInterval|int $decaySeconds
  12406. * @param int $amount
  12407. * @return int
  12408. * @static
  12409. */
  12410. public static function decrement($key, $decaySeconds = 60, $amount = 1)
  12411. {
  12412. /** @var \Illuminate\Cache\RateLimiter $instance */
  12413. return $instance->decrement($key, $decaySeconds, $amount);
  12414. }
  12415. /**
  12416. * Get the number of attempts for the given key.
  12417. *
  12418. * @param string $key
  12419. * @return mixed
  12420. * @static
  12421. */
  12422. public static function attempts($key)
  12423. {
  12424. /** @var \Illuminate\Cache\RateLimiter $instance */
  12425. return $instance->attempts($key);
  12426. }
  12427. /**
  12428. * Reset the number of attempts for the given key.
  12429. *
  12430. * @param string $key
  12431. * @return mixed
  12432. * @static
  12433. */
  12434. public static function resetAttempts($key)
  12435. {
  12436. /** @var \Illuminate\Cache\RateLimiter $instance */
  12437. return $instance->resetAttempts($key);
  12438. }
  12439. /**
  12440. * Get the number of retries left for the given key.
  12441. *
  12442. * @param string $key
  12443. * @param int $maxAttempts
  12444. * @return int
  12445. * @static
  12446. */
  12447. public static function remaining($key, $maxAttempts)
  12448. {
  12449. /** @var \Illuminate\Cache\RateLimiter $instance */
  12450. return $instance->remaining($key, $maxAttempts);
  12451. }
  12452. /**
  12453. * Get the number of retries left for the given key.
  12454. *
  12455. * @param string $key
  12456. * @param int $maxAttempts
  12457. * @return int
  12458. * @static
  12459. */
  12460. public static function retriesLeft($key, $maxAttempts)
  12461. {
  12462. /** @var \Illuminate\Cache\RateLimiter $instance */
  12463. return $instance->retriesLeft($key, $maxAttempts);
  12464. }
  12465. /**
  12466. * Clear the hits and lockout timer for the given key.
  12467. *
  12468. * @param string $key
  12469. * @return void
  12470. * @static
  12471. */
  12472. public static function clear($key)
  12473. {
  12474. /** @var \Illuminate\Cache\RateLimiter $instance */
  12475. $instance->clear($key);
  12476. }
  12477. /**
  12478. * Get the number of seconds until the "key" is accessible again.
  12479. *
  12480. * @param string $key
  12481. * @return int
  12482. * @static
  12483. */
  12484. public static function availableIn($key)
  12485. {
  12486. /** @var \Illuminate\Cache\RateLimiter $instance */
  12487. return $instance->availableIn($key);
  12488. }
  12489. /**
  12490. * Clean the rate limiter key from unicode characters.
  12491. *
  12492. * @param string $key
  12493. * @return string
  12494. * @static
  12495. */
  12496. public static function cleanRateLimiterKey($key)
  12497. {
  12498. /** @var \Illuminate\Cache\RateLimiter $instance */
  12499. return $instance->cleanRateLimiterKey($key);
  12500. }
  12501. }
  12502. /**
  12503. * @see \Illuminate\Routing\Redirector
  12504. */
  12505. class Redirect {
  12506. /**
  12507. * Create a new redirect response to the previous location.
  12508. *
  12509. * @param int $status
  12510. * @param array $headers
  12511. * @param mixed $fallback
  12512. * @return \Illuminate\Http\RedirectResponse
  12513. * @static
  12514. */
  12515. public static function back($status = 302, $headers = [], $fallback = false)
  12516. {
  12517. /** @var \Illuminate\Routing\Redirector $instance */
  12518. return $instance->back($status, $headers, $fallback);
  12519. }
  12520. /**
  12521. * Create a new redirect response to the current URI.
  12522. *
  12523. * @param int $status
  12524. * @param array $headers
  12525. * @return \Illuminate\Http\RedirectResponse
  12526. * @static
  12527. */
  12528. public static function refresh($status = 302, $headers = [])
  12529. {
  12530. /** @var \Illuminate\Routing\Redirector $instance */
  12531. return $instance->refresh($status, $headers);
  12532. }
  12533. /**
  12534. * Create a new redirect response, while putting the current URL in the session.
  12535. *
  12536. * @param string $path
  12537. * @param int $status
  12538. * @param array $headers
  12539. * @param bool|null $secure
  12540. * @return \Illuminate\Http\RedirectResponse
  12541. * @static
  12542. */
  12543. public static function guest($path, $status = 302, $headers = [], $secure = null)
  12544. {
  12545. /** @var \Illuminate\Routing\Redirector $instance */
  12546. return $instance->guest($path, $status, $headers, $secure);
  12547. }
  12548. /**
  12549. * Create a new redirect response to the previously intended location.
  12550. *
  12551. * @param mixed $default
  12552. * @param int $status
  12553. * @param array $headers
  12554. * @param bool|null $secure
  12555. * @return \Illuminate\Http\RedirectResponse
  12556. * @static
  12557. */
  12558. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  12559. {
  12560. /** @var \Illuminate\Routing\Redirector $instance */
  12561. return $instance->intended($default, $status, $headers, $secure);
  12562. }
  12563. /**
  12564. * Create a new redirect response to the given path.
  12565. *
  12566. * @param string $path
  12567. * @param int $status
  12568. * @param array $headers
  12569. * @param bool|null $secure
  12570. * @return \Illuminate\Http\RedirectResponse
  12571. * @static
  12572. */
  12573. public static function to($path, $status = 302, $headers = [], $secure = null)
  12574. {
  12575. /** @var \Illuminate\Routing\Redirector $instance */
  12576. return $instance->to($path, $status, $headers, $secure);
  12577. }
  12578. /**
  12579. * Create a new redirect response to an external URL (no validation).
  12580. *
  12581. * @param string $path
  12582. * @param int $status
  12583. * @param array $headers
  12584. * @return \Illuminate\Http\RedirectResponse
  12585. * @static
  12586. */
  12587. public static function away($path, $status = 302, $headers = [])
  12588. {
  12589. /** @var \Illuminate\Routing\Redirector $instance */
  12590. return $instance->away($path, $status, $headers);
  12591. }
  12592. /**
  12593. * Create a new redirect response to the given HTTPS path.
  12594. *
  12595. * @param string $path
  12596. * @param int $status
  12597. * @param array $headers
  12598. * @return \Illuminate\Http\RedirectResponse
  12599. * @static
  12600. */
  12601. public static function secure($path, $status = 302, $headers = [])
  12602. {
  12603. /** @var \Illuminate\Routing\Redirector $instance */
  12604. return $instance->secure($path, $status, $headers);
  12605. }
  12606. /**
  12607. * Create a new redirect response to a named route.
  12608. *
  12609. * @param \BackedEnum|string $route
  12610. * @param mixed $parameters
  12611. * @param int $status
  12612. * @param array $headers
  12613. * @return \Illuminate\Http\RedirectResponse
  12614. * @static
  12615. */
  12616. public static function route($route, $parameters = [], $status = 302, $headers = [])
  12617. {
  12618. /** @var \Illuminate\Routing\Redirector $instance */
  12619. return $instance->route($route, $parameters, $status, $headers);
  12620. }
  12621. /**
  12622. * Create a new redirect response to a signed named route.
  12623. *
  12624. * @param \BackedEnum|string $route
  12625. * @param mixed $parameters
  12626. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  12627. * @param int $status
  12628. * @param array $headers
  12629. * @return \Illuminate\Http\RedirectResponse
  12630. * @static
  12631. */
  12632. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  12633. {
  12634. /** @var \Illuminate\Routing\Redirector $instance */
  12635. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  12636. }
  12637. /**
  12638. * Create a new redirect response to a signed named route.
  12639. *
  12640. * @param \BackedEnum|string $route
  12641. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  12642. * @param mixed $parameters
  12643. * @param int $status
  12644. * @param array $headers
  12645. * @return \Illuminate\Http\RedirectResponse
  12646. * @static
  12647. */
  12648. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  12649. {
  12650. /** @var \Illuminate\Routing\Redirector $instance */
  12651. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  12652. }
  12653. /**
  12654. * Create a new redirect response to a controller action.
  12655. *
  12656. * @param string|array $action
  12657. * @param mixed $parameters
  12658. * @param int $status
  12659. * @param array $headers
  12660. * @return \Illuminate\Http\RedirectResponse
  12661. * @static
  12662. */
  12663. public static function action($action, $parameters = [], $status = 302, $headers = [])
  12664. {
  12665. /** @var \Illuminate\Routing\Redirector $instance */
  12666. return $instance->action($action, $parameters, $status, $headers);
  12667. }
  12668. /**
  12669. * Get the URL generator instance.
  12670. *
  12671. * @return \Illuminate\Routing\UrlGenerator
  12672. * @static
  12673. */
  12674. public static function getUrlGenerator()
  12675. {
  12676. /** @var \Illuminate\Routing\Redirector $instance */
  12677. return $instance->getUrlGenerator();
  12678. }
  12679. /**
  12680. * Set the active session store.
  12681. *
  12682. * @param \Illuminate\Session\Store $session
  12683. * @return void
  12684. * @static
  12685. */
  12686. public static function setSession($session)
  12687. {
  12688. /** @var \Illuminate\Routing\Redirector $instance */
  12689. $instance->setSession($session);
  12690. }
  12691. /**
  12692. * Get the "intended" URL from the session.
  12693. *
  12694. * @return string|null
  12695. * @static
  12696. */
  12697. public static function getIntendedUrl()
  12698. {
  12699. /** @var \Illuminate\Routing\Redirector $instance */
  12700. return $instance->getIntendedUrl();
  12701. }
  12702. /**
  12703. * Set the "intended" URL in the session.
  12704. *
  12705. * @param string $url
  12706. * @return \Illuminate\Routing\Redirector
  12707. * @static
  12708. */
  12709. public static function setIntendedUrl($url)
  12710. {
  12711. /** @var \Illuminate\Routing\Redirector $instance */
  12712. return $instance->setIntendedUrl($url);
  12713. }
  12714. /**
  12715. * Register a custom macro.
  12716. *
  12717. * @param string $name
  12718. * @param object|callable $macro
  12719. * @param-closure-this static $macro
  12720. * @return void
  12721. * @static
  12722. */
  12723. public static function macro($name, $macro)
  12724. {
  12725. \Illuminate\Routing\Redirector::macro($name, $macro);
  12726. }
  12727. /**
  12728. * Mix another object into the class.
  12729. *
  12730. * @param object $mixin
  12731. * @param bool $replace
  12732. * @return void
  12733. * @throws \ReflectionException
  12734. * @static
  12735. */
  12736. public static function mixin($mixin, $replace = true)
  12737. {
  12738. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  12739. }
  12740. /**
  12741. * Checks if macro is registered.
  12742. *
  12743. * @param string $name
  12744. * @return bool
  12745. * @static
  12746. */
  12747. public static function hasMacro($name)
  12748. {
  12749. return \Illuminate\Routing\Redirector::hasMacro($name);
  12750. }
  12751. /**
  12752. * Flush the existing macros.
  12753. *
  12754. * @return void
  12755. * @static
  12756. */
  12757. public static function flushMacros()
  12758. {
  12759. \Illuminate\Routing\Redirector::flushMacros();
  12760. }
  12761. }
  12762. /**
  12763. * @see \Illuminate\Http\Request
  12764. */
  12765. class Request {
  12766. /**
  12767. * Create a new Illuminate HTTP request from server variables.
  12768. *
  12769. * @return static
  12770. * @static
  12771. */
  12772. public static function capture()
  12773. {
  12774. return \Illuminate\Http\Request::capture();
  12775. }
  12776. /**
  12777. * Return the Request instance.
  12778. *
  12779. * @return \Illuminate\Http\Request
  12780. * @static
  12781. */
  12782. public static function instance()
  12783. {
  12784. /** @var \Illuminate\Http\Request $instance */
  12785. return $instance->instance();
  12786. }
  12787. /**
  12788. * Get the request method.
  12789. *
  12790. * @return string
  12791. * @static
  12792. */
  12793. public static function method()
  12794. {
  12795. /** @var \Illuminate\Http\Request $instance */
  12796. return $instance->method();
  12797. }
  12798. /**
  12799. * Get a URI instance for the request.
  12800. *
  12801. * @return \Illuminate\Support\Uri
  12802. * @static
  12803. */
  12804. public static function uri()
  12805. {
  12806. /** @var \Illuminate\Http\Request $instance */
  12807. return $instance->uri();
  12808. }
  12809. /**
  12810. * Get the root URL for the application.
  12811. *
  12812. * @return string
  12813. * @static
  12814. */
  12815. public static function root()
  12816. {
  12817. /** @var \Illuminate\Http\Request $instance */
  12818. return $instance->root();
  12819. }
  12820. /**
  12821. * Get the URL (no query string) for the request.
  12822. *
  12823. * @return string
  12824. * @static
  12825. */
  12826. public static function url()
  12827. {
  12828. /** @var \Illuminate\Http\Request $instance */
  12829. return $instance->url();
  12830. }
  12831. /**
  12832. * Get the full URL for the request.
  12833. *
  12834. * @return string
  12835. * @static
  12836. */
  12837. public static function fullUrl()
  12838. {
  12839. /** @var \Illuminate\Http\Request $instance */
  12840. return $instance->fullUrl();
  12841. }
  12842. /**
  12843. * Get the full URL for the request with the added query string parameters.
  12844. *
  12845. * @param array $query
  12846. * @return string
  12847. * @static
  12848. */
  12849. public static function fullUrlWithQuery($query)
  12850. {
  12851. /** @var \Illuminate\Http\Request $instance */
  12852. return $instance->fullUrlWithQuery($query);
  12853. }
  12854. /**
  12855. * Get the full URL for the request without the given query string parameters.
  12856. *
  12857. * @param array|string $keys
  12858. * @return string
  12859. * @static
  12860. */
  12861. public static function fullUrlWithoutQuery($keys)
  12862. {
  12863. /** @var \Illuminate\Http\Request $instance */
  12864. return $instance->fullUrlWithoutQuery($keys);
  12865. }
  12866. /**
  12867. * Get the current path info for the request.
  12868. *
  12869. * @return string
  12870. * @static
  12871. */
  12872. public static function path()
  12873. {
  12874. /** @var \Illuminate\Http\Request $instance */
  12875. return $instance->path();
  12876. }
  12877. /**
  12878. * Get the current decoded path info for the request.
  12879. *
  12880. * @return string
  12881. * @static
  12882. */
  12883. public static function decodedPath()
  12884. {
  12885. /** @var \Illuminate\Http\Request $instance */
  12886. return $instance->decodedPath();
  12887. }
  12888. /**
  12889. * Get a segment from the URI (1 based index).
  12890. *
  12891. * @param int $index
  12892. * @param string|null $default
  12893. * @return string|null
  12894. * @static
  12895. */
  12896. public static function segment($index, $default = null)
  12897. {
  12898. /** @var \Illuminate\Http\Request $instance */
  12899. return $instance->segment($index, $default);
  12900. }
  12901. /**
  12902. * Get all of the segments for the request path.
  12903. *
  12904. * @return array
  12905. * @static
  12906. */
  12907. public static function segments()
  12908. {
  12909. /** @var \Illuminate\Http\Request $instance */
  12910. return $instance->segments();
  12911. }
  12912. /**
  12913. * Determine if the current request URI matches a pattern.
  12914. *
  12915. * @param mixed $patterns
  12916. * @return bool
  12917. * @static
  12918. */
  12919. public static function is(...$patterns)
  12920. {
  12921. /** @var \Illuminate\Http\Request $instance */
  12922. return $instance->is(...$patterns);
  12923. }
  12924. /**
  12925. * Determine if the route name matches a given pattern.
  12926. *
  12927. * @param mixed $patterns
  12928. * @return bool
  12929. * @static
  12930. */
  12931. public static function routeIs(...$patterns)
  12932. {
  12933. /** @var \Illuminate\Http\Request $instance */
  12934. return $instance->routeIs(...$patterns);
  12935. }
  12936. /**
  12937. * Determine if the current request URL and query string match a pattern.
  12938. *
  12939. * @param mixed $patterns
  12940. * @return bool
  12941. * @static
  12942. */
  12943. public static function fullUrlIs(...$patterns)
  12944. {
  12945. /** @var \Illuminate\Http\Request $instance */
  12946. return $instance->fullUrlIs(...$patterns);
  12947. }
  12948. /**
  12949. * Get the host name.
  12950. *
  12951. * @return string
  12952. * @static
  12953. */
  12954. public static function host()
  12955. {
  12956. /** @var \Illuminate\Http\Request $instance */
  12957. return $instance->host();
  12958. }
  12959. /**
  12960. * Get the HTTP host being requested.
  12961. *
  12962. * @return string
  12963. * @static
  12964. */
  12965. public static function httpHost()
  12966. {
  12967. /** @var \Illuminate\Http\Request $instance */
  12968. return $instance->httpHost();
  12969. }
  12970. /**
  12971. * Get the scheme and HTTP host.
  12972. *
  12973. * @return string
  12974. * @static
  12975. */
  12976. public static function schemeAndHttpHost()
  12977. {
  12978. /** @var \Illuminate\Http\Request $instance */
  12979. return $instance->schemeAndHttpHost();
  12980. }
  12981. /**
  12982. * Determine if the request is the result of an AJAX call.
  12983. *
  12984. * @return bool
  12985. * @static
  12986. */
  12987. public static function ajax()
  12988. {
  12989. /** @var \Illuminate\Http\Request $instance */
  12990. return $instance->ajax();
  12991. }
  12992. /**
  12993. * Determine if the request is the result of a PJAX call.
  12994. *
  12995. * @return bool
  12996. * @static
  12997. */
  12998. public static function pjax()
  12999. {
  13000. /** @var \Illuminate\Http\Request $instance */
  13001. return $instance->pjax();
  13002. }
  13003. /**
  13004. * Determine if the request is the result of a prefetch call.
  13005. *
  13006. * @return bool
  13007. * @static
  13008. */
  13009. public static function prefetch()
  13010. {
  13011. /** @var \Illuminate\Http\Request $instance */
  13012. return $instance->prefetch();
  13013. }
  13014. /**
  13015. * Determine if the request is over HTTPS.
  13016. *
  13017. * @return bool
  13018. * @static
  13019. */
  13020. public static function secure()
  13021. {
  13022. /** @var \Illuminate\Http\Request $instance */
  13023. return $instance->secure();
  13024. }
  13025. /**
  13026. * Get the client IP address.
  13027. *
  13028. * @return string|null
  13029. * @static
  13030. */
  13031. public static function ip()
  13032. {
  13033. /** @var \Illuminate\Http\Request $instance */
  13034. return $instance->ip();
  13035. }
  13036. /**
  13037. * Get the client IP addresses.
  13038. *
  13039. * @return array
  13040. * @static
  13041. */
  13042. public static function ips()
  13043. {
  13044. /** @var \Illuminate\Http\Request $instance */
  13045. return $instance->ips();
  13046. }
  13047. /**
  13048. * Get the client user agent.
  13049. *
  13050. * @return string|null
  13051. * @static
  13052. */
  13053. public static function userAgent()
  13054. {
  13055. /** @var \Illuminate\Http\Request $instance */
  13056. return $instance->userAgent();
  13057. }
  13058. /**
  13059. * Merge new input into the current request's input array.
  13060. *
  13061. * @param array $input
  13062. * @return \Illuminate\Http\Request
  13063. * @static
  13064. */
  13065. public static function merge($input)
  13066. {
  13067. /** @var \Illuminate\Http\Request $instance */
  13068. return $instance->merge($input);
  13069. }
  13070. /**
  13071. * Merge new input into the request's input, but only when that key is missing from the request.
  13072. *
  13073. * @param array $input
  13074. * @return \Illuminate\Http\Request
  13075. * @static
  13076. */
  13077. public static function mergeIfMissing($input)
  13078. {
  13079. /** @var \Illuminate\Http\Request $instance */
  13080. return $instance->mergeIfMissing($input);
  13081. }
  13082. /**
  13083. * Replace the input values for the current request.
  13084. *
  13085. * @param array $input
  13086. * @return \Illuminate\Http\Request
  13087. * @static
  13088. */
  13089. public static function replace($input)
  13090. {
  13091. /** @var \Illuminate\Http\Request $instance */
  13092. return $instance->replace($input);
  13093. }
  13094. /**
  13095. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  13096. *
  13097. * Instead, you may use the "input" method.
  13098. *
  13099. * @param string $key
  13100. * @param mixed $default
  13101. * @return mixed
  13102. * @static
  13103. */
  13104. public static function get($key, $default = null)
  13105. {
  13106. /** @var \Illuminate\Http\Request $instance */
  13107. return $instance->get($key, $default);
  13108. }
  13109. /**
  13110. * Get the JSON payload for the request.
  13111. *
  13112. * @param string|null $key
  13113. * @param mixed $default
  13114. * @return ($key is null ? \Symfony\Component\HttpFoundation\InputBag : mixed)
  13115. * @static
  13116. */
  13117. public static function json($key = null, $default = null)
  13118. {
  13119. /** @var \Illuminate\Http\Request $instance */
  13120. return $instance->json($key, $default);
  13121. }
  13122. /**
  13123. * Create a new request instance from the given Laravel request.
  13124. *
  13125. * @param \Illuminate\Http\Request $from
  13126. * @param \Illuminate\Http\Request|null $to
  13127. * @return static
  13128. * @static
  13129. */
  13130. public static function createFrom($from, $to = null)
  13131. {
  13132. return \Illuminate\Http\Request::createFrom($from, $to);
  13133. }
  13134. /**
  13135. * Create an Illuminate request from a Symfony instance.
  13136. *
  13137. * @param \Symfony\Component\HttpFoundation\Request $request
  13138. * @return static
  13139. * @static
  13140. */
  13141. public static function createFromBase($request)
  13142. {
  13143. return \Illuminate\Http\Request::createFromBase($request);
  13144. }
  13145. /**
  13146. * Clones a request and overrides some of its parameters.
  13147. *
  13148. * @return static
  13149. * @param array|null $query The GET parameters
  13150. * @param array|null $request The POST parameters
  13151. * @param array|null $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  13152. * @param array|null $cookies The COOKIE parameters
  13153. * @param array|null $files The FILES parameters
  13154. * @param array|null $server The SERVER parameters
  13155. * @static
  13156. */
  13157. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  13158. {
  13159. /** @var \Illuminate\Http\Request $instance */
  13160. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  13161. }
  13162. /**
  13163. * Whether the request contains a Session object.
  13164. *
  13165. * This method does not give any information about the state of the session object,
  13166. * like whether the session is started or not. It is just a way to check if this Request
  13167. * is associated with a Session instance.
  13168. *
  13169. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  13170. * @static
  13171. */
  13172. public static function hasSession($skipIfUninitialized = false)
  13173. {
  13174. /** @var \Illuminate\Http\Request $instance */
  13175. return $instance->hasSession($skipIfUninitialized);
  13176. }
  13177. /**
  13178. * Gets the Session.
  13179. *
  13180. * @throws SessionNotFoundException When session is not set properly
  13181. * @static
  13182. */
  13183. public static function getSession()
  13184. {
  13185. /** @var \Illuminate\Http\Request $instance */
  13186. return $instance->getSession();
  13187. }
  13188. /**
  13189. * Get the session associated with the request.
  13190. *
  13191. * @return \Illuminate\Contracts\Session\Session
  13192. * @throws \RuntimeException
  13193. * @static
  13194. */
  13195. public static function session()
  13196. {
  13197. /** @var \Illuminate\Http\Request $instance */
  13198. return $instance->session();
  13199. }
  13200. /**
  13201. * Set the session instance on the request.
  13202. *
  13203. * @param \Illuminate\Contracts\Session\Session $session
  13204. * @return void
  13205. * @static
  13206. */
  13207. public static function setLaravelSession($session)
  13208. {
  13209. /** @var \Illuminate\Http\Request $instance */
  13210. $instance->setLaravelSession($session);
  13211. }
  13212. /**
  13213. * Set the locale for the request instance.
  13214. *
  13215. * @param string $locale
  13216. * @return void
  13217. * @static
  13218. */
  13219. public static function setRequestLocale($locale)
  13220. {
  13221. /** @var \Illuminate\Http\Request $instance */
  13222. $instance->setRequestLocale($locale);
  13223. }
  13224. /**
  13225. * Set the default locale for the request instance.
  13226. *
  13227. * @param string $locale
  13228. * @return void
  13229. * @static
  13230. */
  13231. public static function setDefaultRequestLocale($locale)
  13232. {
  13233. /** @var \Illuminate\Http\Request $instance */
  13234. $instance->setDefaultRequestLocale($locale);
  13235. }
  13236. /**
  13237. * Get the user making the request.
  13238. *
  13239. * @param string|null $guard
  13240. * @return mixed
  13241. * @static
  13242. */
  13243. public static function user($guard = null)
  13244. {
  13245. /** @var \Illuminate\Http\Request $instance */
  13246. return $instance->user($guard);
  13247. }
  13248. /**
  13249. * Get the route handling the request.
  13250. *
  13251. * @param string|null $param
  13252. * @param mixed $default
  13253. * @return ($param is null ? \Illuminate\Routing\Route : object|string|null)
  13254. * @static
  13255. */
  13256. public static function route($param = null, $default = null)
  13257. {
  13258. /** @var \Illuminate\Http\Request $instance */
  13259. return $instance->route($param, $default);
  13260. }
  13261. /**
  13262. * Get a unique fingerprint for the request / route / IP address.
  13263. *
  13264. * @return string
  13265. * @throws \RuntimeException
  13266. * @static
  13267. */
  13268. public static function fingerprint()
  13269. {
  13270. /** @var \Illuminate\Http\Request $instance */
  13271. return $instance->fingerprint();
  13272. }
  13273. /**
  13274. * Set the JSON payload for the request.
  13275. *
  13276. * @param \Symfony\Component\HttpFoundation\InputBag $json
  13277. * @return \Illuminate\Http\Request
  13278. * @static
  13279. */
  13280. public static function setJson($json)
  13281. {
  13282. /** @var \Illuminate\Http\Request $instance */
  13283. return $instance->setJson($json);
  13284. }
  13285. /**
  13286. * Get the user resolver callback.
  13287. *
  13288. * @return \Closure
  13289. * @static
  13290. */
  13291. public static function getUserResolver()
  13292. {
  13293. /** @var \Illuminate\Http\Request $instance */
  13294. return $instance->getUserResolver();
  13295. }
  13296. /**
  13297. * Set the user resolver callback.
  13298. *
  13299. * @param \Closure $callback
  13300. * @return \Illuminate\Http\Request
  13301. * @static
  13302. */
  13303. public static function setUserResolver($callback)
  13304. {
  13305. /** @var \Illuminate\Http\Request $instance */
  13306. return $instance->setUserResolver($callback);
  13307. }
  13308. /**
  13309. * Get the route resolver callback.
  13310. *
  13311. * @return \Closure
  13312. * @static
  13313. */
  13314. public static function getRouteResolver()
  13315. {
  13316. /** @var \Illuminate\Http\Request $instance */
  13317. return $instance->getRouteResolver();
  13318. }
  13319. /**
  13320. * Set the route resolver callback.
  13321. *
  13322. * @param \Closure $callback
  13323. * @return \Illuminate\Http\Request
  13324. * @static
  13325. */
  13326. public static function setRouteResolver($callback)
  13327. {
  13328. /** @var \Illuminate\Http\Request $instance */
  13329. return $instance->setRouteResolver($callback);
  13330. }
  13331. /**
  13332. * Get all of the input and files for the request.
  13333. *
  13334. * @return array
  13335. * @static
  13336. */
  13337. public static function toArray()
  13338. {
  13339. /** @var \Illuminate\Http\Request $instance */
  13340. return $instance->toArray();
  13341. }
  13342. /**
  13343. * Determine if the given offset exists.
  13344. *
  13345. * @param string $offset
  13346. * @return bool
  13347. * @static
  13348. */
  13349. public static function offsetExists($offset)
  13350. {
  13351. /** @var \Illuminate\Http\Request $instance */
  13352. return $instance->offsetExists($offset);
  13353. }
  13354. /**
  13355. * Get the value at the given offset.
  13356. *
  13357. * @param string $offset
  13358. * @return mixed
  13359. * @static
  13360. */
  13361. public static function offsetGet($offset)
  13362. {
  13363. /** @var \Illuminate\Http\Request $instance */
  13364. return $instance->offsetGet($offset);
  13365. }
  13366. /**
  13367. * Set the value at the given offset.
  13368. *
  13369. * @param string $offset
  13370. * @param mixed $value
  13371. * @return void
  13372. * @static
  13373. */
  13374. public static function offsetSet($offset, $value)
  13375. {
  13376. /** @var \Illuminate\Http\Request $instance */
  13377. $instance->offsetSet($offset, $value);
  13378. }
  13379. /**
  13380. * Remove the value at the given offset.
  13381. *
  13382. * @param string $offset
  13383. * @return void
  13384. * @static
  13385. */
  13386. public static function offsetUnset($offset)
  13387. {
  13388. /** @var \Illuminate\Http\Request $instance */
  13389. $instance->offsetUnset($offset);
  13390. }
  13391. /**
  13392. * Sets the parameters for this request.
  13393. *
  13394. * This method also re-initializes all properties.
  13395. *
  13396. * @param array $query The GET parameters
  13397. * @param array $request The POST parameters
  13398. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  13399. * @param array $cookies The COOKIE parameters
  13400. * @param array $files The FILES parameters
  13401. * @param array $server The SERVER parameters
  13402. * @param string|resource|null $content The raw body data
  13403. * @static
  13404. */
  13405. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  13406. {
  13407. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13408. /** @var \Illuminate\Http\Request $instance */
  13409. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  13410. }
  13411. /**
  13412. * Creates a new request with values from PHP's super globals.
  13413. *
  13414. * @static
  13415. */
  13416. public static function createFromGlobals()
  13417. {
  13418. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13419. return \Illuminate\Http\Request::createFromGlobals();
  13420. }
  13421. /**
  13422. * Creates a Request based on a given URI and configuration.
  13423. *
  13424. * The information contained in the URI always take precedence
  13425. * over the other information (server and parameters).
  13426. *
  13427. * @param string $uri The URI
  13428. * @param string $method The HTTP method
  13429. * @param array $parameters The query (GET) or request (POST) parameters
  13430. * @param array $cookies The request cookies ($_COOKIE)
  13431. * @param array $files The request files ($_FILES)
  13432. * @param array $server The server parameters ($_SERVER)
  13433. * @param string|resource|null $content The raw body data
  13434. * @throws BadRequestException When the URI is invalid
  13435. * @static
  13436. */
  13437. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  13438. {
  13439. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13440. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  13441. }
  13442. /**
  13443. * Sets a callable able to create a Request instance.
  13444. *
  13445. * This is mainly useful when you need to override the Request class
  13446. * to keep BC with an existing system. It should not be used for any
  13447. * other purpose.
  13448. *
  13449. * @static
  13450. */
  13451. public static function setFactory($callable)
  13452. {
  13453. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13454. return \Illuminate\Http\Request::setFactory($callable);
  13455. }
  13456. /**
  13457. * Overrides the PHP global variables according to this request instance.
  13458. *
  13459. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  13460. * $_FILES is never overridden, see rfc1867
  13461. *
  13462. * @static
  13463. */
  13464. public static function overrideGlobals()
  13465. {
  13466. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13467. /** @var \Illuminate\Http\Request $instance */
  13468. return $instance->overrideGlobals();
  13469. }
  13470. /**
  13471. * Sets a list of trusted proxies.
  13472. *
  13473. * You should only list the reverse proxies that you manage directly.
  13474. *
  13475. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR'] and 'PRIVATE_SUBNETS' by IpUtils::PRIVATE_SUBNETS
  13476. * @param int-mask-of<Request::HEADER_*> $trustedHeaderSet A bit field to set which headers to trust from your proxies
  13477. * @static
  13478. */
  13479. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  13480. {
  13481. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13482. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  13483. }
  13484. /**
  13485. * Gets the list of trusted proxies.
  13486. *
  13487. * @return string[]
  13488. * @static
  13489. */
  13490. public static function getTrustedProxies()
  13491. {
  13492. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13493. return \Illuminate\Http\Request::getTrustedProxies();
  13494. }
  13495. /**
  13496. * Gets the set of trusted headers from trusted proxies.
  13497. *
  13498. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  13499. * @static
  13500. */
  13501. public static function getTrustedHeaderSet()
  13502. {
  13503. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13504. return \Illuminate\Http\Request::getTrustedHeaderSet();
  13505. }
  13506. /**
  13507. * Sets a list of trusted host patterns.
  13508. *
  13509. * You should only list the hosts you manage using regexs.
  13510. *
  13511. * @param array $hostPatterns A list of trusted host patterns
  13512. * @static
  13513. */
  13514. public static function setTrustedHosts($hostPatterns)
  13515. {
  13516. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13517. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  13518. }
  13519. /**
  13520. * Gets the list of trusted host patterns.
  13521. *
  13522. * @return string[]
  13523. * @static
  13524. */
  13525. public static function getTrustedHosts()
  13526. {
  13527. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13528. return \Illuminate\Http\Request::getTrustedHosts();
  13529. }
  13530. /**
  13531. * Normalizes a query string.
  13532. *
  13533. * It builds a normalized query string, where keys/value pairs are alphabetized,
  13534. * have consistent escaping and unneeded delimiters are removed.
  13535. *
  13536. * @static
  13537. */
  13538. public static function normalizeQueryString($qs)
  13539. {
  13540. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13541. return \Illuminate\Http\Request::normalizeQueryString($qs);
  13542. }
  13543. /**
  13544. * Enables support for the _method request parameter to determine the intended HTTP method.
  13545. *
  13546. * Be warned that enabling this feature might lead to CSRF issues in your code.
  13547. * Check that you are using CSRF tokens when required.
  13548. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  13549. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  13550. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  13551. *
  13552. * The HTTP method can only be overridden when the real HTTP method is POST.
  13553. *
  13554. * @static
  13555. */
  13556. public static function enableHttpMethodParameterOverride()
  13557. {
  13558. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13559. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  13560. }
  13561. /**
  13562. * Checks whether support for the _method request parameter is enabled.
  13563. *
  13564. * @static
  13565. */
  13566. public static function getHttpMethodParameterOverride()
  13567. {
  13568. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13569. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  13570. }
  13571. /**
  13572. * Whether the request contains a Session which was started in one of the
  13573. * previous requests.
  13574. *
  13575. * @static
  13576. */
  13577. public static function hasPreviousSession()
  13578. {
  13579. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13580. /** @var \Illuminate\Http\Request $instance */
  13581. return $instance->hasPreviousSession();
  13582. }
  13583. /**
  13584. * @static
  13585. */
  13586. public static function setSession($session)
  13587. {
  13588. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13589. /** @var \Illuminate\Http\Request $instance */
  13590. return $instance->setSession($session);
  13591. }
  13592. /**
  13593. * @internal
  13594. * @param callable(): SessionInterface $factory
  13595. * @static
  13596. */
  13597. public static function setSessionFactory($factory)
  13598. {
  13599. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13600. /** @var \Illuminate\Http\Request $instance */
  13601. return $instance->setSessionFactory($factory);
  13602. }
  13603. /**
  13604. * Returns the client IP addresses.
  13605. *
  13606. * In the returned array the most trusted IP address is first, and the
  13607. * least trusted one last. The "real" client IP address is the last one,
  13608. * but this is also the least trusted one. Trusted proxies are stripped.
  13609. *
  13610. * Use this method carefully; you should use getClientIp() instead.
  13611. *
  13612. * @see getClientIp()
  13613. * @static
  13614. */
  13615. public static function getClientIps()
  13616. {
  13617. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13618. /** @var \Illuminate\Http\Request $instance */
  13619. return $instance->getClientIps();
  13620. }
  13621. /**
  13622. * Returns the client IP address.
  13623. *
  13624. * This method can read the client IP address from the "X-Forwarded-For" header
  13625. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  13626. * header value is a comma+space separated list of IP addresses, the left-most
  13627. * being the original client, and each successive proxy that passed the request
  13628. * adding the IP address where it received the request from.
  13629. *
  13630. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  13631. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  13632. * argument of the Request::setTrustedProxies() method instead.
  13633. *
  13634. * @see getClientIps()
  13635. * @see https://wikipedia.org/wiki/X-Forwarded-For
  13636. * @static
  13637. */
  13638. public static function getClientIp()
  13639. {
  13640. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13641. /** @var \Illuminate\Http\Request $instance */
  13642. return $instance->getClientIp();
  13643. }
  13644. /**
  13645. * Returns current script name.
  13646. *
  13647. * @static
  13648. */
  13649. public static function getScriptName()
  13650. {
  13651. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13652. /** @var \Illuminate\Http\Request $instance */
  13653. return $instance->getScriptName();
  13654. }
  13655. /**
  13656. * Returns the path being requested relative to the executed script.
  13657. *
  13658. * The path info always starts with a /.
  13659. *
  13660. * Suppose this request is instantiated from /mysite on localhost:
  13661. *
  13662. * * http://localhost/mysite returns an empty string
  13663. * * http://localhost/mysite/about returns '/about'
  13664. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  13665. * * http://localhost/mysite/about?var=1 returns '/about'
  13666. *
  13667. * @return string The raw path (i.e. not urldecoded)
  13668. * @static
  13669. */
  13670. public static function getPathInfo()
  13671. {
  13672. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13673. /** @var \Illuminate\Http\Request $instance */
  13674. return $instance->getPathInfo();
  13675. }
  13676. /**
  13677. * Returns the root path from which this request is executed.
  13678. *
  13679. * Suppose that an index.php file instantiates this request object:
  13680. *
  13681. * * http://localhost/index.php returns an empty string
  13682. * * http://localhost/index.php/page returns an empty string
  13683. * * http://localhost/web/index.php returns '/web'
  13684. * * http://localhost/we%20b/index.php returns '/we%20b'
  13685. *
  13686. * @return string The raw path (i.e. not urldecoded)
  13687. * @static
  13688. */
  13689. public static function getBasePath()
  13690. {
  13691. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13692. /** @var \Illuminate\Http\Request $instance */
  13693. return $instance->getBasePath();
  13694. }
  13695. /**
  13696. * Returns the root URL from which this request is executed.
  13697. *
  13698. * The base URL never ends with a /.
  13699. *
  13700. * This is similar to getBasePath(), except that it also includes the
  13701. * script filename (e.g. index.php) if one exists.
  13702. *
  13703. * @return string The raw URL (i.e. not urldecoded)
  13704. * @static
  13705. */
  13706. public static function getBaseUrl()
  13707. {
  13708. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13709. /** @var \Illuminate\Http\Request $instance */
  13710. return $instance->getBaseUrl();
  13711. }
  13712. /**
  13713. * Gets the request's scheme.
  13714. *
  13715. * @static
  13716. */
  13717. public static function getScheme()
  13718. {
  13719. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13720. /** @var \Illuminate\Http\Request $instance */
  13721. return $instance->getScheme();
  13722. }
  13723. /**
  13724. * Returns the port on which the request is made.
  13725. *
  13726. * This method can read the client port from the "X-Forwarded-Port" header
  13727. * when trusted proxies were set via "setTrustedProxies()".
  13728. *
  13729. * The "X-Forwarded-Port" header must contain the client port.
  13730. *
  13731. * @return int|string|null Can be a string if fetched from the server bag
  13732. * @static
  13733. */
  13734. public static function getPort()
  13735. {
  13736. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13737. /** @var \Illuminate\Http\Request $instance */
  13738. return $instance->getPort();
  13739. }
  13740. /**
  13741. * Returns the user.
  13742. *
  13743. * @static
  13744. */
  13745. public static function getUser()
  13746. {
  13747. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13748. /** @var \Illuminate\Http\Request $instance */
  13749. return $instance->getUser();
  13750. }
  13751. /**
  13752. * Returns the password.
  13753. *
  13754. * @static
  13755. */
  13756. public static function getPassword()
  13757. {
  13758. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13759. /** @var \Illuminate\Http\Request $instance */
  13760. return $instance->getPassword();
  13761. }
  13762. /**
  13763. * Gets the user info.
  13764. *
  13765. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  13766. * @static
  13767. */
  13768. public static function getUserInfo()
  13769. {
  13770. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13771. /** @var \Illuminate\Http\Request $instance */
  13772. return $instance->getUserInfo();
  13773. }
  13774. /**
  13775. * Returns the HTTP host being requested.
  13776. *
  13777. * The port name will be appended to the host if it's non-standard.
  13778. *
  13779. * @static
  13780. */
  13781. public static function getHttpHost()
  13782. {
  13783. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13784. /** @var \Illuminate\Http\Request $instance */
  13785. return $instance->getHttpHost();
  13786. }
  13787. /**
  13788. * Returns the requested URI (path and query string).
  13789. *
  13790. * @return string The raw URI (i.e. not URI decoded)
  13791. * @static
  13792. */
  13793. public static function getRequestUri()
  13794. {
  13795. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13796. /** @var \Illuminate\Http\Request $instance */
  13797. return $instance->getRequestUri();
  13798. }
  13799. /**
  13800. * Gets the scheme and HTTP host.
  13801. *
  13802. * If the URL was called with basic authentication, the user
  13803. * and the password are not added to the generated string.
  13804. *
  13805. * @static
  13806. */
  13807. public static function getSchemeAndHttpHost()
  13808. {
  13809. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13810. /** @var \Illuminate\Http\Request $instance */
  13811. return $instance->getSchemeAndHttpHost();
  13812. }
  13813. /**
  13814. * Generates a normalized URI (URL) for the Request.
  13815. *
  13816. * @see getQueryString()
  13817. * @static
  13818. */
  13819. public static function getUri()
  13820. {
  13821. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13822. /** @var \Illuminate\Http\Request $instance */
  13823. return $instance->getUri();
  13824. }
  13825. /**
  13826. * Generates a normalized URI for the given path.
  13827. *
  13828. * @param string $path A path to use instead of the current one
  13829. * @static
  13830. */
  13831. public static function getUriForPath($path)
  13832. {
  13833. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13834. /** @var \Illuminate\Http\Request $instance */
  13835. return $instance->getUriForPath($path);
  13836. }
  13837. /**
  13838. * Returns the path as relative reference from the current Request path.
  13839. *
  13840. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  13841. * Both paths must be absolute and not contain relative parts.
  13842. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  13843. * Furthermore, they can be used to reduce the link size in documents.
  13844. *
  13845. * Example target paths, given a base path of "/a/b/c/d":
  13846. * - "/a/b/c/d" -> ""
  13847. * - "/a/b/c/" -> "./"
  13848. * - "/a/b/" -> "../"
  13849. * - "/a/b/c/other" -> "other"
  13850. * - "/a/x/y" -> "../../x/y"
  13851. *
  13852. * @static
  13853. */
  13854. public static function getRelativeUriForPath($path)
  13855. {
  13856. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13857. /** @var \Illuminate\Http\Request $instance */
  13858. return $instance->getRelativeUriForPath($path);
  13859. }
  13860. /**
  13861. * Generates the normalized query string for the Request.
  13862. *
  13863. * It builds a normalized query string, where keys/value pairs are alphabetized
  13864. * and have consistent escaping.
  13865. *
  13866. * @static
  13867. */
  13868. public static function getQueryString()
  13869. {
  13870. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13871. /** @var \Illuminate\Http\Request $instance */
  13872. return $instance->getQueryString();
  13873. }
  13874. /**
  13875. * Checks whether the request is secure or not.
  13876. *
  13877. * This method can read the client protocol from the "X-Forwarded-Proto" header
  13878. * when trusted proxies were set via "setTrustedProxies()".
  13879. *
  13880. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  13881. *
  13882. * @static
  13883. */
  13884. public static function isSecure()
  13885. {
  13886. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13887. /** @var \Illuminate\Http\Request $instance */
  13888. return $instance->isSecure();
  13889. }
  13890. /**
  13891. * Returns the host name.
  13892. *
  13893. * This method can read the client host name from the "X-Forwarded-Host" header
  13894. * when trusted proxies were set via "setTrustedProxies()".
  13895. *
  13896. * The "X-Forwarded-Host" header must contain the client host name.
  13897. *
  13898. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  13899. * @static
  13900. */
  13901. public static function getHost()
  13902. {
  13903. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13904. /** @var \Illuminate\Http\Request $instance */
  13905. return $instance->getHost();
  13906. }
  13907. /**
  13908. * Sets the request method.
  13909. *
  13910. * @static
  13911. */
  13912. public static function setMethod($method)
  13913. {
  13914. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13915. /** @var \Illuminate\Http\Request $instance */
  13916. return $instance->setMethod($method);
  13917. }
  13918. /**
  13919. * Gets the request "intended" method.
  13920. *
  13921. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  13922. * then it is used to determine the "real" intended HTTP method.
  13923. *
  13924. * The _method request parameter can also be used to determine the HTTP method,
  13925. * but only if enableHttpMethodParameterOverride() has been called.
  13926. *
  13927. * The method is always an uppercased string.
  13928. *
  13929. * @see getRealMethod()
  13930. * @static
  13931. */
  13932. public static function getMethod()
  13933. {
  13934. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13935. /** @var \Illuminate\Http\Request $instance */
  13936. return $instance->getMethod();
  13937. }
  13938. /**
  13939. * Gets the "real" request method.
  13940. *
  13941. * @see getMethod()
  13942. * @static
  13943. */
  13944. public static function getRealMethod()
  13945. {
  13946. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13947. /** @var \Illuminate\Http\Request $instance */
  13948. return $instance->getRealMethod();
  13949. }
  13950. /**
  13951. * Gets the mime type associated with the format.
  13952. *
  13953. * @static
  13954. */
  13955. public static function getMimeType($format)
  13956. {
  13957. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13958. /** @var \Illuminate\Http\Request $instance */
  13959. return $instance->getMimeType($format);
  13960. }
  13961. /**
  13962. * Gets the mime types associated with the format.
  13963. *
  13964. * @return string[]
  13965. * @static
  13966. */
  13967. public static function getMimeTypes($format)
  13968. {
  13969. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13970. return \Illuminate\Http\Request::getMimeTypes($format);
  13971. }
  13972. /**
  13973. * Gets the format associated with the mime type.
  13974. *
  13975. * @static
  13976. */
  13977. public static function getFormat($mimeType)
  13978. {
  13979. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13980. /** @var \Illuminate\Http\Request $instance */
  13981. return $instance->getFormat($mimeType);
  13982. }
  13983. /**
  13984. * Associates a format with mime types.
  13985. *
  13986. * @param string|string[] $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  13987. * @static
  13988. */
  13989. public static function setFormat($format, $mimeTypes)
  13990. {
  13991. //Method inherited from \Symfony\Component\HttpFoundation\Request
  13992. /** @var \Illuminate\Http\Request $instance */
  13993. return $instance->setFormat($format, $mimeTypes);
  13994. }
  13995. /**
  13996. * Gets the request format.
  13997. *
  13998. * Here is the process to determine the format:
  13999. *
  14000. * * format defined by the user (with setRequestFormat())
  14001. * * _format request attribute
  14002. * * $default
  14003. *
  14004. * @see getPreferredFormat
  14005. * @static
  14006. */
  14007. public static function getRequestFormat($default = 'html')
  14008. {
  14009. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14010. /** @var \Illuminate\Http\Request $instance */
  14011. return $instance->getRequestFormat($default);
  14012. }
  14013. /**
  14014. * Sets the request format.
  14015. *
  14016. * @static
  14017. */
  14018. public static function setRequestFormat($format)
  14019. {
  14020. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14021. /** @var \Illuminate\Http\Request $instance */
  14022. return $instance->setRequestFormat($format);
  14023. }
  14024. /**
  14025. * Gets the usual name of the format associated with the request's media type (provided in the Content-Type header).
  14026. *
  14027. * @see Request::$formats
  14028. * @static
  14029. */
  14030. public static function getContentTypeFormat()
  14031. {
  14032. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14033. /** @var \Illuminate\Http\Request $instance */
  14034. return $instance->getContentTypeFormat();
  14035. }
  14036. /**
  14037. * Sets the default locale.
  14038. *
  14039. * @static
  14040. */
  14041. public static function setDefaultLocale($locale)
  14042. {
  14043. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14044. /** @var \Illuminate\Http\Request $instance */
  14045. return $instance->setDefaultLocale($locale);
  14046. }
  14047. /**
  14048. * Get the default locale.
  14049. *
  14050. * @static
  14051. */
  14052. public static function getDefaultLocale()
  14053. {
  14054. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14055. /** @var \Illuminate\Http\Request $instance */
  14056. return $instance->getDefaultLocale();
  14057. }
  14058. /**
  14059. * Sets the locale.
  14060. *
  14061. * @static
  14062. */
  14063. public static function setLocale($locale)
  14064. {
  14065. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14066. /** @var \Illuminate\Http\Request $instance */
  14067. return $instance->setLocale($locale);
  14068. }
  14069. /**
  14070. * Get the locale.
  14071. *
  14072. * @static
  14073. */
  14074. public static function getLocale()
  14075. {
  14076. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14077. /** @var \Illuminate\Http\Request $instance */
  14078. return $instance->getLocale();
  14079. }
  14080. /**
  14081. * Checks if the request method is of specified type.
  14082. *
  14083. * @param string $method Uppercase request method (GET, POST etc)
  14084. * @static
  14085. */
  14086. public static function isMethod($method)
  14087. {
  14088. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14089. /** @var \Illuminate\Http\Request $instance */
  14090. return $instance->isMethod($method);
  14091. }
  14092. /**
  14093. * Checks whether or not the method is safe.
  14094. *
  14095. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  14096. * @static
  14097. */
  14098. public static function isMethodSafe()
  14099. {
  14100. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14101. /** @var \Illuminate\Http\Request $instance */
  14102. return $instance->isMethodSafe();
  14103. }
  14104. /**
  14105. * Checks whether or not the method is idempotent.
  14106. *
  14107. * @static
  14108. */
  14109. public static function isMethodIdempotent()
  14110. {
  14111. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14112. /** @var \Illuminate\Http\Request $instance */
  14113. return $instance->isMethodIdempotent();
  14114. }
  14115. /**
  14116. * Checks whether the method is cacheable or not.
  14117. *
  14118. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  14119. * @static
  14120. */
  14121. public static function isMethodCacheable()
  14122. {
  14123. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14124. /** @var \Illuminate\Http\Request $instance */
  14125. return $instance->isMethodCacheable();
  14126. }
  14127. /**
  14128. * Returns the protocol version.
  14129. *
  14130. * If the application is behind a proxy, the protocol version used in the
  14131. * requests between the client and the proxy and between the proxy and the
  14132. * server might be different. This returns the former (from the "Via" header)
  14133. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  14134. * the latter (from the "SERVER_PROTOCOL" server parameter).
  14135. *
  14136. * @static
  14137. */
  14138. public static function getProtocolVersion()
  14139. {
  14140. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14141. /** @var \Illuminate\Http\Request $instance */
  14142. return $instance->getProtocolVersion();
  14143. }
  14144. /**
  14145. * Returns the request body content.
  14146. *
  14147. * @param bool $asResource If true, a resource will be returned
  14148. * @return string|resource
  14149. * @psalm-return ($asResource is true ? resource : string)
  14150. * @static
  14151. */
  14152. public static function getContent($asResource = false)
  14153. {
  14154. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14155. /** @var \Illuminate\Http\Request $instance */
  14156. return $instance->getContent($asResource);
  14157. }
  14158. /**
  14159. * Gets the decoded form or json request body.
  14160. *
  14161. * @throws JsonException When the body cannot be decoded to an array
  14162. * @static
  14163. */
  14164. public static function getPayload()
  14165. {
  14166. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14167. /** @var \Illuminate\Http\Request $instance */
  14168. return $instance->getPayload();
  14169. }
  14170. /**
  14171. * Gets the Etags.
  14172. *
  14173. * @static
  14174. */
  14175. public static function getETags()
  14176. {
  14177. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14178. /** @var \Illuminate\Http\Request $instance */
  14179. return $instance->getETags();
  14180. }
  14181. /**
  14182. * @static
  14183. */
  14184. public static function isNoCache()
  14185. {
  14186. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14187. /** @var \Illuminate\Http\Request $instance */
  14188. return $instance->isNoCache();
  14189. }
  14190. /**
  14191. * Gets the preferred format for the response by inspecting, in the following order:
  14192. * * the request format set using setRequestFormat;
  14193. * * the values of the Accept HTTP header.
  14194. *
  14195. * Note that if you use this method, you should send the "Vary: Accept" header
  14196. * in the response to prevent any issues with intermediary HTTP caches.
  14197. *
  14198. * @static
  14199. */
  14200. public static function getPreferredFormat($default = 'html')
  14201. {
  14202. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14203. /** @var \Illuminate\Http\Request $instance */
  14204. return $instance->getPreferredFormat($default);
  14205. }
  14206. /**
  14207. * Returns the preferred language.
  14208. *
  14209. * @param string[] $locales An array of ordered available locales
  14210. * @static
  14211. */
  14212. public static function getPreferredLanguage($locales = null)
  14213. {
  14214. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14215. /** @var \Illuminate\Http\Request $instance */
  14216. return $instance->getPreferredLanguage($locales);
  14217. }
  14218. /**
  14219. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  14220. *
  14221. * @return string[]
  14222. * @static
  14223. */
  14224. public static function getLanguages()
  14225. {
  14226. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14227. /** @var \Illuminate\Http\Request $instance */
  14228. return $instance->getLanguages();
  14229. }
  14230. /**
  14231. * Gets a list of charsets acceptable by the client browser in preferable order.
  14232. *
  14233. * @return string[]
  14234. * @static
  14235. */
  14236. public static function getCharsets()
  14237. {
  14238. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14239. /** @var \Illuminate\Http\Request $instance */
  14240. return $instance->getCharsets();
  14241. }
  14242. /**
  14243. * Gets a list of encodings acceptable by the client browser in preferable order.
  14244. *
  14245. * @return string[]
  14246. * @static
  14247. */
  14248. public static function getEncodings()
  14249. {
  14250. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14251. /** @var \Illuminate\Http\Request $instance */
  14252. return $instance->getEncodings();
  14253. }
  14254. /**
  14255. * Gets a list of content types acceptable by the client browser in preferable order.
  14256. *
  14257. * @return string[]
  14258. * @static
  14259. */
  14260. public static function getAcceptableContentTypes()
  14261. {
  14262. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14263. /** @var \Illuminate\Http\Request $instance */
  14264. return $instance->getAcceptableContentTypes();
  14265. }
  14266. /**
  14267. * Returns true if the request is an XMLHttpRequest.
  14268. *
  14269. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  14270. * It is known to work with common JavaScript frameworks:
  14271. *
  14272. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  14273. * @static
  14274. */
  14275. public static function isXmlHttpRequest()
  14276. {
  14277. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14278. /** @var \Illuminate\Http\Request $instance */
  14279. return $instance->isXmlHttpRequest();
  14280. }
  14281. /**
  14282. * Checks whether the client browser prefers safe content or not according to RFC8674.
  14283. *
  14284. * @see https://tools.ietf.org/html/rfc8674
  14285. * @static
  14286. */
  14287. public static function preferSafeContent()
  14288. {
  14289. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14290. /** @var \Illuminate\Http\Request $instance */
  14291. return $instance->preferSafeContent();
  14292. }
  14293. /**
  14294. * Indicates whether this request originated from a trusted proxy.
  14295. *
  14296. * This can be useful to determine whether or not to trust the
  14297. * contents of a proxy-specific header.
  14298. *
  14299. * @static
  14300. */
  14301. public static function isFromTrustedProxy()
  14302. {
  14303. //Method inherited from \Symfony\Component\HttpFoundation\Request
  14304. /** @var \Illuminate\Http\Request $instance */
  14305. return $instance->isFromTrustedProxy();
  14306. }
  14307. /**
  14308. * Filter the given array of rules into an array of rules that are included in precognitive headers.
  14309. *
  14310. * @param array $rules
  14311. * @return array
  14312. * @static
  14313. */
  14314. public static function filterPrecognitiveRules($rules)
  14315. {
  14316. /** @var \Illuminate\Http\Request $instance */
  14317. return $instance->filterPrecognitiveRules($rules);
  14318. }
  14319. /**
  14320. * Determine if the request is attempting to be precognitive.
  14321. *
  14322. * @return bool
  14323. * @static
  14324. */
  14325. public static function isAttemptingPrecognition()
  14326. {
  14327. /** @var \Illuminate\Http\Request $instance */
  14328. return $instance->isAttemptingPrecognition();
  14329. }
  14330. /**
  14331. * Determine if the request is precognitive.
  14332. *
  14333. * @return bool
  14334. * @static
  14335. */
  14336. public static function isPrecognitive()
  14337. {
  14338. /** @var \Illuminate\Http\Request $instance */
  14339. return $instance->isPrecognitive();
  14340. }
  14341. /**
  14342. * Determine if the request is sending JSON.
  14343. *
  14344. * @return bool
  14345. * @static
  14346. */
  14347. public static function isJson()
  14348. {
  14349. /** @var \Illuminate\Http\Request $instance */
  14350. return $instance->isJson();
  14351. }
  14352. /**
  14353. * Determine if the current request probably expects a JSON response.
  14354. *
  14355. * @return bool
  14356. * @static
  14357. */
  14358. public static function expectsJson()
  14359. {
  14360. /** @var \Illuminate\Http\Request $instance */
  14361. return $instance->expectsJson();
  14362. }
  14363. /**
  14364. * Determine if the current request is asking for JSON.
  14365. *
  14366. * @return bool
  14367. * @static
  14368. */
  14369. public static function wantsJson()
  14370. {
  14371. /** @var \Illuminate\Http\Request $instance */
  14372. return $instance->wantsJson();
  14373. }
  14374. /**
  14375. * Determines whether the current requests accepts a given content type.
  14376. *
  14377. * @param string|array $contentTypes
  14378. * @return bool
  14379. * @static
  14380. */
  14381. public static function accepts($contentTypes)
  14382. {
  14383. /** @var \Illuminate\Http\Request $instance */
  14384. return $instance->accepts($contentTypes);
  14385. }
  14386. /**
  14387. * Return the most suitable content type from the given array based on content negotiation.
  14388. *
  14389. * @param string|array $contentTypes
  14390. * @return string|null
  14391. * @static
  14392. */
  14393. public static function prefers($contentTypes)
  14394. {
  14395. /** @var \Illuminate\Http\Request $instance */
  14396. return $instance->prefers($contentTypes);
  14397. }
  14398. /**
  14399. * Determine if the current request accepts any content type.
  14400. *
  14401. * @return bool
  14402. * @static
  14403. */
  14404. public static function acceptsAnyContentType()
  14405. {
  14406. /** @var \Illuminate\Http\Request $instance */
  14407. return $instance->acceptsAnyContentType();
  14408. }
  14409. /**
  14410. * Determines whether a request accepts JSON.
  14411. *
  14412. * @return bool
  14413. * @static
  14414. */
  14415. public static function acceptsJson()
  14416. {
  14417. /** @var \Illuminate\Http\Request $instance */
  14418. return $instance->acceptsJson();
  14419. }
  14420. /**
  14421. * Determines whether a request accepts HTML.
  14422. *
  14423. * @return bool
  14424. * @static
  14425. */
  14426. public static function acceptsHtml()
  14427. {
  14428. /** @var \Illuminate\Http\Request $instance */
  14429. return $instance->acceptsHtml();
  14430. }
  14431. /**
  14432. * Determine if the given content types match.
  14433. *
  14434. * @param string $actual
  14435. * @param string $type
  14436. * @return bool
  14437. * @static
  14438. */
  14439. public static function matchesType($actual, $type)
  14440. {
  14441. return \Illuminate\Http\Request::matchesType($actual, $type);
  14442. }
  14443. /**
  14444. * Get the data format expected in the response.
  14445. *
  14446. * @param string $default
  14447. * @return string
  14448. * @static
  14449. */
  14450. public static function format($default = 'html')
  14451. {
  14452. /** @var \Illuminate\Http\Request $instance */
  14453. return $instance->format($default);
  14454. }
  14455. /**
  14456. * Retrieve an old input item.
  14457. *
  14458. * @param string|null $key
  14459. * @param \Illuminate\Database\Eloquent\Model|string|array|null $default
  14460. * @return string|array|null
  14461. * @static
  14462. */
  14463. public static function old($key = null, $default = null)
  14464. {
  14465. /** @var \Illuminate\Http\Request $instance */
  14466. return $instance->old($key, $default);
  14467. }
  14468. /**
  14469. * Flash the input for the current request to the session.
  14470. *
  14471. * @return void
  14472. * @static
  14473. */
  14474. public static function flash()
  14475. {
  14476. /** @var \Illuminate\Http\Request $instance */
  14477. $instance->flash();
  14478. }
  14479. /**
  14480. * Flash only some of the input to the session.
  14481. *
  14482. * @param array|mixed $keys
  14483. * @return void
  14484. * @static
  14485. */
  14486. public static function flashOnly($keys)
  14487. {
  14488. /** @var \Illuminate\Http\Request $instance */
  14489. $instance->flashOnly($keys);
  14490. }
  14491. /**
  14492. * Flash only some of the input to the session.
  14493. *
  14494. * @param array|mixed $keys
  14495. * @return void
  14496. * @static
  14497. */
  14498. public static function flashExcept($keys)
  14499. {
  14500. /** @var \Illuminate\Http\Request $instance */
  14501. $instance->flashExcept($keys);
  14502. }
  14503. /**
  14504. * Flush all of the old input from the session.
  14505. *
  14506. * @return void
  14507. * @static
  14508. */
  14509. public static function flush()
  14510. {
  14511. /** @var \Illuminate\Http\Request $instance */
  14512. $instance->flush();
  14513. }
  14514. /**
  14515. * Retrieve a server variable from the request.
  14516. *
  14517. * @param string|null $key
  14518. * @param string|array|null $default
  14519. * @return string|array|null
  14520. * @static
  14521. */
  14522. public static function server($key = null, $default = null)
  14523. {
  14524. /** @var \Illuminate\Http\Request $instance */
  14525. return $instance->server($key, $default);
  14526. }
  14527. /**
  14528. * Determine if a header is set on the request.
  14529. *
  14530. * @param string $key
  14531. * @return bool
  14532. * @static
  14533. */
  14534. public static function hasHeader($key)
  14535. {
  14536. /** @var \Illuminate\Http\Request $instance */
  14537. return $instance->hasHeader($key);
  14538. }
  14539. /**
  14540. * Retrieve a header from the request.
  14541. *
  14542. * @param string|null $key
  14543. * @param string|array|null $default
  14544. * @return string|array|null
  14545. * @static
  14546. */
  14547. public static function header($key = null, $default = null)
  14548. {
  14549. /** @var \Illuminate\Http\Request $instance */
  14550. return $instance->header($key, $default);
  14551. }
  14552. /**
  14553. * Get the bearer token from the request headers.
  14554. *
  14555. * @return string|null
  14556. * @static
  14557. */
  14558. public static function bearerToken()
  14559. {
  14560. /** @var \Illuminate\Http\Request $instance */
  14561. return $instance->bearerToken();
  14562. }
  14563. /**
  14564. * Get the keys for all of the input and files.
  14565. *
  14566. * @return array
  14567. * @static
  14568. */
  14569. public static function keys()
  14570. {
  14571. /** @var \Illuminate\Http\Request $instance */
  14572. return $instance->keys();
  14573. }
  14574. /**
  14575. * Get all of the input and files for the request.
  14576. *
  14577. * @param array|mixed|null $keys
  14578. * @return array
  14579. * @static
  14580. */
  14581. public static function all($keys = null)
  14582. {
  14583. /** @var \Illuminate\Http\Request $instance */
  14584. return $instance->all($keys);
  14585. }
  14586. /**
  14587. * Retrieve an input item from the request.
  14588. *
  14589. * @param string|null $key
  14590. * @param mixed $default
  14591. * @return mixed
  14592. * @static
  14593. */
  14594. public static function input($key = null, $default = null)
  14595. {
  14596. /** @var \Illuminate\Http\Request $instance */
  14597. return $instance->input($key, $default);
  14598. }
  14599. /**
  14600. * Retrieve input from the request as a Fluent object instance.
  14601. *
  14602. * @param array|string|null $key
  14603. * @return \Illuminate\Support\Fluent
  14604. * @static
  14605. */
  14606. public static function fluent($key = null)
  14607. {
  14608. /** @var \Illuminate\Http\Request $instance */
  14609. return $instance->fluent($key);
  14610. }
  14611. /**
  14612. * Retrieve a query string item from the request.
  14613. *
  14614. * @param string|null $key
  14615. * @param string|array|null $default
  14616. * @return string|array|null
  14617. * @static
  14618. */
  14619. public static function query($key = null, $default = null)
  14620. {
  14621. /** @var \Illuminate\Http\Request $instance */
  14622. return $instance->query($key, $default);
  14623. }
  14624. /**
  14625. * Retrieve a request payload item from the request.
  14626. *
  14627. * @param string|null $key
  14628. * @param string|array|null $default
  14629. * @return string|array|null
  14630. * @static
  14631. */
  14632. public static function post($key = null, $default = null)
  14633. {
  14634. /** @var \Illuminate\Http\Request $instance */
  14635. return $instance->post($key, $default);
  14636. }
  14637. /**
  14638. * Determine if a cookie is set on the request.
  14639. *
  14640. * @param string $key
  14641. * @return bool
  14642. * @static
  14643. */
  14644. public static function hasCookie($key)
  14645. {
  14646. /** @var \Illuminate\Http\Request $instance */
  14647. return $instance->hasCookie($key);
  14648. }
  14649. /**
  14650. * Retrieve a cookie from the request.
  14651. *
  14652. * @param string|null $key
  14653. * @param string|array|null $default
  14654. * @return string|array|null
  14655. * @static
  14656. */
  14657. public static function cookie($key = null, $default = null)
  14658. {
  14659. /** @var \Illuminate\Http\Request $instance */
  14660. return $instance->cookie($key, $default);
  14661. }
  14662. /**
  14663. * Get an array of all of the files on the request.
  14664. *
  14665. * @return array<string, \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]>
  14666. * @static
  14667. */
  14668. public static function allFiles()
  14669. {
  14670. /** @var \Illuminate\Http\Request $instance */
  14671. return $instance->allFiles();
  14672. }
  14673. /**
  14674. * Determine if the uploaded data contains a file.
  14675. *
  14676. * @param string $key
  14677. * @return bool
  14678. * @static
  14679. */
  14680. public static function hasFile($key)
  14681. {
  14682. /** @var \Illuminate\Http\Request $instance */
  14683. return $instance->hasFile($key);
  14684. }
  14685. /**
  14686. * Retrieve a file from the request.
  14687. *
  14688. * @param string|null $key
  14689. * @param mixed $default
  14690. * @return ($key is null ? array<string, \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]> : \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|null)
  14691. * @static
  14692. */
  14693. public static function file($key = null, $default = null)
  14694. {
  14695. /** @var \Illuminate\Http\Request $instance */
  14696. return $instance->file($key, $default);
  14697. }
  14698. /**
  14699. * Dump the items.
  14700. *
  14701. * @param mixed $keys
  14702. * @return \Illuminate\Http\Request
  14703. * @static
  14704. */
  14705. public static function dump($keys = [])
  14706. {
  14707. /** @var \Illuminate\Http\Request $instance */
  14708. return $instance->dump($keys);
  14709. }
  14710. /**
  14711. * Dump the given arguments and terminate execution.
  14712. *
  14713. * @param mixed $args
  14714. * @return never
  14715. * @static
  14716. */
  14717. public static function dd(...$args)
  14718. {
  14719. /** @var \Illuminate\Http\Request $instance */
  14720. return $instance->dd(...$args);
  14721. }
  14722. /**
  14723. * Determine if the data contains a given key.
  14724. *
  14725. * @param string|array $key
  14726. * @return bool
  14727. * @static
  14728. */
  14729. public static function exists($key)
  14730. {
  14731. /** @var \Illuminate\Http\Request $instance */
  14732. return $instance->exists($key);
  14733. }
  14734. /**
  14735. * Determine if the data contains a given key.
  14736. *
  14737. * @param string|array $key
  14738. * @return bool
  14739. * @static
  14740. */
  14741. public static function has($key)
  14742. {
  14743. /** @var \Illuminate\Http\Request $instance */
  14744. return $instance->has($key);
  14745. }
  14746. /**
  14747. * Determine if the instance contains any of the given keys.
  14748. *
  14749. * @param string|array $keys
  14750. * @return bool
  14751. * @static
  14752. */
  14753. public static function hasAny($keys)
  14754. {
  14755. /** @var \Illuminate\Http\Request $instance */
  14756. return $instance->hasAny($keys);
  14757. }
  14758. /**
  14759. * Apply the callback if the instance contains the given key.
  14760. *
  14761. * @param string $key
  14762. * @param callable $callback
  14763. * @param callable|null $default
  14764. * @return $this|mixed
  14765. * @static
  14766. */
  14767. public static function whenHas($key, $callback, $default = null)
  14768. {
  14769. /** @var \Illuminate\Http\Request $instance */
  14770. return $instance->whenHas($key, $callback, $default);
  14771. }
  14772. /**
  14773. * Determine if the instance contains a non-empty value for the given key.
  14774. *
  14775. * @param string|array $key
  14776. * @return bool
  14777. * @static
  14778. */
  14779. public static function filled($key)
  14780. {
  14781. /** @var \Illuminate\Http\Request $instance */
  14782. return $instance->filled($key);
  14783. }
  14784. /**
  14785. * Determine if the instance contains an empty value for the given key.
  14786. *
  14787. * @param string|array $key
  14788. * @return bool
  14789. * @static
  14790. */
  14791. public static function isNotFilled($key)
  14792. {
  14793. /** @var \Illuminate\Http\Request $instance */
  14794. return $instance->isNotFilled($key);
  14795. }
  14796. /**
  14797. * Determine if the instance contains a non-empty value for any of the given keys.
  14798. *
  14799. * @param string|array $keys
  14800. * @return bool
  14801. * @static
  14802. */
  14803. public static function anyFilled($keys)
  14804. {
  14805. /** @var \Illuminate\Http\Request $instance */
  14806. return $instance->anyFilled($keys);
  14807. }
  14808. /**
  14809. * Apply the callback if the instance contains a non-empty value for the given key.
  14810. *
  14811. * @param string $key
  14812. * @param callable $callback
  14813. * @param callable|null $default
  14814. * @return $this|mixed
  14815. * @static
  14816. */
  14817. public static function whenFilled($key, $callback, $default = null)
  14818. {
  14819. /** @var \Illuminate\Http\Request $instance */
  14820. return $instance->whenFilled($key, $callback, $default);
  14821. }
  14822. /**
  14823. * Determine if the instance is missing a given key.
  14824. *
  14825. * @param string|array $key
  14826. * @return bool
  14827. * @static
  14828. */
  14829. public static function missing($key)
  14830. {
  14831. /** @var \Illuminate\Http\Request $instance */
  14832. return $instance->missing($key);
  14833. }
  14834. /**
  14835. * Apply the callback if the instance is missing the given key.
  14836. *
  14837. * @param string $key
  14838. * @param callable $callback
  14839. * @param callable|null $default
  14840. * @return $this|mixed
  14841. * @static
  14842. */
  14843. public static function whenMissing($key, $callback, $default = null)
  14844. {
  14845. /** @var \Illuminate\Http\Request $instance */
  14846. return $instance->whenMissing($key, $callback, $default);
  14847. }
  14848. /**
  14849. * Retrieve data from the instance as a Stringable instance.
  14850. *
  14851. * @param string $key
  14852. * @param mixed $default
  14853. * @return \Illuminate\Support\Stringable
  14854. * @static
  14855. */
  14856. public static function str($key, $default = null)
  14857. {
  14858. /** @var \Illuminate\Http\Request $instance */
  14859. return $instance->str($key, $default);
  14860. }
  14861. /**
  14862. * Retrieve data from the instance as a Stringable instance.
  14863. *
  14864. * @param string $key
  14865. * @param mixed $default
  14866. * @return \Illuminate\Support\Stringable
  14867. * @static
  14868. */
  14869. public static function string($key, $default = null)
  14870. {
  14871. /** @var \Illuminate\Http\Request $instance */
  14872. return $instance->string($key, $default);
  14873. }
  14874. /**
  14875. * Retrieve data as a boolean value.
  14876. *
  14877. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  14878. *
  14879. * @param string|null $key
  14880. * @param bool $default
  14881. * @return bool
  14882. * @static
  14883. */
  14884. public static function boolean($key = null, $default = false)
  14885. {
  14886. /** @var \Illuminate\Http\Request $instance */
  14887. return $instance->boolean($key, $default);
  14888. }
  14889. /**
  14890. * Retrieve data as an integer value.
  14891. *
  14892. * @param string $key
  14893. * @param int $default
  14894. * @return int
  14895. * @static
  14896. */
  14897. public static function integer($key, $default = 0)
  14898. {
  14899. /** @var \Illuminate\Http\Request $instance */
  14900. return $instance->integer($key, $default);
  14901. }
  14902. /**
  14903. * Retrieve data as a float value.
  14904. *
  14905. * @param string $key
  14906. * @param float $default
  14907. * @return float
  14908. * @static
  14909. */
  14910. public static function float($key, $default = 0.0)
  14911. {
  14912. /** @var \Illuminate\Http\Request $instance */
  14913. return $instance->float($key, $default);
  14914. }
  14915. /**
  14916. * Retrieve data from the instance as a Carbon instance.
  14917. *
  14918. * @param string $key
  14919. * @param string|null $format
  14920. * @param string|null $tz
  14921. * @return \Illuminate\Support\Carbon|null
  14922. * @throws \Carbon\Exceptions\InvalidFormatException
  14923. * @static
  14924. */
  14925. public static function date($key, $format = null, $tz = null)
  14926. {
  14927. /** @var \Illuminate\Http\Request $instance */
  14928. return $instance->date($key, $format, $tz);
  14929. }
  14930. /**
  14931. * Retrieve data from the instance as an enum.
  14932. *
  14933. * @template TEnum of \BackedEnum
  14934. * @param string $key
  14935. * @param class-string<TEnum> $enumClass
  14936. * @param TEnum|null $default
  14937. * @return TEnum|null
  14938. * @static
  14939. */
  14940. public static function enum($key, $enumClass, $default = null)
  14941. {
  14942. /** @var \Illuminate\Http\Request $instance */
  14943. return $instance->enum($key, $enumClass, $default);
  14944. }
  14945. /**
  14946. * Retrieve data from the instance as an array of enums.
  14947. *
  14948. * @template TEnum of \BackedEnum
  14949. * @param string $key
  14950. * @param class-string<TEnum> $enumClass
  14951. * @return TEnum[]
  14952. * @static
  14953. */
  14954. public static function enums($key, $enumClass)
  14955. {
  14956. /** @var \Illuminate\Http\Request $instance */
  14957. return $instance->enums($key, $enumClass);
  14958. }
  14959. /**
  14960. * Retrieve data from the instance as an array.
  14961. *
  14962. * @param array|string|null $key
  14963. * @return array
  14964. * @static
  14965. */
  14966. public static function array($key = null)
  14967. {
  14968. /** @var \Illuminate\Http\Request $instance */
  14969. return $instance->array($key);
  14970. }
  14971. /**
  14972. * Retrieve data from the instance as a collection.
  14973. *
  14974. * @param array|string|null $key
  14975. * @return \Illuminate\Support\Collection
  14976. * @static
  14977. */
  14978. public static function collect($key = null)
  14979. {
  14980. /** @var \Illuminate\Http\Request $instance */
  14981. return $instance->collect($key);
  14982. }
  14983. /**
  14984. * Get a subset containing the provided keys with values from the instance data.
  14985. *
  14986. * @param array|mixed $keys
  14987. * @return array
  14988. * @static
  14989. */
  14990. public static function only($keys)
  14991. {
  14992. /** @var \Illuminate\Http\Request $instance */
  14993. return $instance->only($keys);
  14994. }
  14995. /**
  14996. * Get all of the data except for a specified array of items.
  14997. *
  14998. * @param array|mixed $keys
  14999. * @return array
  15000. * @static
  15001. */
  15002. public static function except($keys)
  15003. {
  15004. /** @var \Illuminate\Http\Request $instance */
  15005. return $instance->except($keys);
  15006. }
  15007. /**
  15008. * Apply the callback if the given "value" is (or resolves to) truthy.
  15009. *
  15010. * @template TWhenParameter
  15011. * @template TWhenReturnType
  15012. * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
  15013. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  15014. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  15015. * @return $this|TWhenReturnType
  15016. * @static
  15017. */
  15018. public static function when($value = null, $callback = null, $default = null)
  15019. {
  15020. /** @var \Illuminate\Http\Request $instance */
  15021. return $instance->when($value, $callback, $default);
  15022. }
  15023. /**
  15024. * Apply the callback if the given "value" is (or resolves to) falsy.
  15025. *
  15026. * @template TUnlessParameter
  15027. * @template TUnlessReturnType
  15028. * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  15029. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  15030. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  15031. * @return $this|TUnlessReturnType
  15032. * @static
  15033. */
  15034. public static function unless($value = null, $callback = null, $default = null)
  15035. {
  15036. /** @var \Illuminate\Http\Request $instance */
  15037. return $instance->unless($value, $callback, $default);
  15038. }
  15039. /**
  15040. * Register a custom macro.
  15041. *
  15042. * @param string $name
  15043. * @param object|callable $macro
  15044. * @param-closure-this static $macro
  15045. * @return void
  15046. * @static
  15047. */
  15048. public static function macro($name, $macro)
  15049. {
  15050. \Illuminate\Http\Request::macro($name, $macro);
  15051. }
  15052. /**
  15053. * Mix another object into the class.
  15054. *
  15055. * @param object $mixin
  15056. * @param bool $replace
  15057. * @return void
  15058. * @throws \ReflectionException
  15059. * @static
  15060. */
  15061. public static function mixin($mixin, $replace = true)
  15062. {
  15063. \Illuminate\Http\Request::mixin($mixin, $replace);
  15064. }
  15065. /**
  15066. * Checks if macro is registered.
  15067. *
  15068. * @param string $name
  15069. * @return bool
  15070. * @static
  15071. */
  15072. public static function hasMacro($name)
  15073. {
  15074. return \Illuminate\Http\Request::hasMacro($name);
  15075. }
  15076. /**
  15077. * Flush the existing macros.
  15078. *
  15079. * @return void
  15080. * @static
  15081. */
  15082. public static function flushMacros()
  15083. {
  15084. \Illuminate\Http\Request::flushMacros();
  15085. }
  15086. /**
  15087. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  15088. * @param array $rules
  15089. * @param mixed $params
  15090. * @static
  15091. */
  15092. public static function validate($rules, ...$params)
  15093. {
  15094. return \Illuminate\Http\Request::validate($rules, ...$params);
  15095. }
  15096. /**
  15097. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  15098. * @param string $errorBag
  15099. * @param array $rules
  15100. * @param mixed $params
  15101. * @static
  15102. */
  15103. public static function validateWithBag($errorBag, $rules, ...$params)
  15104. {
  15105. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  15106. }
  15107. /**
  15108. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  15109. * @param mixed $absolute
  15110. * @static
  15111. */
  15112. public static function hasValidSignature($absolute = true)
  15113. {
  15114. return \Illuminate\Http\Request::hasValidSignature($absolute);
  15115. }
  15116. /**
  15117. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  15118. * @static
  15119. */
  15120. public static function hasValidRelativeSignature()
  15121. {
  15122. return \Illuminate\Http\Request::hasValidRelativeSignature();
  15123. }
  15124. /**
  15125. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  15126. * @param mixed $ignoreQuery
  15127. * @param mixed $absolute
  15128. * @static
  15129. */
  15130. public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  15131. {
  15132. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  15133. }
  15134. /**
  15135. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  15136. * @param mixed $ignoreQuery
  15137. * @static
  15138. */
  15139. public static function hasValidRelativeSignatureWhileIgnoring($ignoreQuery = [])
  15140. {
  15141. return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
  15142. }
  15143. }
  15144. /**
  15145. * @see \Illuminate\Routing\ResponseFactory
  15146. */
  15147. class Response {
  15148. /**
  15149. * Create a new response instance.
  15150. *
  15151. * @param mixed $content
  15152. * @param int $status
  15153. * @param array $headers
  15154. * @return \Illuminate\Http\Response
  15155. * @static
  15156. */
  15157. public static function make($content = '', $status = 200, $headers = [])
  15158. {
  15159. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15160. return $instance->make($content, $status, $headers);
  15161. }
  15162. /**
  15163. * Create a new "no content" response.
  15164. *
  15165. * @param int $status
  15166. * @param array $headers
  15167. * @return \Illuminate\Http\Response
  15168. * @static
  15169. */
  15170. public static function noContent($status = 204, $headers = [])
  15171. {
  15172. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15173. return $instance->noContent($status, $headers);
  15174. }
  15175. /**
  15176. * Create a new response for a given view.
  15177. *
  15178. * @param string|array $view
  15179. * @param array $data
  15180. * @param int $status
  15181. * @param array $headers
  15182. * @return \Illuminate\Http\Response
  15183. * @static
  15184. */
  15185. public static function view($view, $data = [], $status = 200, $headers = [])
  15186. {
  15187. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15188. return $instance->view($view, $data, $status, $headers);
  15189. }
  15190. /**
  15191. * Create a new JSON response instance.
  15192. *
  15193. * @param mixed $data
  15194. * @param int $status
  15195. * @param array $headers
  15196. * @param int $options
  15197. * @return \Illuminate\Http\JsonResponse
  15198. * @static
  15199. */
  15200. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  15201. {
  15202. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15203. return $instance->json($data, $status, $headers, $options);
  15204. }
  15205. /**
  15206. * Create a new JSONP response instance.
  15207. *
  15208. * @param string $callback
  15209. * @param mixed $data
  15210. * @param int $status
  15211. * @param array $headers
  15212. * @param int $options
  15213. * @return \Illuminate\Http\JsonResponse
  15214. * @static
  15215. */
  15216. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  15217. {
  15218. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15219. return $instance->jsonp($callback, $data, $status, $headers, $options);
  15220. }
  15221. /**
  15222. * Create a new event stream response.
  15223. *
  15224. * @param \Closure $callback
  15225. * @param array $headers
  15226. * @param \Illuminate\Http\StreamedEvent|string|null $endStreamWith
  15227. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15228. * @static
  15229. */
  15230. public static function eventStream($callback, $headers = [], $endStreamWith = '</stream>')
  15231. {
  15232. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15233. return $instance->eventStream($callback, $headers, $endStreamWith);
  15234. }
  15235. /**
  15236. * Create a new streamed response instance.
  15237. *
  15238. * @param callable|null $callback
  15239. * @param int $status
  15240. * @param array $headers
  15241. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15242. * @static
  15243. */
  15244. public static function stream($callback, $status = 200, $headers = [])
  15245. {
  15246. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15247. return $instance->stream($callback, $status, $headers);
  15248. }
  15249. /**
  15250. * Create a new streamed JSON response instance.
  15251. *
  15252. * @param array $data
  15253. * @param int $status
  15254. * @param array $headers
  15255. * @param int $encodingOptions
  15256. * @return \Symfony\Component\HttpFoundation\StreamedJsonResponse
  15257. * @static
  15258. */
  15259. public static function streamJson($data, $status = 200, $headers = [], $encodingOptions = 15)
  15260. {
  15261. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15262. return $instance->streamJson($data, $status, $headers, $encodingOptions);
  15263. }
  15264. /**
  15265. * Create a new streamed response instance as a file download.
  15266. *
  15267. * @param callable $callback
  15268. * @param string|null $name
  15269. * @param array $headers
  15270. * @param string|null $disposition
  15271. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15272. * @throws \Illuminate\Routing\Exceptions\StreamedResponseException
  15273. * @static
  15274. */
  15275. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  15276. {
  15277. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15278. return $instance->streamDownload($callback, $name, $headers, $disposition);
  15279. }
  15280. /**
  15281. * Create a new file download response.
  15282. *
  15283. * @param \SplFileInfo|string $file
  15284. * @param string|null $name
  15285. * @param array $headers
  15286. * @param string|null $disposition
  15287. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  15288. * @static
  15289. */
  15290. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  15291. {
  15292. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15293. return $instance->download($file, $name, $headers, $disposition);
  15294. }
  15295. /**
  15296. * Return the raw contents of a binary file.
  15297. *
  15298. * @param \SplFileInfo|string $file
  15299. * @param array $headers
  15300. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  15301. * @static
  15302. */
  15303. public static function file($file, $headers = [])
  15304. {
  15305. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15306. return $instance->file($file, $headers);
  15307. }
  15308. /**
  15309. * Create a new redirect response to the given path.
  15310. *
  15311. * @param string $path
  15312. * @param int $status
  15313. * @param array $headers
  15314. * @param bool|null $secure
  15315. * @return \Illuminate\Http\RedirectResponse
  15316. * @static
  15317. */
  15318. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  15319. {
  15320. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15321. return $instance->redirectTo($path, $status, $headers, $secure);
  15322. }
  15323. /**
  15324. * Create a new redirect response to a named route.
  15325. *
  15326. * @param \BackedEnum|string $route
  15327. * @param mixed $parameters
  15328. * @param int $status
  15329. * @param array $headers
  15330. * @return \Illuminate\Http\RedirectResponse
  15331. * @static
  15332. */
  15333. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  15334. {
  15335. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15336. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  15337. }
  15338. /**
  15339. * Create a new redirect response to a controller action.
  15340. *
  15341. * @param array|string $action
  15342. * @param mixed $parameters
  15343. * @param int $status
  15344. * @param array $headers
  15345. * @return \Illuminate\Http\RedirectResponse
  15346. * @static
  15347. */
  15348. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  15349. {
  15350. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15351. return $instance->redirectToAction($action, $parameters, $status, $headers);
  15352. }
  15353. /**
  15354. * Create a new redirect response, while putting the current URL in the session.
  15355. *
  15356. * @param string $path
  15357. * @param int $status
  15358. * @param array $headers
  15359. * @param bool|null $secure
  15360. * @return \Illuminate\Http\RedirectResponse
  15361. * @static
  15362. */
  15363. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  15364. {
  15365. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15366. return $instance->redirectGuest($path, $status, $headers, $secure);
  15367. }
  15368. /**
  15369. * Create a new redirect response to the previously intended location.
  15370. *
  15371. * @param string $default
  15372. * @param int $status
  15373. * @param array $headers
  15374. * @param bool|null $secure
  15375. * @return \Illuminate\Http\RedirectResponse
  15376. * @static
  15377. */
  15378. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  15379. {
  15380. /** @var \Illuminate\Routing\ResponseFactory $instance */
  15381. return $instance->redirectToIntended($default, $status, $headers, $secure);
  15382. }
  15383. /**
  15384. * Register a custom macro.
  15385. *
  15386. * @param string $name
  15387. * @param object|callable $macro
  15388. * @param-closure-this static $macro
  15389. * @return void
  15390. * @static
  15391. */
  15392. public static function macro($name, $macro)
  15393. {
  15394. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  15395. }
  15396. /**
  15397. * Mix another object into the class.
  15398. *
  15399. * @param object $mixin
  15400. * @param bool $replace
  15401. * @return void
  15402. * @throws \ReflectionException
  15403. * @static
  15404. */
  15405. public static function mixin($mixin, $replace = true)
  15406. {
  15407. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  15408. }
  15409. /**
  15410. * Checks if macro is registered.
  15411. *
  15412. * @param string $name
  15413. * @return bool
  15414. * @static
  15415. */
  15416. public static function hasMacro($name)
  15417. {
  15418. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  15419. }
  15420. /**
  15421. * Flush the existing macros.
  15422. *
  15423. * @return void
  15424. * @static
  15425. */
  15426. public static function flushMacros()
  15427. {
  15428. \Illuminate\Routing\ResponseFactory::flushMacros();
  15429. }
  15430. }
  15431. /**
  15432. * @method static \Illuminate\Routing\RouteRegistrar attribute(string $key, mixed $value)
  15433. * @method static \Illuminate\Routing\RouteRegistrar whereAlpha(array|string $parameters)
  15434. * @method static \Illuminate\Routing\RouteRegistrar whereAlphaNumeric(array|string $parameters)
  15435. * @method static \Illuminate\Routing\RouteRegistrar whereNumber(array|string $parameters)
  15436. * @method static \Illuminate\Routing\RouteRegistrar whereUlid(array|string $parameters)
  15437. * @method static \Illuminate\Routing\RouteRegistrar whereUuid(array|string $parameters)
  15438. * @method static \Illuminate\Routing\RouteRegistrar whereIn(array|string $parameters, array $values)
  15439. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  15440. * @method static \Illuminate\Routing\RouteRegistrar can(\UnitEnum|string $ability, array|string $models = [])
  15441. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  15442. * @method static \Illuminate\Routing\RouteRegistrar domain(\BackedEnum|string $value)
  15443. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  15444. * @method static \Illuminate\Routing\RouteRegistrar missing(\Closure $missing)
  15445. * @method static \Illuminate\Routing\RouteRegistrar name(\BackedEnum|string $value)
  15446. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  15447. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  15448. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  15449. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  15450. * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
  15451. * @method static \Illuminate\Routing\RouteRegistrar withoutScopedBindings()
  15452. * @see \Illuminate\Routing\Router
  15453. */
  15454. class Route {
  15455. /**
  15456. * Register a new GET route with the router.
  15457. *
  15458. * @param string $uri
  15459. * @param array|string|callable|null $action
  15460. * @return \Illuminate\Routing\Route
  15461. * @static
  15462. */
  15463. public static function get($uri, $action = null)
  15464. {
  15465. /** @var \Illuminate\Routing\Router $instance */
  15466. return $instance->get($uri, $action);
  15467. }
  15468. /**
  15469. * Register a new POST route with the router.
  15470. *
  15471. * @param string $uri
  15472. * @param array|string|callable|null $action
  15473. * @return \Illuminate\Routing\Route
  15474. * @static
  15475. */
  15476. public static function post($uri, $action = null)
  15477. {
  15478. /** @var \Illuminate\Routing\Router $instance */
  15479. return $instance->post($uri, $action);
  15480. }
  15481. /**
  15482. * Register a new PUT route with the router.
  15483. *
  15484. * @param string $uri
  15485. * @param array|string|callable|null $action
  15486. * @return \Illuminate\Routing\Route
  15487. * @static
  15488. */
  15489. public static function put($uri, $action = null)
  15490. {
  15491. /** @var \Illuminate\Routing\Router $instance */
  15492. return $instance->put($uri, $action);
  15493. }
  15494. /**
  15495. * Register a new PATCH route with the router.
  15496. *
  15497. * @param string $uri
  15498. * @param array|string|callable|null $action
  15499. * @return \Illuminate\Routing\Route
  15500. * @static
  15501. */
  15502. public static function patch($uri, $action = null)
  15503. {
  15504. /** @var \Illuminate\Routing\Router $instance */
  15505. return $instance->patch($uri, $action);
  15506. }
  15507. /**
  15508. * Register a new DELETE route with the router.
  15509. *
  15510. * @param string $uri
  15511. * @param array|string|callable|null $action
  15512. * @return \Illuminate\Routing\Route
  15513. * @static
  15514. */
  15515. public static function delete($uri, $action = null)
  15516. {
  15517. /** @var \Illuminate\Routing\Router $instance */
  15518. return $instance->delete($uri, $action);
  15519. }
  15520. /**
  15521. * Register a new OPTIONS route with the router.
  15522. *
  15523. * @param string $uri
  15524. * @param array|string|callable|null $action
  15525. * @return \Illuminate\Routing\Route
  15526. * @static
  15527. */
  15528. public static function options($uri, $action = null)
  15529. {
  15530. /** @var \Illuminate\Routing\Router $instance */
  15531. return $instance->options($uri, $action);
  15532. }
  15533. /**
  15534. * Register a new route responding to all verbs.
  15535. *
  15536. * @param string $uri
  15537. * @param array|string|callable|null $action
  15538. * @return \Illuminate\Routing\Route
  15539. * @static
  15540. */
  15541. public static function any($uri, $action = null)
  15542. {
  15543. /** @var \Illuminate\Routing\Router $instance */
  15544. return $instance->any($uri, $action);
  15545. }
  15546. /**
  15547. * Register a new fallback route with the router.
  15548. *
  15549. * @param array|string|callable|null $action
  15550. * @return \Illuminate\Routing\Route
  15551. * @static
  15552. */
  15553. public static function fallback($action)
  15554. {
  15555. /** @var \Illuminate\Routing\Router $instance */
  15556. return $instance->fallback($action);
  15557. }
  15558. /**
  15559. * Create a redirect from one URI to another.
  15560. *
  15561. * @param string $uri
  15562. * @param string $destination
  15563. * @param int $status
  15564. * @return \Illuminate\Routing\Route
  15565. * @static
  15566. */
  15567. public static function redirect($uri, $destination, $status = 302)
  15568. {
  15569. /** @var \Illuminate\Routing\Router $instance */
  15570. return $instance->redirect($uri, $destination, $status);
  15571. }
  15572. /**
  15573. * Create a permanent redirect from one URI to another.
  15574. *
  15575. * @param string $uri
  15576. * @param string $destination
  15577. * @return \Illuminate\Routing\Route
  15578. * @static
  15579. */
  15580. public static function permanentRedirect($uri, $destination)
  15581. {
  15582. /** @var \Illuminate\Routing\Router $instance */
  15583. return $instance->permanentRedirect($uri, $destination);
  15584. }
  15585. /**
  15586. * Register a new route that returns a view.
  15587. *
  15588. * @param string $uri
  15589. * @param string $view
  15590. * @param array $data
  15591. * @param int|array $status
  15592. * @param array $headers
  15593. * @return \Illuminate\Routing\Route
  15594. * @static
  15595. */
  15596. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  15597. {
  15598. /** @var \Illuminate\Routing\Router $instance */
  15599. return $instance->view($uri, $view, $data, $status, $headers);
  15600. }
  15601. /**
  15602. * Register a new route with the given verbs.
  15603. *
  15604. * @param array|string $methods
  15605. * @param string $uri
  15606. * @param array|string|callable|null $action
  15607. * @return \Illuminate\Routing\Route
  15608. * @static
  15609. */
  15610. public static function match($methods, $uri, $action = null)
  15611. {
  15612. /** @var \Illuminate\Routing\Router $instance */
  15613. return $instance->match($methods, $uri, $action);
  15614. }
  15615. /**
  15616. * Register an array of resource controllers.
  15617. *
  15618. * @param array $resources
  15619. * @param array $options
  15620. * @return void
  15621. * @static
  15622. */
  15623. public static function resources($resources, $options = [])
  15624. {
  15625. /** @var \Illuminate\Routing\Router $instance */
  15626. $instance->resources($resources, $options);
  15627. }
  15628. /**
  15629. * Route a resource to a controller.
  15630. *
  15631. * @param string $name
  15632. * @param string $controller
  15633. * @param array $options
  15634. * @return \Illuminate\Routing\PendingResourceRegistration
  15635. * @static
  15636. */
  15637. public static function resource($name, $controller, $options = [])
  15638. {
  15639. /** @var \Illuminate\Routing\Router $instance */
  15640. return $instance->resource($name, $controller, $options);
  15641. }
  15642. /**
  15643. * Register an array of API resource controllers.
  15644. *
  15645. * @param array $resources
  15646. * @param array $options
  15647. * @return void
  15648. * @static
  15649. */
  15650. public static function apiResources($resources, $options = [])
  15651. {
  15652. /** @var \Illuminate\Routing\Router $instance */
  15653. $instance->apiResources($resources, $options);
  15654. }
  15655. /**
  15656. * Route an API resource to a controller.
  15657. *
  15658. * @param string $name
  15659. * @param string $controller
  15660. * @param array $options
  15661. * @return \Illuminate\Routing\PendingResourceRegistration
  15662. * @static
  15663. */
  15664. public static function apiResource($name, $controller, $options = [])
  15665. {
  15666. /** @var \Illuminate\Routing\Router $instance */
  15667. return $instance->apiResource($name, $controller, $options);
  15668. }
  15669. /**
  15670. * Register an array of singleton resource controllers.
  15671. *
  15672. * @param array $singletons
  15673. * @param array $options
  15674. * @return void
  15675. * @static
  15676. */
  15677. public static function singletons($singletons, $options = [])
  15678. {
  15679. /** @var \Illuminate\Routing\Router $instance */
  15680. $instance->singletons($singletons, $options);
  15681. }
  15682. /**
  15683. * Route a singleton resource to a controller.
  15684. *
  15685. * @param string $name
  15686. * @param string $controller
  15687. * @param array $options
  15688. * @return \Illuminate\Routing\PendingSingletonResourceRegistration
  15689. * @static
  15690. */
  15691. public static function singleton($name, $controller, $options = [])
  15692. {
  15693. /** @var \Illuminate\Routing\Router $instance */
  15694. return $instance->singleton($name, $controller, $options);
  15695. }
  15696. /**
  15697. * Register an array of API singleton resource controllers.
  15698. *
  15699. * @param array $singletons
  15700. * @param array $options
  15701. * @return void
  15702. * @static
  15703. */
  15704. public static function apiSingletons($singletons, $options = [])
  15705. {
  15706. /** @var \Illuminate\Routing\Router $instance */
  15707. $instance->apiSingletons($singletons, $options);
  15708. }
  15709. /**
  15710. * Route an API singleton resource to a controller.
  15711. *
  15712. * @param string $name
  15713. * @param string $controller
  15714. * @param array $options
  15715. * @return \Illuminate\Routing\PendingSingletonResourceRegistration
  15716. * @static
  15717. */
  15718. public static function apiSingleton($name, $controller, $options = [])
  15719. {
  15720. /** @var \Illuminate\Routing\Router $instance */
  15721. return $instance->apiSingleton($name, $controller, $options);
  15722. }
  15723. /**
  15724. * Create a route group with shared attributes.
  15725. *
  15726. * @param array $attributes
  15727. * @param \Closure|array|string $routes
  15728. * @return \Illuminate\Routing\Router
  15729. * @static
  15730. */
  15731. public static function group($attributes, $routes)
  15732. {
  15733. /** @var \Illuminate\Routing\Router $instance */
  15734. return $instance->group($attributes, $routes);
  15735. }
  15736. /**
  15737. * Merge the given array with the last group stack.
  15738. *
  15739. * @param array $new
  15740. * @param bool $prependExistingPrefix
  15741. * @return array
  15742. * @static
  15743. */
  15744. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  15745. {
  15746. /** @var \Illuminate\Routing\Router $instance */
  15747. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  15748. }
  15749. /**
  15750. * Get the prefix from the last group on the stack.
  15751. *
  15752. * @return string
  15753. * @static
  15754. */
  15755. public static function getLastGroupPrefix()
  15756. {
  15757. /** @var \Illuminate\Routing\Router $instance */
  15758. return $instance->getLastGroupPrefix();
  15759. }
  15760. /**
  15761. * Add a route to the underlying route collection.
  15762. *
  15763. * @param array|string $methods
  15764. * @param string $uri
  15765. * @param array|string|callable|null $action
  15766. * @return \Illuminate\Routing\Route
  15767. * @static
  15768. */
  15769. public static function addRoute($methods, $uri, $action)
  15770. {
  15771. /** @var \Illuminate\Routing\Router $instance */
  15772. return $instance->addRoute($methods, $uri, $action);
  15773. }
  15774. /**
  15775. * Create a new Route object.
  15776. *
  15777. * @param array|string $methods
  15778. * @param string $uri
  15779. * @param mixed $action
  15780. * @return \Illuminate\Routing\Route
  15781. * @static
  15782. */
  15783. public static function newRoute($methods, $uri, $action)
  15784. {
  15785. /** @var \Illuminate\Routing\Router $instance */
  15786. return $instance->newRoute($methods, $uri, $action);
  15787. }
  15788. /**
  15789. * Return the response returned by the given route.
  15790. *
  15791. * @param string $name
  15792. * @return \Symfony\Component\HttpFoundation\Response
  15793. * @static
  15794. */
  15795. public static function respondWithRoute($name)
  15796. {
  15797. /** @var \Illuminate\Routing\Router $instance */
  15798. return $instance->respondWithRoute($name);
  15799. }
  15800. /**
  15801. * Dispatch the request to the application.
  15802. *
  15803. * @param \Illuminate\Http\Request $request
  15804. * @return \Symfony\Component\HttpFoundation\Response
  15805. * @static
  15806. */
  15807. public static function dispatch($request)
  15808. {
  15809. /** @var \Illuminate\Routing\Router $instance */
  15810. return $instance->dispatch($request);
  15811. }
  15812. /**
  15813. * Dispatch the request to a route and return the response.
  15814. *
  15815. * @param \Illuminate\Http\Request $request
  15816. * @return \Symfony\Component\HttpFoundation\Response
  15817. * @static
  15818. */
  15819. public static function dispatchToRoute($request)
  15820. {
  15821. /** @var \Illuminate\Routing\Router $instance */
  15822. return $instance->dispatchToRoute($request);
  15823. }
  15824. /**
  15825. * Gather the middleware for the given route with resolved class names.
  15826. *
  15827. * @param \Illuminate\Routing\Route $route
  15828. * @return array
  15829. * @static
  15830. */
  15831. public static function gatherRouteMiddleware($route)
  15832. {
  15833. /** @var \Illuminate\Routing\Router $instance */
  15834. return $instance->gatherRouteMiddleware($route);
  15835. }
  15836. /**
  15837. * Resolve a flat array of middleware classes from the provided array.
  15838. *
  15839. * @param array $middleware
  15840. * @param array $excluded
  15841. * @return array
  15842. * @static
  15843. */
  15844. public static function resolveMiddleware($middleware, $excluded = [])
  15845. {
  15846. /** @var \Illuminate\Routing\Router $instance */
  15847. return $instance->resolveMiddleware($middleware, $excluded);
  15848. }
  15849. /**
  15850. * Create a response instance from the given value.
  15851. *
  15852. * @param \Symfony\Component\HttpFoundation\Request $request
  15853. * @param mixed $response
  15854. * @return \Symfony\Component\HttpFoundation\Response
  15855. * @static
  15856. */
  15857. public static function prepareResponse($request, $response)
  15858. {
  15859. /** @var \Illuminate\Routing\Router $instance */
  15860. return $instance->prepareResponse($request, $response);
  15861. }
  15862. /**
  15863. * Static version of prepareResponse.
  15864. *
  15865. * @param \Symfony\Component\HttpFoundation\Request $request
  15866. * @param mixed $response
  15867. * @return \Symfony\Component\HttpFoundation\Response
  15868. * @static
  15869. */
  15870. public static function toResponse($request, $response)
  15871. {
  15872. return \Illuminate\Routing\Router::toResponse($request, $response);
  15873. }
  15874. /**
  15875. * Substitute the route bindings onto the route.
  15876. *
  15877. * @param \Illuminate\Routing\Route $route
  15878. * @return \Illuminate\Routing\Route
  15879. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  15880. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  15881. * @static
  15882. */
  15883. public static function substituteBindings($route)
  15884. {
  15885. /** @var \Illuminate\Routing\Router $instance */
  15886. return $instance->substituteBindings($route);
  15887. }
  15888. /**
  15889. * Substitute the implicit route bindings for the given route.
  15890. *
  15891. * @param \Illuminate\Routing\Route $route
  15892. * @return void
  15893. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  15894. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  15895. * @static
  15896. */
  15897. public static function substituteImplicitBindings($route)
  15898. {
  15899. /** @var \Illuminate\Routing\Router $instance */
  15900. $instance->substituteImplicitBindings($route);
  15901. }
  15902. /**
  15903. * Register a callback to run after implicit bindings are substituted.
  15904. *
  15905. * @param callable $callback
  15906. * @return \Illuminate\Routing\Router
  15907. * @static
  15908. */
  15909. public static function substituteImplicitBindingsUsing($callback)
  15910. {
  15911. /** @var \Illuminate\Routing\Router $instance */
  15912. return $instance->substituteImplicitBindingsUsing($callback);
  15913. }
  15914. /**
  15915. * Register a route matched event listener.
  15916. *
  15917. * @param string|callable $callback
  15918. * @return void
  15919. * @static
  15920. */
  15921. public static function matched($callback)
  15922. {
  15923. /** @var \Illuminate\Routing\Router $instance */
  15924. $instance->matched($callback);
  15925. }
  15926. /**
  15927. * Get all of the defined middleware short-hand names.
  15928. *
  15929. * @return array
  15930. * @static
  15931. */
  15932. public static function getMiddleware()
  15933. {
  15934. /** @var \Illuminate\Routing\Router $instance */
  15935. return $instance->getMiddleware();
  15936. }
  15937. /**
  15938. * Register a short-hand name for a middleware.
  15939. *
  15940. * @param string $name
  15941. * @param string $class
  15942. * @return \Illuminate\Routing\Router
  15943. * @static
  15944. */
  15945. public static function aliasMiddleware($name, $class)
  15946. {
  15947. /** @var \Illuminate\Routing\Router $instance */
  15948. return $instance->aliasMiddleware($name, $class);
  15949. }
  15950. /**
  15951. * Check if a middlewareGroup with the given name exists.
  15952. *
  15953. * @param string $name
  15954. * @return bool
  15955. * @static
  15956. */
  15957. public static function hasMiddlewareGroup($name)
  15958. {
  15959. /** @var \Illuminate\Routing\Router $instance */
  15960. return $instance->hasMiddlewareGroup($name);
  15961. }
  15962. /**
  15963. * Get all of the defined middleware groups.
  15964. *
  15965. * @return array
  15966. * @static
  15967. */
  15968. public static function getMiddlewareGroups()
  15969. {
  15970. /** @var \Illuminate\Routing\Router $instance */
  15971. return $instance->getMiddlewareGroups();
  15972. }
  15973. /**
  15974. * Register a group of middleware.
  15975. *
  15976. * @param string $name
  15977. * @param array $middleware
  15978. * @return \Illuminate\Routing\Router
  15979. * @static
  15980. */
  15981. public static function middlewareGroup($name, $middleware)
  15982. {
  15983. /** @var \Illuminate\Routing\Router $instance */
  15984. return $instance->middlewareGroup($name, $middleware);
  15985. }
  15986. /**
  15987. * Add a middleware to the beginning of a middleware group.
  15988. *
  15989. * If the middleware is already in the group, it will not be added again.
  15990. *
  15991. * @param string $group
  15992. * @param string $middleware
  15993. * @return \Illuminate\Routing\Router
  15994. * @static
  15995. */
  15996. public static function prependMiddlewareToGroup($group, $middleware)
  15997. {
  15998. /** @var \Illuminate\Routing\Router $instance */
  15999. return $instance->prependMiddlewareToGroup($group, $middleware);
  16000. }
  16001. /**
  16002. * Add a middleware to the end of a middleware group.
  16003. *
  16004. * If the middleware is already in the group, it will not be added again.
  16005. *
  16006. * @param string $group
  16007. * @param string $middleware
  16008. * @return \Illuminate\Routing\Router
  16009. * @static
  16010. */
  16011. public static function pushMiddlewareToGroup($group, $middleware)
  16012. {
  16013. /** @var \Illuminate\Routing\Router $instance */
  16014. return $instance->pushMiddlewareToGroup($group, $middleware);
  16015. }
  16016. /**
  16017. * Remove the given middleware from the specified group.
  16018. *
  16019. * @param string $group
  16020. * @param string $middleware
  16021. * @return \Illuminate\Routing\Router
  16022. * @static
  16023. */
  16024. public static function removeMiddlewareFromGroup($group, $middleware)
  16025. {
  16026. /** @var \Illuminate\Routing\Router $instance */
  16027. return $instance->removeMiddlewareFromGroup($group, $middleware);
  16028. }
  16029. /**
  16030. * Flush the router's middleware groups.
  16031. *
  16032. * @return \Illuminate\Routing\Router
  16033. * @static
  16034. */
  16035. public static function flushMiddlewareGroups()
  16036. {
  16037. /** @var \Illuminate\Routing\Router $instance */
  16038. return $instance->flushMiddlewareGroups();
  16039. }
  16040. /**
  16041. * Add a new route parameter binder.
  16042. *
  16043. * @param string $key
  16044. * @param string|callable $binder
  16045. * @return void
  16046. * @static
  16047. */
  16048. public static function bind($key, $binder)
  16049. {
  16050. /** @var \Illuminate\Routing\Router $instance */
  16051. $instance->bind($key, $binder);
  16052. }
  16053. /**
  16054. * Register a model binder for a wildcard.
  16055. *
  16056. * @param string $key
  16057. * @param string $class
  16058. * @param \Closure|null $callback
  16059. * @return void
  16060. * @static
  16061. */
  16062. public static function model($key, $class, $callback = null)
  16063. {
  16064. /** @var \Illuminate\Routing\Router $instance */
  16065. $instance->model($key, $class, $callback);
  16066. }
  16067. /**
  16068. * Get the binding callback for a given binding.
  16069. *
  16070. * @param string $key
  16071. * @return \Closure|null
  16072. * @static
  16073. */
  16074. public static function getBindingCallback($key)
  16075. {
  16076. /** @var \Illuminate\Routing\Router $instance */
  16077. return $instance->getBindingCallback($key);
  16078. }
  16079. /**
  16080. * Get the global "where" patterns.
  16081. *
  16082. * @return array
  16083. * @static
  16084. */
  16085. public static function getPatterns()
  16086. {
  16087. /** @var \Illuminate\Routing\Router $instance */
  16088. return $instance->getPatterns();
  16089. }
  16090. /**
  16091. * Set a global where pattern on all routes.
  16092. *
  16093. * @param string $key
  16094. * @param string $pattern
  16095. * @return void
  16096. * @static
  16097. */
  16098. public static function pattern($key, $pattern)
  16099. {
  16100. /** @var \Illuminate\Routing\Router $instance */
  16101. $instance->pattern($key, $pattern);
  16102. }
  16103. /**
  16104. * Set a group of global where patterns on all routes.
  16105. *
  16106. * @param array $patterns
  16107. * @return void
  16108. * @static
  16109. */
  16110. public static function patterns($patterns)
  16111. {
  16112. /** @var \Illuminate\Routing\Router $instance */
  16113. $instance->patterns($patterns);
  16114. }
  16115. /**
  16116. * Determine if the router currently has a group stack.
  16117. *
  16118. * @return bool
  16119. * @static
  16120. */
  16121. public static function hasGroupStack()
  16122. {
  16123. /** @var \Illuminate\Routing\Router $instance */
  16124. return $instance->hasGroupStack();
  16125. }
  16126. /**
  16127. * Get the current group stack for the router.
  16128. *
  16129. * @return array
  16130. * @static
  16131. */
  16132. public static function getGroupStack()
  16133. {
  16134. /** @var \Illuminate\Routing\Router $instance */
  16135. return $instance->getGroupStack();
  16136. }
  16137. /**
  16138. * Get a route parameter for the current route.
  16139. *
  16140. * @param string $key
  16141. * @param string|null $default
  16142. * @return mixed
  16143. * @static
  16144. */
  16145. public static function input($key, $default = null)
  16146. {
  16147. /** @var \Illuminate\Routing\Router $instance */
  16148. return $instance->input($key, $default);
  16149. }
  16150. /**
  16151. * Get the request currently being dispatched.
  16152. *
  16153. * @return \Illuminate\Http\Request
  16154. * @static
  16155. */
  16156. public static function getCurrentRequest()
  16157. {
  16158. /** @var \Illuminate\Routing\Router $instance */
  16159. return $instance->getCurrentRequest();
  16160. }
  16161. /**
  16162. * Get the currently dispatched route instance.
  16163. *
  16164. * @return \Illuminate\Routing\Route|null
  16165. * @static
  16166. */
  16167. public static function getCurrentRoute()
  16168. {
  16169. /** @var \Illuminate\Routing\Router $instance */
  16170. return $instance->getCurrentRoute();
  16171. }
  16172. /**
  16173. * Get the currently dispatched route instance.
  16174. *
  16175. * @return \Illuminate\Routing\Route|null
  16176. * @static
  16177. */
  16178. public static function current()
  16179. {
  16180. /** @var \Illuminate\Routing\Router $instance */
  16181. return $instance->current();
  16182. }
  16183. /**
  16184. * Check if a route with the given name exists.
  16185. *
  16186. * @param string|array $name
  16187. * @return bool
  16188. * @static
  16189. */
  16190. public static function has($name)
  16191. {
  16192. /** @var \Illuminate\Routing\Router $instance */
  16193. return $instance->has($name);
  16194. }
  16195. /**
  16196. * Get the current route name.
  16197. *
  16198. * @return string|null
  16199. * @static
  16200. */
  16201. public static function currentRouteName()
  16202. {
  16203. /** @var \Illuminate\Routing\Router $instance */
  16204. return $instance->currentRouteName();
  16205. }
  16206. /**
  16207. * Alias for the "currentRouteNamed" method.
  16208. *
  16209. * @param mixed $patterns
  16210. * @return bool
  16211. * @static
  16212. */
  16213. public static function is(...$patterns)
  16214. {
  16215. /** @var \Illuminate\Routing\Router $instance */
  16216. return $instance->is(...$patterns);
  16217. }
  16218. /**
  16219. * Determine if the current route matches a pattern.
  16220. *
  16221. * @param mixed $patterns
  16222. * @return bool
  16223. * @static
  16224. */
  16225. public static function currentRouteNamed(...$patterns)
  16226. {
  16227. /** @var \Illuminate\Routing\Router $instance */
  16228. return $instance->currentRouteNamed(...$patterns);
  16229. }
  16230. /**
  16231. * Get the current route action.
  16232. *
  16233. * @return string|null
  16234. * @static
  16235. */
  16236. public static function currentRouteAction()
  16237. {
  16238. /** @var \Illuminate\Routing\Router $instance */
  16239. return $instance->currentRouteAction();
  16240. }
  16241. /**
  16242. * Alias for the "currentRouteUses" method.
  16243. *
  16244. * @param array|string $patterns
  16245. * @return bool
  16246. * @static
  16247. */
  16248. public static function uses(...$patterns)
  16249. {
  16250. /** @var \Illuminate\Routing\Router $instance */
  16251. return $instance->uses(...$patterns);
  16252. }
  16253. /**
  16254. * Determine if the current route action matches a given action.
  16255. *
  16256. * @param string $action
  16257. * @return bool
  16258. * @static
  16259. */
  16260. public static function currentRouteUses($action)
  16261. {
  16262. /** @var \Illuminate\Routing\Router $instance */
  16263. return $instance->currentRouteUses($action);
  16264. }
  16265. /**
  16266. * Set the unmapped global resource parameters to singular.
  16267. *
  16268. * @param bool $singular
  16269. * @return void
  16270. * @static
  16271. */
  16272. public static function singularResourceParameters($singular = true)
  16273. {
  16274. /** @var \Illuminate\Routing\Router $instance */
  16275. $instance->singularResourceParameters($singular);
  16276. }
  16277. /**
  16278. * Set the global resource parameter mapping.
  16279. *
  16280. * @param array $parameters
  16281. * @return void
  16282. * @static
  16283. */
  16284. public static function resourceParameters($parameters = [])
  16285. {
  16286. /** @var \Illuminate\Routing\Router $instance */
  16287. $instance->resourceParameters($parameters);
  16288. }
  16289. /**
  16290. * Get or set the verbs used in the resource URIs.
  16291. *
  16292. * @param array $verbs
  16293. * @return array|null
  16294. * @static
  16295. */
  16296. public static function resourceVerbs($verbs = [])
  16297. {
  16298. /** @var \Illuminate\Routing\Router $instance */
  16299. return $instance->resourceVerbs($verbs);
  16300. }
  16301. /**
  16302. * Get the underlying route collection.
  16303. *
  16304. * @return \Illuminate\Routing\RouteCollectionInterface
  16305. * @static
  16306. */
  16307. public static function getRoutes()
  16308. {
  16309. /** @var \Illuminate\Routing\Router $instance */
  16310. return $instance->getRoutes();
  16311. }
  16312. /**
  16313. * Set the route collection instance.
  16314. *
  16315. * @param \Illuminate\Routing\RouteCollection $routes
  16316. * @return void
  16317. * @static
  16318. */
  16319. public static function setRoutes($routes)
  16320. {
  16321. /** @var \Illuminate\Routing\Router $instance */
  16322. $instance->setRoutes($routes);
  16323. }
  16324. /**
  16325. * Set the compiled route collection instance.
  16326. *
  16327. * @param array $routes
  16328. * @return void
  16329. * @static
  16330. */
  16331. public static function setCompiledRoutes($routes)
  16332. {
  16333. /** @var \Illuminate\Routing\Router $instance */
  16334. $instance->setCompiledRoutes($routes);
  16335. }
  16336. /**
  16337. * Remove any duplicate middleware from the given array.
  16338. *
  16339. * @param array $middleware
  16340. * @return array
  16341. * @static
  16342. */
  16343. public static function uniqueMiddleware($middleware)
  16344. {
  16345. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  16346. }
  16347. /**
  16348. * Set the container instance used by the router.
  16349. *
  16350. * @param \Illuminate\Container\Container $container
  16351. * @return \Illuminate\Routing\Router
  16352. * @static
  16353. */
  16354. public static function setContainer($container)
  16355. {
  16356. /** @var \Illuminate\Routing\Router $instance */
  16357. return $instance->setContainer($container);
  16358. }
  16359. /**
  16360. * Register a custom macro.
  16361. *
  16362. * @param string $name
  16363. * @param object|callable $macro
  16364. * @param-closure-this static $macro
  16365. * @return void
  16366. * @static
  16367. */
  16368. public static function macro($name, $macro)
  16369. {
  16370. \Illuminate\Routing\Router::macro($name, $macro);
  16371. }
  16372. /**
  16373. * Mix another object into the class.
  16374. *
  16375. * @param object $mixin
  16376. * @param bool $replace
  16377. * @return void
  16378. * @throws \ReflectionException
  16379. * @static
  16380. */
  16381. public static function mixin($mixin, $replace = true)
  16382. {
  16383. \Illuminate\Routing\Router::mixin($mixin, $replace);
  16384. }
  16385. /**
  16386. * Checks if macro is registered.
  16387. *
  16388. * @param string $name
  16389. * @return bool
  16390. * @static
  16391. */
  16392. public static function hasMacro($name)
  16393. {
  16394. return \Illuminate\Routing\Router::hasMacro($name);
  16395. }
  16396. /**
  16397. * Flush the existing macros.
  16398. *
  16399. * @return void
  16400. * @static
  16401. */
  16402. public static function flushMacros()
  16403. {
  16404. \Illuminate\Routing\Router::flushMacros();
  16405. }
  16406. /**
  16407. * Dynamically handle calls to the class.
  16408. *
  16409. * @param string $method
  16410. * @param array $parameters
  16411. * @return mixed
  16412. * @throws \BadMethodCallException
  16413. * @static
  16414. */
  16415. public static function macroCall($method, $parameters)
  16416. {
  16417. /** @var \Illuminate\Routing\Router $instance */
  16418. return $instance->macroCall($method, $parameters);
  16419. }
  16420. /**
  16421. * Call the given Closure with this instance then return the instance.
  16422. *
  16423. * @param (callable($this): mixed)|null $callback
  16424. * @return ($callback is null ? \Illuminate\Support\HigherOrderTapProxy : $this)
  16425. * @static
  16426. */
  16427. public static function tap($callback = null)
  16428. {
  16429. /** @var \Illuminate\Routing\Router $instance */
  16430. return $instance->tap($callback);
  16431. }
  16432. }
  16433. /**
  16434. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes withoutOverlapping(int $expiresAt = 1440)
  16435. * @method static void mergeAttributes(\Illuminate\Console\Scheduling\Event $event)
  16436. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes user(string $user)
  16437. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes environments(array|mixed $environments)
  16438. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes evenInMaintenanceMode()
  16439. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes onOneServer()
  16440. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes runInBackground()
  16441. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes when(\Closure|bool $callback)
  16442. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes skip(\Closure|bool $callback)
  16443. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes name(string $description)
  16444. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes description(string $description)
  16445. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes cron(string $expression)
  16446. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes between(string $startTime, string $endTime)
  16447. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes unlessBetween(string $startTime, string $endTime)
  16448. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everySecond()
  16449. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoSeconds()
  16450. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFiveSeconds()
  16451. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTenSeconds()
  16452. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFifteenSeconds()
  16453. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwentySeconds()
  16454. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThirtySeconds()
  16455. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyMinute()
  16456. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoMinutes()
  16457. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThreeMinutes()
  16458. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFourMinutes()
  16459. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFiveMinutes()
  16460. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTenMinutes()
  16461. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFifteenMinutes()
  16462. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThirtyMinutes()
  16463. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourly()
  16464. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourlyAt(array|string|int|int[] $offset)
  16465. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyOddHour(array|string|int $offset = 0)
  16466. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoHours(array|string|int $offset = 0)
  16467. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThreeHours(array|string|int $offset = 0)
  16468. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFourHours(array|string|int $offset = 0)
  16469. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everySixHours(array|string|int $offset = 0)
  16470. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes daily()
  16471. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes at(string $time)
  16472. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes dailyAt(string $time)
  16473. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceDaily(int $first = 1, int $second = 13)
  16474. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceDailyAt(int $first = 1, int $second = 13, int $offset = 0)
  16475. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekdays()
  16476. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekends()
  16477. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes mondays()
  16478. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes tuesdays()
  16479. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes wednesdays()
  16480. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes thursdays()
  16481. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes fridays()
  16482. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes saturdays()
  16483. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes sundays()
  16484. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weekly()
  16485. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes weeklyOn(array|mixed $dayOfWeek, string $time = '0:0')
  16486. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes monthly()
  16487. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes monthlyOn(int $dayOfMonth = 1, string $time = '0:0')
  16488. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceMonthly(int $first = 1, int $second = 16, string $time = '0:0')
  16489. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes lastDayOfMonth(string $time = '0:0')
  16490. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes quarterly()
  16491. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes quarterlyOn(int $dayOfQuarter = 1, string $time = '0:0')
  16492. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearly()
  16493. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearlyOn(int $month = 1, int|string $dayOfMonth = 1, string $time = '0:0')
  16494. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes days(array|mixed $days)
  16495. * @method static \Illuminate\Console\Scheduling\PendingEventAttributes timezone(\DateTimeZone|string $timezone)
  16496. * @see \Illuminate\Console\Scheduling\Schedule
  16497. */
  16498. class Schedule {
  16499. /**
  16500. * Add a new callback event to the schedule.
  16501. *
  16502. * @param string|callable $callback
  16503. * @param array $parameters
  16504. * @return \Illuminate\Console\Scheduling\CallbackEvent
  16505. * @static
  16506. */
  16507. public static function call($callback, $parameters = [])
  16508. {
  16509. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16510. return $instance->call($callback, $parameters);
  16511. }
  16512. /**
  16513. * Add a new Artisan command event to the schedule.
  16514. *
  16515. * @param string $command
  16516. * @param array $parameters
  16517. * @return \Illuminate\Console\Scheduling\Event
  16518. * @static
  16519. */
  16520. public static function command($command, $parameters = [])
  16521. {
  16522. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16523. return $instance->command($command, $parameters);
  16524. }
  16525. /**
  16526. * Add a new job callback event to the schedule.
  16527. *
  16528. * @param object|string $job
  16529. * @param string|null $queue
  16530. * @param string|null $connection
  16531. * @return \Illuminate\Console\Scheduling\CallbackEvent
  16532. * @static
  16533. */
  16534. public static function job($job, $queue = null, $connection = null)
  16535. {
  16536. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16537. return $instance->job($job, $queue, $connection);
  16538. }
  16539. /**
  16540. * Add a new command event to the schedule.
  16541. *
  16542. * @param string $command
  16543. * @param array $parameters
  16544. * @return \Illuminate\Console\Scheduling\Event
  16545. * @static
  16546. */
  16547. public static function exec($command, $parameters = [])
  16548. {
  16549. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16550. return $instance->exec($command, $parameters);
  16551. }
  16552. /**
  16553. * Create new schedule group.
  16554. *
  16555. * @param \Illuminate\Console\Scheduling\Event $event
  16556. * @return void
  16557. * @throws \RuntimeException
  16558. * @static
  16559. */
  16560. public static function group($events)
  16561. {
  16562. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16563. $instance->group($events);
  16564. }
  16565. /**
  16566. * Compile array input for a command.
  16567. *
  16568. * @param string|int $key
  16569. * @param array $value
  16570. * @return string
  16571. * @static
  16572. */
  16573. public static function compileArrayInput($key, $value)
  16574. {
  16575. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16576. return $instance->compileArrayInput($key, $value);
  16577. }
  16578. /**
  16579. * Determine if the server is allowed to run this event.
  16580. *
  16581. * @param \Illuminate\Console\Scheduling\Event $event
  16582. * @param \DateTimeInterface $time
  16583. * @return bool
  16584. * @static
  16585. */
  16586. public static function serverShouldRun($event, $time)
  16587. {
  16588. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16589. return $instance->serverShouldRun($event, $time);
  16590. }
  16591. /**
  16592. * Get all of the events on the schedule that are due.
  16593. *
  16594. * @param \Illuminate\Contracts\Foundation\Application $app
  16595. * @return \Illuminate\Support\Collection
  16596. * @static
  16597. */
  16598. public static function dueEvents($app)
  16599. {
  16600. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16601. return $instance->dueEvents($app);
  16602. }
  16603. /**
  16604. * Get all of the events on the schedule.
  16605. *
  16606. * @return \Illuminate\Console\Scheduling\Event[]
  16607. * @static
  16608. */
  16609. public static function events()
  16610. {
  16611. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16612. return $instance->events();
  16613. }
  16614. /**
  16615. * Specify the cache store that should be used to store mutexes.
  16616. *
  16617. * @param string $store
  16618. * @return \Illuminate\Console\Scheduling\Schedule
  16619. * @static
  16620. */
  16621. public static function useCache($store)
  16622. {
  16623. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16624. return $instance->useCache($store);
  16625. }
  16626. /**
  16627. * Register a custom macro.
  16628. *
  16629. * @param string $name
  16630. * @param object|callable $macro
  16631. * @param-closure-this static $macro
  16632. * @return void
  16633. * @static
  16634. */
  16635. public static function macro($name, $macro)
  16636. {
  16637. \Illuminate\Console\Scheduling\Schedule::macro($name, $macro);
  16638. }
  16639. /**
  16640. * Mix another object into the class.
  16641. *
  16642. * @param object $mixin
  16643. * @param bool $replace
  16644. * @return void
  16645. * @throws \ReflectionException
  16646. * @static
  16647. */
  16648. public static function mixin($mixin, $replace = true)
  16649. {
  16650. \Illuminate\Console\Scheduling\Schedule::mixin($mixin, $replace);
  16651. }
  16652. /**
  16653. * Checks if macro is registered.
  16654. *
  16655. * @param string $name
  16656. * @return bool
  16657. * @static
  16658. */
  16659. public static function hasMacro($name)
  16660. {
  16661. return \Illuminate\Console\Scheduling\Schedule::hasMacro($name);
  16662. }
  16663. /**
  16664. * Flush the existing macros.
  16665. *
  16666. * @return void
  16667. * @static
  16668. */
  16669. public static function flushMacros()
  16670. {
  16671. \Illuminate\Console\Scheduling\Schedule::flushMacros();
  16672. }
  16673. /**
  16674. * Dynamically handle calls to the class.
  16675. *
  16676. * @param string $method
  16677. * @param array $parameters
  16678. * @return mixed
  16679. * @throws \BadMethodCallException
  16680. * @static
  16681. */
  16682. public static function macroCall($method, $parameters)
  16683. {
  16684. /** @var \Illuminate\Console\Scheduling\Schedule $instance */
  16685. return $instance->macroCall($method, $parameters);
  16686. }
  16687. }
  16688. /**
  16689. * @see \Illuminate\Database\Schema\Builder
  16690. */
  16691. class Schema {
  16692. /**
  16693. * Drop all tables from the database.
  16694. *
  16695. * @return void
  16696. * @static
  16697. */
  16698. public static function dropAllTables()
  16699. {
  16700. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16701. $instance->dropAllTables();
  16702. }
  16703. /**
  16704. * Drop all views from the database.
  16705. *
  16706. * @return void
  16707. * @static
  16708. */
  16709. public static function dropAllViews()
  16710. {
  16711. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16712. $instance->dropAllViews();
  16713. }
  16714. /**
  16715. * Drop all types from the database.
  16716. *
  16717. * @return void
  16718. * @static
  16719. */
  16720. public static function dropAllTypes()
  16721. {
  16722. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16723. $instance->dropAllTypes();
  16724. }
  16725. /**
  16726. * Get the current schemas for the connection.
  16727. *
  16728. * @return string[]
  16729. * @static
  16730. */
  16731. public static function getCurrentSchemaListing()
  16732. {
  16733. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16734. return $instance->getCurrentSchemaListing();
  16735. }
  16736. /**
  16737. * Set the default string length for migrations.
  16738. *
  16739. * @param int $length
  16740. * @return void
  16741. * @static
  16742. */
  16743. public static function defaultStringLength($length)
  16744. {
  16745. //Method inherited from \Illuminate\Database\Schema\Builder
  16746. \Illuminate\Database\Schema\PostgresBuilder::defaultStringLength($length);
  16747. }
  16748. /**
  16749. * Set the default time precision for migrations.
  16750. *
  16751. * @static
  16752. */
  16753. public static function defaultTimePrecision($precision)
  16754. {
  16755. //Method inherited from \Illuminate\Database\Schema\Builder
  16756. return \Illuminate\Database\Schema\PostgresBuilder::defaultTimePrecision($precision);
  16757. }
  16758. /**
  16759. * Set the default morph key type for migrations.
  16760. *
  16761. * @param string $type
  16762. * @return void
  16763. * @throws \InvalidArgumentException
  16764. * @static
  16765. */
  16766. public static function defaultMorphKeyType($type)
  16767. {
  16768. //Method inherited from \Illuminate\Database\Schema\Builder
  16769. \Illuminate\Database\Schema\PostgresBuilder::defaultMorphKeyType($type);
  16770. }
  16771. /**
  16772. * Set the default morph key type for migrations to UUIDs.
  16773. *
  16774. * @return void
  16775. * @static
  16776. */
  16777. public static function morphUsingUuids()
  16778. {
  16779. //Method inherited from \Illuminate\Database\Schema\Builder
  16780. \Illuminate\Database\Schema\PostgresBuilder::morphUsingUuids();
  16781. }
  16782. /**
  16783. * Set the default morph key type for migrations to ULIDs.
  16784. *
  16785. * @return void
  16786. * @static
  16787. */
  16788. public static function morphUsingUlids()
  16789. {
  16790. //Method inherited from \Illuminate\Database\Schema\Builder
  16791. \Illuminate\Database\Schema\PostgresBuilder::morphUsingUlids();
  16792. }
  16793. /**
  16794. * Create a database in the schema.
  16795. *
  16796. * @param string $name
  16797. * @return bool
  16798. * @static
  16799. */
  16800. public static function createDatabase($name)
  16801. {
  16802. //Method inherited from \Illuminate\Database\Schema\Builder
  16803. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16804. return $instance->createDatabase($name);
  16805. }
  16806. /**
  16807. * Drop a database from the schema if the database exists.
  16808. *
  16809. * @param string $name
  16810. * @return bool
  16811. * @static
  16812. */
  16813. public static function dropDatabaseIfExists($name)
  16814. {
  16815. //Method inherited from \Illuminate\Database\Schema\Builder
  16816. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16817. return $instance->dropDatabaseIfExists($name);
  16818. }
  16819. /**
  16820. * Get the schemas that belong to the connection.
  16821. *
  16822. * @return \Illuminate\Database\Schema\list<array{name: string, path: string|null, default: bool}>
  16823. * @static
  16824. */
  16825. public static function getSchemas()
  16826. {
  16827. //Method inherited from \Illuminate\Database\Schema\Builder
  16828. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16829. return $instance->getSchemas();
  16830. }
  16831. /**
  16832. * Determine if the given table exists.
  16833. *
  16834. * @param string $table
  16835. * @return bool
  16836. * @static
  16837. */
  16838. public static function hasTable($table)
  16839. {
  16840. //Method inherited from \Illuminate\Database\Schema\Builder
  16841. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16842. return $instance->hasTable($table);
  16843. }
  16844. /**
  16845. * Determine if the given view exists.
  16846. *
  16847. * @param string $view
  16848. * @return bool
  16849. * @static
  16850. */
  16851. public static function hasView($view)
  16852. {
  16853. //Method inherited from \Illuminate\Database\Schema\Builder
  16854. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16855. return $instance->hasView($view);
  16856. }
  16857. /**
  16858. * Get the tables that belong to the connection.
  16859. *
  16860. * @param string|string[]|null $schema
  16861. * @return \Illuminate\Database\Schema\list<array{name: string, schema: string|null, schema_qualified_name: string, size: int|null, comment: string|null, collation: string|null, engine: string|null}>
  16862. * @static
  16863. */
  16864. public static function getTables($schema = null)
  16865. {
  16866. //Method inherited from \Illuminate\Database\Schema\Builder
  16867. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16868. return $instance->getTables($schema);
  16869. }
  16870. /**
  16871. * Get the names of the tables that belong to the connection.
  16872. *
  16873. * @param string|string[]|null $schema
  16874. * @param bool $schemaQualified
  16875. * @return list<string>
  16876. * @static
  16877. */
  16878. public static function getTableListing($schema = null, $schemaQualified = true)
  16879. {
  16880. //Method inherited from \Illuminate\Database\Schema\Builder
  16881. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16882. return $instance->getTableListing($schema, $schemaQualified);
  16883. }
  16884. /**
  16885. * Get the views that belong to the connection.
  16886. *
  16887. * @param string|string[]|null $schema
  16888. * @return \Illuminate\Database\Schema\list<array{name: string, schema: string|null, schema_qualified_name: string, definition: string}>
  16889. * @static
  16890. */
  16891. public static function getViews($schema = null)
  16892. {
  16893. //Method inherited from \Illuminate\Database\Schema\Builder
  16894. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16895. return $instance->getViews($schema);
  16896. }
  16897. /**
  16898. * Get the user-defined types that belong to the connection.
  16899. *
  16900. * @param string|string[]|null $schema
  16901. * @return \Illuminate\Database\Schema\list<array{name: string, schema: string, type: string, type: string, category: string, implicit: bool}>
  16902. * @static
  16903. */
  16904. public static function getTypes($schema = null)
  16905. {
  16906. //Method inherited from \Illuminate\Database\Schema\Builder
  16907. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16908. return $instance->getTypes($schema);
  16909. }
  16910. /**
  16911. * Determine if the given table has a given column.
  16912. *
  16913. * @param string $table
  16914. * @param string $column
  16915. * @return bool
  16916. * @static
  16917. */
  16918. public static function hasColumn($table, $column)
  16919. {
  16920. //Method inherited from \Illuminate\Database\Schema\Builder
  16921. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16922. return $instance->hasColumn($table, $column);
  16923. }
  16924. /**
  16925. * Determine if the given table has given columns.
  16926. *
  16927. * @param string $table
  16928. * @param array<string> $columns
  16929. * @return bool
  16930. * @static
  16931. */
  16932. public static function hasColumns($table, $columns)
  16933. {
  16934. //Method inherited from \Illuminate\Database\Schema\Builder
  16935. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16936. return $instance->hasColumns($table, $columns);
  16937. }
  16938. /**
  16939. * Execute a table builder callback if the given table has a given column.
  16940. *
  16941. * @param string $table
  16942. * @param string $column
  16943. * @param \Closure $callback
  16944. * @return void
  16945. * @static
  16946. */
  16947. public static function whenTableHasColumn($table, $column, $callback)
  16948. {
  16949. //Method inherited from \Illuminate\Database\Schema\Builder
  16950. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16951. $instance->whenTableHasColumn($table, $column, $callback);
  16952. }
  16953. /**
  16954. * Execute a table builder callback if the given table doesn't have a given column.
  16955. *
  16956. * @param string $table
  16957. * @param string $column
  16958. * @param \Closure $callback
  16959. * @return void
  16960. * @static
  16961. */
  16962. public static function whenTableDoesntHaveColumn($table, $column, $callback)
  16963. {
  16964. //Method inherited from \Illuminate\Database\Schema\Builder
  16965. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16966. $instance->whenTableDoesntHaveColumn($table, $column, $callback);
  16967. }
  16968. /**
  16969. * Get the data type for the given column name.
  16970. *
  16971. * @param string $table
  16972. * @param string $column
  16973. * @param bool $fullDefinition
  16974. * @return string
  16975. * @static
  16976. */
  16977. public static function getColumnType($table, $column, $fullDefinition = false)
  16978. {
  16979. //Method inherited from \Illuminate\Database\Schema\Builder
  16980. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16981. return $instance->getColumnType($table, $column, $fullDefinition);
  16982. }
  16983. /**
  16984. * Get the column listing for a given table.
  16985. *
  16986. * @param string $table
  16987. * @return list<string>
  16988. * @static
  16989. */
  16990. public static function getColumnListing($table)
  16991. {
  16992. //Method inherited from \Illuminate\Database\Schema\Builder
  16993. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  16994. return $instance->getColumnListing($table);
  16995. }
  16996. /**
  16997. * Get the columns for a given table.
  16998. *
  16999. * @param string $table
  17000. * @return \Illuminate\Database\Schema\list<array{name: string, type: string, type_name: string, nullable: bool, default: mixed, auto_increment: bool, comment: string|null, generation: array{type: string, expression: string|null}|null}>
  17001. * @static
  17002. */
  17003. public static function getColumns($table)
  17004. {
  17005. //Method inherited from \Illuminate\Database\Schema\Builder
  17006. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17007. return $instance->getColumns($table);
  17008. }
  17009. /**
  17010. * Get the indexes for a given table.
  17011. *
  17012. * @param string $table
  17013. * @return \Illuminate\Database\Schema\list<array{name: string, columns: list<string>, type: string, unique: bool, primary: bool}>
  17014. * @static
  17015. */
  17016. public static function getIndexes($table)
  17017. {
  17018. //Method inherited from \Illuminate\Database\Schema\Builder
  17019. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17020. return $instance->getIndexes($table);
  17021. }
  17022. /**
  17023. * Get the names of the indexes for a given table.
  17024. *
  17025. * @param string $table
  17026. * @return list<string>
  17027. * @static
  17028. */
  17029. public static function getIndexListing($table)
  17030. {
  17031. //Method inherited from \Illuminate\Database\Schema\Builder
  17032. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17033. return $instance->getIndexListing($table);
  17034. }
  17035. /**
  17036. * Determine if the given table has a given index.
  17037. *
  17038. * @param string $table
  17039. * @param string|array $index
  17040. * @param string|null $type
  17041. * @return bool
  17042. * @static
  17043. */
  17044. public static function hasIndex($table, $index, $type = null)
  17045. {
  17046. //Method inherited from \Illuminate\Database\Schema\Builder
  17047. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17048. return $instance->hasIndex($table, $index, $type);
  17049. }
  17050. /**
  17051. * Get the foreign keys for a given table.
  17052. *
  17053. * @param string $table
  17054. * @return array
  17055. * @static
  17056. */
  17057. public static function getForeignKeys($table)
  17058. {
  17059. //Method inherited from \Illuminate\Database\Schema\Builder
  17060. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17061. return $instance->getForeignKeys($table);
  17062. }
  17063. /**
  17064. * Modify a table on the schema.
  17065. *
  17066. * @param string $table
  17067. * @param \Closure $callback
  17068. * @return void
  17069. * @static
  17070. */
  17071. public static function table($table, $callback)
  17072. {
  17073. //Method inherited from \Illuminate\Database\Schema\Builder
  17074. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17075. $instance->table($table, $callback);
  17076. }
  17077. /**
  17078. * Create a new table on the schema.
  17079. *
  17080. * @param string $table
  17081. * @param \Closure $callback
  17082. * @return void
  17083. * @static
  17084. */
  17085. public static function create($table, $callback)
  17086. {
  17087. //Method inherited from \Illuminate\Database\Schema\Builder
  17088. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17089. $instance->create($table, $callback);
  17090. }
  17091. /**
  17092. * Drop a table from the schema.
  17093. *
  17094. * @param string $table
  17095. * @return void
  17096. * @static
  17097. */
  17098. public static function drop($table)
  17099. {
  17100. //Method inherited from \Illuminate\Database\Schema\Builder
  17101. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17102. $instance->drop($table);
  17103. }
  17104. /**
  17105. * Drop a table from the schema if it exists.
  17106. *
  17107. * @param string $table
  17108. * @return void
  17109. * @static
  17110. */
  17111. public static function dropIfExists($table)
  17112. {
  17113. //Method inherited from \Illuminate\Database\Schema\Builder
  17114. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17115. $instance->dropIfExists($table);
  17116. }
  17117. /**
  17118. * Drop columns from a table schema.
  17119. *
  17120. * @param string $table
  17121. * @param string|array<string> $columns
  17122. * @return void
  17123. * @static
  17124. */
  17125. public static function dropColumns($table, $columns)
  17126. {
  17127. //Method inherited from \Illuminate\Database\Schema\Builder
  17128. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17129. $instance->dropColumns($table, $columns);
  17130. }
  17131. /**
  17132. * Rename a table on the schema.
  17133. *
  17134. * @param string $from
  17135. * @param string $to
  17136. * @return void
  17137. * @static
  17138. */
  17139. public static function rename($from, $to)
  17140. {
  17141. //Method inherited from \Illuminate\Database\Schema\Builder
  17142. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17143. $instance->rename($from, $to);
  17144. }
  17145. /**
  17146. * Enable foreign key constraints.
  17147. *
  17148. * @return bool
  17149. * @static
  17150. */
  17151. public static function enableForeignKeyConstraints()
  17152. {
  17153. //Method inherited from \Illuminate\Database\Schema\Builder
  17154. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17155. return $instance->enableForeignKeyConstraints();
  17156. }
  17157. /**
  17158. * Disable foreign key constraints.
  17159. *
  17160. * @return bool
  17161. * @static
  17162. */
  17163. public static function disableForeignKeyConstraints()
  17164. {
  17165. //Method inherited from \Illuminate\Database\Schema\Builder
  17166. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17167. return $instance->disableForeignKeyConstraints();
  17168. }
  17169. /**
  17170. * Disable foreign key constraints during the execution of a callback.
  17171. *
  17172. * @param \Closure $callback
  17173. * @return mixed
  17174. * @static
  17175. */
  17176. public static function withoutForeignKeyConstraints($callback)
  17177. {
  17178. //Method inherited from \Illuminate\Database\Schema\Builder
  17179. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17180. return $instance->withoutForeignKeyConstraints($callback);
  17181. }
  17182. /**
  17183. * Get the default schema name for the connection.
  17184. *
  17185. * @return string|null
  17186. * @static
  17187. */
  17188. public static function getCurrentSchemaName()
  17189. {
  17190. //Method inherited from \Illuminate\Database\Schema\Builder
  17191. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17192. return $instance->getCurrentSchemaName();
  17193. }
  17194. /**
  17195. * Parse the given database object reference and extract the schema and table.
  17196. *
  17197. * @param string $reference
  17198. * @param string|bool|null $withDefaultSchema
  17199. * @return array
  17200. * @static
  17201. */
  17202. public static function parseSchemaAndTable($reference, $withDefaultSchema = null)
  17203. {
  17204. //Method inherited from \Illuminate\Database\Schema\Builder
  17205. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17206. return $instance->parseSchemaAndTable($reference, $withDefaultSchema);
  17207. }
  17208. /**
  17209. * Get the database connection instance.
  17210. *
  17211. * @return \Illuminate\Database\Connection
  17212. * @static
  17213. */
  17214. public static function getConnection()
  17215. {
  17216. //Method inherited from \Illuminate\Database\Schema\Builder
  17217. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17218. return $instance->getConnection();
  17219. }
  17220. /**
  17221. * Set the Schema Blueprint resolver callback.
  17222. *
  17223. * @param \Closure(string, \Closure, string): \Illuminate\Database\Schema\Blueprint|null $resolver
  17224. * @return void
  17225. * @static
  17226. */
  17227. public static function blueprintResolver($resolver)
  17228. {
  17229. //Method inherited from \Illuminate\Database\Schema\Builder
  17230. /** @var \Illuminate\Database\Schema\PostgresBuilder $instance */
  17231. $instance->blueprintResolver($resolver);
  17232. }
  17233. /**
  17234. * Register a custom macro.
  17235. *
  17236. * @param string $name
  17237. * @param object|callable $macro
  17238. * @param-closure-this static $macro
  17239. * @return void
  17240. * @static
  17241. */
  17242. public static function macro($name, $macro)
  17243. {
  17244. //Method inherited from \Illuminate\Database\Schema\Builder
  17245. \Illuminate\Database\Schema\PostgresBuilder::macro($name, $macro);
  17246. }
  17247. /**
  17248. * Mix another object into the class.
  17249. *
  17250. * @param object $mixin
  17251. * @param bool $replace
  17252. * @return void
  17253. * @throws \ReflectionException
  17254. * @static
  17255. */
  17256. public static function mixin($mixin, $replace = true)
  17257. {
  17258. //Method inherited from \Illuminate\Database\Schema\Builder
  17259. \Illuminate\Database\Schema\PostgresBuilder::mixin($mixin, $replace);
  17260. }
  17261. /**
  17262. * Checks if macro is registered.
  17263. *
  17264. * @param string $name
  17265. * @return bool
  17266. * @static
  17267. */
  17268. public static function hasMacro($name)
  17269. {
  17270. //Method inherited from \Illuminate\Database\Schema\Builder
  17271. return \Illuminate\Database\Schema\PostgresBuilder::hasMacro($name);
  17272. }
  17273. /**
  17274. * Flush the existing macros.
  17275. *
  17276. * @return void
  17277. * @static
  17278. */
  17279. public static function flushMacros()
  17280. {
  17281. //Method inherited from \Illuminate\Database\Schema\Builder
  17282. \Illuminate\Database\Schema\PostgresBuilder::flushMacros();
  17283. }
  17284. }
  17285. /**
  17286. * @see \Illuminate\Session\SessionManager
  17287. */
  17288. class Session {
  17289. /**
  17290. * Determine if requests for the same session should wait for each to finish before executing.
  17291. *
  17292. * @return bool
  17293. * @static
  17294. */
  17295. public static function shouldBlock()
  17296. {
  17297. /** @var \Illuminate\Session\SessionManager $instance */
  17298. return $instance->shouldBlock();
  17299. }
  17300. /**
  17301. * Get the name of the cache store / driver that should be used to acquire session locks.
  17302. *
  17303. * @return string|null
  17304. * @static
  17305. */
  17306. public static function blockDriver()
  17307. {
  17308. /** @var \Illuminate\Session\SessionManager $instance */
  17309. return $instance->blockDriver();
  17310. }
  17311. /**
  17312. * Get the maximum number of seconds the session lock should be held for.
  17313. *
  17314. * @return int
  17315. * @static
  17316. */
  17317. public static function defaultRouteBlockLockSeconds()
  17318. {
  17319. /** @var \Illuminate\Session\SessionManager $instance */
  17320. return $instance->defaultRouteBlockLockSeconds();
  17321. }
  17322. /**
  17323. * Get the maximum number of seconds to wait while attempting to acquire a route block session lock.
  17324. *
  17325. * @return int
  17326. * @static
  17327. */
  17328. public static function defaultRouteBlockWaitSeconds()
  17329. {
  17330. /** @var \Illuminate\Session\SessionManager $instance */
  17331. return $instance->defaultRouteBlockWaitSeconds();
  17332. }
  17333. /**
  17334. * Get the session configuration.
  17335. *
  17336. * @return array
  17337. * @static
  17338. */
  17339. public static function getSessionConfig()
  17340. {
  17341. /** @var \Illuminate\Session\SessionManager $instance */
  17342. return $instance->getSessionConfig();
  17343. }
  17344. /**
  17345. * Get the default session driver name.
  17346. *
  17347. * @return string
  17348. * @static
  17349. */
  17350. public static function getDefaultDriver()
  17351. {
  17352. /** @var \Illuminate\Session\SessionManager $instance */
  17353. return $instance->getDefaultDriver();
  17354. }
  17355. /**
  17356. * Set the default session driver name.
  17357. *
  17358. * @param string $name
  17359. * @return void
  17360. * @static
  17361. */
  17362. public static function setDefaultDriver($name)
  17363. {
  17364. /** @var \Illuminate\Session\SessionManager $instance */
  17365. $instance->setDefaultDriver($name);
  17366. }
  17367. /**
  17368. * Get a driver instance.
  17369. *
  17370. * @param string|null $driver
  17371. * @return mixed
  17372. * @throws \InvalidArgumentException
  17373. * @static
  17374. */
  17375. public static function driver($driver = null)
  17376. {
  17377. //Method inherited from \Illuminate\Support\Manager
  17378. /** @var \Illuminate\Session\SessionManager $instance */
  17379. return $instance->driver($driver);
  17380. }
  17381. /**
  17382. * Register a custom driver creator Closure.
  17383. *
  17384. * @param string $driver
  17385. * @param \Closure $callback
  17386. * @return \Illuminate\Session\SessionManager
  17387. * @static
  17388. */
  17389. public static function extend($driver, $callback)
  17390. {
  17391. //Method inherited from \Illuminate\Support\Manager
  17392. /** @var \Illuminate\Session\SessionManager $instance */
  17393. return $instance->extend($driver, $callback);
  17394. }
  17395. /**
  17396. * Get all of the created "drivers".
  17397. *
  17398. * @return array
  17399. * @static
  17400. */
  17401. public static function getDrivers()
  17402. {
  17403. //Method inherited from \Illuminate\Support\Manager
  17404. /** @var \Illuminate\Session\SessionManager $instance */
  17405. return $instance->getDrivers();
  17406. }
  17407. /**
  17408. * Get the container instance used by the manager.
  17409. *
  17410. * @return \Illuminate\Contracts\Container\Container
  17411. * @static
  17412. */
  17413. public static function getContainer()
  17414. {
  17415. //Method inherited from \Illuminate\Support\Manager
  17416. /** @var \Illuminate\Session\SessionManager $instance */
  17417. return $instance->getContainer();
  17418. }
  17419. /**
  17420. * Set the container instance used by the manager.
  17421. *
  17422. * @param \Illuminate\Contracts\Container\Container $container
  17423. * @return \Illuminate\Session\SessionManager
  17424. * @static
  17425. */
  17426. public static function setContainer($container)
  17427. {
  17428. //Method inherited from \Illuminate\Support\Manager
  17429. /** @var \Illuminate\Session\SessionManager $instance */
  17430. return $instance->setContainer($container);
  17431. }
  17432. /**
  17433. * Forget all of the resolved driver instances.
  17434. *
  17435. * @return \Illuminate\Session\SessionManager
  17436. * @static
  17437. */
  17438. public static function forgetDrivers()
  17439. {
  17440. //Method inherited from \Illuminate\Support\Manager
  17441. /** @var \Illuminate\Session\SessionManager $instance */
  17442. return $instance->forgetDrivers();
  17443. }
  17444. /**
  17445. * Start the session, reading the data from a handler.
  17446. *
  17447. * @return bool
  17448. * @static
  17449. */
  17450. public static function start()
  17451. {
  17452. /** @var \Illuminate\Session\Store $instance */
  17453. return $instance->start();
  17454. }
  17455. /**
  17456. * Save the session data to storage.
  17457. *
  17458. * @return void
  17459. * @static
  17460. */
  17461. public static function save()
  17462. {
  17463. /** @var \Illuminate\Session\Store $instance */
  17464. $instance->save();
  17465. }
  17466. /**
  17467. * Age the flash data for the session.
  17468. *
  17469. * @return void
  17470. * @static
  17471. */
  17472. public static function ageFlashData()
  17473. {
  17474. /** @var \Illuminate\Session\Store $instance */
  17475. $instance->ageFlashData();
  17476. }
  17477. /**
  17478. * Get all of the session data.
  17479. *
  17480. * @return array
  17481. * @static
  17482. */
  17483. public static function all()
  17484. {
  17485. /** @var \Illuminate\Session\Store $instance */
  17486. return $instance->all();
  17487. }
  17488. /**
  17489. * Get a subset of the session data.
  17490. *
  17491. * @param array $keys
  17492. * @return array
  17493. * @static
  17494. */
  17495. public static function only($keys)
  17496. {
  17497. /** @var \Illuminate\Session\Store $instance */
  17498. return $instance->only($keys);
  17499. }
  17500. /**
  17501. * Get all the session data except for a specified array of items.
  17502. *
  17503. * @param array $keys
  17504. * @return array
  17505. * @static
  17506. */
  17507. public static function except($keys)
  17508. {
  17509. /** @var \Illuminate\Session\Store $instance */
  17510. return $instance->except($keys);
  17511. }
  17512. /**
  17513. * Checks if a key exists.
  17514. *
  17515. * @param string|array $key
  17516. * @return bool
  17517. * @static
  17518. */
  17519. public static function exists($key)
  17520. {
  17521. /** @var \Illuminate\Session\Store $instance */
  17522. return $instance->exists($key);
  17523. }
  17524. /**
  17525. * Determine if the given key is missing from the session data.
  17526. *
  17527. * @param string|array $key
  17528. * @return bool
  17529. * @static
  17530. */
  17531. public static function missing($key)
  17532. {
  17533. /** @var \Illuminate\Session\Store $instance */
  17534. return $instance->missing($key);
  17535. }
  17536. /**
  17537. * Determine if a key is present and not null.
  17538. *
  17539. * @param string|array $key
  17540. * @return bool
  17541. * @static
  17542. */
  17543. public static function has($key)
  17544. {
  17545. /** @var \Illuminate\Session\Store $instance */
  17546. return $instance->has($key);
  17547. }
  17548. /**
  17549. * Determine if any of the given keys are present and not null.
  17550. *
  17551. * @param string|array $key
  17552. * @return bool
  17553. * @static
  17554. */
  17555. public static function hasAny($key)
  17556. {
  17557. /** @var \Illuminate\Session\Store $instance */
  17558. return $instance->hasAny($key);
  17559. }
  17560. /**
  17561. * Get an item from the session.
  17562. *
  17563. * @param string $key
  17564. * @param mixed $default
  17565. * @return mixed
  17566. * @static
  17567. */
  17568. public static function get($key, $default = null)
  17569. {
  17570. /** @var \Illuminate\Session\Store $instance */
  17571. return $instance->get($key, $default);
  17572. }
  17573. /**
  17574. * Get the value of a given key and then forget it.
  17575. *
  17576. * @param string $key
  17577. * @param mixed $default
  17578. * @return mixed
  17579. * @static
  17580. */
  17581. public static function pull($key, $default = null)
  17582. {
  17583. /** @var \Illuminate\Session\Store $instance */
  17584. return $instance->pull($key, $default);
  17585. }
  17586. /**
  17587. * Determine if the session contains old input.
  17588. *
  17589. * @param string|null $key
  17590. * @return bool
  17591. * @static
  17592. */
  17593. public static function hasOldInput($key = null)
  17594. {
  17595. /** @var \Illuminate\Session\Store $instance */
  17596. return $instance->hasOldInput($key);
  17597. }
  17598. /**
  17599. * Get the requested item from the flashed input array.
  17600. *
  17601. * @param string|null $key
  17602. * @param mixed $default
  17603. * @return mixed
  17604. * @static
  17605. */
  17606. public static function getOldInput($key = null, $default = null)
  17607. {
  17608. /** @var \Illuminate\Session\Store $instance */
  17609. return $instance->getOldInput($key, $default);
  17610. }
  17611. /**
  17612. * Replace the given session attributes entirely.
  17613. *
  17614. * @param array $attributes
  17615. * @return void
  17616. * @static
  17617. */
  17618. public static function replace($attributes)
  17619. {
  17620. /** @var \Illuminate\Session\Store $instance */
  17621. $instance->replace($attributes);
  17622. }
  17623. /**
  17624. * Put a key / value pair or array of key / value pairs in the session.
  17625. *
  17626. * @param string|array $key
  17627. * @param mixed $value
  17628. * @return void
  17629. * @static
  17630. */
  17631. public static function put($key, $value = null)
  17632. {
  17633. /** @var \Illuminate\Session\Store $instance */
  17634. $instance->put($key, $value);
  17635. }
  17636. /**
  17637. * Get an item from the session, or store the default value.
  17638. *
  17639. * @param string $key
  17640. * @param \Closure $callback
  17641. * @return mixed
  17642. * @static
  17643. */
  17644. public static function remember($key, $callback)
  17645. {
  17646. /** @var \Illuminate\Session\Store $instance */
  17647. return $instance->remember($key, $callback);
  17648. }
  17649. /**
  17650. * Push a value onto a session array.
  17651. *
  17652. * @param string $key
  17653. * @param mixed $value
  17654. * @return void
  17655. * @static
  17656. */
  17657. public static function push($key, $value)
  17658. {
  17659. /** @var \Illuminate\Session\Store $instance */
  17660. $instance->push($key, $value);
  17661. }
  17662. /**
  17663. * Increment the value of an item in the session.
  17664. *
  17665. * @param string $key
  17666. * @param int $amount
  17667. * @return mixed
  17668. * @static
  17669. */
  17670. public static function increment($key, $amount = 1)
  17671. {
  17672. /** @var \Illuminate\Session\Store $instance */
  17673. return $instance->increment($key, $amount);
  17674. }
  17675. /**
  17676. * Decrement the value of an item in the session.
  17677. *
  17678. * @param string $key
  17679. * @param int $amount
  17680. * @return int
  17681. * @static
  17682. */
  17683. public static function decrement($key, $amount = 1)
  17684. {
  17685. /** @var \Illuminate\Session\Store $instance */
  17686. return $instance->decrement($key, $amount);
  17687. }
  17688. /**
  17689. * Flash a key / value pair to the session.
  17690. *
  17691. * @param string $key
  17692. * @param mixed $value
  17693. * @return void
  17694. * @static
  17695. */
  17696. public static function flash($key, $value = true)
  17697. {
  17698. /** @var \Illuminate\Session\Store $instance */
  17699. $instance->flash($key, $value);
  17700. }
  17701. /**
  17702. * Flash a key / value pair to the session for immediate use.
  17703. *
  17704. * @param string $key
  17705. * @param mixed $value
  17706. * @return void
  17707. * @static
  17708. */
  17709. public static function now($key, $value)
  17710. {
  17711. /** @var \Illuminate\Session\Store $instance */
  17712. $instance->now($key, $value);
  17713. }
  17714. /**
  17715. * Reflash all of the session flash data.
  17716. *
  17717. * @return void
  17718. * @static
  17719. */
  17720. public static function reflash()
  17721. {
  17722. /** @var \Illuminate\Session\Store $instance */
  17723. $instance->reflash();
  17724. }
  17725. /**
  17726. * Reflash a subset of the current flash data.
  17727. *
  17728. * @param array|mixed $keys
  17729. * @return void
  17730. * @static
  17731. */
  17732. public static function keep($keys = null)
  17733. {
  17734. /** @var \Illuminate\Session\Store $instance */
  17735. $instance->keep($keys);
  17736. }
  17737. /**
  17738. * Flash an input array to the session.
  17739. *
  17740. * @param array $value
  17741. * @return void
  17742. * @static
  17743. */
  17744. public static function flashInput($value)
  17745. {
  17746. /** @var \Illuminate\Session\Store $instance */
  17747. $instance->flashInput($value);
  17748. }
  17749. /**
  17750. * Remove an item from the session, returning its value.
  17751. *
  17752. * @param string $key
  17753. * @return mixed
  17754. * @static
  17755. */
  17756. public static function remove($key)
  17757. {
  17758. /** @var \Illuminate\Session\Store $instance */
  17759. return $instance->remove($key);
  17760. }
  17761. /**
  17762. * Remove one or many items from the session.
  17763. *
  17764. * @param string|array $keys
  17765. * @return void
  17766. * @static
  17767. */
  17768. public static function forget($keys)
  17769. {
  17770. /** @var \Illuminate\Session\Store $instance */
  17771. $instance->forget($keys);
  17772. }
  17773. /**
  17774. * Remove all of the items from the session.
  17775. *
  17776. * @return void
  17777. * @static
  17778. */
  17779. public static function flush()
  17780. {
  17781. /** @var \Illuminate\Session\Store $instance */
  17782. $instance->flush();
  17783. }
  17784. /**
  17785. * Flush the session data and regenerate the ID.
  17786. *
  17787. * @return bool
  17788. * @static
  17789. */
  17790. public static function invalidate()
  17791. {
  17792. /** @var \Illuminate\Session\Store $instance */
  17793. return $instance->invalidate();
  17794. }
  17795. /**
  17796. * Generate a new session identifier.
  17797. *
  17798. * @param bool $destroy
  17799. * @return bool
  17800. * @static
  17801. */
  17802. public static function regenerate($destroy = false)
  17803. {
  17804. /** @var \Illuminate\Session\Store $instance */
  17805. return $instance->regenerate($destroy);
  17806. }
  17807. /**
  17808. * Generate a new session ID for the session.
  17809. *
  17810. * @param bool $destroy
  17811. * @return bool
  17812. * @static
  17813. */
  17814. public static function migrate($destroy = false)
  17815. {
  17816. /** @var \Illuminate\Session\Store $instance */
  17817. return $instance->migrate($destroy);
  17818. }
  17819. /**
  17820. * Determine if the session has been started.
  17821. *
  17822. * @return bool
  17823. * @static
  17824. */
  17825. public static function isStarted()
  17826. {
  17827. /** @var \Illuminate\Session\Store $instance */
  17828. return $instance->isStarted();
  17829. }
  17830. /**
  17831. * Get the name of the session.
  17832. *
  17833. * @return string
  17834. * @static
  17835. */
  17836. public static function getName()
  17837. {
  17838. /** @var \Illuminate\Session\Store $instance */
  17839. return $instance->getName();
  17840. }
  17841. /**
  17842. * Set the name of the session.
  17843. *
  17844. * @param string $name
  17845. * @return void
  17846. * @static
  17847. */
  17848. public static function setName($name)
  17849. {
  17850. /** @var \Illuminate\Session\Store $instance */
  17851. $instance->setName($name);
  17852. }
  17853. /**
  17854. * Get the current session ID.
  17855. *
  17856. * @return string
  17857. * @static
  17858. */
  17859. public static function id()
  17860. {
  17861. /** @var \Illuminate\Session\Store $instance */
  17862. return $instance->id();
  17863. }
  17864. /**
  17865. * Get the current session ID.
  17866. *
  17867. * @return string
  17868. * @static
  17869. */
  17870. public static function getId()
  17871. {
  17872. /** @var \Illuminate\Session\Store $instance */
  17873. return $instance->getId();
  17874. }
  17875. /**
  17876. * Set the session ID.
  17877. *
  17878. * @param string|null $id
  17879. * @return void
  17880. * @static
  17881. */
  17882. public static function setId($id)
  17883. {
  17884. /** @var \Illuminate\Session\Store $instance */
  17885. $instance->setId($id);
  17886. }
  17887. /**
  17888. * Determine if this is a valid session ID.
  17889. *
  17890. * @param string|null $id
  17891. * @return bool
  17892. * @static
  17893. */
  17894. public static function isValidId($id)
  17895. {
  17896. /** @var \Illuminate\Session\Store $instance */
  17897. return $instance->isValidId($id);
  17898. }
  17899. /**
  17900. * Set the existence of the session on the handler if applicable.
  17901. *
  17902. * @param bool $value
  17903. * @return void
  17904. * @static
  17905. */
  17906. public static function setExists($value)
  17907. {
  17908. /** @var \Illuminate\Session\Store $instance */
  17909. $instance->setExists($value);
  17910. }
  17911. /**
  17912. * Get the CSRF token value.
  17913. *
  17914. * @return string
  17915. * @static
  17916. */
  17917. public static function token()
  17918. {
  17919. /** @var \Illuminate\Session\Store $instance */
  17920. return $instance->token();
  17921. }
  17922. /**
  17923. * Regenerate the CSRF token value.
  17924. *
  17925. * @return void
  17926. * @static
  17927. */
  17928. public static function regenerateToken()
  17929. {
  17930. /** @var \Illuminate\Session\Store $instance */
  17931. $instance->regenerateToken();
  17932. }
  17933. /**
  17934. * Determine if the previous URI is available.
  17935. *
  17936. * @return bool
  17937. * @static
  17938. */
  17939. public static function hasPreviousUri()
  17940. {
  17941. /** @var \Illuminate\Session\Store $instance */
  17942. return $instance->hasPreviousUri();
  17943. }
  17944. /**
  17945. * Get the previous URL from the session as a URI instance.
  17946. *
  17947. * @return \Illuminate\Support\Uri
  17948. * @throws \RuntimeException
  17949. * @static
  17950. */
  17951. public static function previousUri()
  17952. {
  17953. /** @var \Illuminate\Session\Store $instance */
  17954. return $instance->previousUri();
  17955. }
  17956. /**
  17957. * Get the previous URL from the session.
  17958. *
  17959. * @return string|null
  17960. * @static
  17961. */
  17962. public static function previousUrl()
  17963. {
  17964. /** @var \Illuminate\Session\Store $instance */
  17965. return $instance->previousUrl();
  17966. }
  17967. /**
  17968. * Set the "previous" URL in the session.
  17969. *
  17970. * @param string $url
  17971. * @return void
  17972. * @static
  17973. */
  17974. public static function setPreviousUrl($url)
  17975. {
  17976. /** @var \Illuminate\Session\Store $instance */
  17977. $instance->setPreviousUrl($url);
  17978. }
  17979. /**
  17980. * Specify that the user has confirmed their password.
  17981. *
  17982. * @return void
  17983. * @static
  17984. */
  17985. public static function passwordConfirmed()
  17986. {
  17987. /** @var \Illuminate\Session\Store $instance */
  17988. $instance->passwordConfirmed();
  17989. }
  17990. /**
  17991. * Get the underlying session handler implementation.
  17992. *
  17993. * @return \SessionHandlerInterface
  17994. * @static
  17995. */
  17996. public static function getHandler()
  17997. {
  17998. /** @var \Illuminate\Session\Store $instance */
  17999. return $instance->getHandler();
  18000. }
  18001. /**
  18002. * Set the underlying session handler implementation.
  18003. *
  18004. * @param \SessionHandlerInterface $handler
  18005. * @return \SessionHandlerInterface
  18006. * @static
  18007. */
  18008. public static function setHandler($handler)
  18009. {
  18010. /** @var \Illuminate\Session\Store $instance */
  18011. return $instance->setHandler($handler);
  18012. }
  18013. /**
  18014. * Determine if the session handler needs a request.
  18015. *
  18016. * @return bool
  18017. * @static
  18018. */
  18019. public static function handlerNeedsRequest()
  18020. {
  18021. /** @var \Illuminate\Session\Store $instance */
  18022. return $instance->handlerNeedsRequest();
  18023. }
  18024. /**
  18025. * Set the request on the handler instance.
  18026. *
  18027. * @param \Illuminate\Http\Request $request
  18028. * @return void
  18029. * @static
  18030. */
  18031. public static function setRequestOnHandler($request)
  18032. {
  18033. /** @var \Illuminate\Session\Store $instance */
  18034. $instance->setRequestOnHandler($request);
  18035. }
  18036. /**
  18037. * Register a custom macro.
  18038. *
  18039. * @param string $name
  18040. * @param object|callable $macro
  18041. * @param-closure-this static $macro
  18042. * @return void
  18043. * @static
  18044. */
  18045. public static function macro($name, $macro)
  18046. {
  18047. \Illuminate\Session\Store::macro($name, $macro);
  18048. }
  18049. /**
  18050. * Mix another object into the class.
  18051. *
  18052. * @param object $mixin
  18053. * @param bool $replace
  18054. * @return void
  18055. * @throws \ReflectionException
  18056. * @static
  18057. */
  18058. public static function mixin($mixin, $replace = true)
  18059. {
  18060. \Illuminate\Session\Store::mixin($mixin, $replace);
  18061. }
  18062. /**
  18063. * Checks if macro is registered.
  18064. *
  18065. * @param string $name
  18066. * @return bool
  18067. * @static
  18068. */
  18069. public static function hasMacro($name)
  18070. {
  18071. return \Illuminate\Session\Store::hasMacro($name);
  18072. }
  18073. /**
  18074. * Flush the existing macros.
  18075. *
  18076. * @return void
  18077. * @static
  18078. */
  18079. public static function flushMacros()
  18080. {
  18081. \Illuminate\Session\Store::flushMacros();
  18082. }
  18083. }
  18084. /**
  18085. * @method static bool has(string $location)
  18086. * @method static string read(string $location)
  18087. * @method static \League\Flysystem\DirectoryListing listContents(string $location, bool $deep = false)
  18088. * @method static int fileSize(string $path)
  18089. * @method static string visibility(string $path)
  18090. * @method static void write(string $location, string $contents, array $config = [])
  18091. * @method static void createDirectory(string $location, array $config = [])
  18092. * @see \Illuminate\Filesystem\FilesystemManager
  18093. */
  18094. class Storage {
  18095. /**
  18096. * Get a filesystem instance.
  18097. *
  18098. * @param string|null $name
  18099. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18100. * @static
  18101. */
  18102. public static function drive($name = null)
  18103. {
  18104. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18105. return $instance->drive($name);
  18106. }
  18107. /**
  18108. * Get a filesystem instance.
  18109. *
  18110. * @param string|null $name
  18111. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18112. * @static
  18113. */
  18114. public static function disk($name = null)
  18115. {
  18116. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18117. return $instance->disk($name);
  18118. }
  18119. /**
  18120. * Get a default cloud filesystem instance.
  18121. *
  18122. * @return \Illuminate\Contracts\Filesystem\Cloud
  18123. * @static
  18124. */
  18125. public static function cloud()
  18126. {
  18127. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18128. return $instance->cloud();
  18129. }
  18130. /**
  18131. * Build an on-demand disk.
  18132. *
  18133. * @param string|array $config
  18134. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18135. * @static
  18136. */
  18137. public static function build($config)
  18138. {
  18139. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18140. return $instance->build($config);
  18141. }
  18142. /**
  18143. * Create an instance of the local driver.
  18144. *
  18145. * @param array $config
  18146. * @param string $name
  18147. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18148. * @static
  18149. */
  18150. public static function createLocalDriver($config, $name = 'local')
  18151. {
  18152. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18153. return $instance->createLocalDriver($config, $name);
  18154. }
  18155. /**
  18156. * Create an instance of the ftp driver.
  18157. *
  18158. * @param array $config
  18159. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18160. * @static
  18161. */
  18162. public static function createFtpDriver($config)
  18163. {
  18164. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18165. return $instance->createFtpDriver($config);
  18166. }
  18167. /**
  18168. * Create an instance of the sftp driver.
  18169. *
  18170. * @param array $config
  18171. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18172. * @static
  18173. */
  18174. public static function createSftpDriver($config)
  18175. {
  18176. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18177. return $instance->createSftpDriver($config);
  18178. }
  18179. /**
  18180. * Create an instance of the Amazon S3 driver.
  18181. *
  18182. * @param array $config
  18183. * @return \Illuminate\Contracts\Filesystem\Cloud
  18184. * @static
  18185. */
  18186. public static function createS3Driver($config)
  18187. {
  18188. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18189. return $instance->createS3Driver($config);
  18190. }
  18191. /**
  18192. * Create a scoped driver.
  18193. *
  18194. * @param array $config
  18195. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18196. * @static
  18197. */
  18198. public static function createScopedDriver($config)
  18199. {
  18200. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18201. return $instance->createScopedDriver($config);
  18202. }
  18203. /**
  18204. * Set the given disk instance.
  18205. *
  18206. * @param string $name
  18207. * @param mixed $disk
  18208. * @return \Illuminate\Filesystem\FilesystemManager
  18209. * @static
  18210. */
  18211. public static function set($name, $disk)
  18212. {
  18213. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18214. return $instance->set($name, $disk);
  18215. }
  18216. /**
  18217. * Get the default driver name.
  18218. *
  18219. * @return string
  18220. * @static
  18221. */
  18222. public static function getDefaultDriver()
  18223. {
  18224. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18225. return $instance->getDefaultDriver();
  18226. }
  18227. /**
  18228. * Get the default cloud driver name.
  18229. *
  18230. * @return string
  18231. * @static
  18232. */
  18233. public static function getDefaultCloudDriver()
  18234. {
  18235. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18236. return $instance->getDefaultCloudDriver();
  18237. }
  18238. /**
  18239. * Unset the given disk instances.
  18240. *
  18241. * @param array|string $disk
  18242. * @return \Illuminate\Filesystem\FilesystemManager
  18243. * @static
  18244. */
  18245. public static function forgetDisk($disk)
  18246. {
  18247. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18248. return $instance->forgetDisk($disk);
  18249. }
  18250. /**
  18251. * Disconnect the given disk and remove from local cache.
  18252. *
  18253. * @param string|null $name
  18254. * @return void
  18255. * @static
  18256. */
  18257. public static function purge($name = null)
  18258. {
  18259. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18260. $instance->purge($name);
  18261. }
  18262. /**
  18263. * Register a custom driver creator Closure.
  18264. *
  18265. * @param string $driver
  18266. * @param \Closure $callback
  18267. * @return \Illuminate\Filesystem\FilesystemManager
  18268. * @static
  18269. */
  18270. public static function extend($driver, $callback)
  18271. {
  18272. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18273. return $instance->extend($driver, $callback);
  18274. }
  18275. /**
  18276. * Set the application instance used by the manager.
  18277. *
  18278. * @param \Illuminate\Contracts\Foundation\Application $app
  18279. * @return \Illuminate\Filesystem\FilesystemManager
  18280. * @static
  18281. */
  18282. public static function setApplication($app)
  18283. {
  18284. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  18285. return $instance->setApplication($app);
  18286. }
  18287. /**
  18288. * Get the URL for the file at the given path.
  18289. *
  18290. * @param string $path
  18291. * @return string
  18292. * @throws \RuntimeException
  18293. * @static
  18294. */
  18295. public static function url($path)
  18296. {
  18297. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18298. return $instance->url($path);
  18299. }
  18300. /**
  18301. * Determine if temporary URLs can be generated.
  18302. *
  18303. * @return bool
  18304. * @static
  18305. */
  18306. public static function providesTemporaryUrls()
  18307. {
  18308. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18309. return $instance->providesTemporaryUrls();
  18310. }
  18311. /**
  18312. * Get a temporary URL for the file at the given path.
  18313. *
  18314. * @param string $path
  18315. * @param \DateTimeInterface $expiration
  18316. * @param array $options
  18317. * @return string
  18318. * @static
  18319. */
  18320. public static function temporaryUrl($path, $expiration, $options = [])
  18321. {
  18322. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18323. return $instance->temporaryUrl($path, $expiration, $options);
  18324. }
  18325. /**
  18326. * Get a temporary upload URL for the file at the given path.
  18327. *
  18328. * @param string $path
  18329. * @param \DateTimeInterface $expiration
  18330. * @param array $options
  18331. * @return array
  18332. * @static
  18333. */
  18334. public static function temporaryUploadUrl($path, $expiration, $options = [])
  18335. {
  18336. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18337. return $instance->temporaryUploadUrl($path, $expiration, $options);
  18338. }
  18339. /**
  18340. * Get the underlying S3 client.
  18341. *
  18342. * @return \Aws\S3\S3Client
  18343. * @static
  18344. */
  18345. public static function getClient()
  18346. {
  18347. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18348. return $instance->getClient();
  18349. }
  18350. /**
  18351. * Assert that the given file or directory exists.
  18352. *
  18353. * @param string|array $path
  18354. * @param string|null $content
  18355. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18356. * @static
  18357. */
  18358. public static function assertExists($path, $content = null)
  18359. {
  18360. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18361. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18362. return $instance->assertExists($path, $content);
  18363. }
  18364. /**
  18365. * Assert that the number of files in path equals the expected count.
  18366. *
  18367. * @param string $path
  18368. * @param int $count
  18369. * @param bool $recursive
  18370. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18371. * @static
  18372. */
  18373. public static function assertCount($path, $count, $recursive = false)
  18374. {
  18375. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18376. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18377. return $instance->assertCount($path, $count, $recursive);
  18378. }
  18379. /**
  18380. * Assert that the given file or directory does not exist.
  18381. *
  18382. * @param string|array $path
  18383. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18384. * @static
  18385. */
  18386. public static function assertMissing($path)
  18387. {
  18388. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18389. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18390. return $instance->assertMissing($path);
  18391. }
  18392. /**
  18393. * Assert that the given directory is empty.
  18394. *
  18395. * @param string $path
  18396. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  18397. * @static
  18398. */
  18399. public static function assertDirectoryEmpty($path)
  18400. {
  18401. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18402. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18403. return $instance->assertDirectoryEmpty($path);
  18404. }
  18405. /**
  18406. * Determine if a file or directory exists.
  18407. *
  18408. * @param string $path
  18409. * @return bool
  18410. * @static
  18411. */
  18412. public static function exists($path)
  18413. {
  18414. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18415. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18416. return $instance->exists($path);
  18417. }
  18418. /**
  18419. * Determine if a file or directory is missing.
  18420. *
  18421. * @param string $path
  18422. * @return bool
  18423. * @static
  18424. */
  18425. public static function missing($path)
  18426. {
  18427. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18428. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18429. return $instance->missing($path);
  18430. }
  18431. /**
  18432. * Determine if a file exists.
  18433. *
  18434. * @param string $path
  18435. * @return bool
  18436. * @static
  18437. */
  18438. public static function fileExists($path)
  18439. {
  18440. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18441. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18442. return $instance->fileExists($path);
  18443. }
  18444. /**
  18445. * Determine if a file is missing.
  18446. *
  18447. * @param string $path
  18448. * @return bool
  18449. * @static
  18450. */
  18451. public static function fileMissing($path)
  18452. {
  18453. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18454. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18455. return $instance->fileMissing($path);
  18456. }
  18457. /**
  18458. * Determine if a directory exists.
  18459. *
  18460. * @param string $path
  18461. * @return bool
  18462. * @static
  18463. */
  18464. public static function directoryExists($path)
  18465. {
  18466. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18467. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18468. return $instance->directoryExists($path);
  18469. }
  18470. /**
  18471. * Determine if a directory is missing.
  18472. *
  18473. * @param string $path
  18474. * @return bool
  18475. * @static
  18476. */
  18477. public static function directoryMissing($path)
  18478. {
  18479. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18480. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18481. return $instance->directoryMissing($path);
  18482. }
  18483. /**
  18484. * Get the full path to the file that exists at the given relative path.
  18485. *
  18486. * @param string $path
  18487. * @return string
  18488. * @static
  18489. */
  18490. public static function path($path)
  18491. {
  18492. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18493. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18494. return $instance->path($path);
  18495. }
  18496. /**
  18497. * Get the contents of a file.
  18498. *
  18499. * @param string $path
  18500. * @return string|null
  18501. * @static
  18502. */
  18503. public static function get($path)
  18504. {
  18505. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18506. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18507. return $instance->get($path);
  18508. }
  18509. /**
  18510. * Get the contents of a file as decoded JSON.
  18511. *
  18512. * @param string $path
  18513. * @param int $flags
  18514. * @return array|null
  18515. * @static
  18516. */
  18517. public static function json($path, $flags = 0)
  18518. {
  18519. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18520. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18521. return $instance->json($path, $flags);
  18522. }
  18523. /**
  18524. * Create a streamed response for a given file.
  18525. *
  18526. * @param string $path
  18527. * @param string|null $name
  18528. * @param array $headers
  18529. * @param string|null $disposition
  18530. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  18531. * @static
  18532. */
  18533. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  18534. {
  18535. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18536. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18537. return $instance->response($path, $name, $headers, $disposition);
  18538. }
  18539. /**
  18540. * Create a streamed download response for a given file.
  18541. *
  18542. * @param \Illuminate\Http\Request $request
  18543. * @param string $path
  18544. * @param string|null $name
  18545. * @param array $headers
  18546. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  18547. * @static
  18548. */
  18549. public static function serve($request, $path, $name = null, $headers = [])
  18550. {
  18551. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18552. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18553. return $instance->serve($request, $path, $name, $headers);
  18554. }
  18555. /**
  18556. * Create a streamed download response for a given file.
  18557. *
  18558. * @param string $path
  18559. * @param string|null $name
  18560. * @param array $headers
  18561. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  18562. * @static
  18563. */
  18564. public static function download($path, $name = null, $headers = [])
  18565. {
  18566. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18567. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18568. return $instance->download($path, $name, $headers);
  18569. }
  18570. /**
  18571. * Write the contents of a file.
  18572. *
  18573. * @param string $path
  18574. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  18575. * @param mixed $options
  18576. * @return string|bool
  18577. * @static
  18578. */
  18579. public static function put($path, $contents, $options = [])
  18580. {
  18581. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18582. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18583. return $instance->put($path, $contents, $options);
  18584. }
  18585. /**
  18586. * Store the uploaded file on the disk.
  18587. *
  18588. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path
  18589. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file
  18590. * @param mixed $options
  18591. * @return string|false
  18592. * @static
  18593. */
  18594. public static function putFile($path, $file = null, $options = [])
  18595. {
  18596. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18597. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18598. return $instance->putFile($path, $file, $options);
  18599. }
  18600. /**
  18601. * Store the uploaded file on the disk with a given name.
  18602. *
  18603. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path
  18604. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file
  18605. * @param string|array|null $name
  18606. * @param mixed $options
  18607. * @return string|false
  18608. * @static
  18609. */
  18610. public static function putFileAs($path, $file, $name = null, $options = [])
  18611. {
  18612. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18613. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18614. return $instance->putFileAs($path, $file, $name, $options);
  18615. }
  18616. /**
  18617. * Get the visibility for the given path.
  18618. *
  18619. * @param string $path
  18620. * @return string
  18621. * @static
  18622. */
  18623. public static function getVisibility($path)
  18624. {
  18625. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18626. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18627. return $instance->getVisibility($path);
  18628. }
  18629. /**
  18630. * Set the visibility for the given path.
  18631. *
  18632. * @param string $path
  18633. * @param string $visibility
  18634. * @return bool
  18635. * @static
  18636. */
  18637. public static function setVisibility($path, $visibility)
  18638. {
  18639. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18640. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18641. return $instance->setVisibility($path, $visibility);
  18642. }
  18643. /**
  18644. * Prepend to a file.
  18645. *
  18646. * @param string $path
  18647. * @param string $data
  18648. * @param string $separator
  18649. * @return bool
  18650. * @static
  18651. */
  18652. public static function prepend($path, $data, $separator = '
  18653. ')
  18654. {
  18655. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18656. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18657. return $instance->prepend($path, $data, $separator);
  18658. }
  18659. /**
  18660. * Append to a file.
  18661. *
  18662. * @param string $path
  18663. * @param string $data
  18664. * @param string $separator
  18665. * @return bool
  18666. * @static
  18667. */
  18668. public static function append($path, $data, $separator = '
  18669. ')
  18670. {
  18671. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18672. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18673. return $instance->append($path, $data, $separator);
  18674. }
  18675. /**
  18676. * Delete the file at a given path.
  18677. *
  18678. * @param string|array $paths
  18679. * @return bool
  18680. * @static
  18681. */
  18682. public static function delete($paths)
  18683. {
  18684. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18685. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18686. return $instance->delete($paths);
  18687. }
  18688. /**
  18689. * Copy a file to a new location.
  18690. *
  18691. * @param string $from
  18692. * @param string $to
  18693. * @return bool
  18694. * @static
  18695. */
  18696. public static function copy($from, $to)
  18697. {
  18698. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18699. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18700. return $instance->copy($from, $to);
  18701. }
  18702. /**
  18703. * Move a file to a new location.
  18704. *
  18705. * @param string $from
  18706. * @param string $to
  18707. * @return bool
  18708. * @static
  18709. */
  18710. public static function move($from, $to)
  18711. {
  18712. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18713. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18714. return $instance->move($from, $to);
  18715. }
  18716. /**
  18717. * Get the file size of a given file.
  18718. *
  18719. * @param string $path
  18720. * @return int
  18721. * @static
  18722. */
  18723. public static function size($path)
  18724. {
  18725. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18726. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18727. return $instance->size($path);
  18728. }
  18729. /**
  18730. * Get the checksum for a file.
  18731. *
  18732. * @return string|false
  18733. * @throws UnableToProvideChecksum
  18734. * @static
  18735. */
  18736. public static function checksum($path, $options = [])
  18737. {
  18738. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18739. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18740. return $instance->checksum($path, $options);
  18741. }
  18742. /**
  18743. * Get the mime-type of a given file.
  18744. *
  18745. * @param string $path
  18746. * @return string|false
  18747. * @static
  18748. */
  18749. public static function mimeType($path)
  18750. {
  18751. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18752. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18753. return $instance->mimeType($path);
  18754. }
  18755. /**
  18756. * Get the file's last modification time.
  18757. *
  18758. * @param string $path
  18759. * @return int
  18760. * @static
  18761. */
  18762. public static function lastModified($path)
  18763. {
  18764. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18765. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18766. return $instance->lastModified($path);
  18767. }
  18768. /**
  18769. * Get a resource to read the file.
  18770. *
  18771. * @param string $path
  18772. * @return resource|null The path resource or null on failure.
  18773. * @static
  18774. */
  18775. public static function readStream($path)
  18776. {
  18777. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18778. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18779. return $instance->readStream($path);
  18780. }
  18781. /**
  18782. * Write a new file using a stream.
  18783. *
  18784. * @param string $path
  18785. * @param resource $resource
  18786. * @param array $options
  18787. * @return bool
  18788. * @static
  18789. */
  18790. public static function writeStream($path, $resource, $options = [])
  18791. {
  18792. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18793. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18794. return $instance->writeStream($path, $resource, $options);
  18795. }
  18796. /**
  18797. * Get an array of all files in a directory.
  18798. *
  18799. * @param string|null $directory
  18800. * @param bool $recursive
  18801. * @return array
  18802. * @static
  18803. */
  18804. public static function files($directory = null, $recursive = false)
  18805. {
  18806. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18807. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18808. return $instance->files($directory, $recursive);
  18809. }
  18810. /**
  18811. * Get all of the files from the given directory (recursive).
  18812. *
  18813. * @param string|null $directory
  18814. * @return array
  18815. * @static
  18816. */
  18817. public static function allFiles($directory = null)
  18818. {
  18819. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18820. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18821. return $instance->allFiles($directory);
  18822. }
  18823. /**
  18824. * Get all of the directories within a given directory.
  18825. *
  18826. * @param string|null $directory
  18827. * @param bool $recursive
  18828. * @return array
  18829. * @static
  18830. */
  18831. public static function directories($directory = null, $recursive = false)
  18832. {
  18833. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18834. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18835. return $instance->directories($directory, $recursive);
  18836. }
  18837. /**
  18838. * Get all the directories within a given directory (recursive).
  18839. *
  18840. * @param string|null $directory
  18841. * @return array
  18842. * @static
  18843. */
  18844. public static function allDirectories($directory = null)
  18845. {
  18846. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18847. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18848. return $instance->allDirectories($directory);
  18849. }
  18850. /**
  18851. * Create a directory.
  18852. *
  18853. * @param string $path
  18854. * @return bool
  18855. * @static
  18856. */
  18857. public static function makeDirectory($path)
  18858. {
  18859. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18860. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18861. return $instance->makeDirectory($path);
  18862. }
  18863. /**
  18864. * Recursively delete a directory.
  18865. *
  18866. * @param string $directory
  18867. * @return bool
  18868. * @static
  18869. */
  18870. public static function deleteDirectory($directory)
  18871. {
  18872. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18873. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18874. return $instance->deleteDirectory($directory);
  18875. }
  18876. /**
  18877. * Get the Flysystem driver.
  18878. *
  18879. * @return \League\Flysystem\FilesystemOperator
  18880. * @static
  18881. */
  18882. public static function getDriver()
  18883. {
  18884. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18885. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18886. return $instance->getDriver();
  18887. }
  18888. /**
  18889. * Get the Flysystem adapter.
  18890. *
  18891. * @return \League\Flysystem\FilesystemAdapter
  18892. * @static
  18893. */
  18894. public static function getAdapter()
  18895. {
  18896. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18897. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18898. return $instance->getAdapter();
  18899. }
  18900. /**
  18901. * Get the configuration values.
  18902. *
  18903. * @return array
  18904. * @static
  18905. */
  18906. public static function getConfig()
  18907. {
  18908. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18909. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18910. return $instance->getConfig();
  18911. }
  18912. /**
  18913. * Define a custom callback that generates file download responses.
  18914. *
  18915. * @param \Closure $callback
  18916. * @return void
  18917. * @static
  18918. */
  18919. public static function serveUsing($callback)
  18920. {
  18921. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18922. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18923. $instance->serveUsing($callback);
  18924. }
  18925. /**
  18926. * Define a custom temporary URL builder callback.
  18927. *
  18928. * @param \Closure $callback
  18929. * @return void
  18930. * @static
  18931. */
  18932. public static function buildTemporaryUrlsUsing($callback)
  18933. {
  18934. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18935. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18936. $instance->buildTemporaryUrlsUsing($callback);
  18937. }
  18938. /**
  18939. * Apply the callback if the given "value" is (or resolves to) truthy.
  18940. *
  18941. * @template TWhenParameter
  18942. * @template TWhenReturnType
  18943. * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
  18944. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  18945. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  18946. * @return $this|TWhenReturnType
  18947. * @static
  18948. */
  18949. public static function when($value = null, $callback = null, $default = null)
  18950. {
  18951. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18952. return $instance->when($value, $callback, $default);
  18953. }
  18954. /**
  18955. * Apply the callback if the given "value" is (or resolves to) falsy.
  18956. *
  18957. * @template TUnlessParameter
  18958. * @template TUnlessReturnType
  18959. * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  18960. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  18961. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  18962. * @return $this|TUnlessReturnType
  18963. * @static
  18964. */
  18965. public static function unless($value = null, $callback = null, $default = null)
  18966. {
  18967. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  18968. return $instance->unless($value, $callback, $default);
  18969. }
  18970. /**
  18971. * Register a custom macro.
  18972. *
  18973. * @param string $name
  18974. * @param object|callable $macro
  18975. * @param-closure-this static $macro
  18976. * @return void
  18977. * @static
  18978. */
  18979. public static function macro($name, $macro)
  18980. {
  18981. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18982. \Illuminate\Filesystem\AwsS3V3Adapter::macro($name, $macro);
  18983. }
  18984. /**
  18985. * Mix another object into the class.
  18986. *
  18987. * @param object $mixin
  18988. * @param bool $replace
  18989. * @return void
  18990. * @throws \ReflectionException
  18991. * @static
  18992. */
  18993. public static function mixin($mixin, $replace = true)
  18994. {
  18995. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  18996. \Illuminate\Filesystem\AwsS3V3Adapter::mixin($mixin, $replace);
  18997. }
  18998. /**
  18999. * Checks if macro is registered.
  19000. *
  19001. * @param string $name
  19002. * @return bool
  19003. * @static
  19004. */
  19005. public static function hasMacro($name)
  19006. {
  19007. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  19008. return \Illuminate\Filesystem\AwsS3V3Adapter::hasMacro($name);
  19009. }
  19010. /**
  19011. * Flush the existing macros.
  19012. *
  19013. * @return void
  19014. * @static
  19015. */
  19016. public static function flushMacros()
  19017. {
  19018. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  19019. \Illuminate\Filesystem\AwsS3V3Adapter::flushMacros();
  19020. }
  19021. /**
  19022. * Dynamically handle calls to the class.
  19023. *
  19024. * @param string $method
  19025. * @param array $parameters
  19026. * @return mixed
  19027. * @throws \BadMethodCallException
  19028. * @static
  19029. */
  19030. public static function macroCall($method, $parameters)
  19031. {
  19032. //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  19033. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  19034. return $instance->macroCall($method, $parameters);
  19035. }
  19036. }
  19037. /**
  19038. * @see \Illuminate\Routing\UrlGenerator
  19039. */
  19040. class URL {
  19041. /**
  19042. * Get the full URL for the current request.
  19043. *
  19044. * @return string
  19045. * @static
  19046. */
  19047. public static function full()
  19048. {
  19049. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19050. return $instance->full();
  19051. }
  19052. /**
  19053. * Get the current URL for the request.
  19054. *
  19055. * @return string
  19056. * @static
  19057. */
  19058. public static function current()
  19059. {
  19060. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19061. return $instance->current();
  19062. }
  19063. /**
  19064. * Get the URL for the previous request.
  19065. *
  19066. * @param mixed $fallback
  19067. * @return string
  19068. * @static
  19069. */
  19070. public static function previous($fallback = false)
  19071. {
  19072. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19073. return $instance->previous($fallback);
  19074. }
  19075. /**
  19076. * Get the previous path info for the request.
  19077. *
  19078. * @param mixed $fallback
  19079. * @return string
  19080. * @static
  19081. */
  19082. public static function previousPath($fallback = false)
  19083. {
  19084. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19085. return $instance->previousPath($fallback);
  19086. }
  19087. /**
  19088. * Generate an absolute URL to the given path.
  19089. *
  19090. * @param string $path
  19091. * @param mixed $extra
  19092. * @param bool|null $secure
  19093. * @return string
  19094. * @static
  19095. */
  19096. public static function to($path, $extra = [], $secure = null)
  19097. {
  19098. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19099. return $instance->to($path, $extra, $secure);
  19100. }
  19101. /**
  19102. * Generate an absolute URL with the given query parameters.
  19103. *
  19104. * @param string $path
  19105. * @param array $query
  19106. * @param mixed $extra
  19107. * @param bool|null $secure
  19108. * @return string
  19109. * @static
  19110. */
  19111. public static function query($path, $query = [], $extra = [], $secure = null)
  19112. {
  19113. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19114. return $instance->query($path, $query, $extra, $secure);
  19115. }
  19116. /**
  19117. * Generate a secure, absolute URL to the given path.
  19118. *
  19119. * @param string $path
  19120. * @param array $parameters
  19121. * @return string
  19122. * @static
  19123. */
  19124. public static function secure($path, $parameters = [])
  19125. {
  19126. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19127. return $instance->secure($path, $parameters);
  19128. }
  19129. /**
  19130. * Generate the URL to an application asset.
  19131. *
  19132. * @param string $path
  19133. * @param bool|null $secure
  19134. * @return string
  19135. * @static
  19136. */
  19137. public static function asset($path, $secure = null)
  19138. {
  19139. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19140. return $instance->asset($path, $secure);
  19141. }
  19142. /**
  19143. * Generate the URL to a secure asset.
  19144. *
  19145. * @param string $path
  19146. * @return string
  19147. * @static
  19148. */
  19149. public static function secureAsset($path)
  19150. {
  19151. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19152. return $instance->secureAsset($path);
  19153. }
  19154. /**
  19155. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  19156. *
  19157. * @param string $root
  19158. * @param string $path
  19159. * @param bool|null $secure
  19160. * @return string
  19161. * @static
  19162. */
  19163. public static function assetFrom($root, $path, $secure = null)
  19164. {
  19165. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19166. return $instance->assetFrom($root, $path, $secure);
  19167. }
  19168. /**
  19169. * Get the default scheme for a raw URL.
  19170. *
  19171. * @param bool|null $secure
  19172. * @return string
  19173. * @static
  19174. */
  19175. public static function formatScheme($secure = null)
  19176. {
  19177. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19178. return $instance->formatScheme($secure);
  19179. }
  19180. /**
  19181. * Create a signed route URL for a named route.
  19182. *
  19183. * @param \BackedEnum|string $name
  19184. * @param mixed $parameters
  19185. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  19186. * @param bool $absolute
  19187. * @return string
  19188. * @throws \InvalidArgumentException
  19189. * @static
  19190. */
  19191. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  19192. {
  19193. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19194. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  19195. }
  19196. /**
  19197. * Create a temporary signed route URL for a named route.
  19198. *
  19199. * @param \BackedEnum|string $name
  19200. * @param \DateTimeInterface|\DateInterval|int $expiration
  19201. * @param array $parameters
  19202. * @param bool $absolute
  19203. * @return string
  19204. * @static
  19205. */
  19206. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  19207. {
  19208. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19209. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  19210. }
  19211. /**
  19212. * Determine if the given request has a valid signature.
  19213. *
  19214. * @param \Illuminate\Http\Request $request
  19215. * @param bool $absolute
  19216. * @param \Closure|array $ignoreQuery
  19217. * @return bool
  19218. * @static
  19219. */
  19220. public static function hasValidSignature($request, $absolute = true, $ignoreQuery = [])
  19221. {
  19222. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19223. return $instance->hasValidSignature($request, $absolute, $ignoreQuery);
  19224. }
  19225. /**
  19226. * Determine if the given request has a valid signature for a relative URL.
  19227. *
  19228. * @param \Illuminate\Http\Request $request
  19229. * @param \Closure|array $ignoreQuery
  19230. * @return bool
  19231. * @static
  19232. */
  19233. public static function hasValidRelativeSignature($request, $ignoreQuery = [])
  19234. {
  19235. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19236. return $instance->hasValidRelativeSignature($request, $ignoreQuery);
  19237. }
  19238. /**
  19239. * Determine if the signature from the given request matches the URL.
  19240. *
  19241. * @param \Illuminate\Http\Request $request
  19242. * @param bool $absolute
  19243. * @param \Closure|array $ignoreQuery
  19244. * @return bool
  19245. * @static
  19246. */
  19247. public static function hasCorrectSignature($request, $absolute = true, $ignoreQuery = [])
  19248. {
  19249. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19250. return $instance->hasCorrectSignature($request, $absolute, $ignoreQuery);
  19251. }
  19252. /**
  19253. * Determine if the expires timestamp from the given request is not from the past.
  19254. *
  19255. * @param \Illuminate\Http\Request $request
  19256. * @return bool
  19257. * @static
  19258. */
  19259. public static function signatureHasNotExpired($request)
  19260. {
  19261. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19262. return $instance->signatureHasNotExpired($request);
  19263. }
  19264. /**
  19265. * Get the URL to a named route.
  19266. *
  19267. * @param \BackedEnum|string $name
  19268. * @param mixed $parameters
  19269. * @param bool $absolute
  19270. * @return string
  19271. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException|\InvalidArgumentException
  19272. * @static
  19273. */
  19274. public static function route($name, $parameters = [], $absolute = true)
  19275. {
  19276. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19277. return $instance->route($name, $parameters, $absolute);
  19278. }
  19279. /**
  19280. * Get the URL for a given route instance.
  19281. *
  19282. * @param \Illuminate\Routing\Route $route
  19283. * @param mixed $parameters
  19284. * @param bool $absolute
  19285. * @return string
  19286. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  19287. * @static
  19288. */
  19289. public static function toRoute($route, $parameters, $absolute)
  19290. {
  19291. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19292. return $instance->toRoute($route, $parameters, $absolute);
  19293. }
  19294. /**
  19295. * Get the URL to a controller action.
  19296. *
  19297. * @param string|array $action
  19298. * @param mixed $parameters
  19299. * @param bool $absolute
  19300. * @return string
  19301. * @throws \InvalidArgumentException
  19302. * @static
  19303. */
  19304. public static function action($action, $parameters = [], $absolute = true)
  19305. {
  19306. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19307. return $instance->action($action, $parameters, $absolute);
  19308. }
  19309. /**
  19310. * Format the array of URL parameters.
  19311. *
  19312. * @param mixed $parameters
  19313. * @return array
  19314. * @static
  19315. */
  19316. public static function formatParameters($parameters)
  19317. {
  19318. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19319. return $instance->formatParameters($parameters);
  19320. }
  19321. /**
  19322. * Get the base URL for the request.
  19323. *
  19324. * @param string $scheme
  19325. * @param string|null $root
  19326. * @return string
  19327. * @static
  19328. */
  19329. public static function formatRoot($scheme, $root = null)
  19330. {
  19331. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19332. return $instance->formatRoot($scheme, $root);
  19333. }
  19334. /**
  19335. * Format the given URL segments into a single URL.
  19336. *
  19337. * @param string $root
  19338. * @param string $path
  19339. * @param \Illuminate\Routing\Route|null $route
  19340. * @return string
  19341. * @static
  19342. */
  19343. public static function format($root, $path, $route = null)
  19344. {
  19345. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19346. return $instance->format($root, $path, $route);
  19347. }
  19348. /**
  19349. * Determine if the given path is a valid URL.
  19350. *
  19351. * @param string $path
  19352. * @return bool
  19353. * @static
  19354. */
  19355. public static function isValidUrl($path)
  19356. {
  19357. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19358. return $instance->isValidUrl($path);
  19359. }
  19360. /**
  19361. * Set the default named parameters used by the URL generator.
  19362. *
  19363. * @param array $defaults
  19364. * @return void
  19365. * @static
  19366. */
  19367. public static function defaults($defaults)
  19368. {
  19369. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19370. $instance->defaults($defaults);
  19371. }
  19372. /**
  19373. * Get the default named parameters used by the URL generator.
  19374. *
  19375. * @return array
  19376. * @static
  19377. */
  19378. public static function getDefaultParameters()
  19379. {
  19380. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19381. return $instance->getDefaultParameters();
  19382. }
  19383. /**
  19384. * Force the scheme for URLs.
  19385. *
  19386. * @param string|null $scheme
  19387. * @return void
  19388. * @static
  19389. */
  19390. public static function forceScheme($scheme)
  19391. {
  19392. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19393. $instance->forceScheme($scheme);
  19394. }
  19395. /**
  19396. * Force the use of the HTTPS scheme for all generated URLs.
  19397. *
  19398. * @param bool $force
  19399. * @return void
  19400. * @static
  19401. */
  19402. public static function forceHttps($force = true)
  19403. {
  19404. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19405. $instance->forceHttps($force);
  19406. }
  19407. /**
  19408. * Set the URL origin for all generated URLs.
  19409. *
  19410. * @param string|null $root
  19411. * @return void
  19412. * @static
  19413. */
  19414. public static function useOrigin($root)
  19415. {
  19416. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19417. $instance->useOrigin($root);
  19418. }
  19419. /**
  19420. * Set the forced root URL.
  19421. *
  19422. * @param string|null $root
  19423. * @return void
  19424. * @deprecated Use useOrigin
  19425. * @static
  19426. */
  19427. public static function forceRootUrl($root)
  19428. {
  19429. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19430. $instance->forceRootUrl($root);
  19431. }
  19432. /**
  19433. * Set the URL origin for all generated asset URLs.
  19434. *
  19435. * @param string|null $root
  19436. * @return void
  19437. * @static
  19438. */
  19439. public static function useAssetOrigin($root)
  19440. {
  19441. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19442. $instance->useAssetOrigin($root);
  19443. }
  19444. /**
  19445. * Set a callback to be used to format the host of generated URLs.
  19446. *
  19447. * @param \Closure $callback
  19448. * @return \Illuminate\Routing\UrlGenerator
  19449. * @static
  19450. */
  19451. public static function formatHostUsing($callback)
  19452. {
  19453. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19454. return $instance->formatHostUsing($callback);
  19455. }
  19456. /**
  19457. * Set a callback to be used to format the path of generated URLs.
  19458. *
  19459. * @param \Closure $callback
  19460. * @return \Illuminate\Routing\UrlGenerator
  19461. * @static
  19462. */
  19463. public static function formatPathUsing($callback)
  19464. {
  19465. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19466. return $instance->formatPathUsing($callback);
  19467. }
  19468. /**
  19469. * Get the path formatter being used by the URL generator.
  19470. *
  19471. * @return \Closure
  19472. * @static
  19473. */
  19474. public static function pathFormatter()
  19475. {
  19476. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19477. return $instance->pathFormatter();
  19478. }
  19479. /**
  19480. * Get the request instance.
  19481. *
  19482. * @return \Illuminate\Http\Request
  19483. * @static
  19484. */
  19485. public static function getRequest()
  19486. {
  19487. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19488. return $instance->getRequest();
  19489. }
  19490. /**
  19491. * Set the current request instance.
  19492. *
  19493. * @param \Illuminate\Http\Request $request
  19494. * @return void
  19495. * @static
  19496. */
  19497. public static function setRequest($request)
  19498. {
  19499. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19500. $instance->setRequest($request);
  19501. }
  19502. /**
  19503. * Set the route collection.
  19504. *
  19505. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  19506. * @return \Illuminate\Routing\UrlGenerator
  19507. * @static
  19508. */
  19509. public static function setRoutes($routes)
  19510. {
  19511. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19512. return $instance->setRoutes($routes);
  19513. }
  19514. /**
  19515. * Set the session resolver for the generator.
  19516. *
  19517. * @param callable $sessionResolver
  19518. * @return \Illuminate\Routing\UrlGenerator
  19519. * @static
  19520. */
  19521. public static function setSessionResolver($sessionResolver)
  19522. {
  19523. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19524. return $instance->setSessionResolver($sessionResolver);
  19525. }
  19526. /**
  19527. * Set the encryption key resolver.
  19528. *
  19529. * @param callable $keyResolver
  19530. * @return \Illuminate\Routing\UrlGenerator
  19531. * @static
  19532. */
  19533. public static function setKeyResolver($keyResolver)
  19534. {
  19535. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19536. return $instance->setKeyResolver($keyResolver);
  19537. }
  19538. /**
  19539. * Clone a new instance of the URL generator with a different encryption key resolver.
  19540. *
  19541. * @param callable $keyResolver
  19542. * @return \Illuminate\Routing\UrlGenerator
  19543. * @static
  19544. */
  19545. public static function withKeyResolver($keyResolver)
  19546. {
  19547. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19548. return $instance->withKeyResolver($keyResolver);
  19549. }
  19550. /**
  19551. * Set the callback that should be used to attempt to resolve missing named routes.
  19552. *
  19553. * @param callable $missingNamedRouteResolver
  19554. * @return \Illuminate\Routing\UrlGenerator
  19555. * @static
  19556. */
  19557. public static function resolveMissingNamedRoutesUsing($missingNamedRouteResolver)
  19558. {
  19559. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19560. return $instance->resolveMissingNamedRoutesUsing($missingNamedRouteResolver);
  19561. }
  19562. /**
  19563. * Get the root controller namespace.
  19564. *
  19565. * @return string
  19566. * @static
  19567. */
  19568. public static function getRootControllerNamespace()
  19569. {
  19570. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19571. return $instance->getRootControllerNamespace();
  19572. }
  19573. /**
  19574. * Set the root controller namespace.
  19575. *
  19576. * @param string $rootNamespace
  19577. * @return \Illuminate\Routing\UrlGenerator
  19578. * @static
  19579. */
  19580. public static function setRootControllerNamespace($rootNamespace)
  19581. {
  19582. /** @var \Illuminate\Routing\UrlGenerator $instance */
  19583. return $instance->setRootControllerNamespace($rootNamespace);
  19584. }
  19585. /**
  19586. * Register a custom macro.
  19587. *
  19588. * @param string $name
  19589. * @param object|callable $macro
  19590. * @param-closure-this static $macro
  19591. * @return void
  19592. * @static
  19593. */
  19594. public static function macro($name, $macro)
  19595. {
  19596. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  19597. }
  19598. /**
  19599. * Mix another object into the class.
  19600. *
  19601. * @param object $mixin
  19602. * @param bool $replace
  19603. * @return void
  19604. * @throws \ReflectionException
  19605. * @static
  19606. */
  19607. public static function mixin($mixin, $replace = true)
  19608. {
  19609. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  19610. }
  19611. /**
  19612. * Checks if macro is registered.
  19613. *
  19614. * @param string $name
  19615. * @return bool
  19616. * @static
  19617. */
  19618. public static function hasMacro($name)
  19619. {
  19620. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  19621. }
  19622. /**
  19623. * Flush the existing macros.
  19624. *
  19625. * @return void
  19626. * @static
  19627. */
  19628. public static function flushMacros()
  19629. {
  19630. \Illuminate\Routing\UrlGenerator::flushMacros();
  19631. }
  19632. }
  19633. /**
  19634. * @see \Illuminate\Validation\Factory
  19635. */
  19636. class Validator {
  19637. /**
  19638. * Create a new Validator instance.
  19639. *
  19640. * @param array $data
  19641. * @param array $rules
  19642. * @param array $messages
  19643. * @param array $attributes
  19644. * @return \Illuminate\Validation\Validator
  19645. * @static
  19646. */
  19647. public static function make($data, $rules, $messages = [], $attributes = [])
  19648. {
  19649. /** @var \Illuminate\Validation\Factory $instance */
  19650. return $instance->make($data, $rules, $messages, $attributes);
  19651. }
  19652. /**
  19653. * Validate the given data against the provided rules.
  19654. *
  19655. * @param array $data
  19656. * @param array $rules
  19657. * @param array $messages
  19658. * @param array $attributes
  19659. * @return array
  19660. * @throws \Illuminate\Validation\ValidationException
  19661. * @static
  19662. */
  19663. public static function validate($data, $rules, $messages = [], $attributes = [])
  19664. {
  19665. /** @var \Illuminate\Validation\Factory $instance */
  19666. return $instance->validate($data, $rules, $messages, $attributes);
  19667. }
  19668. /**
  19669. * Register a custom validator extension.
  19670. *
  19671. * @param string $rule
  19672. * @param \Closure|string $extension
  19673. * @param string|null $message
  19674. * @return void
  19675. * @static
  19676. */
  19677. public static function extend($rule, $extension, $message = null)
  19678. {
  19679. /** @var \Illuminate\Validation\Factory $instance */
  19680. $instance->extend($rule, $extension, $message);
  19681. }
  19682. /**
  19683. * Register a custom implicit validator extension.
  19684. *
  19685. * @param string $rule
  19686. * @param \Closure|string $extension
  19687. * @param string|null $message
  19688. * @return void
  19689. * @static
  19690. */
  19691. public static function extendImplicit($rule, $extension, $message = null)
  19692. {
  19693. /** @var \Illuminate\Validation\Factory $instance */
  19694. $instance->extendImplicit($rule, $extension, $message);
  19695. }
  19696. /**
  19697. * Register a custom dependent validator extension.
  19698. *
  19699. * @param string $rule
  19700. * @param \Closure|string $extension
  19701. * @param string|null $message
  19702. * @return void
  19703. * @static
  19704. */
  19705. public static function extendDependent($rule, $extension, $message = null)
  19706. {
  19707. /** @var \Illuminate\Validation\Factory $instance */
  19708. $instance->extendDependent($rule, $extension, $message);
  19709. }
  19710. /**
  19711. * Register a custom validator message replacer.
  19712. *
  19713. * @param string $rule
  19714. * @param \Closure|string $replacer
  19715. * @return void
  19716. * @static
  19717. */
  19718. public static function replacer($rule, $replacer)
  19719. {
  19720. /** @var \Illuminate\Validation\Factory $instance */
  19721. $instance->replacer($rule, $replacer);
  19722. }
  19723. /**
  19724. * Indicate that unvalidated array keys should be included in validated data when the parent array is validated.
  19725. *
  19726. * @return void
  19727. * @static
  19728. */
  19729. public static function includeUnvalidatedArrayKeys()
  19730. {
  19731. /** @var \Illuminate\Validation\Factory $instance */
  19732. $instance->includeUnvalidatedArrayKeys();
  19733. }
  19734. /**
  19735. * Indicate that unvalidated array keys should be excluded from the validated data, even if the parent array was validated.
  19736. *
  19737. * @return void
  19738. * @static
  19739. */
  19740. public static function excludeUnvalidatedArrayKeys()
  19741. {
  19742. /** @var \Illuminate\Validation\Factory $instance */
  19743. $instance->excludeUnvalidatedArrayKeys();
  19744. }
  19745. /**
  19746. * Set the Validator instance resolver.
  19747. *
  19748. * @param \Closure $resolver
  19749. * @return void
  19750. * @static
  19751. */
  19752. public static function resolver($resolver)
  19753. {
  19754. /** @var \Illuminate\Validation\Factory $instance */
  19755. $instance->resolver($resolver);
  19756. }
  19757. /**
  19758. * Get the Translator implementation.
  19759. *
  19760. * @return \Illuminate\Contracts\Translation\Translator
  19761. * @static
  19762. */
  19763. public static function getTranslator()
  19764. {
  19765. /** @var \Illuminate\Validation\Factory $instance */
  19766. return $instance->getTranslator();
  19767. }
  19768. /**
  19769. * Get the Presence Verifier implementation.
  19770. *
  19771. * @return \Illuminate\Validation\PresenceVerifierInterface
  19772. * @static
  19773. */
  19774. public static function getPresenceVerifier()
  19775. {
  19776. /** @var \Illuminate\Validation\Factory $instance */
  19777. return $instance->getPresenceVerifier();
  19778. }
  19779. /**
  19780. * Set the Presence Verifier implementation.
  19781. *
  19782. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  19783. * @return void
  19784. * @static
  19785. */
  19786. public static function setPresenceVerifier($presenceVerifier)
  19787. {
  19788. /** @var \Illuminate\Validation\Factory $instance */
  19789. $instance->setPresenceVerifier($presenceVerifier);
  19790. }
  19791. /**
  19792. * Get the container instance used by the validation factory.
  19793. *
  19794. * @return \Illuminate\Contracts\Container\Container|null
  19795. * @static
  19796. */
  19797. public static function getContainer()
  19798. {
  19799. /** @var \Illuminate\Validation\Factory $instance */
  19800. return $instance->getContainer();
  19801. }
  19802. /**
  19803. * Set the container instance used by the validation factory.
  19804. *
  19805. * @param \Illuminate\Contracts\Container\Container $container
  19806. * @return \Illuminate\Validation\Factory
  19807. * @static
  19808. */
  19809. public static function setContainer($container)
  19810. {
  19811. /** @var \Illuminate\Validation\Factory $instance */
  19812. return $instance->setContainer($container);
  19813. }
  19814. }
  19815. /**
  19816. * @see \Illuminate\View\Factory
  19817. */
  19818. class View {
  19819. /**
  19820. * Get the evaluated view contents for the given view.
  19821. *
  19822. * @param string $path
  19823. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  19824. * @param array $mergeData
  19825. * @return \Illuminate\Contracts\View\View
  19826. * @static
  19827. */
  19828. public static function file($path, $data = [], $mergeData = [])
  19829. {
  19830. /** @var \Illuminate\View\Factory $instance */
  19831. return $instance->file($path, $data, $mergeData);
  19832. }
  19833. /**
  19834. * Get the evaluated view contents for the given view.
  19835. *
  19836. * @param string $view
  19837. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  19838. * @param array $mergeData
  19839. * @return \Illuminate\Contracts\View\View
  19840. * @static
  19841. */
  19842. public static function make($view, $data = [], $mergeData = [])
  19843. {
  19844. /** @var \Illuminate\View\Factory $instance */
  19845. return $instance->make($view, $data, $mergeData);
  19846. }
  19847. /**
  19848. * Get the first view that actually exists from the given list.
  19849. *
  19850. * @param array $views
  19851. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  19852. * @param array $mergeData
  19853. * @return \Illuminate\Contracts\View\View
  19854. * @throws \InvalidArgumentException
  19855. * @static
  19856. */
  19857. public static function first($views, $data = [], $mergeData = [])
  19858. {
  19859. /** @var \Illuminate\View\Factory $instance */
  19860. return $instance->first($views, $data, $mergeData);
  19861. }
  19862. /**
  19863. * Get the rendered content of the view based on a given condition.
  19864. *
  19865. * @param bool $condition
  19866. * @param string $view
  19867. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  19868. * @param array $mergeData
  19869. * @return string
  19870. * @static
  19871. */
  19872. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  19873. {
  19874. /** @var \Illuminate\View\Factory $instance */
  19875. return $instance->renderWhen($condition, $view, $data, $mergeData);
  19876. }
  19877. /**
  19878. * Get the rendered content of the view based on the negation of a given condition.
  19879. *
  19880. * @param bool $condition
  19881. * @param string $view
  19882. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  19883. * @param array $mergeData
  19884. * @return string
  19885. * @static
  19886. */
  19887. public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  19888. {
  19889. /** @var \Illuminate\View\Factory $instance */
  19890. return $instance->renderUnless($condition, $view, $data, $mergeData);
  19891. }
  19892. /**
  19893. * Get the rendered contents of a partial from a loop.
  19894. *
  19895. * @param string $view
  19896. * @param array $data
  19897. * @param string $iterator
  19898. * @param string $empty
  19899. * @return string
  19900. * @static
  19901. */
  19902. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  19903. {
  19904. /** @var \Illuminate\View\Factory $instance */
  19905. return $instance->renderEach($view, $data, $iterator, $empty);
  19906. }
  19907. /**
  19908. * Determine if a given view exists.
  19909. *
  19910. * @param string $view
  19911. * @return bool
  19912. * @static
  19913. */
  19914. public static function exists($view)
  19915. {
  19916. /** @var \Illuminate\View\Factory $instance */
  19917. return $instance->exists($view);
  19918. }
  19919. /**
  19920. * Get the appropriate view engine for the given path.
  19921. *
  19922. * @param string $path
  19923. * @return \Illuminate\Contracts\View\Engine
  19924. * @throws \InvalidArgumentException
  19925. * @static
  19926. */
  19927. public static function getEngineFromPath($path)
  19928. {
  19929. /** @var \Illuminate\View\Factory $instance */
  19930. return $instance->getEngineFromPath($path);
  19931. }
  19932. /**
  19933. * Add a piece of shared data to the environment.
  19934. *
  19935. * @param array|string $key
  19936. * @param mixed|null $value
  19937. * @return mixed
  19938. * @static
  19939. */
  19940. public static function share($key, $value = null)
  19941. {
  19942. /** @var \Illuminate\View\Factory $instance */
  19943. return $instance->share($key, $value);
  19944. }
  19945. /**
  19946. * Increment the rendering counter.
  19947. *
  19948. * @return void
  19949. * @static
  19950. */
  19951. public static function incrementRender()
  19952. {
  19953. /** @var \Illuminate\View\Factory $instance */
  19954. $instance->incrementRender();
  19955. }
  19956. /**
  19957. * Decrement the rendering counter.
  19958. *
  19959. * @return void
  19960. * @static
  19961. */
  19962. public static function decrementRender()
  19963. {
  19964. /** @var \Illuminate\View\Factory $instance */
  19965. $instance->decrementRender();
  19966. }
  19967. /**
  19968. * Check if there are no active render operations.
  19969. *
  19970. * @return bool
  19971. * @static
  19972. */
  19973. public static function doneRendering()
  19974. {
  19975. /** @var \Illuminate\View\Factory $instance */
  19976. return $instance->doneRendering();
  19977. }
  19978. /**
  19979. * Determine if the given once token has been rendered.
  19980. *
  19981. * @param string $id
  19982. * @return bool
  19983. * @static
  19984. */
  19985. public static function hasRenderedOnce($id)
  19986. {
  19987. /** @var \Illuminate\View\Factory $instance */
  19988. return $instance->hasRenderedOnce($id);
  19989. }
  19990. /**
  19991. * Mark the given once token as having been rendered.
  19992. *
  19993. * @param string $id
  19994. * @return void
  19995. * @static
  19996. */
  19997. public static function markAsRenderedOnce($id)
  19998. {
  19999. /** @var \Illuminate\View\Factory $instance */
  20000. $instance->markAsRenderedOnce($id);
  20001. }
  20002. /**
  20003. * Add a location to the array of view locations.
  20004. *
  20005. * @param string $location
  20006. * @return void
  20007. * @static
  20008. */
  20009. public static function addLocation($location)
  20010. {
  20011. /** @var \Illuminate\View\Factory $instance */
  20012. $instance->addLocation($location);
  20013. }
  20014. /**
  20015. * Prepend a location to the array of view locations.
  20016. *
  20017. * @param string $location
  20018. * @return void
  20019. * @static
  20020. */
  20021. public static function prependLocation($location)
  20022. {
  20023. /** @var \Illuminate\View\Factory $instance */
  20024. $instance->prependLocation($location);
  20025. }
  20026. /**
  20027. * Add a new namespace to the loader.
  20028. *
  20029. * @param string $namespace
  20030. * @param string|array $hints
  20031. * @return \Illuminate\View\Factory
  20032. * @static
  20033. */
  20034. public static function addNamespace($namespace, $hints)
  20035. {
  20036. /** @var \Illuminate\View\Factory $instance */
  20037. return $instance->addNamespace($namespace, $hints);
  20038. }
  20039. /**
  20040. * Prepend a new namespace to the loader.
  20041. *
  20042. * @param string $namespace
  20043. * @param string|array $hints
  20044. * @return \Illuminate\View\Factory
  20045. * @static
  20046. */
  20047. public static function prependNamespace($namespace, $hints)
  20048. {
  20049. /** @var \Illuminate\View\Factory $instance */
  20050. return $instance->prependNamespace($namespace, $hints);
  20051. }
  20052. /**
  20053. * Replace the namespace hints for the given namespace.
  20054. *
  20055. * @param string $namespace
  20056. * @param string|array $hints
  20057. * @return \Illuminate\View\Factory
  20058. * @static
  20059. */
  20060. public static function replaceNamespace($namespace, $hints)
  20061. {
  20062. /** @var \Illuminate\View\Factory $instance */
  20063. return $instance->replaceNamespace($namespace, $hints);
  20064. }
  20065. /**
  20066. * Register a valid view extension and its engine.
  20067. *
  20068. * @param string $extension
  20069. * @param string $engine
  20070. * @param \Closure|null $resolver
  20071. * @return void
  20072. * @static
  20073. */
  20074. public static function addExtension($extension, $engine, $resolver = null)
  20075. {
  20076. /** @var \Illuminate\View\Factory $instance */
  20077. $instance->addExtension($extension, $engine, $resolver);
  20078. }
  20079. /**
  20080. * Flush all of the factory state like sections and stacks.
  20081. *
  20082. * @return void
  20083. * @static
  20084. */
  20085. public static function flushState()
  20086. {
  20087. /** @var \Illuminate\View\Factory $instance */
  20088. $instance->flushState();
  20089. }
  20090. /**
  20091. * Flush all of the section contents if done rendering.
  20092. *
  20093. * @return void
  20094. * @static
  20095. */
  20096. public static function flushStateIfDoneRendering()
  20097. {
  20098. /** @var \Illuminate\View\Factory $instance */
  20099. $instance->flushStateIfDoneRendering();
  20100. }
  20101. /**
  20102. * Get the extension to engine bindings.
  20103. *
  20104. * @return array
  20105. * @static
  20106. */
  20107. public static function getExtensions()
  20108. {
  20109. /** @var \Illuminate\View\Factory $instance */
  20110. return $instance->getExtensions();
  20111. }
  20112. /**
  20113. * Get the engine resolver instance.
  20114. *
  20115. * @return \Illuminate\View\Engines\EngineResolver
  20116. * @static
  20117. */
  20118. public static function getEngineResolver()
  20119. {
  20120. /** @var \Illuminate\View\Factory $instance */
  20121. return $instance->getEngineResolver();
  20122. }
  20123. /**
  20124. * Get the view finder instance.
  20125. *
  20126. * @return \Illuminate\View\ViewFinderInterface
  20127. * @static
  20128. */
  20129. public static function getFinder()
  20130. {
  20131. /** @var \Illuminate\View\Factory $instance */
  20132. return $instance->getFinder();
  20133. }
  20134. /**
  20135. * Set the view finder instance.
  20136. *
  20137. * @param \Illuminate\View\ViewFinderInterface $finder
  20138. * @return void
  20139. * @static
  20140. */
  20141. public static function setFinder($finder)
  20142. {
  20143. /** @var \Illuminate\View\Factory $instance */
  20144. $instance->setFinder($finder);
  20145. }
  20146. /**
  20147. * Flush the cache of views located by the finder.
  20148. *
  20149. * @return void
  20150. * @static
  20151. */
  20152. public static function flushFinderCache()
  20153. {
  20154. /** @var \Illuminate\View\Factory $instance */
  20155. $instance->flushFinderCache();
  20156. }
  20157. /**
  20158. * Get the event dispatcher instance.
  20159. *
  20160. * @return \Illuminate\Contracts\Events\Dispatcher
  20161. * @static
  20162. */
  20163. public static function getDispatcher()
  20164. {
  20165. /** @var \Illuminate\View\Factory $instance */
  20166. return $instance->getDispatcher();
  20167. }
  20168. /**
  20169. * Set the event dispatcher instance.
  20170. *
  20171. * @param \Illuminate\Contracts\Events\Dispatcher $events
  20172. * @return void
  20173. * @static
  20174. */
  20175. public static function setDispatcher($events)
  20176. {
  20177. /** @var \Illuminate\View\Factory $instance */
  20178. $instance->setDispatcher($events);
  20179. }
  20180. /**
  20181. * Get the IoC container instance.
  20182. *
  20183. * @return \Illuminate\Contracts\Container\Container
  20184. * @static
  20185. */
  20186. public static function getContainer()
  20187. {
  20188. /** @var \Illuminate\View\Factory $instance */
  20189. return $instance->getContainer();
  20190. }
  20191. /**
  20192. * Set the IoC container instance.
  20193. *
  20194. * @param \Illuminate\Contracts\Container\Container $container
  20195. * @return void
  20196. * @static
  20197. */
  20198. public static function setContainer($container)
  20199. {
  20200. /** @var \Illuminate\View\Factory $instance */
  20201. $instance->setContainer($container);
  20202. }
  20203. /**
  20204. * Get an item from the shared data.
  20205. *
  20206. * @param string $key
  20207. * @param mixed $default
  20208. * @return mixed
  20209. * @static
  20210. */
  20211. public static function shared($key, $default = null)
  20212. {
  20213. /** @var \Illuminate\View\Factory $instance */
  20214. return $instance->shared($key, $default);
  20215. }
  20216. /**
  20217. * Get all of the shared data for the environment.
  20218. *
  20219. * @return array
  20220. * @static
  20221. */
  20222. public static function getShared()
  20223. {
  20224. /** @var \Illuminate\View\Factory $instance */
  20225. return $instance->getShared();
  20226. }
  20227. /**
  20228. * Register a custom macro.
  20229. *
  20230. * @param string $name
  20231. * @param object|callable $macro
  20232. * @param-closure-this static $macro
  20233. * @return void
  20234. * @static
  20235. */
  20236. public static function macro($name, $macro)
  20237. {
  20238. \Illuminate\View\Factory::macro($name, $macro);
  20239. }
  20240. /**
  20241. * Mix another object into the class.
  20242. *
  20243. * @param object $mixin
  20244. * @param bool $replace
  20245. * @return void
  20246. * @throws \ReflectionException
  20247. * @static
  20248. */
  20249. public static function mixin($mixin, $replace = true)
  20250. {
  20251. \Illuminate\View\Factory::mixin($mixin, $replace);
  20252. }
  20253. /**
  20254. * Checks if macro is registered.
  20255. *
  20256. * @param string $name
  20257. * @return bool
  20258. * @static
  20259. */
  20260. public static function hasMacro($name)
  20261. {
  20262. return \Illuminate\View\Factory::hasMacro($name);
  20263. }
  20264. /**
  20265. * Flush the existing macros.
  20266. *
  20267. * @return void
  20268. * @static
  20269. */
  20270. public static function flushMacros()
  20271. {
  20272. \Illuminate\View\Factory::flushMacros();
  20273. }
  20274. /**
  20275. * Start a component rendering process.
  20276. *
  20277. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  20278. * @param array $data
  20279. * @return void
  20280. * @static
  20281. */
  20282. public static function startComponent($view, $data = [])
  20283. {
  20284. /** @var \Illuminate\View\Factory $instance */
  20285. $instance->startComponent($view, $data);
  20286. }
  20287. /**
  20288. * Get the first view that actually exists from the given list, and start a component.
  20289. *
  20290. * @param array $names
  20291. * @param array $data
  20292. * @return void
  20293. * @static
  20294. */
  20295. public static function startComponentFirst($names, $data = [])
  20296. {
  20297. /** @var \Illuminate\View\Factory $instance */
  20298. $instance->startComponentFirst($names, $data);
  20299. }
  20300. /**
  20301. * Render the current component.
  20302. *
  20303. * @return string
  20304. * @static
  20305. */
  20306. public static function renderComponent()
  20307. {
  20308. /** @var \Illuminate\View\Factory $instance */
  20309. return $instance->renderComponent();
  20310. }
  20311. /**
  20312. * Get an item from the component data that exists above the current component.
  20313. *
  20314. * @param string $key
  20315. * @param mixed $default
  20316. * @return mixed|null
  20317. * @static
  20318. */
  20319. public static function getConsumableComponentData($key, $default = null)
  20320. {
  20321. /** @var \Illuminate\View\Factory $instance */
  20322. return $instance->getConsumableComponentData($key, $default);
  20323. }
  20324. /**
  20325. * Start the slot rendering process.
  20326. *
  20327. * @param string $name
  20328. * @param string|null $content
  20329. * @param array $attributes
  20330. * @return void
  20331. * @static
  20332. */
  20333. public static function slot($name, $content = null, $attributes = [])
  20334. {
  20335. /** @var \Illuminate\View\Factory $instance */
  20336. $instance->slot($name, $content, $attributes);
  20337. }
  20338. /**
  20339. * Save the slot content for rendering.
  20340. *
  20341. * @return void
  20342. * @static
  20343. */
  20344. public static function endSlot()
  20345. {
  20346. /** @var \Illuminate\View\Factory $instance */
  20347. $instance->endSlot();
  20348. }
  20349. /**
  20350. * Register a view creator event.
  20351. *
  20352. * @param array|string $views
  20353. * @param \Closure|string $callback
  20354. * @return array
  20355. * @static
  20356. */
  20357. public static function creator($views, $callback)
  20358. {
  20359. /** @var \Illuminate\View\Factory $instance */
  20360. return $instance->creator($views, $callback);
  20361. }
  20362. /**
  20363. * Register multiple view composers via an array.
  20364. *
  20365. * @param array $composers
  20366. * @return array
  20367. * @static
  20368. */
  20369. public static function composers($composers)
  20370. {
  20371. /** @var \Illuminate\View\Factory $instance */
  20372. return $instance->composers($composers);
  20373. }
  20374. /**
  20375. * Register a view composer event.
  20376. *
  20377. * @param array|string $views
  20378. * @param \Closure|string $callback
  20379. * @return array
  20380. * @static
  20381. */
  20382. public static function composer($views, $callback)
  20383. {
  20384. /** @var \Illuminate\View\Factory $instance */
  20385. return $instance->composer($views, $callback);
  20386. }
  20387. /**
  20388. * Call the composer for a given view.
  20389. *
  20390. * @param \Illuminate\Contracts\View\View $view
  20391. * @return void
  20392. * @static
  20393. */
  20394. public static function callComposer($view)
  20395. {
  20396. /** @var \Illuminate\View\Factory $instance */
  20397. $instance->callComposer($view);
  20398. }
  20399. /**
  20400. * Call the creator for a given view.
  20401. *
  20402. * @param \Illuminate\Contracts\View\View $view
  20403. * @return void
  20404. * @static
  20405. */
  20406. public static function callCreator($view)
  20407. {
  20408. /** @var \Illuminate\View\Factory $instance */
  20409. $instance->callCreator($view);
  20410. }
  20411. /**
  20412. * Start injecting content into a fragment.
  20413. *
  20414. * @param string $fragment
  20415. * @return void
  20416. * @static
  20417. */
  20418. public static function startFragment($fragment)
  20419. {
  20420. /** @var \Illuminate\View\Factory $instance */
  20421. $instance->startFragment($fragment);
  20422. }
  20423. /**
  20424. * Stop injecting content into a fragment.
  20425. *
  20426. * @return string
  20427. * @throws \InvalidArgumentException
  20428. * @static
  20429. */
  20430. public static function stopFragment()
  20431. {
  20432. /** @var \Illuminate\View\Factory $instance */
  20433. return $instance->stopFragment();
  20434. }
  20435. /**
  20436. * Get the contents of a fragment.
  20437. *
  20438. * @param string $name
  20439. * @param string|null $default
  20440. * @return mixed
  20441. * @static
  20442. */
  20443. public static function getFragment($name, $default = null)
  20444. {
  20445. /** @var \Illuminate\View\Factory $instance */
  20446. return $instance->getFragment($name, $default);
  20447. }
  20448. /**
  20449. * Get the entire array of rendered fragments.
  20450. *
  20451. * @return array
  20452. * @static
  20453. */
  20454. public static function getFragments()
  20455. {
  20456. /** @var \Illuminate\View\Factory $instance */
  20457. return $instance->getFragments();
  20458. }
  20459. /**
  20460. * Flush all of the fragments.
  20461. *
  20462. * @return void
  20463. * @static
  20464. */
  20465. public static function flushFragments()
  20466. {
  20467. /** @var \Illuminate\View\Factory $instance */
  20468. $instance->flushFragments();
  20469. }
  20470. /**
  20471. * Start injecting content into a section.
  20472. *
  20473. * @param string $section
  20474. * @param string|null $content
  20475. * @return void
  20476. * @static
  20477. */
  20478. public static function startSection($section, $content = null)
  20479. {
  20480. /** @var \Illuminate\View\Factory $instance */
  20481. $instance->startSection($section, $content);
  20482. }
  20483. /**
  20484. * Inject inline content into a section.
  20485. *
  20486. * @param string $section
  20487. * @param string $content
  20488. * @return void
  20489. * @static
  20490. */
  20491. public static function inject($section, $content)
  20492. {
  20493. /** @var \Illuminate\View\Factory $instance */
  20494. $instance->inject($section, $content);
  20495. }
  20496. /**
  20497. * Stop injecting content into a section and return its contents.
  20498. *
  20499. * @return string
  20500. * @static
  20501. */
  20502. public static function yieldSection()
  20503. {
  20504. /** @var \Illuminate\View\Factory $instance */
  20505. return $instance->yieldSection();
  20506. }
  20507. /**
  20508. * Stop injecting content into a section.
  20509. *
  20510. * @param bool $overwrite
  20511. * @return string
  20512. * @throws \InvalidArgumentException
  20513. * @static
  20514. */
  20515. public static function stopSection($overwrite = false)
  20516. {
  20517. /** @var \Illuminate\View\Factory $instance */
  20518. return $instance->stopSection($overwrite);
  20519. }
  20520. /**
  20521. * Stop injecting content into a section and append it.
  20522. *
  20523. * @return string
  20524. * @throws \InvalidArgumentException
  20525. * @static
  20526. */
  20527. public static function appendSection()
  20528. {
  20529. /** @var \Illuminate\View\Factory $instance */
  20530. return $instance->appendSection();
  20531. }
  20532. /**
  20533. * Get the string contents of a section.
  20534. *
  20535. * @param string $section
  20536. * @param string $default
  20537. * @return string
  20538. * @static
  20539. */
  20540. public static function yieldContent($section, $default = '')
  20541. {
  20542. /** @var \Illuminate\View\Factory $instance */
  20543. return $instance->yieldContent($section, $default);
  20544. }
  20545. /**
  20546. * Get the parent placeholder for the current request.
  20547. *
  20548. * @param string $section
  20549. * @return string
  20550. * @static
  20551. */
  20552. public static function parentPlaceholder($section = '')
  20553. {
  20554. return \Illuminate\View\Factory::parentPlaceholder($section);
  20555. }
  20556. /**
  20557. * Check if section exists.
  20558. *
  20559. * @param string $name
  20560. * @return bool
  20561. * @static
  20562. */
  20563. public static function hasSection($name)
  20564. {
  20565. /** @var \Illuminate\View\Factory $instance */
  20566. return $instance->hasSection($name);
  20567. }
  20568. /**
  20569. * Check if section does not exist.
  20570. *
  20571. * @param string $name
  20572. * @return bool
  20573. * @static
  20574. */
  20575. public static function sectionMissing($name)
  20576. {
  20577. /** @var \Illuminate\View\Factory $instance */
  20578. return $instance->sectionMissing($name);
  20579. }
  20580. /**
  20581. * Get the contents of a section.
  20582. *
  20583. * @param string $name
  20584. * @param string|null $default
  20585. * @return mixed
  20586. * @static
  20587. */
  20588. public static function getSection($name, $default = null)
  20589. {
  20590. /** @var \Illuminate\View\Factory $instance */
  20591. return $instance->getSection($name, $default);
  20592. }
  20593. /**
  20594. * Get the entire array of sections.
  20595. *
  20596. * @return array
  20597. * @static
  20598. */
  20599. public static function getSections()
  20600. {
  20601. /** @var \Illuminate\View\Factory $instance */
  20602. return $instance->getSections();
  20603. }
  20604. /**
  20605. * Flush all of the sections.
  20606. *
  20607. * @return void
  20608. * @static
  20609. */
  20610. public static function flushSections()
  20611. {
  20612. /** @var \Illuminate\View\Factory $instance */
  20613. $instance->flushSections();
  20614. }
  20615. /**
  20616. * Add new loop to the stack.
  20617. *
  20618. * @param \Countable|array $data
  20619. * @return void
  20620. * @static
  20621. */
  20622. public static function addLoop($data)
  20623. {
  20624. /** @var \Illuminate\View\Factory $instance */
  20625. $instance->addLoop($data);
  20626. }
  20627. /**
  20628. * Increment the top loop's indices.
  20629. *
  20630. * @return void
  20631. * @static
  20632. */
  20633. public static function incrementLoopIndices()
  20634. {
  20635. /** @var \Illuminate\View\Factory $instance */
  20636. $instance->incrementLoopIndices();
  20637. }
  20638. /**
  20639. * Pop a loop from the top of the loop stack.
  20640. *
  20641. * @return void
  20642. * @static
  20643. */
  20644. public static function popLoop()
  20645. {
  20646. /** @var \Illuminate\View\Factory $instance */
  20647. $instance->popLoop();
  20648. }
  20649. /**
  20650. * Get an instance of the last loop in the stack.
  20651. *
  20652. * @return \stdClass|null
  20653. * @static
  20654. */
  20655. public static function getLastLoop()
  20656. {
  20657. /** @var \Illuminate\View\Factory $instance */
  20658. return $instance->getLastLoop();
  20659. }
  20660. /**
  20661. * Get the entire loop stack.
  20662. *
  20663. * @return array
  20664. * @static
  20665. */
  20666. public static function getLoopStack()
  20667. {
  20668. /** @var \Illuminate\View\Factory $instance */
  20669. return $instance->getLoopStack();
  20670. }
  20671. /**
  20672. * Start injecting content into a push section.
  20673. *
  20674. * @param string $section
  20675. * @param string $content
  20676. * @return void
  20677. * @static
  20678. */
  20679. public static function startPush($section, $content = '')
  20680. {
  20681. /** @var \Illuminate\View\Factory $instance */
  20682. $instance->startPush($section, $content);
  20683. }
  20684. /**
  20685. * Stop injecting content into a push section.
  20686. *
  20687. * @return string
  20688. * @throws \InvalidArgumentException
  20689. * @static
  20690. */
  20691. public static function stopPush()
  20692. {
  20693. /** @var \Illuminate\View\Factory $instance */
  20694. return $instance->stopPush();
  20695. }
  20696. /**
  20697. * Start prepending content into a push section.
  20698. *
  20699. * @param string $section
  20700. * @param string $content
  20701. * @return void
  20702. * @static
  20703. */
  20704. public static function startPrepend($section, $content = '')
  20705. {
  20706. /** @var \Illuminate\View\Factory $instance */
  20707. $instance->startPrepend($section, $content);
  20708. }
  20709. /**
  20710. * Stop prepending content into a push section.
  20711. *
  20712. * @return string
  20713. * @throws \InvalidArgumentException
  20714. * @static
  20715. */
  20716. public static function stopPrepend()
  20717. {
  20718. /** @var \Illuminate\View\Factory $instance */
  20719. return $instance->stopPrepend();
  20720. }
  20721. /**
  20722. * Get the string contents of a push section.
  20723. *
  20724. * @param string $section
  20725. * @param string $default
  20726. * @return string
  20727. * @static
  20728. */
  20729. public static function yieldPushContent($section, $default = '')
  20730. {
  20731. /** @var \Illuminate\View\Factory $instance */
  20732. return $instance->yieldPushContent($section, $default);
  20733. }
  20734. /**
  20735. * Flush all of the stacks.
  20736. *
  20737. * @return void
  20738. * @static
  20739. */
  20740. public static function flushStacks()
  20741. {
  20742. /** @var \Illuminate\View\Factory $instance */
  20743. $instance->flushStacks();
  20744. }
  20745. /**
  20746. * Start a translation block.
  20747. *
  20748. * @param array $replacements
  20749. * @return void
  20750. * @static
  20751. */
  20752. public static function startTranslation($replacements = [])
  20753. {
  20754. /** @var \Illuminate\View\Factory $instance */
  20755. $instance->startTranslation($replacements);
  20756. }
  20757. /**
  20758. * Render the current translation.
  20759. *
  20760. * @return string
  20761. * @static
  20762. */
  20763. public static function renderTranslation()
  20764. {
  20765. /** @var \Illuminate\View\Factory $instance */
  20766. return $instance->renderTranslation();
  20767. }
  20768. }
  20769. /**
  20770. * @see \Illuminate\Foundation\Vite
  20771. */
  20772. class Vite {
  20773. /**
  20774. * Get the preloaded assets.
  20775. *
  20776. * @return array
  20777. * @static
  20778. */
  20779. public static function preloadedAssets()
  20780. {
  20781. /** @var \Illuminate\Foundation\Vite $instance */
  20782. return $instance->preloadedAssets();
  20783. }
  20784. /**
  20785. * Get the Content Security Policy nonce applied to all generated tags.
  20786. *
  20787. * @return string|null
  20788. * @static
  20789. */
  20790. public static function cspNonce()
  20791. {
  20792. /** @var \Illuminate\Foundation\Vite $instance */
  20793. return $instance->cspNonce();
  20794. }
  20795. /**
  20796. * Generate or set a Content Security Policy nonce to apply to all generated tags.
  20797. *
  20798. * @param string|null $nonce
  20799. * @return string
  20800. * @static
  20801. */
  20802. public static function useCspNonce($nonce = null)
  20803. {
  20804. /** @var \Illuminate\Foundation\Vite $instance */
  20805. return $instance->useCspNonce($nonce);
  20806. }
  20807. /**
  20808. * Use the given key to detect integrity hashes in the manifest.
  20809. *
  20810. * @param string|false $key
  20811. * @return \Illuminate\Foundation\Vite
  20812. * @static
  20813. */
  20814. public static function useIntegrityKey($key)
  20815. {
  20816. /** @var \Illuminate\Foundation\Vite $instance */
  20817. return $instance->useIntegrityKey($key);
  20818. }
  20819. /**
  20820. * Set the Vite entry points.
  20821. *
  20822. * @param array $entryPoints
  20823. * @return \Illuminate\Foundation\Vite
  20824. * @static
  20825. */
  20826. public static function withEntryPoints($entryPoints)
  20827. {
  20828. /** @var \Illuminate\Foundation\Vite $instance */
  20829. return $instance->withEntryPoints($entryPoints);
  20830. }
  20831. /**
  20832. * Merge additional Vite entry points with the current set.
  20833. *
  20834. * @param array $entryPoints
  20835. * @return \Illuminate\Foundation\Vite
  20836. * @static
  20837. */
  20838. public static function mergeEntryPoints($entryPoints)
  20839. {
  20840. /** @var \Illuminate\Foundation\Vite $instance */
  20841. return $instance->mergeEntryPoints($entryPoints);
  20842. }
  20843. /**
  20844. * Set the filename for the manifest file.
  20845. *
  20846. * @param string $filename
  20847. * @return \Illuminate\Foundation\Vite
  20848. * @static
  20849. */
  20850. public static function useManifestFilename($filename)
  20851. {
  20852. /** @var \Illuminate\Foundation\Vite $instance */
  20853. return $instance->useManifestFilename($filename);
  20854. }
  20855. /**
  20856. * Resolve asset paths using the provided resolver.
  20857. *
  20858. * @param callable|null $resolver
  20859. * @return \Illuminate\Foundation\Vite
  20860. * @static
  20861. */
  20862. public static function createAssetPathsUsing($resolver)
  20863. {
  20864. /** @var \Illuminate\Foundation\Vite $instance */
  20865. return $instance->createAssetPathsUsing($resolver);
  20866. }
  20867. /**
  20868. * Get the Vite "hot" file path.
  20869. *
  20870. * @return string
  20871. * @static
  20872. */
  20873. public static function hotFile()
  20874. {
  20875. /** @var \Illuminate\Foundation\Vite $instance */
  20876. return $instance->hotFile();
  20877. }
  20878. /**
  20879. * Set the Vite "hot" file path.
  20880. *
  20881. * @param string $path
  20882. * @return \Illuminate\Foundation\Vite
  20883. * @static
  20884. */
  20885. public static function useHotFile($path)
  20886. {
  20887. /** @var \Illuminate\Foundation\Vite $instance */
  20888. return $instance->useHotFile($path);
  20889. }
  20890. /**
  20891. * Set the Vite build directory.
  20892. *
  20893. * @param string $path
  20894. * @return \Illuminate\Foundation\Vite
  20895. * @static
  20896. */
  20897. public static function useBuildDirectory($path)
  20898. {
  20899. /** @var \Illuminate\Foundation\Vite $instance */
  20900. return $instance->useBuildDirectory($path);
  20901. }
  20902. /**
  20903. * Use the given callback to resolve attributes for script tags.
  20904. *
  20905. * @param (callable(string, string, ?array, ?array): array)|array $attributes
  20906. * @return \Illuminate\Foundation\Vite
  20907. * @static
  20908. */
  20909. public static function useScriptTagAttributes($attributes)
  20910. {
  20911. /** @var \Illuminate\Foundation\Vite $instance */
  20912. return $instance->useScriptTagAttributes($attributes);
  20913. }
  20914. /**
  20915. * Use the given callback to resolve attributes for style tags.
  20916. *
  20917. * @param (callable(string, string, ?array, ?array): array)|array $attributes
  20918. * @return \Illuminate\Foundation\Vite
  20919. * @static
  20920. */
  20921. public static function useStyleTagAttributes($attributes)
  20922. {
  20923. /** @var \Illuminate\Foundation\Vite $instance */
  20924. return $instance->useStyleTagAttributes($attributes);
  20925. }
  20926. /**
  20927. * Use the given callback to resolve attributes for preload tags.
  20928. *
  20929. * @param (callable(string, string, ?array, ?array): (array|false))|array|false $attributes
  20930. * @return \Illuminate\Foundation\Vite
  20931. * @static
  20932. */
  20933. public static function usePreloadTagAttributes($attributes)
  20934. {
  20935. /** @var \Illuminate\Foundation\Vite $instance */
  20936. return $instance->usePreloadTagAttributes($attributes);
  20937. }
  20938. /**
  20939. * Eagerly prefetch assets.
  20940. *
  20941. * @param int|null $concurrency
  20942. * @param string $event
  20943. * @return \Illuminate\Foundation\Vite
  20944. * @static
  20945. */
  20946. public static function prefetch($concurrency = null, $event = 'load')
  20947. {
  20948. /** @var \Illuminate\Foundation\Vite $instance */
  20949. return $instance->prefetch($concurrency, $event);
  20950. }
  20951. /**
  20952. * Use the "waterfall" prefetching strategy.
  20953. *
  20954. * @return \Illuminate\Foundation\Vite
  20955. * @static
  20956. */
  20957. public static function useWaterfallPrefetching($concurrency = null)
  20958. {
  20959. /** @var \Illuminate\Foundation\Vite $instance */
  20960. return $instance->useWaterfallPrefetching($concurrency);
  20961. }
  20962. /**
  20963. * Use the "aggressive" prefetching strategy.
  20964. *
  20965. * @return \Illuminate\Foundation\Vite
  20966. * @static
  20967. */
  20968. public static function useAggressivePrefetching()
  20969. {
  20970. /** @var \Illuminate\Foundation\Vite $instance */
  20971. return $instance->useAggressivePrefetching();
  20972. }
  20973. /**
  20974. * Set the prefetching strategy.
  20975. *
  20976. * @param 'waterfall'|'aggressive'|null $strategy
  20977. * @param array $config
  20978. * @return \Illuminate\Foundation\Vite
  20979. * @static
  20980. */
  20981. public static function usePrefetchStrategy($strategy, $config = [])
  20982. {
  20983. /** @var \Illuminate\Foundation\Vite $instance */
  20984. return $instance->usePrefetchStrategy($strategy, $config);
  20985. }
  20986. /**
  20987. * Generate React refresh runtime script.
  20988. *
  20989. * @return \Illuminate\Support\HtmlString|void
  20990. * @static
  20991. */
  20992. public static function reactRefresh()
  20993. {
  20994. /** @var \Illuminate\Foundation\Vite $instance */
  20995. return $instance->reactRefresh();
  20996. }
  20997. /**
  20998. * Get the URL for an asset.
  20999. *
  21000. * @param string $asset
  21001. * @param string|null $buildDirectory
  21002. * @return string
  21003. * @static
  21004. */
  21005. public static function asset($asset, $buildDirectory = null)
  21006. {
  21007. /** @var \Illuminate\Foundation\Vite $instance */
  21008. return $instance->asset($asset, $buildDirectory);
  21009. }
  21010. /**
  21011. * Get the content of a given asset.
  21012. *
  21013. * @param string $asset
  21014. * @param string|null $buildDirectory
  21015. * @return string
  21016. * @throws \Illuminate\Foundation\ViteException
  21017. * @static
  21018. */
  21019. public static function content($asset, $buildDirectory = null)
  21020. {
  21021. /** @var \Illuminate\Foundation\Vite $instance */
  21022. return $instance->content($asset, $buildDirectory);
  21023. }
  21024. /**
  21025. * Get a unique hash representing the current manifest, or null if there is no manifest.
  21026. *
  21027. * @param string|null $buildDirectory
  21028. * @return string|null
  21029. * @static
  21030. */
  21031. public static function manifestHash($buildDirectory = null)
  21032. {
  21033. /** @var \Illuminate\Foundation\Vite $instance */
  21034. return $instance->manifestHash($buildDirectory);
  21035. }
  21036. /**
  21037. * Determine if the HMR server is running.
  21038. *
  21039. * @return bool
  21040. * @static
  21041. */
  21042. public static function isRunningHot()
  21043. {
  21044. /** @var \Illuminate\Foundation\Vite $instance */
  21045. return $instance->isRunningHot();
  21046. }
  21047. /**
  21048. * Get the Vite tag content as a string of HTML.
  21049. *
  21050. * @return string
  21051. * @static
  21052. */
  21053. public static function toHtml()
  21054. {
  21055. /** @var \Illuminate\Foundation\Vite $instance */
  21056. return $instance->toHtml();
  21057. }
  21058. /**
  21059. * Flush state.
  21060. *
  21061. * @return void
  21062. * @static
  21063. */
  21064. public static function flush()
  21065. {
  21066. /** @var \Illuminate\Foundation\Vite $instance */
  21067. $instance->flush();
  21068. }
  21069. /**
  21070. * Register a custom macro.
  21071. *
  21072. * @param string $name
  21073. * @param object|callable $macro
  21074. * @param-closure-this static $macro
  21075. * @return void
  21076. * @static
  21077. */
  21078. public static function macro($name, $macro)
  21079. {
  21080. \Illuminate\Foundation\Vite::macro($name, $macro);
  21081. }
  21082. /**
  21083. * Mix another object into the class.
  21084. *
  21085. * @param object $mixin
  21086. * @param bool $replace
  21087. * @return void
  21088. * @throws \ReflectionException
  21089. * @static
  21090. */
  21091. public static function mixin($mixin, $replace = true)
  21092. {
  21093. \Illuminate\Foundation\Vite::mixin($mixin, $replace);
  21094. }
  21095. /**
  21096. * Checks if macro is registered.
  21097. *
  21098. * @param string $name
  21099. * @return bool
  21100. * @static
  21101. */
  21102. public static function hasMacro($name)
  21103. {
  21104. return \Illuminate\Foundation\Vite::hasMacro($name);
  21105. }
  21106. /**
  21107. * Flush the existing macros.
  21108. *
  21109. * @return void
  21110. * @static
  21111. */
  21112. public static function flushMacros()
  21113. {
  21114. \Illuminate\Foundation\Vite::flushMacros();
  21115. }
  21116. }
  21117. }
  21118. namespace Maatwebsite\Excel\Facades {
  21119. /**
  21120. */
  21121. class Excel {
  21122. /**
  21123. * @param object $export
  21124. * @param string|null $fileName
  21125. * @param string $writerType
  21126. * @param array $headers
  21127. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  21128. * @throws \PhpOffice\PhpSpreadsheet\Exception
  21129. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  21130. * @static
  21131. */
  21132. public static function download($export, $fileName, $writerType = null, $headers = [])
  21133. {
  21134. /** @var \Maatwebsite\Excel\Excel $instance */
  21135. return $instance->download($export, $fileName, $writerType, $headers);
  21136. }
  21137. /**
  21138. * @param string|null $disk Fallback for usage with named properties
  21139. * @param object $export
  21140. * @param string $filePath
  21141. * @param string|null $diskName
  21142. * @param string $writerType
  21143. * @param mixed $diskOptions
  21144. * @return bool
  21145. * @throws \PhpOffice\PhpSpreadsheet\Exception
  21146. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  21147. * @static
  21148. */
  21149. public static function store($export, $filePath, $diskName = null, $writerType = null, $diskOptions = [], $disk = null)
  21150. {
  21151. /** @var \Maatwebsite\Excel\Excel $instance */
  21152. return $instance->store($export, $filePath, $diskName, $writerType, $diskOptions, $disk);
  21153. }
  21154. /**
  21155. * @param object $export
  21156. * @param string $filePath
  21157. * @param string|null $disk
  21158. * @param string $writerType
  21159. * @param mixed $diskOptions
  21160. * @return \Illuminate\Foundation\Bus\PendingDispatch
  21161. * @static
  21162. */
  21163. public static function queue($export, $filePath, $disk = null, $writerType = null, $diskOptions = [])
  21164. {
  21165. /** @var \Maatwebsite\Excel\Excel $instance */
  21166. return $instance->queue($export, $filePath, $disk, $writerType, $diskOptions);
  21167. }
  21168. /**
  21169. * @param object $export
  21170. * @param string $writerType
  21171. * @return string
  21172. * @static
  21173. */
  21174. public static function raw($export, $writerType)
  21175. {
  21176. /** @var \Maatwebsite\Excel\Excel $instance */
  21177. return $instance->raw($export, $writerType);
  21178. }
  21179. /**
  21180. * @param object $import
  21181. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  21182. * @param string|null $disk
  21183. * @param string|null $readerType
  21184. * @return \Maatwebsite\Excel\Reader|\Illuminate\Foundation\Bus\PendingDispatch
  21185. * @static
  21186. */
  21187. public static function import($import, $filePath, $disk = null, $readerType = null)
  21188. {
  21189. /** @var \Maatwebsite\Excel\Excel $instance */
  21190. return $instance->import($import, $filePath, $disk, $readerType);
  21191. }
  21192. /**
  21193. * @param object $import
  21194. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  21195. * @param string|null $disk
  21196. * @param string|null $readerType
  21197. * @return array
  21198. * @static
  21199. */
  21200. public static function toArray($import, $filePath, $disk = null, $readerType = null)
  21201. {
  21202. /** @var \Maatwebsite\Excel\Excel $instance */
  21203. return $instance->toArray($import, $filePath, $disk, $readerType);
  21204. }
  21205. /**
  21206. * @param object $import
  21207. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  21208. * @param string|null $disk
  21209. * @param string|null $readerType
  21210. * @return \Illuminate\Support\Collection
  21211. * @static
  21212. */
  21213. public static function toCollection($import, $filePath, $disk = null, $readerType = null)
  21214. {
  21215. /** @var \Maatwebsite\Excel\Excel $instance */
  21216. return $instance->toCollection($import, $filePath, $disk, $readerType);
  21217. }
  21218. /**
  21219. * @param \Illuminate\Contracts\Queue\ShouldQueue $import
  21220. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  21221. * @param string|null $disk
  21222. * @param string $readerType
  21223. * @return \Illuminate\Foundation\Bus\PendingDispatch
  21224. * @static
  21225. */
  21226. public static function queueImport($import, $filePath, $disk = null, $readerType = null)
  21227. {
  21228. /** @var \Maatwebsite\Excel\Excel $instance */
  21229. return $instance->queueImport($import, $filePath, $disk, $readerType);
  21230. }
  21231. /**
  21232. * Register a custom macro.
  21233. *
  21234. * @param string $name
  21235. * @param object|callable $macro
  21236. * @param-closure-this static $macro
  21237. * @return void
  21238. * @static
  21239. */
  21240. public static function macro($name, $macro)
  21241. {
  21242. \Maatwebsite\Excel\Excel::macro($name, $macro);
  21243. }
  21244. /**
  21245. * Mix another object into the class.
  21246. *
  21247. * @param object $mixin
  21248. * @param bool $replace
  21249. * @return void
  21250. * @throws \ReflectionException
  21251. * @static
  21252. */
  21253. public static function mixin($mixin, $replace = true)
  21254. {
  21255. \Maatwebsite\Excel\Excel::mixin($mixin, $replace);
  21256. }
  21257. /**
  21258. * Checks if macro is registered.
  21259. *
  21260. * @param string $name
  21261. * @return bool
  21262. * @static
  21263. */
  21264. public static function hasMacro($name)
  21265. {
  21266. return \Maatwebsite\Excel\Excel::hasMacro($name);
  21267. }
  21268. /**
  21269. * Flush the existing macros.
  21270. *
  21271. * @return void
  21272. * @static
  21273. */
  21274. public static function flushMacros()
  21275. {
  21276. \Maatwebsite\Excel\Excel::flushMacros();
  21277. }
  21278. /**
  21279. * @param string $concern
  21280. * @param callable $handler
  21281. * @param string $event
  21282. * @static
  21283. */
  21284. public static function extend($concern, $handler, $event = 'Maatwebsite\\Excel\\Events\\BeforeWriting')
  21285. {
  21286. return \Maatwebsite\Excel\Excel::extend($concern, $handler, $event);
  21287. }
  21288. /**
  21289. * When asserting downloaded, stored, queued or imported, use regular expression
  21290. * to look for a matching file path.
  21291. *
  21292. * @return void
  21293. * @static
  21294. */
  21295. public static function matchByRegex()
  21296. {
  21297. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  21298. $instance->matchByRegex();
  21299. }
  21300. /**
  21301. * When asserting downloaded, stored, queued or imported, use regular string
  21302. * comparison for matching file path.
  21303. *
  21304. * @return void
  21305. * @static
  21306. */
  21307. public static function doNotMatchByRegex()
  21308. {
  21309. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  21310. $instance->doNotMatchByRegex();
  21311. }
  21312. /**
  21313. * @param string $fileName
  21314. * @param callable|null $callback
  21315. * @static
  21316. */
  21317. public static function assertDownloaded($fileName, $callback = null)
  21318. {
  21319. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  21320. return $instance->assertDownloaded($fileName, $callback);
  21321. }
  21322. /**
  21323. * @param string $filePath
  21324. * @param string|callable|null $disk
  21325. * @param callable|null $callback
  21326. * @static
  21327. */
  21328. public static function assertStored($filePath, $disk = null, $callback = null)
  21329. {
  21330. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  21331. return $instance->assertStored($filePath, $disk, $callback);
  21332. }
  21333. /**
  21334. * @param string $filePath
  21335. * @param string|callable|null $disk
  21336. * @param callable|null $callback
  21337. * @static
  21338. */
  21339. public static function assertQueued($filePath, $disk = null, $callback = null)
  21340. {
  21341. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  21342. return $instance->assertQueued($filePath, $disk, $callback);
  21343. }
  21344. /**
  21345. * @static
  21346. */
  21347. public static function assertQueuedWithChain($chain)
  21348. {
  21349. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  21350. return $instance->assertQueuedWithChain($chain);
  21351. }
  21352. /**
  21353. * @param string $classname
  21354. * @param callable|null $callback
  21355. * @static
  21356. */
  21357. public static function assertExportedInRaw($classname, $callback = null)
  21358. {
  21359. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  21360. return $instance->assertExportedInRaw($classname, $callback);
  21361. }
  21362. /**
  21363. * @param string $filePath
  21364. * @param string|callable|null $disk
  21365. * @param callable|null $callback
  21366. * @static
  21367. */
  21368. public static function assertImported($filePath, $disk = null, $callback = null)
  21369. {
  21370. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  21371. return $instance->assertImported($filePath, $disk, $callback);
  21372. }
  21373. }
  21374. }
  21375. namespace Illuminate\Support {
  21376. /**
  21377. * @template TKey of array-key
  21378. * @template-covariant TValue
  21379. * @implements \ArrayAccess<TKey, TValue>
  21380. * @implements \Illuminate\Support\Enumerable<TKey, TValue>
  21381. */
  21382. class Collection {
  21383. /**
  21384. * @see \Maatwebsite\Excel\Mixins\DownloadCollectionMixin::downloadExcel()
  21385. * @param string $fileName
  21386. * @param string|null $writerType
  21387. * @param mixed $withHeadings
  21388. * @param array $responseHeaders
  21389. * @static
  21390. */
  21391. public static function downloadExcel($fileName, $writerType = null, $withHeadings = false, $responseHeaders = [])
  21392. {
  21393. return \Illuminate\Support\Collection::downloadExcel($fileName, $writerType, $withHeadings, $responseHeaders);
  21394. }
  21395. /**
  21396. * @see \Maatwebsite\Excel\Mixins\StoreCollectionMixin::storeExcel()
  21397. * @param string $filePath
  21398. * @param string|null $disk
  21399. * @param string|null $writerType
  21400. * @param mixed $withHeadings
  21401. * @static
  21402. */
  21403. public static function storeExcel($filePath, $disk = null, $writerType = null, $withHeadings = false)
  21404. {
  21405. return \Illuminate\Support\Collection::storeExcel($filePath, $disk, $writerType, $withHeadings);
  21406. }
  21407. }
  21408. }
  21409. namespace Illuminate\Http {
  21410. /**
  21411. */
  21412. class Request extends \Symfony\Component\HttpFoundation\Request {
  21413. /**
  21414. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  21415. * @param array $rules
  21416. * @param mixed $params
  21417. * @static
  21418. */
  21419. public static function validate($rules, ...$params)
  21420. {
  21421. return \Illuminate\Http\Request::validate($rules, ...$params);
  21422. }
  21423. /**
  21424. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  21425. * @param string $errorBag
  21426. * @param array $rules
  21427. * @param mixed $params
  21428. * @static
  21429. */
  21430. public static function validateWithBag($errorBag, $rules, ...$params)
  21431. {
  21432. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  21433. }
  21434. /**
  21435. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  21436. * @param mixed $absolute
  21437. * @static
  21438. */
  21439. public static function hasValidSignature($absolute = true)
  21440. {
  21441. return \Illuminate\Http\Request::hasValidSignature($absolute);
  21442. }
  21443. /**
  21444. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  21445. * @static
  21446. */
  21447. public static function hasValidRelativeSignature()
  21448. {
  21449. return \Illuminate\Http\Request::hasValidRelativeSignature();
  21450. }
  21451. /**
  21452. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  21453. * @param mixed $ignoreQuery
  21454. * @param mixed $absolute
  21455. * @static
  21456. */
  21457. public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  21458. {
  21459. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  21460. }
  21461. /**
  21462. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  21463. * @param mixed $ignoreQuery
  21464. * @static
  21465. */
  21466. public static function hasValidRelativeSignatureWhileIgnoring($ignoreQuery = [])
  21467. {
  21468. return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
  21469. }
  21470. }
  21471. }
  21472. namespace Illuminate\Database\Schema {
  21473. /**
  21474. */
  21475. class Blueprint {
  21476. /**
  21477. * @see \Kalnoy\Nestedset\NestedSetServiceProvider::register()
  21478. * @static
  21479. */
  21480. public static function nestedSet()
  21481. {
  21482. return \Illuminate\Database\Schema\Blueprint::nestedSet();
  21483. }
  21484. /**
  21485. * @see \Kalnoy\Nestedset\NestedSetServiceProvider::register()
  21486. * @static
  21487. */
  21488. public static function dropNestedSet()
  21489. {
  21490. return \Illuminate\Database\Schema\Blueprint::dropNestedSet();
  21491. }
  21492. }
  21493. }
  21494. namespace {
  21495. class App extends \Illuminate\Support\Facades\App {}
  21496. class Arr extends \Illuminate\Support\Arr {}
  21497. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  21498. class Auth extends \Illuminate\Support\Facades\Auth {}
  21499. class Blade extends \Illuminate\Support\Facades\Blade {}
  21500. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  21501. class Bus extends \Illuminate\Support\Facades\Bus {}
  21502. class Cache extends \Illuminate\Support\Facades\Cache {}
  21503. class Concurrency extends \Illuminate\Support\Facades\Concurrency {}
  21504. class Config extends \Illuminate\Support\Facades\Config {}
  21505. class Context extends \Illuminate\Support\Facades\Context {}
  21506. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  21507. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  21508. class Date extends \Illuminate\Support\Facades\Date {}
  21509. class DB extends \Illuminate\Support\Facades\DB {}
  21510. /**
  21511. * @template TCollection of static
  21512. * @template TModel of static
  21513. * @template TValue of static
  21514. * @template TValue of static
  21515. */
  21516. class Eloquent extends \Illuminate\Database\Eloquent\Model { /**
  21517. * Create and return an un-saved model instance.
  21518. *
  21519. * @param array $attributes
  21520. * @return TModel
  21521. * @static
  21522. */
  21523. public static function make($attributes = [])
  21524. {
  21525. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21526. return $instance->make($attributes);
  21527. }
  21528. /**
  21529. * Register a new global scope.
  21530. *
  21531. * @param string $identifier
  21532. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  21533. * @return \Illuminate\Database\Eloquent\Builder<static>
  21534. * @static
  21535. */
  21536. public static function withGlobalScope($identifier, $scope)
  21537. {
  21538. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21539. return $instance->withGlobalScope($identifier, $scope);
  21540. }
  21541. /**
  21542. * Remove a registered global scope.
  21543. *
  21544. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  21545. * @return \Illuminate\Database\Eloquent\Builder<static>
  21546. * @static
  21547. */
  21548. public static function withoutGlobalScope($scope)
  21549. {
  21550. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21551. return $instance->withoutGlobalScope($scope);
  21552. }
  21553. /**
  21554. * Remove all or passed registered global scopes.
  21555. *
  21556. * @param array|null $scopes
  21557. * @return \Illuminate\Database\Eloquent\Builder<static>
  21558. * @static
  21559. */
  21560. public static function withoutGlobalScopes($scopes = null)
  21561. {
  21562. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21563. return $instance->withoutGlobalScopes($scopes);
  21564. }
  21565. /**
  21566. * Get an array of global scopes that were removed from the query.
  21567. *
  21568. * @return array
  21569. * @static
  21570. */
  21571. public static function removedScopes()
  21572. {
  21573. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21574. return $instance->removedScopes();
  21575. }
  21576. /**
  21577. * Add a where clause on the primary key to the query.
  21578. *
  21579. * @param mixed $id
  21580. * @return \Illuminate\Database\Eloquent\Builder<static>
  21581. * @static
  21582. */
  21583. public static function whereKey($id)
  21584. {
  21585. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21586. return $instance->whereKey($id);
  21587. }
  21588. /**
  21589. * Add a where clause on the primary key to the query.
  21590. *
  21591. * @param mixed $id
  21592. * @return \Illuminate\Database\Eloquent\Builder<static>
  21593. * @static
  21594. */
  21595. public static function whereKeyNot($id)
  21596. {
  21597. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21598. return $instance->whereKeyNot($id);
  21599. }
  21600. /**
  21601. * Add a basic where clause to the query.
  21602. *
  21603. * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  21604. * @param mixed $operator
  21605. * @param mixed $value
  21606. * @param string $boolean
  21607. * @return \Illuminate\Database\Eloquent\Builder<static>
  21608. * @static
  21609. */
  21610. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  21611. {
  21612. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21613. return $instance->where($column, $operator, $value, $boolean);
  21614. }
  21615. /**
  21616. * Add a basic where clause to the query, and return the first result.
  21617. *
  21618. * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  21619. * @param mixed $operator
  21620. * @param mixed $value
  21621. * @param string $boolean
  21622. * @return TModel|null
  21623. * @static
  21624. */
  21625. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  21626. {
  21627. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21628. return $instance->firstWhere($column, $operator, $value, $boolean);
  21629. }
  21630. /**
  21631. * Add an "or where" clause to the query.
  21632. *
  21633. * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column
  21634. * @param mixed $operator
  21635. * @param mixed $value
  21636. * @return \Illuminate\Database\Eloquent\Builder<static>
  21637. * @static
  21638. */
  21639. public static function orWhere($column, $operator = null, $value = null)
  21640. {
  21641. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21642. return $instance->orWhere($column, $operator, $value);
  21643. }
  21644. /**
  21645. * Add a basic "where not" clause to the query.
  21646. *
  21647. * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  21648. * @param mixed $operator
  21649. * @param mixed $value
  21650. * @param string $boolean
  21651. * @return \Illuminate\Database\Eloquent\Builder<static>
  21652. * @static
  21653. */
  21654. public static function whereNot($column, $operator = null, $value = null, $boolean = 'and')
  21655. {
  21656. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21657. return $instance->whereNot($column, $operator, $value, $boolean);
  21658. }
  21659. /**
  21660. * Add an "or where not" clause to the query.
  21661. *
  21662. * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column
  21663. * @param mixed $operator
  21664. * @param mixed $value
  21665. * @return \Illuminate\Database\Eloquent\Builder<static>
  21666. * @static
  21667. */
  21668. public static function orWhereNot($column, $operator = null, $value = null)
  21669. {
  21670. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21671. return $instance->orWhereNot($column, $operator, $value);
  21672. }
  21673. /**
  21674. * Add an "order by" clause for a timestamp to the query.
  21675. *
  21676. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  21677. * @return \Illuminate\Database\Eloquent\Builder<static>
  21678. * @static
  21679. */
  21680. public static function latest($column = null)
  21681. {
  21682. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21683. return $instance->latest($column);
  21684. }
  21685. /**
  21686. * Add an "order by" clause for a timestamp to the query.
  21687. *
  21688. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  21689. * @return \Illuminate\Database\Eloquent\Builder<static>
  21690. * @static
  21691. */
  21692. public static function oldest($column = null)
  21693. {
  21694. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21695. return $instance->oldest($column);
  21696. }
  21697. /**
  21698. * Create a collection of models from plain arrays.
  21699. *
  21700. * @param array $items
  21701. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  21702. * @static
  21703. */
  21704. public static function hydrate($items)
  21705. {
  21706. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21707. return $instance->hydrate($items);
  21708. }
  21709. /**
  21710. * Insert into the database after merging the model's default attributes, setting timestamps, and casting values.
  21711. *
  21712. * @param array<int, array<string, mixed>> $values
  21713. * @return bool
  21714. * @static
  21715. */
  21716. public static function fillAndInsert($values)
  21717. {
  21718. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21719. return $instance->fillAndInsert($values);
  21720. }
  21721. /**
  21722. * Insert (ignoring errors) into the database after merging the model's default attributes, setting timestamps, and casting values.
  21723. *
  21724. * @param array<int, array<string, mixed>> $values
  21725. * @return int
  21726. * @static
  21727. */
  21728. public static function fillAndInsertOrIgnore($values)
  21729. {
  21730. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21731. return $instance->fillAndInsertOrIgnore($values);
  21732. }
  21733. /**
  21734. * Insert a record into the database and get its ID after merging the model's default attributes, setting timestamps, and casting values.
  21735. *
  21736. * @param array<string, mixed> $values
  21737. * @return int
  21738. * @static
  21739. */
  21740. public static function fillAndInsertGetId($values)
  21741. {
  21742. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21743. return $instance->fillAndInsertGetId($values);
  21744. }
  21745. /**
  21746. * Enrich the given values by merging in the model's default attributes, adding timestamps, and casting values.
  21747. *
  21748. * @param array<int, array<string, mixed>> $values
  21749. * @return array<int, array<string, mixed>>
  21750. * @static
  21751. */
  21752. public static function fillForInsert($values)
  21753. {
  21754. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21755. return $instance->fillForInsert($values);
  21756. }
  21757. /**
  21758. * Create a collection of models from a raw query.
  21759. *
  21760. * @param string $query
  21761. * @param array $bindings
  21762. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  21763. * @static
  21764. */
  21765. public static function fromQuery($query, $bindings = [])
  21766. {
  21767. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21768. return $instance->fromQuery($query, $bindings);
  21769. }
  21770. /**
  21771. * Find a model by its primary key.
  21772. *
  21773. * @param mixed $id
  21774. * @param array|string $columns
  21775. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel|null)
  21776. * @static
  21777. */
  21778. public static function find($id, $columns = [])
  21779. {
  21780. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21781. return $instance->find($id, $columns);
  21782. }
  21783. /**
  21784. * Find a sole model by its primary key.
  21785. *
  21786. * @param mixed $id
  21787. * @param array|string $columns
  21788. * @return TModel
  21789. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  21790. * @throws \Illuminate\Database\MultipleRecordsFoundException
  21791. * @static
  21792. */
  21793. public static function findSole($id, $columns = [])
  21794. {
  21795. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21796. return $instance->findSole($id, $columns);
  21797. }
  21798. /**
  21799. * Find multiple models by their primary keys.
  21800. *
  21801. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  21802. * @param array|string $columns
  21803. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  21804. * @static
  21805. */
  21806. public static function findMany($ids, $columns = [])
  21807. {
  21808. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21809. return $instance->findMany($ids, $columns);
  21810. }
  21811. /**
  21812. * Find a model by its primary key or throw an exception.
  21813. *
  21814. * @param mixed $id
  21815. * @param array|string $columns
  21816. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
  21817. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  21818. * @static
  21819. */
  21820. public static function findOrFail($id, $columns = [])
  21821. {
  21822. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21823. return $instance->findOrFail($id, $columns);
  21824. }
  21825. /**
  21826. * Find a model by its primary key or return fresh model instance.
  21827. *
  21828. * @param mixed $id
  21829. * @param array|string $columns
  21830. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
  21831. * @static
  21832. */
  21833. public static function findOrNew($id, $columns = [])
  21834. {
  21835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21836. return $instance->findOrNew($id, $columns);
  21837. }
  21838. /**
  21839. * Find a model by its primary key or call a callback.
  21840. *
  21841. * @template TValue
  21842. * @param mixed $id
  21843. * @param (\Closure(): TValue)|list<string>|string $columns
  21844. * @param (\Closure(): TValue)|null $callback
  21845. * @return ( $id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>)
  21846. * ? \Illuminate\Database\Eloquent\Collection<int, TModel>
  21847. * : TModel|TValue
  21848. * )
  21849. * @static
  21850. */
  21851. public static function findOr($id, $columns = [], $callback = null)
  21852. {
  21853. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21854. return $instance->findOr($id, $columns, $callback);
  21855. }
  21856. /**
  21857. * Get the first record matching the attributes or instantiate it.
  21858. *
  21859. * @param array $attributes
  21860. * @param array $values
  21861. * @return TModel
  21862. * @static
  21863. */
  21864. public static function firstOrNew($attributes = [], $values = [])
  21865. {
  21866. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21867. return $instance->firstOrNew($attributes, $values);
  21868. }
  21869. /**
  21870. * Get the first record matching the attributes. If the record is not found, create it.
  21871. *
  21872. * @param array $attributes
  21873. * @param array $values
  21874. * @return TModel
  21875. * @static
  21876. */
  21877. public static function firstOrCreate($attributes = [], $values = [])
  21878. {
  21879. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21880. return $instance->firstOrCreate($attributes, $values);
  21881. }
  21882. /**
  21883. * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record.
  21884. *
  21885. * @param array $attributes
  21886. * @param array $values
  21887. * @return TModel
  21888. * @static
  21889. */
  21890. public static function createOrFirst($attributes = [], $values = [])
  21891. {
  21892. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21893. return $instance->createOrFirst($attributes, $values);
  21894. }
  21895. /**
  21896. * Create or update a record matching the attributes, and fill it with values.
  21897. *
  21898. * @param array $attributes
  21899. * @param array $values
  21900. * @return TModel
  21901. * @static
  21902. */
  21903. public static function updateOrCreate($attributes, $values = [])
  21904. {
  21905. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21906. return $instance->updateOrCreate($attributes, $values);
  21907. }
  21908. /**
  21909. * Create a record matching the attributes, or increment the existing record.
  21910. *
  21911. * @param array $attributes
  21912. * @param string $column
  21913. * @param int|float $default
  21914. * @param int|float $step
  21915. * @param array $extra
  21916. * @return TModel
  21917. * @static
  21918. */
  21919. public static function incrementOrCreate($attributes, $column = 'count', $default = 1, $step = 1, $extra = [])
  21920. {
  21921. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21922. return $instance->incrementOrCreate($attributes, $column, $default, $step, $extra);
  21923. }
  21924. /**
  21925. * Execute the query and get the first result or throw an exception.
  21926. *
  21927. * @param array|string $columns
  21928. * @return TModel
  21929. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  21930. * @static
  21931. */
  21932. public static function firstOrFail($columns = [])
  21933. {
  21934. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21935. return $instance->firstOrFail($columns);
  21936. }
  21937. /**
  21938. * Execute the query and get the first result or call a callback.
  21939. *
  21940. * @template TValue
  21941. * @param (\Closure(): TValue)|list<string> $columns
  21942. * @param (\Closure(): TValue)|null $callback
  21943. * @return TModel|TValue
  21944. * @static
  21945. */
  21946. public static function firstOr($columns = [], $callback = null)
  21947. {
  21948. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21949. return $instance->firstOr($columns, $callback);
  21950. }
  21951. /**
  21952. * Execute the query and get the first result if it's the sole matching record.
  21953. *
  21954. * @param array|string $columns
  21955. * @return TModel
  21956. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  21957. * @throws \Illuminate\Database\MultipleRecordsFoundException
  21958. * @static
  21959. */
  21960. public static function sole($columns = [])
  21961. {
  21962. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21963. return $instance->sole($columns);
  21964. }
  21965. /**
  21966. * Get a single column's value from the first result of a query.
  21967. *
  21968. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  21969. * @return mixed
  21970. * @static
  21971. */
  21972. public static function value($column)
  21973. {
  21974. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21975. return $instance->value($column);
  21976. }
  21977. /**
  21978. * Get a single column's value from the first result of a query if it's the sole matching record.
  21979. *
  21980. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  21981. * @return mixed
  21982. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  21983. * @throws \Illuminate\Database\MultipleRecordsFoundException
  21984. * @static
  21985. */
  21986. public static function soleValue($column)
  21987. {
  21988. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  21989. return $instance->soleValue($column);
  21990. }
  21991. /**
  21992. * Get a single column's value from the first result of the query or throw an exception.
  21993. *
  21994. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  21995. * @return mixed
  21996. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  21997. * @static
  21998. */
  21999. public static function valueOrFail($column)
  22000. {
  22001. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22002. return $instance->valueOrFail($column);
  22003. }
  22004. /**
  22005. * Execute the query as a "select" statement.
  22006. *
  22007. * @param array|string $columns
  22008. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  22009. * @static
  22010. */
  22011. public static function get($columns = [])
  22012. {
  22013. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22014. return $instance->get($columns);
  22015. }
  22016. /**
  22017. * Get the hydrated models without eager loading.
  22018. *
  22019. * @param array|string $columns
  22020. * @return array<int, TModel>
  22021. * @static
  22022. */
  22023. public static function getModels($columns = [])
  22024. {
  22025. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22026. return $instance->getModels($columns);
  22027. }
  22028. /**
  22029. * Eager load the relationships for the models.
  22030. *
  22031. * @param array<int, TModel> $models
  22032. * @return array<int, TModel>
  22033. * @static
  22034. */
  22035. public static function eagerLoadRelations($models)
  22036. {
  22037. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22038. return $instance->eagerLoadRelations($models);
  22039. }
  22040. /**
  22041. * Register a closure to be invoked after the query is executed.
  22042. *
  22043. * @param \Closure $callback
  22044. * @return \Illuminate\Database\Eloquent\Builder<static>
  22045. * @static
  22046. */
  22047. public static function afterQuery($callback)
  22048. {
  22049. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22050. return $instance->afterQuery($callback);
  22051. }
  22052. /**
  22053. * Invoke the "after query" modification callbacks.
  22054. *
  22055. * @param mixed $result
  22056. * @return mixed
  22057. * @static
  22058. */
  22059. public static function applyAfterQueryCallbacks($result)
  22060. {
  22061. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22062. return $instance->applyAfterQueryCallbacks($result);
  22063. }
  22064. /**
  22065. * Get a lazy collection for the given query.
  22066. *
  22067. * @return \Illuminate\Support\LazyCollection<int, TModel>
  22068. * @static
  22069. */
  22070. public static function cursor()
  22071. {
  22072. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22073. return $instance->cursor();
  22074. }
  22075. /**
  22076. * Get a collection with the values of a given column.
  22077. *
  22078. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  22079. * @param string|null $key
  22080. * @return \Illuminate\Support\Collection<array-key, mixed>
  22081. * @static
  22082. */
  22083. public static function pluck($column, $key = null)
  22084. {
  22085. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22086. return $instance->pluck($column, $key);
  22087. }
  22088. /**
  22089. * Paginate the given query.
  22090. *
  22091. * @param int|null|\Closure $perPage
  22092. * @param array|string $columns
  22093. * @param string $pageName
  22094. * @param int|null $page
  22095. * @param \Closure|int|null $total
  22096. * @return \Illuminate\Pagination\LengthAwarePaginator
  22097. * @throws \InvalidArgumentException
  22098. * @static
  22099. */
  22100. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null, $total = null)
  22101. {
  22102. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22103. return $instance->paginate($perPage, $columns, $pageName, $page, $total);
  22104. }
  22105. /**
  22106. * Paginate the given query into a simple paginator.
  22107. *
  22108. * @param int|null $perPage
  22109. * @param array|string $columns
  22110. * @param string $pageName
  22111. * @param int|null $page
  22112. * @return \Illuminate\Contracts\Pagination\Paginator
  22113. * @static
  22114. */
  22115. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  22116. {
  22117. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22118. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  22119. }
  22120. /**
  22121. * Paginate the given query into a cursor paginator.
  22122. *
  22123. * @param int|null $perPage
  22124. * @param array|string $columns
  22125. * @param string $cursorName
  22126. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  22127. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  22128. * @static
  22129. */
  22130. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  22131. {
  22132. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22133. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  22134. }
  22135. /**
  22136. * Save a new model and return the instance.
  22137. *
  22138. * @param array $attributes
  22139. * @return TModel
  22140. * @static
  22141. */
  22142. public static function create($attributes = [])
  22143. {
  22144. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22145. return $instance->create($attributes);
  22146. }
  22147. /**
  22148. * Save a new model and return the instance without raising model events.
  22149. *
  22150. * @param array $attributes
  22151. * @return TModel
  22152. * @static
  22153. */
  22154. public static function createQuietly($attributes = [])
  22155. {
  22156. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22157. return $instance->createQuietly($attributes);
  22158. }
  22159. /**
  22160. * Save a new model and return the instance. Allow mass-assignment.
  22161. *
  22162. * @param array $attributes
  22163. * @return TModel
  22164. * @static
  22165. */
  22166. public static function forceCreate($attributes)
  22167. {
  22168. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22169. return $instance->forceCreate($attributes);
  22170. }
  22171. /**
  22172. * Save a new model instance with mass assignment without raising model events.
  22173. *
  22174. * @param array $attributes
  22175. * @return TModel
  22176. * @static
  22177. */
  22178. public static function forceCreateQuietly($attributes = [])
  22179. {
  22180. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22181. return $instance->forceCreateQuietly($attributes);
  22182. }
  22183. /**
  22184. * Insert new records or update the existing ones.
  22185. *
  22186. * @param array $values
  22187. * @param array|string $uniqueBy
  22188. * @param array|null $update
  22189. * @return int
  22190. * @static
  22191. */
  22192. public static function upsert($values, $uniqueBy, $update = null)
  22193. {
  22194. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22195. return $instance->upsert($values, $uniqueBy, $update);
  22196. }
  22197. /**
  22198. * Register a replacement for the default delete function.
  22199. *
  22200. * @param \Closure $callback
  22201. * @return void
  22202. * @static
  22203. */
  22204. public static function onDelete($callback)
  22205. {
  22206. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22207. $instance->onDelete($callback);
  22208. }
  22209. /**
  22210. * Call the given local model scopes.
  22211. *
  22212. * @param array|string $scopes
  22213. * @return static|mixed
  22214. * @static
  22215. */
  22216. public static function scopes($scopes)
  22217. {
  22218. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22219. return $instance->scopes($scopes);
  22220. }
  22221. /**
  22222. * Apply the scopes to the Eloquent builder instance and return it.
  22223. *
  22224. * @return static
  22225. * @static
  22226. */
  22227. public static function applyScopes()
  22228. {
  22229. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22230. return $instance->applyScopes();
  22231. }
  22232. /**
  22233. * Prevent the specified relations from being eager loaded.
  22234. *
  22235. * @param mixed $relations
  22236. * @return \Illuminate\Database\Eloquent\Builder<static>
  22237. * @static
  22238. */
  22239. public static function without($relations)
  22240. {
  22241. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22242. return $instance->without($relations);
  22243. }
  22244. /**
  22245. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  22246. *
  22247. * @param array<array-key, array|(\Closure(\Illuminate\Database\Eloquent\Relations\Relation<*,*,*>): mixed)|string>|string $relations
  22248. * @return \Illuminate\Database\Eloquent\Builder<static>
  22249. * @static
  22250. */
  22251. public static function withOnly($relations)
  22252. {
  22253. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22254. return $instance->withOnly($relations);
  22255. }
  22256. /**
  22257. * Create a new instance of the model being queried.
  22258. *
  22259. * @param array $attributes
  22260. * @return TModel
  22261. * @static
  22262. */
  22263. public static function newModelInstance($attributes = [])
  22264. {
  22265. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22266. return $instance->newModelInstance($attributes);
  22267. }
  22268. /**
  22269. * Specify attributes that should be added to any new models created by this builder.
  22270. *
  22271. * The given key / value pairs will also be added as where conditions to the query.
  22272. *
  22273. * @param \Illuminate\Contracts\Database\Query\Expression|array|string $attributes
  22274. * @param mixed $value
  22275. * @param bool $asConditions
  22276. * @return \Illuminate\Database\Eloquent\Builder<static>
  22277. * @static
  22278. */
  22279. public static function withAttributes($attributes, $value = null, $asConditions = true)
  22280. {
  22281. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22282. return $instance->withAttributes($attributes, $value, $asConditions);
  22283. }
  22284. /**
  22285. * Apply query-time casts to the model instance.
  22286. *
  22287. * @param array $casts
  22288. * @return \Illuminate\Database\Eloquent\Builder<static>
  22289. * @static
  22290. */
  22291. public static function withCasts($casts)
  22292. {
  22293. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22294. return $instance->withCasts($casts);
  22295. }
  22296. /**
  22297. * Execute the given Closure within a transaction savepoint if needed.
  22298. *
  22299. * @template TModelValue
  22300. * @param \Closure(): TModelValue $scope
  22301. * @return TModelValue
  22302. * @static
  22303. */
  22304. public static function withSavepointIfNeeded($scope)
  22305. {
  22306. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22307. return $instance->withSavepointIfNeeded($scope);
  22308. }
  22309. /**
  22310. * Get the underlying query builder instance.
  22311. *
  22312. * @return \Illuminate\Database\Query\Builder
  22313. * @static
  22314. */
  22315. public static function getQuery()
  22316. {
  22317. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22318. return $instance->getQuery();
  22319. }
  22320. /**
  22321. * Set the underlying query builder instance.
  22322. *
  22323. * @param \Illuminate\Database\Query\Builder $query
  22324. * @return \Illuminate\Database\Eloquent\Builder<static>
  22325. * @static
  22326. */
  22327. public static function setQuery($query)
  22328. {
  22329. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22330. return $instance->setQuery($query);
  22331. }
  22332. /**
  22333. * Get a base query builder instance.
  22334. *
  22335. * @return \Illuminate\Database\Query\Builder
  22336. * @static
  22337. */
  22338. public static function toBase()
  22339. {
  22340. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22341. return $instance->toBase();
  22342. }
  22343. /**
  22344. * Get the relationships being eagerly loaded.
  22345. *
  22346. * @return array
  22347. * @static
  22348. */
  22349. public static function getEagerLoads()
  22350. {
  22351. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22352. return $instance->getEagerLoads();
  22353. }
  22354. /**
  22355. * Set the relationships being eagerly loaded.
  22356. *
  22357. * @param array $eagerLoad
  22358. * @return \Illuminate\Database\Eloquent\Builder<static>
  22359. * @static
  22360. */
  22361. public static function setEagerLoads($eagerLoad)
  22362. {
  22363. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22364. return $instance->setEagerLoads($eagerLoad);
  22365. }
  22366. /**
  22367. * Indicate that the given relationships should not be eagerly loaded.
  22368. *
  22369. * @param array $relations
  22370. * @return \Illuminate\Database\Eloquent\Builder<static>
  22371. * @static
  22372. */
  22373. public static function withoutEagerLoad($relations)
  22374. {
  22375. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22376. return $instance->withoutEagerLoad($relations);
  22377. }
  22378. /**
  22379. * Flush the relationships being eagerly loaded.
  22380. *
  22381. * @return \Illuminate\Database\Eloquent\Builder<static>
  22382. * @static
  22383. */
  22384. public static function withoutEagerLoads()
  22385. {
  22386. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22387. return $instance->withoutEagerLoads();
  22388. }
  22389. /**
  22390. * Get the "limit" value from the query or null if it's not set.
  22391. *
  22392. * @return mixed
  22393. * @static
  22394. */
  22395. public static function getLimit()
  22396. {
  22397. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22398. return $instance->getLimit();
  22399. }
  22400. /**
  22401. * Get the "offset" value from the query or null if it's not set.
  22402. *
  22403. * @return mixed
  22404. * @static
  22405. */
  22406. public static function getOffset()
  22407. {
  22408. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22409. return $instance->getOffset();
  22410. }
  22411. /**
  22412. * Get the model instance being queried.
  22413. *
  22414. * @return TModel
  22415. * @static
  22416. */
  22417. public static function getModel()
  22418. {
  22419. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22420. return $instance->getModel();
  22421. }
  22422. /**
  22423. * Set a model instance for the model being queried.
  22424. *
  22425. * @template TModelNew of \Illuminate\Database\Eloquent\Model
  22426. * @param TModelNew $model
  22427. * @return static<TModelNew>
  22428. * @static
  22429. */
  22430. public static function setModel($model)
  22431. {
  22432. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22433. return $instance->setModel($model);
  22434. }
  22435. /**
  22436. * Get the given macro by name.
  22437. *
  22438. * @param string $name
  22439. * @return \Closure
  22440. * @static
  22441. */
  22442. public static function getMacro($name)
  22443. {
  22444. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22445. return $instance->getMacro($name);
  22446. }
  22447. /**
  22448. * Checks if a macro is registered.
  22449. *
  22450. * @param string $name
  22451. * @return bool
  22452. * @static
  22453. */
  22454. public static function hasMacro($name)
  22455. {
  22456. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22457. return $instance->hasMacro($name);
  22458. }
  22459. /**
  22460. * Get the given global macro by name.
  22461. *
  22462. * @param string $name
  22463. * @return \Closure
  22464. * @static
  22465. */
  22466. public static function getGlobalMacro($name)
  22467. {
  22468. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  22469. }
  22470. /**
  22471. * Checks if a global macro is registered.
  22472. *
  22473. * @param string $name
  22474. * @return bool
  22475. * @static
  22476. */
  22477. public static function hasGlobalMacro($name)
  22478. {
  22479. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  22480. }
  22481. /**
  22482. * Clone the Eloquent query builder.
  22483. *
  22484. * @return static
  22485. * @static
  22486. */
  22487. public static function clone()
  22488. {
  22489. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22490. return $instance->clone();
  22491. }
  22492. /**
  22493. * Register a closure to be invoked on a clone.
  22494. *
  22495. * @param \Closure $callback
  22496. * @return \Illuminate\Database\Eloquent\Builder<static>
  22497. * @static
  22498. */
  22499. public static function onClone($callback)
  22500. {
  22501. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22502. return $instance->onClone($callback);
  22503. }
  22504. /**
  22505. * Chunk the results of the query.
  22506. *
  22507. * @param int $count
  22508. * @param callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  22509. * @return bool
  22510. * @static
  22511. */
  22512. public static function chunk($count, $callback)
  22513. {
  22514. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22515. return $instance->chunk($count, $callback);
  22516. }
  22517. /**
  22518. * Run a map over each item while chunking.
  22519. *
  22520. * @template TReturn
  22521. * @param callable(TValue): TReturn $callback
  22522. * @param int $count
  22523. * @return \Illuminate\Support\Collection<int, TReturn>
  22524. * @static
  22525. */
  22526. public static function chunkMap($callback, $count = 1000)
  22527. {
  22528. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22529. return $instance->chunkMap($callback, $count);
  22530. }
  22531. /**
  22532. * Execute a callback over each item while chunking.
  22533. *
  22534. * @param callable(TValue, int): mixed $callback
  22535. * @param int $count
  22536. * @return bool
  22537. * @throws \RuntimeException
  22538. * @static
  22539. */
  22540. public static function each($callback, $count = 1000)
  22541. {
  22542. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22543. return $instance->each($callback, $count);
  22544. }
  22545. /**
  22546. * Chunk the results of a query by comparing IDs.
  22547. *
  22548. * @param int $count
  22549. * @param callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  22550. * @param string|null $column
  22551. * @param string|null $alias
  22552. * @return bool
  22553. * @static
  22554. */
  22555. public static function chunkById($count, $callback, $column = null, $alias = null)
  22556. {
  22557. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22558. return $instance->chunkById($count, $callback, $column, $alias);
  22559. }
  22560. /**
  22561. * Chunk the results of a query by comparing IDs in descending order.
  22562. *
  22563. * @param int $count
  22564. * @param callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  22565. * @param string|null $column
  22566. * @param string|null $alias
  22567. * @return bool
  22568. * @static
  22569. */
  22570. public static function chunkByIdDesc($count, $callback, $column = null, $alias = null)
  22571. {
  22572. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22573. return $instance->chunkByIdDesc($count, $callback, $column, $alias);
  22574. }
  22575. /**
  22576. * Chunk the results of a query by comparing IDs in a given order.
  22577. *
  22578. * @param int $count
  22579. * @param callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  22580. * @param string|null $column
  22581. * @param string|null $alias
  22582. * @param bool $descending
  22583. * @return bool
  22584. * @throws \RuntimeException
  22585. * @static
  22586. */
  22587. public static function orderedChunkById($count, $callback, $column = null, $alias = null, $descending = false)
  22588. {
  22589. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22590. return $instance->orderedChunkById($count, $callback, $column, $alias, $descending);
  22591. }
  22592. /**
  22593. * Execute a callback over each item while chunking by ID.
  22594. *
  22595. * @param callable(TValue, int): mixed $callback
  22596. * @param int $count
  22597. * @param string|null $column
  22598. * @param string|null $alias
  22599. * @return bool
  22600. * @static
  22601. */
  22602. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  22603. {
  22604. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22605. return $instance->eachById($callback, $count, $column, $alias);
  22606. }
  22607. /**
  22608. * Query lazily, by chunks of the given size.
  22609. *
  22610. * @param int $chunkSize
  22611. * @return \Illuminate\Support\LazyCollection<int, TValue>
  22612. * @throws \InvalidArgumentException
  22613. * @static
  22614. */
  22615. public static function lazy($chunkSize = 1000)
  22616. {
  22617. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22618. return $instance->lazy($chunkSize);
  22619. }
  22620. /**
  22621. * Query lazily, by chunking the results of a query by comparing IDs.
  22622. *
  22623. * @param int $chunkSize
  22624. * @param string|null $column
  22625. * @param string|null $alias
  22626. * @return \Illuminate\Support\LazyCollection<int, TValue>
  22627. * @throws \InvalidArgumentException
  22628. * @static
  22629. */
  22630. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  22631. {
  22632. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22633. return $instance->lazyById($chunkSize, $column, $alias);
  22634. }
  22635. /**
  22636. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  22637. *
  22638. * @param int $chunkSize
  22639. * @param string|null $column
  22640. * @param string|null $alias
  22641. * @return \Illuminate\Support\LazyCollection<int, TValue>
  22642. * @throws \InvalidArgumentException
  22643. * @static
  22644. */
  22645. public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  22646. {
  22647. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22648. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  22649. }
  22650. /**
  22651. * Execute the query and get the first result.
  22652. *
  22653. * @param array|string $columns
  22654. * @return TValue|null
  22655. * @static
  22656. */
  22657. public static function first($columns = [])
  22658. {
  22659. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22660. return $instance->first($columns);
  22661. }
  22662. /**
  22663. * Execute the query and get the first result if it's the sole matching record.
  22664. *
  22665. * @param array|string $columns
  22666. * @return TValue
  22667. * @throws \Illuminate\Database\RecordsNotFoundException
  22668. * @throws \Illuminate\Database\MultipleRecordsFoundException
  22669. * @static
  22670. */
  22671. public static function baseSole($columns = [])
  22672. {
  22673. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22674. return $instance->baseSole($columns);
  22675. }
  22676. /**
  22677. * Pass the query to a given callback and then return it.
  22678. *
  22679. * @param callable($this): mixed $callback
  22680. * @return \Illuminate\Database\Eloquent\Builder<static>
  22681. * @static
  22682. */
  22683. public static function tap($callback)
  22684. {
  22685. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22686. return $instance->tap($callback);
  22687. }
  22688. /**
  22689. * Pass the query to a given callback and return the result.
  22690. *
  22691. * @template TReturn
  22692. * @param (callable($this): TReturn) $callback
  22693. * @return (TReturn is null|void ? $this : TReturn)
  22694. * @static
  22695. */
  22696. public static function pipe($callback)
  22697. {
  22698. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22699. return $instance->pipe($callback);
  22700. }
  22701. /**
  22702. * Apply the callback if the given "value" is (or resolves to) truthy.
  22703. *
  22704. * @template TWhenParameter
  22705. * @template TWhenReturnType
  22706. * @param (\Closure($this): TWhenParameter)|TWhenParameter|null $value
  22707. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  22708. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  22709. * @return $this|TWhenReturnType
  22710. * @static
  22711. */
  22712. public static function when($value = null, $callback = null, $default = null)
  22713. {
  22714. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22715. return $instance->when($value, $callback, $default);
  22716. }
  22717. /**
  22718. * Apply the callback if the given "value" is (or resolves to) falsy.
  22719. *
  22720. * @template TUnlessParameter
  22721. * @template TUnlessReturnType
  22722. * @param (\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  22723. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  22724. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  22725. * @return $this|TUnlessReturnType
  22726. * @static
  22727. */
  22728. public static function unless($value = null, $callback = null, $default = null)
  22729. {
  22730. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22731. return $instance->unless($value, $callback, $default);
  22732. }
  22733. /**
  22734. * Add a relationship count / exists condition to the query.
  22735. *
  22736. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22737. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  22738. * @param string $operator
  22739. * @param int $count
  22740. * @param string $boolean
  22741. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
  22742. * @return \Illuminate\Database\Eloquent\Builder<static>
  22743. * @throws \RuntimeException
  22744. * @static
  22745. */
  22746. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  22747. {
  22748. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22749. return $instance->has($relation, $operator, $count, $boolean, $callback);
  22750. }
  22751. /**
  22752. * Add a relationship count / exists condition to the query with an "or".
  22753. *
  22754. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  22755. * @param string $operator
  22756. * @param int $count
  22757. * @return \Illuminate\Database\Eloquent\Builder<static>
  22758. * @static
  22759. */
  22760. public static function orHas($relation, $operator = '>=', $count = 1)
  22761. {
  22762. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22763. return $instance->orHas($relation, $operator, $count);
  22764. }
  22765. /**
  22766. * Add a relationship count / exists condition to the query.
  22767. *
  22768. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22769. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  22770. * @param string $boolean
  22771. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
  22772. * @return \Illuminate\Database\Eloquent\Builder<static>
  22773. * @static
  22774. */
  22775. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  22776. {
  22777. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22778. return $instance->doesntHave($relation, $boolean, $callback);
  22779. }
  22780. /**
  22781. * Add a relationship count / exists condition to the query with an "or".
  22782. *
  22783. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  22784. * @return \Illuminate\Database\Eloquent\Builder<static>
  22785. * @static
  22786. */
  22787. public static function orDoesntHave($relation)
  22788. {
  22789. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22790. return $instance->orDoesntHave($relation);
  22791. }
  22792. /**
  22793. * Add a relationship count / exists condition to the query with where clauses.
  22794. *
  22795. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22796. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  22797. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
  22798. * @param string $operator
  22799. * @param int $count
  22800. * @return \Illuminate\Database\Eloquent\Builder<static>
  22801. * @static
  22802. */
  22803. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  22804. {
  22805. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22806. return $instance->whereHas($relation, $callback, $operator, $count);
  22807. }
  22808. /**
  22809. * Add a relationship count / exists condition to the query with where clauses.
  22810. *
  22811. * Also load the relationship with the same condition.
  22812. *
  22813. * @param string $relation
  22814. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|null $callback
  22815. * @param string $operator
  22816. * @param int $count
  22817. * @return \Illuminate\Database\Eloquent\Builder<static>
  22818. * @static
  22819. */
  22820. public static function withWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  22821. {
  22822. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22823. return $instance->withWhereHas($relation, $callback, $operator, $count);
  22824. }
  22825. /**
  22826. * Add a relationship count / exists condition to the query with where clauses and an "or".
  22827. *
  22828. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22829. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  22830. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
  22831. * @param string $operator
  22832. * @param int $count
  22833. * @return \Illuminate\Database\Eloquent\Builder<static>
  22834. * @static
  22835. */
  22836. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  22837. {
  22838. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22839. return $instance->orWhereHas($relation, $callback, $operator, $count);
  22840. }
  22841. /**
  22842. * Add a relationship count / exists condition to the query with where clauses.
  22843. *
  22844. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22845. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  22846. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
  22847. * @return \Illuminate\Database\Eloquent\Builder<static>
  22848. * @static
  22849. */
  22850. public static function whereDoesntHave($relation, $callback = null)
  22851. {
  22852. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22853. return $instance->whereDoesntHave($relation, $callback);
  22854. }
  22855. /**
  22856. * Add a relationship count / exists condition to the query with where clauses and an "or".
  22857. *
  22858. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22859. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  22860. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|null $callback
  22861. * @return \Illuminate\Database\Eloquent\Builder<static>
  22862. * @static
  22863. */
  22864. public static function orWhereDoesntHave($relation, $callback = null)
  22865. {
  22866. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22867. return $instance->orWhereDoesntHave($relation, $callback);
  22868. }
  22869. /**
  22870. * Add a polymorphic relationship count / exists condition to the query.
  22871. *
  22872. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22873. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  22874. * @param string|array<int, string> $types
  22875. * @param string $operator
  22876. * @param int $count
  22877. * @param string $boolean
  22878. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
  22879. * @return \Illuminate\Database\Eloquent\Builder<static>
  22880. * @static
  22881. */
  22882. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  22883. {
  22884. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22885. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  22886. }
  22887. /**
  22888. * Add a polymorphic relationship count / exists condition to the query with an "or".
  22889. *
  22890. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  22891. * @param string|array<int, string> $types
  22892. * @param string $operator
  22893. * @param int $count
  22894. * @return \Illuminate\Database\Eloquent\Builder<static>
  22895. * @static
  22896. */
  22897. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  22898. {
  22899. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22900. return $instance->orHasMorph($relation, $types, $operator, $count);
  22901. }
  22902. /**
  22903. * Add a polymorphic relationship count / exists condition to the query.
  22904. *
  22905. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22906. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  22907. * @param string|array<int, string> $types
  22908. * @param string $boolean
  22909. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
  22910. * @return \Illuminate\Database\Eloquent\Builder<static>
  22911. * @static
  22912. */
  22913. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  22914. {
  22915. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22916. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  22917. }
  22918. /**
  22919. * Add a polymorphic relationship count / exists condition to the query with an "or".
  22920. *
  22921. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  22922. * @param string|array<int, string> $types
  22923. * @return \Illuminate\Database\Eloquent\Builder<static>
  22924. * @static
  22925. */
  22926. public static function orDoesntHaveMorph($relation, $types)
  22927. {
  22928. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22929. return $instance->orDoesntHaveMorph($relation, $types);
  22930. }
  22931. /**
  22932. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  22933. *
  22934. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22935. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  22936. * @param string|array<int, string> $types
  22937. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
  22938. * @param string $operator
  22939. * @param int $count
  22940. * @return \Illuminate\Database\Eloquent\Builder<static>
  22941. * @static
  22942. */
  22943. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  22944. {
  22945. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22946. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  22947. }
  22948. /**
  22949. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  22950. *
  22951. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22952. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  22953. * @param string|array<int, string> $types
  22954. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
  22955. * @param string $operator
  22956. * @param int $count
  22957. * @return \Illuminate\Database\Eloquent\Builder<static>
  22958. * @static
  22959. */
  22960. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  22961. {
  22962. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22963. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  22964. }
  22965. /**
  22966. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  22967. *
  22968. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22969. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  22970. * @param string|array<int, string> $types
  22971. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
  22972. * @return \Illuminate\Database\Eloquent\Builder<static>
  22973. * @static
  22974. */
  22975. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  22976. {
  22977. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22978. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  22979. }
  22980. /**
  22981. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  22982. *
  22983. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22984. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  22985. * @param string|array<int, string> $types
  22986. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>, string): mixed)|null $callback
  22987. * @return \Illuminate\Database\Eloquent\Builder<static>
  22988. * @static
  22989. */
  22990. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  22991. {
  22992. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  22993. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  22994. }
  22995. /**
  22996. * Add a basic where clause to a relationship query.
  22997. *
  22998. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  22999. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  23000. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23001. * @param mixed $operator
  23002. * @param mixed $value
  23003. * @return \Illuminate\Database\Eloquent\Builder<static>
  23004. * @static
  23005. */
  23006. public static function whereRelation($relation, $column, $operator = null, $value = null)
  23007. {
  23008. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23009. return $instance->whereRelation($relation, $column, $operator, $value);
  23010. }
  23011. /**
  23012. * Add a basic where clause to a relationship query and eager-load the relationship with the same conditions.
  23013. *
  23014. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  23015. * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23016. * @param mixed $operator
  23017. * @param mixed $value
  23018. * @return \Illuminate\Database\Eloquent\Builder<static>
  23019. * @static
  23020. */
  23021. public static function withWhereRelation($relation, $column, $operator = null, $value = null)
  23022. {
  23023. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23024. return $instance->withWhereRelation($relation, $column, $operator, $value);
  23025. }
  23026. /**
  23027. * Add an "or where" clause to a relationship query.
  23028. *
  23029. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  23030. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  23031. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23032. * @param mixed $operator
  23033. * @param mixed $value
  23034. * @return \Illuminate\Database\Eloquent\Builder<static>
  23035. * @static
  23036. */
  23037. public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  23038. {
  23039. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23040. return $instance->orWhereRelation($relation, $column, $operator, $value);
  23041. }
  23042. /**
  23043. * Add a basic count / exists condition to a relationship query.
  23044. *
  23045. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  23046. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  23047. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23048. * @param mixed $operator
  23049. * @param mixed $value
  23050. * @return \Illuminate\Database\Eloquent\Builder<static>
  23051. * @static
  23052. */
  23053. public static function whereDoesntHaveRelation($relation, $column, $operator = null, $value = null)
  23054. {
  23055. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23056. return $instance->whereDoesntHaveRelation($relation, $column, $operator, $value);
  23057. }
  23058. /**
  23059. * Add an "or where" clause to a relationship query.
  23060. *
  23061. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  23062. * @param \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, *, *>|string $relation
  23063. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23064. * @param mixed $operator
  23065. * @param mixed $value
  23066. * @return \Illuminate\Database\Eloquent\Builder<static>
  23067. * @static
  23068. */
  23069. public static function orWhereDoesntHaveRelation($relation, $column, $operator = null, $value = null)
  23070. {
  23071. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23072. return $instance->orWhereDoesntHaveRelation($relation, $column, $operator, $value);
  23073. }
  23074. /**
  23075. * Add a polymorphic relationship condition to the query with a where clause.
  23076. *
  23077. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  23078. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  23079. * @param string|array<int, string> $types
  23080. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23081. * @param mixed $operator
  23082. * @param mixed $value
  23083. * @return \Illuminate\Database\Eloquent\Builder<static>
  23084. * @static
  23085. */
  23086. public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  23087. {
  23088. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23089. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  23090. }
  23091. /**
  23092. * Add a polymorphic relationship condition to the query with an "or where" clause.
  23093. *
  23094. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  23095. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  23096. * @param string|array<int, string> $types
  23097. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23098. * @param mixed $operator
  23099. * @param mixed $value
  23100. * @return \Illuminate\Database\Eloquent\Builder<static>
  23101. * @static
  23102. */
  23103. public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  23104. {
  23105. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23106. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  23107. }
  23108. /**
  23109. * Add a polymorphic relationship condition to the query with a doesn't have clause.
  23110. *
  23111. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  23112. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  23113. * @param string|array<int, string> $types
  23114. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23115. * @param mixed $operator
  23116. * @param mixed $value
  23117. * @return \Illuminate\Database\Eloquent\Builder<static>
  23118. * @static
  23119. */
  23120. public static function whereMorphDoesntHaveRelation($relation, $types, $column, $operator = null, $value = null)
  23121. {
  23122. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23123. return $instance->whereMorphDoesntHaveRelation($relation, $types, $column, $operator, $value);
  23124. }
  23125. /**
  23126. * Add a polymorphic relationship condition to the query with an "or doesn't have" clause.
  23127. *
  23128. * @template TRelatedModel of \Illuminate\Database\Eloquent\Model
  23129. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<TRelatedModel, *>|string $relation
  23130. * @param string|array<int, string> $types
  23131. * @param (\Closure(\Illuminate\Database\Eloquent\Builder<TRelatedModel>): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  23132. * @param mixed $operator
  23133. * @param mixed $value
  23134. * @return \Illuminate\Database\Eloquent\Builder<static>
  23135. * @static
  23136. */
  23137. public static function orWhereMorphDoesntHaveRelation($relation, $types, $column, $operator = null, $value = null)
  23138. {
  23139. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23140. return $instance->orWhereMorphDoesntHaveRelation($relation, $types, $column, $operator, $value);
  23141. }
  23142. /**
  23143. * Add a morph-to relationship condition to the query.
  23144. *
  23145. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  23146. * @param \Illuminate\Database\Eloquent\Model|iterable<int, \Illuminate\Database\Eloquent\Model>|string|null $model
  23147. * @return \Illuminate\Database\Eloquent\Builder<static>
  23148. * @static
  23149. */
  23150. public static function whereMorphedTo($relation, $model, $boolean = 'and')
  23151. {
  23152. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23153. return $instance->whereMorphedTo($relation, $model, $boolean);
  23154. }
  23155. /**
  23156. * Add a not morph-to relationship condition to the query.
  23157. *
  23158. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  23159. * @param \Illuminate\Database\Eloquent\Model|iterable<int, \Illuminate\Database\Eloquent\Model>|string $model
  23160. * @return \Illuminate\Database\Eloquent\Builder<static>
  23161. * @static
  23162. */
  23163. public static function whereNotMorphedTo($relation, $model, $boolean = 'and')
  23164. {
  23165. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23166. return $instance->whereNotMorphedTo($relation, $model, $boolean);
  23167. }
  23168. /**
  23169. * Add a morph-to relationship condition to the query with an "or where" clause.
  23170. *
  23171. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  23172. * @param \Illuminate\Database\Eloquent\Model|iterable<int, \Illuminate\Database\Eloquent\Model>|string|null $model
  23173. * @return \Illuminate\Database\Eloquent\Builder<static>
  23174. * @static
  23175. */
  23176. public static function orWhereMorphedTo($relation, $model)
  23177. {
  23178. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23179. return $instance->orWhereMorphedTo($relation, $model);
  23180. }
  23181. /**
  23182. * Add a not morph-to relationship condition to the query with an "or where" clause.
  23183. *
  23184. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  23185. * @param \Illuminate\Database\Eloquent\Model|iterable<int, \Illuminate\Database\Eloquent\Model>|string $model
  23186. * @return \Illuminate\Database\Eloquent\Builder<static>
  23187. * @static
  23188. */
  23189. public static function orWhereNotMorphedTo($relation, $model)
  23190. {
  23191. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23192. return $instance->orWhereNotMorphedTo($relation, $model);
  23193. }
  23194. /**
  23195. * Add a "belongs to" relationship where clause to the query.
  23196. *
  23197. * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<int, \Illuminate\Database\Eloquent\Model> $related
  23198. * @param string|null $relationshipName
  23199. * @param string $boolean
  23200. * @return \Illuminate\Database\Eloquent\Builder<static>
  23201. * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
  23202. * @static
  23203. */
  23204. public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  23205. {
  23206. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23207. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  23208. }
  23209. /**
  23210. * Add a "BelongsTo" relationship with an "or where" clause to the query.
  23211. *
  23212. * @param \Illuminate\Database\Eloquent\Model $related
  23213. * @param string|null $relationshipName
  23214. * @return \Illuminate\Database\Eloquent\Builder<static>
  23215. * @throws \RuntimeException
  23216. * @static
  23217. */
  23218. public static function orWhereBelongsTo($related, $relationshipName = null)
  23219. {
  23220. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23221. return $instance->orWhereBelongsTo($related, $relationshipName);
  23222. }
  23223. /**
  23224. * Add a "belongs to many" relationship where clause to the query.
  23225. *
  23226. * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<int, \Illuminate\Database\Eloquent\Model> $related
  23227. * @param string|null $relationshipName
  23228. * @param string $boolean
  23229. * @return \Illuminate\Database\Eloquent\Builder<static>
  23230. * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
  23231. * @static
  23232. */
  23233. public static function whereAttachedTo($related, $relationshipName = null, $boolean = 'and')
  23234. {
  23235. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23236. return $instance->whereAttachedTo($related, $relationshipName, $boolean);
  23237. }
  23238. /**
  23239. * Add a "belongs to many" relationship with an "or where" clause to the query.
  23240. *
  23241. * @param \Illuminate\Database\Eloquent\Model $related
  23242. * @param string|null $relationshipName
  23243. * @return \Illuminate\Database\Eloquent\Builder<static>
  23244. * @throws \RuntimeException
  23245. * @static
  23246. */
  23247. public static function orWhereAttachedTo($related, $relationshipName = null)
  23248. {
  23249. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23250. return $instance->orWhereAttachedTo($related, $relationshipName);
  23251. }
  23252. /**
  23253. * Add subselect queries to include an aggregate value for a relationship.
  23254. *
  23255. * @param mixed $relations
  23256. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23257. * @param string $function
  23258. * @return \Illuminate\Database\Eloquent\Builder<static>
  23259. * @static
  23260. */
  23261. public static function withAggregate($relations, $column, $function = null)
  23262. {
  23263. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23264. return $instance->withAggregate($relations, $column, $function);
  23265. }
  23266. /**
  23267. * Add subselect queries to count the relations.
  23268. *
  23269. * @param mixed $relations
  23270. * @return \Illuminate\Database\Eloquent\Builder<static>
  23271. * @static
  23272. */
  23273. public static function withCount($relations)
  23274. {
  23275. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23276. return $instance->withCount($relations);
  23277. }
  23278. /**
  23279. * Add subselect queries to include the max of the relation's column.
  23280. *
  23281. * @param string|array $relation
  23282. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23283. * @return \Illuminate\Database\Eloquent\Builder<static>
  23284. * @static
  23285. */
  23286. public static function withMax($relation, $column)
  23287. {
  23288. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23289. return $instance->withMax($relation, $column);
  23290. }
  23291. /**
  23292. * Add subselect queries to include the min of the relation's column.
  23293. *
  23294. * @param string|array $relation
  23295. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23296. * @return \Illuminate\Database\Eloquent\Builder<static>
  23297. * @static
  23298. */
  23299. public static function withMin($relation, $column)
  23300. {
  23301. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23302. return $instance->withMin($relation, $column);
  23303. }
  23304. /**
  23305. * Add subselect queries to include the sum of the relation's column.
  23306. *
  23307. * @param string|array $relation
  23308. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23309. * @return \Illuminate\Database\Eloquent\Builder<static>
  23310. * @static
  23311. */
  23312. public static function withSum($relation, $column)
  23313. {
  23314. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23315. return $instance->withSum($relation, $column);
  23316. }
  23317. /**
  23318. * Add subselect queries to include the average of the relation's column.
  23319. *
  23320. * @param string|array $relation
  23321. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23322. * @return \Illuminate\Database\Eloquent\Builder<static>
  23323. * @static
  23324. */
  23325. public static function withAvg($relation, $column)
  23326. {
  23327. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23328. return $instance->withAvg($relation, $column);
  23329. }
  23330. /**
  23331. * Add subselect queries to include the existence of related models.
  23332. *
  23333. * @param string|array $relation
  23334. * @return \Illuminate\Database\Eloquent\Builder<static>
  23335. * @static
  23336. */
  23337. public static function withExists($relation)
  23338. {
  23339. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23340. return $instance->withExists($relation);
  23341. }
  23342. /**
  23343. * Merge the where constraints from another query to the current query.
  23344. *
  23345. * @param \Illuminate\Database\Eloquent\Builder<*> $from
  23346. * @return \Illuminate\Database\Eloquent\Builder<static>
  23347. * @static
  23348. */
  23349. public static function mergeConstraintsFrom($from)
  23350. {
  23351. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  23352. return $instance->mergeConstraintsFrom($from);
  23353. }
  23354. /**
  23355. * @see \Maatwebsite\Excel\Mixins\DownloadQueryMacro::__invoke()
  23356. * @param string $fileName
  23357. * @param string|null $writerType
  23358. * @param mixed $withHeadings
  23359. * @static
  23360. */
  23361. public static function downloadExcel($fileName, $writerType = null, $withHeadings = false)
  23362. {
  23363. return \Illuminate\Database\Eloquent\Builder::downloadExcel($fileName, $writerType, $withHeadings);
  23364. }
  23365. /**
  23366. * @see \Maatwebsite\Excel\Mixins\StoreQueryMacro::__invoke()
  23367. * @param string $filePath
  23368. * @param string|null $disk
  23369. * @param string|null $writerType
  23370. * @param mixed $withHeadings
  23371. * @static
  23372. */
  23373. public static function storeExcel($filePath, $disk = null, $writerType = null, $withHeadings = false)
  23374. {
  23375. return \Illuminate\Database\Eloquent\Builder::storeExcel($filePath, $disk, $writerType, $withHeadings);
  23376. }
  23377. /**
  23378. * @see \Maatwebsite\Excel\Mixins\ImportMacro::__invoke()
  23379. * @param string $filename
  23380. * @param string|null $disk
  23381. * @param string|null $readerType
  23382. * @static
  23383. */
  23384. public static function import($filename, $disk = null, $readerType = null)
  23385. {
  23386. return \Illuminate\Database\Eloquent\Builder::import($filename, $disk, $readerType);
  23387. }
  23388. /**
  23389. * @see \Maatwebsite\Excel\Mixins\ImportAsMacro::__invoke()
  23390. * @param string $filename
  23391. * @param callable $mapping
  23392. * @param string|null $disk
  23393. * @param string|null $readerType
  23394. * @static
  23395. */
  23396. public static function importAs($filename, $mapping, $disk = null, $readerType = null)
  23397. {
  23398. return \Illuminate\Database\Eloquent\Builder::importAs($filename, $mapping, $disk, $readerType);
  23399. }
  23400. /**
  23401. * Set the columns to be selected.
  23402. *
  23403. * @param mixed $columns
  23404. * @return \Illuminate\Database\Eloquent\Builder<static>
  23405. * @static
  23406. */
  23407. public static function select($columns = [])
  23408. {
  23409. /** @var \Illuminate\Database\Query\Builder $instance */
  23410. return $instance->select($columns);
  23411. }
  23412. /**
  23413. * Add a subselect expression to the query.
  23414. *
  23415. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  23416. * @param string $as
  23417. * @return \Illuminate\Database\Eloquent\Builder<static>
  23418. * @throws \InvalidArgumentException
  23419. * @static
  23420. */
  23421. public static function selectSub($query, $as)
  23422. {
  23423. /** @var \Illuminate\Database\Query\Builder $instance */
  23424. return $instance->selectSub($query, $as);
  23425. }
  23426. /**
  23427. * Add a new "raw" select expression to the query.
  23428. *
  23429. * @param string $expression
  23430. * @return \Illuminate\Database\Eloquent\Builder<static>
  23431. * @static
  23432. */
  23433. public static function selectRaw($expression, $bindings = [])
  23434. {
  23435. /** @var \Illuminate\Database\Query\Builder $instance */
  23436. return $instance->selectRaw($expression, $bindings);
  23437. }
  23438. /**
  23439. * Makes "from" fetch from a subquery.
  23440. *
  23441. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  23442. * @param string $as
  23443. * @return \Illuminate\Database\Eloquent\Builder<static>
  23444. * @throws \InvalidArgumentException
  23445. * @static
  23446. */
  23447. public static function fromSub($query, $as)
  23448. {
  23449. /** @var \Illuminate\Database\Query\Builder $instance */
  23450. return $instance->fromSub($query, $as);
  23451. }
  23452. /**
  23453. * Add a raw from clause to the query.
  23454. *
  23455. * @param string $expression
  23456. * @param mixed $bindings
  23457. * @return \Illuminate\Database\Eloquent\Builder<static>
  23458. * @static
  23459. */
  23460. public static function fromRaw($expression, $bindings = [])
  23461. {
  23462. /** @var \Illuminate\Database\Query\Builder $instance */
  23463. return $instance->fromRaw($expression, $bindings);
  23464. }
  23465. /**
  23466. * Add a new select column to the query.
  23467. *
  23468. * @param mixed $column
  23469. * @return \Illuminate\Database\Eloquent\Builder<static>
  23470. * @static
  23471. */
  23472. public static function addSelect($column)
  23473. {
  23474. /** @var \Illuminate\Database\Query\Builder $instance */
  23475. return $instance->addSelect($column);
  23476. }
  23477. /**
  23478. * Force the query to only return distinct results.
  23479. *
  23480. * @return \Illuminate\Database\Eloquent\Builder<static>
  23481. * @static
  23482. */
  23483. public static function distinct()
  23484. {
  23485. /** @var \Illuminate\Database\Query\Builder $instance */
  23486. return $instance->distinct();
  23487. }
  23488. /**
  23489. * Set the table which the query is targeting.
  23490. *
  23491. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $table
  23492. * @param string|null $as
  23493. * @return \Illuminate\Database\Eloquent\Builder<static>
  23494. * @static
  23495. */
  23496. public static function from($table, $as = null)
  23497. {
  23498. /** @var \Illuminate\Database\Query\Builder $instance */
  23499. return $instance->from($table, $as);
  23500. }
  23501. /**
  23502. * Add an index hint to suggest a query index.
  23503. *
  23504. * @param string $index
  23505. * @return \Illuminate\Database\Eloquent\Builder<static>
  23506. * @static
  23507. */
  23508. public static function useIndex($index)
  23509. {
  23510. /** @var \Illuminate\Database\Query\Builder $instance */
  23511. return $instance->useIndex($index);
  23512. }
  23513. /**
  23514. * Add an index hint to force a query index.
  23515. *
  23516. * @param string $index
  23517. * @return \Illuminate\Database\Eloquent\Builder<static>
  23518. * @static
  23519. */
  23520. public static function forceIndex($index)
  23521. {
  23522. /** @var \Illuminate\Database\Query\Builder $instance */
  23523. return $instance->forceIndex($index);
  23524. }
  23525. /**
  23526. * Add an index hint to ignore a query index.
  23527. *
  23528. * @param string $index
  23529. * @return \Illuminate\Database\Eloquent\Builder<static>
  23530. * @static
  23531. */
  23532. public static function ignoreIndex($index)
  23533. {
  23534. /** @var \Illuminate\Database\Query\Builder $instance */
  23535. return $instance->ignoreIndex($index);
  23536. }
  23537. /**
  23538. * Add a join clause to the query.
  23539. *
  23540. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  23541. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  23542. * @param string|null $operator
  23543. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  23544. * @param string $type
  23545. * @param bool $where
  23546. * @return \Illuminate\Database\Eloquent\Builder<static>
  23547. * @static
  23548. */
  23549. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  23550. {
  23551. /** @var \Illuminate\Database\Query\Builder $instance */
  23552. return $instance->join($table, $first, $operator, $second, $type, $where);
  23553. }
  23554. /**
  23555. * Add a "join where" clause to the query.
  23556. *
  23557. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  23558. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  23559. * @param string $operator
  23560. * @param \Illuminate\Contracts\Database\Query\Expression|string $second
  23561. * @param string $type
  23562. * @return \Illuminate\Database\Eloquent\Builder<static>
  23563. * @static
  23564. */
  23565. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  23566. {
  23567. /** @var \Illuminate\Database\Query\Builder $instance */
  23568. return $instance->joinWhere($table, $first, $operator, $second, $type);
  23569. }
  23570. /**
  23571. * Add a subquery join clause to the query.
  23572. *
  23573. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  23574. * @param string $as
  23575. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  23576. * @param string|null $operator
  23577. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  23578. * @param string $type
  23579. * @param bool $where
  23580. * @return \Illuminate\Database\Eloquent\Builder<static>
  23581. * @throws \InvalidArgumentException
  23582. * @static
  23583. */
  23584. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  23585. {
  23586. /** @var \Illuminate\Database\Query\Builder $instance */
  23587. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  23588. }
  23589. /**
  23590. * Add a lateral join clause to the query.
  23591. *
  23592. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  23593. * @return \Illuminate\Database\Eloquent\Builder<static>
  23594. * @static
  23595. */
  23596. public static function joinLateral($query, $as, $type = 'inner')
  23597. {
  23598. /** @var \Illuminate\Database\Query\Builder $instance */
  23599. return $instance->joinLateral($query, $as, $type);
  23600. }
  23601. /**
  23602. * Add a lateral left join to the query.
  23603. *
  23604. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  23605. * @return \Illuminate\Database\Eloquent\Builder<static>
  23606. * @static
  23607. */
  23608. public static function leftJoinLateral($query, $as)
  23609. {
  23610. /** @var \Illuminate\Database\Query\Builder $instance */
  23611. return $instance->leftJoinLateral($query, $as);
  23612. }
  23613. /**
  23614. * Add a left join to the query.
  23615. *
  23616. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  23617. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  23618. * @param string|null $operator
  23619. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  23620. * @return \Illuminate\Database\Eloquent\Builder<static>
  23621. * @static
  23622. */
  23623. public static function leftJoin($table, $first, $operator = null, $second = null)
  23624. {
  23625. /** @var \Illuminate\Database\Query\Builder $instance */
  23626. return $instance->leftJoin($table, $first, $operator, $second);
  23627. }
  23628. /**
  23629. * Add a "join where" clause to the query.
  23630. *
  23631. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  23632. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  23633. * @param string $operator
  23634. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  23635. * @return \Illuminate\Database\Eloquent\Builder<static>
  23636. * @static
  23637. */
  23638. public static function leftJoinWhere($table, $first, $operator, $second)
  23639. {
  23640. /** @var \Illuminate\Database\Query\Builder $instance */
  23641. return $instance->leftJoinWhere($table, $first, $operator, $second);
  23642. }
  23643. /**
  23644. * Add a subquery left join to the query.
  23645. *
  23646. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  23647. * @param string $as
  23648. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  23649. * @param string|null $operator
  23650. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  23651. * @return \Illuminate\Database\Eloquent\Builder<static>
  23652. * @static
  23653. */
  23654. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  23655. {
  23656. /** @var \Illuminate\Database\Query\Builder $instance */
  23657. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  23658. }
  23659. /**
  23660. * Add a right join to the query.
  23661. *
  23662. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  23663. * @param \Closure|string $first
  23664. * @param string|null $operator
  23665. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  23666. * @return \Illuminate\Database\Eloquent\Builder<static>
  23667. * @static
  23668. */
  23669. public static function rightJoin($table, $first, $operator = null, $second = null)
  23670. {
  23671. /** @var \Illuminate\Database\Query\Builder $instance */
  23672. return $instance->rightJoin($table, $first, $operator, $second);
  23673. }
  23674. /**
  23675. * Add a "right join where" clause to the query.
  23676. *
  23677. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  23678. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  23679. * @param string $operator
  23680. * @param \Illuminate\Contracts\Database\Query\Expression|string $second
  23681. * @return \Illuminate\Database\Eloquent\Builder<static>
  23682. * @static
  23683. */
  23684. public static function rightJoinWhere($table, $first, $operator, $second)
  23685. {
  23686. /** @var \Illuminate\Database\Query\Builder $instance */
  23687. return $instance->rightJoinWhere($table, $first, $operator, $second);
  23688. }
  23689. /**
  23690. * Add a subquery right join to the query.
  23691. *
  23692. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  23693. * @param string $as
  23694. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  23695. * @param string|null $operator
  23696. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  23697. * @return \Illuminate\Database\Eloquent\Builder<static>
  23698. * @static
  23699. */
  23700. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  23701. {
  23702. /** @var \Illuminate\Database\Query\Builder $instance */
  23703. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  23704. }
  23705. /**
  23706. * Add a "cross join" clause to the query.
  23707. *
  23708. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  23709. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string|null $first
  23710. * @param string|null $operator
  23711. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  23712. * @return \Illuminate\Database\Eloquent\Builder<static>
  23713. * @static
  23714. */
  23715. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  23716. {
  23717. /** @var \Illuminate\Database\Query\Builder $instance */
  23718. return $instance->crossJoin($table, $first, $operator, $second);
  23719. }
  23720. /**
  23721. * Add a subquery cross join to the query.
  23722. *
  23723. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  23724. * @param string $as
  23725. * @return \Illuminate\Database\Eloquent\Builder<static>
  23726. * @static
  23727. */
  23728. public static function crossJoinSub($query, $as)
  23729. {
  23730. /** @var \Illuminate\Database\Query\Builder $instance */
  23731. return $instance->crossJoinSub($query, $as);
  23732. }
  23733. /**
  23734. * Merge an array of where clauses and bindings.
  23735. *
  23736. * @param array $wheres
  23737. * @param array $bindings
  23738. * @return \Illuminate\Database\Eloquent\Builder<static>
  23739. * @static
  23740. */
  23741. public static function mergeWheres($wheres, $bindings)
  23742. {
  23743. /** @var \Illuminate\Database\Query\Builder $instance */
  23744. return $instance->mergeWheres($wheres, $bindings);
  23745. }
  23746. /**
  23747. * Prepare the value and operator for a where clause.
  23748. *
  23749. * @param string $value
  23750. * @param string $operator
  23751. * @param bool $useDefault
  23752. * @return array
  23753. * @throws \InvalidArgumentException
  23754. * @static
  23755. */
  23756. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  23757. {
  23758. /** @var \Illuminate\Database\Query\Builder $instance */
  23759. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  23760. }
  23761. /**
  23762. * Add a "where" clause comparing two columns to the query.
  23763. *
  23764. * @param \Illuminate\Contracts\Database\Query\Expression|string|array $first
  23765. * @param string|null $operator
  23766. * @param string|null $second
  23767. * @param string|null $boolean
  23768. * @return \Illuminate\Database\Eloquent\Builder<static>
  23769. * @static
  23770. */
  23771. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  23772. {
  23773. /** @var \Illuminate\Database\Query\Builder $instance */
  23774. return $instance->whereColumn($first, $operator, $second, $boolean);
  23775. }
  23776. /**
  23777. * Add an "or where" clause comparing two columns to the query.
  23778. *
  23779. * @param \Illuminate\Contracts\Database\Query\Expression|string|array $first
  23780. * @param string|null $operator
  23781. * @param string|null $second
  23782. * @return \Illuminate\Database\Eloquent\Builder<static>
  23783. * @static
  23784. */
  23785. public static function orWhereColumn($first, $operator = null, $second = null)
  23786. {
  23787. /** @var \Illuminate\Database\Query\Builder $instance */
  23788. return $instance->orWhereColumn($first, $operator, $second);
  23789. }
  23790. /**
  23791. * Add a raw where clause to the query.
  23792. *
  23793. * @param \Illuminate\Contracts\Database\Query\Expression|string $sql
  23794. * @param mixed $bindings
  23795. * @param string $boolean
  23796. * @return \Illuminate\Database\Eloquent\Builder<static>
  23797. * @static
  23798. */
  23799. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  23800. {
  23801. /** @var \Illuminate\Database\Query\Builder $instance */
  23802. return $instance->whereRaw($sql, $bindings, $boolean);
  23803. }
  23804. /**
  23805. * Add a raw or where clause to the query.
  23806. *
  23807. * @param string $sql
  23808. * @param mixed $bindings
  23809. * @return \Illuminate\Database\Eloquent\Builder<static>
  23810. * @static
  23811. */
  23812. public static function orWhereRaw($sql, $bindings = [])
  23813. {
  23814. /** @var \Illuminate\Database\Query\Builder $instance */
  23815. return $instance->orWhereRaw($sql, $bindings);
  23816. }
  23817. /**
  23818. * Add a "where like" clause to the query.
  23819. *
  23820. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23821. * @param string $value
  23822. * @param bool $caseSensitive
  23823. * @param string $boolean
  23824. * @param bool $not
  23825. * @return \Illuminate\Database\Eloquent\Builder<static>
  23826. * @static
  23827. */
  23828. public static function whereLike($column, $value, $caseSensitive = false, $boolean = 'and', $not = false)
  23829. {
  23830. /** @var \Illuminate\Database\Query\Builder $instance */
  23831. return $instance->whereLike($column, $value, $caseSensitive, $boolean, $not);
  23832. }
  23833. /**
  23834. * Add an "or where like" clause to the query.
  23835. *
  23836. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23837. * @param string $value
  23838. * @param bool $caseSensitive
  23839. * @return \Illuminate\Database\Eloquent\Builder<static>
  23840. * @static
  23841. */
  23842. public static function orWhereLike($column, $value, $caseSensitive = false)
  23843. {
  23844. /** @var \Illuminate\Database\Query\Builder $instance */
  23845. return $instance->orWhereLike($column, $value, $caseSensitive);
  23846. }
  23847. /**
  23848. * Add a "where not like" clause to the query.
  23849. *
  23850. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23851. * @param string $value
  23852. * @param bool $caseSensitive
  23853. * @param string $boolean
  23854. * @return \Illuminate\Database\Eloquent\Builder<static>
  23855. * @static
  23856. */
  23857. public static function whereNotLike($column, $value, $caseSensitive = false, $boolean = 'and')
  23858. {
  23859. /** @var \Illuminate\Database\Query\Builder $instance */
  23860. return $instance->whereNotLike($column, $value, $caseSensitive, $boolean);
  23861. }
  23862. /**
  23863. * Add an "or where not like" clause to the query.
  23864. *
  23865. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23866. * @param string $value
  23867. * @param bool $caseSensitive
  23868. * @return \Illuminate\Database\Eloquent\Builder<static>
  23869. * @static
  23870. */
  23871. public static function orWhereNotLike($column, $value, $caseSensitive = false)
  23872. {
  23873. /** @var \Illuminate\Database\Query\Builder $instance */
  23874. return $instance->orWhereNotLike($column, $value, $caseSensitive);
  23875. }
  23876. /**
  23877. * Add a "where in" clause to the query.
  23878. *
  23879. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23880. * @param mixed $values
  23881. * @param string $boolean
  23882. * @param bool $not
  23883. * @return \Illuminate\Database\Eloquent\Builder<static>
  23884. * @static
  23885. */
  23886. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  23887. {
  23888. /** @var \Illuminate\Database\Query\Builder $instance */
  23889. return $instance->whereIn($column, $values, $boolean, $not);
  23890. }
  23891. /**
  23892. * Add an "or where in" clause to the query.
  23893. *
  23894. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23895. * @param mixed $values
  23896. * @return \Illuminate\Database\Eloquent\Builder<static>
  23897. * @static
  23898. */
  23899. public static function orWhereIn($column, $values)
  23900. {
  23901. /** @var \Illuminate\Database\Query\Builder $instance */
  23902. return $instance->orWhereIn($column, $values);
  23903. }
  23904. /**
  23905. * Add a "where not in" clause to the query.
  23906. *
  23907. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23908. * @param mixed $values
  23909. * @param string $boolean
  23910. * @return \Illuminate\Database\Eloquent\Builder<static>
  23911. * @static
  23912. */
  23913. public static function whereNotIn($column, $values, $boolean = 'and')
  23914. {
  23915. /** @var \Illuminate\Database\Query\Builder $instance */
  23916. return $instance->whereNotIn($column, $values, $boolean);
  23917. }
  23918. /**
  23919. * Add an "or where not in" clause to the query.
  23920. *
  23921. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  23922. * @param mixed $values
  23923. * @return \Illuminate\Database\Eloquent\Builder<static>
  23924. * @static
  23925. */
  23926. public static function orWhereNotIn($column, $values)
  23927. {
  23928. /** @var \Illuminate\Database\Query\Builder $instance */
  23929. return $instance->orWhereNotIn($column, $values);
  23930. }
  23931. /**
  23932. * Add a "where in raw" clause for integer values to the query.
  23933. *
  23934. * @param string $column
  23935. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  23936. * @param string $boolean
  23937. * @param bool $not
  23938. * @return \Illuminate\Database\Eloquent\Builder<static>
  23939. * @static
  23940. */
  23941. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  23942. {
  23943. /** @var \Illuminate\Database\Query\Builder $instance */
  23944. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  23945. }
  23946. /**
  23947. * Add an "or where in raw" clause for integer values to the query.
  23948. *
  23949. * @param string $column
  23950. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  23951. * @return \Illuminate\Database\Eloquent\Builder<static>
  23952. * @static
  23953. */
  23954. public static function orWhereIntegerInRaw($column, $values)
  23955. {
  23956. /** @var \Illuminate\Database\Query\Builder $instance */
  23957. return $instance->orWhereIntegerInRaw($column, $values);
  23958. }
  23959. /**
  23960. * Add a "where not in raw" clause for integer values to the query.
  23961. *
  23962. * @param string $column
  23963. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  23964. * @param string $boolean
  23965. * @return \Illuminate\Database\Eloquent\Builder<static>
  23966. * @static
  23967. */
  23968. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  23969. {
  23970. /** @var \Illuminate\Database\Query\Builder $instance */
  23971. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  23972. }
  23973. /**
  23974. * Add an "or where not in raw" clause for integer values to the query.
  23975. *
  23976. * @param string $column
  23977. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  23978. * @return \Illuminate\Database\Eloquent\Builder<static>
  23979. * @static
  23980. */
  23981. public static function orWhereIntegerNotInRaw($column, $values)
  23982. {
  23983. /** @var \Illuminate\Database\Query\Builder $instance */
  23984. return $instance->orWhereIntegerNotInRaw($column, $values);
  23985. }
  23986. /**
  23987. * Add a "where null" clause to the query.
  23988. *
  23989. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $columns
  23990. * @param string $boolean
  23991. * @param bool $not
  23992. * @return \Illuminate\Database\Eloquent\Builder<static>
  23993. * @static
  23994. */
  23995. public static function whereNull($columns, $boolean = 'and', $not = false)
  23996. {
  23997. /** @var \Illuminate\Database\Query\Builder $instance */
  23998. return $instance->whereNull($columns, $boolean, $not);
  23999. }
  24000. /**
  24001. * Add an "or where null" clause to the query.
  24002. *
  24003. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $column
  24004. * @return \Illuminate\Database\Eloquent\Builder<static>
  24005. * @static
  24006. */
  24007. public static function orWhereNull($column)
  24008. {
  24009. /** @var \Illuminate\Database\Query\Builder $instance */
  24010. return $instance->orWhereNull($column);
  24011. }
  24012. /**
  24013. * Add a "where not null" clause to the query.
  24014. *
  24015. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $columns
  24016. * @param string $boolean
  24017. * @return \Illuminate\Database\Eloquent\Builder<static>
  24018. * @static
  24019. */
  24020. public static function whereNotNull($columns, $boolean = 'and')
  24021. {
  24022. /** @var \Illuminate\Database\Query\Builder $instance */
  24023. return $instance->whereNotNull($columns, $boolean);
  24024. }
  24025. /**
  24026. * Add a where between statement to the query.
  24027. *
  24028. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24029. * @param string $boolean
  24030. * @param bool $not
  24031. * @return \Illuminate\Database\Eloquent\Builder<static>
  24032. * @static
  24033. */
  24034. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  24035. {
  24036. /** @var \Illuminate\Database\Query\Builder $instance */
  24037. return $instance->whereBetween($column, $values, $boolean, $not);
  24038. }
  24039. /**
  24040. * Add a where between statement using columns to the query.
  24041. *
  24042. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24043. * @param string $boolean
  24044. * @param bool $not
  24045. * @return \Illuminate\Database\Eloquent\Builder<static>
  24046. * @static
  24047. */
  24048. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  24049. {
  24050. /** @var \Illuminate\Database\Query\Builder $instance */
  24051. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  24052. }
  24053. /**
  24054. * Add an or where between statement to the query.
  24055. *
  24056. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24057. * @return \Illuminate\Database\Eloquent\Builder<static>
  24058. * @static
  24059. */
  24060. public static function orWhereBetween($column, $values)
  24061. {
  24062. /** @var \Illuminate\Database\Query\Builder $instance */
  24063. return $instance->orWhereBetween($column, $values);
  24064. }
  24065. /**
  24066. * Add an or where between statement using columns to the query.
  24067. *
  24068. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24069. * @return \Illuminate\Database\Eloquent\Builder<static>
  24070. * @static
  24071. */
  24072. public static function orWhereBetweenColumns($column, $values)
  24073. {
  24074. /** @var \Illuminate\Database\Query\Builder $instance */
  24075. return $instance->orWhereBetweenColumns($column, $values);
  24076. }
  24077. /**
  24078. * Add a where not between statement to the query.
  24079. *
  24080. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24081. * @param string $boolean
  24082. * @return \Illuminate\Database\Eloquent\Builder<static>
  24083. * @static
  24084. */
  24085. public static function whereNotBetween($column, $values, $boolean = 'and')
  24086. {
  24087. /** @var \Illuminate\Database\Query\Builder $instance */
  24088. return $instance->whereNotBetween($column, $values, $boolean);
  24089. }
  24090. /**
  24091. * Add a where not between statement using columns to the query.
  24092. *
  24093. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24094. * @param string $boolean
  24095. * @return \Illuminate\Database\Eloquent\Builder<static>
  24096. * @static
  24097. */
  24098. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  24099. {
  24100. /** @var \Illuminate\Database\Query\Builder $instance */
  24101. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  24102. }
  24103. /**
  24104. * Add an or where not between statement to the query.
  24105. *
  24106. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24107. * @return \Illuminate\Database\Eloquent\Builder<static>
  24108. * @static
  24109. */
  24110. public static function orWhereNotBetween($column, $values)
  24111. {
  24112. /** @var \Illuminate\Database\Query\Builder $instance */
  24113. return $instance->orWhereNotBetween($column, $values);
  24114. }
  24115. /**
  24116. * Add an or where not between statement using columns to the query.
  24117. *
  24118. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24119. * @return \Illuminate\Database\Eloquent\Builder<static>
  24120. * @static
  24121. */
  24122. public static function orWhereNotBetweenColumns($column, $values)
  24123. {
  24124. /** @var \Illuminate\Database\Query\Builder $instance */
  24125. return $instance->orWhereNotBetweenColumns($column, $values);
  24126. }
  24127. /**
  24128. * Add an "or where not null" clause to the query.
  24129. *
  24130. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24131. * @return \Illuminate\Database\Eloquent\Builder<static>
  24132. * @static
  24133. */
  24134. public static function orWhereNotNull($column)
  24135. {
  24136. /** @var \Illuminate\Database\Query\Builder $instance */
  24137. return $instance->orWhereNotNull($column);
  24138. }
  24139. /**
  24140. * Add a "where date" statement to the query.
  24141. *
  24142. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24143. * @param \DateTimeInterface|string|null $operator
  24144. * @param \DateTimeInterface|string|null $value
  24145. * @param string $boolean
  24146. * @return \Illuminate\Database\Eloquent\Builder<static>
  24147. * @static
  24148. */
  24149. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  24150. {
  24151. /** @var \Illuminate\Database\Query\Builder $instance */
  24152. return $instance->whereDate($column, $operator, $value, $boolean);
  24153. }
  24154. /**
  24155. * Add an "or where date" statement to the query.
  24156. *
  24157. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24158. * @param \DateTimeInterface|string|null $operator
  24159. * @param \DateTimeInterface|string|null $value
  24160. * @return \Illuminate\Database\Eloquent\Builder<static>
  24161. * @static
  24162. */
  24163. public static function orWhereDate($column, $operator, $value = null)
  24164. {
  24165. /** @var \Illuminate\Database\Query\Builder $instance */
  24166. return $instance->orWhereDate($column, $operator, $value);
  24167. }
  24168. /**
  24169. * Add a "where time" statement to the query.
  24170. *
  24171. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24172. * @param \DateTimeInterface|string|null $operator
  24173. * @param \DateTimeInterface|string|null $value
  24174. * @param string $boolean
  24175. * @return \Illuminate\Database\Eloquent\Builder<static>
  24176. * @static
  24177. */
  24178. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  24179. {
  24180. /** @var \Illuminate\Database\Query\Builder $instance */
  24181. return $instance->whereTime($column, $operator, $value, $boolean);
  24182. }
  24183. /**
  24184. * Add an "or where time" statement to the query.
  24185. *
  24186. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24187. * @param \DateTimeInterface|string|null $operator
  24188. * @param \DateTimeInterface|string|null $value
  24189. * @return \Illuminate\Database\Eloquent\Builder<static>
  24190. * @static
  24191. */
  24192. public static function orWhereTime($column, $operator, $value = null)
  24193. {
  24194. /** @var \Illuminate\Database\Query\Builder $instance */
  24195. return $instance->orWhereTime($column, $operator, $value);
  24196. }
  24197. /**
  24198. * Add a "where day" statement to the query.
  24199. *
  24200. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24201. * @param \DateTimeInterface|string|int|null $operator
  24202. * @param \DateTimeInterface|string|int|null $value
  24203. * @param string $boolean
  24204. * @return \Illuminate\Database\Eloquent\Builder<static>
  24205. * @static
  24206. */
  24207. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  24208. {
  24209. /** @var \Illuminate\Database\Query\Builder $instance */
  24210. return $instance->whereDay($column, $operator, $value, $boolean);
  24211. }
  24212. /**
  24213. * Add an "or where day" statement to the query.
  24214. *
  24215. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24216. * @param \DateTimeInterface|string|int|null $operator
  24217. * @param \DateTimeInterface|string|int|null $value
  24218. * @return \Illuminate\Database\Eloquent\Builder<static>
  24219. * @static
  24220. */
  24221. public static function orWhereDay($column, $operator, $value = null)
  24222. {
  24223. /** @var \Illuminate\Database\Query\Builder $instance */
  24224. return $instance->orWhereDay($column, $operator, $value);
  24225. }
  24226. /**
  24227. * Add a "where month" statement to the query.
  24228. *
  24229. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24230. * @param \DateTimeInterface|string|int|null $operator
  24231. * @param \DateTimeInterface|string|int|null $value
  24232. * @param string $boolean
  24233. * @return \Illuminate\Database\Eloquent\Builder<static>
  24234. * @static
  24235. */
  24236. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  24237. {
  24238. /** @var \Illuminate\Database\Query\Builder $instance */
  24239. return $instance->whereMonth($column, $operator, $value, $boolean);
  24240. }
  24241. /**
  24242. * Add an "or where month" statement to the query.
  24243. *
  24244. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24245. * @param \DateTimeInterface|string|int|null $operator
  24246. * @param \DateTimeInterface|string|int|null $value
  24247. * @return \Illuminate\Database\Eloquent\Builder<static>
  24248. * @static
  24249. */
  24250. public static function orWhereMonth($column, $operator, $value = null)
  24251. {
  24252. /** @var \Illuminate\Database\Query\Builder $instance */
  24253. return $instance->orWhereMonth($column, $operator, $value);
  24254. }
  24255. /**
  24256. * Add a "where year" statement to the query.
  24257. *
  24258. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24259. * @param \DateTimeInterface|string|int|null $operator
  24260. * @param \DateTimeInterface|string|int|null $value
  24261. * @param string $boolean
  24262. * @return \Illuminate\Database\Eloquent\Builder<static>
  24263. * @static
  24264. */
  24265. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  24266. {
  24267. /** @var \Illuminate\Database\Query\Builder $instance */
  24268. return $instance->whereYear($column, $operator, $value, $boolean);
  24269. }
  24270. /**
  24271. * Add an "or where year" statement to the query.
  24272. *
  24273. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  24274. * @param \DateTimeInterface|string|int|null $operator
  24275. * @param \DateTimeInterface|string|int|null $value
  24276. * @return \Illuminate\Database\Eloquent\Builder<static>
  24277. * @static
  24278. */
  24279. public static function orWhereYear($column, $operator, $value = null)
  24280. {
  24281. /** @var \Illuminate\Database\Query\Builder $instance */
  24282. return $instance->orWhereYear($column, $operator, $value);
  24283. }
  24284. /**
  24285. * Add a nested where statement to the query.
  24286. *
  24287. * @param string $boolean
  24288. * @return \Illuminate\Database\Eloquent\Builder<static>
  24289. * @static
  24290. */
  24291. public static function whereNested($callback, $boolean = 'and')
  24292. {
  24293. /** @var \Illuminate\Database\Query\Builder $instance */
  24294. return $instance->whereNested($callback, $boolean);
  24295. }
  24296. /**
  24297. * Create a new query instance for nested where condition.
  24298. *
  24299. * @return \Illuminate\Database\Query\Builder
  24300. * @static
  24301. */
  24302. public static function forNestedWhere()
  24303. {
  24304. /** @var \Illuminate\Database\Query\Builder $instance */
  24305. return $instance->forNestedWhere();
  24306. }
  24307. /**
  24308. * Add another query builder as a nested where to the query builder.
  24309. *
  24310. * @param \Illuminate\Database\Query\Builder $query
  24311. * @param string $boolean
  24312. * @return \Illuminate\Database\Eloquent\Builder<static>
  24313. * @static
  24314. */
  24315. public static function addNestedWhereQuery($query, $boolean = 'and')
  24316. {
  24317. /** @var \Illuminate\Database\Query\Builder $instance */
  24318. return $instance->addNestedWhereQuery($query, $boolean);
  24319. }
  24320. /**
  24321. * Add an exists clause to the query.
  24322. *
  24323. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  24324. * @param string $boolean
  24325. * @param bool $not
  24326. * @return \Illuminate\Database\Eloquent\Builder<static>
  24327. * @static
  24328. */
  24329. public static function whereExists($callback, $boolean = 'and', $not = false)
  24330. {
  24331. /** @var \Illuminate\Database\Query\Builder $instance */
  24332. return $instance->whereExists($callback, $boolean, $not);
  24333. }
  24334. /**
  24335. * Add an or exists clause to the query.
  24336. *
  24337. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  24338. * @param bool $not
  24339. * @return \Illuminate\Database\Eloquent\Builder<static>
  24340. * @static
  24341. */
  24342. public static function orWhereExists($callback, $not = false)
  24343. {
  24344. /** @var \Illuminate\Database\Query\Builder $instance */
  24345. return $instance->orWhereExists($callback, $not);
  24346. }
  24347. /**
  24348. * Add a where not exists clause to the query.
  24349. *
  24350. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  24351. * @param string $boolean
  24352. * @return \Illuminate\Database\Eloquent\Builder<static>
  24353. * @static
  24354. */
  24355. public static function whereNotExists($callback, $boolean = 'and')
  24356. {
  24357. /** @var \Illuminate\Database\Query\Builder $instance */
  24358. return $instance->whereNotExists($callback, $boolean);
  24359. }
  24360. /**
  24361. * Add a where not exists clause to the query.
  24362. *
  24363. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  24364. * @return \Illuminate\Database\Eloquent\Builder<static>
  24365. * @static
  24366. */
  24367. public static function orWhereNotExists($callback)
  24368. {
  24369. /** @var \Illuminate\Database\Query\Builder $instance */
  24370. return $instance->orWhereNotExists($callback);
  24371. }
  24372. /**
  24373. * Add an exists clause to the query.
  24374. *
  24375. * @param string $boolean
  24376. * @param bool $not
  24377. * @return \Illuminate\Database\Eloquent\Builder<static>
  24378. * @static
  24379. */
  24380. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  24381. {
  24382. /** @var \Illuminate\Database\Query\Builder $instance */
  24383. return $instance->addWhereExistsQuery($query, $boolean, $not);
  24384. }
  24385. /**
  24386. * Adds a where condition using row values.
  24387. *
  24388. * @param array $columns
  24389. * @param string $operator
  24390. * @param array $values
  24391. * @param string $boolean
  24392. * @return \Illuminate\Database\Eloquent\Builder<static>
  24393. * @throws \InvalidArgumentException
  24394. * @static
  24395. */
  24396. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  24397. {
  24398. /** @var \Illuminate\Database\Query\Builder $instance */
  24399. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  24400. }
  24401. /**
  24402. * Adds an or where condition using row values.
  24403. *
  24404. * @param array $columns
  24405. * @param string $operator
  24406. * @param array $values
  24407. * @return \Illuminate\Database\Eloquent\Builder<static>
  24408. * @static
  24409. */
  24410. public static function orWhereRowValues($columns, $operator, $values)
  24411. {
  24412. /** @var \Illuminate\Database\Query\Builder $instance */
  24413. return $instance->orWhereRowValues($columns, $operator, $values);
  24414. }
  24415. /**
  24416. * Add a "where JSON contains" clause to the query.
  24417. *
  24418. * @param string $column
  24419. * @param mixed $value
  24420. * @param string $boolean
  24421. * @param bool $not
  24422. * @return \Illuminate\Database\Eloquent\Builder<static>
  24423. * @static
  24424. */
  24425. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  24426. {
  24427. /** @var \Illuminate\Database\Query\Builder $instance */
  24428. return $instance->whereJsonContains($column, $value, $boolean, $not);
  24429. }
  24430. /**
  24431. * Add an "or where JSON contains" clause to the query.
  24432. *
  24433. * @param string $column
  24434. * @param mixed $value
  24435. * @return \Illuminate\Database\Eloquent\Builder<static>
  24436. * @static
  24437. */
  24438. public static function orWhereJsonContains($column, $value)
  24439. {
  24440. /** @var \Illuminate\Database\Query\Builder $instance */
  24441. return $instance->orWhereJsonContains($column, $value);
  24442. }
  24443. /**
  24444. * Add a "where JSON not contains" clause to the query.
  24445. *
  24446. * @param string $column
  24447. * @param mixed $value
  24448. * @param string $boolean
  24449. * @return \Illuminate\Database\Eloquent\Builder<static>
  24450. * @static
  24451. */
  24452. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  24453. {
  24454. /** @var \Illuminate\Database\Query\Builder $instance */
  24455. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  24456. }
  24457. /**
  24458. * Add an "or where JSON not contains" clause to the query.
  24459. *
  24460. * @param string $column
  24461. * @param mixed $value
  24462. * @return \Illuminate\Database\Eloquent\Builder<static>
  24463. * @static
  24464. */
  24465. public static function orWhereJsonDoesntContain($column, $value)
  24466. {
  24467. /** @var \Illuminate\Database\Query\Builder $instance */
  24468. return $instance->orWhereJsonDoesntContain($column, $value);
  24469. }
  24470. /**
  24471. * Add a "where JSON overlaps" clause to the query.
  24472. *
  24473. * @param string $column
  24474. * @param mixed $value
  24475. * @param string $boolean
  24476. * @param bool $not
  24477. * @return \Illuminate\Database\Eloquent\Builder<static>
  24478. * @static
  24479. */
  24480. public static function whereJsonOverlaps($column, $value, $boolean = 'and', $not = false)
  24481. {
  24482. /** @var \Illuminate\Database\Query\Builder $instance */
  24483. return $instance->whereJsonOverlaps($column, $value, $boolean, $not);
  24484. }
  24485. /**
  24486. * Add an "or where JSON overlaps" clause to the query.
  24487. *
  24488. * @param string $column
  24489. * @param mixed $value
  24490. * @return \Illuminate\Database\Eloquent\Builder<static>
  24491. * @static
  24492. */
  24493. public static function orWhereJsonOverlaps($column, $value)
  24494. {
  24495. /** @var \Illuminate\Database\Query\Builder $instance */
  24496. return $instance->orWhereJsonOverlaps($column, $value);
  24497. }
  24498. /**
  24499. * Add a "where JSON not overlap" clause to the query.
  24500. *
  24501. * @param string $column
  24502. * @param mixed $value
  24503. * @param string $boolean
  24504. * @return \Illuminate\Database\Eloquent\Builder<static>
  24505. * @static
  24506. */
  24507. public static function whereJsonDoesntOverlap($column, $value, $boolean = 'and')
  24508. {
  24509. /** @var \Illuminate\Database\Query\Builder $instance */
  24510. return $instance->whereJsonDoesntOverlap($column, $value, $boolean);
  24511. }
  24512. /**
  24513. * Add an "or where JSON not overlap" clause to the query.
  24514. *
  24515. * @param string $column
  24516. * @param mixed $value
  24517. * @return \Illuminate\Database\Eloquent\Builder<static>
  24518. * @static
  24519. */
  24520. public static function orWhereJsonDoesntOverlap($column, $value)
  24521. {
  24522. /** @var \Illuminate\Database\Query\Builder $instance */
  24523. return $instance->orWhereJsonDoesntOverlap($column, $value);
  24524. }
  24525. /**
  24526. * Add a clause that determines if a JSON path exists to the query.
  24527. *
  24528. * @param string $column
  24529. * @param string $boolean
  24530. * @param bool $not
  24531. * @return \Illuminate\Database\Eloquent\Builder<static>
  24532. * @static
  24533. */
  24534. public static function whereJsonContainsKey($column, $boolean = 'and', $not = false)
  24535. {
  24536. /** @var \Illuminate\Database\Query\Builder $instance */
  24537. return $instance->whereJsonContainsKey($column, $boolean, $not);
  24538. }
  24539. /**
  24540. * Add an "or" clause that determines if a JSON path exists to the query.
  24541. *
  24542. * @param string $column
  24543. * @return \Illuminate\Database\Eloquent\Builder<static>
  24544. * @static
  24545. */
  24546. public static function orWhereJsonContainsKey($column)
  24547. {
  24548. /** @var \Illuminate\Database\Query\Builder $instance */
  24549. return $instance->orWhereJsonContainsKey($column);
  24550. }
  24551. /**
  24552. * Add a clause that determines if a JSON path does not exist to the query.
  24553. *
  24554. * @param string $column
  24555. * @param string $boolean
  24556. * @return \Illuminate\Database\Eloquent\Builder<static>
  24557. * @static
  24558. */
  24559. public static function whereJsonDoesntContainKey($column, $boolean = 'and')
  24560. {
  24561. /** @var \Illuminate\Database\Query\Builder $instance */
  24562. return $instance->whereJsonDoesntContainKey($column, $boolean);
  24563. }
  24564. /**
  24565. * Add an "or" clause that determines if a JSON path does not exist to the query.
  24566. *
  24567. * @param string $column
  24568. * @return \Illuminate\Database\Eloquent\Builder<static>
  24569. * @static
  24570. */
  24571. public static function orWhereJsonDoesntContainKey($column)
  24572. {
  24573. /** @var \Illuminate\Database\Query\Builder $instance */
  24574. return $instance->orWhereJsonDoesntContainKey($column);
  24575. }
  24576. /**
  24577. * Add a "where JSON length" clause to the query.
  24578. *
  24579. * @param string $column
  24580. * @param mixed $operator
  24581. * @param mixed $value
  24582. * @param string $boolean
  24583. * @return \Illuminate\Database\Eloquent\Builder<static>
  24584. * @static
  24585. */
  24586. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  24587. {
  24588. /** @var \Illuminate\Database\Query\Builder $instance */
  24589. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  24590. }
  24591. /**
  24592. * Add an "or where JSON length" clause to the query.
  24593. *
  24594. * @param string $column
  24595. * @param mixed $operator
  24596. * @param mixed $value
  24597. * @return \Illuminate\Database\Eloquent\Builder<static>
  24598. * @static
  24599. */
  24600. public static function orWhereJsonLength($column, $operator, $value = null)
  24601. {
  24602. /** @var \Illuminate\Database\Query\Builder $instance */
  24603. return $instance->orWhereJsonLength($column, $operator, $value);
  24604. }
  24605. /**
  24606. * Handles dynamic "where" clauses to the query.
  24607. *
  24608. * @param string $method
  24609. * @param array $parameters
  24610. * @return \Illuminate\Database\Eloquent\Builder<static>
  24611. * @static
  24612. */
  24613. public static function dynamicWhere($method, $parameters)
  24614. {
  24615. /** @var \Illuminate\Database\Query\Builder $instance */
  24616. return $instance->dynamicWhere($method, $parameters);
  24617. }
  24618. /**
  24619. * Add a "where fulltext" clause to the query.
  24620. *
  24621. * @param string|string[] $columns
  24622. * @param string $value
  24623. * @param string $boolean
  24624. * @return \Illuminate\Database\Eloquent\Builder<static>
  24625. * @static
  24626. */
  24627. public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  24628. {
  24629. /** @var \Illuminate\Database\Query\Builder $instance */
  24630. return $instance->whereFullText($columns, $value, $options, $boolean);
  24631. }
  24632. /**
  24633. * Add a "or where fulltext" clause to the query.
  24634. *
  24635. * @param string|string[] $columns
  24636. * @param string $value
  24637. * @return \Illuminate\Database\Eloquent\Builder<static>
  24638. * @static
  24639. */
  24640. public static function orWhereFullText($columns, $value, $options = [])
  24641. {
  24642. /** @var \Illuminate\Database\Query\Builder $instance */
  24643. return $instance->orWhereFullText($columns, $value, $options);
  24644. }
  24645. /**
  24646. * Add a "where" clause to the query for multiple columns with "and" conditions between them.
  24647. *
  24648. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  24649. * @param mixed $operator
  24650. * @param mixed $value
  24651. * @param string $boolean
  24652. * @return \Illuminate\Database\Eloquent\Builder<static>
  24653. * @static
  24654. */
  24655. public static function whereAll($columns, $operator = null, $value = null, $boolean = 'and')
  24656. {
  24657. /** @var \Illuminate\Database\Query\Builder $instance */
  24658. return $instance->whereAll($columns, $operator, $value, $boolean);
  24659. }
  24660. /**
  24661. * Add an "or where" clause to the query for multiple columns with "and" conditions between them.
  24662. *
  24663. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  24664. * @param mixed $operator
  24665. * @param mixed $value
  24666. * @return \Illuminate\Database\Eloquent\Builder<static>
  24667. * @static
  24668. */
  24669. public static function orWhereAll($columns, $operator = null, $value = null)
  24670. {
  24671. /** @var \Illuminate\Database\Query\Builder $instance */
  24672. return $instance->orWhereAll($columns, $operator, $value);
  24673. }
  24674. /**
  24675. * Add a "where" clause to the query for multiple columns with "or" conditions between them.
  24676. *
  24677. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  24678. * @param mixed $operator
  24679. * @param mixed $value
  24680. * @param string $boolean
  24681. * @return \Illuminate\Database\Eloquent\Builder<static>
  24682. * @static
  24683. */
  24684. public static function whereAny($columns, $operator = null, $value = null, $boolean = 'and')
  24685. {
  24686. /** @var \Illuminate\Database\Query\Builder $instance */
  24687. return $instance->whereAny($columns, $operator, $value, $boolean);
  24688. }
  24689. /**
  24690. * Add an "or where" clause to the query for multiple columns with "or" conditions between them.
  24691. *
  24692. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  24693. * @param mixed $operator
  24694. * @param mixed $value
  24695. * @return \Illuminate\Database\Eloquent\Builder<static>
  24696. * @static
  24697. */
  24698. public static function orWhereAny($columns, $operator = null, $value = null)
  24699. {
  24700. /** @var \Illuminate\Database\Query\Builder $instance */
  24701. return $instance->orWhereAny($columns, $operator, $value);
  24702. }
  24703. /**
  24704. * Add a "where not" clause to the query for multiple columns where none of the conditions should be true.
  24705. *
  24706. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  24707. * @param mixed $operator
  24708. * @param mixed $value
  24709. * @param string $boolean
  24710. * @return \Illuminate\Database\Eloquent\Builder<static>
  24711. * @static
  24712. */
  24713. public static function whereNone($columns, $operator = null, $value = null, $boolean = 'and')
  24714. {
  24715. /** @var \Illuminate\Database\Query\Builder $instance */
  24716. return $instance->whereNone($columns, $operator, $value, $boolean);
  24717. }
  24718. /**
  24719. * Add an "or where not" clause to the query for multiple columns where none of the conditions should be true.
  24720. *
  24721. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  24722. * @param mixed $operator
  24723. * @param mixed $value
  24724. * @return \Illuminate\Database\Eloquent\Builder<static>
  24725. * @static
  24726. */
  24727. public static function orWhereNone($columns, $operator = null, $value = null)
  24728. {
  24729. /** @var \Illuminate\Database\Query\Builder $instance */
  24730. return $instance->orWhereNone($columns, $operator, $value);
  24731. }
  24732. /**
  24733. * Add a "group by" clause to the query.
  24734. *
  24735. * @param array|\Illuminate\Contracts\Database\Query\Expression|string $groups
  24736. * @return \Illuminate\Database\Eloquent\Builder<static>
  24737. * @static
  24738. */
  24739. public static function groupBy(...$groups)
  24740. {
  24741. /** @var \Illuminate\Database\Query\Builder $instance */
  24742. return $instance->groupBy(...$groups);
  24743. }
  24744. /**
  24745. * Add a raw groupBy clause to the query.
  24746. *
  24747. * @param string $sql
  24748. * @return \Illuminate\Database\Eloquent\Builder<static>
  24749. * @static
  24750. */
  24751. public static function groupByRaw($sql, $bindings = [])
  24752. {
  24753. /** @var \Illuminate\Database\Query\Builder $instance */
  24754. return $instance->groupByRaw($sql, $bindings);
  24755. }
  24756. /**
  24757. * Add a "having" clause to the query.
  24758. *
  24759. * @param \Illuminate\Contracts\Database\Query\Expression|\Closure|string $column
  24760. * @param \DateTimeInterface|string|int|float|null $operator
  24761. * @param \Illuminate\Contracts\Database\Query\Expression|\DateTimeInterface|string|int|float|null $value
  24762. * @param string $boolean
  24763. * @return \Illuminate\Database\Eloquent\Builder<static>
  24764. * @static
  24765. */
  24766. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  24767. {
  24768. /** @var \Illuminate\Database\Query\Builder $instance */
  24769. return $instance->having($column, $operator, $value, $boolean);
  24770. }
  24771. /**
  24772. * Add an "or having" clause to the query.
  24773. *
  24774. * @param \Illuminate\Contracts\Database\Query\Expression|\Closure|string $column
  24775. * @param \DateTimeInterface|string|int|float|null $operator
  24776. * @param \Illuminate\Contracts\Database\Query\Expression|\DateTimeInterface|string|int|float|null $value
  24777. * @return \Illuminate\Database\Eloquent\Builder<static>
  24778. * @static
  24779. */
  24780. public static function orHaving($column, $operator = null, $value = null)
  24781. {
  24782. /** @var \Illuminate\Database\Query\Builder $instance */
  24783. return $instance->orHaving($column, $operator, $value);
  24784. }
  24785. /**
  24786. * Add a nested having statement to the query.
  24787. *
  24788. * @param string $boolean
  24789. * @return \Illuminate\Database\Eloquent\Builder<static>
  24790. * @static
  24791. */
  24792. public static function havingNested($callback, $boolean = 'and')
  24793. {
  24794. /** @var \Illuminate\Database\Query\Builder $instance */
  24795. return $instance->havingNested($callback, $boolean);
  24796. }
  24797. /**
  24798. * Add another query builder as a nested having to the query builder.
  24799. *
  24800. * @param \Illuminate\Database\Query\Builder $query
  24801. * @param string $boolean
  24802. * @return \Illuminate\Database\Eloquent\Builder<static>
  24803. * @static
  24804. */
  24805. public static function addNestedHavingQuery($query, $boolean = 'and')
  24806. {
  24807. /** @var \Illuminate\Database\Query\Builder $instance */
  24808. return $instance->addNestedHavingQuery($query, $boolean);
  24809. }
  24810. /**
  24811. * Add a "having null" clause to the query.
  24812. *
  24813. * @param array|string $columns
  24814. * @param string $boolean
  24815. * @param bool $not
  24816. * @return \Illuminate\Database\Eloquent\Builder<static>
  24817. * @static
  24818. */
  24819. public static function havingNull($columns, $boolean = 'and', $not = false)
  24820. {
  24821. /** @var \Illuminate\Database\Query\Builder $instance */
  24822. return $instance->havingNull($columns, $boolean, $not);
  24823. }
  24824. /**
  24825. * Add an "or having null" clause to the query.
  24826. *
  24827. * @param string $column
  24828. * @return \Illuminate\Database\Eloquent\Builder<static>
  24829. * @static
  24830. */
  24831. public static function orHavingNull($column)
  24832. {
  24833. /** @var \Illuminate\Database\Query\Builder $instance */
  24834. return $instance->orHavingNull($column);
  24835. }
  24836. /**
  24837. * Add a "having not null" clause to the query.
  24838. *
  24839. * @param array|string $columns
  24840. * @param string $boolean
  24841. * @return \Illuminate\Database\Eloquent\Builder<static>
  24842. * @static
  24843. */
  24844. public static function havingNotNull($columns, $boolean = 'and')
  24845. {
  24846. /** @var \Illuminate\Database\Query\Builder $instance */
  24847. return $instance->havingNotNull($columns, $boolean);
  24848. }
  24849. /**
  24850. * Add an "or having not null" clause to the query.
  24851. *
  24852. * @param string $column
  24853. * @return \Illuminate\Database\Eloquent\Builder<static>
  24854. * @static
  24855. */
  24856. public static function orHavingNotNull($column)
  24857. {
  24858. /** @var \Illuminate\Database\Query\Builder $instance */
  24859. return $instance->orHavingNotNull($column);
  24860. }
  24861. /**
  24862. * Add a "having between " clause to the query.
  24863. *
  24864. * @param string $column
  24865. * @param string $boolean
  24866. * @param bool $not
  24867. * @return \Illuminate\Database\Eloquent\Builder<static>
  24868. * @static
  24869. */
  24870. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  24871. {
  24872. /** @var \Illuminate\Database\Query\Builder $instance */
  24873. return $instance->havingBetween($column, $values, $boolean, $not);
  24874. }
  24875. /**
  24876. * Add a raw having clause to the query.
  24877. *
  24878. * @param string $sql
  24879. * @param string $boolean
  24880. * @return \Illuminate\Database\Eloquent\Builder<static>
  24881. * @static
  24882. */
  24883. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  24884. {
  24885. /** @var \Illuminate\Database\Query\Builder $instance */
  24886. return $instance->havingRaw($sql, $bindings, $boolean);
  24887. }
  24888. /**
  24889. * Add a raw or having clause to the query.
  24890. *
  24891. * @param string $sql
  24892. * @return \Illuminate\Database\Eloquent\Builder<static>
  24893. * @static
  24894. */
  24895. public static function orHavingRaw($sql, $bindings = [])
  24896. {
  24897. /** @var \Illuminate\Database\Query\Builder $instance */
  24898. return $instance->orHavingRaw($sql, $bindings);
  24899. }
  24900. /**
  24901. * Add an "order by" clause to the query.
  24902. *
  24903. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $column
  24904. * @param string $direction
  24905. * @return \Illuminate\Database\Eloquent\Builder<static>
  24906. * @throws \InvalidArgumentException
  24907. * @static
  24908. */
  24909. public static function orderBy($column, $direction = 'asc')
  24910. {
  24911. /** @var \Illuminate\Database\Query\Builder $instance */
  24912. return $instance->orderBy($column, $direction);
  24913. }
  24914. /**
  24915. * Add a descending "order by" clause to the query.
  24916. *
  24917. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $column
  24918. * @return \Illuminate\Database\Eloquent\Builder<static>
  24919. * @static
  24920. */
  24921. public static function orderByDesc($column)
  24922. {
  24923. /** @var \Illuminate\Database\Query\Builder $instance */
  24924. return $instance->orderByDesc($column);
  24925. }
  24926. /**
  24927. * Put the query's results in random order.
  24928. *
  24929. * @param string|int $seed
  24930. * @return \Illuminate\Database\Eloquent\Builder<static>
  24931. * @static
  24932. */
  24933. public static function inRandomOrder($seed = '')
  24934. {
  24935. /** @var \Illuminate\Database\Query\Builder $instance */
  24936. return $instance->inRandomOrder($seed);
  24937. }
  24938. /**
  24939. * Add a raw "order by" clause to the query.
  24940. *
  24941. * @param string $sql
  24942. * @param array $bindings
  24943. * @return \Illuminate\Database\Eloquent\Builder<static>
  24944. * @static
  24945. */
  24946. public static function orderByRaw($sql, $bindings = [])
  24947. {
  24948. /** @var \Illuminate\Database\Query\Builder $instance */
  24949. return $instance->orderByRaw($sql, $bindings);
  24950. }
  24951. /**
  24952. * Alias to set the "offset" value of the query.
  24953. *
  24954. * @param int $value
  24955. * @return \Illuminate\Database\Eloquent\Builder<static>
  24956. * @static
  24957. */
  24958. public static function skip($value)
  24959. {
  24960. /** @var \Illuminate\Database\Query\Builder $instance */
  24961. return $instance->skip($value);
  24962. }
  24963. /**
  24964. * Set the "offset" value of the query.
  24965. *
  24966. * @param int $value
  24967. * @return \Illuminate\Database\Eloquent\Builder<static>
  24968. * @static
  24969. */
  24970. public static function offset($value)
  24971. {
  24972. /** @var \Illuminate\Database\Query\Builder $instance */
  24973. return $instance->offset($value);
  24974. }
  24975. /**
  24976. * Alias to set the "limit" value of the query.
  24977. *
  24978. * @param int $value
  24979. * @return \Illuminate\Database\Eloquent\Builder<static>
  24980. * @static
  24981. */
  24982. public static function take($value)
  24983. {
  24984. /** @var \Illuminate\Database\Query\Builder $instance */
  24985. return $instance->take($value);
  24986. }
  24987. /**
  24988. * Set the "limit" value of the query.
  24989. *
  24990. * @param int $value
  24991. * @return \Illuminate\Database\Eloquent\Builder<static>
  24992. * @static
  24993. */
  24994. public static function limit($value)
  24995. {
  24996. /** @var \Illuminate\Database\Query\Builder $instance */
  24997. return $instance->limit($value);
  24998. }
  24999. /**
  25000. * Add a "group limit" clause to the query.
  25001. *
  25002. * @param int $value
  25003. * @param string $column
  25004. * @return \Illuminate\Database\Eloquent\Builder<static>
  25005. * @static
  25006. */
  25007. public static function groupLimit($value, $column)
  25008. {
  25009. /** @var \Illuminate\Database\Query\Builder $instance */
  25010. return $instance->groupLimit($value, $column);
  25011. }
  25012. /**
  25013. * Set the limit and offset for a given page.
  25014. *
  25015. * @param int $page
  25016. * @param int $perPage
  25017. * @return \Illuminate\Database\Eloquent\Builder<static>
  25018. * @static
  25019. */
  25020. public static function forPage($page, $perPage = 15)
  25021. {
  25022. /** @var \Illuminate\Database\Query\Builder $instance */
  25023. return $instance->forPage($page, $perPage);
  25024. }
  25025. /**
  25026. * Constrain the query to the previous "page" of results before a given ID.
  25027. *
  25028. * @param int $perPage
  25029. * @param int|null $lastId
  25030. * @param string $column
  25031. * @return \Illuminate\Database\Eloquent\Builder<static>
  25032. * @static
  25033. */
  25034. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  25035. {
  25036. /** @var \Illuminate\Database\Query\Builder $instance */
  25037. return $instance->forPageBeforeId($perPage, $lastId, $column);
  25038. }
  25039. /**
  25040. * Constrain the query to the next "page" of results after a given ID.
  25041. *
  25042. * @param int $perPage
  25043. * @param int|null $lastId
  25044. * @param string $column
  25045. * @return \Illuminate\Database\Eloquent\Builder<static>
  25046. * @static
  25047. */
  25048. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  25049. {
  25050. /** @var \Illuminate\Database\Query\Builder $instance */
  25051. return $instance->forPageAfterId($perPage, $lastId, $column);
  25052. }
  25053. /**
  25054. * Remove all existing orders and optionally add a new order.
  25055. *
  25056. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|string|null $column
  25057. * @param string $direction
  25058. * @return \Illuminate\Database\Eloquent\Builder<static>
  25059. * @static
  25060. */
  25061. public static function reorder($column = null, $direction = 'asc')
  25062. {
  25063. /** @var \Illuminate\Database\Query\Builder $instance */
  25064. return $instance->reorder($column, $direction);
  25065. }
  25066. /**
  25067. * Add descending "reorder" clause to the query.
  25068. *
  25069. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|string|null $column
  25070. * @return \Illuminate\Database\Eloquent\Builder<static>
  25071. * @static
  25072. */
  25073. public static function reorderDesc($column)
  25074. {
  25075. /** @var \Illuminate\Database\Query\Builder $instance */
  25076. return $instance->reorderDesc($column);
  25077. }
  25078. /**
  25079. * Add a union statement to the query.
  25080. *
  25081. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $query
  25082. * @param bool $all
  25083. * @return \Illuminate\Database\Eloquent\Builder<static>
  25084. * @static
  25085. */
  25086. public static function union($query, $all = false)
  25087. {
  25088. /** @var \Illuminate\Database\Query\Builder $instance */
  25089. return $instance->union($query, $all);
  25090. }
  25091. /**
  25092. * Add a union all statement to the query.
  25093. *
  25094. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $query
  25095. * @return \Illuminate\Database\Eloquent\Builder<static>
  25096. * @static
  25097. */
  25098. public static function unionAll($query)
  25099. {
  25100. /** @var \Illuminate\Database\Query\Builder $instance */
  25101. return $instance->unionAll($query);
  25102. }
  25103. /**
  25104. * Lock the selected rows in the table.
  25105. *
  25106. * @param string|bool $value
  25107. * @return \Illuminate\Database\Eloquent\Builder<static>
  25108. * @static
  25109. */
  25110. public static function lock($value = true)
  25111. {
  25112. /** @var \Illuminate\Database\Query\Builder $instance */
  25113. return $instance->lock($value);
  25114. }
  25115. /**
  25116. * Lock the selected rows in the table for updating.
  25117. *
  25118. * @return \Illuminate\Database\Eloquent\Builder<static>
  25119. * @static
  25120. */
  25121. public static function lockForUpdate()
  25122. {
  25123. /** @var \Illuminate\Database\Query\Builder $instance */
  25124. return $instance->lockForUpdate();
  25125. }
  25126. /**
  25127. * Share lock the selected rows in the table.
  25128. *
  25129. * @return \Illuminate\Database\Eloquent\Builder<static>
  25130. * @static
  25131. */
  25132. public static function sharedLock()
  25133. {
  25134. /** @var \Illuminate\Database\Query\Builder $instance */
  25135. return $instance->sharedLock();
  25136. }
  25137. /**
  25138. * Register a closure to be invoked before the query is executed.
  25139. *
  25140. * @return \Illuminate\Database\Eloquent\Builder<static>
  25141. * @static
  25142. */
  25143. public static function beforeQuery($callback)
  25144. {
  25145. /** @var \Illuminate\Database\Query\Builder $instance */
  25146. return $instance->beforeQuery($callback);
  25147. }
  25148. /**
  25149. * Invoke the "before query" modification callbacks.
  25150. *
  25151. * @return void
  25152. * @static
  25153. */
  25154. public static function applyBeforeQueryCallbacks()
  25155. {
  25156. /** @var \Illuminate\Database\Query\Builder $instance */
  25157. $instance->applyBeforeQueryCallbacks();
  25158. }
  25159. /**
  25160. * Get the SQL representation of the query.
  25161. *
  25162. * @return string
  25163. * @static
  25164. */
  25165. public static function toSql()
  25166. {
  25167. /** @var \Illuminate\Database\Query\Builder $instance */
  25168. return $instance->toSql();
  25169. }
  25170. /**
  25171. * Get the raw SQL representation of the query with embedded bindings.
  25172. *
  25173. * @return string
  25174. * @static
  25175. */
  25176. public static function toRawSql()
  25177. {
  25178. /** @var \Illuminate\Database\Query\Builder $instance */
  25179. return $instance->toRawSql();
  25180. }
  25181. /**
  25182. * Get a single expression value from the first result of a query.
  25183. *
  25184. * @return mixed
  25185. * @static
  25186. */
  25187. public static function rawValue($expression, $bindings = [])
  25188. {
  25189. /** @var \Illuminate\Database\Query\Builder $instance */
  25190. return $instance->rawValue($expression, $bindings);
  25191. }
  25192. /**
  25193. * Get the count of the total records for the paginator.
  25194. *
  25195. * @param array<string|\Illuminate\Contracts\Database\Query\Expression> $columns
  25196. * @return int<0, max>
  25197. * @static
  25198. */
  25199. public static function getCountForPagination($columns = [])
  25200. {
  25201. /** @var \Illuminate\Database\Query\Builder $instance */
  25202. return $instance->getCountForPagination($columns);
  25203. }
  25204. /**
  25205. * Concatenate values of a given column as a string.
  25206. *
  25207. * @param string $column
  25208. * @param string $glue
  25209. * @return string
  25210. * @static
  25211. */
  25212. public static function implode($column, $glue = '')
  25213. {
  25214. /** @var \Illuminate\Database\Query\Builder $instance */
  25215. return $instance->implode($column, $glue);
  25216. }
  25217. /**
  25218. * Determine if any rows exist for the current query.
  25219. *
  25220. * @return bool
  25221. * @static
  25222. */
  25223. public static function exists()
  25224. {
  25225. /** @var \Illuminate\Database\Query\Builder $instance */
  25226. return $instance->exists();
  25227. }
  25228. /**
  25229. * Determine if no rows exist for the current query.
  25230. *
  25231. * @return bool
  25232. * @static
  25233. */
  25234. public static function doesntExist()
  25235. {
  25236. /** @var \Illuminate\Database\Query\Builder $instance */
  25237. return $instance->doesntExist();
  25238. }
  25239. /**
  25240. * Execute the given callback if no rows exist for the current query.
  25241. *
  25242. * @return mixed
  25243. * @static
  25244. */
  25245. public static function existsOr($callback)
  25246. {
  25247. /** @var \Illuminate\Database\Query\Builder $instance */
  25248. return $instance->existsOr($callback);
  25249. }
  25250. /**
  25251. * Execute the given callback if rows exist for the current query.
  25252. *
  25253. * @return mixed
  25254. * @static
  25255. */
  25256. public static function doesntExistOr($callback)
  25257. {
  25258. /** @var \Illuminate\Database\Query\Builder $instance */
  25259. return $instance->doesntExistOr($callback);
  25260. }
  25261. /**
  25262. * Retrieve the "count" result of the query.
  25263. *
  25264. * @param \Illuminate\Contracts\Database\Query\Expression|string $columns
  25265. * @return int<0, max>
  25266. * @static
  25267. */
  25268. public static function count($columns = '*')
  25269. {
  25270. /** @var \Illuminate\Database\Query\Builder $instance */
  25271. return $instance->count($columns);
  25272. }
  25273. /**
  25274. * Retrieve the minimum value of a given column.
  25275. *
  25276. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  25277. * @return mixed
  25278. * @static
  25279. */
  25280. public static function min($column)
  25281. {
  25282. /** @var \Illuminate\Database\Query\Builder $instance */
  25283. return $instance->min($column);
  25284. }
  25285. /**
  25286. * Retrieve the maximum value of a given column.
  25287. *
  25288. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  25289. * @return mixed
  25290. * @static
  25291. */
  25292. public static function max($column)
  25293. {
  25294. /** @var \Illuminate\Database\Query\Builder $instance */
  25295. return $instance->max($column);
  25296. }
  25297. /**
  25298. * Retrieve the sum of the values of a given column.
  25299. *
  25300. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  25301. * @return mixed
  25302. * @static
  25303. */
  25304. public static function sum($column)
  25305. {
  25306. /** @var \Illuminate\Database\Query\Builder $instance */
  25307. return $instance->sum($column);
  25308. }
  25309. /**
  25310. * Retrieve the average of the values of a given column.
  25311. *
  25312. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  25313. * @return mixed
  25314. * @static
  25315. */
  25316. public static function avg($column)
  25317. {
  25318. /** @var \Illuminate\Database\Query\Builder $instance */
  25319. return $instance->avg($column);
  25320. }
  25321. /**
  25322. * Alias for the "avg" method.
  25323. *
  25324. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  25325. * @return mixed
  25326. * @static
  25327. */
  25328. public static function average($column)
  25329. {
  25330. /** @var \Illuminate\Database\Query\Builder $instance */
  25331. return $instance->average($column);
  25332. }
  25333. /**
  25334. * Execute an aggregate function on the database.
  25335. *
  25336. * @param string $function
  25337. * @param array $columns
  25338. * @return mixed
  25339. * @static
  25340. */
  25341. public static function aggregate($function, $columns = [])
  25342. {
  25343. /** @var \Illuminate\Database\Query\Builder $instance */
  25344. return $instance->aggregate($function, $columns);
  25345. }
  25346. /**
  25347. * Execute a numeric aggregate function on the database.
  25348. *
  25349. * @param string $function
  25350. * @param array $columns
  25351. * @return float|int
  25352. * @static
  25353. */
  25354. public static function numericAggregate($function, $columns = [])
  25355. {
  25356. /** @var \Illuminate\Database\Query\Builder $instance */
  25357. return $instance->numericAggregate($function, $columns);
  25358. }
  25359. /**
  25360. * Insert new records into the database.
  25361. *
  25362. * @return bool
  25363. * @static
  25364. */
  25365. public static function insert($values)
  25366. {
  25367. /** @var \Illuminate\Database\Query\Builder $instance */
  25368. return $instance->insert($values);
  25369. }
  25370. /**
  25371. * Insert new records into the database while ignoring errors.
  25372. *
  25373. * @return int<0, max>
  25374. * @static
  25375. */
  25376. public static function insertOrIgnore($values)
  25377. {
  25378. /** @var \Illuminate\Database\Query\Builder $instance */
  25379. return $instance->insertOrIgnore($values);
  25380. }
  25381. /**
  25382. * Insert a new record and get the value of the primary key.
  25383. *
  25384. * @param string|null $sequence
  25385. * @return int
  25386. * @static
  25387. */
  25388. public static function insertGetId($values, $sequence = null)
  25389. {
  25390. /** @var \Illuminate\Database\Query\Builder $instance */
  25391. return $instance->insertGetId($values, $sequence);
  25392. }
  25393. /**
  25394. * Insert new records into the table using a subquery.
  25395. *
  25396. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  25397. * @return int
  25398. * @static
  25399. */
  25400. public static function insertUsing($columns, $query)
  25401. {
  25402. /** @var \Illuminate\Database\Query\Builder $instance */
  25403. return $instance->insertUsing($columns, $query);
  25404. }
  25405. /**
  25406. * Insert new records into the table using a subquery while ignoring errors.
  25407. *
  25408. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  25409. * @return int
  25410. * @static
  25411. */
  25412. public static function insertOrIgnoreUsing($columns, $query)
  25413. {
  25414. /** @var \Illuminate\Database\Query\Builder $instance */
  25415. return $instance->insertOrIgnoreUsing($columns, $query);
  25416. }
  25417. /**
  25418. * Update records in a PostgreSQL database using the update from syntax.
  25419. *
  25420. * @return int
  25421. * @static
  25422. */
  25423. public static function updateFrom($values)
  25424. {
  25425. /** @var \Illuminate\Database\Query\Builder $instance */
  25426. return $instance->updateFrom($values);
  25427. }
  25428. /**
  25429. * Insert or update a record matching the attributes, and fill it with values.
  25430. *
  25431. * @return bool
  25432. * @static
  25433. */
  25434. public static function updateOrInsert($attributes, $values = [])
  25435. {
  25436. /** @var \Illuminate\Database\Query\Builder $instance */
  25437. return $instance->updateOrInsert($attributes, $values);
  25438. }
  25439. /**
  25440. * Increment the given column's values by the given amounts.
  25441. *
  25442. * @param array<string, float|int|numeric-string> $columns
  25443. * @param array<string, mixed> $extra
  25444. * @return int<0, max>
  25445. * @throws \InvalidArgumentException
  25446. * @static
  25447. */
  25448. public static function incrementEach($columns, $extra = [])
  25449. {
  25450. /** @var \Illuminate\Database\Query\Builder $instance */
  25451. return $instance->incrementEach($columns, $extra);
  25452. }
  25453. /**
  25454. * Decrement the given column's values by the given amounts.
  25455. *
  25456. * @param array<string, float|int|numeric-string> $columns
  25457. * @param array<string, mixed> $extra
  25458. * @return int<0, max>
  25459. * @throws \InvalidArgumentException
  25460. * @static
  25461. */
  25462. public static function decrementEach($columns, $extra = [])
  25463. {
  25464. /** @var \Illuminate\Database\Query\Builder $instance */
  25465. return $instance->decrementEach($columns, $extra);
  25466. }
  25467. /**
  25468. * Run a truncate statement on the table.
  25469. *
  25470. * @return void
  25471. * @static
  25472. */
  25473. public static function truncate()
  25474. {
  25475. /** @var \Illuminate\Database\Query\Builder $instance */
  25476. $instance->truncate();
  25477. }
  25478. /**
  25479. * Get all of the query builder's columns in a text-only array with all expressions evaluated.
  25480. *
  25481. * @return list<string>
  25482. * @static
  25483. */
  25484. public static function getColumns()
  25485. {
  25486. /** @var \Illuminate\Database\Query\Builder $instance */
  25487. return $instance->getColumns();
  25488. }
  25489. /**
  25490. * Create a raw database expression.
  25491. *
  25492. * @param mixed $value
  25493. * @return \Illuminate\Contracts\Database\Query\Expression
  25494. * @static
  25495. */
  25496. public static function raw($value)
  25497. {
  25498. /** @var \Illuminate\Database\Query\Builder $instance */
  25499. return $instance->raw($value);
  25500. }
  25501. /**
  25502. * Get the current query value bindings in a flattened array.
  25503. *
  25504. * @return list<mixed>
  25505. * @static
  25506. */
  25507. public static function getBindings()
  25508. {
  25509. /** @var \Illuminate\Database\Query\Builder $instance */
  25510. return $instance->getBindings();
  25511. }
  25512. /**
  25513. * Get the raw array of bindings.
  25514. *
  25515. * @return \Illuminate\Database\Query\array{ select: list<mixed>,
  25516. * from: list<mixed>,
  25517. * join: list<mixed>,
  25518. * where: list<mixed>,
  25519. * groupBy: list<mixed>,
  25520. * having: list<mixed>,
  25521. * order: list<mixed>,
  25522. * union: list<mixed>,
  25523. * unionOrder: list<mixed>,
  25524. * }
  25525. * @static
  25526. */
  25527. public static function getRawBindings()
  25528. {
  25529. /** @var \Illuminate\Database\Query\Builder $instance */
  25530. return $instance->getRawBindings();
  25531. }
  25532. /**
  25533. * Set the bindings on the query builder.
  25534. *
  25535. * @param list<mixed> $bindings
  25536. * @param "select"|"from"|"join"|"where"|"groupBy"|"having"|"order"|"union"|"unionOrder" $type
  25537. * @return \Illuminate\Database\Eloquent\Builder<static>
  25538. * @throws \InvalidArgumentException
  25539. * @static
  25540. */
  25541. public static function setBindings($bindings, $type = 'where')
  25542. {
  25543. /** @var \Illuminate\Database\Query\Builder $instance */
  25544. return $instance->setBindings($bindings, $type);
  25545. }
  25546. /**
  25547. * Add a binding to the query.
  25548. *
  25549. * @param mixed $value
  25550. * @param "select"|"from"|"join"|"where"|"groupBy"|"having"|"order"|"union"|"unionOrder" $type
  25551. * @return \Illuminate\Database\Eloquent\Builder<static>
  25552. * @throws \InvalidArgumentException
  25553. * @static
  25554. */
  25555. public static function addBinding($value, $type = 'where')
  25556. {
  25557. /** @var \Illuminate\Database\Query\Builder $instance */
  25558. return $instance->addBinding($value, $type);
  25559. }
  25560. /**
  25561. * Cast the given binding value.
  25562. *
  25563. * @param mixed $value
  25564. * @return mixed
  25565. * @static
  25566. */
  25567. public static function castBinding($value)
  25568. {
  25569. /** @var \Illuminate\Database\Query\Builder $instance */
  25570. return $instance->castBinding($value);
  25571. }
  25572. /**
  25573. * Merge an array of bindings into our bindings.
  25574. *
  25575. * @param self $query
  25576. * @return \Illuminate\Database\Eloquent\Builder<static>
  25577. * @static
  25578. */
  25579. public static function mergeBindings($query)
  25580. {
  25581. /** @var \Illuminate\Database\Query\Builder $instance */
  25582. return $instance->mergeBindings($query);
  25583. }
  25584. /**
  25585. * Remove all of the expressions from a list of bindings.
  25586. *
  25587. * @param array<mixed> $bindings
  25588. * @return list<mixed>
  25589. * @static
  25590. */
  25591. public static function cleanBindings($bindings)
  25592. {
  25593. /** @var \Illuminate\Database\Query\Builder $instance */
  25594. return $instance->cleanBindings($bindings);
  25595. }
  25596. /**
  25597. * Get the database query processor instance.
  25598. *
  25599. * @return \Illuminate\Database\Query\Processors\Processor
  25600. * @static
  25601. */
  25602. public static function getProcessor()
  25603. {
  25604. /** @var \Illuminate\Database\Query\Builder $instance */
  25605. return $instance->getProcessor();
  25606. }
  25607. /**
  25608. * Get the query grammar instance.
  25609. *
  25610. * @return \Illuminate\Database\Query\Grammars\Grammar
  25611. * @static
  25612. */
  25613. public static function getGrammar()
  25614. {
  25615. /** @var \Illuminate\Database\Query\Builder $instance */
  25616. return $instance->getGrammar();
  25617. }
  25618. /**
  25619. * Use the "write" PDO connection when executing the query.
  25620. *
  25621. * @return \Illuminate\Database\Eloquent\Builder<static>
  25622. * @static
  25623. */
  25624. public static function useWritePdo()
  25625. {
  25626. /** @var \Illuminate\Database\Query\Builder $instance */
  25627. return $instance->useWritePdo();
  25628. }
  25629. /**
  25630. * Clone the query without the given properties.
  25631. *
  25632. * @return static
  25633. * @static
  25634. */
  25635. public static function cloneWithout($properties)
  25636. {
  25637. /** @var \Illuminate\Database\Query\Builder $instance */
  25638. return $instance->cloneWithout($properties);
  25639. }
  25640. /**
  25641. * Clone the query without the given bindings.
  25642. *
  25643. * @return static
  25644. * @static
  25645. */
  25646. public static function cloneWithoutBindings($except)
  25647. {
  25648. /** @var \Illuminate\Database\Query\Builder $instance */
  25649. return $instance->cloneWithoutBindings($except);
  25650. }
  25651. /**
  25652. * Dump the current SQL and bindings.
  25653. *
  25654. * @param mixed $args
  25655. * @return \Illuminate\Database\Eloquent\Builder<static>
  25656. * @static
  25657. */
  25658. public static function dump(...$args)
  25659. {
  25660. /** @var \Illuminate\Database\Query\Builder $instance */
  25661. return $instance->dump(...$args);
  25662. }
  25663. /**
  25664. * Dump the raw current SQL with embedded bindings.
  25665. *
  25666. * @return \Illuminate\Database\Eloquent\Builder<static>
  25667. * @static
  25668. */
  25669. public static function dumpRawSql()
  25670. {
  25671. /** @var \Illuminate\Database\Query\Builder $instance */
  25672. return $instance->dumpRawSql();
  25673. }
  25674. /**
  25675. * Die and dump the current SQL and bindings.
  25676. *
  25677. * @return never
  25678. * @static
  25679. */
  25680. public static function dd()
  25681. {
  25682. /** @var \Illuminate\Database\Query\Builder $instance */
  25683. return $instance->dd();
  25684. }
  25685. /**
  25686. * Die and dump the current SQL with embedded bindings.
  25687. *
  25688. * @return never
  25689. * @static
  25690. */
  25691. public static function ddRawSql()
  25692. {
  25693. /** @var \Illuminate\Database\Query\Builder $instance */
  25694. return $instance->ddRawSql();
  25695. }
  25696. /**
  25697. * Add a where clause to determine if a "date" column is in the past to the query.
  25698. *
  25699. * @param array|string $columns
  25700. * @return \Illuminate\Database\Eloquent\Builder<static>
  25701. * @static
  25702. */
  25703. public static function wherePast($columns)
  25704. {
  25705. /** @var \Illuminate\Database\Query\Builder $instance */
  25706. return $instance->wherePast($columns);
  25707. }
  25708. /**
  25709. * Add a where clause to determine if a "date" column is in the past or now to the query.
  25710. *
  25711. * @param array|string $columns
  25712. * @return \Illuminate\Database\Eloquent\Builder<static>
  25713. * @static
  25714. */
  25715. public static function whereNowOrPast($columns)
  25716. {
  25717. /** @var \Illuminate\Database\Query\Builder $instance */
  25718. return $instance->whereNowOrPast($columns);
  25719. }
  25720. /**
  25721. * Add an "or where" clause to determine if a "date" column is in the past to the query.
  25722. *
  25723. * @param array|string $columns
  25724. * @return \Illuminate\Database\Eloquent\Builder<static>
  25725. * @static
  25726. */
  25727. public static function orWherePast($columns)
  25728. {
  25729. /** @var \Illuminate\Database\Query\Builder $instance */
  25730. return $instance->orWherePast($columns);
  25731. }
  25732. /**
  25733. * Add a where clause to determine if a "date" column is in the past or now to the query.
  25734. *
  25735. * @param array|string $columns
  25736. * @return \Illuminate\Database\Eloquent\Builder<static>
  25737. * @static
  25738. */
  25739. public static function orWhereNowOrPast($columns)
  25740. {
  25741. /** @var \Illuminate\Database\Query\Builder $instance */
  25742. return $instance->orWhereNowOrPast($columns);
  25743. }
  25744. /**
  25745. * Add a where clause to determine if a "date" column is in the future to the query.
  25746. *
  25747. * @param array|string $columns
  25748. * @return \Illuminate\Database\Eloquent\Builder<static>
  25749. * @static
  25750. */
  25751. public static function whereFuture($columns)
  25752. {
  25753. /** @var \Illuminate\Database\Query\Builder $instance */
  25754. return $instance->whereFuture($columns);
  25755. }
  25756. /**
  25757. * Add a where clause to determine if a "date" column is in the future or now to the query.
  25758. *
  25759. * @param array|string $columns
  25760. * @return \Illuminate\Database\Eloquent\Builder<static>
  25761. * @static
  25762. */
  25763. public static function whereNowOrFuture($columns)
  25764. {
  25765. /** @var \Illuminate\Database\Query\Builder $instance */
  25766. return $instance->whereNowOrFuture($columns);
  25767. }
  25768. /**
  25769. * Add an "or where" clause to determine if a "date" column is in the future to the query.
  25770. *
  25771. * @param array|string $columns
  25772. * @return \Illuminate\Database\Eloquent\Builder<static>
  25773. * @static
  25774. */
  25775. public static function orWhereFuture($columns)
  25776. {
  25777. /** @var \Illuminate\Database\Query\Builder $instance */
  25778. return $instance->orWhereFuture($columns);
  25779. }
  25780. /**
  25781. * Add an "or where" clause to determine if a "date" column is in the future or now to the query.
  25782. *
  25783. * @param array|string $columns
  25784. * @return \Illuminate\Database\Eloquent\Builder<static>
  25785. * @static
  25786. */
  25787. public static function orWhereNowOrFuture($columns)
  25788. {
  25789. /** @var \Illuminate\Database\Query\Builder $instance */
  25790. return $instance->orWhereNowOrFuture($columns);
  25791. }
  25792. /**
  25793. * Add a "where date" clause to determine if a "date" column is today to the query.
  25794. *
  25795. * @param array|string $columns
  25796. * @param string $boolean
  25797. * @return \Illuminate\Database\Eloquent\Builder<static>
  25798. * @static
  25799. */
  25800. public static function whereToday($columns, $boolean = 'and')
  25801. {
  25802. /** @var \Illuminate\Database\Query\Builder $instance */
  25803. return $instance->whereToday($columns, $boolean);
  25804. }
  25805. /**
  25806. * Add a "where date" clause to determine if a "date" column is before today.
  25807. *
  25808. * @param array|string $columns
  25809. * @return \Illuminate\Database\Eloquent\Builder<static>
  25810. * @static
  25811. */
  25812. public static function whereBeforeToday($columns)
  25813. {
  25814. /** @var \Illuminate\Database\Query\Builder $instance */
  25815. return $instance->whereBeforeToday($columns);
  25816. }
  25817. /**
  25818. * Add a "where date" clause to determine if a "date" column is today or before to the query.
  25819. *
  25820. * @param array|string $columns
  25821. * @return \Illuminate\Database\Eloquent\Builder<static>
  25822. * @static
  25823. */
  25824. public static function whereTodayOrBefore($columns)
  25825. {
  25826. /** @var \Illuminate\Database\Query\Builder $instance */
  25827. return $instance->whereTodayOrBefore($columns);
  25828. }
  25829. /**
  25830. * Add a "where date" clause to determine if a "date" column is after today.
  25831. *
  25832. * @param array|string $columns
  25833. * @return \Illuminate\Database\Eloquent\Builder<static>
  25834. * @static
  25835. */
  25836. public static function whereAfterToday($columns)
  25837. {
  25838. /** @var \Illuminate\Database\Query\Builder $instance */
  25839. return $instance->whereAfterToday($columns);
  25840. }
  25841. /**
  25842. * Add a "where date" clause to determine if a "date" column is today or after to the query.
  25843. *
  25844. * @param array|string $columns
  25845. * @return \Illuminate\Database\Eloquent\Builder<static>
  25846. * @static
  25847. */
  25848. public static function whereTodayOrAfter($columns)
  25849. {
  25850. /** @var \Illuminate\Database\Query\Builder $instance */
  25851. return $instance->whereTodayOrAfter($columns);
  25852. }
  25853. /**
  25854. * Add an "or where date" clause to determine if a "date" column is today to the query.
  25855. *
  25856. * @param array|string $columns
  25857. * @return \Illuminate\Database\Eloquent\Builder<static>
  25858. * @static
  25859. */
  25860. public static function orWhereToday($columns)
  25861. {
  25862. /** @var \Illuminate\Database\Query\Builder $instance */
  25863. return $instance->orWhereToday($columns);
  25864. }
  25865. /**
  25866. * Add an "or where date" clause to determine if a "date" column is before today.
  25867. *
  25868. * @param array|string $columns
  25869. * @return \Illuminate\Database\Eloquent\Builder<static>
  25870. * @static
  25871. */
  25872. public static function orWhereBeforeToday($columns)
  25873. {
  25874. /** @var \Illuminate\Database\Query\Builder $instance */
  25875. return $instance->orWhereBeforeToday($columns);
  25876. }
  25877. /**
  25878. * Add an "or where date" clause to determine if a "date" column is today or before to the query.
  25879. *
  25880. * @param array|string $columns
  25881. * @return \Illuminate\Database\Eloquent\Builder<static>
  25882. * @static
  25883. */
  25884. public static function orWhereTodayOrBefore($columns)
  25885. {
  25886. /** @var \Illuminate\Database\Query\Builder $instance */
  25887. return $instance->orWhereTodayOrBefore($columns);
  25888. }
  25889. /**
  25890. * Add an "or where date" clause to determine if a "date" column is after today.
  25891. *
  25892. * @param array|string $columns
  25893. * @return \Illuminate\Database\Eloquent\Builder<static>
  25894. * @static
  25895. */
  25896. public static function orWhereAfterToday($columns)
  25897. {
  25898. /** @var \Illuminate\Database\Query\Builder $instance */
  25899. return $instance->orWhereAfterToday($columns);
  25900. }
  25901. /**
  25902. * Add an "or where date" clause to determine if a "date" column is today or after to the query.
  25903. *
  25904. * @param array|string $columns
  25905. * @return \Illuminate\Database\Eloquent\Builder<static>
  25906. * @static
  25907. */
  25908. public static function orWhereTodayOrAfter($columns)
  25909. {
  25910. /** @var \Illuminate\Database\Query\Builder $instance */
  25911. return $instance->orWhereTodayOrAfter($columns);
  25912. }
  25913. /**
  25914. * Explains the query.
  25915. *
  25916. * @return \Illuminate\Support\Collection
  25917. * @static
  25918. */
  25919. public static function explain()
  25920. {
  25921. /** @var \Illuminate\Database\Query\Builder $instance */
  25922. return $instance->explain();
  25923. }
  25924. /**
  25925. * Register a custom macro.
  25926. *
  25927. * @param string $name
  25928. * @param object|callable $macro
  25929. * @param-closure-this static $macro
  25930. * @return void
  25931. * @static
  25932. */
  25933. public static function macro($name, $macro)
  25934. {
  25935. \Illuminate\Database\Query\Builder::macro($name, $macro);
  25936. }
  25937. /**
  25938. * Mix another object into the class.
  25939. *
  25940. * @param object $mixin
  25941. * @param bool $replace
  25942. * @return void
  25943. * @throws \ReflectionException
  25944. * @static
  25945. */
  25946. public static function mixin($mixin, $replace = true)
  25947. {
  25948. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  25949. }
  25950. /**
  25951. * Flush the existing macros.
  25952. *
  25953. * @return void
  25954. * @static
  25955. */
  25956. public static function flushMacros()
  25957. {
  25958. \Illuminate\Database\Query\Builder::flushMacros();
  25959. }
  25960. /**
  25961. * Dynamically handle calls to the class.
  25962. *
  25963. * @param string $method
  25964. * @param array $parameters
  25965. * @return mixed
  25966. * @throws \BadMethodCallException
  25967. * @static
  25968. */
  25969. public static function macroCall($method, $parameters)
  25970. {
  25971. /** @var \Illuminate\Database\Query\Builder $instance */
  25972. return $instance->macroCall($method, $parameters);
  25973. }
  25974. }
  25975. class Event extends \Illuminate\Support\Facades\Event {}
  25976. class File extends \Illuminate\Support\Facades\File {}
  25977. class Gate extends \Illuminate\Support\Facades\Gate {}
  25978. class Hash extends \Illuminate\Support\Facades\Hash {}
  25979. class Http extends \Illuminate\Support\Facades\Http {}
  25980. class Js extends \Illuminate\Support\Js {}
  25981. class Lang extends \Illuminate\Support\Facades\Lang {}
  25982. class Log extends \Illuminate\Support\Facades\Log {}
  25983. class Mail extends \Illuminate\Support\Facades\Mail {}
  25984. class Notification extends \Illuminate\Support\Facades\Notification {}
  25985. class Number extends \Illuminate\Support\Number {}
  25986. class Password extends \Illuminate\Support\Facades\Password {}
  25987. class Process extends \Illuminate\Support\Facades\Process {}
  25988. class Queue extends \Illuminate\Support\Facades\Queue {}
  25989. class RateLimiter extends \Illuminate\Support\Facades\RateLimiter {}
  25990. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  25991. class Request extends \Illuminate\Support\Facades\Request {}
  25992. class Response extends \Illuminate\Support\Facades\Response {}
  25993. class Route extends \Illuminate\Support\Facades\Route {}
  25994. class Schedule extends \Illuminate\Support\Facades\Schedule {}
  25995. class Schema extends \Illuminate\Support\Facades\Schema {}
  25996. class Session extends \Illuminate\Support\Facades\Session {}
  25997. class Storage extends \Illuminate\Support\Facades\Storage {}
  25998. class Str extends \Illuminate\Support\Str {}
  25999. class URL extends \Illuminate\Support\Facades\URL {}
  26000. class Uri extends \Illuminate\Support\Uri {}
  26001. class Validator extends \Illuminate\Support\Facades\Validator {}
  26002. class View extends \Illuminate\Support\Facades\View {}
  26003. class Vite extends \Illuminate\Support\Facades\Vite {}
  26004. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  26005. }