_ide_helper.php 868 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413
  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 11.30.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. *
  17. *
  18. * @see \Illuminate\Foundation\Application
  19. */ class App {
  20. /**
  21. * Begin configuring a new Laravel application instance.
  22. *
  23. * @param string|null $basePath
  24. * @return \Illuminate\Foundation\Configuration\ApplicationBuilder
  25. * @static
  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. */ public static function inferBasePath()
  36. {
  37. return \Illuminate\Foundation\Application::inferBasePath();
  38. }
  39. /**
  40. * Get the version number of the application.
  41. *
  42. * @return string
  43. * @static
  44. */ public static function version()
  45. {
  46. /** @var \Illuminate\Foundation\Application $instance */
  47. return $instance->version();
  48. }
  49. /**
  50. * Run the given array of bootstrap classes.
  51. *
  52. * @param string[] $bootstrappers
  53. * @return void
  54. * @static
  55. */ public static function bootstrapWith($bootstrappers)
  56. {
  57. /** @var \Illuminate\Foundation\Application $instance */
  58. $instance->bootstrapWith($bootstrappers);
  59. }
  60. /**
  61. * Register a callback to run after loading the environment.
  62. *
  63. * @param \Closure $callback
  64. * @return void
  65. * @static
  66. */ public static function afterLoadingEnvironment($callback)
  67. {
  68. /** @var \Illuminate\Foundation\Application $instance */
  69. $instance->afterLoadingEnvironment($callback);
  70. }
  71. /**
  72. * Register a callback to run before a bootstrapper.
  73. *
  74. * @param string $bootstrapper
  75. * @param \Closure $callback
  76. * @return void
  77. * @static
  78. */ public static function beforeBootstrapping($bootstrapper, $callback)
  79. {
  80. /** @var \Illuminate\Foundation\Application $instance */
  81. $instance->beforeBootstrapping($bootstrapper, $callback);
  82. }
  83. /**
  84. * Register a callback to run after a bootstrapper.
  85. *
  86. * @param string $bootstrapper
  87. * @param \Closure $callback
  88. * @return void
  89. * @static
  90. */ public static function afterBootstrapping($bootstrapper, $callback)
  91. {
  92. /** @var \Illuminate\Foundation\Application $instance */
  93. $instance->afterBootstrapping($bootstrapper, $callback);
  94. }
  95. /**
  96. * Determine if the application has been bootstrapped before.
  97. *
  98. * @return bool
  99. * @static
  100. */ public static function hasBeenBootstrapped()
  101. {
  102. /** @var \Illuminate\Foundation\Application $instance */
  103. return $instance->hasBeenBootstrapped();
  104. }
  105. /**
  106. * Set the base path for the application.
  107. *
  108. * @param string $basePath
  109. * @return \Illuminate\Foundation\Application
  110. * @static
  111. */ public static function setBasePath($basePath)
  112. {
  113. /** @var \Illuminate\Foundation\Application $instance */
  114. return $instance->setBasePath($basePath);
  115. }
  116. /**
  117. * Get the path to the application "app" directory.
  118. *
  119. * @param string $path
  120. * @return string
  121. * @static
  122. */ public static function path($path = '')
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->path($path);
  126. }
  127. /**
  128. * Set the application directory.
  129. *
  130. * @param string $path
  131. * @return \Illuminate\Foundation\Application
  132. * @static
  133. */ public static function useAppPath($path)
  134. {
  135. /** @var \Illuminate\Foundation\Application $instance */
  136. return $instance->useAppPath($path);
  137. }
  138. /**
  139. * Get the base path of the Laravel installation.
  140. *
  141. * @param string $path
  142. * @return string
  143. * @static
  144. */ public static function basePath($path = '')
  145. {
  146. /** @var \Illuminate\Foundation\Application $instance */
  147. return $instance->basePath($path);
  148. }
  149. /**
  150. * Get the path to the bootstrap directory.
  151. *
  152. * @param string $path
  153. * @return string
  154. * @static
  155. */ public static function bootstrapPath($path = '')
  156. {
  157. /** @var \Illuminate\Foundation\Application $instance */
  158. return $instance->bootstrapPath($path);
  159. }
  160. /**
  161. * Get the path to the service provider list in the bootstrap directory.
  162. *
  163. * @return string
  164. * @static
  165. */ public static function getBootstrapProvidersPath()
  166. {
  167. /** @var \Illuminate\Foundation\Application $instance */
  168. return $instance->getBootstrapProvidersPath();
  169. }
  170. /**
  171. * Set the bootstrap file directory.
  172. *
  173. * @param string $path
  174. * @return \Illuminate\Foundation\Application
  175. * @static
  176. */ public static function useBootstrapPath($path)
  177. {
  178. /** @var \Illuminate\Foundation\Application $instance */
  179. return $instance->useBootstrapPath($path);
  180. }
  181. /**
  182. * Get the path to the application configuration files.
  183. *
  184. * @param string $path
  185. * @return string
  186. * @static
  187. */ public static function configPath($path = '')
  188. {
  189. /** @var \Illuminate\Foundation\Application $instance */
  190. return $instance->configPath($path);
  191. }
  192. /**
  193. * Set the configuration directory.
  194. *
  195. * @param string $path
  196. * @return \Illuminate\Foundation\Application
  197. * @static
  198. */ public static function useConfigPath($path)
  199. {
  200. /** @var \Illuminate\Foundation\Application $instance */
  201. return $instance->useConfigPath($path);
  202. }
  203. /**
  204. * Get the path to the database directory.
  205. *
  206. * @param string $path
  207. * @return string
  208. * @static
  209. */ public static function databasePath($path = '')
  210. {
  211. /** @var \Illuminate\Foundation\Application $instance */
  212. return $instance->databasePath($path);
  213. }
  214. /**
  215. * Set the database directory.
  216. *
  217. * @param string $path
  218. * @return \Illuminate\Foundation\Application
  219. * @static
  220. */ public static function useDatabasePath($path)
  221. {
  222. /** @var \Illuminate\Foundation\Application $instance */
  223. return $instance->useDatabasePath($path);
  224. }
  225. /**
  226. * Get the path to the language files.
  227. *
  228. * @param string $path
  229. * @return string
  230. * @static
  231. */ public static function langPath($path = '')
  232. {
  233. /** @var \Illuminate\Foundation\Application $instance */
  234. return $instance->langPath($path);
  235. }
  236. /**
  237. * Set the language file directory.
  238. *
  239. * @param string $path
  240. * @return \Illuminate\Foundation\Application
  241. * @static
  242. */ public static function useLangPath($path)
  243. {
  244. /** @var \Illuminate\Foundation\Application $instance */
  245. return $instance->useLangPath($path);
  246. }
  247. /**
  248. * Get the path to the public / web directory.
  249. *
  250. * @param string $path
  251. * @return string
  252. * @static
  253. */ public static function publicPath($path = '')
  254. {
  255. /** @var \Illuminate\Foundation\Application $instance */
  256. return $instance->publicPath($path);
  257. }
  258. /**
  259. * Set the public / web directory.
  260. *
  261. * @param string $path
  262. * @return \Illuminate\Foundation\Application
  263. * @static
  264. */ public static function usePublicPath($path)
  265. {
  266. /** @var \Illuminate\Foundation\Application $instance */
  267. return $instance->usePublicPath($path);
  268. }
  269. /**
  270. * Get the path to the storage directory.
  271. *
  272. * @param string $path
  273. * @return string
  274. * @static
  275. */ public static function storagePath($path = '')
  276. {
  277. /** @var \Illuminate\Foundation\Application $instance */
  278. return $instance->storagePath($path);
  279. }
  280. /**
  281. * Set the storage directory.
  282. *
  283. * @param string $path
  284. * @return \Illuminate\Foundation\Application
  285. * @static
  286. */ public static function useStoragePath($path)
  287. {
  288. /** @var \Illuminate\Foundation\Application $instance */
  289. return $instance->useStoragePath($path);
  290. }
  291. /**
  292. * Get the path to the resources directory.
  293. *
  294. * @param string $path
  295. * @return string
  296. * @static
  297. */ public static function resourcePath($path = '')
  298. {
  299. /** @var \Illuminate\Foundation\Application $instance */
  300. return $instance->resourcePath($path);
  301. }
  302. /**
  303. * Get the path to the views directory.
  304. *
  305. * This method returns the first configured path in the array of view paths.
  306. *
  307. * @param string $path
  308. * @return string
  309. * @static
  310. */ public static function viewPath($path = '')
  311. {
  312. /** @var \Illuminate\Foundation\Application $instance */
  313. return $instance->viewPath($path);
  314. }
  315. /**
  316. * Join the given paths together.
  317. *
  318. * @param string $basePath
  319. * @param string $path
  320. * @return string
  321. * @static
  322. */ public static function joinPaths($basePath, $path = '')
  323. {
  324. /** @var \Illuminate\Foundation\Application $instance */
  325. return $instance->joinPaths($basePath, $path);
  326. }
  327. /**
  328. * Get the path to the environment file directory.
  329. *
  330. * @return string
  331. * @static
  332. */ public static function environmentPath()
  333. {
  334. /** @var \Illuminate\Foundation\Application $instance */
  335. return $instance->environmentPath();
  336. }
  337. /**
  338. * Set the directory for the environment file.
  339. *
  340. * @param string $path
  341. * @return \Illuminate\Foundation\Application
  342. * @static
  343. */ public static function useEnvironmentPath($path)
  344. {
  345. /** @var \Illuminate\Foundation\Application $instance */
  346. return $instance->useEnvironmentPath($path);
  347. }
  348. /**
  349. * Set the environment file to be loaded during bootstrapping.
  350. *
  351. * @param string $file
  352. * @return \Illuminate\Foundation\Application
  353. * @static
  354. */ public static function loadEnvironmentFrom($file)
  355. {
  356. /** @var \Illuminate\Foundation\Application $instance */
  357. return $instance->loadEnvironmentFrom($file);
  358. }
  359. /**
  360. * Get the environment file the application is using.
  361. *
  362. * @return string
  363. * @static
  364. */ public static function environmentFile()
  365. {
  366. /** @var \Illuminate\Foundation\Application $instance */
  367. return $instance->environmentFile();
  368. }
  369. /**
  370. * Get the fully qualified path to the environment file.
  371. *
  372. * @return string
  373. * @static
  374. */ public static function environmentFilePath()
  375. {
  376. /** @var \Illuminate\Foundation\Application $instance */
  377. return $instance->environmentFilePath();
  378. }
  379. /**
  380. * Get or check the current application environment.
  381. *
  382. * @param string|array $environments
  383. * @return string|bool
  384. * @static
  385. */ public static function environment(...$environments)
  386. {
  387. /** @var \Illuminate\Foundation\Application $instance */
  388. return $instance->environment(...$environments);
  389. }
  390. /**
  391. * Determine if the application is in the local environment.
  392. *
  393. * @return bool
  394. * @static
  395. */ public static function isLocal()
  396. {
  397. /** @var \Illuminate\Foundation\Application $instance */
  398. return $instance->isLocal();
  399. }
  400. /**
  401. * Determine if the application is in the production environment.
  402. *
  403. * @return bool
  404. * @static
  405. */ public static function isProduction()
  406. {
  407. /** @var \Illuminate\Foundation\Application $instance */
  408. return $instance->isProduction();
  409. }
  410. /**
  411. * Detect the application's current environment.
  412. *
  413. * @param \Closure $callback
  414. * @return string
  415. * @static
  416. */ public static function detectEnvironment($callback)
  417. {
  418. /** @var \Illuminate\Foundation\Application $instance */
  419. return $instance->detectEnvironment($callback);
  420. }
  421. /**
  422. * Determine if the application is running in the console.
  423. *
  424. * @return bool
  425. * @static
  426. */ public static function runningInConsole()
  427. {
  428. /** @var \Illuminate\Foundation\Application $instance */
  429. return $instance->runningInConsole();
  430. }
  431. /**
  432. * Determine if the application is running any of the given console commands.
  433. *
  434. * @param string|array $commands
  435. * @return bool
  436. * @static
  437. */ public static function runningConsoleCommand(...$commands)
  438. {
  439. /** @var \Illuminate\Foundation\Application $instance */
  440. return $instance->runningConsoleCommand(...$commands);
  441. }
  442. /**
  443. * Determine if the application is running unit tests.
  444. *
  445. * @return bool
  446. * @static
  447. */ public static function runningUnitTests()
  448. {
  449. /** @var \Illuminate\Foundation\Application $instance */
  450. return $instance->runningUnitTests();
  451. }
  452. /**
  453. * Determine if the application is running with debug mode enabled.
  454. *
  455. * @return bool
  456. * @static
  457. */ public static function hasDebugModeEnabled()
  458. {
  459. /** @var \Illuminate\Foundation\Application $instance */
  460. return $instance->hasDebugModeEnabled();
  461. }
  462. /**
  463. * Register a new registered listener.
  464. *
  465. * @param callable $callback
  466. * @return void
  467. * @static
  468. */ public static function registered($callback)
  469. {
  470. /** @var \Illuminate\Foundation\Application $instance */
  471. $instance->registered($callback);
  472. }
  473. /**
  474. * Register all of the configured providers.
  475. *
  476. * @return void
  477. * @static
  478. */ public static function registerConfiguredProviders()
  479. {
  480. /** @var \Illuminate\Foundation\Application $instance */
  481. $instance->registerConfiguredProviders();
  482. }
  483. /**
  484. * Register a service provider with the application.
  485. *
  486. * @param \Illuminate\Support\ServiceProvider|string $provider
  487. * @param bool $force
  488. * @return \Illuminate\Support\ServiceProvider
  489. * @static
  490. */ public static function register($provider, $force = false)
  491. {
  492. /** @var \Illuminate\Foundation\Application $instance */
  493. return $instance->register($provider, $force);
  494. }
  495. /**
  496. * Get the registered service provider instance if it exists.
  497. *
  498. * @param \Illuminate\Support\ServiceProvider|string $provider
  499. * @return \Illuminate\Support\ServiceProvider|null
  500. * @static
  501. */ public static function getProvider($provider)
  502. {
  503. /** @var \Illuminate\Foundation\Application $instance */
  504. return $instance->getProvider($provider);
  505. }
  506. /**
  507. * Get the registered service provider instances if any exist.
  508. *
  509. * @param \Illuminate\Support\ServiceProvider|string $provider
  510. * @return array
  511. * @static
  512. */ public static function getProviders($provider)
  513. {
  514. /** @var \Illuminate\Foundation\Application $instance */
  515. return $instance->getProviders($provider);
  516. }
  517. /**
  518. * Resolve a service provider instance from the class name.
  519. *
  520. * @param string $provider
  521. * @return \Illuminate\Support\ServiceProvider
  522. * @static
  523. */ public static function resolveProvider($provider)
  524. {
  525. /** @var \Illuminate\Foundation\Application $instance */
  526. return $instance->resolveProvider($provider);
  527. }
  528. /**
  529. * Load and boot all of the remaining deferred providers.
  530. *
  531. * @return void
  532. * @static
  533. */ public static function loadDeferredProviders()
  534. {
  535. /** @var \Illuminate\Foundation\Application $instance */
  536. $instance->loadDeferredProviders();
  537. }
  538. /**
  539. * Load the provider for a deferred service.
  540. *
  541. * @param string $service
  542. * @return void
  543. * @static
  544. */ public static function loadDeferredProvider($service)
  545. {
  546. /** @var \Illuminate\Foundation\Application $instance */
  547. $instance->loadDeferredProvider($service);
  548. }
  549. /**
  550. * Register a deferred provider and service.
  551. *
  552. * @param string $provider
  553. * @param string|null $service
  554. * @return void
  555. * @static
  556. */ public static function registerDeferredProvider($provider, $service = null)
  557. {
  558. /** @var \Illuminate\Foundation\Application $instance */
  559. $instance->registerDeferredProvider($provider, $service);
  560. }
  561. /**
  562. * Resolve the given type from the container.
  563. *
  564. * @param string $abstract
  565. * @param array $parameters
  566. * @return mixed
  567. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  568. * @static
  569. */ public static function make($abstract, $parameters = [])
  570. {
  571. /** @var \Illuminate\Foundation\Application $instance */
  572. return $instance->make($abstract, $parameters);
  573. }
  574. /**
  575. * Determine if the given abstract type has been bound.
  576. *
  577. * @param string $abstract
  578. * @return bool
  579. * @static
  580. */ public static function bound($abstract)
  581. {
  582. /** @var \Illuminate\Foundation\Application $instance */
  583. return $instance->bound($abstract);
  584. }
  585. /**
  586. * Determine if the application has booted.
  587. *
  588. * @return bool
  589. * @static
  590. */ public static function isBooted()
  591. {
  592. /** @var \Illuminate\Foundation\Application $instance */
  593. return $instance->isBooted();
  594. }
  595. /**
  596. * Boot the application's service providers.
  597. *
  598. * @return void
  599. * @static
  600. */ public static function boot()
  601. {
  602. /** @var \Illuminate\Foundation\Application $instance */
  603. $instance->boot();
  604. }
  605. /**
  606. * Register a new boot listener.
  607. *
  608. * @param callable $callback
  609. * @return void
  610. * @static
  611. */ public static function booting($callback)
  612. {
  613. /** @var \Illuminate\Foundation\Application $instance */
  614. $instance->booting($callback);
  615. }
  616. /**
  617. * Register a new "booted" listener.
  618. *
  619. * @param callable $callback
  620. * @return void
  621. * @static
  622. */ public static function booted($callback)
  623. {
  624. /** @var \Illuminate\Foundation\Application $instance */
  625. $instance->booted($callback);
  626. }
  627. /**
  628. * {@inheritdoc}
  629. *
  630. * @return \Symfony\Component\HttpFoundation\Response
  631. * @static
  632. */ public static function handle($request, $type = 1, $catch = true)
  633. {
  634. /** @var \Illuminate\Foundation\Application $instance */
  635. return $instance->handle($request, $type, $catch);
  636. }
  637. /**
  638. * Handle the incoming HTTP request and send the response to the browser.
  639. *
  640. * @param \Illuminate\Http\Request $request
  641. * @return void
  642. * @static
  643. */ public static function handleRequest($request)
  644. {
  645. /** @var \Illuminate\Foundation\Application $instance */
  646. $instance->handleRequest($request);
  647. }
  648. /**
  649. * Handle the incoming Artisan command.
  650. *
  651. * @param \Symfony\Component\Console\Input\InputInterface $input
  652. * @return int
  653. * @static
  654. */ public static function handleCommand($input)
  655. {
  656. /** @var \Illuminate\Foundation\Application $instance */
  657. return $instance->handleCommand($input);
  658. }
  659. /**
  660. * Determine if the framework's base configuration should be merged.
  661. *
  662. * @return bool
  663. * @static
  664. */ public static function shouldMergeFrameworkConfiguration()
  665. {
  666. /** @var \Illuminate\Foundation\Application $instance */
  667. return $instance->shouldMergeFrameworkConfiguration();
  668. }
  669. /**
  670. * Indicate that the framework's base configuration should not be merged.
  671. *
  672. * @return \Illuminate\Foundation\Application
  673. * @static
  674. */ public static function dontMergeFrameworkConfiguration()
  675. {
  676. /** @var \Illuminate\Foundation\Application $instance */
  677. return $instance->dontMergeFrameworkConfiguration();
  678. }
  679. /**
  680. * Determine if middleware has been disabled for the application.
  681. *
  682. * @return bool
  683. * @static
  684. */ public static function shouldSkipMiddleware()
  685. {
  686. /** @var \Illuminate\Foundation\Application $instance */
  687. return $instance->shouldSkipMiddleware();
  688. }
  689. /**
  690. * Get the path to the cached services.php file.
  691. *
  692. * @return string
  693. * @static
  694. */ public static function getCachedServicesPath()
  695. {
  696. /** @var \Illuminate\Foundation\Application $instance */
  697. return $instance->getCachedServicesPath();
  698. }
  699. /**
  700. * Get the path to the cached packages.php file.
  701. *
  702. * @return string
  703. * @static
  704. */ public static function getCachedPackagesPath()
  705. {
  706. /** @var \Illuminate\Foundation\Application $instance */
  707. return $instance->getCachedPackagesPath();
  708. }
  709. /**
  710. * Determine if the application configuration is cached.
  711. *
  712. * @return bool
  713. * @static
  714. */ public static function configurationIsCached()
  715. {
  716. /** @var \Illuminate\Foundation\Application $instance */
  717. return $instance->configurationIsCached();
  718. }
  719. /**
  720. * Get the path to the configuration cache file.
  721. *
  722. * @return string
  723. * @static
  724. */ public static function getCachedConfigPath()
  725. {
  726. /** @var \Illuminate\Foundation\Application $instance */
  727. return $instance->getCachedConfigPath();
  728. }
  729. /**
  730. * Determine if the application routes are cached.
  731. *
  732. * @return bool
  733. * @static
  734. */ public static function routesAreCached()
  735. {
  736. /** @var \Illuminate\Foundation\Application $instance */
  737. return $instance->routesAreCached();
  738. }
  739. /**
  740. * Get the path to the routes cache file.
  741. *
  742. * @return string
  743. * @static
  744. */ public static function getCachedRoutesPath()
  745. {
  746. /** @var \Illuminate\Foundation\Application $instance */
  747. return $instance->getCachedRoutesPath();
  748. }
  749. /**
  750. * Determine if the application events are cached.
  751. *
  752. * @return bool
  753. * @static
  754. */ public static function eventsAreCached()
  755. {
  756. /** @var \Illuminate\Foundation\Application $instance */
  757. return $instance->eventsAreCached();
  758. }
  759. /**
  760. * Get the path to the events cache file.
  761. *
  762. * @return string
  763. * @static
  764. */ public static function getCachedEventsPath()
  765. {
  766. /** @var \Illuminate\Foundation\Application $instance */
  767. return $instance->getCachedEventsPath();
  768. }
  769. /**
  770. * Add new prefix to list of absolute path prefixes.
  771. *
  772. * @param string $prefix
  773. * @return \Illuminate\Foundation\Application
  774. * @static
  775. */ public static function addAbsoluteCachePathPrefix($prefix)
  776. {
  777. /** @var \Illuminate\Foundation\Application $instance */
  778. return $instance->addAbsoluteCachePathPrefix($prefix);
  779. }
  780. /**
  781. * Get an instance of the maintenance mode manager implementation.
  782. *
  783. * @return \Illuminate\Contracts\Foundation\MaintenanceMode
  784. * @static
  785. */ public static function maintenanceMode()
  786. {
  787. /** @var \Illuminate\Foundation\Application $instance */
  788. return $instance->maintenanceMode();
  789. }
  790. /**
  791. * Determine if the application is currently down for maintenance.
  792. *
  793. * @return bool
  794. * @static
  795. */ public static function isDownForMaintenance()
  796. {
  797. /** @var \Illuminate\Foundation\Application $instance */
  798. return $instance->isDownForMaintenance();
  799. }
  800. /**
  801. * Throw an HttpException with the given data.
  802. *
  803. * @param int $code
  804. * @param string $message
  805. * @param array $headers
  806. * @return \Illuminate\Foundation\never
  807. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  808. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  809. * @static
  810. */ public static function abort($code, $message = '', $headers = [])
  811. {
  812. /** @var \Illuminate\Foundation\Application $instance */
  813. return $instance->abort($code, $message, $headers);
  814. }
  815. /**
  816. * Register a terminating callback with the application.
  817. *
  818. * @param callable|string $callback
  819. * @return \Illuminate\Foundation\Application
  820. * @static
  821. */ public static function terminating($callback)
  822. {
  823. /** @var \Illuminate\Foundation\Application $instance */
  824. return $instance->terminating($callback);
  825. }
  826. /**
  827. * Terminate the application.
  828. *
  829. * @return void
  830. * @static
  831. */ public static function terminate()
  832. {
  833. /** @var \Illuminate\Foundation\Application $instance */
  834. $instance->terminate();
  835. }
  836. /**
  837. * Get the service providers that have been loaded.
  838. *
  839. * @return array<string, bool>
  840. * @static
  841. */ public static function getLoadedProviders()
  842. {
  843. /** @var \Illuminate\Foundation\Application $instance */
  844. return $instance->getLoadedProviders();
  845. }
  846. /**
  847. * Determine if the given service provider is loaded.
  848. *
  849. * @param string $provider
  850. * @return bool
  851. * @static
  852. */ public static function providerIsLoaded($provider)
  853. {
  854. /** @var \Illuminate\Foundation\Application $instance */
  855. return $instance->providerIsLoaded($provider);
  856. }
  857. /**
  858. * Get the application's deferred services.
  859. *
  860. * @return array
  861. * @static
  862. */ public static function getDeferredServices()
  863. {
  864. /** @var \Illuminate\Foundation\Application $instance */
  865. return $instance->getDeferredServices();
  866. }
  867. /**
  868. * Set the application's deferred services.
  869. *
  870. * @param array $services
  871. * @return void
  872. * @static
  873. */ public static function setDeferredServices($services)
  874. {
  875. /** @var \Illuminate\Foundation\Application $instance */
  876. $instance->setDeferredServices($services);
  877. }
  878. /**
  879. * Add an array of services to the application's deferred services.
  880. *
  881. * @param array $services
  882. * @return void
  883. * @static
  884. */ public static function addDeferredServices($services)
  885. {
  886. /** @var \Illuminate\Foundation\Application $instance */
  887. $instance->addDeferredServices($services);
  888. }
  889. /**
  890. * Determine if the given service is a deferred service.
  891. *
  892. * @param string $service
  893. * @return bool
  894. * @static
  895. */ public static function isDeferredService($service)
  896. {
  897. /** @var \Illuminate\Foundation\Application $instance */
  898. return $instance->isDeferredService($service);
  899. }
  900. /**
  901. * Configure the real-time facade namespace.
  902. *
  903. * @param string $namespace
  904. * @return void
  905. * @static
  906. */ public static function provideFacades($namespace)
  907. {
  908. /** @var \Illuminate\Foundation\Application $instance */
  909. $instance->provideFacades($namespace);
  910. }
  911. /**
  912. * Get the current application locale.
  913. *
  914. * @return string
  915. * @static
  916. */ public static function getLocale()
  917. {
  918. /** @var \Illuminate\Foundation\Application $instance */
  919. return $instance->getLocale();
  920. }
  921. /**
  922. * Get the current application locale.
  923. *
  924. * @return string
  925. * @static
  926. */ public static function currentLocale()
  927. {
  928. /** @var \Illuminate\Foundation\Application $instance */
  929. return $instance->currentLocale();
  930. }
  931. /**
  932. * Get the current application fallback locale.
  933. *
  934. * @return string
  935. * @static
  936. */ public static function getFallbackLocale()
  937. {
  938. /** @var \Illuminate\Foundation\Application $instance */
  939. return $instance->getFallbackLocale();
  940. }
  941. /**
  942. * Set the current application locale.
  943. *
  944. * @param string $locale
  945. * @return void
  946. * @static
  947. */ public static function setLocale($locale)
  948. {
  949. /** @var \Illuminate\Foundation\Application $instance */
  950. $instance->setLocale($locale);
  951. }
  952. /**
  953. * Set the current application fallback locale.
  954. *
  955. * @param string $fallbackLocale
  956. * @return void
  957. * @static
  958. */ public static function setFallbackLocale($fallbackLocale)
  959. {
  960. /** @var \Illuminate\Foundation\Application $instance */
  961. $instance->setFallbackLocale($fallbackLocale);
  962. }
  963. /**
  964. * Determine if the application locale is the given locale.
  965. *
  966. * @param string $locale
  967. * @return bool
  968. * @static
  969. */ public static function isLocale($locale)
  970. {
  971. /** @var \Illuminate\Foundation\Application $instance */
  972. return $instance->isLocale($locale);
  973. }
  974. /**
  975. * Register the core class aliases in the container.
  976. *
  977. * @return void
  978. * @static
  979. */ public static function registerCoreContainerAliases()
  980. {
  981. /** @var \Illuminate\Foundation\Application $instance */
  982. $instance->registerCoreContainerAliases();
  983. }
  984. /**
  985. * Flush the container of all bindings and resolved instances.
  986. *
  987. * @return void
  988. * @static
  989. */ public static function flush()
  990. {
  991. /** @var \Illuminate\Foundation\Application $instance */
  992. $instance->flush();
  993. }
  994. /**
  995. * Get the application namespace.
  996. *
  997. * @return string
  998. * @throws \RuntimeException
  999. * @static
  1000. */ public static function getNamespace()
  1001. {
  1002. /** @var \Illuminate\Foundation\Application $instance */
  1003. return $instance->getNamespace();
  1004. }
  1005. /**
  1006. * Define a contextual binding.
  1007. *
  1008. * @param array|string $concrete
  1009. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  1010. * @static
  1011. */ public static function when($concrete)
  1012. { //Method inherited from \Illuminate\Container\Container
  1013. /** @var \Illuminate\Foundation\Application $instance */
  1014. return $instance->when($concrete);
  1015. }
  1016. /**
  1017. * Define a contextual binding based on an attribute.
  1018. *
  1019. * @param string $attribute
  1020. * @param \Closure $handler
  1021. * @return void
  1022. * @static
  1023. */ public static function whenHasAttribute($attribute, $handler)
  1024. { //Method inherited from \Illuminate\Container\Container
  1025. /** @var \Illuminate\Foundation\Application $instance */
  1026. $instance->whenHasAttribute($attribute, $handler);
  1027. }
  1028. /**
  1029. * Returns true if the container can return an entry for the given identifier.
  1030. *
  1031. * Returns false otherwise.
  1032. *
  1033. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  1034. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  1035. *
  1036. * @return bool
  1037. * @param string $id Identifier of the entry to look for.
  1038. * @return bool
  1039. * @static
  1040. */ public static function has($id)
  1041. { //Method inherited from \Illuminate\Container\Container
  1042. /** @var \Illuminate\Foundation\Application $instance */
  1043. return $instance->has($id);
  1044. }
  1045. /**
  1046. * Determine if the given abstract type has been resolved.
  1047. *
  1048. * @param string $abstract
  1049. * @return bool
  1050. * @static
  1051. */ public static function resolved($abstract)
  1052. { //Method inherited from \Illuminate\Container\Container
  1053. /** @var \Illuminate\Foundation\Application $instance */
  1054. return $instance->resolved($abstract);
  1055. }
  1056. /**
  1057. * Determine if a given type is shared.
  1058. *
  1059. * @param string $abstract
  1060. * @return bool
  1061. * @static
  1062. */ public static function isShared($abstract)
  1063. { //Method inherited from \Illuminate\Container\Container
  1064. /** @var \Illuminate\Foundation\Application $instance */
  1065. return $instance->isShared($abstract);
  1066. }
  1067. /**
  1068. * Determine if a given string is an alias.
  1069. *
  1070. * @param string $name
  1071. * @return bool
  1072. * @static
  1073. */ public static function isAlias($name)
  1074. { //Method inherited from \Illuminate\Container\Container
  1075. /** @var \Illuminate\Foundation\Application $instance */
  1076. return $instance->isAlias($name);
  1077. }
  1078. /**
  1079. * Register a binding with the container.
  1080. *
  1081. * @param string $abstract
  1082. * @param \Closure|string|null $concrete
  1083. * @param bool $shared
  1084. * @return void
  1085. * @throws \TypeError
  1086. * @static
  1087. */ public static function bind($abstract, $concrete = null, $shared = false)
  1088. { //Method inherited from \Illuminate\Container\Container
  1089. /** @var \Illuminate\Foundation\Application $instance */
  1090. $instance->bind($abstract, $concrete, $shared);
  1091. }
  1092. /**
  1093. * Determine if the container has a method binding.
  1094. *
  1095. * @param string $method
  1096. * @return bool
  1097. * @static
  1098. */ public static function hasMethodBinding($method)
  1099. { //Method inherited from \Illuminate\Container\Container
  1100. /** @var \Illuminate\Foundation\Application $instance */
  1101. return $instance->hasMethodBinding($method);
  1102. }
  1103. /**
  1104. * Bind a callback to resolve with Container::call.
  1105. *
  1106. * @param array|string $method
  1107. * @param \Closure $callback
  1108. * @return void
  1109. * @static
  1110. */ public static function bindMethod($method, $callback)
  1111. { //Method inherited from \Illuminate\Container\Container
  1112. /** @var \Illuminate\Foundation\Application $instance */
  1113. $instance->bindMethod($method, $callback);
  1114. }
  1115. /**
  1116. * Get the method binding for the given method.
  1117. *
  1118. * @param string $method
  1119. * @param mixed $instance
  1120. * @return mixed
  1121. * @static
  1122. */ public static function callMethodBinding($method, $instance)
  1123. { //Method inherited from \Illuminate\Container\Container
  1124. /** @var \Illuminate\Foundation\Application $instance */
  1125. return $instance->callMethodBinding($method, $instance);
  1126. }
  1127. /**
  1128. * Add a contextual binding to the container.
  1129. *
  1130. * @param string $concrete
  1131. * @param string $abstract
  1132. * @param \Closure|string $implementation
  1133. * @return void
  1134. * @static
  1135. */ public static function addContextualBinding($concrete, $abstract, $implementation)
  1136. { //Method inherited from \Illuminate\Container\Container
  1137. /** @var \Illuminate\Foundation\Application $instance */
  1138. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1139. }
  1140. /**
  1141. * Register a binding if it hasn't already been registered.
  1142. *
  1143. * @param string $abstract
  1144. * @param \Closure|string|null $concrete
  1145. * @param bool $shared
  1146. * @return void
  1147. * @static
  1148. */ public static function bindIf($abstract, $concrete = null, $shared = false)
  1149. { //Method inherited from \Illuminate\Container\Container
  1150. /** @var \Illuminate\Foundation\Application $instance */
  1151. $instance->bindIf($abstract, $concrete, $shared);
  1152. }
  1153. /**
  1154. * Register a shared binding in the container.
  1155. *
  1156. * @param string $abstract
  1157. * @param \Closure|string|null $concrete
  1158. * @return void
  1159. * @static
  1160. */ public static function singleton($abstract, $concrete = null)
  1161. { //Method inherited from \Illuminate\Container\Container
  1162. /** @var \Illuminate\Foundation\Application $instance */
  1163. $instance->singleton($abstract, $concrete);
  1164. }
  1165. /**
  1166. * Register a shared binding if it hasn't already been registered.
  1167. *
  1168. * @param string $abstract
  1169. * @param \Closure|string|null $concrete
  1170. * @return void
  1171. * @static
  1172. */ public static function singletonIf($abstract, $concrete = null)
  1173. { //Method inherited from \Illuminate\Container\Container
  1174. /** @var \Illuminate\Foundation\Application $instance */
  1175. $instance->singletonIf($abstract, $concrete);
  1176. }
  1177. /**
  1178. * Register a scoped binding in the container.
  1179. *
  1180. * @param string $abstract
  1181. * @param \Closure|string|null $concrete
  1182. * @return void
  1183. * @static
  1184. */ public static function scoped($abstract, $concrete = null)
  1185. { //Method inherited from \Illuminate\Container\Container
  1186. /** @var \Illuminate\Foundation\Application $instance */
  1187. $instance->scoped($abstract, $concrete);
  1188. }
  1189. /**
  1190. * Register a scoped binding if it hasn't already been registered.
  1191. *
  1192. * @param string $abstract
  1193. * @param \Closure|string|null $concrete
  1194. * @return void
  1195. * @static
  1196. */ public static function scopedIf($abstract, $concrete = null)
  1197. { //Method inherited from \Illuminate\Container\Container
  1198. /** @var \Illuminate\Foundation\Application $instance */
  1199. $instance->scopedIf($abstract, $concrete);
  1200. }
  1201. /**
  1202. * "Extend" an abstract type in the container.
  1203. *
  1204. * @param string $abstract
  1205. * @param \Closure $closure
  1206. * @return void
  1207. * @throws \InvalidArgumentException
  1208. * @static
  1209. */ public static function extend($abstract, $closure)
  1210. { //Method inherited from \Illuminate\Container\Container
  1211. /** @var \Illuminate\Foundation\Application $instance */
  1212. $instance->extend($abstract, $closure);
  1213. }
  1214. /**
  1215. * Register an existing instance as shared in the container.
  1216. *
  1217. * @param string $abstract
  1218. * @param mixed $instance
  1219. * @return mixed
  1220. * @static
  1221. */ public static function instance($abstract, $instance)
  1222. { //Method inherited from \Illuminate\Container\Container
  1223. /** @var \Illuminate\Foundation\Application $instance */
  1224. return $instance->instance($abstract, $instance);
  1225. }
  1226. /**
  1227. * Assign a set of tags to a given binding.
  1228. *
  1229. * @param array|string $abstracts
  1230. * @param array|mixed $tags
  1231. * @return void
  1232. * @static
  1233. */ public static function tag($abstracts, $tags)
  1234. { //Method inherited from \Illuminate\Container\Container
  1235. /** @var \Illuminate\Foundation\Application $instance */
  1236. $instance->tag($abstracts, $tags);
  1237. }
  1238. /**
  1239. * Resolve all of the bindings for a given tag.
  1240. *
  1241. * @param string $tag
  1242. * @return \Illuminate\Container\iterable
  1243. * @static
  1244. */ public static function tagged($tag)
  1245. { //Method inherited from \Illuminate\Container\Container
  1246. /** @var \Illuminate\Foundation\Application $instance */
  1247. return $instance->tagged($tag);
  1248. }
  1249. /**
  1250. * Alias a type to a different name.
  1251. *
  1252. * @param string $abstract
  1253. * @param string $alias
  1254. * @return void
  1255. * @throws \LogicException
  1256. * @static
  1257. */ public static function alias($abstract, $alias)
  1258. { //Method inherited from \Illuminate\Container\Container
  1259. /** @var \Illuminate\Foundation\Application $instance */
  1260. $instance->alias($abstract, $alias);
  1261. }
  1262. /**
  1263. * Bind a new callback to an abstract's rebind event.
  1264. *
  1265. * @param string $abstract
  1266. * @param \Closure $callback
  1267. * @return mixed
  1268. * @static
  1269. */ public static function rebinding($abstract, $callback)
  1270. { //Method inherited from \Illuminate\Container\Container
  1271. /** @var \Illuminate\Foundation\Application $instance */
  1272. return $instance->rebinding($abstract, $callback);
  1273. }
  1274. /**
  1275. * Refresh an instance on the given target and method.
  1276. *
  1277. * @param string $abstract
  1278. * @param mixed $target
  1279. * @param string $method
  1280. * @return mixed
  1281. * @static
  1282. */ public static function refresh($abstract, $target, $method)
  1283. { //Method inherited from \Illuminate\Container\Container
  1284. /** @var \Illuminate\Foundation\Application $instance */
  1285. return $instance->refresh($abstract, $target, $method);
  1286. }
  1287. /**
  1288. * Wrap the given closure such that its dependencies will be injected when executed.
  1289. *
  1290. * @param \Closure $callback
  1291. * @param array $parameters
  1292. * @return \Closure
  1293. * @static
  1294. */ public static function wrap($callback, $parameters = [])
  1295. { //Method inherited from \Illuminate\Container\Container
  1296. /** @var \Illuminate\Foundation\Application $instance */
  1297. return $instance->wrap($callback, $parameters);
  1298. }
  1299. /**
  1300. * Call the given Closure / class@method and inject its dependencies.
  1301. *
  1302. * @param callable|string $callback
  1303. * @param array<string, mixed> $parameters
  1304. * @param string|null $defaultMethod
  1305. * @return mixed
  1306. * @throws \InvalidArgumentException
  1307. * @static
  1308. */ public static function call($callback, $parameters = [], $defaultMethod = null)
  1309. { //Method inherited from \Illuminate\Container\Container
  1310. /** @var \Illuminate\Foundation\Application $instance */
  1311. return $instance->call($callback, $parameters, $defaultMethod);
  1312. }
  1313. /**
  1314. * Get a closure to resolve the given type from the container.
  1315. *
  1316. * @param string $abstract
  1317. * @return \Closure
  1318. * @static
  1319. */ public static function factory($abstract)
  1320. { //Method inherited from \Illuminate\Container\Container
  1321. /** @var \Illuminate\Foundation\Application $instance */
  1322. return $instance->factory($abstract);
  1323. }
  1324. /**
  1325. * An alias function name for make().
  1326. *
  1327. * @param string|callable $abstract
  1328. * @param array $parameters
  1329. * @return mixed
  1330. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1331. * @static
  1332. */ public static function makeWith($abstract, $parameters = [])
  1333. { //Method inherited from \Illuminate\Container\Container
  1334. /** @var \Illuminate\Foundation\Application $instance */
  1335. return $instance->makeWith($abstract, $parameters);
  1336. }
  1337. /**
  1338. * Finds an entry of the container by its identifier and returns it.
  1339. *
  1340. * @return mixed
  1341. * @param string $id Identifier of the entry to look for.
  1342. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1343. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1344. * @return mixed Entry.
  1345. * @static
  1346. */ public static function get($id)
  1347. { //Method inherited from \Illuminate\Container\Container
  1348. /** @var \Illuminate\Foundation\Application $instance */
  1349. return $instance->get($id);
  1350. }
  1351. /**
  1352. * Instantiate a concrete instance of the given type.
  1353. *
  1354. * @param \Closure|string $concrete
  1355. * @return mixed
  1356. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1357. * @throws \Illuminate\Contracts\Container\CircularDependencyException
  1358. * @static
  1359. */ public static function build($concrete)
  1360. { //Method inherited from \Illuminate\Container\Container
  1361. /** @var \Illuminate\Foundation\Application $instance */
  1362. return $instance->build($concrete);
  1363. }
  1364. /**
  1365. * Resolve a dependency based on an attribute.
  1366. *
  1367. * @param \ReflectionAttribute $attribute
  1368. * @return mixed
  1369. * @static
  1370. */ public static function resolveFromAttribute($attribute)
  1371. { //Method inherited from \Illuminate\Container\Container
  1372. /** @var \Illuminate\Foundation\Application $instance */
  1373. return $instance->resolveFromAttribute($attribute);
  1374. }
  1375. /**
  1376. * Register a new before resolving callback for all types.
  1377. *
  1378. * @param \Closure|string $abstract
  1379. * @param \Closure|null $callback
  1380. * @return void
  1381. * @static
  1382. */ public static function beforeResolving($abstract, $callback = null)
  1383. { //Method inherited from \Illuminate\Container\Container
  1384. /** @var \Illuminate\Foundation\Application $instance */
  1385. $instance->beforeResolving($abstract, $callback);
  1386. }
  1387. /**
  1388. * Register a new resolving callback.
  1389. *
  1390. * @param \Closure|string $abstract
  1391. * @param \Closure|null $callback
  1392. * @return void
  1393. * @static
  1394. */ public static function resolving($abstract, $callback = null)
  1395. { //Method inherited from \Illuminate\Container\Container
  1396. /** @var \Illuminate\Foundation\Application $instance */
  1397. $instance->resolving($abstract, $callback);
  1398. }
  1399. /**
  1400. * Register a new after resolving callback for all types.
  1401. *
  1402. * @param \Closure|string $abstract
  1403. * @param \Closure|null $callback
  1404. * @return void
  1405. * @static
  1406. */ public static function afterResolving($abstract, $callback = null)
  1407. { //Method inherited from \Illuminate\Container\Container
  1408. /** @var \Illuminate\Foundation\Application $instance */
  1409. $instance->afterResolving($abstract, $callback);
  1410. }
  1411. /**
  1412. * Register a new after resolving attribute callback for all types.
  1413. *
  1414. * @param string $attribute
  1415. * @param \Closure $callback
  1416. * @return void
  1417. * @static
  1418. */ public static function afterResolvingAttribute($attribute, $callback)
  1419. { //Method inherited from \Illuminate\Container\Container
  1420. /** @var \Illuminate\Foundation\Application $instance */
  1421. $instance->afterResolvingAttribute($attribute, $callback);
  1422. }
  1423. /**
  1424. * Fire all of the after resolving attribute callbacks.
  1425. *
  1426. * @param \ReflectionAttribute[] $attributes
  1427. * @param mixed $object
  1428. * @return void
  1429. * @static
  1430. */ public static function fireAfterResolvingAttributeCallbacks($attributes, $object)
  1431. { //Method inherited from \Illuminate\Container\Container
  1432. /** @var \Illuminate\Foundation\Application $instance */
  1433. $instance->fireAfterResolvingAttributeCallbacks($attributes, $object);
  1434. }
  1435. /**
  1436. * Get the container's bindings.
  1437. *
  1438. * @return array
  1439. * @static
  1440. */ public static function getBindings()
  1441. { //Method inherited from \Illuminate\Container\Container
  1442. /** @var \Illuminate\Foundation\Application $instance */
  1443. return $instance->getBindings();
  1444. }
  1445. /**
  1446. * Get the alias for an abstract if available.
  1447. *
  1448. * @param string $abstract
  1449. * @return string
  1450. * @static
  1451. */ public static function getAlias($abstract)
  1452. { //Method inherited from \Illuminate\Container\Container
  1453. /** @var \Illuminate\Foundation\Application $instance */
  1454. return $instance->getAlias($abstract);
  1455. }
  1456. /**
  1457. * Remove all of the extender callbacks for a given type.
  1458. *
  1459. * @param string $abstract
  1460. * @return void
  1461. * @static
  1462. */ public static function forgetExtenders($abstract)
  1463. { //Method inherited from \Illuminate\Container\Container
  1464. /** @var \Illuminate\Foundation\Application $instance */
  1465. $instance->forgetExtenders($abstract);
  1466. }
  1467. /**
  1468. * Remove a resolved instance from the instance cache.
  1469. *
  1470. * @param string $abstract
  1471. * @return void
  1472. * @static
  1473. */ public static function forgetInstance($abstract)
  1474. { //Method inherited from \Illuminate\Container\Container
  1475. /** @var \Illuminate\Foundation\Application $instance */
  1476. $instance->forgetInstance($abstract);
  1477. }
  1478. /**
  1479. * Clear all of the instances from the container.
  1480. *
  1481. * @return void
  1482. * @static
  1483. */ public static function forgetInstances()
  1484. { //Method inherited from \Illuminate\Container\Container
  1485. /** @var \Illuminate\Foundation\Application $instance */
  1486. $instance->forgetInstances();
  1487. }
  1488. /**
  1489. * Clear all of the scoped instances from the container.
  1490. *
  1491. * @return void
  1492. * @static
  1493. */ public static function forgetScopedInstances()
  1494. { //Method inherited from \Illuminate\Container\Container
  1495. /** @var \Illuminate\Foundation\Application $instance */
  1496. $instance->forgetScopedInstances();
  1497. }
  1498. /**
  1499. * Get the globally available instance of the container.
  1500. *
  1501. * @return static
  1502. * @static
  1503. */ public static function getInstance()
  1504. { //Method inherited from \Illuminate\Container\Container
  1505. return \Illuminate\Foundation\Application::getInstance();
  1506. }
  1507. /**
  1508. * Set the shared instance of the container.
  1509. *
  1510. * @param \Illuminate\Contracts\Container\Container|null $container
  1511. * @return \Illuminate\Contracts\Container\Container|static
  1512. * @static
  1513. */ public static function setInstance($container = null)
  1514. { //Method inherited from \Illuminate\Container\Container
  1515. return \Illuminate\Foundation\Application::setInstance($container);
  1516. }
  1517. /**
  1518. * Determine if a given offset exists.
  1519. *
  1520. * @param string $key
  1521. * @return bool
  1522. * @static
  1523. */ public static function offsetExists($key)
  1524. { //Method inherited from \Illuminate\Container\Container
  1525. /** @var \Illuminate\Foundation\Application $instance */
  1526. return $instance->offsetExists($key);
  1527. }
  1528. /**
  1529. * Get the value at a given offset.
  1530. *
  1531. * @param string $key
  1532. * @return mixed
  1533. * @static
  1534. */ public static function offsetGet($key)
  1535. { //Method inherited from \Illuminate\Container\Container
  1536. /** @var \Illuminate\Foundation\Application $instance */
  1537. return $instance->offsetGet($key);
  1538. }
  1539. /**
  1540. * Set the value at a given offset.
  1541. *
  1542. * @param string $key
  1543. * @param mixed $value
  1544. * @return void
  1545. * @static
  1546. */ public static function offsetSet($key, $value)
  1547. { //Method inherited from \Illuminate\Container\Container
  1548. /** @var \Illuminate\Foundation\Application $instance */
  1549. $instance->offsetSet($key, $value);
  1550. }
  1551. /**
  1552. * Unset the value at a given offset.
  1553. *
  1554. * @param string $key
  1555. * @return void
  1556. * @static
  1557. */ public static function offsetUnset($key)
  1558. { //Method inherited from \Illuminate\Container\Container
  1559. /** @var \Illuminate\Foundation\Application $instance */
  1560. $instance->offsetUnset($key);
  1561. }
  1562. /**
  1563. * Register a custom macro.
  1564. *
  1565. * @param string $name
  1566. * @param object|callable $macro
  1567. * @param-closure-this static $macro
  1568. * @return void
  1569. * @static
  1570. */ public static function macro($name, $macro)
  1571. {
  1572. \Illuminate\Foundation\Application::macro($name, $macro);
  1573. }
  1574. /**
  1575. * Mix another object into the class.
  1576. *
  1577. * @param object $mixin
  1578. * @param bool $replace
  1579. * @return void
  1580. * @throws \ReflectionException
  1581. * @static
  1582. */ public static function mixin($mixin, $replace = true)
  1583. {
  1584. \Illuminate\Foundation\Application::mixin($mixin, $replace);
  1585. }
  1586. /**
  1587. * Checks if macro is registered.
  1588. *
  1589. * @param string $name
  1590. * @return bool
  1591. * @static
  1592. */ public static function hasMacro($name)
  1593. {
  1594. return \Illuminate\Foundation\Application::hasMacro($name);
  1595. }
  1596. /**
  1597. * Flush the existing macros.
  1598. *
  1599. * @return void
  1600. * @static
  1601. */ public static function flushMacros()
  1602. {
  1603. \Illuminate\Foundation\Application::flushMacros();
  1604. }
  1605. }
  1606. /**
  1607. *
  1608. *
  1609. * @see \Illuminate\Foundation\Console\Kernel
  1610. */ class Artisan {
  1611. /**
  1612. * Re-route the Symfony command events to their Laravel counterparts.
  1613. *
  1614. * @internal
  1615. * @return \Illuminate\Foundation\Console\Kernel
  1616. * @static
  1617. */ public static function rerouteSymfonyCommandEvents()
  1618. {
  1619. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1620. return $instance->rerouteSymfonyCommandEvents();
  1621. }
  1622. /**
  1623. * Run the console application.
  1624. *
  1625. * @param \Symfony\Component\Console\Input\InputInterface $input
  1626. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1627. * @return int
  1628. * @static
  1629. */ public static function handle($input, $output = null)
  1630. {
  1631. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1632. return $instance->handle($input, $output);
  1633. }
  1634. /**
  1635. * Terminate the application.
  1636. *
  1637. * @param \Symfony\Component\Console\Input\InputInterface $input
  1638. * @param int $status
  1639. * @return void
  1640. * @static
  1641. */ public static function terminate($input, $status)
  1642. {
  1643. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1644. $instance->terminate($input, $status);
  1645. }
  1646. /**
  1647. * Register a callback to be invoked when the command lifecycle duration exceeds a given amount of time.
  1648. *
  1649. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  1650. * @param callable $handler
  1651. * @return void
  1652. * @static
  1653. */ public static function whenCommandLifecycleIsLongerThan($threshold, $handler)
  1654. {
  1655. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1656. $instance->whenCommandLifecycleIsLongerThan($threshold, $handler);
  1657. }
  1658. /**
  1659. * When the command being handled started.
  1660. *
  1661. * @return \Illuminate\Support\Carbon|null
  1662. * @static
  1663. */ public static function commandStartedAt()
  1664. {
  1665. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1666. return $instance->commandStartedAt();
  1667. }
  1668. /**
  1669. * Resolve a console schedule instance.
  1670. *
  1671. * @return \Illuminate\Console\Scheduling\Schedule
  1672. * @static
  1673. */ public static function resolveConsoleSchedule()
  1674. {
  1675. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1676. return $instance->resolveConsoleSchedule();
  1677. }
  1678. /**
  1679. * Register a Closure based command with the application.
  1680. *
  1681. * @param string $signature
  1682. * @param \Closure $callback
  1683. * @return \Illuminate\Foundation\Console\ClosureCommand
  1684. * @static
  1685. */ public static function command($signature, $callback)
  1686. {
  1687. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1688. return $instance->command($signature, $callback);
  1689. }
  1690. /**
  1691. * Register the given command with the console application.
  1692. *
  1693. * @param \Symfony\Component\Console\Command\Command $command
  1694. * @return void
  1695. * @static
  1696. */ public static function registerCommand($command)
  1697. {
  1698. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1699. $instance->registerCommand($command);
  1700. }
  1701. /**
  1702. * Run an Artisan console command by name.
  1703. *
  1704. * @param string $command
  1705. * @param array $parameters
  1706. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1707. * @return int
  1708. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1709. * @static
  1710. */ public static function call($command, $parameters = [], $outputBuffer = null)
  1711. {
  1712. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1713. return $instance->call($command, $parameters, $outputBuffer);
  1714. }
  1715. /**
  1716. * Queue the given console command.
  1717. *
  1718. * @param string $command
  1719. * @param array $parameters
  1720. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1721. * @static
  1722. */ public static function queue($command, $parameters = [])
  1723. {
  1724. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1725. return $instance->queue($command, $parameters);
  1726. }
  1727. /**
  1728. * Get all of the commands registered with the console.
  1729. *
  1730. * @return array
  1731. * @static
  1732. */ public static function all()
  1733. {
  1734. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1735. return $instance->all();
  1736. }
  1737. /**
  1738. * Get the output for the last run command.
  1739. *
  1740. * @return string
  1741. * @static
  1742. */ public static function output()
  1743. {
  1744. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1745. return $instance->output();
  1746. }
  1747. /**
  1748. * Bootstrap the application for artisan commands.
  1749. *
  1750. * @return void
  1751. * @static
  1752. */ public static function bootstrap()
  1753. {
  1754. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1755. $instance->bootstrap();
  1756. }
  1757. /**
  1758. * Bootstrap the application without booting service providers.
  1759. *
  1760. * @return void
  1761. * @static
  1762. */ public static function bootstrapWithoutBootingProviders()
  1763. {
  1764. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1765. $instance->bootstrapWithoutBootingProviders();
  1766. }
  1767. /**
  1768. * Set the Artisan application instance.
  1769. *
  1770. * @param \Illuminate\Console\Application|null $artisan
  1771. * @return void
  1772. * @static
  1773. */ public static function setArtisan($artisan)
  1774. {
  1775. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1776. $instance->setArtisan($artisan);
  1777. }
  1778. /**
  1779. * Set the Artisan commands provided by the application.
  1780. *
  1781. * @param array $commands
  1782. * @return \Illuminate\Foundation\Console\Kernel
  1783. * @static
  1784. */ public static function addCommands($commands)
  1785. {
  1786. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1787. return $instance->addCommands($commands);
  1788. }
  1789. /**
  1790. * Set the paths that should have their Artisan commands automatically discovered.
  1791. *
  1792. * @param array $paths
  1793. * @return \Illuminate\Foundation\Console\Kernel
  1794. * @static
  1795. */ public static function addCommandPaths($paths)
  1796. {
  1797. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1798. return $instance->addCommandPaths($paths);
  1799. }
  1800. /**
  1801. * Set the paths that should have their Artisan "routes" automatically discovered.
  1802. *
  1803. * @param array $paths
  1804. * @return \Illuminate\Foundation\Console\Kernel
  1805. * @static
  1806. */ public static function addCommandRoutePaths($paths)
  1807. {
  1808. /** @var \Illuminate\Foundation\Console\Kernel $instance */
  1809. return $instance->addCommandRoutePaths($paths);
  1810. }
  1811. }
  1812. /**
  1813. *
  1814. *
  1815. * @see \Illuminate\Auth\AuthManager
  1816. * @see \Illuminate\Auth\SessionGuard
  1817. */ class Auth {
  1818. /**
  1819. * Attempt to get the guard from the local cache.
  1820. *
  1821. * @param string|null $name
  1822. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1823. * @static
  1824. */ public static function guard($name = null)
  1825. {
  1826. /** @var \Illuminate\Auth\AuthManager $instance */
  1827. return $instance->guard($name);
  1828. }
  1829. /**
  1830. * Create a session based authentication guard.
  1831. *
  1832. * @param string $name
  1833. * @param array $config
  1834. * @return \Illuminate\Auth\SessionGuard
  1835. * @static
  1836. */ public static function createSessionDriver($name, $config)
  1837. {
  1838. /** @var \Illuminate\Auth\AuthManager $instance */
  1839. return $instance->createSessionDriver($name, $config);
  1840. }
  1841. /**
  1842. * Create a token based authentication guard.
  1843. *
  1844. * @param string $name
  1845. * @param array $config
  1846. * @return \Illuminate\Auth\TokenGuard
  1847. * @static
  1848. */ public static function createTokenDriver($name, $config)
  1849. {
  1850. /** @var \Illuminate\Auth\AuthManager $instance */
  1851. return $instance->createTokenDriver($name, $config);
  1852. }
  1853. /**
  1854. * Get the default authentication driver name.
  1855. *
  1856. * @return string
  1857. * @static
  1858. */ public static function getDefaultDriver()
  1859. {
  1860. /** @var \Illuminate\Auth\AuthManager $instance */
  1861. return $instance->getDefaultDriver();
  1862. }
  1863. /**
  1864. * Set the default guard driver the factory should serve.
  1865. *
  1866. * @param string $name
  1867. * @return void
  1868. * @static
  1869. */ public static function shouldUse($name)
  1870. {
  1871. /** @var \Illuminate\Auth\AuthManager $instance */
  1872. $instance->shouldUse($name);
  1873. }
  1874. /**
  1875. * Set the default authentication driver name.
  1876. *
  1877. * @param string $name
  1878. * @return void
  1879. * @static
  1880. */ public static function setDefaultDriver($name)
  1881. {
  1882. /** @var \Illuminate\Auth\AuthManager $instance */
  1883. $instance->setDefaultDriver($name);
  1884. }
  1885. /**
  1886. * Register a new callback based request guard.
  1887. *
  1888. * @param string $driver
  1889. * @param callable $callback
  1890. * @return \Illuminate\Auth\AuthManager
  1891. * @static
  1892. */ public static function viaRequest($driver, $callback)
  1893. {
  1894. /** @var \Illuminate\Auth\AuthManager $instance */
  1895. return $instance->viaRequest($driver, $callback);
  1896. }
  1897. /**
  1898. * Get the user resolver callback.
  1899. *
  1900. * @return \Closure
  1901. * @static
  1902. */ public static function userResolver()
  1903. {
  1904. /** @var \Illuminate\Auth\AuthManager $instance */
  1905. return $instance->userResolver();
  1906. }
  1907. /**
  1908. * Set the callback to be used to resolve users.
  1909. *
  1910. * @param \Closure $userResolver
  1911. * @return \Illuminate\Auth\AuthManager
  1912. * @static
  1913. */ public static function resolveUsersUsing($userResolver)
  1914. {
  1915. /** @var \Illuminate\Auth\AuthManager $instance */
  1916. return $instance->resolveUsersUsing($userResolver);
  1917. }
  1918. /**
  1919. * Register a custom driver creator Closure.
  1920. *
  1921. * @param string $driver
  1922. * @param \Closure $callback
  1923. * @return \Illuminate\Auth\AuthManager
  1924. * @static
  1925. */ public static function extend($driver, $callback)
  1926. {
  1927. /** @var \Illuminate\Auth\AuthManager $instance */
  1928. return $instance->extend($driver, $callback);
  1929. }
  1930. /**
  1931. * Register a custom provider creator Closure.
  1932. *
  1933. * @param string $name
  1934. * @param \Closure $callback
  1935. * @return \Illuminate\Auth\AuthManager
  1936. * @static
  1937. */ public static function provider($name, $callback)
  1938. {
  1939. /** @var \Illuminate\Auth\AuthManager $instance */
  1940. return $instance->provider($name, $callback);
  1941. }
  1942. /**
  1943. * Determines if any guards have already been resolved.
  1944. *
  1945. * @return bool
  1946. * @static
  1947. */ public static function hasResolvedGuards()
  1948. {
  1949. /** @var \Illuminate\Auth\AuthManager $instance */
  1950. return $instance->hasResolvedGuards();
  1951. }
  1952. /**
  1953. * Forget all of the resolved guard instances.
  1954. *
  1955. * @return \Illuminate\Auth\AuthManager
  1956. * @static
  1957. */ public static function forgetGuards()
  1958. {
  1959. /** @var \Illuminate\Auth\AuthManager $instance */
  1960. return $instance->forgetGuards();
  1961. }
  1962. /**
  1963. * Set the application instance used by the manager.
  1964. *
  1965. * @param \Illuminate\Contracts\Foundation\Application $app
  1966. * @return \Illuminate\Auth\AuthManager
  1967. * @static
  1968. */ public static function setApplication($app)
  1969. {
  1970. /** @var \Illuminate\Auth\AuthManager $instance */
  1971. return $instance->setApplication($app);
  1972. }
  1973. /**
  1974. * Create the user provider implementation for the driver.
  1975. *
  1976. * @param string|null $provider
  1977. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1978. * @throws \InvalidArgumentException
  1979. * @static
  1980. */ public static function createUserProvider($provider = null)
  1981. {
  1982. /** @var \Illuminate\Auth\AuthManager $instance */
  1983. return $instance->createUserProvider($provider);
  1984. }
  1985. /**
  1986. * Get the default user provider name.
  1987. *
  1988. * @return string
  1989. * @static
  1990. */ public static function getDefaultUserProvider()
  1991. {
  1992. /** @var \Illuminate\Auth\AuthManager $instance */
  1993. return $instance->getDefaultUserProvider();
  1994. }
  1995. /**
  1996. * Get the currently authenticated user.
  1997. *
  1998. * @return \App\Models\User|null
  1999. * @static
  2000. */ public static function user()
  2001. {
  2002. /** @var \Illuminate\Auth\SessionGuard $instance */
  2003. return $instance->user();
  2004. }
  2005. /**
  2006. * Get the ID for the currently authenticated user.
  2007. *
  2008. * @return int|string|null
  2009. * @static
  2010. */ public static function id()
  2011. {
  2012. /** @var \Illuminate\Auth\SessionGuard $instance */
  2013. return $instance->id();
  2014. }
  2015. /**
  2016. * Log a user into the application without sessions or cookies.
  2017. *
  2018. * @param array $credentials
  2019. * @return bool
  2020. * @static
  2021. */ public static function once($credentials = [])
  2022. {
  2023. /** @var \Illuminate\Auth\SessionGuard $instance */
  2024. return $instance->once($credentials);
  2025. }
  2026. /**
  2027. * Log the given user ID into the application without sessions or cookies.
  2028. *
  2029. * @param mixed $id
  2030. * @return \App\Models\User|false
  2031. * @static
  2032. */ public static function onceUsingId($id)
  2033. {
  2034. /** @var \Illuminate\Auth\SessionGuard $instance */
  2035. return $instance->onceUsingId($id);
  2036. }
  2037. /**
  2038. * Validate a user's credentials.
  2039. *
  2040. * @param array $credentials
  2041. * @return bool
  2042. * @static
  2043. */ public static function validate($credentials = [])
  2044. {
  2045. /** @var \Illuminate\Auth\SessionGuard $instance */
  2046. return $instance->validate($credentials);
  2047. }
  2048. /**
  2049. * Attempt to authenticate using HTTP Basic Auth.
  2050. *
  2051. * @param string $field
  2052. * @param array $extraConditions
  2053. * @return \Symfony\Component\HttpFoundation\Response|null
  2054. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  2055. * @static
  2056. */ public static function basic($field = 'email', $extraConditions = [])
  2057. {
  2058. /** @var \Illuminate\Auth\SessionGuard $instance */
  2059. return $instance->basic($field, $extraConditions);
  2060. }
  2061. /**
  2062. * Perform a stateless HTTP Basic login attempt.
  2063. *
  2064. * @param string $field
  2065. * @param array $extraConditions
  2066. * @return \Symfony\Component\HttpFoundation\Response|null
  2067. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  2068. * @static
  2069. */ public static function onceBasic($field = 'email', $extraConditions = [])
  2070. {
  2071. /** @var \Illuminate\Auth\SessionGuard $instance */
  2072. return $instance->onceBasic($field, $extraConditions);
  2073. }
  2074. /**
  2075. * Attempt to authenticate a user using the given credentials.
  2076. *
  2077. * @param array $credentials
  2078. * @param bool $remember
  2079. * @return bool
  2080. * @static
  2081. */ public static function attempt($credentials = [], $remember = false)
  2082. {
  2083. /** @var \Illuminate\Auth\SessionGuard $instance */
  2084. return $instance->attempt($credentials, $remember);
  2085. }
  2086. /**
  2087. * Attempt to authenticate a user with credentials and additional callbacks.
  2088. *
  2089. * @param array $credentials
  2090. * @param array|callable|null $callbacks
  2091. * @param bool $remember
  2092. * @return bool
  2093. * @static
  2094. */ public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
  2095. {
  2096. /** @var \Illuminate\Auth\SessionGuard $instance */
  2097. return $instance->attemptWhen($credentials, $callbacks, $remember);
  2098. }
  2099. /**
  2100. * Log the given user ID into the application.
  2101. *
  2102. * @param mixed $id
  2103. * @param bool $remember
  2104. * @return \App\Models\User|false
  2105. * @static
  2106. */ public static function loginUsingId($id, $remember = false)
  2107. {
  2108. /** @var \Illuminate\Auth\SessionGuard $instance */
  2109. return $instance->loginUsingId($id, $remember);
  2110. }
  2111. /**
  2112. * Log a user into the application.
  2113. *
  2114. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2115. * @param bool $remember
  2116. * @return void
  2117. * @static
  2118. */ public static function login($user, $remember = false)
  2119. {
  2120. /** @var \Illuminate\Auth\SessionGuard $instance */
  2121. $instance->login($user, $remember);
  2122. }
  2123. /**
  2124. * Log the user out of the application.
  2125. *
  2126. * @return void
  2127. * @static
  2128. */ public static function logout()
  2129. {
  2130. /** @var \Illuminate\Auth\SessionGuard $instance */
  2131. $instance->logout();
  2132. }
  2133. /**
  2134. * Log the user out of the application on their current device only.
  2135. *
  2136. * This method does not cycle the "remember" token.
  2137. *
  2138. * @return void
  2139. * @static
  2140. */ public static function logoutCurrentDevice()
  2141. {
  2142. /** @var \Illuminate\Auth\SessionGuard $instance */
  2143. $instance->logoutCurrentDevice();
  2144. }
  2145. /**
  2146. * Invalidate other sessions for the current user.
  2147. *
  2148. * The application must be using the AuthenticateSession middleware.
  2149. *
  2150. * @param string $password
  2151. * @return \App\Models\User|null
  2152. * @throws \Illuminate\Auth\AuthenticationException
  2153. * @static
  2154. */ public static function logoutOtherDevices($password)
  2155. {
  2156. /** @var \Illuminate\Auth\SessionGuard $instance */
  2157. return $instance->logoutOtherDevices($password);
  2158. }
  2159. /**
  2160. * Register an authentication attempt event listener.
  2161. *
  2162. * @param mixed $callback
  2163. * @return void
  2164. * @static
  2165. */ public static function attempting($callback)
  2166. {
  2167. /** @var \Illuminate\Auth\SessionGuard $instance */
  2168. $instance->attempting($callback);
  2169. }
  2170. /**
  2171. * Get the last user we attempted to authenticate.
  2172. *
  2173. * @return \App\Models\User
  2174. * @static
  2175. */ public static function getLastAttempted()
  2176. {
  2177. /** @var \Illuminate\Auth\SessionGuard $instance */
  2178. return $instance->getLastAttempted();
  2179. }
  2180. /**
  2181. * Get a unique identifier for the auth session value.
  2182. *
  2183. * @return string
  2184. * @static
  2185. */ public static function getName()
  2186. {
  2187. /** @var \Illuminate\Auth\SessionGuard $instance */
  2188. return $instance->getName();
  2189. }
  2190. /**
  2191. * Get the name of the cookie used to store the "recaller".
  2192. *
  2193. * @return string
  2194. * @static
  2195. */ public static function getRecallerName()
  2196. {
  2197. /** @var \Illuminate\Auth\SessionGuard $instance */
  2198. return $instance->getRecallerName();
  2199. }
  2200. /**
  2201. * Determine if the user was authenticated via "remember me" cookie.
  2202. *
  2203. * @return bool
  2204. * @static
  2205. */ public static function viaRemember()
  2206. {
  2207. /** @var \Illuminate\Auth\SessionGuard $instance */
  2208. return $instance->viaRemember();
  2209. }
  2210. /**
  2211. * Set the number of minutes the remember me cookie should be valid for.
  2212. *
  2213. * @param int $minutes
  2214. * @return \Illuminate\Auth\SessionGuard
  2215. * @static
  2216. */ public static function setRememberDuration($minutes)
  2217. {
  2218. /** @var \Illuminate\Auth\SessionGuard $instance */
  2219. return $instance->setRememberDuration($minutes);
  2220. }
  2221. /**
  2222. * Get the cookie creator instance used by the guard.
  2223. *
  2224. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  2225. * @throws \RuntimeException
  2226. * @static
  2227. */ public static function getCookieJar()
  2228. {
  2229. /** @var \Illuminate\Auth\SessionGuard $instance */
  2230. return $instance->getCookieJar();
  2231. }
  2232. /**
  2233. * Set the cookie creator instance used by the guard.
  2234. *
  2235. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  2236. * @return void
  2237. * @static
  2238. */ public static function setCookieJar($cookie)
  2239. {
  2240. /** @var \Illuminate\Auth\SessionGuard $instance */
  2241. $instance->setCookieJar($cookie);
  2242. }
  2243. /**
  2244. * Get the event dispatcher instance.
  2245. *
  2246. * @return \Illuminate\Contracts\Events\Dispatcher
  2247. * @static
  2248. */ public static function getDispatcher()
  2249. {
  2250. /** @var \Illuminate\Auth\SessionGuard $instance */
  2251. return $instance->getDispatcher();
  2252. }
  2253. /**
  2254. * Set the event dispatcher instance.
  2255. *
  2256. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2257. * @return void
  2258. * @static
  2259. */ public static function setDispatcher($events)
  2260. {
  2261. /** @var \Illuminate\Auth\SessionGuard $instance */
  2262. $instance->setDispatcher($events);
  2263. }
  2264. /**
  2265. * Get the session store used by the guard.
  2266. *
  2267. * @return \Illuminate\Contracts\Session\Session
  2268. * @static
  2269. */ public static function getSession()
  2270. {
  2271. /** @var \Illuminate\Auth\SessionGuard $instance */
  2272. return $instance->getSession();
  2273. }
  2274. /**
  2275. * Return the currently cached user.
  2276. *
  2277. * @return \App\Models\User|null
  2278. * @static
  2279. */ public static function getUser()
  2280. {
  2281. /** @var \Illuminate\Auth\SessionGuard $instance */
  2282. return $instance->getUser();
  2283. }
  2284. /**
  2285. * Set the current user.
  2286. *
  2287. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2288. * @return \Illuminate\Auth\SessionGuard
  2289. * @static
  2290. */ public static function setUser($user)
  2291. {
  2292. /** @var \Illuminate\Auth\SessionGuard $instance */
  2293. return $instance->setUser($user);
  2294. }
  2295. /**
  2296. * Get the current request instance.
  2297. *
  2298. * @return \Symfony\Component\HttpFoundation\Request
  2299. * @static
  2300. */ public static function getRequest()
  2301. {
  2302. /** @var \Illuminate\Auth\SessionGuard $instance */
  2303. return $instance->getRequest();
  2304. }
  2305. /**
  2306. * Set the current request instance.
  2307. *
  2308. * @param \Symfony\Component\HttpFoundation\Request $request
  2309. * @return \Illuminate\Auth\SessionGuard
  2310. * @static
  2311. */ public static function setRequest($request)
  2312. {
  2313. /** @var \Illuminate\Auth\SessionGuard $instance */
  2314. return $instance->setRequest($request);
  2315. }
  2316. /**
  2317. * Get the timebox instance used by the guard.
  2318. *
  2319. * @return \Illuminate\Support\Timebox
  2320. * @static
  2321. */ public static function getTimebox()
  2322. {
  2323. /** @var \Illuminate\Auth\SessionGuard $instance */
  2324. return $instance->getTimebox();
  2325. }
  2326. /**
  2327. * Determine if the current user is authenticated. If not, throw an exception.
  2328. *
  2329. * @return \App\Models\User
  2330. * @throws \Illuminate\Auth\AuthenticationException
  2331. * @static
  2332. */ public static function authenticate()
  2333. {
  2334. /** @var \Illuminate\Auth\SessionGuard $instance */
  2335. return $instance->authenticate();
  2336. }
  2337. /**
  2338. * Determine if the guard has a user instance.
  2339. *
  2340. * @return bool
  2341. * @static
  2342. */ public static function hasUser()
  2343. {
  2344. /** @var \Illuminate\Auth\SessionGuard $instance */
  2345. return $instance->hasUser();
  2346. }
  2347. /**
  2348. * Determine if the current user is authenticated.
  2349. *
  2350. * @return bool
  2351. * @static
  2352. */ public static function check()
  2353. {
  2354. /** @var \Illuminate\Auth\SessionGuard $instance */
  2355. return $instance->check();
  2356. }
  2357. /**
  2358. * Determine if the current user is a guest.
  2359. *
  2360. * @return bool
  2361. * @static
  2362. */ public static function guest()
  2363. {
  2364. /** @var \Illuminate\Auth\SessionGuard $instance */
  2365. return $instance->guest();
  2366. }
  2367. /**
  2368. * Forget the current user.
  2369. *
  2370. * @return \Illuminate\Auth\SessionGuard
  2371. * @static
  2372. */ public static function forgetUser()
  2373. {
  2374. /** @var \Illuminate\Auth\SessionGuard $instance */
  2375. return $instance->forgetUser();
  2376. }
  2377. /**
  2378. * Get the user provider used by the guard.
  2379. *
  2380. * @return \Illuminate\Contracts\Auth\UserProvider
  2381. * @static
  2382. */ public static function getProvider()
  2383. {
  2384. /** @var \Illuminate\Auth\SessionGuard $instance */
  2385. return $instance->getProvider();
  2386. }
  2387. /**
  2388. * Set the user provider used by the guard.
  2389. *
  2390. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2391. * @return void
  2392. * @static
  2393. */ public static function setProvider($provider)
  2394. {
  2395. /** @var \Illuminate\Auth\SessionGuard $instance */
  2396. $instance->setProvider($provider);
  2397. }
  2398. /**
  2399. * Register a custom macro.
  2400. *
  2401. * @param string $name
  2402. * @param object|callable $macro
  2403. * @param-closure-this static $macro
  2404. * @return void
  2405. * @static
  2406. */ public static function macro($name, $macro)
  2407. {
  2408. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2409. }
  2410. /**
  2411. * Mix another object into the class.
  2412. *
  2413. * @param object $mixin
  2414. * @param bool $replace
  2415. * @return void
  2416. * @throws \ReflectionException
  2417. * @static
  2418. */ public static function mixin($mixin, $replace = true)
  2419. {
  2420. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2421. }
  2422. /**
  2423. * Checks if macro is registered.
  2424. *
  2425. * @param string $name
  2426. * @return bool
  2427. * @static
  2428. */ public static function hasMacro($name)
  2429. {
  2430. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2431. }
  2432. /**
  2433. * Flush the existing macros.
  2434. *
  2435. * @return void
  2436. * @static
  2437. */ public static function flushMacros()
  2438. {
  2439. \Illuminate\Auth\SessionGuard::flushMacros();
  2440. }
  2441. }
  2442. /**
  2443. *
  2444. *
  2445. * @see \Illuminate\View\Compilers\BladeCompiler
  2446. */ class Blade {
  2447. /**
  2448. * Compile the view at the given path.
  2449. *
  2450. * @param string|null $path
  2451. * @return void
  2452. * @static
  2453. */ public static function compile($path = null)
  2454. {
  2455. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2456. $instance->compile($path);
  2457. }
  2458. /**
  2459. * Get the path currently being compiled.
  2460. *
  2461. * @return string
  2462. * @static
  2463. */ public static function getPath()
  2464. {
  2465. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2466. return $instance->getPath();
  2467. }
  2468. /**
  2469. * Set the path currently being compiled.
  2470. *
  2471. * @param string $path
  2472. * @return void
  2473. * @static
  2474. */ public static function setPath($path)
  2475. {
  2476. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2477. $instance->setPath($path);
  2478. }
  2479. /**
  2480. * Compile the given Blade template contents.
  2481. *
  2482. * @param string $value
  2483. * @return string
  2484. * @static
  2485. */ public static function compileString($value)
  2486. {
  2487. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2488. return $instance->compileString($value);
  2489. }
  2490. /**
  2491. * Evaluate and render a Blade string to HTML.
  2492. *
  2493. * @param string $string
  2494. * @param array $data
  2495. * @param bool $deleteCachedView
  2496. * @return string
  2497. * @static
  2498. */ public static function render($string, $data = [], $deleteCachedView = false)
  2499. {
  2500. return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
  2501. }
  2502. /**
  2503. * Render a component instance to HTML.
  2504. *
  2505. * @param \Illuminate\View\Component $component
  2506. * @return string
  2507. * @static
  2508. */ public static function renderComponent($component)
  2509. {
  2510. return \Illuminate\View\Compilers\BladeCompiler::renderComponent($component);
  2511. }
  2512. /**
  2513. * Strip the parentheses from the given expression.
  2514. *
  2515. * @param string $expression
  2516. * @return string
  2517. * @static
  2518. */ public static function stripParentheses($expression)
  2519. {
  2520. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2521. return $instance->stripParentheses($expression);
  2522. }
  2523. /**
  2524. * Register a custom Blade compiler.
  2525. *
  2526. * @param callable $compiler
  2527. * @return void
  2528. * @static
  2529. */ public static function extend($compiler)
  2530. {
  2531. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2532. $instance->extend($compiler);
  2533. }
  2534. /**
  2535. * Get the extensions used by the compiler.
  2536. *
  2537. * @return array
  2538. * @static
  2539. */ public static function getExtensions()
  2540. {
  2541. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2542. return $instance->getExtensions();
  2543. }
  2544. /**
  2545. * Register an "if" statement directive.
  2546. *
  2547. * @param string $name
  2548. * @param callable $callback
  2549. * @return void
  2550. * @static
  2551. */ public static function if($name, $callback)
  2552. {
  2553. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2554. $instance->if($name, $callback);
  2555. }
  2556. /**
  2557. * Check the result of a condition.
  2558. *
  2559. * @param string $name
  2560. * @param mixed $parameters
  2561. * @return bool
  2562. * @static
  2563. */ public static function check($name, ...$parameters)
  2564. {
  2565. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2566. return $instance->check($name, ...$parameters);
  2567. }
  2568. /**
  2569. * Register a class-based component alias directive.
  2570. *
  2571. * @param string $class
  2572. * @param string|null $alias
  2573. * @param string $prefix
  2574. * @return void
  2575. * @static
  2576. */ public static function component($class, $alias = null, $prefix = '')
  2577. {
  2578. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2579. $instance->component($class, $alias, $prefix);
  2580. }
  2581. /**
  2582. * Register an array of class-based components.
  2583. *
  2584. * @param array $components
  2585. * @param string $prefix
  2586. * @return void
  2587. * @static
  2588. */ public static function components($components, $prefix = '')
  2589. {
  2590. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2591. $instance->components($components, $prefix);
  2592. }
  2593. /**
  2594. * Get the registered class component aliases.
  2595. *
  2596. * @return array
  2597. * @static
  2598. */ public static function getClassComponentAliases()
  2599. {
  2600. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2601. return $instance->getClassComponentAliases();
  2602. }
  2603. /**
  2604. * Register a new anonymous component path.
  2605. *
  2606. * @param string $path
  2607. * @param string|null $prefix
  2608. * @return void
  2609. * @static
  2610. */ public static function anonymousComponentPath($path, $prefix = null)
  2611. {
  2612. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2613. $instance->anonymousComponentPath($path, $prefix);
  2614. }
  2615. /**
  2616. * Register an anonymous component namespace.
  2617. *
  2618. * @param string $directory
  2619. * @param string|null $prefix
  2620. * @return void
  2621. * @static
  2622. */ public static function anonymousComponentNamespace($directory, $prefix = null)
  2623. {
  2624. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2625. $instance->anonymousComponentNamespace($directory, $prefix);
  2626. }
  2627. /**
  2628. * Register a class-based component namespace.
  2629. *
  2630. * @param string $namespace
  2631. * @param string $prefix
  2632. * @return void
  2633. * @static
  2634. */ public static function componentNamespace($namespace, $prefix)
  2635. {
  2636. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2637. $instance->componentNamespace($namespace, $prefix);
  2638. }
  2639. /**
  2640. * Get the registered anonymous component paths.
  2641. *
  2642. * @return array
  2643. * @static
  2644. */ public static function getAnonymousComponentPaths()
  2645. {
  2646. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2647. return $instance->getAnonymousComponentPaths();
  2648. }
  2649. /**
  2650. * Get the registered anonymous component namespaces.
  2651. *
  2652. * @return array
  2653. * @static
  2654. */ public static function getAnonymousComponentNamespaces()
  2655. {
  2656. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2657. return $instance->getAnonymousComponentNamespaces();
  2658. }
  2659. /**
  2660. * Get the registered class component namespaces.
  2661. *
  2662. * @return array
  2663. * @static
  2664. */ public static function getClassComponentNamespaces()
  2665. {
  2666. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2667. return $instance->getClassComponentNamespaces();
  2668. }
  2669. /**
  2670. * Register a component alias directive.
  2671. *
  2672. * @param string $path
  2673. * @param string|null $alias
  2674. * @return void
  2675. * @static
  2676. */ public static function aliasComponent($path, $alias = null)
  2677. {
  2678. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2679. $instance->aliasComponent($path, $alias);
  2680. }
  2681. /**
  2682. * Register an include alias directive.
  2683. *
  2684. * @param string $path
  2685. * @param string|null $alias
  2686. * @return void
  2687. * @static
  2688. */ public static function include($path, $alias = null)
  2689. {
  2690. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2691. $instance->include($path, $alias);
  2692. }
  2693. /**
  2694. * Register an include alias directive.
  2695. *
  2696. * @param string $path
  2697. * @param string|null $alias
  2698. * @return void
  2699. * @static
  2700. */ public static function aliasInclude($path, $alias = null)
  2701. {
  2702. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2703. $instance->aliasInclude($path, $alias);
  2704. }
  2705. /**
  2706. * Register a handler for custom directives, binding the handler to the compiler.
  2707. *
  2708. * @param string $name
  2709. * @param callable $handler
  2710. * @return void
  2711. * @throws \InvalidArgumentException
  2712. * @static
  2713. */ public static function bindDirective($name, $handler)
  2714. {
  2715. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2716. $instance->bindDirective($name, $handler);
  2717. }
  2718. /**
  2719. * Register a handler for custom directives.
  2720. *
  2721. * @param string $name
  2722. * @param callable $handler
  2723. * @param bool $bind
  2724. * @return void
  2725. * @throws \InvalidArgumentException
  2726. * @static
  2727. */ public static function directive($name, $handler, $bind = false)
  2728. {
  2729. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2730. $instance->directive($name, $handler, $bind);
  2731. }
  2732. /**
  2733. * Get the list of custom directives.
  2734. *
  2735. * @return array
  2736. * @static
  2737. */ public static function getCustomDirectives()
  2738. {
  2739. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2740. return $instance->getCustomDirectives();
  2741. }
  2742. /**
  2743. * Indicate that the following callable should be used to prepare strings for compilation.
  2744. *
  2745. * @param callable $callback
  2746. * @return \Illuminate\View\Compilers\BladeCompiler
  2747. * @static
  2748. */ public static function prepareStringsForCompilationUsing($callback)
  2749. {
  2750. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2751. return $instance->prepareStringsForCompilationUsing($callback);
  2752. }
  2753. /**
  2754. * Register a new precompiler.
  2755. *
  2756. * @param callable $precompiler
  2757. * @return void
  2758. * @static
  2759. */ public static function precompiler($precompiler)
  2760. {
  2761. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2762. $instance->precompiler($precompiler);
  2763. }
  2764. /**
  2765. * Set the echo format to be used by the compiler.
  2766. *
  2767. * @param string $format
  2768. * @return void
  2769. * @static
  2770. */ public static function setEchoFormat($format)
  2771. {
  2772. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2773. $instance->setEchoFormat($format);
  2774. }
  2775. /**
  2776. * Set the "echo" format to double encode entities.
  2777. *
  2778. * @return void
  2779. * @static
  2780. */ public static function withDoubleEncoding()
  2781. {
  2782. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2783. $instance->withDoubleEncoding();
  2784. }
  2785. /**
  2786. * Set the "echo" format to not double encode entities.
  2787. *
  2788. * @return void
  2789. * @static
  2790. */ public static function withoutDoubleEncoding()
  2791. {
  2792. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2793. $instance->withoutDoubleEncoding();
  2794. }
  2795. /**
  2796. * Indicate that component tags should not be compiled.
  2797. *
  2798. * @return void
  2799. * @static
  2800. */ public static function withoutComponentTags()
  2801. {
  2802. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2803. $instance->withoutComponentTags();
  2804. }
  2805. /**
  2806. * Get the path to the compiled version of a view.
  2807. *
  2808. * @param string $path
  2809. * @return string
  2810. * @static
  2811. */ public static function getCompiledPath($path)
  2812. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2813. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2814. return $instance->getCompiledPath($path);
  2815. }
  2816. /**
  2817. * Determine if the view at the given path is expired.
  2818. *
  2819. * @param string $path
  2820. * @return bool
  2821. * @throws \ErrorException
  2822. * @static
  2823. */ public static function isExpired($path)
  2824. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2825. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2826. return $instance->isExpired($path);
  2827. }
  2828. /**
  2829. * Get a new component hash for a component name.
  2830. *
  2831. * @param string $component
  2832. * @return string
  2833. * @static
  2834. */ public static function newComponentHash($component)
  2835. {
  2836. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2837. }
  2838. /**
  2839. * Compile a class component opening.
  2840. *
  2841. * @param string $component
  2842. * @param string $alias
  2843. * @param string $data
  2844. * @param string $hash
  2845. * @return string
  2846. * @static
  2847. */ public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2848. {
  2849. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2850. }
  2851. /**
  2852. * Compile the end-component statements into valid PHP.
  2853. *
  2854. * @return string
  2855. * @static
  2856. */ public static function compileEndComponentClass()
  2857. {
  2858. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2859. return $instance->compileEndComponentClass();
  2860. }
  2861. /**
  2862. * Sanitize the given component attribute value.
  2863. *
  2864. * @param mixed $value
  2865. * @return mixed
  2866. * @static
  2867. */ public static function sanitizeComponentAttribute($value)
  2868. {
  2869. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2870. }
  2871. /**
  2872. * Compile an end-once block into valid PHP.
  2873. *
  2874. * @return string
  2875. * @static
  2876. */ public static function compileEndOnce()
  2877. {
  2878. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2879. return $instance->compileEndOnce();
  2880. }
  2881. /**
  2882. * Add a handler to be executed before echoing a given class.
  2883. *
  2884. * @param string|callable $class
  2885. * @param callable|null $handler
  2886. * @return void
  2887. * @static
  2888. */ public static function stringable($class, $handler = null)
  2889. {
  2890. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2891. $instance->stringable($class, $handler);
  2892. }
  2893. /**
  2894. * Compile Blade echos into valid PHP.
  2895. *
  2896. * @param string $value
  2897. * @return string
  2898. * @static
  2899. */ public static function compileEchos($value)
  2900. {
  2901. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2902. return $instance->compileEchos($value);
  2903. }
  2904. /**
  2905. * Apply the echo handler for the value if it exists.
  2906. *
  2907. * @param string $value
  2908. * @return string
  2909. * @static
  2910. */ public static function applyEchoHandler($value)
  2911. {
  2912. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2913. return $instance->applyEchoHandler($value);
  2914. }
  2915. }
  2916. /**
  2917. *
  2918. *
  2919. * @method static mixed auth(\Illuminate\Http\Request $request)
  2920. * @method static mixed validAuthenticationResponse(\Illuminate\Http\Request $request, mixed $result)
  2921. * @method static void broadcast(array $channels, string $event, array $payload = [])
  2922. * @method static array|null resolveAuthenticatedUser(\Illuminate\Http\Request $request)
  2923. * @method static void resolveAuthenticatedUserUsing(\Closure $callback)
  2924. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(\Illuminate\Contracts\Broadcasting\HasBroadcastChannel|string $channel, callable|string $callback, array $options = [])
  2925. * @method static \Illuminate\Support\Collection getChannels()
  2926. * @see \Illuminate\Broadcasting\BroadcastManager
  2927. * @see \Illuminate\Broadcasting\Broadcasters\Broadcaster
  2928. */ class Broadcast {
  2929. /**
  2930. * Register the routes for handling broadcast channel authentication and sockets.
  2931. *
  2932. * @param array|null $attributes
  2933. * @return void
  2934. * @static
  2935. */ public static function routes($attributes = null)
  2936. {
  2937. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2938. $instance->routes($attributes);
  2939. }
  2940. /**
  2941. * Register the routes for handling broadcast user authentication.
  2942. *
  2943. * @param array|null $attributes
  2944. * @return void
  2945. * @static
  2946. */ public static function userRoutes($attributes = null)
  2947. {
  2948. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2949. $instance->userRoutes($attributes);
  2950. }
  2951. /**
  2952. * Register the routes for handling broadcast authentication and sockets.
  2953. *
  2954. * Alias of "routes" method.
  2955. *
  2956. * @param array|null $attributes
  2957. * @return void
  2958. * @static
  2959. */ public static function channelRoutes($attributes = null)
  2960. {
  2961. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2962. $instance->channelRoutes($attributes);
  2963. }
  2964. /**
  2965. * Get the socket ID for the given request.
  2966. *
  2967. * @param \Illuminate\Http\Request|null $request
  2968. * @return string|null
  2969. * @static
  2970. */ public static function socket($request = null)
  2971. {
  2972. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2973. return $instance->socket($request);
  2974. }
  2975. /**
  2976. * Begin sending an anonymous broadcast to the given channels.
  2977. *
  2978. * @static
  2979. */ public static function on($channels)
  2980. {
  2981. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2982. return $instance->on($channels);
  2983. }
  2984. /**
  2985. * Begin sending an anonymous broadcast to the given private channels.
  2986. *
  2987. * @static
  2988. */ public static function private($channel)
  2989. {
  2990. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2991. return $instance->private($channel);
  2992. }
  2993. /**
  2994. * Begin sending an anonymous broadcast to the given presence channels.
  2995. *
  2996. * @static
  2997. */ public static function presence($channel)
  2998. {
  2999. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3000. return $instance->presence($channel);
  3001. }
  3002. /**
  3003. * Begin broadcasting an event.
  3004. *
  3005. * @param mixed|null $event
  3006. * @return \Illuminate\Broadcasting\PendingBroadcast
  3007. * @static
  3008. */ public static function event($event = null)
  3009. {
  3010. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3011. return $instance->event($event);
  3012. }
  3013. /**
  3014. * Queue the given event for broadcast.
  3015. *
  3016. * @param mixed $event
  3017. * @return void
  3018. * @static
  3019. */ public static function queue($event)
  3020. {
  3021. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3022. $instance->queue($event);
  3023. }
  3024. /**
  3025. * Get a driver instance.
  3026. *
  3027. * @param string|null $driver
  3028. * @return mixed
  3029. * @static
  3030. */ public static function connection($driver = null)
  3031. {
  3032. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3033. return $instance->connection($driver);
  3034. }
  3035. /**
  3036. * Get a driver instance.
  3037. *
  3038. * @param string|null $name
  3039. * @return mixed
  3040. * @static
  3041. */ public static function driver($name = null)
  3042. {
  3043. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3044. return $instance->driver($name);
  3045. }
  3046. /**
  3047. * Get a Pusher instance for the given configuration.
  3048. *
  3049. * @param array $config
  3050. * @return \Pusher\Pusher
  3051. * @static
  3052. */ public static function pusher($config)
  3053. {
  3054. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3055. return $instance->pusher($config);
  3056. }
  3057. /**
  3058. * Get an Ably instance for the given configuration.
  3059. *
  3060. * @param array $config
  3061. * @return \Ably\AblyRest
  3062. * @static
  3063. */ public static function ably($config)
  3064. {
  3065. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3066. return $instance->ably($config);
  3067. }
  3068. /**
  3069. * Get the default driver name.
  3070. *
  3071. * @return string
  3072. * @static
  3073. */ public static function getDefaultDriver()
  3074. {
  3075. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3076. return $instance->getDefaultDriver();
  3077. }
  3078. /**
  3079. * Set the default driver name.
  3080. *
  3081. * @param string $name
  3082. * @return void
  3083. * @static
  3084. */ public static function setDefaultDriver($name)
  3085. {
  3086. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3087. $instance->setDefaultDriver($name);
  3088. }
  3089. /**
  3090. * Disconnect the given disk and remove from local cache.
  3091. *
  3092. * @param string|null $name
  3093. * @return void
  3094. * @static
  3095. */ public static function purge($name = null)
  3096. {
  3097. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3098. $instance->purge($name);
  3099. }
  3100. /**
  3101. * Register a custom driver creator Closure.
  3102. *
  3103. * @param string $driver
  3104. * @param \Closure $callback
  3105. * @return \Illuminate\Broadcasting\BroadcastManager
  3106. * @static
  3107. */ public static function extend($driver, $callback)
  3108. {
  3109. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3110. return $instance->extend($driver, $callback);
  3111. }
  3112. /**
  3113. * Get the application instance used by the manager.
  3114. *
  3115. * @return \Illuminate\Contracts\Foundation\Application
  3116. * @static
  3117. */ public static function getApplication()
  3118. {
  3119. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3120. return $instance->getApplication();
  3121. }
  3122. /**
  3123. * Set the application instance used by the manager.
  3124. *
  3125. * @param \Illuminate\Contracts\Foundation\Application $app
  3126. * @return \Illuminate\Broadcasting\BroadcastManager
  3127. * @static
  3128. */ public static function setApplication($app)
  3129. {
  3130. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3131. return $instance->setApplication($app);
  3132. }
  3133. /**
  3134. * Forget all of the resolved driver instances.
  3135. *
  3136. * @return \Illuminate\Broadcasting\BroadcastManager
  3137. * @static
  3138. */ public static function forgetDrivers()
  3139. {
  3140. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3141. return $instance->forgetDrivers();
  3142. }
  3143. }
  3144. /**
  3145. *
  3146. *
  3147. * @see \Illuminate\Bus\Dispatcher
  3148. * @see \Illuminate\Support\Testing\Fakes\BusFake
  3149. */ class Bus {
  3150. /**
  3151. * Dispatch a command to its appropriate handler.
  3152. *
  3153. * @param mixed $command
  3154. * @return mixed
  3155. * @static
  3156. */ public static function dispatch($command)
  3157. {
  3158. /** @var \Illuminate\Bus\Dispatcher $instance */
  3159. return $instance->dispatch($command);
  3160. }
  3161. /**
  3162. * Dispatch a command to its appropriate handler in the current process.
  3163. *
  3164. * Queueable jobs will be dispatched to the "sync" queue.
  3165. *
  3166. * @param mixed $command
  3167. * @param mixed $handler
  3168. * @return mixed
  3169. * @static
  3170. */ public static function dispatchSync($command, $handler = null)
  3171. {
  3172. /** @var \Illuminate\Bus\Dispatcher $instance */
  3173. return $instance->dispatchSync($command, $handler);
  3174. }
  3175. /**
  3176. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  3177. *
  3178. * @param mixed $command
  3179. * @param mixed $handler
  3180. * @return mixed
  3181. * @static
  3182. */ public static function dispatchNow($command, $handler = null)
  3183. {
  3184. /** @var \Illuminate\Bus\Dispatcher $instance */
  3185. return $instance->dispatchNow($command, $handler);
  3186. }
  3187. /**
  3188. * Attempt to find the batch with the given ID.
  3189. *
  3190. * @param string $batchId
  3191. * @return \Illuminate\Bus\Batch|null
  3192. * @static
  3193. */ public static function findBatch($batchId)
  3194. {
  3195. /** @var \Illuminate\Bus\Dispatcher $instance */
  3196. return $instance->findBatch($batchId);
  3197. }
  3198. /**
  3199. * Create a new batch of queueable jobs.
  3200. *
  3201. * @param \Illuminate\Support\Collection|array|mixed $jobs
  3202. * @return \Illuminate\Bus\PendingBatch
  3203. * @static
  3204. */ public static function batch($jobs)
  3205. {
  3206. /** @var \Illuminate\Bus\Dispatcher $instance */
  3207. return $instance->batch($jobs);
  3208. }
  3209. /**
  3210. * Create a new chain of queueable jobs.
  3211. *
  3212. * @param \Illuminate\Support\Collection|array $jobs
  3213. * @return \Illuminate\Foundation\Bus\PendingChain
  3214. * @static
  3215. */ public static function chain($jobs)
  3216. {
  3217. /** @var \Illuminate\Bus\Dispatcher $instance */
  3218. return $instance->chain($jobs);
  3219. }
  3220. /**
  3221. * Determine if the given command has a handler.
  3222. *
  3223. * @param mixed $command
  3224. * @return bool
  3225. * @static
  3226. */ public static function hasCommandHandler($command)
  3227. {
  3228. /** @var \Illuminate\Bus\Dispatcher $instance */
  3229. return $instance->hasCommandHandler($command);
  3230. }
  3231. /**
  3232. * Retrieve the handler for a command.
  3233. *
  3234. * @param mixed $command
  3235. * @return bool|mixed
  3236. * @static
  3237. */ public static function getCommandHandler($command)
  3238. {
  3239. /** @var \Illuminate\Bus\Dispatcher $instance */
  3240. return $instance->getCommandHandler($command);
  3241. }
  3242. /**
  3243. * Dispatch a command to its appropriate handler behind a queue.
  3244. *
  3245. * @param mixed $command
  3246. * @return mixed
  3247. * @throws \RuntimeException
  3248. * @static
  3249. */ public static function dispatchToQueue($command)
  3250. {
  3251. /** @var \Illuminate\Bus\Dispatcher $instance */
  3252. return $instance->dispatchToQueue($command);
  3253. }
  3254. /**
  3255. * Dispatch a command to its appropriate handler after the current process.
  3256. *
  3257. * @param mixed $command
  3258. * @param mixed $handler
  3259. * @return void
  3260. * @static
  3261. */ public static function dispatchAfterResponse($command, $handler = null)
  3262. {
  3263. /** @var \Illuminate\Bus\Dispatcher $instance */
  3264. $instance->dispatchAfterResponse($command, $handler);
  3265. }
  3266. /**
  3267. * Set the pipes through which commands should be piped before dispatching.
  3268. *
  3269. * @param array $pipes
  3270. * @return \Illuminate\Bus\Dispatcher
  3271. * @static
  3272. */ public static function pipeThrough($pipes)
  3273. {
  3274. /** @var \Illuminate\Bus\Dispatcher $instance */
  3275. return $instance->pipeThrough($pipes);
  3276. }
  3277. /**
  3278. * Map a command to a handler.
  3279. *
  3280. * @param array $map
  3281. * @return \Illuminate\Bus\Dispatcher
  3282. * @static
  3283. */ public static function map($map)
  3284. {
  3285. /** @var \Illuminate\Bus\Dispatcher $instance */
  3286. return $instance->map($map);
  3287. }
  3288. /**
  3289. * Specify the jobs that should be dispatched instead of faked.
  3290. *
  3291. * @param array|string $jobsToDispatch
  3292. * @return \Illuminate\Support\Testing\Fakes\BusFake
  3293. * @static
  3294. */ public static function except($jobsToDispatch)
  3295. {
  3296. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3297. return $instance->except($jobsToDispatch);
  3298. }
  3299. /**
  3300. * Assert if a job was dispatched based on a truth-test callback.
  3301. *
  3302. * @param string|\Closure $command
  3303. * @param callable|int|null $callback
  3304. * @return void
  3305. * @static
  3306. */ public static function assertDispatched($command, $callback = null)
  3307. {
  3308. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3309. $instance->assertDispatched($command, $callback);
  3310. }
  3311. /**
  3312. * Assert if a job was pushed a number of times.
  3313. *
  3314. * @param string|\Closure $command
  3315. * @param int $times
  3316. * @return void
  3317. * @static
  3318. */ public static function assertDispatchedTimes($command, $times = 1)
  3319. {
  3320. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3321. $instance->assertDispatchedTimes($command, $times);
  3322. }
  3323. /**
  3324. * Determine if a job was dispatched based on a truth-test callback.
  3325. *
  3326. * @param string|\Closure $command
  3327. * @param callable|null $callback
  3328. * @return void
  3329. * @static
  3330. */ public static function assertNotDispatched($command, $callback = null)
  3331. {
  3332. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3333. $instance->assertNotDispatched($command, $callback);
  3334. }
  3335. /**
  3336. * Assert that no jobs were dispatched.
  3337. *
  3338. * @return void
  3339. * @static
  3340. */ public static function assertNothingDispatched()
  3341. {
  3342. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3343. $instance->assertNothingDispatched();
  3344. }
  3345. /**
  3346. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3347. *
  3348. * @param string|\Closure $command
  3349. * @param callable|int|null $callback
  3350. * @return void
  3351. * @static
  3352. */ public static function assertDispatchedSync($command, $callback = null)
  3353. {
  3354. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3355. $instance->assertDispatchedSync($command, $callback);
  3356. }
  3357. /**
  3358. * Assert if a job was pushed synchronously a number of times.
  3359. *
  3360. * @param string|\Closure $command
  3361. * @param int $times
  3362. * @return void
  3363. * @static
  3364. */ public static function assertDispatchedSyncTimes($command, $times = 1)
  3365. {
  3366. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3367. $instance->assertDispatchedSyncTimes($command, $times);
  3368. }
  3369. /**
  3370. * Determine if a job was dispatched based on a truth-test callback.
  3371. *
  3372. * @param string|\Closure $command
  3373. * @param callable|null $callback
  3374. * @return void
  3375. * @static
  3376. */ public static function assertNotDispatchedSync($command, $callback = null)
  3377. {
  3378. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3379. $instance->assertNotDispatchedSync($command, $callback);
  3380. }
  3381. /**
  3382. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3383. *
  3384. * @param string|\Closure $command
  3385. * @param callable|int|null $callback
  3386. * @return void
  3387. * @static
  3388. */ public static function assertDispatchedAfterResponse($command, $callback = null)
  3389. {
  3390. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3391. $instance->assertDispatchedAfterResponse($command, $callback);
  3392. }
  3393. /**
  3394. * Assert if a job was pushed after the response was sent a number of times.
  3395. *
  3396. * @param string|\Closure $command
  3397. * @param int $times
  3398. * @return void
  3399. * @static
  3400. */ public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3401. {
  3402. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3403. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3404. }
  3405. /**
  3406. * Determine if a job was dispatched based on a truth-test callback.
  3407. *
  3408. * @param string|\Closure $command
  3409. * @param callable|null $callback
  3410. * @return void
  3411. * @static
  3412. */ public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3413. {
  3414. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3415. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3416. }
  3417. /**
  3418. * Assert if a chain of jobs was dispatched.
  3419. *
  3420. * @param array $expectedChain
  3421. * @return void
  3422. * @static
  3423. */ public static function assertChained($expectedChain)
  3424. {
  3425. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3426. $instance->assertChained($expectedChain);
  3427. }
  3428. /**
  3429. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3430. *
  3431. * @param string|\Closure $command
  3432. * @param callable|null $callback
  3433. * @return void
  3434. * @static
  3435. */ public static function assertDispatchedWithoutChain($command, $callback = null)
  3436. {
  3437. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3438. $instance->assertDispatchedWithoutChain($command, $callback);
  3439. }
  3440. /**
  3441. * Create a new assertion about a chained batch.
  3442. *
  3443. * @param \Closure $callback
  3444. * @return \Illuminate\Support\Testing\Fakes\ChainedBatchTruthTest
  3445. * @static
  3446. */ public static function chainedBatch($callback)
  3447. {
  3448. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3449. return $instance->chainedBatch($callback);
  3450. }
  3451. /**
  3452. * Assert if a batch was dispatched based on a truth-test callback.
  3453. *
  3454. * @param callable $callback
  3455. * @return void
  3456. * @static
  3457. */ public static function assertBatched($callback)
  3458. {
  3459. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3460. $instance->assertBatched($callback);
  3461. }
  3462. /**
  3463. * Assert the number of batches that have been dispatched.
  3464. *
  3465. * @param int $count
  3466. * @return void
  3467. * @static
  3468. */ public static function assertBatchCount($count)
  3469. {
  3470. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3471. $instance->assertBatchCount($count);
  3472. }
  3473. /**
  3474. * Assert that no batched jobs were dispatched.
  3475. *
  3476. * @return void
  3477. * @static
  3478. */ public static function assertNothingBatched()
  3479. {
  3480. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3481. $instance->assertNothingBatched();
  3482. }
  3483. /**
  3484. * Get all of the jobs matching a truth-test callback.
  3485. *
  3486. * @param string $command
  3487. * @param callable|null $callback
  3488. * @return \Illuminate\Support\Collection
  3489. * @static
  3490. */ public static function dispatched($command, $callback = null)
  3491. {
  3492. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3493. return $instance->dispatched($command, $callback);
  3494. }
  3495. /**
  3496. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3497. *
  3498. * @param string $command
  3499. * @param callable|null $callback
  3500. * @return \Illuminate\Support\Collection
  3501. * @static
  3502. */ public static function dispatchedSync($command, $callback = null)
  3503. {
  3504. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3505. return $instance->dispatchedSync($command, $callback);
  3506. }
  3507. /**
  3508. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3509. *
  3510. * @param string $command
  3511. * @param callable|null $callback
  3512. * @return \Illuminate\Support\Collection
  3513. * @static
  3514. */ public static function dispatchedAfterResponse($command, $callback = null)
  3515. {
  3516. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3517. return $instance->dispatchedAfterResponse($command, $callback);
  3518. }
  3519. /**
  3520. * Get all of the pending batches matching a truth-test callback.
  3521. *
  3522. * @param callable $callback
  3523. * @return \Illuminate\Support\Collection
  3524. * @static
  3525. */ public static function batched($callback)
  3526. {
  3527. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3528. return $instance->batched($callback);
  3529. }
  3530. /**
  3531. * Determine if there are any stored commands for a given class.
  3532. *
  3533. * @param string $command
  3534. * @return bool
  3535. * @static
  3536. */ public static function hasDispatched($command)
  3537. {
  3538. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3539. return $instance->hasDispatched($command);
  3540. }
  3541. /**
  3542. * Determine if there are any stored commands for a given class.
  3543. *
  3544. * @param string $command
  3545. * @return bool
  3546. * @static
  3547. */ public static function hasDispatchedSync($command)
  3548. {
  3549. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3550. return $instance->hasDispatchedSync($command);
  3551. }
  3552. /**
  3553. * Determine if there are any stored commands for a given class.
  3554. *
  3555. * @param string $command
  3556. * @return bool
  3557. * @static
  3558. */ public static function hasDispatchedAfterResponse($command)
  3559. {
  3560. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3561. return $instance->hasDispatchedAfterResponse($command);
  3562. }
  3563. /**
  3564. * Dispatch an empty job batch for testing.
  3565. *
  3566. * @param string $name
  3567. * @return \Illuminate\Bus\Batch
  3568. * @static
  3569. */ public static function dispatchFakeBatch($name = '')
  3570. {
  3571. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3572. return $instance->dispatchFakeBatch($name);
  3573. }
  3574. /**
  3575. * Record the fake pending batch dispatch.
  3576. *
  3577. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  3578. * @return \Illuminate\Bus\Batch
  3579. * @static
  3580. */ public static function recordPendingBatch($pendingBatch)
  3581. {
  3582. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3583. return $instance->recordPendingBatch($pendingBatch);
  3584. }
  3585. /**
  3586. * Specify if commands should be serialized and restored when being batched.
  3587. *
  3588. * @param bool $serializeAndRestore
  3589. * @return \Illuminate\Support\Testing\Fakes\BusFake
  3590. * @static
  3591. */ public static function serializeAndRestore($serializeAndRestore = true)
  3592. {
  3593. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3594. return $instance->serializeAndRestore($serializeAndRestore);
  3595. }
  3596. /**
  3597. * Get the batches that have been dispatched.
  3598. *
  3599. * @return array
  3600. * @static
  3601. */ public static function dispatchedBatches()
  3602. {
  3603. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3604. return $instance->dispatchedBatches();
  3605. }
  3606. }
  3607. /**
  3608. *
  3609. *
  3610. * @see \Illuminate\Cache\CacheManager
  3611. * @see \Illuminate\Cache\Repository
  3612. */ class Cache {
  3613. /**
  3614. * Get a cache store instance by name, wrapped in a repository.
  3615. *
  3616. * @param string|null $name
  3617. * @return \Illuminate\Contracts\Cache\Repository
  3618. * @static
  3619. */ public static function store($name = null)
  3620. {
  3621. /** @var \Illuminate\Cache\CacheManager $instance */
  3622. return $instance->store($name);
  3623. }
  3624. /**
  3625. * Get a cache driver instance.
  3626. *
  3627. * @param string|null $driver
  3628. * @return \Illuminate\Contracts\Cache\Repository
  3629. * @static
  3630. */ public static function driver($driver = null)
  3631. {
  3632. /** @var \Illuminate\Cache\CacheManager $instance */
  3633. return $instance->driver($driver);
  3634. }
  3635. /**
  3636. * Resolve the given store.
  3637. *
  3638. * @param string $name
  3639. * @return \Illuminate\Contracts\Cache\Repository
  3640. * @throws \InvalidArgumentException
  3641. * @static
  3642. */ public static function resolve($name)
  3643. {
  3644. /** @var \Illuminate\Cache\CacheManager $instance */
  3645. return $instance->resolve($name);
  3646. }
  3647. /**
  3648. * Create a new cache repository with the given implementation.
  3649. *
  3650. * @param \Illuminate\Contracts\Cache\Store $store
  3651. * @param array $config
  3652. * @return \Illuminate\Cache\Repository
  3653. * @static
  3654. */ public static function repository($store, $config = [])
  3655. {
  3656. /** @var \Illuminate\Cache\CacheManager $instance */
  3657. return $instance->repository($store, $config);
  3658. }
  3659. /**
  3660. * Re-set the event dispatcher on all resolved cache repositories.
  3661. *
  3662. * @return void
  3663. * @static
  3664. */ public static function refreshEventDispatcher()
  3665. {
  3666. /** @var \Illuminate\Cache\CacheManager $instance */
  3667. $instance->refreshEventDispatcher();
  3668. }
  3669. /**
  3670. * Get the default cache driver name.
  3671. *
  3672. * @return string
  3673. * @static
  3674. */ public static function getDefaultDriver()
  3675. {
  3676. /** @var \Illuminate\Cache\CacheManager $instance */
  3677. return $instance->getDefaultDriver();
  3678. }
  3679. /**
  3680. * Set the default cache driver name.
  3681. *
  3682. * @param string $name
  3683. * @return void
  3684. * @static
  3685. */ public static function setDefaultDriver($name)
  3686. {
  3687. /** @var \Illuminate\Cache\CacheManager $instance */
  3688. $instance->setDefaultDriver($name);
  3689. }
  3690. /**
  3691. * Unset the given driver instances.
  3692. *
  3693. * @param array|string|null $name
  3694. * @return \Illuminate\Cache\CacheManager
  3695. * @static
  3696. */ public static function forgetDriver($name = null)
  3697. {
  3698. /** @var \Illuminate\Cache\CacheManager $instance */
  3699. return $instance->forgetDriver($name);
  3700. }
  3701. /**
  3702. * Disconnect the given driver and remove from local cache.
  3703. *
  3704. * @param string|null $name
  3705. * @return void
  3706. * @static
  3707. */ public static function purge($name = null)
  3708. {
  3709. /** @var \Illuminate\Cache\CacheManager $instance */
  3710. $instance->purge($name);
  3711. }
  3712. /**
  3713. * Register a custom driver creator Closure.
  3714. *
  3715. * @param string $driver
  3716. * @param \Closure $callback
  3717. * @return \Illuminate\Cache\CacheManager
  3718. * @static
  3719. */ public static function extend($driver, $callback)
  3720. {
  3721. /** @var \Illuminate\Cache\CacheManager $instance */
  3722. return $instance->extend($driver, $callback);
  3723. }
  3724. /**
  3725. * Set the application instance used by the manager.
  3726. *
  3727. * @param \Illuminate\Contracts\Foundation\Application $app
  3728. * @return \Illuminate\Cache\CacheManager
  3729. * @static
  3730. */ public static function setApplication($app)
  3731. {
  3732. /** @var \Illuminate\Cache\CacheManager $instance */
  3733. return $instance->setApplication($app);
  3734. }
  3735. /**
  3736. * Determine if an item exists in the cache.
  3737. *
  3738. * @param array|string $key
  3739. * @return bool
  3740. * @static
  3741. */ public static function has($key)
  3742. {
  3743. /** @var \Illuminate\Cache\Repository $instance */
  3744. return $instance->has($key);
  3745. }
  3746. /**
  3747. * Determine if an item doesn't exist in the cache.
  3748. *
  3749. * @param string $key
  3750. * @return bool
  3751. * @static
  3752. */ public static function missing($key)
  3753. {
  3754. /** @var \Illuminate\Cache\Repository $instance */
  3755. return $instance->missing($key);
  3756. }
  3757. /**
  3758. * Retrieve an item from the cache by key.
  3759. *
  3760. * @param array|string $key
  3761. * @param mixed $default
  3762. * @return mixed
  3763. * @static
  3764. */ public static function get($key, $default = null)
  3765. {
  3766. /** @var \Illuminate\Cache\Repository $instance */
  3767. return $instance->get($key, $default);
  3768. }
  3769. /**
  3770. * Retrieve multiple items from the cache by key.
  3771. *
  3772. * Items not found in the cache will have a null value.
  3773. *
  3774. * @param array $keys
  3775. * @return array
  3776. * @static
  3777. */ public static function many($keys)
  3778. {
  3779. /** @var \Illuminate\Cache\Repository $instance */
  3780. return $instance->many($keys);
  3781. }
  3782. /**
  3783. * Obtains multiple cache items by their unique keys.
  3784. *
  3785. * @return \Illuminate\Cache\iterable
  3786. * @param \Psr\SimpleCache\iterable<string> $keys A list of keys that can be obtained in a single operation.
  3787. * @param mixed $default Default value to return for keys that do not exist.
  3788. * @return \Psr\SimpleCache\iterable<string, mixed> A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  3789. * @throws \Psr\SimpleCache\InvalidArgumentException
  3790. * MUST be thrown if $keys is neither an array nor a Traversable,
  3791. * or if any of the $keys are not a legal value.
  3792. * @static
  3793. */ public static function getMultiple($keys, $default = null)
  3794. {
  3795. /** @var \Illuminate\Cache\Repository $instance */
  3796. return $instance->getMultiple($keys, $default);
  3797. }
  3798. /**
  3799. * Retrieve an item from the cache and delete it.
  3800. *
  3801. * @param array|string $key
  3802. * @param mixed $default
  3803. * @return mixed
  3804. * @static
  3805. */ public static function pull($key, $default = null)
  3806. {
  3807. /** @var \Illuminate\Cache\Repository $instance */
  3808. return $instance->pull($key, $default);
  3809. }
  3810. /**
  3811. * Store an item in the cache.
  3812. *
  3813. * @param array|string $key
  3814. * @param mixed $value
  3815. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3816. * @return bool
  3817. * @static
  3818. */ public static function put($key, $value, $ttl = null)
  3819. {
  3820. /** @var \Illuminate\Cache\Repository $instance */
  3821. return $instance->put($key, $value, $ttl);
  3822. }
  3823. /**
  3824. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3825. *
  3826. * @return bool
  3827. * @param string $key The key of the item to store.
  3828. * @param mixed $value The value of the item to store, must be serializable.
  3829. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3830. * the driver supports TTL then the library may set a default value
  3831. * for it or let the driver take care of that.
  3832. * @return bool True on success and false on failure.
  3833. * @throws \Psr\SimpleCache\InvalidArgumentException
  3834. * MUST be thrown if the $key string is not a legal value.
  3835. * @static
  3836. */ public static function set($key, $value, $ttl = null)
  3837. {
  3838. /** @var \Illuminate\Cache\Repository $instance */
  3839. return $instance->set($key, $value, $ttl);
  3840. }
  3841. /**
  3842. * Store multiple items in the cache for a given number of seconds.
  3843. *
  3844. * @param array $values
  3845. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3846. * @return bool
  3847. * @static
  3848. */ public static function putMany($values, $ttl = null)
  3849. {
  3850. /** @var \Illuminate\Cache\Repository $instance */
  3851. return $instance->putMany($values, $ttl);
  3852. }
  3853. /**
  3854. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3855. *
  3856. * @return bool
  3857. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  3858. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3859. * the driver supports TTL then the library may set a default value
  3860. * for it or let the driver take care of that.
  3861. * @return bool True on success and false on failure.
  3862. * @throws \Psr\SimpleCache\InvalidArgumentException
  3863. * MUST be thrown if $values is neither an array nor a Traversable,
  3864. * or if any of the $values are not a legal value.
  3865. * @static
  3866. */ public static function setMultiple($values, $ttl = null)
  3867. {
  3868. /** @var \Illuminate\Cache\Repository $instance */
  3869. return $instance->setMultiple($values, $ttl);
  3870. }
  3871. /**
  3872. * Store an item in the cache if the key does not exist.
  3873. *
  3874. * @param string $key
  3875. * @param mixed $value
  3876. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3877. * @return bool
  3878. * @static
  3879. */ public static function add($key, $value, $ttl = null)
  3880. {
  3881. /** @var \Illuminate\Cache\Repository $instance */
  3882. return $instance->add($key, $value, $ttl);
  3883. }
  3884. /**
  3885. * Increment the value of an item in the cache.
  3886. *
  3887. * @param string $key
  3888. * @param mixed $value
  3889. * @return int|bool
  3890. * @static
  3891. */ public static function increment($key, $value = 1)
  3892. {
  3893. /** @var \Illuminate\Cache\Repository $instance */
  3894. return $instance->increment($key, $value);
  3895. }
  3896. /**
  3897. * Decrement the value of an item in the cache.
  3898. *
  3899. * @param string $key
  3900. * @param mixed $value
  3901. * @return int|bool
  3902. * @static
  3903. */ public static function decrement($key, $value = 1)
  3904. {
  3905. /** @var \Illuminate\Cache\Repository $instance */
  3906. return $instance->decrement($key, $value);
  3907. }
  3908. /**
  3909. * Store an item in the cache indefinitely.
  3910. *
  3911. * @param string $key
  3912. * @param mixed $value
  3913. * @return bool
  3914. * @static
  3915. */ public static function forever($key, $value)
  3916. {
  3917. /** @var \Illuminate\Cache\Repository $instance */
  3918. return $instance->forever($key, $value);
  3919. }
  3920. /**
  3921. * Get an item from the cache, or execute the given Closure and store the result.
  3922. *
  3923. * @template TCacheValue
  3924. * @param string $key
  3925. * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
  3926. * @param \Closure(): TCacheValue $callback
  3927. * @return \Illuminate\Cache\TCacheValue
  3928. * @static
  3929. */ public static function remember($key, $ttl, $callback)
  3930. {
  3931. /** @var \Illuminate\Cache\Repository $instance */
  3932. return $instance->remember($key, $ttl, $callback);
  3933. }
  3934. /**
  3935. * Get an item from the cache, or execute the given Closure and store the result forever.
  3936. *
  3937. * @template TCacheValue
  3938. * @param string $key
  3939. * @param \Closure(): TCacheValue $callback
  3940. * @return \Illuminate\Cache\TCacheValue
  3941. * @static
  3942. */ public static function sear($key, $callback)
  3943. {
  3944. /** @var \Illuminate\Cache\Repository $instance */
  3945. return $instance->sear($key, $callback);
  3946. }
  3947. /**
  3948. * Get an item from the cache, or execute the given Closure and store the result forever.
  3949. *
  3950. * @template TCacheValue
  3951. * @param string $key
  3952. * @param \Closure(): TCacheValue $callback
  3953. * @return \Illuminate\Cache\TCacheValue
  3954. * @static
  3955. */ public static function rememberForever($key, $callback)
  3956. {
  3957. /** @var \Illuminate\Cache\Repository $instance */
  3958. return $instance->rememberForever($key, $callback);
  3959. }
  3960. /**
  3961. * Retrieve an item from the cache by key, refreshing it in the background if it is stale.
  3962. *
  3963. * @template TCacheValue
  3964. * @param string $key
  3965. * @param \Illuminate\Cache\array{ 0: \DateTimeInterface|\DateInterval|int, 1: \DateTimeInterface|\DateInterval|int } $ttl
  3966. * @param (callable(): TCacheValue) $callback
  3967. * @param \Illuminate\Cache\array{ seconds?: int, owner?: string }|null $lock
  3968. * @return \Illuminate\Cache\TCacheValue
  3969. * @static
  3970. */ public static function flexible($key, $ttl, $callback, $lock = null)
  3971. {
  3972. /** @var \Illuminate\Cache\Repository $instance */
  3973. return $instance->flexible($key, $ttl, $callback, $lock);
  3974. }
  3975. /**
  3976. * Remove an item from the cache.
  3977. *
  3978. * @param string $key
  3979. * @return bool
  3980. * @static
  3981. */ public static function forget($key)
  3982. {
  3983. /** @var \Illuminate\Cache\Repository $instance */
  3984. return $instance->forget($key);
  3985. }
  3986. /**
  3987. * Delete an item from the cache by its unique key.
  3988. *
  3989. * @return bool
  3990. * @param string $key The unique cache key of the item to delete.
  3991. * @return bool True if the item was successfully removed. False if there was an error.
  3992. * @throws \Psr\SimpleCache\InvalidArgumentException
  3993. * MUST be thrown if the $key string is not a legal value.
  3994. * @static
  3995. */ public static function delete($key)
  3996. {
  3997. /** @var \Illuminate\Cache\Repository $instance */
  3998. return $instance->delete($key);
  3999. }
  4000. /**
  4001. * Deletes multiple cache items in a single operation.
  4002. *
  4003. * @return bool
  4004. * @param \Psr\SimpleCache\iterable<string> $keys A list of string-based keys to be deleted.
  4005. * @return bool True if the items were successfully removed. False if there was an error.
  4006. * @throws \Psr\SimpleCache\InvalidArgumentException
  4007. * MUST be thrown if $keys is neither an array nor a Traversable,
  4008. * or if any of the $keys are not a legal value.
  4009. * @static
  4010. */ public static function deleteMultiple($keys)
  4011. {
  4012. /** @var \Illuminate\Cache\Repository $instance */
  4013. return $instance->deleteMultiple($keys);
  4014. }
  4015. /**
  4016. * Wipes clean the entire cache's keys.
  4017. *
  4018. * @return bool
  4019. * @return bool True on success and false on failure.
  4020. * @static
  4021. */ public static function clear()
  4022. {
  4023. /** @var \Illuminate\Cache\Repository $instance */
  4024. return $instance->clear();
  4025. }
  4026. /**
  4027. * Begin executing a new tags operation if the store supports it.
  4028. *
  4029. * @param array|mixed $names
  4030. * @return \Illuminate\Cache\TaggedCache
  4031. * @throws \BadMethodCallException
  4032. * @static
  4033. */ public static function tags($names)
  4034. {
  4035. /** @var \Illuminate\Cache\Repository $instance */
  4036. return $instance->tags($names);
  4037. }
  4038. /**
  4039. * Determine if the current store supports tags.
  4040. *
  4041. * @return bool
  4042. * @static
  4043. */ public static function supportsTags()
  4044. {
  4045. /** @var \Illuminate\Cache\Repository $instance */
  4046. return $instance->supportsTags();
  4047. }
  4048. /**
  4049. * Get the default cache time.
  4050. *
  4051. * @return int|null
  4052. * @static
  4053. */ public static function getDefaultCacheTime()
  4054. {
  4055. /** @var \Illuminate\Cache\Repository $instance */
  4056. return $instance->getDefaultCacheTime();
  4057. }
  4058. /**
  4059. * Set the default cache time in seconds.
  4060. *
  4061. * @param int|null $seconds
  4062. * @return \Illuminate\Cache\Repository
  4063. * @static
  4064. */ public static function setDefaultCacheTime($seconds)
  4065. {
  4066. /** @var \Illuminate\Cache\Repository $instance */
  4067. return $instance->setDefaultCacheTime($seconds);
  4068. }
  4069. /**
  4070. * Get the cache store implementation.
  4071. *
  4072. * @return \Illuminate\Contracts\Cache\Store
  4073. * @static
  4074. */ public static function getStore()
  4075. {
  4076. /** @var \Illuminate\Cache\Repository $instance */
  4077. return $instance->getStore();
  4078. }
  4079. /**
  4080. * Set the cache store implementation.
  4081. *
  4082. * @param \Illuminate\Contracts\Cache\Store $store
  4083. * @return static
  4084. * @static
  4085. */ public static function setStore($store)
  4086. {
  4087. /** @var \Illuminate\Cache\Repository $instance */
  4088. return $instance->setStore($store);
  4089. }
  4090. /**
  4091. * Get the event dispatcher instance.
  4092. *
  4093. * @return \Illuminate\Contracts\Events\Dispatcher|null
  4094. * @static
  4095. */ public static function getEventDispatcher()
  4096. {
  4097. /** @var \Illuminate\Cache\Repository $instance */
  4098. return $instance->getEventDispatcher();
  4099. }
  4100. /**
  4101. * Set the event dispatcher instance.
  4102. *
  4103. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4104. * @return void
  4105. * @static
  4106. */ public static function setEventDispatcher($events)
  4107. {
  4108. /** @var \Illuminate\Cache\Repository $instance */
  4109. $instance->setEventDispatcher($events);
  4110. }
  4111. /**
  4112. * Determine if a cached value exists.
  4113. *
  4114. * @param string $key
  4115. * @return bool
  4116. * @static
  4117. */ public static function offsetExists($key)
  4118. {
  4119. /** @var \Illuminate\Cache\Repository $instance */
  4120. return $instance->offsetExists($key);
  4121. }
  4122. /**
  4123. * Retrieve an item from the cache by key.
  4124. *
  4125. * @param string $key
  4126. * @return mixed
  4127. * @static
  4128. */ public static function offsetGet($key)
  4129. {
  4130. /** @var \Illuminate\Cache\Repository $instance */
  4131. return $instance->offsetGet($key);
  4132. }
  4133. /**
  4134. * Store an item in the cache for the default time.
  4135. *
  4136. * @param string $key
  4137. * @param mixed $value
  4138. * @return void
  4139. * @static
  4140. */ public static function offsetSet($key, $value)
  4141. {
  4142. /** @var \Illuminate\Cache\Repository $instance */
  4143. $instance->offsetSet($key, $value);
  4144. }
  4145. /**
  4146. * Remove an item from the cache.
  4147. *
  4148. * @param string $key
  4149. * @return void
  4150. * @static
  4151. */ public static function offsetUnset($key)
  4152. {
  4153. /** @var \Illuminate\Cache\Repository $instance */
  4154. $instance->offsetUnset($key);
  4155. }
  4156. /**
  4157. * Register a custom macro.
  4158. *
  4159. * @param string $name
  4160. * @param object|callable $macro
  4161. * @param-closure-this static $macro
  4162. * @return void
  4163. * @static
  4164. */ public static function macro($name, $macro)
  4165. {
  4166. \Illuminate\Cache\Repository::macro($name, $macro);
  4167. }
  4168. /**
  4169. * Mix another object into the class.
  4170. *
  4171. * @param object $mixin
  4172. * @param bool $replace
  4173. * @return void
  4174. * @throws \ReflectionException
  4175. * @static
  4176. */ public static function mixin($mixin, $replace = true)
  4177. {
  4178. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  4179. }
  4180. /**
  4181. * Checks if macro is registered.
  4182. *
  4183. * @param string $name
  4184. * @return bool
  4185. * @static
  4186. */ public static function hasMacro($name)
  4187. {
  4188. return \Illuminate\Cache\Repository::hasMacro($name);
  4189. }
  4190. /**
  4191. * Flush the existing macros.
  4192. *
  4193. * @return void
  4194. * @static
  4195. */ public static function flushMacros()
  4196. {
  4197. \Illuminate\Cache\Repository::flushMacros();
  4198. }
  4199. /**
  4200. * Dynamically handle calls to the class.
  4201. *
  4202. * @param string $method
  4203. * @param array $parameters
  4204. * @return mixed
  4205. * @throws \BadMethodCallException
  4206. * @static
  4207. */ public static function macroCall($method, $parameters)
  4208. {
  4209. /** @var \Illuminate\Cache\Repository $instance */
  4210. return $instance->macroCall($method, $parameters);
  4211. }
  4212. /**
  4213. * Get a lock instance.
  4214. *
  4215. * @param string $name
  4216. * @param int $seconds
  4217. * @param string|null $owner
  4218. * @return \Illuminate\Contracts\Cache\Lock
  4219. * @static
  4220. */ public static function lock($name, $seconds = 0, $owner = null)
  4221. {
  4222. /** @var \Illuminate\Cache\RedisStore $instance */
  4223. return $instance->lock($name, $seconds, $owner);
  4224. }
  4225. /**
  4226. * Restore a lock instance using the owner identifier.
  4227. *
  4228. * @param string $name
  4229. * @param string $owner
  4230. * @return \Illuminate\Contracts\Cache\Lock
  4231. * @static
  4232. */ public static function restoreLock($name, $owner)
  4233. {
  4234. /** @var \Illuminate\Cache\RedisStore $instance */
  4235. return $instance->restoreLock($name, $owner);
  4236. }
  4237. /**
  4238. * Remove all items from the cache.
  4239. *
  4240. * @return bool
  4241. * @static
  4242. */ public static function flush()
  4243. {
  4244. /** @var \Illuminate\Cache\RedisStore $instance */
  4245. return $instance->flush();
  4246. }
  4247. /**
  4248. * Remove all expired tag set entries.
  4249. *
  4250. * @return void
  4251. * @static
  4252. */ public static function flushStaleTags()
  4253. {
  4254. /** @var \Illuminate\Cache\RedisStore $instance */
  4255. $instance->flushStaleTags();
  4256. }
  4257. /**
  4258. * Get the Redis connection instance.
  4259. *
  4260. * @return \Illuminate\Redis\Connections\Connection
  4261. * @static
  4262. */ public static function connection()
  4263. {
  4264. /** @var \Illuminate\Cache\RedisStore $instance */
  4265. return $instance->connection();
  4266. }
  4267. /**
  4268. * Get the Redis connection instance that should be used to manage locks.
  4269. *
  4270. * @return \Illuminate\Redis\Connections\Connection
  4271. * @static
  4272. */ public static function lockConnection()
  4273. {
  4274. /** @var \Illuminate\Cache\RedisStore $instance */
  4275. return $instance->lockConnection();
  4276. }
  4277. /**
  4278. * Specify the name of the connection that should be used to store data.
  4279. *
  4280. * @param string $connection
  4281. * @return void
  4282. * @static
  4283. */ public static function setConnection($connection)
  4284. {
  4285. /** @var \Illuminate\Cache\RedisStore $instance */
  4286. $instance->setConnection($connection);
  4287. }
  4288. /**
  4289. * Specify the name of the connection that should be used to manage locks.
  4290. *
  4291. * @param string $connection
  4292. * @return \Illuminate\Cache\RedisStore
  4293. * @static
  4294. */ public static function setLockConnection($connection)
  4295. {
  4296. /** @var \Illuminate\Cache\RedisStore $instance */
  4297. return $instance->setLockConnection($connection);
  4298. }
  4299. /**
  4300. * Get the Redis database instance.
  4301. *
  4302. * @return \Illuminate\Contracts\Redis\Factory
  4303. * @static
  4304. */ public static function getRedis()
  4305. {
  4306. /** @var \Illuminate\Cache\RedisStore $instance */
  4307. return $instance->getRedis();
  4308. }
  4309. /**
  4310. * Get the cache key prefix.
  4311. *
  4312. * @return string
  4313. * @static
  4314. */ public static function getPrefix()
  4315. {
  4316. /** @var \Illuminate\Cache\RedisStore $instance */
  4317. return $instance->getPrefix();
  4318. }
  4319. /**
  4320. * Set the cache key prefix.
  4321. *
  4322. * @param string $prefix
  4323. * @return void
  4324. * @static
  4325. */ public static function setPrefix($prefix)
  4326. {
  4327. /** @var \Illuminate\Cache\RedisStore $instance */
  4328. $instance->setPrefix($prefix);
  4329. }
  4330. }
  4331. /**
  4332. *
  4333. *
  4334. * @see \Illuminate\Config\Repository
  4335. */ class Config {
  4336. /**
  4337. * Determine if the given configuration value exists.
  4338. *
  4339. * @param string $key
  4340. * @return bool
  4341. * @static
  4342. */ public static function has($key)
  4343. {
  4344. /** @var \Illuminate\Config\Repository $instance */
  4345. return $instance->has($key);
  4346. }
  4347. /**
  4348. * Get the specified configuration value.
  4349. *
  4350. * @param array|string $key
  4351. * @param mixed $default
  4352. * @return mixed
  4353. * @static
  4354. */ public static function get($key, $default = null)
  4355. {
  4356. /** @var \Illuminate\Config\Repository $instance */
  4357. return $instance->get($key, $default);
  4358. }
  4359. /**
  4360. * Get many configuration values.
  4361. *
  4362. * @param array $keys
  4363. * @return array
  4364. * @static
  4365. */ public static function getMany($keys)
  4366. {
  4367. /** @var \Illuminate\Config\Repository $instance */
  4368. return $instance->getMany($keys);
  4369. }
  4370. /**
  4371. * Get the specified string configuration value.
  4372. *
  4373. * @param string $key
  4374. * @param (\Closure():(string|null))|string|null $default
  4375. * @return string
  4376. * @static
  4377. */ public static function string($key, $default = null)
  4378. {
  4379. /** @var \Illuminate\Config\Repository $instance */
  4380. return $instance->string($key, $default);
  4381. }
  4382. /**
  4383. * Get the specified integer configuration value.
  4384. *
  4385. * @param string $key
  4386. * @param (\Closure():(int|null))|int|null $default
  4387. * @return int
  4388. * @static
  4389. */ public static function integer($key, $default = null)
  4390. {
  4391. /** @var \Illuminate\Config\Repository $instance */
  4392. return $instance->integer($key, $default);
  4393. }
  4394. /**
  4395. * Get the specified float configuration value.
  4396. *
  4397. * @param string $key
  4398. * @param (\Closure():(float|null))|float|null $default
  4399. * @return float
  4400. * @static
  4401. */ public static function float($key, $default = null)
  4402. {
  4403. /** @var \Illuminate\Config\Repository $instance */
  4404. return $instance->float($key, $default);
  4405. }
  4406. /**
  4407. * Get the specified boolean configuration value.
  4408. *
  4409. * @param string $key
  4410. * @param (\Closure():(bool|null))|bool|null $default
  4411. * @return bool
  4412. * @static
  4413. */ public static function boolean($key, $default = null)
  4414. {
  4415. /** @var \Illuminate\Config\Repository $instance */
  4416. return $instance->boolean($key, $default);
  4417. }
  4418. /**
  4419. * Get the specified array configuration value.
  4420. *
  4421. * @param string $key
  4422. * @param (\Closure():(array<array-key, mixed>|null))|array<array-key, mixed>|null $default
  4423. * @return array<array-key, mixed>
  4424. * @static
  4425. */ public static function array($key, $default = null)
  4426. {
  4427. /** @var \Illuminate\Config\Repository $instance */
  4428. return $instance->array($key, $default);
  4429. }
  4430. /**
  4431. * Set a given configuration value.
  4432. *
  4433. * @param array|string $key
  4434. * @param mixed $value
  4435. * @return void
  4436. * @static
  4437. */ public static function set($key, $value = null)
  4438. {
  4439. /** @var \Illuminate\Config\Repository $instance */
  4440. $instance->set($key, $value);
  4441. }
  4442. /**
  4443. * Prepend a value onto an array configuration value.
  4444. *
  4445. * @param string $key
  4446. * @param mixed $value
  4447. * @return void
  4448. * @static
  4449. */ public static function prepend($key, $value)
  4450. {
  4451. /** @var \Illuminate\Config\Repository $instance */
  4452. $instance->prepend($key, $value);
  4453. }
  4454. /**
  4455. * Push a value onto an array configuration value.
  4456. *
  4457. * @param string $key
  4458. * @param mixed $value
  4459. * @return void
  4460. * @static
  4461. */ public static function push($key, $value)
  4462. {
  4463. /** @var \Illuminate\Config\Repository $instance */
  4464. $instance->push($key, $value);
  4465. }
  4466. /**
  4467. * Get all of the configuration items for the application.
  4468. *
  4469. * @return array
  4470. * @static
  4471. */ public static function all()
  4472. {
  4473. /** @var \Illuminate\Config\Repository $instance */
  4474. return $instance->all();
  4475. }
  4476. /**
  4477. * Determine if the given configuration option exists.
  4478. *
  4479. * @param string $key
  4480. * @return bool
  4481. * @static
  4482. */ public static function offsetExists($key)
  4483. {
  4484. /** @var \Illuminate\Config\Repository $instance */
  4485. return $instance->offsetExists($key);
  4486. }
  4487. /**
  4488. * Get a configuration option.
  4489. *
  4490. * @param string $key
  4491. * @return mixed
  4492. * @static
  4493. */ public static function offsetGet($key)
  4494. {
  4495. /** @var \Illuminate\Config\Repository $instance */
  4496. return $instance->offsetGet($key);
  4497. }
  4498. /**
  4499. * Set a configuration option.
  4500. *
  4501. * @param string $key
  4502. * @param mixed $value
  4503. * @return void
  4504. * @static
  4505. */ public static function offsetSet($key, $value)
  4506. {
  4507. /** @var \Illuminate\Config\Repository $instance */
  4508. $instance->offsetSet($key, $value);
  4509. }
  4510. /**
  4511. * Unset a configuration option.
  4512. *
  4513. * @param string $key
  4514. * @return void
  4515. * @static
  4516. */ public static function offsetUnset($key)
  4517. {
  4518. /** @var \Illuminate\Config\Repository $instance */
  4519. $instance->offsetUnset($key);
  4520. }
  4521. /**
  4522. * Register a custom macro.
  4523. *
  4524. * @param string $name
  4525. * @param object|callable $macro
  4526. * @param-closure-this static $macro
  4527. * @return void
  4528. * @static
  4529. */ public static function macro($name, $macro)
  4530. {
  4531. \Illuminate\Config\Repository::macro($name, $macro);
  4532. }
  4533. /**
  4534. * Mix another object into the class.
  4535. *
  4536. * @param object $mixin
  4537. * @param bool $replace
  4538. * @return void
  4539. * @throws \ReflectionException
  4540. * @static
  4541. */ public static function mixin($mixin, $replace = true)
  4542. {
  4543. \Illuminate\Config\Repository::mixin($mixin, $replace);
  4544. }
  4545. /**
  4546. * Checks if macro is registered.
  4547. *
  4548. * @param string $name
  4549. * @return bool
  4550. * @static
  4551. */ public static function hasMacro($name)
  4552. {
  4553. return \Illuminate\Config\Repository::hasMacro($name);
  4554. }
  4555. /**
  4556. * Flush the existing macros.
  4557. *
  4558. * @return void
  4559. * @static
  4560. */ public static function flushMacros()
  4561. {
  4562. \Illuminate\Config\Repository::flushMacros();
  4563. }
  4564. }
  4565. /**
  4566. *
  4567. *
  4568. * @see \Illuminate\Cookie\CookieJar
  4569. */ class Cookie {
  4570. /**
  4571. * Create a new cookie instance.
  4572. *
  4573. * @param string $name
  4574. * @param string $value
  4575. * @param int $minutes
  4576. * @param string|null $path
  4577. * @param string|null $domain
  4578. * @param bool|null $secure
  4579. * @param bool $httpOnly
  4580. * @param bool $raw
  4581. * @param string|null $sameSite
  4582. * @return \Symfony\Component\HttpFoundation\Cookie
  4583. * @static
  4584. */ public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4585. {
  4586. /** @var \Illuminate\Cookie\CookieJar $instance */
  4587. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4588. }
  4589. /**
  4590. * Create a cookie that lasts "forever" (400 days).
  4591. *
  4592. * @param string $name
  4593. * @param string $value
  4594. * @param string|null $path
  4595. * @param string|null $domain
  4596. * @param bool|null $secure
  4597. * @param bool $httpOnly
  4598. * @param bool $raw
  4599. * @param string|null $sameSite
  4600. * @return \Symfony\Component\HttpFoundation\Cookie
  4601. * @static
  4602. */ public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4603. {
  4604. /** @var \Illuminate\Cookie\CookieJar $instance */
  4605. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4606. }
  4607. /**
  4608. * Expire the given cookie.
  4609. *
  4610. * @param string $name
  4611. * @param string|null $path
  4612. * @param string|null $domain
  4613. * @return \Symfony\Component\HttpFoundation\Cookie
  4614. * @static
  4615. */ public static function forget($name, $path = null, $domain = null)
  4616. {
  4617. /** @var \Illuminate\Cookie\CookieJar $instance */
  4618. return $instance->forget($name, $path, $domain);
  4619. }
  4620. /**
  4621. * Determine if a cookie has been queued.
  4622. *
  4623. * @param string $key
  4624. * @param string|null $path
  4625. * @return bool
  4626. * @static
  4627. */ public static function hasQueued($key, $path = null)
  4628. {
  4629. /** @var \Illuminate\Cookie\CookieJar $instance */
  4630. return $instance->hasQueued($key, $path);
  4631. }
  4632. /**
  4633. * Get a queued cookie instance.
  4634. *
  4635. * @param string $key
  4636. * @param mixed $default
  4637. * @param string|null $path
  4638. * @return \Symfony\Component\HttpFoundation\Cookie|null
  4639. * @static
  4640. */ public static function queued($key, $default = null, $path = null)
  4641. {
  4642. /** @var \Illuminate\Cookie\CookieJar $instance */
  4643. return $instance->queued($key, $default, $path);
  4644. }
  4645. /**
  4646. * Queue a cookie to send with the next response.
  4647. *
  4648. * @param mixed $parameters
  4649. * @return void
  4650. * @static
  4651. */ public static function queue(...$parameters)
  4652. {
  4653. /** @var \Illuminate\Cookie\CookieJar $instance */
  4654. $instance->queue(...$parameters);
  4655. }
  4656. /**
  4657. * Queue a cookie to expire with the next response.
  4658. *
  4659. * @param string $name
  4660. * @param string|null $path
  4661. * @param string|null $domain
  4662. * @return void
  4663. * @static
  4664. */ public static function expire($name, $path = null, $domain = null)
  4665. {
  4666. /** @var \Illuminate\Cookie\CookieJar $instance */
  4667. $instance->expire($name, $path, $domain);
  4668. }
  4669. /**
  4670. * Remove a cookie from the queue.
  4671. *
  4672. * @param string $name
  4673. * @param string|null $path
  4674. * @return void
  4675. * @static
  4676. */ public static function unqueue($name, $path = null)
  4677. {
  4678. /** @var \Illuminate\Cookie\CookieJar $instance */
  4679. $instance->unqueue($name, $path);
  4680. }
  4681. /**
  4682. * Set the default path and domain for the jar.
  4683. *
  4684. * @param string $path
  4685. * @param string|null $domain
  4686. * @param bool|null $secure
  4687. * @param string|null $sameSite
  4688. * @return \Illuminate\Cookie\CookieJar
  4689. * @static
  4690. */ public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  4691. {
  4692. /** @var \Illuminate\Cookie\CookieJar $instance */
  4693. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  4694. }
  4695. /**
  4696. * Get the cookies which have been queued for the next request.
  4697. *
  4698. * @return \Symfony\Component\HttpFoundation\Cookie[]
  4699. * @static
  4700. */ public static function getQueuedCookies()
  4701. {
  4702. /** @var \Illuminate\Cookie\CookieJar $instance */
  4703. return $instance->getQueuedCookies();
  4704. }
  4705. /**
  4706. * Flush the cookies which have been queued for the next request.
  4707. *
  4708. * @return \Illuminate\Cookie\CookieJar
  4709. * @static
  4710. */ public static function flushQueuedCookies()
  4711. {
  4712. /** @var \Illuminate\Cookie\CookieJar $instance */
  4713. return $instance->flushQueuedCookies();
  4714. }
  4715. /**
  4716. * Register a custom macro.
  4717. *
  4718. * @param string $name
  4719. * @param object|callable $macro
  4720. * @param-closure-this static $macro
  4721. * @return void
  4722. * @static
  4723. */ public static function macro($name, $macro)
  4724. {
  4725. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  4726. }
  4727. /**
  4728. * Mix another object into the class.
  4729. *
  4730. * @param object $mixin
  4731. * @param bool $replace
  4732. * @return void
  4733. * @throws \ReflectionException
  4734. * @static
  4735. */ public static function mixin($mixin, $replace = true)
  4736. {
  4737. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  4738. }
  4739. /**
  4740. * Checks if macro is registered.
  4741. *
  4742. * @param string $name
  4743. * @return bool
  4744. * @static
  4745. */ public static function hasMacro($name)
  4746. {
  4747. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  4748. }
  4749. /**
  4750. * Flush the existing macros.
  4751. *
  4752. * @return void
  4753. * @static
  4754. */ public static function flushMacros()
  4755. {
  4756. \Illuminate\Cookie\CookieJar::flushMacros();
  4757. }
  4758. }
  4759. /**
  4760. *
  4761. *
  4762. * @see \Illuminate\Encryption\Encrypter
  4763. */ class Crypt {
  4764. /**
  4765. * Determine if the given key and cipher combination is valid.
  4766. *
  4767. * @param string $key
  4768. * @param string $cipher
  4769. * @return bool
  4770. * @static
  4771. */ public static function supported($key, $cipher)
  4772. {
  4773. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  4774. }
  4775. /**
  4776. * Create a new encryption key for the given cipher.
  4777. *
  4778. * @param string $cipher
  4779. * @return string
  4780. * @static
  4781. */ public static function generateKey($cipher)
  4782. {
  4783. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  4784. }
  4785. /**
  4786. * Encrypt the given value.
  4787. *
  4788. * @param mixed $value
  4789. * @param bool $serialize
  4790. * @return string
  4791. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4792. * @static
  4793. */ public static function encrypt($value, $serialize = true)
  4794. {
  4795. /** @var \Illuminate\Encryption\Encrypter $instance */
  4796. return $instance->encrypt($value, $serialize);
  4797. }
  4798. /**
  4799. * Encrypt a string without serialization.
  4800. *
  4801. * @param string $value
  4802. * @return string
  4803. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4804. * @static
  4805. */ public static function encryptString($value)
  4806. {
  4807. /** @var \Illuminate\Encryption\Encrypter $instance */
  4808. return $instance->encryptString($value);
  4809. }
  4810. /**
  4811. * Decrypt the given value.
  4812. *
  4813. * @param string $payload
  4814. * @param bool $unserialize
  4815. * @return mixed
  4816. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4817. * @static
  4818. */ public static function decrypt($payload, $unserialize = true)
  4819. {
  4820. /** @var \Illuminate\Encryption\Encrypter $instance */
  4821. return $instance->decrypt($payload, $unserialize);
  4822. }
  4823. /**
  4824. * Decrypt the given string without unserialization.
  4825. *
  4826. * @param string $payload
  4827. * @return string
  4828. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4829. * @static
  4830. */ public static function decryptString($payload)
  4831. {
  4832. /** @var \Illuminate\Encryption\Encrypter $instance */
  4833. return $instance->decryptString($payload);
  4834. }
  4835. /**
  4836. * Get the encryption key that the encrypter is currently using.
  4837. *
  4838. * @return string
  4839. * @static
  4840. */ public static function getKey()
  4841. {
  4842. /** @var \Illuminate\Encryption\Encrypter $instance */
  4843. return $instance->getKey();
  4844. }
  4845. /**
  4846. * Get the current encryption key and all previous encryption keys.
  4847. *
  4848. * @return array
  4849. * @static
  4850. */ public static function getAllKeys()
  4851. {
  4852. /** @var \Illuminate\Encryption\Encrypter $instance */
  4853. return $instance->getAllKeys();
  4854. }
  4855. /**
  4856. * Get the previous encryption keys.
  4857. *
  4858. * @return array
  4859. * @static
  4860. */ public static function getPreviousKeys()
  4861. {
  4862. /** @var \Illuminate\Encryption\Encrypter $instance */
  4863. return $instance->getPreviousKeys();
  4864. }
  4865. /**
  4866. * Set the previous / legacy encryption keys that should be utilized if decryption fails.
  4867. *
  4868. * @param array $keys
  4869. * @return \Illuminate\Encryption\Encrypter
  4870. * @static
  4871. */ public static function previousKeys($keys)
  4872. {
  4873. /** @var \Illuminate\Encryption\Encrypter $instance */
  4874. return $instance->previousKeys($keys);
  4875. }
  4876. }
  4877. /**
  4878. *
  4879. *
  4880. * @see \Illuminate\Database\DatabaseManager
  4881. */ class DB {
  4882. /**
  4883. * Get a database connection instance.
  4884. *
  4885. * @param string|null $name
  4886. * @return \Illuminate\Database\Connection
  4887. * @static
  4888. */ public static function connection($name = null)
  4889. {
  4890. /** @var \Illuminate\Database\DatabaseManager $instance */
  4891. return $instance->connection($name);
  4892. }
  4893. /**
  4894. * Get a database connection instance from the given configuration.
  4895. *
  4896. * @param string $name
  4897. * @param array $config
  4898. * @param bool $force
  4899. * @return \Illuminate\Database\MySqlConnection
  4900. * @static
  4901. */ public static function connectUsing($name, $config, $force = false)
  4902. {
  4903. /** @var \Illuminate\Database\DatabaseManager $instance */
  4904. return $instance->connectUsing($name, $config, $force);
  4905. }
  4906. /**
  4907. * Disconnect from the given database and remove from local cache.
  4908. *
  4909. * @param string|null $name
  4910. * @return void
  4911. * @static
  4912. */ public static function purge($name = null)
  4913. {
  4914. /** @var \Illuminate\Database\DatabaseManager $instance */
  4915. $instance->purge($name);
  4916. }
  4917. /**
  4918. * Disconnect from the given database.
  4919. *
  4920. * @param string|null $name
  4921. * @return void
  4922. * @static
  4923. */ public static function disconnect($name = null)
  4924. {
  4925. /** @var \Illuminate\Database\DatabaseManager $instance */
  4926. $instance->disconnect($name);
  4927. }
  4928. /**
  4929. * Reconnect to the given database.
  4930. *
  4931. * @param string|null $name
  4932. * @return \Illuminate\Database\Connection
  4933. * @static
  4934. */ public static function reconnect($name = null)
  4935. {
  4936. /** @var \Illuminate\Database\DatabaseManager $instance */
  4937. return $instance->reconnect($name);
  4938. }
  4939. /**
  4940. * Set the default database connection for the callback execution.
  4941. *
  4942. * @param string $name
  4943. * @param callable $callback
  4944. * @return mixed
  4945. * @static
  4946. */ public static function usingConnection($name, $callback)
  4947. {
  4948. /** @var \Illuminate\Database\DatabaseManager $instance */
  4949. return $instance->usingConnection($name, $callback);
  4950. }
  4951. /**
  4952. * Get the default connection name.
  4953. *
  4954. * @return string
  4955. * @static
  4956. */ public static function getDefaultConnection()
  4957. {
  4958. /** @var \Illuminate\Database\DatabaseManager $instance */
  4959. return $instance->getDefaultConnection();
  4960. }
  4961. /**
  4962. * Set the default connection name.
  4963. *
  4964. * @param string $name
  4965. * @return void
  4966. * @static
  4967. */ public static function setDefaultConnection($name)
  4968. {
  4969. /** @var \Illuminate\Database\DatabaseManager $instance */
  4970. $instance->setDefaultConnection($name);
  4971. }
  4972. /**
  4973. * Get all of the supported drivers.
  4974. *
  4975. * @return string[]
  4976. * @static
  4977. */ public static function supportedDrivers()
  4978. {
  4979. /** @var \Illuminate\Database\DatabaseManager $instance */
  4980. return $instance->supportedDrivers();
  4981. }
  4982. /**
  4983. * Get all of the drivers that are actually available.
  4984. *
  4985. * @return string[]
  4986. * @static
  4987. */ public static function availableDrivers()
  4988. {
  4989. /** @var \Illuminate\Database\DatabaseManager $instance */
  4990. return $instance->availableDrivers();
  4991. }
  4992. /**
  4993. * Register an extension connection resolver.
  4994. *
  4995. * @param string $name
  4996. * @param callable $resolver
  4997. * @return void
  4998. * @static
  4999. */ public static function extend($name, $resolver)
  5000. {
  5001. /** @var \Illuminate\Database\DatabaseManager $instance */
  5002. $instance->extend($name, $resolver);
  5003. }
  5004. /**
  5005. * Remove an extension connection resolver.
  5006. *
  5007. * @param string $name
  5008. * @return void
  5009. * @static
  5010. */ public static function forgetExtension($name)
  5011. {
  5012. /** @var \Illuminate\Database\DatabaseManager $instance */
  5013. $instance->forgetExtension($name);
  5014. }
  5015. /**
  5016. * Return all of the created connections.
  5017. *
  5018. * @return array<string, \Illuminate\Database\Connection>
  5019. * @static
  5020. */ public static function getConnections()
  5021. {
  5022. /** @var \Illuminate\Database\DatabaseManager $instance */
  5023. return $instance->getConnections();
  5024. }
  5025. /**
  5026. * Set the database reconnector callback.
  5027. *
  5028. * @param callable $reconnector
  5029. * @return void
  5030. * @static
  5031. */ public static function setReconnector($reconnector)
  5032. {
  5033. /** @var \Illuminate\Database\DatabaseManager $instance */
  5034. $instance->setReconnector($reconnector);
  5035. }
  5036. /**
  5037. * Set the application instance used by the manager.
  5038. *
  5039. * @param \Illuminate\Contracts\Foundation\Application $app
  5040. * @return \Illuminate\Database\DatabaseManager
  5041. * @static
  5042. */ public static function setApplication($app)
  5043. {
  5044. /** @var \Illuminate\Database\DatabaseManager $instance */
  5045. return $instance->setApplication($app);
  5046. }
  5047. /**
  5048. * Register a custom macro.
  5049. *
  5050. * @param string $name
  5051. * @param object|callable $macro
  5052. * @param-closure-this static $macro
  5053. * @return void
  5054. * @static
  5055. */ public static function macro($name, $macro)
  5056. {
  5057. \Illuminate\Database\DatabaseManager::macro($name, $macro);
  5058. }
  5059. /**
  5060. * Mix another object into the class.
  5061. *
  5062. * @param object $mixin
  5063. * @param bool $replace
  5064. * @return void
  5065. * @throws \ReflectionException
  5066. * @static
  5067. */ public static function mixin($mixin, $replace = true)
  5068. {
  5069. \Illuminate\Database\DatabaseManager::mixin($mixin, $replace);
  5070. }
  5071. /**
  5072. * Checks if macro is registered.
  5073. *
  5074. * @param string $name
  5075. * @return bool
  5076. * @static
  5077. */ public static function hasMacro($name)
  5078. {
  5079. return \Illuminate\Database\DatabaseManager::hasMacro($name);
  5080. }
  5081. /**
  5082. * Flush the existing macros.
  5083. *
  5084. * @return void
  5085. * @static
  5086. */ public static function flushMacros()
  5087. {
  5088. \Illuminate\Database\DatabaseManager::flushMacros();
  5089. }
  5090. /**
  5091. * Dynamically handle calls to the class.
  5092. *
  5093. * @param string $method
  5094. * @param array $parameters
  5095. * @return mixed
  5096. * @throws \BadMethodCallException
  5097. * @static
  5098. */ public static function macroCall($method, $parameters)
  5099. {
  5100. /** @var \Illuminate\Database\DatabaseManager $instance */
  5101. return $instance->macroCall($method, $parameters);
  5102. }
  5103. /**
  5104. * Get a human-readable name for the given connection driver.
  5105. *
  5106. * @return string
  5107. * @static
  5108. */ public static function getDriverTitle()
  5109. {
  5110. /** @var \Illuminate\Database\MySqlConnection $instance */
  5111. return $instance->getDriverTitle();
  5112. }
  5113. /**
  5114. * Run an insert statement against the database.
  5115. *
  5116. * @param string $query
  5117. * @param array $bindings
  5118. * @param string|null $sequence
  5119. * @return bool
  5120. * @static
  5121. */ public static function insert($query, $bindings = [], $sequence = null)
  5122. {
  5123. /** @var \Illuminate\Database\MySqlConnection $instance */
  5124. return $instance->insert($query, $bindings, $sequence);
  5125. }
  5126. /**
  5127. * Get the connection's last insert ID.
  5128. *
  5129. * @return string|int|null
  5130. * @static
  5131. */ public static function getLastInsertId()
  5132. {
  5133. /** @var \Illuminate\Database\MySqlConnection $instance */
  5134. return $instance->getLastInsertId();
  5135. }
  5136. /**
  5137. * Determine if the connected database is a MariaDB database.
  5138. *
  5139. * @return bool
  5140. * @static
  5141. */ public static function isMaria()
  5142. {
  5143. /** @var \Illuminate\Database\MySqlConnection $instance */
  5144. return $instance->isMaria();
  5145. }
  5146. /**
  5147. * Get the server version for the connection.
  5148. *
  5149. * @return string
  5150. * @static
  5151. */ public static function getServerVersion()
  5152. {
  5153. /** @var \Illuminate\Database\MySqlConnection $instance */
  5154. return $instance->getServerVersion();
  5155. }
  5156. /**
  5157. * Get a schema builder instance for the connection.
  5158. *
  5159. * @return \Illuminate\Database\Schema\MySqlBuilder
  5160. * @static
  5161. */ public static function getSchemaBuilder()
  5162. {
  5163. /** @var \Illuminate\Database\MySqlConnection $instance */
  5164. return $instance->getSchemaBuilder();
  5165. }
  5166. /**
  5167. * Get the schema state for the connection.
  5168. *
  5169. * @param \Illuminate\Filesystem\Filesystem|null $files
  5170. * @param callable|null $processFactory
  5171. * @return \Illuminate\Database\Schema\MySqlSchemaState
  5172. * @static
  5173. */ public static function getSchemaState($files = null, $processFactory = null)
  5174. {
  5175. /** @var \Illuminate\Database\MySqlConnection $instance */
  5176. return $instance->getSchemaState($files, $processFactory);
  5177. }
  5178. /**
  5179. * Set the query grammar to the default implementation.
  5180. *
  5181. * @return void
  5182. * @static
  5183. */ public static function useDefaultQueryGrammar()
  5184. { //Method inherited from \Illuminate\Database\Connection
  5185. /** @var \Illuminate\Database\MySqlConnection $instance */
  5186. $instance->useDefaultQueryGrammar();
  5187. }
  5188. /**
  5189. * Set the schema grammar to the default implementation.
  5190. *
  5191. * @return void
  5192. * @static
  5193. */ public static function useDefaultSchemaGrammar()
  5194. { //Method inherited from \Illuminate\Database\Connection
  5195. /** @var \Illuminate\Database\MySqlConnection $instance */
  5196. $instance->useDefaultSchemaGrammar();
  5197. }
  5198. /**
  5199. * Set the query post processor to the default implementation.
  5200. *
  5201. * @return void
  5202. * @static
  5203. */ public static function useDefaultPostProcessor()
  5204. { //Method inherited from \Illuminate\Database\Connection
  5205. /** @var \Illuminate\Database\MySqlConnection $instance */
  5206. $instance->useDefaultPostProcessor();
  5207. }
  5208. /**
  5209. * Begin a fluent query against a database table.
  5210. *
  5211. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|string $table
  5212. * @param string|null $as
  5213. * @return \Illuminate\Database\Query\Builder
  5214. * @static
  5215. */ public static function table($table, $as = null)
  5216. { //Method inherited from \Illuminate\Database\Connection
  5217. /** @var \Illuminate\Database\MySqlConnection $instance */
  5218. return $instance->table($table, $as);
  5219. }
  5220. /**
  5221. * Get a new query builder instance.
  5222. *
  5223. * @return \Illuminate\Database\Query\Builder
  5224. * @static
  5225. */ public static function query()
  5226. { //Method inherited from \Illuminate\Database\Connection
  5227. /** @var \Illuminate\Database\MySqlConnection $instance */
  5228. return $instance->query();
  5229. }
  5230. /**
  5231. * Run a select statement and return a single result.
  5232. *
  5233. * @param string $query
  5234. * @param array $bindings
  5235. * @param bool $useReadPdo
  5236. * @return mixed
  5237. * @static
  5238. */ public static function selectOne($query, $bindings = [], $useReadPdo = true)
  5239. { //Method inherited from \Illuminate\Database\Connection
  5240. /** @var \Illuminate\Database\MySqlConnection $instance */
  5241. return $instance->selectOne($query, $bindings, $useReadPdo);
  5242. }
  5243. /**
  5244. * Run a select statement and return the first column of the first row.
  5245. *
  5246. * @param string $query
  5247. * @param array $bindings
  5248. * @param bool $useReadPdo
  5249. * @return mixed
  5250. * @throws \Illuminate\Database\MultipleColumnsSelectedException
  5251. * @static
  5252. */ public static function scalar($query, $bindings = [], $useReadPdo = true)
  5253. { //Method inherited from \Illuminate\Database\Connection
  5254. /** @var \Illuminate\Database\MySqlConnection $instance */
  5255. return $instance->scalar($query, $bindings, $useReadPdo);
  5256. }
  5257. /**
  5258. * Run a select statement against the database.
  5259. *
  5260. * @param string $query
  5261. * @param array $bindings
  5262. * @return array
  5263. * @static
  5264. */ public static function selectFromWriteConnection($query, $bindings = [])
  5265. { //Method inherited from \Illuminate\Database\Connection
  5266. /** @var \Illuminate\Database\MySqlConnection $instance */
  5267. return $instance->selectFromWriteConnection($query, $bindings);
  5268. }
  5269. /**
  5270. * Run a select statement against the database.
  5271. *
  5272. * @param string $query
  5273. * @param array $bindings
  5274. * @param bool $useReadPdo
  5275. * @return array
  5276. * @static
  5277. */ public static function select($query, $bindings = [], $useReadPdo = true)
  5278. { //Method inherited from \Illuminate\Database\Connection
  5279. /** @var \Illuminate\Database\MySqlConnection $instance */
  5280. return $instance->select($query, $bindings, $useReadPdo);
  5281. }
  5282. /**
  5283. * Run a select statement against the database and returns all of the result sets.
  5284. *
  5285. * @param string $query
  5286. * @param array $bindings
  5287. * @param bool $useReadPdo
  5288. * @return array
  5289. * @static
  5290. */ public static function selectResultSets($query, $bindings = [], $useReadPdo = true)
  5291. { //Method inherited from \Illuminate\Database\Connection
  5292. /** @var \Illuminate\Database\MySqlConnection $instance */
  5293. return $instance->selectResultSets($query, $bindings, $useReadPdo);
  5294. }
  5295. /**
  5296. * Run a select statement against the database and returns a generator.
  5297. *
  5298. * @param string $query
  5299. * @param array $bindings
  5300. * @param bool $useReadPdo
  5301. * @return \Generator
  5302. * @static
  5303. */ public static function cursor($query, $bindings = [], $useReadPdo = true)
  5304. { //Method inherited from \Illuminate\Database\Connection
  5305. /** @var \Illuminate\Database\MySqlConnection $instance */
  5306. return $instance->cursor($query, $bindings, $useReadPdo);
  5307. }
  5308. /**
  5309. * Run an update statement against the database.
  5310. *
  5311. * @param string $query
  5312. * @param array $bindings
  5313. * @return int
  5314. * @static
  5315. */ public static function update($query, $bindings = [])
  5316. { //Method inherited from \Illuminate\Database\Connection
  5317. /** @var \Illuminate\Database\MySqlConnection $instance */
  5318. return $instance->update($query, $bindings);
  5319. }
  5320. /**
  5321. * Run a delete statement against the database.
  5322. *
  5323. * @param string $query
  5324. * @param array $bindings
  5325. * @return int
  5326. * @static
  5327. */ public static function delete($query, $bindings = [])
  5328. { //Method inherited from \Illuminate\Database\Connection
  5329. /** @var \Illuminate\Database\MySqlConnection $instance */
  5330. return $instance->delete($query, $bindings);
  5331. }
  5332. /**
  5333. * Execute an SQL statement and return the boolean result.
  5334. *
  5335. * @param string $query
  5336. * @param array $bindings
  5337. * @return bool
  5338. * @static
  5339. */ public static function statement($query, $bindings = [])
  5340. { //Method inherited from \Illuminate\Database\Connection
  5341. /** @var \Illuminate\Database\MySqlConnection $instance */
  5342. return $instance->statement($query, $bindings);
  5343. }
  5344. /**
  5345. * Run an SQL statement and get the number of rows affected.
  5346. *
  5347. * @param string $query
  5348. * @param array $bindings
  5349. * @return int
  5350. * @static
  5351. */ public static function affectingStatement($query, $bindings = [])
  5352. { //Method inherited from \Illuminate\Database\Connection
  5353. /** @var \Illuminate\Database\MySqlConnection $instance */
  5354. return $instance->affectingStatement($query, $bindings);
  5355. }
  5356. /**
  5357. * Run a raw, unprepared query against the PDO connection.
  5358. *
  5359. * @param string $query
  5360. * @return bool
  5361. * @static
  5362. */ public static function unprepared($query)
  5363. { //Method inherited from \Illuminate\Database\Connection
  5364. /** @var \Illuminate\Database\MySqlConnection $instance */
  5365. return $instance->unprepared($query);
  5366. }
  5367. /**
  5368. * Get the number of open connections for the database.
  5369. *
  5370. * @return int|null
  5371. * @static
  5372. */ public static function threadCount()
  5373. { //Method inherited from \Illuminate\Database\Connection
  5374. /** @var \Illuminate\Database\MySqlConnection $instance */
  5375. return $instance->threadCount();
  5376. }
  5377. /**
  5378. * Execute the given callback in "dry run" mode.
  5379. *
  5380. * @param \Closure $callback
  5381. * @return array
  5382. * @static
  5383. */ public static function pretend($callback)
  5384. { //Method inherited from \Illuminate\Database\Connection
  5385. /** @var \Illuminate\Database\MySqlConnection $instance */
  5386. return $instance->pretend($callback);
  5387. }
  5388. /**
  5389. * Execute the given callback without "pretending".
  5390. *
  5391. * @param \Closure $callback
  5392. * @return mixed
  5393. * @static
  5394. */ public static function withoutPretending($callback)
  5395. { //Method inherited from \Illuminate\Database\Connection
  5396. /** @var \Illuminate\Database\MySqlConnection $instance */
  5397. return $instance->withoutPretending($callback);
  5398. }
  5399. /**
  5400. * Bind values to their parameters in the given statement.
  5401. *
  5402. * @param \PDOStatement $statement
  5403. * @param array $bindings
  5404. * @return void
  5405. * @static
  5406. */ public static function bindValues($statement, $bindings)
  5407. { //Method inherited from \Illuminate\Database\Connection
  5408. /** @var \Illuminate\Database\MySqlConnection $instance */
  5409. $instance->bindValues($statement, $bindings);
  5410. }
  5411. /**
  5412. * Prepare the query bindings for execution.
  5413. *
  5414. * @param array $bindings
  5415. * @return array
  5416. * @static
  5417. */ public static function prepareBindings($bindings)
  5418. { //Method inherited from \Illuminate\Database\Connection
  5419. /** @var \Illuminate\Database\MySqlConnection $instance */
  5420. return $instance->prepareBindings($bindings);
  5421. }
  5422. /**
  5423. * Log a query in the connection's query log.
  5424. *
  5425. * @param string $query
  5426. * @param array $bindings
  5427. * @param float|null $time
  5428. * @return void
  5429. * @static
  5430. */ public static function logQuery($query, $bindings, $time = null)
  5431. { //Method inherited from \Illuminate\Database\Connection
  5432. /** @var \Illuminate\Database\MySqlConnection $instance */
  5433. $instance->logQuery($query, $bindings, $time);
  5434. }
  5435. /**
  5436. * Register a callback to be invoked when the connection queries for longer than a given amount of time.
  5437. *
  5438. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  5439. * @param callable $handler
  5440. * @return void
  5441. * @static
  5442. */ public static function whenQueryingForLongerThan($threshold, $handler)
  5443. { //Method inherited from \Illuminate\Database\Connection
  5444. /** @var \Illuminate\Database\MySqlConnection $instance */
  5445. $instance->whenQueryingForLongerThan($threshold, $handler);
  5446. }
  5447. /**
  5448. * Allow all the query duration handlers to run again, even if they have already run.
  5449. *
  5450. * @return void
  5451. * @static
  5452. */ public static function allowQueryDurationHandlersToRunAgain()
  5453. { //Method inherited from \Illuminate\Database\Connection
  5454. /** @var \Illuminate\Database\MySqlConnection $instance */
  5455. $instance->allowQueryDurationHandlersToRunAgain();
  5456. }
  5457. /**
  5458. * Get the duration of all run queries in milliseconds.
  5459. *
  5460. * @return float
  5461. * @static
  5462. */ public static function totalQueryDuration()
  5463. { //Method inherited from \Illuminate\Database\Connection
  5464. /** @var \Illuminate\Database\MySqlConnection $instance */
  5465. return $instance->totalQueryDuration();
  5466. }
  5467. /**
  5468. * Reset the duration of all run queries.
  5469. *
  5470. * @return void
  5471. * @static
  5472. */ public static function resetTotalQueryDuration()
  5473. { //Method inherited from \Illuminate\Database\Connection
  5474. /** @var \Illuminate\Database\MySqlConnection $instance */
  5475. $instance->resetTotalQueryDuration();
  5476. }
  5477. /**
  5478. * Reconnect to the database if a PDO connection is missing.
  5479. *
  5480. * @return void
  5481. * @static
  5482. */ public static function reconnectIfMissingConnection()
  5483. { //Method inherited from \Illuminate\Database\Connection
  5484. /** @var \Illuminate\Database\MySqlConnection $instance */
  5485. $instance->reconnectIfMissingConnection();
  5486. }
  5487. /**
  5488. * Register a hook to be run just before a database transaction is started.
  5489. *
  5490. * @param \Closure $callback
  5491. * @return \Illuminate\Database\MySqlConnection
  5492. * @static
  5493. */ public static function beforeStartingTransaction($callback)
  5494. { //Method inherited from \Illuminate\Database\Connection
  5495. /** @var \Illuminate\Database\MySqlConnection $instance */
  5496. return $instance->beforeStartingTransaction($callback);
  5497. }
  5498. /**
  5499. * Register a hook to be run just before a database query is executed.
  5500. *
  5501. * @param \Closure $callback
  5502. * @return \Illuminate\Database\MySqlConnection
  5503. * @static
  5504. */ public static function beforeExecuting($callback)
  5505. { //Method inherited from \Illuminate\Database\Connection
  5506. /** @var \Illuminate\Database\MySqlConnection $instance */
  5507. return $instance->beforeExecuting($callback);
  5508. }
  5509. /**
  5510. * Register a database query listener with the connection.
  5511. *
  5512. * @param \Closure $callback
  5513. * @return void
  5514. * @static
  5515. */ public static function listen($callback)
  5516. { //Method inherited from \Illuminate\Database\Connection
  5517. /** @var \Illuminate\Database\MySqlConnection $instance */
  5518. $instance->listen($callback);
  5519. }
  5520. /**
  5521. * Get a new raw query expression.
  5522. *
  5523. * @param mixed $value
  5524. * @return \Illuminate\Contracts\Database\Query\Expression
  5525. * @static
  5526. */ public static function raw($value)
  5527. { //Method inherited from \Illuminate\Database\Connection
  5528. /** @var \Illuminate\Database\MySqlConnection $instance */
  5529. return $instance->raw($value);
  5530. }
  5531. /**
  5532. * Escape a value for safe SQL embedding.
  5533. *
  5534. * @param string|float|int|bool|null $value
  5535. * @param bool $binary
  5536. * @return string
  5537. * @static
  5538. */ public static function escape($value, $binary = false)
  5539. { //Method inherited from \Illuminate\Database\Connection
  5540. /** @var \Illuminate\Database\MySqlConnection $instance */
  5541. return $instance->escape($value, $binary);
  5542. }
  5543. /**
  5544. * Determine if the database connection has modified any database records.
  5545. *
  5546. * @return bool
  5547. * @static
  5548. */ public static function hasModifiedRecords()
  5549. { //Method inherited from \Illuminate\Database\Connection
  5550. /** @var \Illuminate\Database\MySqlConnection $instance */
  5551. return $instance->hasModifiedRecords();
  5552. }
  5553. /**
  5554. * Indicate if any records have been modified.
  5555. *
  5556. * @param bool $value
  5557. * @return void
  5558. * @static
  5559. */ public static function recordsHaveBeenModified($value = true)
  5560. { //Method inherited from \Illuminate\Database\Connection
  5561. /** @var \Illuminate\Database\MySqlConnection $instance */
  5562. $instance->recordsHaveBeenModified($value);
  5563. }
  5564. /**
  5565. * Set the record modification state.
  5566. *
  5567. * @param bool $value
  5568. * @return \Illuminate\Database\MySqlConnection
  5569. * @static
  5570. */ public static function setRecordModificationState($value)
  5571. { //Method inherited from \Illuminate\Database\Connection
  5572. /** @var \Illuminate\Database\MySqlConnection $instance */
  5573. return $instance->setRecordModificationState($value);
  5574. }
  5575. /**
  5576. * Reset the record modification state.
  5577. *
  5578. * @return void
  5579. * @static
  5580. */ public static function forgetRecordModificationState()
  5581. { //Method inherited from \Illuminate\Database\Connection
  5582. /** @var \Illuminate\Database\MySqlConnection $instance */
  5583. $instance->forgetRecordModificationState();
  5584. }
  5585. /**
  5586. * Indicate that the connection should use the write PDO connection for reads.
  5587. *
  5588. * @param bool $value
  5589. * @return \Illuminate\Database\MySqlConnection
  5590. * @static
  5591. */ public static function useWriteConnectionWhenReading($value = true)
  5592. { //Method inherited from \Illuminate\Database\Connection
  5593. /** @var \Illuminate\Database\MySqlConnection $instance */
  5594. return $instance->useWriteConnectionWhenReading($value);
  5595. }
  5596. /**
  5597. * Get the current PDO connection.
  5598. *
  5599. * @return \PDO
  5600. * @static
  5601. */ public static function getPdo()
  5602. { //Method inherited from \Illuminate\Database\Connection
  5603. /** @var \Illuminate\Database\MySqlConnection $instance */
  5604. return $instance->getPdo();
  5605. }
  5606. /**
  5607. * Get the current PDO connection parameter without executing any reconnect logic.
  5608. *
  5609. * @return \PDO|\Closure|null
  5610. * @static
  5611. */ public static function getRawPdo()
  5612. { //Method inherited from \Illuminate\Database\Connection
  5613. /** @var \Illuminate\Database\MySqlConnection $instance */
  5614. return $instance->getRawPdo();
  5615. }
  5616. /**
  5617. * Get the current PDO connection used for reading.
  5618. *
  5619. * @return \PDO
  5620. * @static
  5621. */ public static function getReadPdo()
  5622. { //Method inherited from \Illuminate\Database\Connection
  5623. /** @var \Illuminate\Database\MySqlConnection $instance */
  5624. return $instance->getReadPdo();
  5625. }
  5626. /**
  5627. * Get the current read PDO connection parameter without executing any reconnect logic.
  5628. *
  5629. * @return \PDO|\Closure|null
  5630. * @static
  5631. */ public static function getRawReadPdo()
  5632. { //Method inherited from \Illuminate\Database\Connection
  5633. /** @var \Illuminate\Database\MySqlConnection $instance */
  5634. return $instance->getRawReadPdo();
  5635. }
  5636. /**
  5637. * Set the PDO connection.
  5638. *
  5639. * @param \PDO|\Closure|null $pdo
  5640. * @return \Illuminate\Database\MySqlConnection
  5641. * @static
  5642. */ public static function setPdo($pdo)
  5643. { //Method inherited from \Illuminate\Database\Connection
  5644. /** @var \Illuminate\Database\MySqlConnection $instance */
  5645. return $instance->setPdo($pdo);
  5646. }
  5647. /**
  5648. * Set the PDO connection used for reading.
  5649. *
  5650. * @param \PDO|\Closure|null $pdo
  5651. * @return \Illuminate\Database\MySqlConnection
  5652. * @static
  5653. */ public static function setReadPdo($pdo)
  5654. { //Method inherited from \Illuminate\Database\Connection
  5655. /** @var \Illuminate\Database\MySqlConnection $instance */
  5656. return $instance->setReadPdo($pdo);
  5657. }
  5658. /**
  5659. * Get the database connection name.
  5660. *
  5661. * @return string|null
  5662. * @static
  5663. */ public static function getName()
  5664. { //Method inherited from \Illuminate\Database\Connection
  5665. /** @var \Illuminate\Database\MySqlConnection $instance */
  5666. return $instance->getName();
  5667. }
  5668. /**
  5669. * Get the database connection full name.
  5670. *
  5671. * @return string|null
  5672. * @static
  5673. */ public static function getNameWithReadWriteType()
  5674. { //Method inherited from \Illuminate\Database\Connection
  5675. /** @var \Illuminate\Database\MySqlConnection $instance */
  5676. return $instance->getNameWithReadWriteType();
  5677. }
  5678. /**
  5679. * Get an option from the configuration options.
  5680. *
  5681. * @param string|null $option
  5682. * @return mixed
  5683. * @static
  5684. */ public static function getConfig($option = null)
  5685. { //Method inherited from \Illuminate\Database\Connection
  5686. /** @var \Illuminate\Database\MySqlConnection $instance */
  5687. return $instance->getConfig($option);
  5688. }
  5689. /**
  5690. * Get the PDO driver name.
  5691. *
  5692. * @return string
  5693. * @static
  5694. */ public static function getDriverName()
  5695. { //Method inherited from \Illuminate\Database\Connection
  5696. /** @var \Illuminate\Database\MySqlConnection $instance */
  5697. return $instance->getDriverName();
  5698. }
  5699. /**
  5700. * Get the query grammar used by the connection.
  5701. *
  5702. * @return \Illuminate\Database\Query\Grammars\Grammar
  5703. * @static
  5704. */ public static function getQueryGrammar()
  5705. { //Method inherited from \Illuminate\Database\Connection
  5706. /** @var \Illuminate\Database\MySqlConnection $instance */
  5707. return $instance->getQueryGrammar();
  5708. }
  5709. /**
  5710. * Set the query grammar used by the connection.
  5711. *
  5712. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  5713. * @return \Illuminate\Database\MySqlConnection
  5714. * @static
  5715. */ public static function setQueryGrammar($grammar)
  5716. { //Method inherited from \Illuminate\Database\Connection
  5717. /** @var \Illuminate\Database\MySqlConnection $instance */
  5718. return $instance->setQueryGrammar($grammar);
  5719. }
  5720. /**
  5721. * Get the schema grammar used by the connection.
  5722. *
  5723. * @return \Illuminate\Database\Schema\Grammars\Grammar
  5724. * @static
  5725. */ public static function getSchemaGrammar()
  5726. { //Method inherited from \Illuminate\Database\Connection
  5727. /** @var \Illuminate\Database\MySqlConnection $instance */
  5728. return $instance->getSchemaGrammar();
  5729. }
  5730. /**
  5731. * Set the schema grammar used by the connection.
  5732. *
  5733. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  5734. * @return \Illuminate\Database\MySqlConnection
  5735. * @static
  5736. */ public static function setSchemaGrammar($grammar)
  5737. { //Method inherited from \Illuminate\Database\Connection
  5738. /** @var \Illuminate\Database\MySqlConnection $instance */
  5739. return $instance->setSchemaGrammar($grammar);
  5740. }
  5741. /**
  5742. * Get the query post processor used by the connection.
  5743. *
  5744. * @return \Illuminate\Database\Query\Processors\Processor
  5745. * @static
  5746. */ public static function getPostProcessor()
  5747. { //Method inherited from \Illuminate\Database\Connection
  5748. /** @var \Illuminate\Database\MySqlConnection $instance */
  5749. return $instance->getPostProcessor();
  5750. }
  5751. /**
  5752. * Set the query post processor used by the connection.
  5753. *
  5754. * @param \Illuminate\Database\Query\Processors\Processor $processor
  5755. * @return \Illuminate\Database\MySqlConnection
  5756. * @static
  5757. */ public static function setPostProcessor($processor)
  5758. { //Method inherited from \Illuminate\Database\Connection
  5759. /** @var \Illuminate\Database\MySqlConnection $instance */
  5760. return $instance->setPostProcessor($processor);
  5761. }
  5762. /**
  5763. * Get the event dispatcher used by the connection.
  5764. *
  5765. * @return \Illuminate\Contracts\Events\Dispatcher
  5766. * @static
  5767. */ public static function getEventDispatcher()
  5768. { //Method inherited from \Illuminate\Database\Connection
  5769. /** @var \Illuminate\Database\MySqlConnection $instance */
  5770. return $instance->getEventDispatcher();
  5771. }
  5772. /**
  5773. * Set the event dispatcher instance on the connection.
  5774. *
  5775. * @param \Illuminate\Contracts\Events\Dispatcher $events
  5776. * @return \Illuminate\Database\MySqlConnection
  5777. * @static
  5778. */ public static function setEventDispatcher($events)
  5779. { //Method inherited from \Illuminate\Database\Connection
  5780. /** @var \Illuminate\Database\MySqlConnection $instance */
  5781. return $instance->setEventDispatcher($events);
  5782. }
  5783. /**
  5784. * Unset the event dispatcher for this connection.
  5785. *
  5786. * @return void
  5787. * @static
  5788. */ public static function unsetEventDispatcher()
  5789. { //Method inherited from \Illuminate\Database\Connection
  5790. /** @var \Illuminate\Database\MySqlConnection $instance */
  5791. $instance->unsetEventDispatcher();
  5792. }
  5793. /**
  5794. * Set the transaction manager instance on the connection.
  5795. *
  5796. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  5797. * @return \Illuminate\Database\MySqlConnection
  5798. * @static
  5799. */ public static function setTransactionManager($manager)
  5800. { //Method inherited from \Illuminate\Database\Connection
  5801. /** @var \Illuminate\Database\MySqlConnection $instance */
  5802. return $instance->setTransactionManager($manager);
  5803. }
  5804. /**
  5805. * Unset the transaction manager for this connection.
  5806. *
  5807. * @return void
  5808. * @static
  5809. */ public static function unsetTransactionManager()
  5810. { //Method inherited from \Illuminate\Database\Connection
  5811. /** @var \Illuminate\Database\MySqlConnection $instance */
  5812. $instance->unsetTransactionManager();
  5813. }
  5814. /**
  5815. * Determine if the connection is in a "dry run".
  5816. *
  5817. * @return bool
  5818. * @static
  5819. */ public static function pretending()
  5820. { //Method inherited from \Illuminate\Database\Connection
  5821. /** @var \Illuminate\Database\MySqlConnection $instance */
  5822. return $instance->pretending();
  5823. }
  5824. /**
  5825. * Get the connection query log.
  5826. *
  5827. * @return array
  5828. * @static
  5829. */ public static function getQueryLog()
  5830. { //Method inherited from \Illuminate\Database\Connection
  5831. /** @var \Illuminate\Database\MySqlConnection $instance */
  5832. return $instance->getQueryLog();
  5833. }
  5834. /**
  5835. * Get the connection query log with embedded bindings.
  5836. *
  5837. * @return array
  5838. * @static
  5839. */ public static function getRawQueryLog()
  5840. { //Method inherited from \Illuminate\Database\Connection
  5841. /** @var \Illuminate\Database\MySqlConnection $instance */
  5842. return $instance->getRawQueryLog();
  5843. }
  5844. /**
  5845. * Clear the query log.
  5846. *
  5847. * @return void
  5848. * @static
  5849. */ public static function flushQueryLog()
  5850. { //Method inherited from \Illuminate\Database\Connection
  5851. /** @var \Illuminate\Database\MySqlConnection $instance */
  5852. $instance->flushQueryLog();
  5853. }
  5854. /**
  5855. * Enable the query log on the connection.
  5856. *
  5857. * @return void
  5858. * @static
  5859. */ public static function enableQueryLog()
  5860. { //Method inherited from \Illuminate\Database\Connection
  5861. /** @var \Illuminate\Database\MySqlConnection $instance */
  5862. $instance->enableQueryLog();
  5863. }
  5864. /**
  5865. * Disable the query log on the connection.
  5866. *
  5867. * @return void
  5868. * @static
  5869. */ public static function disableQueryLog()
  5870. { //Method inherited from \Illuminate\Database\Connection
  5871. /** @var \Illuminate\Database\MySqlConnection $instance */
  5872. $instance->disableQueryLog();
  5873. }
  5874. /**
  5875. * Determine whether we're logging queries.
  5876. *
  5877. * @return bool
  5878. * @static
  5879. */ public static function logging()
  5880. { //Method inherited from \Illuminate\Database\Connection
  5881. /** @var \Illuminate\Database\MySqlConnection $instance */
  5882. return $instance->logging();
  5883. }
  5884. /**
  5885. * Get the name of the connected database.
  5886. *
  5887. * @return string
  5888. * @static
  5889. */ public static function getDatabaseName()
  5890. { //Method inherited from \Illuminate\Database\Connection
  5891. /** @var \Illuminate\Database\MySqlConnection $instance */
  5892. return $instance->getDatabaseName();
  5893. }
  5894. /**
  5895. * Set the name of the connected database.
  5896. *
  5897. * @param string $database
  5898. * @return \Illuminate\Database\MySqlConnection
  5899. * @static
  5900. */ public static function setDatabaseName($database)
  5901. { //Method inherited from \Illuminate\Database\Connection
  5902. /** @var \Illuminate\Database\MySqlConnection $instance */
  5903. return $instance->setDatabaseName($database);
  5904. }
  5905. /**
  5906. * Set the read / write type of the connection.
  5907. *
  5908. * @param string|null $readWriteType
  5909. * @return \Illuminate\Database\MySqlConnection
  5910. * @static
  5911. */ public static function setReadWriteType($readWriteType)
  5912. { //Method inherited from \Illuminate\Database\Connection
  5913. /** @var \Illuminate\Database\MySqlConnection $instance */
  5914. return $instance->setReadWriteType($readWriteType);
  5915. }
  5916. /**
  5917. * Get the table prefix for the connection.
  5918. *
  5919. * @return string
  5920. * @static
  5921. */ public static function getTablePrefix()
  5922. { //Method inherited from \Illuminate\Database\Connection
  5923. /** @var \Illuminate\Database\MySqlConnection $instance */
  5924. return $instance->getTablePrefix();
  5925. }
  5926. /**
  5927. * Set the table prefix in use by the connection.
  5928. *
  5929. * @param string $prefix
  5930. * @return \Illuminate\Database\MySqlConnection
  5931. * @static
  5932. */ public static function setTablePrefix($prefix)
  5933. { //Method inherited from \Illuminate\Database\Connection
  5934. /** @var \Illuminate\Database\MySqlConnection $instance */
  5935. return $instance->setTablePrefix($prefix);
  5936. }
  5937. /**
  5938. * Set the table prefix and return the grammar.
  5939. *
  5940. * @template TGrammar of \Illuminate\Database\Grammar
  5941. * @param \Illuminate\Database\TGrammar $grammar
  5942. * @return \Illuminate\Database\TGrammar
  5943. * @static
  5944. */ public static function withTablePrefix($grammar)
  5945. { //Method inherited from \Illuminate\Database\Connection
  5946. /** @var \Illuminate\Database\MySqlConnection $instance */
  5947. return $instance->withTablePrefix($grammar);
  5948. }
  5949. /**
  5950. * Register a connection resolver.
  5951. *
  5952. * @param string $driver
  5953. * @param \Closure $callback
  5954. * @return void
  5955. * @static
  5956. */ public static function resolverFor($driver, $callback)
  5957. { //Method inherited from \Illuminate\Database\Connection
  5958. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  5959. }
  5960. /**
  5961. * Get the connection resolver for the given driver.
  5962. *
  5963. * @param string $driver
  5964. * @return \Closure|null
  5965. * @static
  5966. */ public static function getResolver($driver)
  5967. { //Method inherited from \Illuminate\Database\Connection
  5968. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  5969. }
  5970. /**
  5971. * Execute a Closure within a transaction.
  5972. *
  5973. * @param \Closure $callback
  5974. * @param int $attempts
  5975. * @return mixed
  5976. * @throws \Throwable
  5977. * @static
  5978. */ public static function transaction($callback, $attempts = 1)
  5979. { //Method inherited from \Illuminate\Database\Connection
  5980. /** @var \Illuminate\Database\MySqlConnection $instance */
  5981. return $instance->transaction($callback, $attempts);
  5982. }
  5983. /**
  5984. * Start a new database transaction.
  5985. *
  5986. * @return void
  5987. * @throws \Throwable
  5988. * @static
  5989. */ public static function beginTransaction()
  5990. { //Method inherited from \Illuminate\Database\Connection
  5991. /** @var \Illuminate\Database\MySqlConnection $instance */
  5992. $instance->beginTransaction();
  5993. }
  5994. /**
  5995. * Commit the active database transaction.
  5996. *
  5997. * @return void
  5998. * @throws \Throwable
  5999. * @static
  6000. */ public static function commit()
  6001. { //Method inherited from \Illuminate\Database\Connection
  6002. /** @var \Illuminate\Database\MySqlConnection $instance */
  6003. $instance->commit();
  6004. }
  6005. /**
  6006. * Rollback the active database transaction.
  6007. *
  6008. * @param int|null $toLevel
  6009. * @return void
  6010. * @throws \Throwable
  6011. * @static
  6012. */ public static function rollBack($toLevel = null)
  6013. { //Method inherited from \Illuminate\Database\Connection
  6014. /** @var \Illuminate\Database\MySqlConnection $instance */
  6015. $instance->rollBack($toLevel);
  6016. }
  6017. /**
  6018. * Get the number of active transactions.
  6019. *
  6020. * @return int
  6021. * @static
  6022. */ public static function transactionLevel()
  6023. { //Method inherited from \Illuminate\Database\Connection
  6024. /** @var \Illuminate\Database\MySqlConnection $instance */
  6025. return $instance->transactionLevel();
  6026. }
  6027. /**
  6028. * Execute the callback after a transaction commits.
  6029. *
  6030. * @param callable $callback
  6031. * @return void
  6032. * @throws \RuntimeException
  6033. * @static
  6034. */ public static function afterCommit($callback)
  6035. { //Method inherited from \Illuminate\Database\Connection
  6036. /** @var \Illuminate\Database\MySqlConnection $instance */
  6037. $instance->afterCommit($callback);
  6038. }
  6039. }
  6040. /**
  6041. *
  6042. *
  6043. * @see \Illuminate\Events\Dispatcher
  6044. * @see \Illuminate\Support\Testing\Fakes\EventFake
  6045. */ class Event {
  6046. /**
  6047. * Register an event listener with the dispatcher.
  6048. *
  6049. * @param \Illuminate\Events\Queued\Closure|\Closure|string|array $events
  6050. * @param \Illuminate\Events\Queued\Closure|\Closure|string|array|null $listener
  6051. * @return void
  6052. * @static
  6053. */ public static function listen($events, $listener = null)
  6054. {
  6055. /** @var \Illuminate\Events\Dispatcher $instance */
  6056. $instance->listen($events, $listener);
  6057. }
  6058. /**
  6059. * Determine if a given event has listeners.
  6060. *
  6061. * @param string $eventName
  6062. * @return bool
  6063. * @static
  6064. */ public static function hasListeners($eventName)
  6065. {
  6066. /** @var \Illuminate\Events\Dispatcher $instance */
  6067. return $instance->hasListeners($eventName);
  6068. }
  6069. /**
  6070. * Determine if the given event has any wildcard listeners.
  6071. *
  6072. * @param string $eventName
  6073. * @return bool
  6074. * @static
  6075. */ public static function hasWildcardListeners($eventName)
  6076. {
  6077. /** @var \Illuminate\Events\Dispatcher $instance */
  6078. return $instance->hasWildcardListeners($eventName);
  6079. }
  6080. /**
  6081. * Register an event and payload to be fired later.
  6082. *
  6083. * @param string $event
  6084. * @param object|array $payload
  6085. * @return void
  6086. * @static
  6087. */ public static function push($event, $payload = [])
  6088. {
  6089. /** @var \Illuminate\Events\Dispatcher $instance */
  6090. $instance->push($event, $payload);
  6091. }
  6092. /**
  6093. * Flush a set of pushed events.
  6094. *
  6095. * @param string $event
  6096. * @return void
  6097. * @static
  6098. */ public static function flush($event)
  6099. {
  6100. /** @var \Illuminate\Events\Dispatcher $instance */
  6101. $instance->flush($event);
  6102. }
  6103. /**
  6104. * Register an event subscriber with the dispatcher.
  6105. *
  6106. * @param object|string $subscriber
  6107. * @return void
  6108. * @static
  6109. */ public static function subscribe($subscriber)
  6110. {
  6111. /** @var \Illuminate\Events\Dispatcher $instance */
  6112. $instance->subscribe($subscriber);
  6113. }
  6114. /**
  6115. * Fire an event until the first non-null response is returned.
  6116. *
  6117. * @param string|object $event
  6118. * @param mixed $payload
  6119. * @return mixed
  6120. * @static
  6121. */ public static function until($event, $payload = [])
  6122. {
  6123. /** @var \Illuminate\Events\Dispatcher $instance */
  6124. return $instance->until($event, $payload);
  6125. }
  6126. /**
  6127. * Fire an event and call the listeners.
  6128. *
  6129. * @param string|object $event
  6130. * @param mixed $payload
  6131. * @param bool $halt
  6132. * @return array|null
  6133. * @static
  6134. */ public static function dispatch($event, $payload = [], $halt = false)
  6135. {
  6136. /** @var \Illuminate\Events\Dispatcher $instance */
  6137. return $instance->dispatch($event, $payload, $halt);
  6138. }
  6139. /**
  6140. * Get all of the listeners for a given event name.
  6141. *
  6142. * @param string $eventName
  6143. * @return array
  6144. * @static
  6145. */ public static function getListeners($eventName)
  6146. {
  6147. /** @var \Illuminate\Events\Dispatcher $instance */
  6148. return $instance->getListeners($eventName);
  6149. }
  6150. /**
  6151. * Register an event listener with the dispatcher.
  6152. *
  6153. * @param \Closure|string|array $listener
  6154. * @param bool $wildcard
  6155. * @return \Closure
  6156. * @static
  6157. */ public static function makeListener($listener, $wildcard = false)
  6158. {
  6159. /** @var \Illuminate\Events\Dispatcher $instance */
  6160. return $instance->makeListener($listener, $wildcard);
  6161. }
  6162. /**
  6163. * Create a class based listener using the IoC container.
  6164. *
  6165. * @param string $listener
  6166. * @param bool $wildcard
  6167. * @return \Closure
  6168. * @static
  6169. */ public static function createClassListener($listener, $wildcard = false)
  6170. {
  6171. /** @var \Illuminate\Events\Dispatcher $instance */
  6172. return $instance->createClassListener($listener, $wildcard);
  6173. }
  6174. /**
  6175. * Remove a set of listeners from the dispatcher.
  6176. *
  6177. * @param string $event
  6178. * @return void
  6179. * @static
  6180. */ public static function forget($event)
  6181. {
  6182. /** @var \Illuminate\Events\Dispatcher $instance */
  6183. $instance->forget($event);
  6184. }
  6185. /**
  6186. * Forget all of the pushed listeners.
  6187. *
  6188. * @return void
  6189. * @static
  6190. */ public static function forgetPushed()
  6191. {
  6192. /** @var \Illuminate\Events\Dispatcher $instance */
  6193. $instance->forgetPushed();
  6194. }
  6195. /**
  6196. * Set the queue resolver implementation.
  6197. *
  6198. * @param callable $resolver
  6199. * @return \Illuminate\Events\Dispatcher
  6200. * @static
  6201. */ public static function setQueueResolver($resolver)
  6202. {
  6203. /** @var \Illuminate\Events\Dispatcher $instance */
  6204. return $instance->setQueueResolver($resolver);
  6205. }
  6206. /**
  6207. * Set the database transaction manager resolver implementation.
  6208. *
  6209. * @param callable $resolver
  6210. * @return \Illuminate\Events\Dispatcher
  6211. * @static
  6212. */ public static function setTransactionManagerResolver($resolver)
  6213. {
  6214. /** @var \Illuminate\Events\Dispatcher $instance */
  6215. return $instance->setTransactionManagerResolver($resolver);
  6216. }
  6217. /**
  6218. * Gets the raw, unprepared listeners.
  6219. *
  6220. * @return array
  6221. * @static
  6222. */ public static function getRawListeners()
  6223. {
  6224. /** @var \Illuminate\Events\Dispatcher $instance */
  6225. return $instance->getRawListeners();
  6226. }
  6227. /**
  6228. * Register a custom macro.
  6229. *
  6230. * @param string $name
  6231. * @param object|callable $macro
  6232. * @param-closure-this static $macro
  6233. * @return void
  6234. * @static
  6235. */ public static function macro($name, $macro)
  6236. {
  6237. \Illuminate\Events\Dispatcher::macro($name, $macro);
  6238. }
  6239. /**
  6240. * Mix another object into the class.
  6241. *
  6242. * @param object $mixin
  6243. * @param bool $replace
  6244. * @return void
  6245. * @throws \ReflectionException
  6246. * @static
  6247. */ public static function mixin($mixin, $replace = true)
  6248. {
  6249. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  6250. }
  6251. /**
  6252. * Checks if macro is registered.
  6253. *
  6254. * @param string $name
  6255. * @return bool
  6256. * @static
  6257. */ public static function hasMacro($name)
  6258. {
  6259. return \Illuminate\Events\Dispatcher::hasMacro($name);
  6260. }
  6261. /**
  6262. * Flush the existing macros.
  6263. *
  6264. * @return void
  6265. * @static
  6266. */ public static function flushMacros()
  6267. {
  6268. \Illuminate\Events\Dispatcher::flushMacros();
  6269. }
  6270. /**
  6271. * Specify the events that should be dispatched instead of faked.
  6272. *
  6273. * @param array|string $eventsToDispatch
  6274. * @return \Illuminate\Support\Testing\Fakes\EventFake
  6275. * @static
  6276. */ public static function except($eventsToDispatch)
  6277. {
  6278. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6279. return $instance->except($eventsToDispatch);
  6280. }
  6281. /**
  6282. * Assert if an event has a listener attached to it.
  6283. *
  6284. * @param string $expectedEvent
  6285. * @param string|array $expectedListener
  6286. * @return void
  6287. * @static
  6288. */ public static function assertListening($expectedEvent, $expectedListener)
  6289. {
  6290. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6291. $instance->assertListening($expectedEvent, $expectedListener);
  6292. }
  6293. /**
  6294. * Assert if an event was dispatched based on a truth-test callback.
  6295. *
  6296. * @param string|\Closure $event
  6297. * @param callable|int|null $callback
  6298. * @return void
  6299. * @static
  6300. */ public static function assertDispatched($event, $callback = null)
  6301. {
  6302. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6303. $instance->assertDispatched($event, $callback);
  6304. }
  6305. /**
  6306. * Assert if an event was dispatched a number of times.
  6307. *
  6308. * @param string $event
  6309. * @param int $times
  6310. * @return void
  6311. * @static
  6312. */ public static function assertDispatchedTimes($event, $times = 1)
  6313. {
  6314. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6315. $instance->assertDispatchedTimes($event, $times);
  6316. }
  6317. /**
  6318. * Determine if an event was dispatched based on a truth-test callback.
  6319. *
  6320. * @param string|\Closure $event
  6321. * @param callable|null $callback
  6322. * @return void
  6323. * @static
  6324. */ public static function assertNotDispatched($event, $callback = null)
  6325. {
  6326. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6327. $instance->assertNotDispatched($event, $callback);
  6328. }
  6329. /**
  6330. * Assert that no events were dispatched.
  6331. *
  6332. * @return void
  6333. * @static
  6334. */ public static function assertNothingDispatched()
  6335. {
  6336. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6337. $instance->assertNothingDispatched();
  6338. }
  6339. /**
  6340. * Get all of the events matching a truth-test callback.
  6341. *
  6342. * @param string $event
  6343. * @param callable|null $callback
  6344. * @return \Illuminate\Support\Collection
  6345. * @static
  6346. */ public static function dispatched($event, $callback = null)
  6347. {
  6348. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6349. return $instance->dispatched($event, $callback);
  6350. }
  6351. /**
  6352. * Determine if the given event has been dispatched.
  6353. *
  6354. * @param string $event
  6355. * @return bool
  6356. * @static
  6357. */ public static function hasDispatched($event)
  6358. {
  6359. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6360. return $instance->hasDispatched($event);
  6361. }
  6362. /**
  6363. * Get the events that have been dispatched.
  6364. *
  6365. * @return array
  6366. * @static
  6367. */ public static function dispatchedEvents()
  6368. {
  6369. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6370. return $instance->dispatchedEvents();
  6371. }
  6372. }
  6373. /**
  6374. *
  6375. *
  6376. * @see \Illuminate\Filesystem\Filesystem
  6377. */ class File {
  6378. /**
  6379. * Determine if a file or directory exists.
  6380. *
  6381. * @param string $path
  6382. * @return bool
  6383. * @static
  6384. */ public static function exists($path)
  6385. {
  6386. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6387. return $instance->exists($path);
  6388. }
  6389. /**
  6390. * Determine if a file or directory is missing.
  6391. *
  6392. * @param string $path
  6393. * @return bool
  6394. * @static
  6395. */ public static function missing($path)
  6396. {
  6397. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6398. return $instance->missing($path);
  6399. }
  6400. /**
  6401. * Get the contents of a file.
  6402. *
  6403. * @param string $path
  6404. * @param bool $lock
  6405. * @return string
  6406. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6407. * @static
  6408. */ public static function get($path, $lock = false)
  6409. {
  6410. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6411. return $instance->get($path, $lock);
  6412. }
  6413. /**
  6414. * Get the contents of a file as decoded JSON.
  6415. *
  6416. * @param string $path
  6417. * @param int $flags
  6418. * @param bool $lock
  6419. * @return array
  6420. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6421. * @static
  6422. */ public static function json($path, $flags = 0, $lock = false)
  6423. {
  6424. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6425. return $instance->json($path, $flags, $lock);
  6426. }
  6427. /**
  6428. * Get contents of a file with shared access.
  6429. *
  6430. * @param string $path
  6431. * @return string
  6432. * @static
  6433. */ public static function sharedGet($path)
  6434. {
  6435. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6436. return $instance->sharedGet($path);
  6437. }
  6438. /**
  6439. * Get the returned value of a file.
  6440. *
  6441. * @param string $path
  6442. * @param array $data
  6443. * @return mixed
  6444. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6445. * @static
  6446. */ public static function getRequire($path, $data = [])
  6447. {
  6448. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6449. return $instance->getRequire($path, $data);
  6450. }
  6451. /**
  6452. * Require the given file once.
  6453. *
  6454. * @param string $path
  6455. * @param array $data
  6456. * @return mixed
  6457. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6458. * @static
  6459. */ public static function requireOnce($path, $data = [])
  6460. {
  6461. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6462. return $instance->requireOnce($path, $data);
  6463. }
  6464. /**
  6465. * Get the contents of a file one line at a time.
  6466. *
  6467. * @param string $path
  6468. * @return \Illuminate\Support\LazyCollection
  6469. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6470. * @static
  6471. */ public static function lines($path)
  6472. {
  6473. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6474. return $instance->lines($path);
  6475. }
  6476. /**
  6477. * Get the hash of the file at the given path.
  6478. *
  6479. * @param string $path
  6480. * @param string $algorithm
  6481. * @return string|false
  6482. * @static
  6483. */ public static function hash($path, $algorithm = 'md5')
  6484. {
  6485. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6486. return $instance->hash($path, $algorithm);
  6487. }
  6488. /**
  6489. * Write the contents of a file.
  6490. *
  6491. * @param string $path
  6492. * @param string $contents
  6493. * @param bool $lock
  6494. * @return int|bool
  6495. * @static
  6496. */ public static function put($path, $contents, $lock = false)
  6497. {
  6498. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6499. return $instance->put($path, $contents, $lock);
  6500. }
  6501. /**
  6502. * Write the contents of a file, replacing it atomically if it already exists.
  6503. *
  6504. * @param string $path
  6505. * @param string $content
  6506. * @param int|null $mode
  6507. * @return void
  6508. * @static
  6509. */ public static function replace($path, $content, $mode = null)
  6510. {
  6511. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6512. $instance->replace($path, $content, $mode);
  6513. }
  6514. /**
  6515. * Replace a given string within a given file.
  6516. *
  6517. * @param array|string $search
  6518. * @param array|string $replace
  6519. * @param string $path
  6520. * @return void
  6521. * @static
  6522. */ public static function replaceInFile($search, $replace, $path)
  6523. {
  6524. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6525. $instance->replaceInFile($search, $replace, $path);
  6526. }
  6527. /**
  6528. * Prepend to a file.
  6529. *
  6530. * @param string $path
  6531. * @param string $data
  6532. * @return int
  6533. * @static
  6534. */ public static function prepend($path, $data)
  6535. {
  6536. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6537. return $instance->prepend($path, $data);
  6538. }
  6539. /**
  6540. * Append to a file.
  6541. *
  6542. * @param string $path
  6543. * @param string $data
  6544. * @param bool $lock
  6545. * @return int
  6546. * @static
  6547. */ public static function append($path, $data, $lock = false)
  6548. {
  6549. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6550. return $instance->append($path, $data, $lock);
  6551. }
  6552. /**
  6553. * Get or set UNIX mode of a file or directory.
  6554. *
  6555. * @param string $path
  6556. * @param int|null $mode
  6557. * @return mixed
  6558. * @static
  6559. */ public static function chmod($path, $mode = null)
  6560. {
  6561. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6562. return $instance->chmod($path, $mode);
  6563. }
  6564. /**
  6565. * Delete the file at a given path.
  6566. *
  6567. * @param string|array $paths
  6568. * @return bool
  6569. * @static
  6570. */ public static function delete($paths)
  6571. {
  6572. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6573. return $instance->delete($paths);
  6574. }
  6575. /**
  6576. * Move a file to a new location.
  6577. *
  6578. * @param string $path
  6579. * @param string $target
  6580. * @return bool
  6581. * @static
  6582. */ public static function move($path, $target)
  6583. {
  6584. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6585. return $instance->move($path, $target);
  6586. }
  6587. /**
  6588. * Copy a file to a new location.
  6589. *
  6590. * @param string $path
  6591. * @param string $target
  6592. * @return bool
  6593. * @static
  6594. */ public static function copy($path, $target)
  6595. {
  6596. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6597. return $instance->copy($path, $target);
  6598. }
  6599. /**
  6600. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  6601. *
  6602. * @param string $target
  6603. * @param string $link
  6604. * @return bool|null
  6605. * @static
  6606. */ public static function link($target, $link)
  6607. {
  6608. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6609. return $instance->link($target, $link);
  6610. }
  6611. /**
  6612. * Create a relative symlink to the target file or directory.
  6613. *
  6614. * @param string $target
  6615. * @param string $link
  6616. * @return void
  6617. * @throws \RuntimeException
  6618. * @static
  6619. */ public static function relativeLink($target, $link)
  6620. {
  6621. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6622. $instance->relativeLink($target, $link);
  6623. }
  6624. /**
  6625. * Extract the file name from a file path.
  6626. *
  6627. * @param string $path
  6628. * @return string
  6629. * @static
  6630. */ public static function name($path)
  6631. {
  6632. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6633. return $instance->name($path);
  6634. }
  6635. /**
  6636. * Extract the trailing name component from a file path.
  6637. *
  6638. * @param string $path
  6639. * @return string
  6640. * @static
  6641. */ public static function basename($path)
  6642. {
  6643. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6644. return $instance->basename($path);
  6645. }
  6646. /**
  6647. * Extract the parent directory from a file path.
  6648. *
  6649. * @param string $path
  6650. * @return string
  6651. * @static
  6652. */ public static function dirname($path)
  6653. {
  6654. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6655. return $instance->dirname($path);
  6656. }
  6657. /**
  6658. * Extract the file extension from a file path.
  6659. *
  6660. * @param string $path
  6661. * @return string
  6662. * @static
  6663. */ public static function extension($path)
  6664. {
  6665. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6666. return $instance->extension($path);
  6667. }
  6668. /**
  6669. * Guess the file extension from the mime-type of a given file.
  6670. *
  6671. * @param string $path
  6672. * @return string|null
  6673. * @throws \RuntimeException
  6674. * @static
  6675. */ public static function guessExtension($path)
  6676. {
  6677. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6678. return $instance->guessExtension($path);
  6679. }
  6680. /**
  6681. * Get the file type of a given file.
  6682. *
  6683. * @param string $path
  6684. * @return string
  6685. * @static
  6686. */ public static function type($path)
  6687. {
  6688. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6689. return $instance->type($path);
  6690. }
  6691. /**
  6692. * Get the mime-type of a given file.
  6693. *
  6694. * @param string $path
  6695. * @return string|false
  6696. * @static
  6697. */ public static function mimeType($path)
  6698. {
  6699. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6700. return $instance->mimeType($path);
  6701. }
  6702. /**
  6703. * Get the file size of a given file.
  6704. *
  6705. * @param string $path
  6706. * @return int
  6707. * @static
  6708. */ public static function size($path)
  6709. {
  6710. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6711. return $instance->size($path);
  6712. }
  6713. /**
  6714. * Get the file's last modification time.
  6715. *
  6716. * @param string $path
  6717. * @return int
  6718. * @static
  6719. */ public static function lastModified($path)
  6720. {
  6721. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6722. return $instance->lastModified($path);
  6723. }
  6724. /**
  6725. * Determine if the given path is a directory.
  6726. *
  6727. * @param string $directory
  6728. * @return bool
  6729. * @static
  6730. */ public static function isDirectory($directory)
  6731. {
  6732. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6733. return $instance->isDirectory($directory);
  6734. }
  6735. /**
  6736. * Determine if the given path is a directory that does not contain any other files or directories.
  6737. *
  6738. * @param string $directory
  6739. * @param bool $ignoreDotFiles
  6740. * @return bool
  6741. * @static
  6742. */ public static function isEmptyDirectory($directory, $ignoreDotFiles = false)
  6743. {
  6744. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6745. return $instance->isEmptyDirectory($directory, $ignoreDotFiles);
  6746. }
  6747. /**
  6748. * Determine if the given path is readable.
  6749. *
  6750. * @param string $path
  6751. * @return bool
  6752. * @static
  6753. */ public static function isReadable($path)
  6754. {
  6755. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6756. return $instance->isReadable($path);
  6757. }
  6758. /**
  6759. * Determine if the given path is writable.
  6760. *
  6761. * @param string $path
  6762. * @return bool
  6763. * @static
  6764. */ public static function isWritable($path)
  6765. {
  6766. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6767. return $instance->isWritable($path);
  6768. }
  6769. /**
  6770. * Determine if two files are the same by comparing their hashes.
  6771. *
  6772. * @param string $firstFile
  6773. * @param string $secondFile
  6774. * @return bool
  6775. * @static
  6776. */ public static function hasSameHash($firstFile, $secondFile)
  6777. {
  6778. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6779. return $instance->hasSameHash($firstFile, $secondFile);
  6780. }
  6781. /**
  6782. * Determine if the given path is a file.
  6783. *
  6784. * @param string $file
  6785. * @return bool
  6786. * @static
  6787. */ public static function isFile($file)
  6788. {
  6789. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6790. return $instance->isFile($file);
  6791. }
  6792. /**
  6793. * Find path names matching a given pattern.
  6794. *
  6795. * @param string $pattern
  6796. * @param int $flags
  6797. * @return array
  6798. * @static
  6799. */ public static function glob($pattern, $flags = 0)
  6800. {
  6801. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6802. return $instance->glob($pattern, $flags);
  6803. }
  6804. /**
  6805. * Get an array of all files in a directory.
  6806. *
  6807. * @param string $directory
  6808. * @param bool $hidden
  6809. * @return \Symfony\Component\Finder\SplFileInfo[]
  6810. * @static
  6811. */ public static function files($directory, $hidden = false)
  6812. {
  6813. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6814. return $instance->files($directory, $hidden);
  6815. }
  6816. /**
  6817. * Get all of the files from the given directory (recursive).
  6818. *
  6819. * @param string $directory
  6820. * @param bool $hidden
  6821. * @return \Symfony\Component\Finder\SplFileInfo[]
  6822. * @static
  6823. */ public static function allFiles($directory, $hidden = false)
  6824. {
  6825. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6826. return $instance->allFiles($directory, $hidden);
  6827. }
  6828. /**
  6829. * Get all of the directories within a given directory.
  6830. *
  6831. * @param string $directory
  6832. * @return array
  6833. * @static
  6834. */ public static function directories($directory)
  6835. {
  6836. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6837. return $instance->directories($directory);
  6838. }
  6839. /**
  6840. * Ensure a directory exists.
  6841. *
  6842. * @param string $path
  6843. * @param int $mode
  6844. * @param bool $recursive
  6845. * @return void
  6846. * @static
  6847. */ public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  6848. {
  6849. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6850. $instance->ensureDirectoryExists($path, $mode, $recursive);
  6851. }
  6852. /**
  6853. * Create a directory.
  6854. *
  6855. * @param string $path
  6856. * @param int $mode
  6857. * @param bool $recursive
  6858. * @param bool $force
  6859. * @return bool
  6860. * @static
  6861. */ public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  6862. {
  6863. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6864. return $instance->makeDirectory($path, $mode, $recursive, $force);
  6865. }
  6866. /**
  6867. * Move a directory.
  6868. *
  6869. * @param string $from
  6870. * @param string $to
  6871. * @param bool $overwrite
  6872. * @return bool
  6873. * @static
  6874. */ public static function moveDirectory($from, $to, $overwrite = false)
  6875. {
  6876. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6877. return $instance->moveDirectory($from, $to, $overwrite);
  6878. }
  6879. /**
  6880. * Copy a directory from one location to another.
  6881. *
  6882. * @param string $directory
  6883. * @param string $destination
  6884. * @param int|null $options
  6885. * @return bool
  6886. * @static
  6887. */ public static function copyDirectory($directory, $destination, $options = null)
  6888. {
  6889. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6890. return $instance->copyDirectory($directory, $destination, $options);
  6891. }
  6892. /**
  6893. * Recursively delete a directory.
  6894. *
  6895. * The directory itself may be optionally preserved.
  6896. *
  6897. * @param string $directory
  6898. * @param bool $preserve
  6899. * @return bool
  6900. * @static
  6901. */ public static function deleteDirectory($directory, $preserve = false)
  6902. {
  6903. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6904. return $instance->deleteDirectory($directory, $preserve);
  6905. }
  6906. /**
  6907. * Remove all of the directories within a given directory.
  6908. *
  6909. * @param string $directory
  6910. * @return bool
  6911. * @static
  6912. */ public static function deleteDirectories($directory)
  6913. {
  6914. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6915. return $instance->deleteDirectories($directory);
  6916. }
  6917. /**
  6918. * Empty the specified directory of all files and folders.
  6919. *
  6920. * @param string $directory
  6921. * @return bool
  6922. * @static
  6923. */ public static function cleanDirectory($directory)
  6924. {
  6925. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6926. return $instance->cleanDirectory($directory);
  6927. }
  6928. /**
  6929. * Apply the callback if the given "value" is (or resolves to) truthy.
  6930. *
  6931. * @template TWhenParameter
  6932. * @template TWhenReturnType
  6933. * @param (\Closure($this): TWhenParameter)|\Illuminate\Filesystem\TWhenParameter|null $value
  6934. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  6935. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  6936. * @return $this|\Illuminate\Filesystem\TWhenReturnType
  6937. * @static
  6938. */ public static function when($value = null, $callback = null, $default = null)
  6939. {
  6940. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6941. return $instance->when($value, $callback, $default);
  6942. }
  6943. /**
  6944. * Apply the callback if the given "value" is (or resolves to) falsy.
  6945. *
  6946. * @template TUnlessParameter
  6947. * @template TUnlessReturnType
  6948. * @param (\Closure($this): TUnlessParameter)|\Illuminate\Filesystem\TUnlessParameter|null $value
  6949. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  6950. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  6951. * @return $this|\Illuminate\Filesystem\TUnlessReturnType
  6952. * @static
  6953. */ public static function unless($value = null, $callback = null, $default = null)
  6954. {
  6955. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6956. return $instance->unless($value, $callback, $default);
  6957. }
  6958. /**
  6959. * Register a custom macro.
  6960. *
  6961. * @param string $name
  6962. * @param object|callable $macro
  6963. * @param-closure-this static $macro
  6964. * @return void
  6965. * @static
  6966. */ public static function macro($name, $macro)
  6967. {
  6968. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  6969. }
  6970. /**
  6971. * Mix another object into the class.
  6972. *
  6973. * @param object $mixin
  6974. * @param bool $replace
  6975. * @return void
  6976. * @throws \ReflectionException
  6977. * @static
  6978. */ public static function mixin($mixin, $replace = true)
  6979. {
  6980. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  6981. }
  6982. /**
  6983. * Checks if macro is registered.
  6984. *
  6985. * @param string $name
  6986. * @return bool
  6987. * @static
  6988. */ public static function hasMacro($name)
  6989. {
  6990. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  6991. }
  6992. /**
  6993. * Flush the existing macros.
  6994. *
  6995. * @return void
  6996. * @static
  6997. */ public static function flushMacros()
  6998. {
  6999. \Illuminate\Filesystem\Filesystem::flushMacros();
  7000. }
  7001. }
  7002. /**
  7003. *
  7004. *
  7005. * @see \Illuminate\Auth\Access\Gate
  7006. */ class Gate {
  7007. /**
  7008. * Determine if a given ability has been defined.
  7009. *
  7010. * @param string|array $ability
  7011. * @return bool
  7012. * @static
  7013. */ public static function has($ability)
  7014. {
  7015. /** @var \Illuminate\Auth\Access\Gate $instance */
  7016. return $instance->has($ability);
  7017. }
  7018. /**
  7019. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
  7020. *
  7021. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  7022. * @param string|null $message
  7023. * @param string|null $code
  7024. * @return \Illuminate\Auth\Access\Response
  7025. * @throws \Illuminate\Auth\Access\AuthorizationException
  7026. * @static
  7027. */ public static function allowIf($condition, $message = null, $code = null)
  7028. {
  7029. /** @var \Illuminate\Auth\Access\Gate $instance */
  7030. return $instance->allowIf($condition, $message, $code);
  7031. }
  7032. /**
  7033. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
  7034. *
  7035. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  7036. * @param string|null $message
  7037. * @param string|null $code
  7038. * @return \Illuminate\Auth\Access\Response
  7039. * @throws \Illuminate\Auth\Access\AuthorizationException
  7040. * @static
  7041. */ public static function denyIf($condition, $message = null, $code = null)
  7042. {
  7043. /** @var \Illuminate\Auth\Access\Gate $instance */
  7044. return $instance->denyIf($condition, $message, $code);
  7045. }
  7046. /**
  7047. * Define a new ability.
  7048. *
  7049. * @param \BackedEnum|string $ability
  7050. * @param callable|array|string $callback
  7051. * @return \Illuminate\Auth\Access\Gate
  7052. * @throws \InvalidArgumentException
  7053. * @static
  7054. */ public static function define($ability, $callback)
  7055. {
  7056. /** @var \Illuminate\Auth\Access\Gate $instance */
  7057. return $instance->define($ability, $callback);
  7058. }
  7059. /**
  7060. * Define abilities for a resource.
  7061. *
  7062. * @param string $name
  7063. * @param string $class
  7064. * @param array|null $abilities
  7065. * @return \Illuminate\Auth\Access\Gate
  7066. * @static
  7067. */ public static function resource($name, $class, $abilities = null)
  7068. {
  7069. /** @var \Illuminate\Auth\Access\Gate $instance */
  7070. return $instance->resource($name, $class, $abilities);
  7071. }
  7072. /**
  7073. * Define a policy class for a given class type.
  7074. *
  7075. * @param string $class
  7076. * @param string $policy
  7077. * @return \Illuminate\Auth\Access\Gate
  7078. * @static
  7079. */ public static function policy($class, $policy)
  7080. {
  7081. /** @var \Illuminate\Auth\Access\Gate $instance */
  7082. return $instance->policy($class, $policy);
  7083. }
  7084. /**
  7085. * Register a callback to run before all Gate checks.
  7086. *
  7087. * @param callable $callback
  7088. * @return \Illuminate\Auth\Access\Gate
  7089. * @static
  7090. */ public static function before($callback)
  7091. {
  7092. /** @var \Illuminate\Auth\Access\Gate $instance */
  7093. return $instance->before($callback);
  7094. }
  7095. /**
  7096. * Register a callback to run after all Gate checks.
  7097. *
  7098. * @param callable $callback
  7099. * @return \Illuminate\Auth\Access\Gate
  7100. * @static
  7101. */ public static function after($callback)
  7102. {
  7103. /** @var \Illuminate\Auth\Access\Gate $instance */
  7104. return $instance->after($callback);
  7105. }
  7106. /**
  7107. * Determine if all of the given abilities should be granted for the current user.
  7108. *
  7109. * @param \Illuminate\Auth\Access\iterable|\BackedEnum|string $ability
  7110. * @param array|mixed $arguments
  7111. * @return bool
  7112. * @static
  7113. */ public static function allows($ability, $arguments = [])
  7114. {
  7115. /** @var \Illuminate\Auth\Access\Gate $instance */
  7116. return $instance->allows($ability, $arguments);
  7117. }
  7118. /**
  7119. * Determine if any of the given abilities should be denied for the current user.
  7120. *
  7121. * @param \Illuminate\Auth\Access\iterable|\BackedEnum|string $ability
  7122. * @param array|mixed $arguments
  7123. * @return bool
  7124. * @static
  7125. */ public static function denies($ability, $arguments = [])
  7126. {
  7127. /** @var \Illuminate\Auth\Access\Gate $instance */
  7128. return $instance->denies($ability, $arguments);
  7129. }
  7130. /**
  7131. * Determine if all of the given abilities should be granted for the current user.
  7132. *
  7133. * @param \Illuminate\Auth\Access\iterable|\BackedEnum|string $abilities
  7134. * @param array|mixed $arguments
  7135. * @return bool
  7136. * @static
  7137. */ public static function check($abilities, $arguments = [])
  7138. {
  7139. /** @var \Illuminate\Auth\Access\Gate $instance */
  7140. return $instance->check($abilities, $arguments);
  7141. }
  7142. /**
  7143. * Determine if any one of the given abilities should be granted for the current user.
  7144. *
  7145. * @param \Illuminate\Auth\Access\iterable|\BackedEnum|string $abilities
  7146. * @param array|mixed $arguments
  7147. * @return bool
  7148. * @static
  7149. */ public static function any($abilities, $arguments = [])
  7150. {
  7151. /** @var \Illuminate\Auth\Access\Gate $instance */
  7152. return $instance->any($abilities, $arguments);
  7153. }
  7154. /**
  7155. * Determine if all of the given abilities should be denied for the current user.
  7156. *
  7157. * @param \Illuminate\Auth\Access\iterable|\BackedEnum|string $abilities
  7158. * @param array|mixed $arguments
  7159. * @return bool
  7160. * @static
  7161. */ public static function none($abilities, $arguments = [])
  7162. {
  7163. /** @var \Illuminate\Auth\Access\Gate $instance */
  7164. return $instance->none($abilities, $arguments);
  7165. }
  7166. /**
  7167. * Determine if the given ability should be granted for the current user.
  7168. *
  7169. * @param \BackedEnum|string $ability
  7170. * @param array|mixed $arguments
  7171. * @return \Illuminate\Auth\Access\Response
  7172. * @throws \Illuminate\Auth\Access\AuthorizationException
  7173. * @static
  7174. */ public static function authorize($ability, $arguments = [])
  7175. {
  7176. /** @var \Illuminate\Auth\Access\Gate $instance */
  7177. return $instance->authorize($ability, $arguments);
  7178. }
  7179. /**
  7180. * Inspect the user for the given ability.
  7181. *
  7182. * @param \BackedEnum|string $ability
  7183. * @param array|mixed $arguments
  7184. * @return \Illuminate\Auth\Access\Response
  7185. * @static
  7186. */ public static function inspect($ability, $arguments = [])
  7187. {
  7188. /** @var \Illuminate\Auth\Access\Gate $instance */
  7189. return $instance->inspect($ability, $arguments);
  7190. }
  7191. /**
  7192. * Get the raw result from the authorization callback.
  7193. *
  7194. * @param string $ability
  7195. * @param array|mixed $arguments
  7196. * @return mixed
  7197. * @throws \Illuminate\Auth\Access\AuthorizationException
  7198. * @static
  7199. */ public static function raw($ability, $arguments = [])
  7200. {
  7201. /** @var \Illuminate\Auth\Access\Gate $instance */
  7202. return $instance->raw($ability, $arguments);
  7203. }
  7204. /**
  7205. * Get a policy instance for a given class.
  7206. *
  7207. * @param object|string $class
  7208. * @return mixed
  7209. * @static
  7210. */ public static function getPolicyFor($class)
  7211. {
  7212. /** @var \Illuminate\Auth\Access\Gate $instance */
  7213. return $instance->getPolicyFor($class);
  7214. }
  7215. /**
  7216. * Specify a callback to be used to guess policy names.
  7217. *
  7218. * @param callable $callback
  7219. * @return \Illuminate\Auth\Access\Gate
  7220. * @static
  7221. */ public static function guessPolicyNamesUsing($callback)
  7222. {
  7223. /** @var \Illuminate\Auth\Access\Gate $instance */
  7224. return $instance->guessPolicyNamesUsing($callback);
  7225. }
  7226. /**
  7227. * Build a policy class instance of the given type.
  7228. *
  7229. * @param object|string $class
  7230. * @return mixed
  7231. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  7232. * @static
  7233. */ public static function resolvePolicy($class)
  7234. {
  7235. /** @var \Illuminate\Auth\Access\Gate $instance */
  7236. return $instance->resolvePolicy($class);
  7237. }
  7238. /**
  7239. * Get a gate instance for the given user.
  7240. *
  7241. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  7242. * @return static
  7243. * @static
  7244. */ public static function forUser($user)
  7245. {
  7246. /** @var \Illuminate\Auth\Access\Gate $instance */
  7247. return $instance->forUser($user);
  7248. }
  7249. /**
  7250. * Get all of the defined abilities.
  7251. *
  7252. * @return array
  7253. * @static
  7254. */ public static function abilities()
  7255. {
  7256. /** @var \Illuminate\Auth\Access\Gate $instance */
  7257. return $instance->abilities();
  7258. }
  7259. /**
  7260. * Get all of the defined policies.
  7261. *
  7262. * @return array
  7263. * @static
  7264. */ public static function policies()
  7265. {
  7266. /** @var \Illuminate\Auth\Access\Gate $instance */
  7267. return $instance->policies();
  7268. }
  7269. /**
  7270. * Set the default denial response for gates and policies.
  7271. *
  7272. * @param \Illuminate\Auth\Access\Response $response
  7273. * @return \Illuminate\Auth\Access\Gate
  7274. * @static
  7275. */ public static function defaultDenialResponse($response)
  7276. {
  7277. /** @var \Illuminate\Auth\Access\Gate $instance */
  7278. return $instance->defaultDenialResponse($response);
  7279. }
  7280. /**
  7281. * Set the container instance used by the gate.
  7282. *
  7283. * @param \Illuminate\Contracts\Container\Container $container
  7284. * @return \Illuminate\Auth\Access\Gate
  7285. * @static
  7286. */ public static function setContainer($container)
  7287. {
  7288. /** @var \Illuminate\Auth\Access\Gate $instance */
  7289. return $instance->setContainer($container);
  7290. }
  7291. /**
  7292. * Deny with a HTTP status code.
  7293. *
  7294. * @param int $status
  7295. * @param string|null $message
  7296. * @param int|null $code
  7297. * @return \Illuminate\Auth\Access\Response
  7298. * @static
  7299. */ public static function denyWithStatus($status, $message = null, $code = null)
  7300. {
  7301. /** @var \Illuminate\Auth\Access\Gate $instance */
  7302. return $instance->denyWithStatus($status, $message, $code);
  7303. }
  7304. /**
  7305. * Deny with a 404 HTTP status code.
  7306. *
  7307. * @param string|null $message
  7308. * @param int|null $code
  7309. * @return \Illuminate\Auth\Access\Response
  7310. * @static
  7311. */ public static function denyAsNotFound($message = null, $code = null)
  7312. {
  7313. /** @var \Illuminate\Auth\Access\Gate $instance */
  7314. return $instance->denyAsNotFound($message, $code);
  7315. }
  7316. }
  7317. /**
  7318. *
  7319. *
  7320. * @see \Illuminate\Hashing\HashManager
  7321. * @see \Illuminate\Hashing\AbstractHasher
  7322. */ class Hash {
  7323. /**
  7324. * Create an instance of the Bcrypt hash Driver.
  7325. *
  7326. * @return \Illuminate\Hashing\BcryptHasher
  7327. * @static
  7328. */ public static function createBcryptDriver()
  7329. {
  7330. /** @var \Illuminate\Hashing\HashManager $instance */
  7331. return $instance->createBcryptDriver();
  7332. }
  7333. /**
  7334. * Create an instance of the Argon2i hash Driver.
  7335. *
  7336. * @return \Illuminate\Hashing\ArgonHasher
  7337. * @static
  7338. */ public static function createArgonDriver()
  7339. {
  7340. /** @var \Illuminate\Hashing\HashManager $instance */
  7341. return $instance->createArgonDriver();
  7342. }
  7343. /**
  7344. * Create an instance of the Argon2id hash Driver.
  7345. *
  7346. * @return \Illuminate\Hashing\Argon2IdHasher
  7347. * @static
  7348. */ public static function createArgon2idDriver()
  7349. {
  7350. /** @var \Illuminate\Hashing\HashManager $instance */
  7351. return $instance->createArgon2idDriver();
  7352. }
  7353. /**
  7354. * Get information about the given hashed value.
  7355. *
  7356. * @param string $hashedValue
  7357. * @return array
  7358. * @static
  7359. */ public static function info($hashedValue)
  7360. {
  7361. /** @var \Illuminate\Hashing\HashManager $instance */
  7362. return $instance->info($hashedValue);
  7363. }
  7364. /**
  7365. * Hash the given value.
  7366. *
  7367. * @param string $value
  7368. * @param array $options
  7369. * @return string
  7370. * @static
  7371. */ public static function make($value, $options = [])
  7372. {
  7373. /** @var \Illuminate\Hashing\HashManager $instance */
  7374. return $instance->make($value, $options);
  7375. }
  7376. /**
  7377. * Check the given plain value against a hash.
  7378. *
  7379. * @param string $value
  7380. * @param string $hashedValue
  7381. * @param array $options
  7382. * @return bool
  7383. * @static
  7384. */ public static function check($value, $hashedValue, $options = [])
  7385. {
  7386. /** @var \Illuminate\Hashing\HashManager $instance */
  7387. return $instance->check($value, $hashedValue, $options);
  7388. }
  7389. /**
  7390. * Check if the given hash has been hashed using the given options.
  7391. *
  7392. * @param string $hashedValue
  7393. * @param array $options
  7394. * @return bool
  7395. * @static
  7396. */ public static function needsRehash($hashedValue, $options = [])
  7397. {
  7398. /** @var \Illuminate\Hashing\HashManager $instance */
  7399. return $instance->needsRehash($hashedValue, $options);
  7400. }
  7401. /**
  7402. * Determine if a given string is already hashed.
  7403. *
  7404. * @param string $value
  7405. * @return bool
  7406. * @static
  7407. */ public static function isHashed($value)
  7408. {
  7409. /** @var \Illuminate\Hashing\HashManager $instance */
  7410. return $instance->isHashed($value);
  7411. }
  7412. /**
  7413. * Get the default driver name.
  7414. *
  7415. * @return string
  7416. * @static
  7417. */ public static function getDefaultDriver()
  7418. {
  7419. /** @var \Illuminate\Hashing\HashManager $instance */
  7420. return $instance->getDefaultDriver();
  7421. }
  7422. /**
  7423. * Verifies that the configuration is less than or equal to what is configured.
  7424. *
  7425. * @param array $value
  7426. * @return bool
  7427. * @internal
  7428. * @static
  7429. */ public static function verifyConfiguration($value)
  7430. {
  7431. /** @var \Illuminate\Hashing\HashManager $instance */
  7432. return $instance->verifyConfiguration($value);
  7433. }
  7434. /**
  7435. * Get a driver instance.
  7436. *
  7437. * @param string|null $driver
  7438. * @return mixed
  7439. * @throws \InvalidArgumentException
  7440. * @static
  7441. */ public static function driver($driver = null)
  7442. { //Method inherited from \Illuminate\Support\Manager
  7443. /** @var \Illuminate\Hashing\HashManager $instance */
  7444. return $instance->driver($driver);
  7445. }
  7446. /**
  7447. * Register a custom driver creator Closure.
  7448. *
  7449. * @param string $driver
  7450. * @param \Closure $callback
  7451. * @return \Illuminate\Hashing\HashManager
  7452. * @static
  7453. */ public static function extend($driver, $callback)
  7454. { //Method inherited from \Illuminate\Support\Manager
  7455. /** @var \Illuminate\Hashing\HashManager $instance */
  7456. return $instance->extend($driver, $callback);
  7457. }
  7458. /**
  7459. * Get all of the created "drivers".
  7460. *
  7461. * @return array
  7462. * @static
  7463. */ public static function getDrivers()
  7464. { //Method inherited from \Illuminate\Support\Manager
  7465. /** @var \Illuminate\Hashing\HashManager $instance */
  7466. return $instance->getDrivers();
  7467. }
  7468. /**
  7469. * Get the container instance used by the manager.
  7470. *
  7471. * @return \Illuminate\Contracts\Container\Container
  7472. * @static
  7473. */ public static function getContainer()
  7474. { //Method inherited from \Illuminate\Support\Manager
  7475. /** @var \Illuminate\Hashing\HashManager $instance */
  7476. return $instance->getContainer();
  7477. }
  7478. /**
  7479. * Set the container instance used by the manager.
  7480. *
  7481. * @param \Illuminate\Contracts\Container\Container $container
  7482. * @return \Illuminate\Hashing\HashManager
  7483. * @static
  7484. */ public static function setContainer($container)
  7485. { //Method inherited from \Illuminate\Support\Manager
  7486. /** @var \Illuminate\Hashing\HashManager $instance */
  7487. return $instance->setContainer($container);
  7488. }
  7489. /**
  7490. * Forget all of the resolved driver instances.
  7491. *
  7492. * @return \Illuminate\Hashing\HashManager
  7493. * @static
  7494. */ public static function forgetDrivers()
  7495. { //Method inherited from \Illuminate\Support\Manager
  7496. /** @var \Illuminate\Hashing\HashManager $instance */
  7497. return $instance->forgetDrivers();
  7498. }
  7499. }
  7500. /**
  7501. *
  7502. *
  7503. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  7504. * @method static \Illuminate\Http\Client\PendingRequest withBody(\Psr\Http\Message\StreamInterface|string $content, string $contentType = 'application/json')
  7505. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  7506. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  7507. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string|resource $contents = '', string|null $filename = null, array $headers = [])
  7508. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  7509. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  7510. * @method static \Illuminate\Http\Client\PendingRequest withQueryParameters(array $parameters)
  7511. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  7512. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  7513. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  7514. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  7515. * @method static \Illuminate\Http\Client\PendingRequest withHeader(string $name, mixed $value)
  7516. * @method static \Illuminate\Http\Client\PendingRequest replaceHeaders(array $headers)
  7517. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  7518. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  7519. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  7520. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string|bool $userAgent)
  7521. * @method static \Illuminate\Http\Client\PendingRequest withUrlParameters(array $parameters = [])
  7522. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  7523. * @method static \Illuminate\Http\Client\PendingRequest maxRedirects(int $max)
  7524. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  7525. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  7526. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  7527. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  7528. * @method static \Illuminate\Http\Client\PendingRequest connectTimeout(int $seconds)
  7529. * @method static \Illuminate\Http\Client\PendingRequest retry(array|int $times, \Closure|int $sleepMilliseconds = 0, callable|null $when = null, bool $throw = true)
  7530. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  7531. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  7532. * @method static \Illuminate\Http\Client\PendingRequest withRequestMiddleware(callable $middleware)
  7533. * @method static \Illuminate\Http\Client\PendingRequest withResponseMiddleware(callable $middleware)
  7534. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  7535. * @method static \Illuminate\Http\Client\PendingRequest throw(callable|null $callback = null)
  7536. * @method static \Illuminate\Http\Client\PendingRequest throwIf(callable|bool $condition)
  7537. * @method static \Illuminate\Http\Client\PendingRequest throwUnless(callable|bool $condition)
  7538. * @method static \Illuminate\Http\Client\PendingRequest dump()
  7539. * @method static \Illuminate\Http\Client\PendingRequest dd()
  7540. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  7541. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  7542. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  7543. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  7544. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  7545. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  7546. * @method static array pool(callable $callback)
  7547. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  7548. * @method static \GuzzleHttp\Client buildClient()
  7549. * @method static \GuzzleHttp\Client createClient(\GuzzleHttp\HandlerStack $handlerStack)
  7550. * @method static \GuzzleHttp\HandlerStack buildHandlerStack()
  7551. * @method static \GuzzleHttp\HandlerStack pushHandlers(\GuzzleHttp\HandlerStack $handlerStack)
  7552. * @method static \Closure buildBeforeSendingHandler()
  7553. * @method static \Closure buildRecorderHandler()
  7554. * @method static \Closure buildStubHandler()
  7555. * @method static \GuzzleHttp\Psr7\RequestInterface runBeforeSendingCallbacks(\GuzzleHttp\Psr7\RequestInterface $request, array $options)
  7556. * @method static array mergeOptions(array ...$options)
  7557. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  7558. * @method static \Illuminate\Http\Client\PendingRequest async(bool $async = true)
  7559. * @method static \GuzzleHttp\Promise\PromiseInterface|null getPromise()
  7560. * @method static \Illuminate\Http\Client\PendingRequest setClient(\GuzzleHttp\Client $client)
  7561. * @method static \Illuminate\Http\Client\PendingRequest setHandler(callable $handler)
  7562. * @method static array getOptions()
  7563. * @method static \Illuminate\Http\Client\PendingRequest|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  7564. * @method static \Illuminate\Http\Client\PendingRequest|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  7565. * @see \Illuminate\Http\Client\Factory
  7566. */ class Http {
  7567. /**
  7568. * Add middleware to apply to every request.
  7569. *
  7570. * @param callable $middleware
  7571. * @return \Illuminate\Http\Client\Factory
  7572. * @static
  7573. */ public static function globalMiddleware($middleware)
  7574. {
  7575. /** @var \Illuminate\Http\Client\Factory $instance */
  7576. return $instance->globalMiddleware($middleware);
  7577. }
  7578. /**
  7579. * Add request middleware to apply to every request.
  7580. *
  7581. * @param callable $middleware
  7582. * @return \Illuminate\Http\Client\Factory
  7583. * @static
  7584. */ public static function globalRequestMiddleware($middleware)
  7585. {
  7586. /** @var \Illuminate\Http\Client\Factory $instance */
  7587. return $instance->globalRequestMiddleware($middleware);
  7588. }
  7589. /**
  7590. * Add response middleware to apply to every request.
  7591. *
  7592. * @param callable $middleware
  7593. * @return \Illuminate\Http\Client\Factory
  7594. * @static
  7595. */ public static function globalResponseMiddleware($middleware)
  7596. {
  7597. /** @var \Illuminate\Http\Client\Factory $instance */
  7598. return $instance->globalResponseMiddleware($middleware);
  7599. }
  7600. /**
  7601. * Set the options to apply to every request.
  7602. *
  7603. * @param \Closure|array $options
  7604. * @return \Illuminate\Http\Client\Factory
  7605. * @static
  7606. */ public static function globalOptions($options)
  7607. {
  7608. /** @var \Illuminate\Http\Client\Factory $instance */
  7609. return $instance->globalOptions($options);
  7610. }
  7611. /**
  7612. * Create a new response instance for use during stubbing.
  7613. *
  7614. * @param array|string|null $body
  7615. * @param int $status
  7616. * @param array $headers
  7617. * @return \GuzzleHttp\Promise\PromiseInterface
  7618. * @static
  7619. */ public static function response($body = null, $status = 200, $headers = [])
  7620. {
  7621. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  7622. }
  7623. /**
  7624. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  7625. *
  7626. * @param array $responses
  7627. * @return \Illuminate\Http\Client\ResponseSequence
  7628. * @static
  7629. */ public static function sequence($responses = [])
  7630. {
  7631. /** @var \Illuminate\Http\Client\Factory $instance */
  7632. return $instance->sequence($responses);
  7633. }
  7634. /**
  7635. * Register a stub callable that will intercept requests and be able to return stub responses.
  7636. *
  7637. * @param callable|array|null $callback
  7638. * @return \Illuminate\Http\Client\Factory
  7639. * @static
  7640. */ public static function fake($callback = null)
  7641. {
  7642. /** @var \Illuminate\Http\Client\Factory $instance */
  7643. return $instance->fake($callback);
  7644. }
  7645. /**
  7646. * Register a response sequence for the given URL pattern.
  7647. *
  7648. * @param string $url
  7649. * @return \Illuminate\Http\Client\ResponseSequence
  7650. * @static
  7651. */ public static function fakeSequence($url = '*')
  7652. {
  7653. /** @var \Illuminate\Http\Client\Factory $instance */
  7654. return $instance->fakeSequence($url);
  7655. }
  7656. /**
  7657. * Stub the given URL using the given callback.
  7658. *
  7659. * @param string $url
  7660. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  7661. * @return \Illuminate\Http\Client\Factory
  7662. * @static
  7663. */ public static function stubUrl($url, $callback)
  7664. {
  7665. /** @var \Illuminate\Http\Client\Factory $instance */
  7666. return $instance->stubUrl($url, $callback);
  7667. }
  7668. /**
  7669. * Indicate that an exception should be thrown if any request is not faked.
  7670. *
  7671. * @param bool $prevent
  7672. * @return \Illuminate\Http\Client\Factory
  7673. * @static
  7674. */ public static function preventStrayRequests($prevent = true)
  7675. {
  7676. /** @var \Illuminate\Http\Client\Factory $instance */
  7677. return $instance->preventStrayRequests($prevent);
  7678. }
  7679. /**
  7680. * Determine if stray requests are being prevented.
  7681. *
  7682. * @return bool
  7683. * @static
  7684. */ public static function preventingStrayRequests()
  7685. {
  7686. /** @var \Illuminate\Http\Client\Factory $instance */
  7687. return $instance->preventingStrayRequests();
  7688. }
  7689. /**
  7690. * Indicate that an exception should not be thrown if any request is not faked.
  7691. *
  7692. * @return \Illuminate\Http\Client\Factory
  7693. * @static
  7694. */ public static function allowStrayRequests()
  7695. {
  7696. /** @var \Illuminate\Http\Client\Factory $instance */
  7697. return $instance->allowStrayRequests();
  7698. }
  7699. /**
  7700. * Record a request response pair.
  7701. *
  7702. * @param \Illuminate\Http\Client\Request $request
  7703. * @param \Illuminate\Http\Client\Response $response
  7704. * @return void
  7705. * @static
  7706. */ public static function recordRequestResponsePair($request, $response)
  7707. {
  7708. /** @var \Illuminate\Http\Client\Factory $instance */
  7709. $instance->recordRequestResponsePair($request, $response);
  7710. }
  7711. /**
  7712. * Assert that a request / response pair was recorded matching a given truth test.
  7713. *
  7714. * @param callable $callback
  7715. * @return void
  7716. * @static
  7717. */ public static function assertSent($callback)
  7718. {
  7719. /** @var \Illuminate\Http\Client\Factory $instance */
  7720. $instance->assertSent($callback);
  7721. }
  7722. /**
  7723. * Assert that the given request was sent in the given order.
  7724. *
  7725. * @param array $callbacks
  7726. * @return void
  7727. * @static
  7728. */ public static function assertSentInOrder($callbacks)
  7729. {
  7730. /** @var \Illuminate\Http\Client\Factory $instance */
  7731. $instance->assertSentInOrder($callbacks);
  7732. }
  7733. /**
  7734. * Assert that a request / response pair was not recorded matching a given truth test.
  7735. *
  7736. * @param callable $callback
  7737. * @return void
  7738. * @static
  7739. */ public static function assertNotSent($callback)
  7740. {
  7741. /** @var \Illuminate\Http\Client\Factory $instance */
  7742. $instance->assertNotSent($callback);
  7743. }
  7744. /**
  7745. * Assert that no request / response pair was recorded.
  7746. *
  7747. * @return void
  7748. * @static
  7749. */ public static function assertNothingSent()
  7750. {
  7751. /** @var \Illuminate\Http\Client\Factory $instance */
  7752. $instance->assertNothingSent();
  7753. }
  7754. /**
  7755. * Assert how many requests have been recorded.
  7756. *
  7757. * @param int $count
  7758. * @return void
  7759. * @static
  7760. */ public static function assertSentCount($count)
  7761. {
  7762. /** @var \Illuminate\Http\Client\Factory $instance */
  7763. $instance->assertSentCount($count);
  7764. }
  7765. /**
  7766. * Assert that every created response sequence is empty.
  7767. *
  7768. * @return void
  7769. * @static
  7770. */ public static function assertSequencesAreEmpty()
  7771. {
  7772. /** @var \Illuminate\Http\Client\Factory $instance */
  7773. $instance->assertSequencesAreEmpty();
  7774. }
  7775. /**
  7776. * Get a collection of the request / response pairs matching the given truth test.
  7777. *
  7778. * @param callable $callback
  7779. * @return \Illuminate\Support\Collection
  7780. * @static
  7781. */ public static function recorded($callback = null)
  7782. {
  7783. /** @var \Illuminate\Http\Client\Factory $instance */
  7784. return $instance->recorded($callback);
  7785. }
  7786. /**
  7787. * Create a new pending request instance for this factory.
  7788. *
  7789. * @return \Illuminate\Http\Client\PendingRequest
  7790. * @static
  7791. */ public static function createPendingRequest()
  7792. {
  7793. /** @var \Illuminate\Http\Client\Factory $instance */
  7794. return $instance->createPendingRequest();
  7795. }
  7796. /**
  7797. * Get the current event dispatcher implementation.
  7798. *
  7799. * @return \Illuminate\Contracts\Events\Dispatcher|null
  7800. * @static
  7801. */ public static function getDispatcher()
  7802. {
  7803. /** @var \Illuminate\Http\Client\Factory $instance */
  7804. return $instance->getDispatcher();
  7805. }
  7806. /**
  7807. * Get the array of global middleware.
  7808. *
  7809. * @return array
  7810. * @static
  7811. */ public static function getGlobalMiddleware()
  7812. {
  7813. /** @var \Illuminate\Http\Client\Factory $instance */
  7814. return $instance->getGlobalMiddleware();
  7815. }
  7816. /**
  7817. * Register a custom macro.
  7818. *
  7819. * @param string $name
  7820. * @param object|callable $macro
  7821. * @param-closure-this static $macro
  7822. * @return void
  7823. * @static
  7824. */ public static function macro($name, $macro)
  7825. {
  7826. \Illuminate\Http\Client\Factory::macro($name, $macro);
  7827. }
  7828. /**
  7829. * Mix another object into the class.
  7830. *
  7831. * @param object $mixin
  7832. * @param bool $replace
  7833. * @return void
  7834. * @throws \ReflectionException
  7835. * @static
  7836. */ public static function mixin($mixin, $replace = true)
  7837. {
  7838. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  7839. }
  7840. /**
  7841. * Checks if macro is registered.
  7842. *
  7843. * @param string $name
  7844. * @return bool
  7845. * @static
  7846. */ public static function hasMacro($name)
  7847. {
  7848. return \Illuminate\Http\Client\Factory::hasMacro($name);
  7849. }
  7850. /**
  7851. * Flush the existing macros.
  7852. *
  7853. * @return void
  7854. * @static
  7855. */ public static function flushMacros()
  7856. {
  7857. \Illuminate\Http\Client\Factory::flushMacros();
  7858. }
  7859. /**
  7860. * Dynamically handle calls to the class.
  7861. *
  7862. * @param string $method
  7863. * @param array $parameters
  7864. * @return mixed
  7865. * @throws \BadMethodCallException
  7866. * @static
  7867. */ public static function macroCall($method, $parameters)
  7868. {
  7869. /** @var \Illuminate\Http\Client\Factory $instance */
  7870. return $instance->macroCall($method, $parameters);
  7871. }
  7872. }
  7873. /**
  7874. *
  7875. *
  7876. * @see \Illuminate\Translation\Translator
  7877. */ class Lang {
  7878. /**
  7879. * Determine if a translation exists for a given locale.
  7880. *
  7881. * @param string $key
  7882. * @param string|null $locale
  7883. * @return bool
  7884. * @static
  7885. */ public static function hasForLocale($key, $locale = null)
  7886. {
  7887. /** @var \Illuminate\Translation\Translator $instance */
  7888. return $instance->hasForLocale($key, $locale);
  7889. }
  7890. /**
  7891. * Determine if a translation exists.
  7892. *
  7893. * @param string $key
  7894. * @param string|null $locale
  7895. * @param bool $fallback
  7896. * @return bool
  7897. * @static
  7898. */ public static function has($key, $locale = null, $fallback = true)
  7899. {
  7900. /** @var \Illuminate\Translation\Translator $instance */
  7901. return $instance->has($key, $locale, $fallback);
  7902. }
  7903. /**
  7904. * Get the translation for the given key.
  7905. *
  7906. * @param string $key
  7907. * @param array $replace
  7908. * @param string|null $locale
  7909. * @param bool $fallback
  7910. * @return string|array
  7911. * @static
  7912. */ public static function get($key, $replace = [], $locale = null, $fallback = true)
  7913. {
  7914. /** @var \Illuminate\Translation\Translator $instance */
  7915. return $instance->get($key, $replace, $locale, $fallback);
  7916. }
  7917. /**
  7918. * Get a translation according to an integer value.
  7919. *
  7920. * @param string $key
  7921. * @param \Countable|int|float|array $number
  7922. * @param array $replace
  7923. * @param string|null $locale
  7924. * @return string
  7925. * @static
  7926. */ public static function choice($key, $number, $replace = [], $locale = null)
  7927. {
  7928. /** @var \Illuminate\Translation\Translator $instance */
  7929. return $instance->choice($key, $number, $replace, $locale);
  7930. }
  7931. /**
  7932. * Add translation lines to the given locale.
  7933. *
  7934. * @param array $lines
  7935. * @param string $locale
  7936. * @param string $namespace
  7937. * @return void
  7938. * @static
  7939. */ public static function addLines($lines, $locale, $namespace = '*')
  7940. {
  7941. /** @var \Illuminate\Translation\Translator $instance */
  7942. $instance->addLines($lines, $locale, $namespace);
  7943. }
  7944. /**
  7945. * Load the specified language group.
  7946. *
  7947. * @param string $namespace
  7948. * @param string $group
  7949. * @param string $locale
  7950. * @return void
  7951. * @static
  7952. */ public static function load($namespace, $group, $locale)
  7953. {
  7954. /** @var \Illuminate\Translation\Translator $instance */
  7955. $instance->load($namespace, $group, $locale);
  7956. }
  7957. /**
  7958. * Register a callback that is responsible for handling missing translation keys.
  7959. *
  7960. * @param callable|null $callback
  7961. * @return static
  7962. * @static
  7963. */ public static function handleMissingKeysUsing($callback)
  7964. {
  7965. /** @var \Illuminate\Translation\Translator $instance */
  7966. return $instance->handleMissingKeysUsing($callback);
  7967. }
  7968. /**
  7969. * Add a new namespace to the loader.
  7970. *
  7971. * @param string $namespace
  7972. * @param string $hint
  7973. * @return void
  7974. * @static
  7975. */ public static function addNamespace($namespace, $hint)
  7976. {
  7977. /** @var \Illuminate\Translation\Translator $instance */
  7978. $instance->addNamespace($namespace, $hint);
  7979. }
  7980. /**
  7981. * Add a new JSON path to the loader.
  7982. *
  7983. * @param string $path
  7984. * @return void
  7985. * @static
  7986. */ public static function addJsonPath($path)
  7987. {
  7988. /** @var \Illuminate\Translation\Translator $instance */
  7989. $instance->addJsonPath($path);
  7990. }
  7991. /**
  7992. * Parse a key into namespace, group, and item.
  7993. *
  7994. * @param string $key
  7995. * @return array
  7996. * @static
  7997. */ public static function parseKey($key)
  7998. {
  7999. /** @var \Illuminate\Translation\Translator $instance */
  8000. return $instance->parseKey($key);
  8001. }
  8002. /**
  8003. * Specify a callback that should be invoked to determined the applicable locale array.
  8004. *
  8005. * @param callable $callback
  8006. * @return void
  8007. * @static
  8008. */ public static function determineLocalesUsing($callback)
  8009. {
  8010. /** @var \Illuminate\Translation\Translator $instance */
  8011. $instance->determineLocalesUsing($callback);
  8012. }
  8013. /**
  8014. * Get the message selector instance.
  8015. *
  8016. * @return \Illuminate\Translation\MessageSelector
  8017. * @static
  8018. */ public static function getSelector()
  8019. {
  8020. /** @var \Illuminate\Translation\Translator $instance */
  8021. return $instance->getSelector();
  8022. }
  8023. /**
  8024. * Set the message selector instance.
  8025. *
  8026. * @param \Illuminate\Translation\MessageSelector $selector
  8027. * @return void
  8028. * @static
  8029. */ public static function setSelector($selector)
  8030. {
  8031. /** @var \Illuminate\Translation\Translator $instance */
  8032. $instance->setSelector($selector);
  8033. }
  8034. /**
  8035. * Get the language line loader implementation.
  8036. *
  8037. * @return \Illuminate\Contracts\Translation\Loader
  8038. * @static
  8039. */ public static function getLoader()
  8040. {
  8041. /** @var \Illuminate\Translation\Translator $instance */
  8042. return $instance->getLoader();
  8043. }
  8044. /**
  8045. * Get the default locale being used.
  8046. *
  8047. * @return string
  8048. * @static
  8049. */ public static function locale()
  8050. {
  8051. /** @var \Illuminate\Translation\Translator $instance */
  8052. return $instance->locale();
  8053. }
  8054. /**
  8055. * Get the default locale being used.
  8056. *
  8057. * @return string
  8058. * @static
  8059. */ public static function getLocale()
  8060. {
  8061. /** @var \Illuminate\Translation\Translator $instance */
  8062. return $instance->getLocale();
  8063. }
  8064. /**
  8065. * Set the default locale.
  8066. *
  8067. * @param string $locale
  8068. * @return void
  8069. * @throws \InvalidArgumentException
  8070. * @static
  8071. */ public static function setLocale($locale)
  8072. {
  8073. /** @var \Illuminate\Translation\Translator $instance */
  8074. $instance->setLocale($locale);
  8075. }
  8076. /**
  8077. * Get the fallback locale being used.
  8078. *
  8079. * @return string
  8080. * @static
  8081. */ public static function getFallback()
  8082. {
  8083. /** @var \Illuminate\Translation\Translator $instance */
  8084. return $instance->getFallback();
  8085. }
  8086. /**
  8087. * Set the fallback locale being used.
  8088. *
  8089. * @param string $fallback
  8090. * @return void
  8091. * @static
  8092. */ public static function setFallback($fallback)
  8093. {
  8094. /** @var \Illuminate\Translation\Translator $instance */
  8095. $instance->setFallback($fallback);
  8096. }
  8097. /**
  8098. * Set the loaded translation groups.
  8099. *
  8100. * @param array $loaded
  8101. * @return void
  8102. * @static
  8103. */ public static function setLoaded($loaded)
  8104. {
  8105. /** @var \Illuminate\Translation\Translator $instance */
  8106. $instance->setLoaded($loaded);
  8107. }
  8108. /**
  8109. * Add a handler to be executed in order to format a given class to a string during translation replacements.
  8110. *
  8111. * @param callable|string $class
  8112. * @param callable|null $handler
  8113. * @return void
  8114. * @static
  8115. */ public static function stringable($class, $handler = null)
  8116. {
  8117. /** @var \Illuminate\Translation\Translator $instance */
  8118. $instance->stringable($class, $handler);
  8119. }
  8120. /**
  8121. * Set the parsed value of a key.
  8122. *
  8123. * @param string $key
  8124. * @param array $parsed
  8125. * @return void
  8126. * @static
  8127. */ public static function setParsedKey($key, $parsed)
  8128. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  8129. /** @var \Illuminate\Translation\Translator $instance */
  8130. $instance->setParsedKey($key, $parsed);
  8131. }
  8132. /**
  8133. * Flush the cache of parsed keys.
  8134. *
  8135. * @return void
  8136. * @static
  8137. */ public static function flushParsedKeys()
  8138. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  8139. /** @var \Illuminate\Translation\Translator $instance */
  8140. $instance->flushParsedKeys();
  8141. }
  8142. /**
  8143. * Register a custom macro.
  8144. *
  8145. * @param string $name
  8146. * @param object|callable $macro
  8147. * @param-closure-this static $macro
  8148. * @return void
  8149. * @static
  8150. */ public static function macro($name, $macro)
  8151. {
  8152. \Illuminate\Translation\Translator::macro($name, $macro);
  8153. }
  8154. /**
  8155. * Mix another object into the class.
  8156. *
  8157. * @param object $mixin
  8158. * @param bool $replace
  8159. * @return void
  8160. * @throws \ReflectionException
  8161. * @static
  8162. */ public static function mixin($mixin, $replace = true)
  8163. {
  8164. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  8165. }
  8166. /**
  8167. * Checks if macro is registered.
  8168. *
  8169. * @param string $name
  8170. * @return bool
  8171. * @static
  8172. */ public static function hasMacro($name)
  8173. {
  8174. return \Illuminate\Translation\Translator::hasMacro($name);
  8175. }
  8176. /**
  8177. * Flush the existing macros.
  8178. *
  8179. * @return void
  8180. * @static
  8181. */ public static function flushMacros()
  8182. {
  8183. \Illuminate\Translation\Translator::flushMacros();
  8184. }
  8185. }
  8186. /**
  8187. *
  8188. *
  8189. * @method static void write(string $level, \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message, array $context = [])
  8190. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  8191. * @method static void listen(\Closure $callback)
  8192. * @method static \Psr\Log\LoggerInterface getLogger()
  8193. * @method static \Illuminate\Contracts\Events\Dispatcher getEventDispatcher()
  8194. * @method static void setEventDispatcher(\Illuminate\Contracts\Events\Dispatcher $dispatcher)
  8195. * @method static \Illuminate\Log\Logger|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  8196. * @method static \Illuminate\Log\Logger|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  8197. * @see \Illuminate\Log\LogManager
  8198. */ class Log {
  8199. /**
  8200. * Build an on-demand log channel.
  8201. *
  8202. * @param array $config
  8203. * @return \Psr\Log\LoggerInterface
  8204. * @static
  8205. */ public static function build($config)
  8206. {
  8207. /** @var \Illuminate\Log\LogManager $instance */
  8208. return $instance->build($config);
  8209. }
  8210. /**
  8211. * Create a new, on-demand aggregate logger instance.
  8212. *
  8213. * @param array $channels
  8214. * @param string|null $channel
  8215. * @return \Psr\Log\LoggerInterface
  8216. * @static
  8217. */ public static function stack($channels, $channel = null)
  8218. {
  8219. /** @var \Illuminate\Log\LogManager $instance */
  8220. return $instance->stack($channels, $channel);
  8221. }
  8222. /**
  8223. * Get a log channel instance.
  8224. *
  8225. * @param string|null $channel
  8226. * @return \Psr\Log\LoggerInterface
  8227. * @static
  8228. */ public static function channel($channel = null)
  8229. {
  8230. /** @var \Illuminate\Log\LogManager $instance */
  8231. return $instance->channel($channel);
  8232. }
  8233. /**
  8234. * Get a log driver instance.
  8235. *
  8236. * @param string|null $driver
  8237. * @return \Psr\Log\LoggerInterface
  8238. * @static
  8239. */ public static function driver($driver = null)
  8240. {
  8241. /** @var \Illuminate\Log\LogManager $instance */
  8242. return $instance->driver($driver);
  8243. }
  8244. /**
  8245. * Share context across channels and stacks.
  8246. *
  8247. * @param array $context
  8248. * @return \Illuminate\Log\LogManager
  8249. * @static
  8250. */ public static function shareContext($context)
  8251. {
  8252. /** @var \Illuminate\Log\LogManager $instance */
  8253. return $instance->shareContext($context);
  8254. }
  8255. /**
  8256. * The context shared across channels and stacks.
  8257. *
  8258. * @return array
  8259. * @static
  8260. */ public static function sharedContext()
  8261. {
  8262. /** @var \Illuminate\Log\LogManager $instance */
  8263. return $instance->sharedContext();
  8264. }
  8265. /**
  8266. * Flush the log context on all currently resolved channels.
  8267. *
  8268. * @return \Illuminate\Log\LogManager
  8269. * @static
  8270. */ public static function withoutContext()
  8271. {
  8272. /** @var \Illuminate\Log\LogManager $instance */
  8273. return $instance->withoutContext();
  8274. }
  8275. /**
  8276. * Flush the shared context.
  8277. *
  8278. * @return \Illuminate\Log\LogManager
  8279. * @static
  8280. */ public static function flushSharedContext()
  8281. {
  8282. /** @var \Illuminate\Log\LogManager $instance */
  8283. return $instance->flushSharedContext();
  8284. }
  8285. /**
  8286. * Get the default log driver name.
  8287. *
  8288. * @return string|null
  8289. * @static
  8290. */ public static function getDefaultDriver()
  8291. {
  8292. /** @var \Illuminate\Log\LogManager $instance */
  8293. return $instance->getDefaultDriver();
  8294. }
  8295. /**
  8296. * Set the default log driver name.
  8297. *
  8298. * @param string $name
  8299. * @return void
  8300. * @static
  8301. */ public static function setDefaultDriver($name)
  8302. {
  8303. /** @var \Illuminate\Log\LogManager $instance */
  8304. $instance->setDefaultDriver($name);
  8305. }
  8306. /**
  8307. * Register a custom driver creator Closure.
  8308. *
  8309. * @param string $driver
  8310. * @param \Closure $callback
  8311. * @return \Illuminate\Log\LogManager
  8312. * @static
  8313. */ public static function extend($driver, $callback)
  8314. {
  8315. /** @var \Illuminate\Log\LogManager $instance */
  8316. return $instance->extend($driver, $callback);
  8317. }
  8318. /**
  8319. * Unset the given channel instance.
  8320. *
  8321. * @param string|null $driver
  8322. * @return void
  8323. * @static
  8324. */ public static function forgetChannel($driver = null)
  8325. {
  8326. /** @var \Illuminate\Log\LogManager $instance */
  8327. $instance->forgetChannel($driver);
  8328. }
  8329. /**
  8330. * Get all of the resolved log channels.
  8331. *
  8332. * @return array
  8333. * @static
  8334. */ public static function getChannels()
  8335. {
  8336. /** @var \Illuminate\Log\LogManager $instance */
  8337. return $instance->getChannels();
  8338. }
  8339. /**
  8340. * System is unusable.
  8341. *
  8342. * @param string|\Stringable $message
  8343. * @param array $context
  8344. * @return void
  8345. * @static
  8346. */ public static function emergency($message, $context = [])
  8347. {
  8348. /** @var \Illuminate\Log\LogManager $instance */
  8349. $instance->emergency($message, $context);
  8350. }
  8351. /**
  8352. * Action must be taken immediately.
  8353. *
  8354. * Example: Entire website down, database unavailable, etc. This should
  8355. * trigger the SMS alerts and wake you up.
  8356. *
  8357. * @param string|\Stringable $message
  8358. * @param array $context
  8359. * @return void
  8360. * @static
  8361. */ public static function alert($message, $context = [])
  8362. {
  8363. /** @var \Illuminate\Log\LogManager $instance */
  8364. $instance->alert($message, $context);
  8365. }
  8366. /**
  8367. * Critical conditions.
  8368. *
  8369. * Example: Application component unavailable, unexpected exception.
  8370. *
  8371. * @param string|\Stringable $message
  8372. * @param array $context
  8373. * @return void
  8374. * @static
  8375. */ public static function critical($message, $context = [])
  8376. {
  8377. /** @var \Illuminate\Log\LogManager $instance */
  8378. $instance->critical($message, $context);
  8379. }
  8380. /**
  8381. * Runtime errors that do not require immediate action but should typically
  8382. * be logged and monitored.
  8383. *
  8384. * @param string|\Stringable $message
  8385. * @param array $context
  8386. * @return void
  8387. * @static
  8388. */ public static function error($message, $context = [])
  8389. {
  8390. /** @var \Illuminate\Log\LogManager $instance */
  8391. $instance->error($message, $context);
  8392. }
  8393. /**
  8394. * Exceptional occurrences that are not errors.
  8395. *
  8396. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  8397. * that are not necessarily wrong.
  8398. *
  8399. * @param string|\Stringable $message
  8400. * @param array $context
  8401. * @return void
  8402. * @static
  8403. */ public static function warning($message, $context = [])
  8404. {
  8405. /** @var \Illuminate\Log\LogManager $instance */
  8406. $instance->warning($message, $context);
  8407. }
  8408. /**
  8409. * Normal but significant events.
  8410. *
  8411. * @param string|\Stringable $message
  8412. * @param array $context
  8413. * @return void
  8414. * @static
  8415. */ public static function notice($message, $context = [])
  8416. {
  8417. /** @var \Illuminate\Log\LogManager $instance */
  8418. $instance->notice($message, $context);
  8419. }
  8420. /**
  8421. * Interesting events.
  8422. *
  8423. * Example: User logs in, SQL logs.
  8424. *
  8425. * @param string|\Stringable $message
  8426. * @param array $context
  8427. * @return void
  8428. * @static
  8429. */ public static function info($message, $context = [])
  8430. {
  8431. /** @var \Illuminate\Log\LogManager $instance */
  8432. $instance->info($message, $context);
  8433. }
  8434. /**
  8435. * Detailed debug information.
  8436. *
  8437. * @param string|\Stringable $message
  8438. * @param array $context
  8439. * @return void
  8440. * @static
  8441. */ public static function debug($message, $context = [])
  8442. {
  8443. /** @var \Illuminate\Log\LogManager $instance */
  8444. $instance->debug($message, $context);
  8445. }
  8446. /**
  8447. * Logs with an arbitrary level.
  8448. *
  8449. * @param mixed $level
  8450. * @param string|\Stringable $message
  8451. * @param array $context
  8452. * @return void
  8453. * @static
  8454. */ public static function log($level, $message, $context = [])
  8455. {
  8456. /** @var \Illuminate\Log\LogManager $instance */
  8457. $instance->log($level, $message, $context);
  8458. }
  8459. /**
  8460. * Set the application instance used by the manager.
  8461. *
  8462. * @param \Illuminate\Contracts\Foundation\Application $app
  8463. * @return \Illuminate\Log\LogManager
  8464. * @static
  8465. */ public static function setApplication($app)
  8466. {
  8467. /** @var \Illuminate\Log\LogManager $instance */
  8468. return $instance->setApplication($app);
  8469. }
  8470. }
  8471. /**
  8472. *
  8473. *
  8474. * @method static void alwaysFrom(string $address, string|null $name = null)
  8475. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  8476. * @method static void alwaysReturnPath(string $address)
  8477. * @method static void alwaysTo(string $address, string|null $name = null)
  8478. * @method static \Illuminate\Mail\SentMessage|null html(string $html, mixed $callback)
  8479. * @method static \Illuminate\Mail\SentMessage|null plain(string $view, array $data, mixed $callback)
  8480. * @method static string render(string|array $view, array $data = [])
  8481. * @method static mixed onQueue(string $queue, \Illuminate\Contracts\Mail\Mailable $view)
  8482. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable $view)
  8483. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable $view)
  8484. * @method static \Symfony\Component\Mailer\Transport\TransportInterface getSymfonyTransport()
  8485. * @method static \Illuminate\Contracts\View\Factory getViewFactory()
  8486. * @method static void setSymfonyTransport(\Symfony\Component\Mailer\Transport\TransportInterface $transport)
  8487. * @method static \Illuminate\Mail\Mailer setQueue(\Illuminate\Contracts\Queue\Factory $queue)
  8488. * @method static void macro(string $name, object|callable $macro)
  8489. * @method static void mixin(object $mixin, bool $replace = true)
  8490. * @method static bool hasMacro(string $name)
  8491. * @method static void flushMacros()
  8492. * @see \Illuminate\Mail\MailManager
  8493. * @see \Illuminate\Support\Testing\Fakes\MailFake
  8494. */ class Mail {
  8495. /**
  8496. * Get a mailer instance by name.
  8497. *
  8498. * @param string|null $name
  8499. * @return \Illuminate\Contracts\Mail\Mailer
  8500. * @static
  8501. */ public static function mailer($name = null)
  8502. {
  8503. /** @var \Illuminate\Mail\MailManager $instance */
  8504. return $instance->mailer($name);
  8505. }
  8506. /**
  8507. * Get a mailer driver instance.
  8508. *
  8509. * @param string|null $driver
  8510. * @return \Illuminate\Mail\Mailer
  8511. * @static
  8512. */ public static function driver($driver = null)
  8513. {
  8514. /** @var \Illuminate\Mail\MailManager $instance */
  8515. return $instance->driver($driver);
  8516. }
  8517. /**
  8518. * Create a new transport instance.
  8519. *
  8520. * @param array $config
  8521. * @return \Symfony\Component\Mailer\Transport\TransportInterface
  8522. * @throws \InvalidArgumentException
  8523. * @static
  8524. */ public static function createSymfonyTransport($config)
  8525. {
  8526. /** @var \Illuminate\Mail\MailManager $instance */
  8527. return $instance->createSymfonyTransport($config);
  8528. }
  8529. /**
  8530. * Get the default mail driver name.
  8531. *
  8532. * @return string
  8533. * @static
  8534. */ public static function getDefaultDriver()
  8535. {
  8536. /** @var \Illuminate\Mail\MailManager $instance */
  8537. return $instance->getDefaultDriver();
  8538. }
  8539. /**
  8540. * Set the default mail driver name.
  8541. *
  8542. * @param string $name
  8543. * @return void
  8544. * @static
  8545. */ public static function setDefaultDriver($name)
  8546. {
  8547. /** @var \Illuminate\Mail\MailManager $instance */
  8548. $instance->setDefaultDriver($name);
  8549. }
  8550. /**
  8551. * Disconnect the given mailer and remove from local cache.
  8552. *
  8553. * @param string|null $name
  8554. * @return void
  8555. * @static
  8556. */ public static function purge($name = null)
  8557. {
  8558. /** @var \Illuminate\Mail\MailManager $instance */
  8559. $instance->purge($name);
  8560. }
  8561. /**
  8562. * Register a custom transport creator Closure.
  8563. *
  8564. * @param string $driver
  8565. * @param \Closure $callback
  8566. * @return \Illuminate\Mail\MailManager
  8567. * @static
  8568. */ public static function extend($driver, $callback)
  8569. {
  8570. /** @var \Illuminate\Mail\MailManager $instance */
  8571. return $instance->extend($driver, $callback);
  8572. }
  8573. /**
  8574. * Get the application instance used by the manager.
  8575. *
  8576. * @return \Illuminate\Contracts\Foundation\Application
  8577. * @static
  8578. */ public static function getApplication()
  8579. {
  8580. /** @var \Illuminate\Mail\MailManager $instance */
  8581. return $instance->getApplication();
  8582. }
  8583. /**
  8584. * Set the application instance used by the manager.
  8585. *
  8586. * @param \Illuminate\Contracts\Foundation\Application $app
  8587. * @return \Illuminate\Mail\MailManager
  8588. * @static
  8589. */ public static function setApplication($app)
  8590. {
  8591. /** @var \Illuminate\Mail\MailManager $instance */
  8592. return $instance->setApplication($app);
  8593. }
  8594. /**
  8595. * Forget all of the resolved mailer instances.
  8596. *
  8597. * @return \Illuminate\Mail\MailManager
  8598. * @static
  8599. */ public static function forgetMailers()
  8600. {
  8601. /** @var \Illuminate\Mail\MailManager $instance */
  8602. return $instance->forgetMailers();
  8603. }
  8604. /**
  8605. * Assert if a mailable was sent based on a truth-test callback.
  8606. *
  8607. * @param string|\Closure $mailable
  8608. * @param callable|array|string|int|null $callback
  8609. * @return void
  8610. * @static
  8611. */ public static function assertSent($mailable, $callback = null)
  8612. {
  8613. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8614. $instance->assertSent($mailable, $callback);
  8615. }
  8616. /**
  8617. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  8618. *
  8619. * @param string|\Closure $mailable
  8620. * @param callable|null $callback
  8621. * @return void
  8622. * @static
  8623. */ public static function assertNotOutgoing($mailable, $callback = null)
  8624. {
  8625. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8626. $instance->assertNotOutgoing($mailable, $callback);
  8627. }
  8628. /**
  8629. * Determine if a mailable was not sent based on a truth-test callback.
  8630. *
  8631. * @param string|\Closure $mailable
  8632. * @param callable|array|string|null $callback
  8633. * @return void
  8634. * @static
  8635. */ public static function assertNotSent($mailable, $callback = null)
  8636. {
  8637. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8638. $instance->assertNotSent($mailable, $callback);
  8639. }
  8640. /**
  8641. * Assert that no mailables were sent or queued to be sent.
  8642. *
  8643. * @return void
  8644. * @static
  8645. */ public static function assertNothingOutgoing()
  8646. {
  8647. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8648. $instance->assertNothingOutgoing();
  8649. }
  8650. /**
  8651. * Assert that no mailables were sent.
  8652. *
  8653. * @return void
  8654. * @static
  8655. */ public static function assertNothingSent()
  8656. {
  8657. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8658. $instance->assertNothingSent();
  8659. }
  8660. /**
  8661. * Assert if a mailable was queued based on a truth-test callback.
  8662. *
  8663. * @param string|\Closure $mailable
  8664. * @param callable|array|string|int|null $callback
  8665. * @return void
  8666. * @static
  8667. */ public static function assertQueued($mailable, $callback = null)
  8668. {
  8669. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8670. $instance->assertQueued($mailable, $callback);
  8671. }
  8672. /**
  8673. * Determine if a mailable was not queued based on a truth-test callback.
  8674. *
  8675. * @param string|\Closure $mailable
  8676. * @param callable|array|string|null $callback
  8677. * @return void
  8678. * @static
  8679. */ public static function assertNotQueued($mailable, $callback = null)
  8680. {
  8681. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8682. $instance->assertNotQueued($mailable, $callback);
  8683. }
  8684. /**
  8685. * Assert that no mailables were queued.
  8686. *
  8687. * @return void
  8688. * @static
  8689. */ public static function assertNothingQueued()
  8690. {
  8691. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8692. $instance->assertNothingQueued();
  8693. }
  8694. /**
  8695. * Assert the total number of mailables that were sent.
  8696. *
  8697. * @param int $count
  8698. * @return void
  8699. * @static
  8700. */ public static function assertSentCount($count)
  8701. {
  8702. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8703. $instance->assertSentCount($count);
  8704. }
  8705. /**
  8706. * Assert the total number of mailables that were queued.
  8707. *
  8708. * @param int $count
  8709. * @return void
  8710. * @static
  8711. */ public static function assertQueuedCount($count)
  8712. {
  8713. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8714. $instance->assertQueuedCount($count);
  8715. }
  8716. /**
  8717. * Assert the total number of mailables that were sent or queued.
  8718. *
  8719. * @param int $count
  8720. * @return void
  8721. * @static
  8722. */ public static function assertOutgoingCount($count)
  8723. {
  8724. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8725. $instance->assertOutgoingCount($count);
  8726. }
  8727. /**
  8728. * Get all of the mailables matching a truth-test callback.
  8729. *
  8730. * @param string|\Closure $mailable
  8731. * @param callable|null $callback
  8732. * @return \Illuminate\Support\Collection
  8733. * @static
  8734. */ public static function sent($mailable, $callback = null)
  8735. {
  8736. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8737. return $instance->sent($mailable, $callback);
  8738. }
  8739. /**
  8740. * Determine if the given mailable has been sent.
  8741. *
  8742. * @param string $mailable
  8743. * @return bool
  8744. * @static
  8745. */ public static function hasSent($mailable)
  8746. {
  8747. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8748. return $instance->hasSent($mailable);
  8749. }
  8750. /**
  8751. * Get all of the queued mailables matching a truth-test callback.
  8752. *
  8753. * @param string|\Closure $mailable
  8754. * @param callable|null $callback
  8755. * @return \Illuminate\Support\Collection
  8756. * @static
  8757. */ public static function queued($mailable, $callback = null)
  8758. {
  8759. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8760. return $instance->queued($mailable, $callback);
  8761. }
  8762. /**
  8763. * Determine if the given mailable has been queued.
  8764. *
  8765. * @param string $mailable
  8766. * @return bool
  8767. * @static
  8768. */ public static function hasQueued($mailable)
  8769. {
  8770. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8771. return $instance->hasQueued($mailable);
  8772. }
  8773. /**
  8774. * Begin the process of mailing a mailable class instance.
  8775. *
  8776. * @param mixed $users
  8777. * @return \Illuminate\Mail\PendingMail
  8778. * @static
  8779. */ public static function to($users)
  8780. {
  8781. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8782. return $instance->to($users);
  8783. }
  8784. /**
  8785. * Begin the process of mailing a mailable class instance.
  8786. *
  8787. * @param mixed $users
  8788. * @return \Illuminate\Mail\PendingMail
  8789. * @static
  8790. */ public static function cc($users)
  8791. {
  8792. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8793. return $instance->cc($users);
  8794. }
  8795. /**
  8796. * Begin the process of mailing a mailable class instance.
  8797. *
  8798. * @param mixed $users
  8799. * @return \Illuminate\Mail\PendingMail
  8800. * @static
  8801. */ public static function bcc($users)
  8802. {
  8803. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8804. return $instance->bcc($users);
  8805. }
  8806. /**
  8807. * Send a new message with only a raw text part.
  8808. *
  8809. * @param string $text
  8810. * @param \Closure|string $callback
  8811. * @return void
  8812. * @static
  8813. */ public static function raw($text, $callback)
  8814. {
  8815. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8816. $instance->raw($text, $callback);
  8817. }
  8818. /**
  8819. * Send a new message using a view.
  8820. *
  8821. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8822. * @param array $data
  8823. * @param \Closure|string|null $callback
  8824. * @return mixed|void
  8825. * @static
  8826. */ public static function send($view, $data = [], $callback = null)
  8827. {
  8828. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8829. return $instance->send($view, $data, $callback);
  8830. }
  8831. /**
  8832. * Send a new message synchronously using a view.
  8833. *
  8834. * @param \Illuminate\Contracts\Mail\Mailable|string|array $mailable
  8835. * @param array $data
  8836. * @param \Closure|string|null $callback
  8837. * @return void
  8838. * @static
  8839. */ public static function sendNow($mailable, $data = [], $callback = null)
  8840. {
  8841. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8842. $instance->sendNow($mailable, $data, $callback);
  8843. }
  8844. /**
  8845. * Queue a new message for sending.
  8846. *
  8847. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8848. * @param string|null $queue
  8849. * @return mixed
  8850. * @static
  8851. */ public static function queue($view, $queue = null)
  8852. {
  8853. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8854. return $instance->queue($view, $queue);
  8855. }
  8856. /**
  8857. * Queue a new e-mail message for sending after (n) seconds.
  8858. *
  8859. * @param \DateTimeInterface|\DateInterval|int $delay
  8860. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8861. * @param string|null $queue
  8862. * @return mixed
  8863. * @static
  8864. */ public static function later($delay, $view, $queue = null)
  8865. {
  8866. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8867. return $instance->later($delay, $view, $queue);
  8868. }
  8869. }
  8870. /**
  8871. *
  8872. *
  8873. * @see \Illuminate\Notifications\ChannelManager
  8874. * @see \Illuminate\Support\Testing\Fakes\NotificationFake
  8875. */ class Notification {
  8876. /**
  8877. * Send the given notification to the given notifiable entities.
  8878. *
  8879. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8880. * @param mixed $notification
  8881. * @return void
  8882. * @static
  8883. */ public static function send($notifiables, $notification)
  8884. {
  8885. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8886. $instance->send($notifiables, $notification);
  8887. }
  8888. /**
  8889. * Send the given notification immediately.
  8890. *
  8891. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8892. * @param mixed $notification
  8893. * @param array|null $channels
  8894. * @return void
  8895. * @static
  8896. */ public static function sendNow($notifiables, $notification, $channels = null)
  8897. {
  8898. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8899. $instance->sendNow($notifiables, $notification, $channels);
  8900. }
  8901. /**
  8902. * Get a channel instance.
  8903. *
  8904. * @param string|null $name
  8905. * @return mixed
  8906. * @static
  8907. */ public static function channel($name = null)
  8908. {
  8909. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8910. return $instance->channel($name);
  8911. }
  8912. /**
  8913. * Get the default channel driver name.
  8914. *
  8915. * @return string
  8916. * @static
  8917. */ public static function getDefaultDriver()
  8918. {
  8919. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8920. return $instance->getDefaultDriver();
  8921. }
  8922. /**
  8923. * Get the default channel driver name.
  8924. *
  8925. * @return string
  8926. * @static
  8927. */ public static function deliversVia()
  8928. {
  8929. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8930. return $instance->deliversVia();
  8931. }
  8932. /**
  8933. * Set the default channel driver name.
  8934. *
  8935. * @param string $channel
  8936. * @return void
  8937. * @static
  8938. */ public static function deliverVia($channel)
  8939. {
  8940. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8941. $instance->deliverVia($channel);
  8942. }
  8943. /**
  8944. * Set the locale of notifications.
  8945. *
  8946. * @param string $locale
  8947. * @return \Illuminate\Notifications\ChannelManager
  8948. * @static
  8949. */ public static function locale($locale)
  8950. {
  8951. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8952. return $instance->locale($locale);
  8953. }
  8954. /**
  8955. * Get a driver instance.
  8956. *
  8957. * @param string|null $driver
  8958. * @return mixed
  8959. * @throws \InvalidArgumentException
  8960. * @static
  8961. */ public static function driver($driver = null)
  8962. { //Method inherited from \Illuminate\Support\Manager
  8963. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8964. return $instance->driver($driver);
  8965. }
  8966. /**
  8967. * Register a custom driver creator Closure.
  8968. *
  8969. * @param string $driver
  8970. * @param \Closure $callback
  8971. * @return \Illuminate\Notifications\ChannelManager
  8972. * @static
  8973. */ public static function extend($driver, $callback)
  8974. { //Method inherited from \Illuminate\Support\Manager
  8975. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8976. return $instance->extend($driver, $callback);
  8977. }
  8978. /**
  8979. * Get all of the created "drivers".
  8980. *
  8981. * @return array
  8982. * @static
  8983. */ public static function getDrivers()
  8984. { //Method inherited from \Illuminate\Support\Manager
  8985. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8986. return $instance->getDrivers();
  8987. }
  8988. /**
  8989. * Get the container instance used by the manager.
  8990. *
  8991. * @return \Illuminate\Contracts\Container\Container
  8992. * @static
  8993. */ public static function getContainer()
  8994. { //Method inherited from \Illuminate\Support\Manager
  8995. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8996. return $instance->getContainer();
  8997. }
  8998. /**
  8999. * Set the container instance used by the manager.
  9000. *
  9001. * @param \Illuminate\Contracts\Container\Container $container
  9002. * @return \Illuminate\Notifications\ChannelManager
  9003. * @static
  9004. */ public static function setContainer($container)
  9005. { //Method inherited from \Illuminate\Support\Manager
  9006. /** @var \Illuminate\Notifications\ChannelManager $instance */
  9007. return $instance->setContainer($container);
  9008. }
  9009. /**
  9010. * Forget all of the resolved driver instances.
  9011. *
  9012. * @return \Illuminate\Notifications\ChannelManager
  9013. * @static
  9014. */ public static function forgetDrivers()
  9015. { //Method inherited from \Illuminate\Support\Manager
  9016. /** @var \Illuminate\Notifications\ChannelManager $instance */
  9017. return $instance->forgetDrivers();
  9018. }
  9019. /**
  9020. * Assert if a notification was sent on-demand based on a truth-test callback.
  9021. *
  9022. * @param string|\Closure $notification
  9023. * @param callable|null $callback
  9024. * @return void
  9025. * @throws \Exception
  9026. * @static
  9027. */ public static function assertSentOnDemand($notification, $callback = null)
  9028. {
  9029. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9030. $instance->assertSentOnDemand($notification, $callback);
  9031. }
  9032. /**
  9033. * Assert if a notification was sent based on a truth-test callback.
  9034. *
  9035. * @param mixed $notifiable
  9036. * @param string|\Closure $notification
  9037. * @param callable|null $callback
  9038. * @return void
  9039. * @throws \Exception
  9040. * @static
  9041. */ public static function assertSentTo($notifiable, $notification, $callback = null)
  9042. {
  9043. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9044. $instance->assertSentTo($notifiable, $notification, $callback);
  9045. }
  9046. /**
  9047. * Assert if a notification was sent on-demand a number of times.
  9048. *
  9049. * @param string $notification
  9050. * @param int $times
  9051. * @return void
  9052. * @static
  9053. */ public static function assertSentOnDemandTimes($notification, $times = 1)
  9054. {
  9055. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9056. $instance->assertSentOnDemandTimes($notification, $times);
  9057. }
  9058. /**
  9059. * Assert if a notification was sent a number of times.
  9060. *
  9061. * @param mixed $notifiable
  9062. * @param string $notification
  9063. * @param int $times
  9064. * @return void
  9065. * @static
  9066. */ public static function assertSentToTimes($notifiable, $notification, $times = 1)
  9067. {
  9068. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9069. $instance->assertSentToTimes($notifiable, $notification, $times);
  9070. }
  9071. /**
  9072. * Determine if a notification was sent based on a truth-test callback.
  9073. *
  9074. * @param mixed $notifiable
  9075. * @param string|\Closure $notification
  9076. * @param callable|null $callback
  9077. * @return void
  9078. * @throws \Exception
  9079. * @static
  9080. */ public static function assertNotSentTo($notifiable, $notification, $callback = null)
  9081. {
  9082. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9083. $instance->assertNotSentTo($notifiable, $notification, $callback);
  9084. }
  9085. /**
  9086. * Assert that no notifications were sent.
  9087. *
  9088. * @return void
  9089. * @static
  9090. */ public static function assertNothingSent()
  9091. {
  9092. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9093. $instance->assertNothingSent();
  9094. }
  9095. /**
  9096. * Assert that no notifications were sent to the given notifiable.
  9097. *
  9098. * @param mixed $notifiable
  9099. * @return void
  9100. * @throws \Exception
  9101. * @static
  9102. */ public static function assertNothingSentTo($notifiable)
  9103. {
  9104. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9105. $instance->assertNothingSentTo($notifiable);
  9106. }
  9107. /**
  9108. * Assert the total amount of times a notification was sent.
  9109. *
  9110. * @param string $notification
  9111. * @param int $expectedCount
  9112. * @return void
  9113. * @static
  9114. */ public static function assertSentTimes($notification, $expectedCount)
  9115. {
  9116. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9117. $instance->assertSentTimes($notification, $expectedCount);
  9118. }
  9119. /**
  9120. * Assert the total count of notification that were sent.
  9121. *
  9122. * @param int $expectedCount
  9123. * @return void
  9124. * @static
  9125. */ public static function assertCount($expectedCount)
  9126. {
  9127. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9128. $instance->assertCount($expectedCount);
  9129. }
  9130. /**
  9131. * Get all of the notifications matching a truth-test callback.
  9132. *
  9133. * @param mixed $notifiable
  9134. * @param string $notification
  9135. * @param callable|null $callback
  9136. * @return \Illuminate\Support\Collection
  9137. * @static
  9138. */ public static function sent($notifiable, $notification, $callback = null)
  9139. {
  9140. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9141. return $instance->sent($notifiable, $notification, $callback);
  9142. }
  9143. /**
  9144. * Determine if there are more notifications left to inspect.
  9145. *
  9146. * @param mixed $notifiable
  9147. * @param string $notification
  9148. * @return bool
  9149. * @static
  9150. */ public static function hasSent($notifiable, $notification)
  9151. {
  9152. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9153. return $instance->hasSent($notifiable, $notification);
  9154. }
  9155. /**
  9156. * Specify if notification should be serialized and restored when being "pushed" to the queue.
  9157. *
  9158. * @param bool $serializeAndRestore
  9159. * @return \Illuminate\Support\Testing\Fakes\NotificationFake
  9160. * @static
  9161. */ public static function serializeAndRestore($serializeAndRestore = true)
  9162. {
  9163. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9164. return $instance->serializeAndRestore($serializeAndRestore);
  9165. }
  9166. /**
  9167. * Get the notifications that have been sent.
  9168. *
  9169. * @return array
  9170. * @static
  9171. */ public static function sentNotifications()
  9172. {
  9173. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9174. return $instance->sentNotifications();
  9175. }
  9176. /**
  9177. * Register a custom macro.
  9178. *
  9179. * @param string $name
  9180. * @param object|callable $macro
  9181. * @param-closure-this static $macro
  9182. * @return void
  9183. * @static
  9184. */ public static function macro($name, $macro)
  9185. {
  9186. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  9187. }
  9188. /**
  9189. * Mix another object into the class.
  9190. *
  9191. * @param object $mixin
  9192. * @param bool $replace
  9193. * @return void
  9194. * @throws \ReflectionException
  9195. * @static
  9196. */ public static function mixin($mixin, $replace = true)
  9197. {
  9198. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  9199. }
  9200. /**
  9201. * Checks if macro is registered.
  9202. *
  9203. * @param string $name
  9204. * @return bool
  9205. * @static
  9206. */ public static function hasMacro($name)
  9207. {
  9208. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  9209. }
  9210. /**
  9211. * Flush the existing macros.
  9212. *
  9213. * @return void
  9214. * @static
  9215. */ public static function flushMacros()
  9216. {
  9217. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  9218. }
  9219. }
  9220. /**
  9221. *
  9222. *
  9223. * @method static string sendResetLink(array $credentials, \Closure|null $callback = null)
  9224. * @method static mixed reset(array $credentials, \Closure $callback)
  9225. * @method static \Illuminate\Contracts\Auth\CanResetPassword|null getUser(array $credentials)
  9226. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  9227. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  9228. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  9229. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  9230. * @see \Illuminate\Auth\Passwords\PasswordBrokerManager
  9231. * @see \Illuminate\Auth\Passwords\PasswordBroker
  9232. */ class Password {
  9233. /**
  9234. * Attempt to get the broker from the local cache.
  9235. *
  9236. * @param string|null $name
  9237. * @return \Illuminate\Contracts\Auth\PasswordBroker
  9238. * @static
  9239. */ public static function broker($name = null)
  9240. {
  9241. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9242. return $instance->broker($name);
  9243. }
  9244. /**
  9245. * Get the default password broker name.
  9246. *
  9247. * @return string
  9248. * @static
  9249. */ public static function getDefaultDriver()
  9250. {
  9251. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9252. return $instance->getDefaultDriver();
  9253. }
  9254. /**
  9255. * Set the default password broker name.
  9256. *
  9257. * @param string $name
  9258. * @return void
  9259. * @static
  9260. */ public static function setDefaultDriver($name)
  9261. {
  9262. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9263. $instance->setDefaultDriver($name);
  9264. }
  9265. }
  9266. /**
  9267. *
  9268. *
  9269. * @method static \Illuminate\Process\PendingProcess command(array|string $command)
  9270. * @method static \Illuminate\Process\PendingProcess path(string $path)
  9271. * @method static \Illuminate\Process\PendingProcess timeout(int $timeout)
  9272. * @method static \Illuminate\Process\PendingProcess idleTimeout(int $timeout)
  9273. * @method static \Illuminate\Process\PendingProcess forever()
  9274. * @method static \Illuminate\Process\PendingProcess env(array $environment)
  9275. * @method static \Illuminate\Process\PendingProcess input(\Traversable|resource|string|int|float|bool|null $input)
  9276. * @method static \Illuminate\Process\PendingProcess quietly()
  9277. * @method static \Illuminate\Process\PendingProcess tty(bool $tty = true)
  9278. * @method static \Illuminate\Process\PendingProcess options(array $options)
  9279. * @method static \Illuminate\Contracts\Process\ProcessResult run(array|string|null $command = null, callable|null $output = null)
  9280. * @method static \Illuminate\Process\InvokedProcess start(array|string|null $command = null, callable|null $output = null)
  9281. * @method static \Illuminate\Process\PendingProcess withFakeHandlers(array $fakeHandlers)
  9282. * @method static \Illuminate\Process\PendingProcess|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  9283. * @method static \Illuminate\Process\PendingProcess|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  9284. * @see \Illuminate\Process\PendingProcess
  9285. * @see \Illuminate\Process\Factory
  9286. */ class Process {
  9287. /**
  9288. * Create a new fake process response for testing purposes.
  9289. *
  9290. * @param array|string $output
  9291. * @param array|string $errorOutput
  9292. * @param int $exitCode
  9293. * @return \Illuminate\Process\FakeProcessResult
  9294. * @static
  9295. */ public static function result($output = '', $errorOutput = '', $exitCode = 0)
  9296. {
  9297. /** @var \Illuminate\Process\Factory $instance */
  9298. return $instance->result($output, $errorOutput, $exitCode);
  9299. }
  9300. /**
  9301. * Begin describing a fake process lifecycle.
  9302. *
  9303. * @return \Illuminate\Process\FakeProcessDescription
  9304. * @static
  9305. */ public static function describe()
  9306. {
  9307. /** @var \Illuminate\Process\Factory $instance */
  9308. return $instance->describe();
  9309. }
  9310. /**
  9311. * Begin describing a fake process sequence.
  9312. *
  9313. * @param array $processes
  9314. * @return \Illuminate\Process\FakeProcessSequence
  9315. * @static
  9316. */ public static function sequence($processes = [])
  9317. {
  9318. /** @var \Illuminate\Process\Factory $instance */
  9319. return $instance->sequence($processes);
  9320. }
  9321. /**
  9322. * Indicate that the process factory should fake processes.
  9323. *
  9324. * @param \Closure|array|null $callback
  9325. * @return \Illuminate\Process\Factory
  9326. * @static
  9327. */ public static function fake($callback = null)
  9328. {
  9329. /** @var \Illuminate\Process\Factory $instance */
  9330. return $instance->fake($callback);
  9331. }
  9332. /**
  9333. * Determine if the process factory has fake process handlers and is recording processes.
  9334. *
  9335. * @return bool
  9336. * @static
  9337. */ public static function isRecording()
  9338. {
  9339. /** @var \Illuminate\Process\Factory $instance */
  9340. return $instance->isRecording();
  9341. }
  9342. /**
  9343. * Record the given process if processes should be recorded.
  9344. *
  9345. * @param \Illuminate\Process\PendingProcess $process
  9346. * @param \Illuminate\Contracts\Process\ProcessResult $result
  9347. * @return \Illuminate\Process\Factory
  9348. * @static
  9349. */ public static function recordIfRecording($process, $result)
  9350. {
  9351. /** @var \Illuminate\Process\Factory $instance */
  9352. return $instance->recordIfRecording($process, $result);
  9353. }
  9354. /**
  9355. * Record the given process.
  9356. *
  9357. * @param \Illuminate\Process\PendingProcess $process
  9358. * @param \Illuminate\Contracts\Process\ProcessResult $result
  9359. * @return \Illuminate\Process\Factory
  9360. * @static
  9361. */ public static function record($process, $result)
  9362. {
  9363. /** @var \Illuminate\Process\Factory $instance */
  9364. return $instance->record($process, $result);
  9365. }
  9366. /**
  9367. * Indicate that an exception should be thrown if any process is not faked.
  9368. *
  9369. * @param bool $prevent
  9370. * @return \Illuminate\Process\Factory
  9371. * @static
  9372. */ public static function preventStrayProcesses($prevent = true)
  9373. {
  9374. /** @var \Illuminate\Process\Factory $instance */
  9375. return $instance->preventStrayProcesses($prevent);
  9376. }
  9377. /**
  9378. * Determine if stray processes are being prevented.
  9379. *
  9380. * @return bool
  9381. * @static
  9382. */ public static function preventingStrayProcesses()
  9383. {
  9384. /** @var \Illuminate\Process\Factory $instance */
  9385. return $instance->preventingStrayProcesses();
  9386. }
  9387. /**
  9388. * Assert that a process was recorded matching a given truth test.
  9389. *
  9390. * @param \Closure|string $callback
  9391. * @return \Illuminate\Process\Factory
  9392. * @static
  9393. */ public static function assertRan($callback)
  9394. {
  9395. /** @var \Illuminate\Process\Factory $instance */
  9396. return $instance->assertRan($callback);
  9397. }
  9398. /**
  9399. * Assert that a process was recorded a given number of times matching a given truth test.
  9400. *
  9401. * @param \Closure|string $callback
  9402. * @param int $times
  9403. * @return \Illuminate\Process\Factory
  9404. * @static
  9405. */ public static function assertRanTimes($callback, $times = 1)
  9406. {
  9407. /** @var \Illuminate\Process\Factory $instance */
  9408. return $instance->assertRanTimes($callback, $times);
  9409. }
  9410. /**
  9411. * Assert that a process was not recorded matching a given truth test.
  9412. *
  9413. * @param \Closure|string $callback
  9414. * @return \Illuminate\Process\Factory
  9415. * @static
  9416. */ public static function assertNotRan($callback)
  9417. {
  9418. /** @var \Illuminate\Process\Factory $instance */
  9419. return $instance->assertNotRan($callback);
  9420. }
  9421. /**
  9422. * Assert that a process was not recorded matching a given truth test.
  9423. *
  9424. * @param \Closure|string $callback
  9425. * @return \Illuminate\Process\Factory
  9426. * @static
  9427. */ public static function assertDidntRun($callback)
  9428. {
  9429. /** @var \Illuminate\Process\Factory $instance */
  9430. return $instance->assertDidntRun($callback);
  9431. }
  9432. /**
  9433. * Assert that no processes were recorded.
  9434. *
  9435. * @return \Illuminate\Process\Factory
  9436. * @static
  9437. */ public static function assertNothingRan()
  9438. {
  9439. /** @var \Illuminate\Process\Factory $instance */
  9440. return $instance->assertNothingRan();
  9441. }
  9442. /**
  9443. * Start defining a pool of processes.
  9444. *
  9445. * @param callable $callback
  9446. * @return \Illuminate\Process\Pool
  9447. * @static
  9448. */ public static function pool($callback)
  9449. {
  9450. /** @var \Illuminate\Process\Factory $instance */
  9451. return $instance->pool($callback);
  9452. }
  9453. /**
  9454. * Start defining a series of piped processes.
  9455. *
  9456. * @param callable|array $callback
  9457. * @return \Illuminate\Contracts\Process\ProcessResult
  9458. * @static
  9459. */ public static function pipe($callback, $output = null)
  9460. {
  9461. /** @var \Illuminate\Process\Factory $instance */
  9462. return $instance->pipe($callback, $output);
  9463. }
  9464. /**
  9465. * Run a pool of processes and wait for them to finish executing.
  9466. *
  9467. * @param callable $callback
  9468. * @param callable|null $output
  9469. * @return \Illuminate\Process\ProcessPoolResults
  9470. * @static
  9471. */ public static function concurrently($callback, $output = null)
  9472. {
  9473. /** @var \Illuminate\Process\Factory $instance */
  9474. return $instance->concurrently($callback, $output);
  9475. }
  9476. /**
  9477. * Create a new pending process associated with this factory.
  9478. *
  9479. * @return \Illuminate\Process\PendingProcess
  9480. * @static
  9481. */ public static function newPendingProcess()
  9482. {
  9483. /** @var \Illuminate\Process\Factory $instance */
  9484. return $instance->newPendingProcess();
  9485. }
  9486. /**
  9487. * Register a custom macro.
  9488. *
  9489. * @param string $name
  9490. * @param object|callable $macro
  9491. * @param-closure-this static $macro
  9492. * @return void
  9493. * @static
  9494. */ public static function macro($name, $macro)
  9495. {
  9496. \Illuminate\Process\Factory::macro($name, $macro);
  9497. }
  9498. /**
  9499. * Mix another object into the class.
  9500. *
  9501. * @param object $mixin
  9502. * @param bool $replace
  9503. * @return void
  9504. * @throws \ReflectionException
  9505. * @static
  9506. */ public static function mixin($mixin, $replace = true)
  9507. {
  9508. \Illuminate\Process\Factory::mixin($mixin, $replace);
  9509. }
  9510. /**
  9511. * Checks if macro is registered.
  9512. *
  9513. * @param string $name
  9514. * @return bool
  9515. * @static
  9516. */ public static function hasMacro($name)
  9517. {
  9518. return \Illuminate\Process\Factory::hasMacro($name);
  9519. }
  9520. /**
  9521. * Flush the existing macros.
  9522. *
  9523. * @return void
  9524. * @static
  9525. */ public static function flushMacros()
  9526. {
  9527. \Illuminate\Process\Factory::flushMacros();
  9528. }
  9529. /**
  9530. * Dynamically handle calls to the class.
  9531. *
  9532. * @param string $method
  9533. * @param array $parameters
  9534. * @return mixed
  9535. * @throws \BadMethodCallException
  9536. * @static
  9537. */ public static function macroCall($method, $parameters)
  9538. {
  9539. /** @var \Illuminate\Process\Factory $instance */
  9540. return $instance->macroCall($method, $parameters);
  9541. }
  9542. }
  9543. /**
  9544. *
  9545. *
  9546. * @see \Illuminate\Queue\QueueManager
  9547. * @see \Illuminate\Queue\Queue
  9548. * @see \Illuminate\Support\Testing\Fakes\QueueFake
  9549. */ class Queue {
  9550. /**
  9551. * Register an event listener for the before job event.
  9552. *
  9553. * @param mixed $callback
  9554. * @return void
  9555. * @static
  9556. */ public static function before($callback)
  9557. {
  9558. /** @var \Illuminate\Queue\QueueManager $instance */
  9559. $instance->before($callback);
  9560. }
  9561. /**
  9562. * Register an event listener for the after job event.
  9563. *
  9564. * @param mixed $callback
  9565. * @return void
  9566. * @static
  9567. */ public static function after($callback)
  9568. {
  9569. /** @var \Illuminate\Queue\QueueManager $instance */
  9570. $instance->after($callback);
  9571. }
  9572. /**
  9573. * Register an event listener for the exception occurred job event.
  9574. *
  9575. * @param mixed $callback
  9576. * @return void
  9577. * @static
  9578. */ public static function exceptionOccurred($callback)
  9579. {
  9580. /** @var \Illuminate\Queue\QueueManager $instance */
  9581. $instance->exceptionOccurred($callback);
  9582. }
  9583. /**
  9584. * Register an event listener for the daemon queue loop.
  9585. *
  9586. * @param mixed $callback
  9587. * @return void
  9588. * @static
  9589. */ public static function looping($callback)
  9590. {
  9591. /** @var \Illuminate\Queue\QueueManager $instance */
  9592. $instance->looping($callback);
  9593. }
  9594. /**
  9595. * Register an event listener for the failed job event.
  9596. *
  9597. * @param mixed $callback
  9598. * @return void
  9599. * @static
  9600. */ public static function failing($callback)
  9601. {
  9602. /** @var \Illuminate\Queue\QueueManager $instance */
  9603. $instance->failing($callback);
  9604. }
  9605. /**
  9606. * Register an event listener for the daemon queue stopping.
  9607. *
  9608. * @param mixed $callback
  9609. * @return void
  9610. * @static
  9611. */ public static function stopping($callback)
  9612. {
  9613. /** @var \Illuminate\Queue\QueueManager $instance */
  9614. $instance->stopping($callback);
  9615. }
  9616. /**
  9617. * Determine if the driver is connected.
  9618. *
  9619. * @param string|null $name
  9620. * @return bool
  9621. * @static
  9622. */ public static function connected($name = null)
  9623. {
  9624. /** @var \Illuminate\Queue\QueueManager $instance */
  9625. return $instance->connected($name);
  9626. }
  9627. /**
  9628. * Resolve a queue connection instance.
  9629. *
  9630. * @param string|null $name
  9631. * @return \Illuminate\Contracts\Queue\Queue
  9632. * @static
  9633. */ public static function connection($name = null)
  9634. {
  9635. /** @var \Illuminate\Queue\QueueManager $instance */
  9636. return $instance->connection($name);
  9637. }
  9638. /**
  9639. * Add a queue connection resolver.
  9640. *
  9641. * @param string $driver
  9642. * @param \Closure $resolver
  9643. * @return void
  9644. * @static
  9645. */ public static function extend($driver, $resolver)
  9646. {
  9647. /** @var \Illuminate\Queue\QueueManager $instance */
  9648. $instance->extend($driver, $resolver);
  9649. }
  9650. /**
  9651. * Add a queue connection resolver.
  9652. *
  9653. * @param string $driver
  9654. * @param \Closure $resolver
  9655. * @return void
  9656. * @static
  9657. */ public static function addConnector($driver, $resolver)
  9658. {
  9659. /** @var \Illuminate\Queue\QueueManager $instance */
  9660. $instance->addConnector($driver, $resolver);
  9661. }
  9662. /**
  9663. * Get the name of the default queue connection.
  9664. *
  9665. * @return string
  9666. * @static
  9667. */ public static function getDefaultDriver()
  9668. {
  9669. /** @var \Illuminate\Queue\QueueManager $instance */
  9670. return $instance->getDefaultDriver();
  9671. }
  9672. /**
  9673. * Set the name of the default queue connection.
  9674. *
  9675. * @param string $name
  9676. * @return void
  9677. * @static
  9678. */ public static function setDefaultDriver($name)
  9679. {
  9680. /** @var \Illuminate\Queue\QueueManager $instance */
  9681. $instance->setDefaultDriver($name);
  9682. }
  9683. /**
  9684. * Get the full name for the given connection.
  9685. *
  9686. * @param string|null $connection
  9687. * @return string
  9688. * @static
  9689. */ public static function getName($connection = null)
  9690. {
  9691. /** @var \Illuminate\Queue\QueueManager $instance */
  9692. return $instance->getName($connection);
  9693. }
  9694. /**
  9695. * Get the application instance used by the manager.
  9696. *
  9697. * @return \Illuminate\Contracts\Foundation\Application
  9698. * @static
  9699. */ public static function getApplication()
  9700. {
  9701. /** @var \Illuminate\Queue\QueueManager $instance */
  9702. return $instance->getApplication();
  9703. }
  9704. /**
  9705. * Set the application instance used by the manager.
  9706. *
  9707. * @param \Illuminate\Contracts\Foundation\Application $app
  9708. * @return \Illuminate\Queue\QueueManager
  9709. * @static
  9710. */ public static function setApplication($app)
  9711. {
  9712. /** @var \Illuminate\Queue\QueueManager $instance */
  9713. return $instance->setApplication($app);
  9714. }
  9715. /**
  9716. * Specify the jobs that should be queued instead of faked.
  9717. *
  9718. * @param array|string $jobsToBeQueued
  9719. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  9720. * @static
  9721. */ public static function except($jobsToBeQueued)
  9722. {
  9723. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9724. return $instance->except($jobsToBeQueued);
  9725. }
  9726. /**
  9727. * Assert if a job was pushed based on a truth-test callback.
  9728. *
  9729. * @param string|\Closure $job
  9730. * @param callable|int|null $callback
  9731. * @return void
  9732. * @static
  9733. */ public static function assertPushed($job, $callback = null)
  9734. {
  9735. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9736. $instance->assertPushed($job, $callback);
  9737. }
  9738. /**
  9739. * Assert if a job was pushed based on a truth-test callback.
  9740. *
  9741. * @param string $queue
  9742. * @param string|\Closure $job
  9743. * @param callable|null $callback
  9744. * @return void
  9745. * @static
  9746. */ public static function assertPushedOn($queue, $job, $callback = null)
  9747. {
  9748. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9749. $instance->assertPushedOn($queue, $job, $callback);
  9750. }
  9751. /**
  9752. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  9753. *
  9754. * @param string $job
  9755. * @param array $expectedChain
  9756. * @param callable|null $callback
  9757. * @return void
  9758. * @static
  9759. */ public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  9760. {
  9761. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9762. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  9763. }
  9764. /**
  9765. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  9766. *
  9767. * @param string $job
  9768. * @param callable|null $callback
  9769. * @return void
  9770. * @static
  9771. */ public static function assertPushedWithoutChain($job, $callback = null)
  9772. {
  9773. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9774. $instance->assertPushedWithoutChain($job, $callback);
  9775. }
  9776. /**
  9777. * Assert if a closure was pushed based on a truth-test callback.
  9778. *
  9779. * @param callable|int|null $callback
  9780. * @return void
  9781. * @static
  9782. */ public static function assertClosurePushed($callback = null)
  9783. {
  9784. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9785. $instance->assertClosurePushed($callback);
  9786. }
  9787. /**
  9788. * Assert that a closure was not pushed based on a truth-test callback.
  9789. *
  9790. * @param callable|null $callback
  9791. * @return void
  9792. * @static
  9793. */ public static function assertClosureNotPushed($callback = null)
  9794. {
  9795. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9796. $instance->assertClosureNotPushed($callback);
  9797. }
  9798. /**
  9799. * Determine if a job was pushed based on a truth-test callback.
  9800. *
  9801. * @param string|\Closure $job
  9802. * @param callable|null $callback
  9803. * @return void
  9804. * @static
  9805. */ public static function assertNotPushed($job, $callback = null)
  9806. {
  9807. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9808. $instance->assertNotPushed($job, $callback);
  9809. }
  9810. /**
  9811. * Assert the total count of jobs that were pushed.
  9812. *
  9813. * @param int $expectedCount
  9814. * @return void
  9815. * @static
  9816. */ public static function assertCount($expectedCount)
  9817. {
  9818. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9819. $instance->assertCount($expectedCount);
  9820. }
  9821. /**
  9822. * Assert that no jobs were pushed.
  9823. *
  9824. * @return void
  9825. * @static
  9826. */ public static function assertNothingPushed()
  9827. {
  9828. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9829. $instance->assertNothingPushed();
  9830. }
  9831. /**
  9832. * Get all of the jobs matching a truth-test callback.
  9833. *
  9834. * @param string $job
  9835. * @param callable|null $callback
  9836. * @return \Illuminate\Support\Collection
  9837. * @static
  9838. */ public static function pushed($job, $callback = null)
  9839. {
  9840. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9841. return $instance->pushed($job, $callback);
  9842. }
  9843. /**
  9844. * Determine if there are any stored jobs for a given class.
  9845. *
  9846. * @param string $job
  9847. * @return bool
  9848. * @static
  9849. */ public static function hasPushed($job)
  9850. {
  9851. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9852. return $instance->hasPushed($job);
  9853. }
  9854. /**
  9855. * Get the size of the queue.
  9856. *
  9857. * @param string|null $queue
  9858. * @return int
  9859. * @static
  9860. */ public static function size($queue = null)
  9861. {
  9862. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9863. return $instance->size($queue);
  9864. }
  9865. /**
  9866. * Push a new job onto the queue.
  9867. *
  9868. * @param string|object $job
  9869. * @param mixed $data
  9870. * @param string|null $queue
  9871. * @return mixed
  9872. * @static
  9873. */ public static function push($job, $data = '', $queue = null)
  9874. {
  9875. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9876. return $instance->push($job, $data, $queue);
  9877. }
  9878. /**
  9879. * Determine if a job should be faked or actually dispatched.
  9880. *
  9881. * @param object $job
  9882. * @return bool
  9883. * @static
  9884. */ public static function shouldFakeJob($job)
  9885. {
  9886. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9887. return $instance->shouldFakeJob($job);
  9888. }
  9889. /**
  9890. * Push a raw payload onto the queue.
  9891. *
  9892. * @param string $payload
  9893. * @param string|null $queue
  9894. * @param array $options
  9895. * @return mixed
  9896. * @static
  9897. */ public static function pushRaw($payload, $queue = null, $options = [])
  9898. {
  9899. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9900. return $instance->pushRaw($payload, $queue, $options);
  9901. }
  9902. /**
  9903. * Push a new job onto the queue after (n) seconds.
  9904. *
  9905. * @param \DateTimeInterface|\DateInterval|int $delay
  9906. * @param string|object $job
  9907. * @param mixed $data
  9908. * @param string|null $queue
  9909. * @return mixed
  9910. * @static
  9911. */ public static function later($delay, $job, $data = '', $queue = null)
  9912. {
  9913. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9914. return $instance->later($delay, $job, $data, $queue);
  9915. }
  9916. /**
  9917. * Push a new job onto the queue.
  9918. *
  9919. * @param string $queue
  9920. * @param string|object $job
  9921. * @param mixed $data
  9922. * @return mixed
  9923. * @static
  9924. */ public static function pushOn($queue, $job, $data = '')
  9925. {
  9926. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9927. return $instance->pushOn($queue, $job, $data);
  9928. }
  9929. /**
  9930. * Push a new job onto a specific queue after (n) seconds.
  9931. *
  9932. * @param string $queue
  9933. * @param \DateTimeInterface|\DateInterval|int $delay
  9934. * @param string|object $job
  9935. * @param mixed $data
  9936. * @return mixed
  9937. * @static
  9938. */ public static function laterOn($queue, $delay, $job, $data = '')
  9939. {
  9940. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9941. return $instance->laterOn($queue, $delay, $job, $data);
  9942. }
  9943. /**
  9944. * Pop the next job off of the queue.
  9945. *
  9946. * @param string|null $queue
  9947. * @return \Illuminate\Contracts\Queue\Job|null
  9948. * @static
  9949. */ public static function pop($queue = null)
  9950. {
  9951. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9952. return $instance->pop($queue);
  9953. }
  9954. /**
  9955. * Push an array of jobs onto the queue.
  9956. *
  9957. * @param array $jobs
  9958. * @param mixed $data
  9959. * @param string|null $queue
  9960. * @return mixed
  9961. * @static
  9962. */ public static function bulk($jobs, $data = '', $queue = null)
  9963. {
  9964. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9965. return $instance->bulk($jobs, $data, $queue);
  9966. }
  9967. /**
  9968. * Get the jobs that have been pushed.
  9969. *
  9970. * @return array
  9971. * @static
  9972. */ public static function pushedJobs()
  9973. {
  9974. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9975. return $instance->pushedJobs();
  9976. }
  9977. /**
  9978. * Specify if jobs should be serialized and restored when being "pushed" to the queue.
  9979. *
  9980. * @param bool $serializeAndRestore
  9981. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  9982. * @static
  9983. */ public static function serializeAndRestore($serializeAndRestore = true)
  9984. {
  9985. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9986. return $instance->serializeAndRestore($serializeAndRestore);
  9987. }
  9988. /**
  9989. * Get the connection name for the queue.
  9990. *
  9991. * @return string
  9992. * @static
  9993. */ public static function getConnectionName()
  9994. {
  9995. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9996. return $instance->getConnectionName();
  9997. }
  9998. /**
  9999. * Set the connection name for the queue.
  10000. *
  10001. * @param string $name
  10002. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  10003. * @static
  10004. */ public static function setConnectionName($name)
  10005. {
  10006. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  10007. return $instance->setConnectionName($name);
  10008. }
  10009. /**
  10010. * Release a reserved job back onto the queue after (n) seconds.
  10011. *
  10012. * @param string $queue
  10013. * @param \Illuminate\Queue\Jobs\DatabaseJobRecord $job
  10014. * @param int $delay
  10015. * @return mixed
  10016. * @static
  10017. */ public static function release($queue, $job, $delay)
  10018. {
  10019. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10020. return $instance->release($queue, $job, $delay);
  10021. }
  10022. /**
  10023. * Delete a reserved job from the queue.
  10024. *
  10025. * @param string $queue
  10026. * @param string $id
  10027. * @return void
  10028. * @throws \Throwable
  10029. * @static
  10030. */ public static function deleteReserved($queue, $id)
  10031. {
  10032. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10033. $instance->deleteReserved($queue, $id);
  10034. }
  10035. /**
  10036. * Delete a reserved job from the reserved queue and release it.
  10037. *
  10038. * @param string $queue
  10039. * @param \Illuminate\Queue\Jobs\DatabaseJob $job
  10040. * @param int $delay
  10041. * @return void
  10042. * @static
  10043. */ public static function deleteAndRelease($queue, $job, $delay)
  10044. {
  10045. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10046. $instance->deleteAndRelease($queue, $job, $delay);
  10047. }
  10048. /**
  10049. * Delete all of the jobs from the queue.
  10050. *
  10051. * @param string $queue
  10052. * @return int
  10053. * @static
  10054. */ public static function clear($queue)
  10055. {
  10056. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10057. return $instance->clear($queue);
  10058. }
  10059. /**
  10060. * Get the queue or return the default.
  10061. *
  10062. * @param string|null $queue
  10063. * @return string
  10064. * @static
  10065. */ public static function getQueue($queue)
  10066. {
  10067. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10068. return $instance->getQueue($queue);
  10069. }
  10070. /**
  10071. * Get the underlying database instance.
  10072. *
  10073. * @return \Illuminate\Database\Connection
  10074. * @static
  10075. */ public static function getDatabase()
  10076. {
  10077. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10078. return $instance->getDatabase();
  10079. }
  10080. /**
  10081. * Get the maximum number of attempts for an object-based queue handler.
  10082. *
  10083. * @param mixed $job
  10084. * @return mixed
  10085. * @static
  10086. */ public static function getJobTries($job)
  10087. { //Method inherited from \Illuminate\Queue\Queue
  10088. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10089. return $instance->getJobTries($job);
  10090. }
  10091. /**
  10092. * Get the backoff for an object-based queue handler.
  10093. *
  10094. * @param mixed $job
  10095. * @return mixed
  10096. * @static
  10097. */ public static function getJobBackoff($job)
  10098. { //Method inherited from \Illuminate\Queue\Queue
  10099. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10100. return $instance->getJobBackoff($job);
  10101. }
  10102. /**
  10103. * Get the expiration timestamp for an object-based queue handler.
  10104. *
  10105. * @param mixed $job
  10106. * @return mixed
  10107. * @static
  10108. */ public static function getJobExpiration($job)
  10109. { //Method inherited from \Illuminate\Queue\Queue
  10110. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10111. return $instance->getJobExpiration($job);
  10112. }
  10113. /**
  10114. * Register a callback to be executed when creating job payloads.
  10115. *
  10116. * @param callable|null $callback
  10117. * @return void
  10118. * @static
  10119. */ public static function createPayloadUsing($callback)
  10120. { //Method inherited from \Illuminate\Queue\Queue
  10121. \Illuminate\Queue\DatabaseQueue::createPayloadUsing($callback);
  10122. }
  10123. /**
  10124. * Get the container instance being used by the connection.
  10125. *
  10126. * @return \Illuminate\Container\Container
  10127. * @static
  10128. */ public static function getContainer()
  10129. { //Method inherited from \Illuminate\Queue\Queue
  10130. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10131. return $instance->getContainer();
  10132. }
  10133. /**
  10134. * Set the IoC container instance.
  10135. *
  10136. * @param \Illuminate\Container\Container $container
  10137. * @return void
  10138. * @static
  10139. */ public static function setContainer($container)
  10140. { //Method inherited from \Illuminate\Queue\Queue
  10141. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  10142. $instance->setContainer($container);
  10143. }
  10144. }
  10145. /**
  10146. *
  10147. *
  10148. * @see \Illuminate\Cache\RateLimiter
  10149. */ class RateLimiter {
  10150. /**
  10151. * Register a named limiter configuration.
  10152. *
  10153. * @param \BackedEnum|\UnitEnum|string $name
  10154. * @param \Closure $callback
  10155. * @return \Illuminate\Cache\RateLimiter
  10156. * @static
  10157. */ public static function for($name, $callback)
  10158. {
  10159. /** @var \Illuminate\Cache\RateLimiter $instance */
  10160. return $instance->for($name, $callback);
  10161. }
  10162. /**
  10163. * Get the given named rate limiter.
  10164. *
  10165. * @param \BackedEnum|\UnitEnum|string $name
  10166. * @return \Closure|null
  10167. * @static
  10168. */ public static function limiter($name)
  10169. {
  10170. /** @var \Illuminate\Cache\RateLimiter $instance */
  10171. return $instance->limiter($name);
  10172. }
  10173. /**
  10174. * Attempts to execute a callback if it's not limited.
  10175. *
  10176. * @param string $key
  10177. * @param int $maxAttempts
  10178. * @param \Closure $callback
  10179. * @param int $decaySeconds
  10180. * @return mixed
  10181. * @static
  10182. */ public static function attempt($key, $maxAttempts, $callback, $decaySeconds = 60)
  10183. {
  10184. /** @var \Illuminate\Cache\RateLimiter $instance */
  10185. return $instance->attempt($key, $maxAttempts, $callback, $decaySeconds);
  10186. }
  10187. /**
  10188. * Determine if the given key has been "accessed" too many times.
  10189. *
  10190. * @param string $key
  10191. * @param int $maxAttempts
  10192. * @return bool
  10193. * @static
  10194. */ public static function tooManyAttempts($key, $maxAttempts)
  10195. {
  10196. /** @var \Illuminate\Cache\RateLimiter $instance */
  10197. return $instance->tooManyAttempts($key, $maxAttempts);
  10198. }
  10199. /**
  10200. * Increment (by 1) the counter for a given key for a given decay time.
  10201. *
  10202. * @param string $key
  10203. * @param int $decaySeconds
  10204. * @return int
  10205. * @static
  10206. */ public static function hit($key, $decaySeconds = 60)
  10207. {
  10208. /** @var \Illuminate\Cache\RateLimiter $instance */
  10209. return $instance->hit($key, $decaySeconds);
  10210. }
  10211. /**
  10212. * Increment the counter for a given key for a given decay time by a given amount.
  10213. *
  10214. * @param string $key
  10215. * @param int $decaySeconds
  10216. * @param int $amount
  10217. * @return int
  10218. * @static
  10219. */ public static function increment($key, $decaySeconds = 60, $amount = 1)
  10220. {
  10221. /** @var \Illuminate\Cache\RateLimiter $instance */
  10222. return $instance->increment($key, $decaySeconds, $amount);
  10223. }
  10224. /**
  10225. * Decrement the counter for a given key for a given decay time by a given amount.
  10226. *
  10227. * @param string $key
  10228. * @param int $decaySeconds
  10229. * @param int $amount
  10230. * @return int
  10231. * @static
  10232. */ public static function decrement($key, $decaySeconds = 60, $amount = 1)
  10233. {
  10234. /** @var \Illuminate\Cache\RateLimiter $instance */
  10235. return $instance->decrement($key, $decaySeconds, $amount);
  10236. }
  10237. /**
  10238. * Get the number of attempts for the given key.
  10239. *
  10240. * @param string $key
  10241. * @return mixed
  10242. * @static
  10243. */ public static function attempts($key)
  10244. {
  10245. /** @var \Illuminate\Cache\RateLimiter $instance */
  10246. return $instance->attempts($key);
  10247. }
  10248. /**
  10249. * Reset the number of attempts for the given key.
  10250. *
  10251. * @param string $key
  10252. * @return mixed
  10253. * @static
  10254. */ public static function resetAttempts($key)
  10255. {
  10256. /** @var \Illuminate\Cache\RateLimiter $instance */
  10257. return $instance->resetAttempts($key);
  10258. }
  10259. /**
  10260. * Get the number of retries left for the given key.
  10261. *
  10262. * @param string $key
  10263. * @param int $maxAttempts
  10264. * @return int
  10265. * @static
  10266. */ public static function remaining($key, $maxAttempts)
  10267. {
  10268. /** @var \Illuminate\Cache\RateLimiter $instance */
  10269. return $instance->remaining($key, $maxAttempts);
  10270. }
  10271. /**
  10272. * Get the number of retries left for the given key.
  10273. *
  10274. * @param string $key
  10275. * @param int $maxAttempts
  10276. * @return int
  10277. * @static
  10278. */ public static function retriesLeft($key, $maxAttempts)
  10279. {
  10280. /** @var \Illuminate\Cache\RateLimiter $instance */
  10281. return $instance->retriesLeft($key, $maxAttempts);
  10282. }
  10283. /**
  10284. * Clear the hits and lockout timer for the given key.
  10285. *
  10286. * @param string $key
  10287. * @return void
  10288. * @static
  10289. */ public static function clear($key)
  10290. {
  10291. /** @var \Illuminate\Cache\RateLimiter $instance */
  10292. $instance->clear($key);
  10293. }
  10294. /**
  10295. * Get the number of seconds until the "key" is accessible again.
  10296. *
  10297. * @param string $key
  10298. * @return int
  10299. * @static
  10300. */ public static function availableIn($key)
  10301. {
  10302. /** @var \Illuminate\Cache\RateLimiter $instance */
  10303. return $instance->availableIn($key);
  10304. }
  10305. /**
  10306. * Clean the rate limiter key from unicode characters.
  10307. *
  10308. * @param string $key
  10309. * @return string
  10310. * @static
  10311. */ public static function cleanRateLimiterKey($key)
  10312. {
  10313. /** @var \Illuminate\Cache\RateLimiter $instance */
  10314. return $instance->cleanRateLimiterKey($key);
  10315. }
  10316. }
  10317. /**
  10318. *
  10319. *
  10320. * @see \Illuminate\Routing\Redirector
  10321. */ class Redirect {
  10322. /**
  10323. * Create a new redirect response to the previous location.
  10324. *
  10325. * @param int $status
  10326. * @param array $headers
  10327. * @param mixed $fallback
  10328. * @return \Illuminate\Http\RedirectResponse
  10329. * @static
  10330. */ public static function back($status = 302, $headers = [], $fallback = false)
  10331. {
  10332. /** @var \Illuminate\Routing\Redirector $instance */
  10333. return $instance->back($status, $headers, $fallback);
  10334. }
  10335. /**
  10336. * Create a new redirect response to the current URI.
  10337. *
  10338. * @param int $status
  10339. * @param array $headers
  10340. * @return \Illuminate\Http\RedirectResponse
  10341. * @static
  10342. */ public static function refresh($status = 302, $headers = [])
  10343. {
  10344. /** @var \Illuminate\Routing\Redirector $instance */
  10345. return $instance->refresh($status, $headers);
  10346. }
  10347. /**
  10348. * Create a new redirect response, while putting the current URL in the session.
  10349. *
  10350. * @param string $path
  10351. * @param int $status
  10352. * @param array $headers
  10353. * @param bool|null $secure
  10354. * @return \Illuminate\Http\RedirectResponse
  10355. * @static
  10356. */ public static function guest($path, $status = 302, $headers = [], $secure = null)
  10357. {
  10358. /** @var \Illuminate\Routing\Redirector $instance */
  10359. return $instance->guest($path, $status, $headers, $secure);
  10360. }
  10361. /**
  10362. * Create a new redirect response to the previously intended location.
  10363. *
  10364. * @param mixed $default
  10365. * @param int $status
  10366. * @param array $headers
  10367. * @param bool|null $secure
  10368. * @return \Illuminate\Http\RedirectResponse
  10369. * @static
  10370. */ public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  10371. {
  10372. /** @var \Illuminate\Routing\Redirector $instance */
  10373. return $instance->intended($default, $status, $headers, $secure);
  10374. }
  10375. /**
  10376. * Create a new redirect response to the given path.
  10377. *
  10378. * @param string $path
  10379. * @param int $status
  10380. * @param array $headers
  10381. * @param bool|null $secure
  10382. * @return \Illuminate\Http\RedirectResponse
  10383. * @static
  10384. */ public static function to($path, $status = 302, $headers = [], $secure = null)
  10385. {
  10386. /** @var \Illuminate\Routing\Redirector $instance */
  10387. return $instance->to($path, $status, $headers, $secure);
  10388. }
  10389. /**
  10390. * Create a new redirect response to an external URL (no validation).
  10391. *
  10392. * @param string $path
  10393. * @param int $status
  10394. * @param array $headers
  10395. * @return \Illuminate\Http\RedirectResponse
  10396. * @static
  10397. */ public static function away($path, $status = 302, $headers = [])
  10398. {
  10399. /** @var \Illuminate\Routing\Redirector $instance */
  10400. return $instance->away($path, $status, $headers);
  10401. }
  10402. /**
  10403. * Create a new redirect response to the given HTTPS path.
  10404. *
  10405. * @param string $path
  10406. * @param int $status
  10407. * @param array $headers
  10408. * @return \Illuminate\Http\RedirectResponse
  10409. * @static
  10410. */ public static function secure($path, $status = 302, $headers = [])
  10411. {
  10412. /** @var \Illuminate\Routing\Redirector $instance */
  10413. return $instance->secure($path, $status, $headers);
  10414. }
  10415. /**
  10416. * Create a new redirect response to a named route.
  10417. *
  10418. * @param \BackedEnum|string $route
  10419. * @param mixed $parameters
  10420. * @param int $status
  10421. * @param array $headers
  10422. * @return \Illuminate\Http\RedirectResponse
  10423. * @static
  10424. */ public static function route($route, $parameters = [], $status = 302, $headers = [])
  10425. {
  10426. /** @var \Illuminate\Routing\Redirector $instance */
  10427. return $instance->route($route, $parameters, $status, $headers);
  10428. }
  10429. /**
  10430. * Create a new redirect response to a signed named route.
  10431. *
  10432. * @param \BackedEnum|string $route
  10433. * @param mixed $parameters
  10434. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  10435. * @param int $status
  10436. * @param array $headers
  10437. * @return \Illuminate\Http\RedirectResponse
  10438. * @static
  10439. */ public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  10440. {
  10441. /** @var \Illuminate\Routing\Redirector $instance */
  10442. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  10443. }
  10444. /**
  10445. * Create a new redirect response to a signed named route.
  10446. *
  10447. * @param \BackedEnum|string $route
  10448. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  10449. * @param mixed $parameters
  10450. * @param int $status
  10451. * @param array $headers
  10452. * @return \Illuminate\Http\RedirectResponse
  10453. * @static
  10454. */ public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  10455. {
  10456. /** @var \Illuminate\Routing\Redirector $instance */
  10457. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  10458. }
  10459. /**
  10460. * Create a new redirect response to a controller action.
  10461. *
  10462. * @param string|array $action
  10463. * @param mixed $parameters
  10464. * @param int $status
  10465. * @param array $headers
  10466. * @return \Illuminate\Http\RedirectResponse
  10467. * @static
  10468. */ public static function action($action, $parameters = [], $status = 302, $headers = [])
  10469. {
  10470. /** @var \Illuminate\Routing\Redirector $instance */
  10471. return $instance->action($action, $parameters, $status, $headers);
  10472. }
  10473. /**
  10474. * Get the URL generator instance.
  10475. *
  10476. * @return \Illuminate\Routing\UrlGenerator
  10477. * @static
  10478. */ public static function getUrlGenerator()
  10479. {
  10480. /** @var \Illuminate\Routing\Redirector $instance */
  10481. return $instance->getUrlGenerator();
  10482. }
  10483. /**
  10484. * Set the active session store.
  10485. *
  10486. * @param \Illuminate\Session\Store $session
  10487. * @return void
  10488. * @static
  10489. */ public static function setSession($session)
  10490. {
  10491. /** @var \Illuminate\Routing\Redirector $instance */
  10492. $instance->setSession($session);
  10493. }
  10494. /**
  10495. * Get the "intended" URL from the session.
  10496. *
  10497. * @return string|null
  10498. * @static
  10499. */ public static function getIntendedUrl()
  10500. {
  10501. /** @var \Illuminate\Routing\Redirector $instance */
  10502. return $instance->getIntendedUrl();
  10503. }
  10504. /**
  10505. * Set the "intended" URL in the session.
  10506. *
  10507. * @param string $url
  10508. * @return \Illuminate\Routing\Redirector
  10509. * @static
  10510. */ public static function setIntendedUrl($url)
  10511. {
  10512. /** @var \Illuminate\Routing\Redirector $instance */
  10513. return $instance->setIntendedUrl($url);
  10514. }
  10515. /**
  10516. * Register a custom macro.
  10517. *
  10518. * @param string $name
  10519. * @param object|callable $macro
  10520. * @param-closure-this static $macro
  10521. * @return void
  10522. * @static
  10523. */ public static function macro($name, $macro)
  10524. {
  10525. \Illuminate\Routing\Redirector::macro($name, $macro);
  10526. }
  10527. /**
  10528. * Mix another object into the class.
  10529. *
  10530. * @param object $mixin
  10531. * @param bool $replace
  10532. * @return void
  10533. * @throws \ReflectionException
  10534. * @static
  10535. */ public static function mixin($mixin, $replace = true)
  10536. {
  10537. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  10538. }
  10539. /**
  10540. * Checks if macro is registered.
  10541. *
  10542. * @param string $name
  10543. * @return bool
  10544. * @static
  10545. */ public static function hasMacro($name)
  10546. {
  10547. return \Illuminate\Routing\Redirector::hasMacro($name);
  10548. }
  10549. /**
  10550. * Flush the existing macros.
  10551. *
  10552. * @return void
  10553. * @static
  10554. */ public static function flushMacros()
  10555. {
  10556. \Illuminate\Routing\Redirector::flushMacros();
  10557. }
  10558. }
  10559. /**
  10560. *
  10561. *
  10562. * @see \Illuminate\Http\Request
  10563. */ class Request {
  10564. /**
  10565. * Create a new Illuminate HTTP request from server variables.
  10566. *
  10567. * @return static
  10568. * @static
  10569. */ public static function capture()
  10570. {
  10571. return \Illuminate\Http\Request::capture();
  10572. }
  10573. /**
  10574. * Return the Request instance.
  10575. *
  10576. * @return \Illuminate\Http\Request
  10577. * @static
  10578. */ public static function instance()
  10579. {
  10580. /** @var \Illuminate\Http\Request $instance */
  10581. return $instance->instance();
  10582. }
  10583. /**
  10584. * Get the request method.
  10585. *
  10586. * @return string
  10587. * @static
  10588. */ public static function method()
  10589. {
  10590. /** @var \Illuminate\Http\Request $instance */
  10591. return $instance->method();
  10592. }
  10593. /**
  10594. * Get the root URL for the application.
  10595. *
  10596. * @return string
  10597. * @static
  10598. */ public static function root()
  10599. {
  10600. /** @var \Illuminate\Http\Request $instance */
  10601. return $instance->root();
  10602. }
  10603. /**
  10604. * Get the URL (no query string) for the request.
  10605. *
  10606. * @return string
  10607. * @static
  10608. */ public static function url()
  10609. {
  10610. /** @var \Illuminate\Http\Request $instance */
  10611. return $instance->url();
  10612. }
  10613. /**
  10614. * Get the full URL for the request.
  10615. *
  10616. * @return string
  10617. * @static
  10618. */ public static function fullUrl()
  10619. {
  10620. /** @var \Illuminate\Http\Request $instance */
  10621. return $instance->fullUrl();
  10622. }
  10623. /**
  10624. * Get the full URL for the request with the added query string parameters.
  10625. *
  10626. * @param array $query
  10627. * @return string
  10628. * @static
  10629. */ public static function fullUrlWithQuery($query)
  10630. {
  10631. /** @var \Illuminate\Http\Request $instance */
  10632. return $instance->fullUrlWithQuery($query);
  10633. }
  10634. /**
  10635. * Get the full URL for the request without the given query string parameters.
  10636. *
  10637. * @param array|string $keys
  10638. * @return string
  10639. * @static
  10640. */ public static function fullUrlWithoutQuery($keys)
  10641. {
  10642. /** @var \Illuminate\Http\Request $instance */
  10643. return $instance->fullUrlWithoutQuery($keys);
  10644. }
  10645. /**
  10646. * Get the current path info for the request.
  10647. *
  10648. * @return string
  10649. * @static
  10650. */ public static function path()
  10651. {
  10652. /** @var \Illuminate\Http\Request $instance */
  10653. return $instance->path();
  10654. }
  10655. /**
  10656. * Get the current decoded path info for the request.
  10657. *
  10658. * @return string
  10659. * @static
  10660. */ public static function decodedPath()
  10661. {
  10662. /** @var \Illuminate\Http\Request $instance */
  10663. return $instance->decodedPath();
  10664. }
  10665. /**
  10666. * Get a segment from the URI (1 based index).
  10667. *
  10668. * @param int $index
  10669. * @param string|null $default
  10670. * @return string|null
  10671. * @static
  10672. */ public static function segment($index, $default = null)
  10673. {
  10674. /** @var \Illuminate\Http\Request $instance */
  10675. return $instance->segment($index, $default);
  10676. }
  10677. /**
  10678. * Get all of the segments for the request path.
  10679. *
  10680. * @return array
  10681. * @static
  10682. */ public static function segments()
  10683. {
  10684. /** @var \Illuminate\Http\Request $instance */
  10685. return $instance->segments();
  10686. }
  10687. /**
  10688. * Determine if the current request URI matches a pattern.
  10689. *
  10690. * @param mixed $patterns
  10691. * @return bool
  10692. * @static
  10693. */ public static function is(...$patterns)
  10694. {
  10695. /** @var \Illuminate\Http\Request $instance */
  10696. return $instance->is(...$patterns);
  10697. }
  10698. /**
  10699. * Determine if the route name matches a given pattern.
  10700. *
  10701. * @param mixed $patterns
  10702. * @return bool
  10703. * @static
  10704. */ public static function routeIs(...$patterns)
  10705. {
  10706. /** @var \Illuminate\Http\Request $instance */
  10707. return $instance->routeIs(...$patterns);
  10708. }
  10709. /**
  10710. * Determine if the current request URL and query string match a pattern.
  10711. *
  10712. * @param mixed $patterns
  10713. * @return bool
  10714. * @static
  10715. */ public static function fullUrlIs(...$patterns)
  10716. {
  10717. /** @var \Illuminate\Http\Request $instance */
  10718. return $instance->fullUrlIs(...$patterns);
  10719. }
  10720. /**
  10721. * Get the host name.
  10722. *
  10723. * @return string
  10724. * @static
  10725. */ public static function host()
  10726. {
  10727. /** @var \Illuminate\Http\Request $instance */
  10728. return $instance->host();
  10729. }
  10730. /**
  10731. * Get the HTTP host being requested.
  10732. *
  10733. * @return string
  10734. * @static
  10735. */ public static function httpHost()
  10736. {
  10737. /** @var \Illuminate\Http\Request $instance */
  10738. return $instance->httpHost();
  10739. }
  10740. /**
  10741. * Get the scheme and HTTP host.
  10742. *
  10743. * @return string
  10744. * @static
  10745. */ public static function schemeAndHttpHost()
  10746. {
  10747. /** @var \Illuminate\Http\Request $instance */
  10748. return $instance->schemeAndHttpHost();
  10749. }
  10750. /**
  10751. * Determine if the request is the result of an AJAX call.
  10752. *
  10753. * @return bool
  10754. * @static
  10755. */ public static function ajax()
  10756. {
  10757. /** @var \Illuminate\Http\Request $instance */
  10758. return $instance->ajax();
  10759. }
  10760. /**
  10761. * Determine if the request is the result of a PJAX call.
  10762. *
  10763. * @return bool
  10764. * @static
  10765. */ public static function pjax()
  10766. {
  10767. /** @var \Illuminate\Http\Request $instance */
  10768. return $instance->pjax();
  10769. }
  10770. /**
  10771. * Determine if the request is the result of a prefetch call.
  10772. *
  10773. * @return bool
  10774. * @static
  10775. */ public static function prefetch()
  10776. {
  10777. /** @var \Illuminate\Http\Request $instance */
  10778. return $instance->prefetch();
  10779. }
  10780. /**
  10781. * Determine if the request is over HTTPS.
  10782. *
  10783. * @return bool
  10784. * @static
  10785. */ public static function secure()
  10786. {
  10787. /** @var \Illuminate\Http\Request $instance */
  10788. return $instance->secure();
  10789. }
  10790. /**
  10791. * Get the client IP address.
  10792. *
  10793. * @return string|null
  10794. * @static
  10795. */ public static function ip()
  10796. {
  10797. /** @var \Illuminate\Http\Request $instance */
  10798. return $instance->ip();
  10799. }
  10800. /**
  10801. * Get the client IP addresses.
  10802. *
  10803. * @return array
  10804. * @static
  10805. */ public static function ips()
  10806. {
  10807. /** @var \Illuminate\Http\Request $instance */
  10808. return $instance->ips();
  10809. }
  10810. /**
  10811. * Get the client user agent.
  10812. *
  10813. * @return string|null
  10814. * @static
  10815. */ public static function userAgent()
  10816. {
  10817. /** @var \Illuminate\Http\Request $instance */
  10818. return $instance->userAgent();
  10819. }
  10820. /**
  10821. * Merge new input into the current request's input array.
  10822. *
  10823. * @param array $input
  10824. * @return \Illuminate\Http\Request
  10825. * @static
  10826. */ public static function merge($input)
  10827. {
  10828. /** @var \Illuminate\Http\Request $instance */
  10829. return $instance->merge($input);
  10830. }
  10831. /**
  10832. * Merge new input into the request's input, but only when that key is missing from the request.
  10833. *
  10834. * @param array $input
  10835. * @return \Illuminate\Http\Request
  10836. * @static
  10837. */ public static function mergeIfMissing($input)
  10838. {
  10839. /** @var \Illuminate\Http\Request $instance */
  10840. return $instance->mergeIfMissing($input);
  10841. }
  10842. /**
  10843. * Replace the input values for the current request.
  10844. *
  10845. * @param array $input
  10846. * @return \Illuminate\Http\Request
  10847. * @static
  10848. */ public static function replace($input)
  10849. {
  10850. /** @var \Illuminate\Http\Request $instance */
  10851. return $instance->replace($input);
  10852. }
  10853. /**
  10854. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  10855. *
  10856. * Instead, you may use the "input" method.
  10857. *
  10858. * @param string $key
  10859. * @param mixed $default
  10860. * @return mixed
  10861. * @static
  10862. */ public static function get($key, $default = null)
  10863. {
  10864. /** @var \Illuminate\Http\Request $instance */
  10865. return $instance->get($key, $default);
  10866. }
  10867. /**
  10868. * Get the JSON payload for the request.
  10869. *
  10870. * @param string|null $key
  10871. * @param mixed $default
  10872. * @return \Symfony\Component\HttpFoundation\InputBag|mixed
  10873. * @static
  10874. */ public static function json($key = null, $default = null)
  10875. {
  10876. /** @var \Illuminate\Http\Request $instance */
  10877. return $instance->json($key, $default);
  10878. }
  10879. /**
  10880. * Create a new request instance from the given Laravel request.
  10881. *
  10882. * @param \Illuminate\Http\Request $from
  10883. * @param \Illuminate\Http\Request|null $to
  10884. * @return static
  10885. * @static
  10886. */ public static function createFrom($from, $to = null)
  10887. {
  10888. return \Illuminate\Http\Request::createFrom($from, $to);
  10889. }
  10890. /**
  10891. * Create an Illuminate request from a Symfony instance.
  10892. *
  10893. * @param \Symfony\Component\HttpFoundation\Request $request
  10894. * @return static
  10895. * @static
  10896. */ public static function createFromBase($request)
  10897. {
  10898. return \Illuminate\Http\Request::createFromBase($request);
  10899. }
  10900. /**
  10901. * Clones a request and overrides some of its parameters.
  10902. *
  10903. * @return static
  10904. * @param array|null $query The GET parameters
  10905. * @param array|null $request The POST parameters
  10906. * @param array|null $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  10907. * @param array|null $cookies The COOKIE parameters
  10908. * @param array|null $files The FILES parameters
  10909. * @param array|null $server The SERVER parameters
  10910. * @static
  10911. */ public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  10912. {
  10913. /** @var \Illuminate\Http\Request $instance */
  10914. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  10915. }
  10916. /**
  10917. * Whether the request contains a Session object.
  10918. *
  10919. * This method does not give any information about the state of the session object,
  10920. * like whether the session is started or not. It is just a way to check if this Request
  10921. * is associated with a Session instance.
  10922. *
  10923. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  10924. * @static
  10925. */ public static function hasSession($skipIfUninitialized = false)
  10926. {
  10927. /** @var \Illuminate\Http\Request $instance */
  10928. return $instance->hasSession($skipIfUninitialized);
  10929. }
  10930. /**
  10931. * Gets the Session.
  10932. *
  10933. * @throws SessionNotFoundException When session is not set properly
  10934. * @static
  10935. */ public static function getSession()
  10936. {
  10937. /** @var \Illuminate\Http\Request $instance */
  10938. return $instance->getSession();
  10939. }
  10940. /**
  10941. * Get the session associated with the request.
  10942. *
  10943. * @return \Illuminate\Contracts\Session\Session
  10944. * @throws \RuntimeException
  10945. * @static
  10946. */ public static function session()
  10947. {
  10948. /** @var \Illuminate\Http\Request $instance */
  10949. return $instance->session();
  10950. }
  10951. /**
  10952. * Set the session instance on the request.
  10953. *
  10954. * @param \Illuminate\Contracts\Session\Session $session
  10955. * @return void
  10956. * @static
  10957. */ public static function setLaravelSession($session)
  10958. {
  10959. /** @var \Illuminate\Http\Request $instance */
  10960. $instance->setLaravelSession($session);
  10961. }
  10962. /**
  10963. * Set the locale for the request instance.
  10964. *
  10965. * @param string $locale
  10966. * @return void
  10967. * @static
  10968. */ public static function setRequestLocale($locale)
  10969. {
  10970. /** @var \Illuminate\Http\Request $instance */
  10971. $instance->setRequestLocale($locale);
  10972. }
  10973. /**
  10974. * Set the default locale for the request instance.
  10975. *
  10976. * @param string $locale
  10977. * @return void
  10978. * @static
  10979. */ public static function setDefaultRequestLocale($locale)
  10980. {
  10981. /** @var \Illuminate\Http\Request $instance */
  10982. $instance->setDefaultRequestLocale($locale);
  10983. }
  10984. /**
  10985. * Get the user making the request.
  10986. *
  10987. * @param string|null $guard
  10988. * @return mixed
  10989. * @static
  10990. */ public static function user($guard = null)
  10991. {
  10992. /** @var \Illuminate\Http\Request $instance */
  10993. return $instance->user($guard);
  10994. }
  10995. /**
  10996. * Get the route handling the request.
  10997. *
  10998. * @param string|null $param
  10999. * @param mixed $default
  11000. * @return \Illuminate\Routing\Route|object|string|null
  11001. * @static
  11002. */ public static function route($param = null, $default = null)
  11003. {
  11004. /** @var \Illuminate\Http\Request $instance */
  11005. return $instance->route($param, $default);
  11006. }
  11007. /**
  11008. * Get a unique fingerprint for the request / route / IP address.
  11009. *
  11010. * @return string
  11011. * @throws \RuntimeException
  11012. * @static
  11013. */ public static function fingerprint()
  11014. {
  11015. /** @var \Illuminate\Http\Request $instance */
  11016. return $instance->fingerprint();
  11017. }
  11018. /**
  11019. * Set the JSON payload for the request.
  11020. *
  11021. * @param \Symfony\Component\HttpFoundation\InputBag $json
  11022. * @return \Illuminate\Http\Request
  11023. * @static
  11024. */ public static function setJson($json)
  11025. {
  11026. /** @var \Illuminate\Http\Request $instance */
  11027. return $instance->setJson($json);
  11028. }
  11029. /**
  11030. * Get the user resolver callback.
  11031. *
  11032. * @return \Closure
  11033. * @static
  11034. */ public static function getUserResolver()
  11035. {
  11036. /** @var \Illuminate\Http\Request $instance */
  11037. return $instance->getUserResolver();
  11038. }
  11039. /**
  11040. * Set the user resolver callback.
  11041. *
  11042. * @param \Closure $callback
  11043. * @return \Illuminate\Http\Request
  11044. * @static
  11045. */ public static function setUserResolver($callback)
  11046. {
  11047. /** @var \Illuminate\Http\Request $instance */
  11048. return $instance->setUserResolver($callback);
  11049. }
  11050. /**
  11051. * Get the route resolver callback.
  11052. *
  11053. * @return \Closure
  11054. * @static
  11055. */ public static function getRouteResolver()
  11056. {
  11057. /** @var \Illuminate\Http\Request $instance */
  11058. return $instance->getRouteResolver();
  11059. }
  11060. /**
  11061. * Set the route resolver callback.
  11062. *
  11063. * @param \Closure $callback
  11064. * @return \Illuminate\Http\Request
  11065. * @static
  11066. */ public static function setRouteResolver($callback)
  11067. {
  11068. /** @var \Illuminate\Http\Request $instance */
  11069. return $instance->setRouteResolver($callback);
  11070. }
  11071. /**
  11072. * Get all of the input and files for the request.
  11073. *
  11074. * @return array
  11075. * @static
  11076. */ public static function toArray()
  11077. {
  11078. /** @var \Illuminate\Http\Request $instance */
  11079. return $instance->toArray();
  11080. }
  11081. /**
  11082. * Determine if the given offset exists.
  11083. *
  11084. * @param string $offset
  11085. * @return bool
  11086. * @static
  11087. */ public static function offsetExists($offset)
  11088. {
  11089. /** @var \Illuminate\Http\Request $instance */
  11090. return $instance->offsetExists($offset);
  11091. }
  11092. /**
  11093. * Get the value at the given offset.
  11094. *
  11095. * @param string $offset
  11096. * @return mixed
  11097. * @static
  11098. */ public static function offsetGet($offset)
  11099. {
  11100. /** @var \Illuminate\Http\Request $instance */
  11101. return $instance->offsetGet($offset);
  11102. }
  11103. /**
  11104. * Set the value at the given offset.
  11105. *
  11106. * @param string $offset
  11107. * @param mixed $value
  11108. * @return void
  11109. * @static
  11110. */ public static function offsetSet($offset, $value)
  11111. {
  11112. /** @var \Illuminate\Http\Request $instance */
  11113. $instance->offsetSet($offset, $value);
  11114. }
  11115. /**
  11116. * Remove the value at the given offset.
  11117. *
  11118. * @param string $offset
  11119. * @return void
  11120. * @static
  11121. */ public static function offsetUnset($offset)
  11122. {
  11123. /** @var \Illuminate\Http\Request $instance */
  11124. $instance->offsetUnset($offset);
  11125. }
  11126. /**
  11127. * Sets the parameters for this request.
  11128. *
  11129. * This method also re-initializes all properties.
  11130. *
  11131. * @param array $query The GET parameters
  11132. * @param array $request The POST parameters
  11133. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  11134. * @param array $cookies The COOKIE parameters
  11135. * @param array $files The FILES parameters
  11136. * @param array $server The SERVER parameters
  11137. * @param string|resource|null $content The raw body data
  11138. * @static
  11139. */ public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  11140. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11141. /** @var \Illuminate\Http\Request $instance */
  11142. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  11143. }
  11144. /**
  11145. * Creates a new request with values from PHP's super globals.
  11146. *
  11147. * @static
  11148. */ public static function createFromGlobals()
  11149. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11150. return \Illuminate\Http\Request::createFromGlobals();
  11151. }
  11152. /**
  11153. * Creates a Request based on a given URI and configuration.
  11154. *
  11155. * The information contained in the URI always take precedence
  11156. * over the other information (server and parameters).
  11157. *
  11158. * @param string $uri The URI
  11159. * @param string $method The HTTP method
  11160. * @param array $parameters The query (GET) or request (POST) parameters
  11161. * @param array $cookies The request cookies ($_COOKIE)
  11162. * @param array $files The request files ($_FILES)
  11163. * @param array $server The server parameters ($_SERVER)
  11164. * @param string|resource|null $content The raw body data
  11165. * @throws BadRequestException When the URI is invalid
  11166. * @static
  11167. */ public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  11168. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11169. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  11170. }
  11171. /**
  11172. * Sets a callable able to create a Request instance.
  11173. *
  11174. * This is mainly useful when you need to override the Request class
  11175. * to keep BC with an existing system. It should not be used for any
  11176. * other purpose.
  11177. *
  11178. * @static
  11179. */ public static function setFactory($callable)
  11180. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11181. return \Illuminate\Http\Request::setFactory($callable);
  11182. }
  11183. /**
  11184. * Overrides the PHP global variables according to this request instance.
  11185. *
  11186. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  11187. * $_FILES is never overridden, see rfc1867
  11188. *
  11189. * @static
  11190. */ public static function overrideGlobals()
  11191. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11192. /** @var \Illuminate\Http\Request $instance */
  11193. return $instance->overrideGlobals();
  11194. }
  11195. /**
  11196. * Sets a list of trusted proxies.
  11197. *
  11198. * You should only list the reverse proxies that you manage directly.
  11199. *
  11200. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  11201. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  11202. * @static
  11203. */ public static function setTrustedProxies($proxies, $trustedHeaderSet)
  11204. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11205. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  11206. }
  11207. /**
  11208. * Gets the list of trusted proxies.
  11209. *
  11210. * @return string[]
  11211. * @static
  11212. */ public static function getTrustedProxies()
  11213. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11214. return \Illuminate\Http\Request::getTrustedProxies();
  11215. }
  11216. /**
  11217. * Gets the set of trusted headers from trusted proxies.
  11218. *
  11219. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  11220. * @static
  11221. */ public static function getTrustedHeaderSet()
  11222. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11223. return \Illuminate\Http\Request::getTrustedHeaderSet();
  11224. }
  11225. /**
  11226. * Sets a list of trusted host patterns.
  11227. *
  11228. * You should only list the hosts you manage using regexs.
  11229. *
  11230. * @param array $hostPatterns A list of trusted host patterns
  11231. * @static
  11232. */ public static function setTrustedHosts($hostPatterns)
  11233. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11234. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  11235. }
  11236. /**
  11237. * Gets the list of trusted host patterns.
  11238. *
  11239. * @return string[]
  11240. * @static
  11241. */ public static function getTrustedHosts()
  11242. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11243. return \Illuminate\Http\Request::getTrustedHosts();
  11244. }
  11245. /**
  11246. * Normalizes a query string.
  11247. *
  11248. * It builds a normalized query string, where keys/value pairs are alphabetized,
  11249. * have consistent escaping and unneeded delimiters are removed.
  11250. *
  11251. * @static
  11252. */ public static function normalizeQueryString($qs)
  11253. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11254. return \Illuminate\Http\Request::normalizeQueryString($qs);
  11255. }
  11256. /**
  11257. * Enables support for the _method request parameter to determine the intended HTTP method.
  11258. *
  11259. * Be warned that enabling this feature might lead to CSRF issues in your code.
  11260. * Check that you are using CSRF tokens when required.
  11261. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  11262. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  11263. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  11264. *
  11265. * The HTTP method can only be overridden when the real HTTP method is POST.
  11266. *
  11267. * @static
  11268. */ public static function enableHttpMethodParameterOverride()
  11269. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11270. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  11271. }
  11272. /**
  11273. * Checks whether support for the _method request parameter is enabled.
  11274. *
  11275. * @static
  11276. */ public static function getHttpMethodParameterOverride()
  11277. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11278. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  11279. }
  11280. /**
  11281. * Whether the request contains a Session which was started in one of the
  11282. * previous requests.
  11283. *
  11284. * @static
  11285. */ public static function hasPreviousSession()
  11286. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11287. /** @var \Illuminate\Http\Request $instance */
  11288. return $instance->hasPreviousSession();
  11289. }
  11290. /**
  11291. *
  11292. *
  11293. * @static
  11294. */ public static function setSession($session)
  11295. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11296. /** @var \Illuminate\Http\Request $instance */
  11297. return $instance->setSession($session);
  11298. }
  11299. /**
  11300. *
  11301. *
  11302. * @internal
  11303. * @param \Symfony\Component\HttpFoundation\callable(): SessionInterface $factory
  11304. * @static
  11305. */ public static function setSessionFactory($factory)
  11306. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11307. /** @var \Illuminate\Http\Request $instance */
  11308. return $instance->setSessionFactory($factory);
  11309. }
  11310. /**
  11311. * Returns the client IP addresses.
  11312. *
  11313. * In the returned array the most trusted IP address is first, and the
  11314. * least trusted one last. The "real" client IP address is the last one,
  11315. * but this is also the least trusted one. Trusted proxies are stripped.
  11316. *
  11317. * Use this method carefully; you should use getClientIp() instead.
  11318. *
  11319. * @see getClientIp()
  11320. * @static
  11321. */ public static function getClientIps()
  11322. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11323. /** @var \Illuminate\Http\Request $instance */
  11324. return $instance->getClientIps();
  11325. }
  11326. /**
  11327. * Returns the client IP address.
  11328. *
  11329. * This method can read the client IP address from the "X-Forwarded-For" header
  11330. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  11331. * header value is a comma+space separated list of IP addresses, the left-most
  11332. * being the original client, and each successive proxy that passed the request
  11333. * adding the IP address where it received the request from.
  11334. *
  11335. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  11336. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  11337. * argument of the Request::setTrustedProxies() method instead.
  11338. *
  11339. * @see getClientIps()
  11340. * @see https://wikipedia.org/wiki/X-Forwarded-For
  11341. * @static
  11342. */ public static function getClientIp()
  11343. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11344. /** @var \Illuminate\Http\Request $instance */
  11345. return $instance->getClientIp();
  11346. }
  11347. /**
  11348. * Returns current script name.
  11349. *
  11350. * @static
  11351. */ public static function getScriptName()
  11352. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11353. /** @var \Illuminate\Http\Request $instance */
  11354. return $instance->getScriptName();
  11355. }
  11356. /**
  11357. * Returns the path being requested relative to the executed script.
  11358. *
  11359. * The path info always starts with a /.
  11360. *
  11361. * Suppose this request is instantiated from /mysite on localhost:
  11362. *
  11363. * * http://localhost/mysite returns an empty string
  11364. * * http://localhost/mysite/about returns '/about'
  11365. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  11366. * * http://localhost/mysite/about?var=1 returns '/about'
  11367. *
  11368. * @return string The raw path (i.e. not urldecoded)
  11369. * @static
  11370. */ public static function getPathInfo()
  11371. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11372. /** @var \Illuminate\Http\Request $instance */
  11373. return $instance->getPathInfo();
  11374. }
  11375. /**
  11376. * Returns the root path from which this request is executed.
  11377. *
  11378. * Suppose that an index.php file instantiates this request object:
  11379. *
  11380. * * http://localhost/index.php returns an empty string
  11381. * * http://localhost/index.php/page returns an empty string
  11382. * * http://localhost/web/index.php returns '/web'
  11383. * * http://localhost/we%20b/index.php returns '/we%20b'
  11384. *
  11385. * @return string The raw path (i.e. not urldecoded)
  11386. * @static
  11387. */ public static function getBasePath()
  11388. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11389. /** @var \Illuminate\Http\Request $instance */
  11390. return $instance->getBasePath();
  11391. }
  11392. /**
  11393. * Returns the root URL from which this request is executed.
  11394. *
  11395. * The base URL never ends with a /.
  11396. *
  11397. * This is similar to getBasePath(), except that it also includes the
  11398. * script filename (e.g. index.php) if one exists.
  11399. *
  11400. * @return string The raw URL (i.e. not urldecoded)
  11401. * @static
  11402. */ public static function getBaseUrl()
  11403. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11404. /** @var \Illuminate\Http\Request $instance */
  11405. return $instance->getBaseUrl();
  11406. }
  11407. /**
  11408. * Gets the request's scheme.
  11409. *
  11410. * @static
  11411. */ public static function getScheme()
  11412. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11413. /** @var \Illuminate\Http\Request $instance */
  11414. return $instance->getScheme();
  11415. }
  11416. /**
  11417. * Returns the port on which the request is made.
  11418. *
  11419. * This method can read the client port from the "X-Forwarded-Port" header
  11420. * when trusted proxies were set via "setTrustedProxies()".
  11421. *
  11422. * The "X-Forwarded-Port" header must contain the client port.
  11423. *
  11424. * @return int|string|null Can be a string if fetched from the server bag
  11425. * @static
  11426. */ public static function getPort()
  11427. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11428. /** @var \Illuminate\Http\Request $instance */
  11429. return $instance->getPort();
  11430. }
  11431. /**
  11432. * Returns the user.
  11433. *
  11434. * @static
  11435. */ public static function getUser()
  11436. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11437. /** @var \Illuminate\Http\Request $instance */
  11438. return $instance->getUser();
  11439. }
  11440. /**
  11441. * Returns the password.
  11442. *
  11443. * @static
  11444. */ public static function getPassword()
  11445. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11446. /** @var \Illuminate\Http\Request $instance */
  11447. return $instance->getPassword();
  11448. }
  11449. /**
  11450. * Gets the user info.
  11451. *
  11452. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  11453. * @static
  11454. */ public static function getUserInfo()
  11455. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11456. /** @var \Illuminate\Http\Request $instance */
  11457. return $instance->getUserInfo();
  11458. }
  11459. /**
  11460. * Returns the HTTP host being requested.
  11461. *
  11462. * The port name will be appended to the host if it's non-standard.
  11463. *
  11464. * @static
  11465. */ public static function getHttpHost()
  11466. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11467. /** @var \Illuminate\Http\Request $instance */
  11468. return $instance->getHttpHost();
  11469. }
  11470. /**
  11471. * Returns the requested URI (path and query string).
  11472. *
  11473. * @return string The raw URI (i.e. not URI decoded)
  11474. * @static
  11475. */ public static function getRequestUri()
  11476. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11477. /** @var \Illuminate\Http\Request $instance */
  11478. return $instance->getRequestUri();
  11479. }
  11480. /**
  11481. * Gets the scheme and HTTP host.
  11482. *
  11483. * If the URL was called with basic authentication, the user
  11484. * and the password are not added to the generated string.
  11485. *
  11486. * @static
  11487. */ public static function getSchemeAndHttpHost()
  11488. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11489. /** @var \Illuminate\Http\Request $instance */
  11490. return $instance->getSchemeAndHttpHost();
  11491. }
  11492. /**
  11493. * Generates a normalized URI (URL) for the Request.
  11494. *
  11495. * @see getQueryString()
  11496. * @static
  11497. */ public static function getUri()
  11498. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11499. /** @var \Illuminate\Http\Request $instance */
  11500. return $instance->getUri();
  11501. }
  11502. /**
  11503. * Generates a normalized URI for the given path.
  11504. *
  11505. * @param string $path A path to use instead of the current one
  11506. * @static
  11507. */ public static function getUriForPath($path)
  11508. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11509. /** @var \Illuminate\Http\Request $instance */
  11510. return $instance->getUriForPath($path);
  11511. }
  11512. /**
  11513. * Returns the path as relative reference from the current Request path.
  11514. *
  11515. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  11516. * Both paths must be absolute and not contain relative parts.
  11517. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  11518. * Furthermore, they can be used to reduce the link size in documents.
  11519. *
  11520. * Example target paths, given a base path of "/a/b/c/d":
  11521. * - "/a/b/c/d" -> ""
  11522. * - "/a/b/c/" -> "./"
  11523. * - "/a/b/" -> "../"
  11524. * - "/a/b/c/other" -> "other"
  11525. * - "/a/x/y" -> "../../x/y"
  11526. *
  11527. * @static
  11528. */ public static function getRelativeUriForPath($path)
  11529. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11530. /** @var \Illuminate\Http\Request $instance */
  11531. return $instance->getRelativeUriForPath($path);
  11532. }
  11533. /**
  11534. * Generates the normalized query string for the Request.
  11535. *
  11536. * It builds a normalized query string, where keys/value pairs are alphabetized
  11537. * and have consistent escaping.
  11538. *
  11539. * @static
  11540. */ public static function getQueryString()
  11541. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11542. /** @var \Illuminate\Http\Request $instance */
  11543. return $instance->getQueryString();
  11544. }
  11545. /**
  11546. * Checks whether the request is secure or not.
  11547. *
  11548. * This method can read the client protocol from the "X-Forwarded-Proto" header
  11549. * when trusted proxies were set via "setTrustedProxies()".
  11550. *
  11551. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  11552. *
  11553. * @static
  11554. */ public static function isSecure()
  11555. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11556. /** @var \Illuminate\Http\Request $instance */
  11557. return $instance->isSecure();
  11558. }
  11559. /**
  11560. * Returns the host name.
  11561. *
  11562. * This method can read the client host name from the "X-Forwarded-Host" header
  11563. * when trusted proxies were set via "setTrustedProxies()".
  11564. *
  11565. * The "X-Forwarded-Host" header must contain the client host name.
  11566. *
  11567. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  11568. * @static
  11569. */ public static function getHost()
  11570. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11571. /** @var \Illuminate\Http\Request $instance */
  11572. return $instance->getHost();
  11573. }
  11574. /**
  11575. * Sets the request method.
  11576. *
  11577. * @static
  11578. */ public static function setMethod($method)
  11579. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11580. /** @var \Illuminate\Http\Request $instance */
  11581. return $instance->setMethod($method);
  11582. }
  11583. /**
  11584. * Gets the request "intended" method.
  11585. *
  11586. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  11587. * then it is used to determine the "real" intended HTTP method.
  11588. *
  11589. * The _method request parameter can also be used to determine the HTTP method,
  11590. * but only if enableHttpMethodParameterOverride() has been called.
  11591. *
  11592. * The method is always an uppercased string.
  11593. *
  11594. * @see getRealMethod()
  11595. * @static
  11596. */ public static function getMethod()
  11597. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11598. /** @var \Illuminate\Http\Request $instance */
  11599. return $instance->getMethod();
  11600. }
  11601. /**
  11602. * Gets the "real" request method.
  11603. *
  11604. * @see getMethod()
  11605. * @static
  11606. */ public static function getRealMethod()
  11607. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11608. /** @var \Illuminate\Http\Request $instance */
  11609. return $instance->getRealMethod();
  11610. }
  11611. /**
  11612. * Gets the mime type associated with the format.
  11613. *
  11614. * @static
  11615. */ public static function getMimeType($format)
  11616. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11617. /** @var \Illuminate\Http\Request $instance */
  11618. return $instance->getMimeType($format);
  11619. }
  11620. /**
  11621. * Gets the mime types associated with the format.
  11622. *
  11623. * @return string[]
  11624. * @static
  11625. */ public static function getMimeTypes($format)
  11626. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11627. return \Illuminate\Http\Request::getMimeTypes($format);
  11628. }
  11629. /**
  11630. * Gets the format associated with the mime type.
  11631. *
  11632. * @static
  11633. */ public static function getFormat($mimeType)
  11634. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11635. /** @var \Illuminate\Http\Request $instance */
  11636. return $instance->getFormat($mimeType);
  11637. }
  11638. /**
  11639. * Associates a format with mime types.
  11640. *
  11641. * @param string|string[] $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  11642. * @static
  11643. */ public static function setFormat($format, $mimeTypes)
  11644. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11645. /** @var \Illuminate\Http\Request $instance */
  11646. return $instance->setFormat($format, $mimeTypes);
  11647. }
  11648. /**
  11649. * Gets the request format.
  11650. *
  11651. * Here is the process to determine the format:
  11652. *
  11653. * * format defined by the user (with setRequestFormat())
  11654. * * _format request attribute
  11655. * * $default
  11656. *
  11657. * @see getPreferredFormat
  11658. * @static
  11659. */ public static function getRequestFormat($default = 'html')
  11660. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11661. /** @var \Illuminate\Http\Request $instance */
  11662. return $instance->getRequestFormat($default);
  11663. }
  11664. /**
  11665. * Sets the request format.
  11666. *
  11667. * @static
  11668. */ public static function setRequestFormat($format)
  11669. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11670. /** @var \Illuminate\Http\Request $instance */
  11671. return $instance->setRequestFormat($format);
  11672. }
  11673. /**
  11674. * Gets the usual name of the format associated with the request's media type (provided in the Content-Type header).
  11675. *
  11676. * @see Request::$formats
  11677. * @static
  11678. */ public static function getContentTypeFormat()
  11679. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11680. /** @var \Illuminate\Http\Request $instance */
  11681. return $instance->getContentTypeFormat();
  11682. }
  11683. /**
  11684. * Sets the default locale.
  11685. *
  11686. * @static
  11687. */ public static function setDefaultLocale($locale)
  11688. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11689. /** @var \Illuminate\Http\Request $instance */
  11690. return $instance->setDefaultLocale($locale);
  11691. }
  11692. /**
  11693. * Get the default locale.
  11694. *
  11695. * @static
  11696. */ public static function getDefaultLocale()
  11697. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11698. /** @var \Illuminate\Http\Request $instance */
  11699. return $instance->getDefaultLocale();
  11700. }
  11701. /**
  11702. * Sets the locale.
  11703. *
  11704. * @static
  11705. */ public static function setLocale($locale)
  11706. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11707. /** @var \Illuminate\Http\Request $instance */
  11708. return $instance->setLocale($locale);
  11709. }
  11710. /**
  11711. * Get the locale.
  11712. *
  11713. * @static
  11714. */ public static function getLocale()
  11715. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11716. /** @var \Illuminate\Http\Request $instance */
  11717. return $instance->getLocale();
  11718. }
  11719. /**
  11720. * Checks if the request method is of specified type.
  11721. *
  11722. * @param string $method Uppercase request method (GET, POST etc)
  11723. * @static
  11724. */ public static function isMethod($method)
  11725. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11726. /** @var \Illuminate\Http\Request $instance */
  11727. return $instance->isMethod($method);
  11728. }
  11729. /**
  11730. * Checks whether or not the method is safe.
  11731. *
  11732. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  11733. * @static
  11734. */ public static function isMethodSafe()
  11735. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11736. /** @var \Illuminate\Http\Request $instance */
  11737. return $instance->isMethodSafe();
  11738. }
  11739. /**
  11740. * Checks whether or not the method is idempotent.
  11741. *
  11742. * @static
  11743. */ public static function isMethodIdempotent()
  11744. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11745. /** @var \Illuminate\Http\Request $instance */
  11746. return $instance->isMethodIdempotent();
  11747. }
  11748. /**
  11749. * Checks whether the method is cacheable or not.
  11750. *
  11751. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  11752. * @static
  11753. */ public static function isMethodCacheable()
  11754. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11755. /** @var \Illuminate\Http\Request $instance */
  11756. return $instance->isMethodCacheable();
  11757. }
  11758. /**
  11759. * Returns the protocol version.
  11760. *
  11761. * If the application is behind a proxy, the protocol version used in the
  11762. * requests between the client and the proxy and between the proxy and the
  11763. * server might be different. This returns the former (from the "Via" header)
  11764. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  11765. * the latter (from the "SERVER_PROTOCOL" server parameter).
  11766. *
  11767. * @static
  11768. */ public static function getProtocolVersion()
  11769. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11770. /** @var \Illuminate\Http\Request $instance */
  11771. return $instance->getProtocolVersion();
  11772. }
  11773. /**
  11774. * Returns the request body content.
  11775. *
  11776. * @param bool $asResource If true, a resource will be returned
  11777. * @return string|resource
  11778. * @psalm-return ($asResource is true ? resource : string)
  11779. * @static
  11780. */ public static function getContent($asResource = false)
  11781. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11782. /** @var \Illuminate\Http\Request $instance */
  11783. return $instance->getContent($asResource);
  11784. }
  11785. /**
  11786. * Gets the decoded form or json request body.
  11787. *
  11788. * @throws JsonException When the body cannot be decoded to an array
  11789. * @static
  11790. */ public static function getPayload()
  11791. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11792. /** @var \Illuminate\Http\Request $instance */
  11793. return $instance->getPayload();
  11794. }
  11795. /**
  11796. * Gets the Etags.
  11797. *
  11798. * @static
  11799. */ public static function getETags()
  11800. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11801. /** @var \Illuminate\Http\Request $instance */
  11802. return $instance->getETags();
  11803. }
  11804. /**
  11805. *
  11806. *
  11807. * @static
  11808. */ public static function isNoCache()
  11809. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11810. /** @var \Illuminate\Http\Request $instance */
  11811. return $instance->isNoCache();
  11812. }
  11813. /**
  11814. * Gets the preferred format for the response by inspecting, in the following order:
  11815. * * the request format set using setRequestFormat;
  11816. * * the values of the Accept HTTP header.
  11817. *
  11818. * Note that if you use this method, you should send the "Vary: Accept" header
  11819. * in the response to prevent any issues with intermediary HTTP caches.
  11820. *
  11821. * @static
  11822. */ public static function getPreferredFormat($default = 'html')
  11823. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11824. /** @var \Illuminate\Http\Request $instance */
  11825. return $instance->getPreferredFormat($default);
  11826. }
  11827. /**
  11828. * Returns the preferred language.
  11829. *
  11830. * @param string[] $locales An array of ordered available locales
  11831. * @static
  11832. */ public static function getPreferredLanguage($locales = null)
  11833. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11834. /** @var \Illuminate\Http\Request $instance */
  11835. return $instance->getPreferredLanguage($locales);
  11836. }
  11837. /**
  11838. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  11839. *
  11840. * @return string[]
  11841. * @static
  11842. */ public static function getLanguages()
  11843. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11844. /** @var \Illuminate\Http\Request $instance */
  11845. return $instance->getLanguages();
  11846. }
  11847. /**
  11848. * Gets a list of charsets acceptable by the client browser in preferable order.
  11849. *
  11850. * @return string[]
  11851. * @static
  11852. */ public static function getCharsets()
  11853. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11854. /** @var \Illuminate\Http\Request $instance */
  11855. return $instance->getCharsets();
  11856. }
  11857. /**
  11858. * Gets a list of encodings acceptable by the client browser in preferable order.
  11859. *
  11860. * @return string[]
  11861. * @static
  11862. */ public static function getEncodings()
  11863. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11864. /** @var \Illuminate\Http\Request $instance */
  11865. return $instance->getEncodings();
  11866. }
  11867. /**
  11868. * Gets a list of content types acceptable by the client browser in preferable order.
  11869. *
  11870. * @return string[]
  11871. * @static
  11872. */ public static function getAcceptableContentTypes()
  11873. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11874. /** @var \Illuminate\Http\Request $instance */
  11875. return $instance->getAcceptableContentTypes();
  11876. }
  11877. /**
  11878. * Returns true if the request is an XMLHttpRequest.
  11879. *
  11880. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  11881. * It is known to work with common JavaScript frameworks:
  11882. *
  11883. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  11884. * @static
  11885. */ public static function isXmlHttpRequest()
  11886. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11887. /** @var \Illuminate\Http\Request $instance */
  11888. return $instance->isXmlHttpRequest();
  11889. }
  11890. /**
  11891. * Checks whether the client browser prefers safe content or not according to RFC8674.
  11892. *
  11893. * @see https://tools.ietf.org/html/rfc8674
  11894. * @static
  11895. */ public static function preferSafeContent()
  11896. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11897. /** @var \Illuminate\Http\Request $instance */
  11898. return $instance->preferSafeContent();
  11899. }
  11900. /**
  11901. * Indicates whether this request originated from a trusted proxy.
  11902. *
  11903. * This can be useful to determine whether or not to trust the
  11904. * contents of a proxy-specific header.
  11905. *
  11906. * @static
  11907. */ public static function isFromTrustedProxy()
  11908. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11909. /** @var \Illuminate\Http\Request $instance */
  11910. return $instance->isFromTrustedProxy();
  11911. }
  11912. /**
  11913. * Filter the given array of rules into an array of rules that are included in precognitive headers.
  11914. *
  11915. * @param array $rules
  11916. * @return array
  11917. * @static
  11918. */ public static function filterPrecognitiveRules($rules)
  11919. {
  11920. /** @var \Illuminate\Http\Request $instance */
  11921. return $instance->filterPrecognitiveRules($rules);
  11922. }
  11923. /**
  11924. * Determine if the request is attempting to be precognitive.
  11925. *
  11926. * @return bool
  11927. * @static
  11928. */ public static function isAttemptingPrecognition()
  11929. {
  11930. /** @var \Illuminate\Http\Request $instance */
  11931. return $instance->isAttemptingPrecognition();
  11932. }
  11933. /**
  11934. * Determine if the request is precognitive.
  11935. *
  11936. * @return bool
  11937. * @static
  11938. */ public static function isPrecognitive()
  11939. {
  11940. /** @var \Illuminate\Http\Request $instance */
  11941. return $instance->isPrecognitive();
  11942. }
  11943. /**
  11944. * Determine if the request is sending JSON.
  11945. *
  11946. * @return bool
  11947. * @static
  11948. */ public static function isJson()
  11949. {
  11950. /** @var \Illuminate\Http\Request $instance */
  11951. return $instance->isJson();
  11952. }
  11953. /**
  11954. * Determine if the current request probably expects a JSON response.
  11955. *
  11956. * @return bool
  11957. * @static
  11958. */ public static function expectsJson()
  11959. {
  11960. /** @var \Illuminate\Http\Request $instance */
  11961. return $instance->expectsJson();
  11962. }
  11963. /**
  11964. * Determine if the current request is asking for JSON.
  11965. *
  11966. * @return bool
  11967. * @static
  11968. */ public static function wantsJson()
  11969. {
  11970. /** @var \Illuminate\Http\Request $instance */
  11971. return $instance->wantsJson();
  11972. }
  11973. /**
  11974. * Determines whether the current requests accepts a given content type.
  11975. *
  11976. * @param string|array $contentTypes
  11977. * @return bool
  11978. * @static
  11979. */ public static function accepts($contentTypes)
  11980. {
  11981. /** @var \Illuminate\Http\Request $instance */
  11982. return $instance->accepts($contentTypes);
  11983. }
  11984. /**
  11985. * Return the most suitable content type from the given array based on content negotiation.
  11986. *
  11987. * @param string|array $contentTypes
  11988. * @return string|null
  11989. * @static
  11990. */ public static function prefers($contentTypes)
  11991. {
  11992. /** @var \Illuminate\Http\Request $instance */
  11993. return $instance->prefers($contentTypes);
  11994. }
  11995. /**
  11996. * Determine if the current request accepts any content type.
  11997. *
  11998. * @return bool
  11999. * @static
  12000. */ public static function acceptsAnyContentType()
  12001. {
  12002. /** @var \Illuminate\Http\Request $instance */
  12003. return $instance->acceptsAnyContentType();
  12004. }
  12005. /**
  12006. * Determines whether a request accepts JSON.
  12007. *
  12008. * @return bool
  12009. * @static
  12010. */ public static function acceptsJson()
  12011. {
  12012. /** @var \Illuminate\Http\Request $instance */
  12013. return $instance->acceptsJson();
  12014. }
  12015. /**
  12016. * Determines whether a request accepts HTML.
  12017. *
  12018. * @return bool
  12019. * @static
  12020. */ public static function acceptsHtml()
  12021. {
  12022. /** @var \Illuminate\Http\Request $instance */
  12023. return $instance->acceptsHtml();
  12024. }
  12025. /**
  12026. * Determine if the given content types match.
  12027. *
  12028. * @param string $actual
  12029. * @param string $type
  12030. * @return bool
  12031. * @static
  12032. */ public static function matchesType($actual, $type)
  12033. {
  12034. return \Illuminate\Http\Request::matchesType($actual, $type);
  12035. }
  12036. /**
  12037. * Get the data format expected in the response.
  12038. *
  12039. * @param string $default
  12040. * @return string
  12041. * @static
  12042. */ public static function format($default = 'html')
  12043. {
  12044. /** @var \Illuminate\Http\Request $instance */
  12045. return $instance->format($default);
  12046. }
  12047. /**
  12048. * Retrieve an old input item.
  12049. *
  12050. * @param string|null $key
  12051. * @param \Illuminate\Database\Eloquent\Model|string|array|null $default
  12052. * @return string|array|null
  12053. * @static
  12054. */ public static function old($key = null, $default = null)
  12055. {
  12056. /** @var \Illuminate\Http\Request $instance */
  12057. return $instance->old($key, $default);
  12058. }
  12059. /**
  12060. * Flash the input for the current request to the session.
  12061. *
  12062. * @return void
  12063. * @static
  12064. */ public static function flash()
  12065. {
  12066. /** @var \Illuminate\Http\Request $instance */
  12067. $instance->flash();
  12068. }
  12069. /**
  12070. * Flash only some of the input to the session.
  12071. *
  12072. * @param array|mixed $keys
  12073. * @return void
  12074. * @static
  12075. */ public static function flashOnly($keys)
  12076. {
  12077. /** @var \Illuminate\Http\Request $instance */
  12078. $instance->flashOnly($keys);
  12079. }
  12080. /**
  12081. * Flash only some of the input to the session.
  12082. *
  12083. * @param array|mixed $keys
  12084. * @return void
  12085. * @static
  12086. */ public static function flashExcept($keys)
  12087. {
  12088. /** @var \Illuminate\Http\Request $instance */
  12089. $instance->flashExcept($keys);
  12090. }
  12091. /**
  12092. * Flush all of the old input from the session.
  12093. *
  12094. * @return void
  12095. * @static
  12096. */ public static function flush()
  12097. {
  12098. /** @var \Illuminate\Http\Request $instance */
  12099. $instance->flush();
  12100. }
  12101. /**
  12102. * Retrieve a server variable from the request.
  12103. *
  12104. * @param string|null $key
  12105. * @param string|array|null $default
  12106. * @return string|array|null
  12107. * @static
  12108. */ public static function server($key = null, $default = null)
  12109. {
  12110. /** @var \Illuminate\Http\Request $instance */
  12111. return $instance->server($key, $default);
  12112. }
  12113. /**
  12114. * Determine if a header is set on the request.
  12115. *
  12116. * @param string $key
  12117. * @return bool
  12118. * @static
  12119. */ public static function hasHeader($key)
  12120. {
  12121. /** @var \Illuminate\Http\Request $instance */
  12122. return $instance->hasHeader($key);
  12123. }
  12124. /**
  12125. * Retrieve a header from the request.
  12126. *
  12127. * @param string|null $key
  12128. * @param string|array|null $default
  12129. * @return string|array|null
  12130. * @static
  12131. */ public static function header($key = null, $default = null)
  12132. {
  12133. /** @var \Illuminate\Http\Request $instance */
  12134. return $instance->header($key, $default);
  12135. }
  12136. /**
  12137. * Get the bearer token from the request headers.
  12138. *
  12139. * @return string|null
  12140. * @static
  12141. */ public static function bearerToken()
  12142. {
  12143. /** @var \Illuminate\Http\Request $instance */
  12144. return $instance->bearerToken();
  12145. }
  12146. /**
  12147. * Determine if the request contains a given input item key.
  12148. *
  12149. * @param string|array $key
  12150. * @return bool
  12151. * @static
  12152. */ public static function exists($key)
  12153. {
  12154. /** @var \Illuminate\Http\Request $instance */
  12155. return $instance->exists($key);
  12156. }
  12157. /**
  12158. * Determine if the request contains a given input item key.
  12159. *
  12160. * @param string|array $key
  12161. * @return bool
  12162. * @static
  12163. */ public static function has($key)
  12164. {
  12165. /** @var \Illuminate\Http\Request $instance */
  12166. return $instance->has($key);
  12167. }
  12168. /**
  12169. * Determine if the request contains any of the given inputs.
  12170. *
  12171. * @param string|array $keys
  12172. * @return bool
  12173. * @static
  12174. */ public static function hasAny($keys)
  12175. {
  12176. /** @var \Illuminate\Http\Request $instance */
  12177. return $instance->hasAny($keys);
  12178. }
  12179. /**
  12180. * Apply the callback if the request contains the given input item key.
  12181. *
  12182. * @param string $key
  12183. * @param callable $callback
  12184. * @param callable|null $default
  12185. * @return $this|mixed
  12186. * @static
  12187. */ public static function whenHas($key, $callback, $default = null)
  12188. {
  12189. /** @var \Illuminate\Http\Request $instance */
  12190. return $instance->whenHas($key, $callback, $default);
  12191. }
  12192. /**
  12193. * Determine if the request contains a non-empty value for an input item.
  12194. *
  12195. * @param string|array $key
  12196. * @return bool
  12197. * @static
  12198. */ public static function filled($key)
  12199. {
  12200. /** @var \Illuminate\Http\Request $instance */
  12201. return $instance->filled($key);
  12202. }
  12203. /**
  12204. * Determine if the request contains an empty value for an input item.
  12205. *
  12206. * @param string|array $key
  12207. * @return bool
  12208. * @static
  12209. */ public static function isNotFilled($key)
  12210. {
  12211. /** @var \Illuminate\Http\Request $instance */
  12212. return $instance->isNotFilled($key);
  12213. }
  12214. /**
  12215. * Determine if the request contains a non-empty value for any of the given inputs.
  12216. *
  12217. * @param string|array $keys
  12218. * @return bool
  12219. * @static
  12220. */ public static function anyFilled($keys)
  12221. {
  12222. /** @var \Illuminate\Http\Request $instance */
  12223. return $instance->anyFilled($keys);
  12224. }
  12225. /**
  12226. * Apply the callback if the request contains a non-empty value for the given input item key.
  12227. *
  12228. * @param string $key
  12229. * @param callable $callback
  12230. * @param callable|null $default
  12231. * @return $this|mixed
  12232. * @static
  12233. */ public static function whenFilled($key, $callback, $default = null)
  12234. {
  12235. /** @var \Illuminate\Http\Request $instance */
  12236. return $instance->whenFilled($key, $callback, $default);
  12237. }
  12238. /**
  12239. * Determine if the request is missing a given input item key.
  12240. *
  12241. * @param string|array $key
  12242. * @return bool
  12243. * @static
  12244. */ public static function missing($key)
  12245. {
  12246. /** @var \Illuminate\Http\Request $instance */
  12247. return $instance->missing($key);
  12248. }
  12249. /**
  12250. * Apply the callback if the request is missing the given input item key.
  12251. *
  12252. * @param string $key
  12253. * @param callable $callback
  12254. * @param callable|null $default
  12255. * @return $this|mixed
  12256. * @static
  12257. */ public static function whenMissing($key, $callback, $default = null)
  12258. {
  12259. /** @var \Illuminate\Http\Request $instance */
  12260. return $instance->whenMissing($key, $callback, $default);
  12261. }
  12262. /**
  12263. * Get the keys for all of the input and files.
  12264. *
  12265. * @return array
  12266. * @static
  12267. */ public static function keys()
  12268. {
  12269. /** @var \Illuminate\Http\Request $instance */
  12270. return $instance->keys();
  12271. }
  12272. /**
  12273. * Get all of the input and files for the request.
  12274. *
  12275. * @param array|mixed|null $keys
  12276. * @return array
  12277. * @static
  12278. */ public static function all($keys = null)
  12279. {
  12280. /** @var \Illuminate\Http\Request $instance */
  12281. return $instance->all($keys);
  12282. }
  12283. /**
  12284. * Retrieve an input item from the request.
  12285. *
  12286. * @param string|null $key
  12287. * @param mixed $default
  12288. * @return mixed
  12289. * @static
  12290. */ public static function input($key = null, $default = null)
  12291. {
  12292. /** @var \Illuminate\Http\Request $instance */
  12293. return $instance->input($key, $default);
  12294. }
  12295. /**
  12296. * Retrieve input from the request as a Stringable instance.
  12297. *
  12298. * @param string $key
  12299. * @param mixed $default
  12300. * @return \Illuminate\Support\Stringable
  12301. * @static
  12302. */ public static function str($key, $default = null)
  12303. {
  12304. /** @var \Illuminate\Http\Request $instance */
  12305. return $instance->str($key, $default);
  12306. }
  12307. /**
  12308. * Retrieve input from the request as a Stringable instance.
  12309. *
  12310. * @param string $key
  12311. * @param mixed $default
  12312. * @return \Illuminate\Support\Stringable
  12313. * @static
  12314. */ public static function string($key, $default = null)
  12315. {
  12316. /** @var \Illuminate\Http\Request $instance */
  12317. return $instance->string($key, $default);
  12318. }
  12319. /**
  12320. * Retrieve input as a boolean value.
  12321. *
  12322. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  12323. *
  12324. * @param string|null $key
  12325. * @param bool $default
  12326. * @return bool
  12327. * @static
  12328. */ public static function boolean($key = null, $default = false)
  12329. {
  12330. /** @var \Illuminate\Http\Request $instance */
  12331. return $instance->boolean($key, $default);
  12332. }
  12333. /**
  12334. * Retrieve input as an integer value.
  12335. *
  12336. * @param string $key
  12337. * @param int $default
  12338. * @return int
  12339. * @static
  12340. */ public static function integer($key, $default = 0)
  12341. {
  12342. /** @var \Illuminate\Http\Request $instance */
  12343. return $instance->integer($key, $default);
  12344. }
  12345. /**
  12346. * Retrieve input as a float value.
  12347. *
  12348. * @param string $key
  12349. * @param float $default
  12350. * @return float
  12351. * @static
  12352. */ public static function float($key, $default = 0.0)
  12353. {
  12354. /** @var \Illuminate\Http\Request $instance */
  12355. return $instance->float($key, $default);
  12356. }
  12357. /**
  12358. * Retrieve input from the request as a Carbon instance.
  12359. *
  12360. * @param string $key
  12361. * @param string|null $format
  12362. * @param string|null $tz
  12363. * @return \Illuminate\Support\Carbon|null
  12364. * @throws \Carbon\Exceptions\InvalidFormatException
  12365. * @static
  12366. */ public static function date($key, $format = null, $tz = null)
  12367. {
  12368. /** @var \Illuminate\Http\Request $instance */
  12369. return $instance->date($key, $format, $tz);
  12370. }
  12371. /**
  12372. * Retrieve input from the request as an enum.
  12373. *
  12374. * @template TEnum
  12375. * @param string $key
  12376. * @param \Illuminate\Http\class-string<TEnum> $enumClass
  12377. * @return \Illuminate\Http\TEnum|null
  12378. * @static
  12379. */ public static function enum($key, $enumClass)
  12380. {
  12381. /** @var \Illuminate\Http\Request $instance */
  12382. return $instance->enum($key, $enumClass);
  12383. }
  12384. /**
  12385. * Retrieve input from the request as a collection.
  12386. *
  12387. * @param array|string|null $key
  12388. * @return \Illuminate\Support\Collection
  12389. * @static
  12390. */ public static function collect($key = null)
  12391. {
  12392. /** @var \Illuminate\Http\Request $instance */
  12393. return $instance->collect($key);
  12394. }
  12395. /**
  12396. * Get a subset containing the provided keys with values from the input data.
  12397. *
  12398. * @param array|mixed $keys
  12399. * @return array
  12400. * @static
  12401. */ public static function only($keys)
  12402. {
  12403. /** @var \Illuminate\Http\Request $instance */
  12404. return $instance->only($keys);
  12405. }
  12406. /**
  12407. * Get all of the input except for a specified array of items.
  12408. *
  12409. * @param array|mixed $keys
  12410. * @return array
  12411. * @static
  12412. */ public static function except($keys)
  12413. {
  12414. /** @var \Illuminate\Http\Request $instance */
  12415. return $instance->except($keys);
  12416. }
  12417. /**
  12418. * Retrieve a query string item from the request.
  12419. *
  12420. * @param string|null $key
  12421. * @param string|array|null $default
  12422. * @return string|array|null
  12423. * @static
  12424. */ public static function query($key = null, $default = null)
  12425. {
  12426. /** @var \Illuminate\Http\Request $instance */
  12427. return $instance->query($key, $default);
  12428. }
  12429. /**
  12430. * Retrieve a request payload item from the request.
  12431. *
  12432. * @param string|null $key
  12433. * @param string|array|null $default
  12434. * @return string|array|null
  12435. * @static
  12436. */ public static function post($key = null, $default = null)
  12437. {
  12438. /** @var \Illuminate\Http\Request $instance */
  12439. return $instance->post($key, $default);
  12440. }
  12441. /**
  12442. * Determine if a cookie is set on the request.
  12443. *
  12444. * @param string $key
  12445. * @return bool
  12446. * @static
  12447. */ public static function hasCookie($key)
  12448. {
  12449. /** @var \Illuminate\Http\Request $instance */
  12450. return $instance->hasCookie($key);
  12451. }
  12452. /**
  12453. * Retrieve a cookie from the request.
  12454. *
  12455. * @param string|null $key
  12456. * @param string|array|null $default
  12457. * @return string|array|null
  12458. * @static
  12459. */ public static function cookie($key = null, $default = null)
  12460. {
  12461. /** @var \Illuminate\Http\Request $instance */
  12462. return $instance->cookie($key, $default);
  12463. }
  12464. /**
  12465. * Get an array of all of the files on the request.
  12466. *
  12467. * @return array
  12468. * @static
  12469. */ public static function allFiles()
  12470. {
  12471. /** @var \Illuminate\Http\Request $instance */
  12472. return $instance->allFiles();
  12473. }
  12474. /**
  12475. * Determine if the uploaded data contains a file.
  12476. *
  12477. * @param string $key
  12478. * @return bool
  12479. * @static
  12480. */ public static function hasFile($key)
  12481. {
  12482. /** @var \Illuminate\Http\Request $instance */
  12483. return $instance->hasFile($key);
  12484. }
  12485. /**
  12486. * Retrieve a file from the request.
  12487. *
  12488. * @param string|null $key
  12489. * @param mixed $default
  12490. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  12491. * @static
  12492. */ public static function file($key = null, $default = null)
  12493. {
  12494. /** @var \Illuminate\Http\Request $instance */
  12495. return $instance->file($key, $default);
  12496. }
  12497. /**
  12498. * Dump the items.
  12499. *
  12500. * @param mixed $keys
  12501. * @return \Illuminate\Http\Request
  12502. * @static
  12503. */ public static function dump($keys = [])
  12504. {
  12505. /** @var \Illuminate\Http\Request $instance */
  12506. return $instance->dump($keys);
  12507. }
  12508. /**
  12509. * Dump the given arguments and terminate execution.
  12510. *
  12511. * @param mixed $args
  12512. * @return \Illuminate\Http\never
  12513. * @static
  12514. */ public static function dd(...$args)
  12515. {
  12516. /** @var \Illuminate\Http\Request $instance */
  12517. return $instance->dd(...$args);
  12518. }
  12519. /**
  12520. * Register a custom macro.
  12521. *
  12522. * @param string $name
  12523. * @param object|callable $macro
  12524. * @param-closure-this static $macro
  12525. * @return void
  12526. * @static
  12527. */ public static function macro($name, $macro)
  12528. {
  12529. \Illuminate\Http\Request::macro($name, $macro);
  12530. }
  12531. /**
  12532. * Mix another object into the class.
  12533. *
  12534. * @param object $mixin
  12535. * @param bool $replace
  12536. * @return void
  12537. * @throws \ReflectionException
  12538. * @static
  12539. */ public static function mixin($mixin, $replace = true)
  12540. {
  12541. \Illuminate\Http\Request::mixin($mixin, $replace);
  12542. }
  12543. /**
  12544. * Checks if macro is registered.
  12545. *
  12546. * @param string $name
  12547. * @return bool
  12548. * @static
  12549. */ public static function hasMacro($name)
  12550. {
  12551. return \Illuminate\Http\Request::hasMacro($name);
  12552. }
  12553. /**
  12554. * Flush the existing macros.
  12555. *
  12556. * @return void
  12557. * @static
  12558. */ public static function flushMacros()
  12559. {
  12560. \Illuminate\Http\Request::flushMacros();
  12561. }
  12562. /**
  12563. *
  12564. *
  12565. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  12566. * @param array $rules
  12567. * @param mixed $params
  12568. * @static
  12569. */ public static function validate($rules, ...$params)
  12570. {
  12571. return \Illuminate\Http\Request::validate($rules, ...$params);
  12572. }
  12573. /**
  12574. *
  12575. *
  12576. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  12577. * @param string $errorBag
  12578. * @param array $rules
  12579. * @param mixed $params
  12580. * @static
  12581. */ public static function validateWithBag($errorBag, $rules, ...$params)
  12582. {
  12583. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  12584. }
  12585. /**
  12586. *
  12587. *
  12588. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12589. * @param mixed $absolute
  12590. * @static
  12591. */ public static function hasValidSignature($absolute = true)
  12592. {
  12593. return \Illuminate\Http\Request::hasValidSignature($absolute);
  12594. }
  12595. /**
  12596. *
  12597. *
  12598. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12599. * @static
  12600. */ public static function hasValidRelativeSignature()
  12601. {
  12602. return \Illuminate\Http\Request::hasValidRelativeSignature();
  12603. }
  12604. /**
  12605. *
  12606. *
  12607. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12608. * @param mixed $ignoreQuery
  12609. * @param mixed $absolute
  12610. * @static
  12611. */ public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  12612. {
  12613. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  12614. }
  12615. /**
  12616. *
  12617. *
  12618. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12619. * @param mixed $ignoreQuery
  12620. * @static
  12621. */ public static function hasValidRelativeSignatureWhileIgnoring($ignoreQuery = [])
  12622. {
  12623. return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
  12624. }
  12625. }
  12626. /**
  12627. *
  12628. *
  12629. * @see \Illuminate\Routing\ResponseFactory
  12630. */ class Response {
  12631. /**
  12632. * Create a new response instance.
  12633. *
  12634. * @param mixed $content
  12635. * @param int $status
  12636. * @param array $headers
  12637. * @return \Illuminate\Http\Response
  12638. * @static
  12639. */ public static function make($content = '', $status = 200, $headers = [])
  12640. {
  12641. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12642. return $instance->make($content, $status, $headers);
  12643. }
  12644. /**
  12645. * Create a new "no content" response.
  12646. *
  12647. * @param int $status
  12648. * @param array $headers
  12649. * @return \Illuminate\Http\Response
  12650. * @static
  12651. */ public static function noContent($status = 204, $headers = [])
  12652. {
  12653. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12654. return $instance->noContent($status, $headers);
  12655. }
  12656. /**
  12657. * Create a new response for a given view.
  12658. *
  12659. * @param string|array $view
  12660. * @param array $data
  12661. * @param int $status
  12662. * @param array $headers
  12663. * @return \Illuminate\Http\Response
  12664. * @static
  12665. */ public static function view($view, $data = [], $status = 200, $headers = [])
  12666. {
  12667. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12668. return $instance->view($view, $data, $status, $headers);
  12669. }
  12670. /**
  12671. * Create a new JSON response instance.
  12672. *
  12673. * @param mixed $data
  12674. * @param int $status
  12675. * @param array $headers
  12676. * @param int $options
  12677. * @return \Illuminate\Http\JsonResponse
  12678. * @static
  12679. */ public static function json($data = [], $status = 200, $headers = [], $options = 0)
  12680. {
  12681. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12682. return $instance->json($data, $status, $headers, $options);
  12683. }
  12684. /**
  12685. * Create a new JSONP response instance.
  12686. *
  12687. * @param string $callback
  12688. * @param mixed $data
  12689. * @param int $status
  12690. * @param array $headers
  12691. * @param int $options
  12692. * @return \Illuminate\Http\JsonResponse
  12693. * @static
  12694. */ public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  12695. {
  12696. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12697. return $instance->jsonp($callback, $data, $status, $headers, $options);
  12698. }
  12699. /**
  12700. * Create a new streamed response instance.
  12701. *
  12702. * @param callable $callback
  12703. * @param int $status
  12704. * @param array $headers
  12705. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12706. * @static
  12707. */ public static function stream($callback, $status = 200, $headers = [])
  12708. {
  12709. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12710. return $instance->stream($callback, $status, $headers);
  12711. }
  12712. /**
  12713. * Create a new streamed response instance.
  12714. *
  12715. * @param array $data
  12716. * @param int $status
  12717. * @param array $headers
  12718. * @param int $encodingOptions
  12719. * @return \Symfony\Component\HttpFoundation\StreamedJsonResponse
  12720. * @static
  12721. */ public static function streamJson($data, $status = 200, $headers = [], $encodingOptions = 15)
  12722. {
  12723. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12724. return $instance->streamJson($data, $status, $headers, $encodingOptions);
  12725. }
  12726. /**
  12727. * Create a new streamed response instance as a file download.
  12728. *
  12729. * @param callable $callback
  12730. * @param string|null $name
  12731. * @param array $headers
  12732. * @param string|null $disposition
  12733. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12734. * @throws \Illuminate\Routing\Exceptions\StreamedResponseException
  12735. * @static
  12736. */ public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  12737. {
  12738. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12739. return $instance->streamDownload($callback, $name, $headers, $disposition);
  12740. }
  12741. /**
  12742. * Create a new file download response.
  12743. *
  12744. * @param \SplFileInfo|string $file
  12745. * @param string|null $name
  12746. * @param array $headers
  12747. * @param string|null $disposition
  12748. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  12749. * @static
  12750. */ public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  12751. {
  12752. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12753. return $instance->download($file, $name, $headers, $disposition);
  12754. }
  12755. /**
  12756. * Return the raw contents of a binary file.
  12757. *
  12758. * @param \SplFileInfo|string $file
  12759. * @param array $headers
  12760. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  12761. * @static
  12762. */ public static function file($file, $headers = [])
  12763. {
  12764. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12765. return $instance->file($file, $headers);
  12766. }
  12767. /**
  12768. * Create a new redirect response to the given path.
  12769. *
  12770. * @param string $path
  12771. * @param int $status
  12772. * @param array $headers
  12773. * @param bool|null $secure
  12774. * @return \Illuminate\Http\RedirectResponse
  12775. * @static
  12776. */ public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  12777. {
  12778. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12779. return $instance->redirectTo($path, $status, $headers, $secure);
  12780. }
  12781. /**
  12782. * Create a new redirect response to a named route.
  12783. *
  12784. * @param string $route
  12785. * @param mixed $parameters
  12786. * @param int $status
  12787. * @param array $headers
  12788. * @return \Illuminate\Http\RedirectResponse
  12789. * @static
  12790. */ public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  12791. {
  12792. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12793. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  12794. }
  12795. /**
  12796. * Create a new redirect response to a controller action.
  12797. *
  12798. * @param array|string $action
  12799. * @param mixed $parameters
  12800. * @param int $status
  12801. * @param array $headers
  12802. * @return \Illuminate\Http\RedirectResponse
  12803. * @static
  12804. */ public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  12805. {
  12806. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12807. return $instance->redirectToAction($action, $parameters, $status, $headers);
  12808. }
  12809. /**
  12810. * Create a new redirect response, while putting the current URL in the session.
  12811. *
  12812. * @param string $path
  12813. * @param int $status
  12814. * @param array $headers
  12815. * @param bool|null $secure
  12816. * @return \Illuminate\Http\RedirectResponse
  12817. * @static
  12818. */ public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  12819. {
  12820. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12821. return $instance->redirectGuest($path, $status, $headers, $secure);
  12822. }
  12823. /**
  12824. * Create a new redirect response to the previously intended location.
  12825. *
  12826. * @param string $default
  12827. * @param int $status
  12828. * @param array $headers
  12829. * @param bool|null $secure
  12830. * @return \Illuminate\Http\RedirectResponse
  12831. * @static
  12832. */ public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  12833. {
  12834. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12835. return $instance->redirectToIntended($default, $status, $headers, $secure);
  12836. }
  12837. /**
  12838. * Register a custom macro.
  12839. *
  12840. * @param string $name
  12841. * @param object|callable $macro
  12842. * @param-closure-this static $macro
  12843. * @return void
  12844. * @static
  12845. */ public static function macro($name, $macro)
  12846. {
  12847. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  12848. }
  12849. /**
  12850. * Mix another object into the class.
  12851. *
  12852. * @param object $mixin
  12853. * @param bool $replace
  12854. * @return void
  12855. * @throws \ReflectionException
  12856. * @static
  12857. */ public static function mixin($mixin, $replace = true)
  12858. {
  12859. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  12860. }
  12861. /**
  12862. * Checks if macro is registered.
  12863. *
  12864. * @param string $name
  12865. * @return bool
  12866. * @static
  12867. */ public static function hasMacro($name)
  12868. {
  12869. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  12870. }
  12871. /**
  12872. * Flush the existing macros.
  12873. *
  12874. * @return void
  12875. * @static
  12876. */ public static function flushMacros()
  12877. {
  12878. \Illuminate\Routing\ResponseFactory::flushMacros();
  12879. }
  12880. }
  12881. /**
  12882. *
  12883. *
  12884. * @method static \Illuminate\Routing\RouteRegistrar attribute(string $key, mixed $value)
  12885. * @method static \Illuminate\Routing\RouteRegistrar whereAlpha(array|string $parameters)
  12886. * @method static \Illuminate\Routing\RouteRegistrar whereAlphaNumeric(array|string $parameters)
  12887. * @method static \Illuminate\Routing\RouteRegistrar whereNumber(array|string $parameters)
  12888. * @method static \Illuminate\Routing\RouteRegistrar whereUlid(array|string $parameters)
  12889. * @method static \Illuminate\Routing\RouteRegistrar whereUuid(array|string $parameters)
  12890. * @method static \Illuminate\Routing\RouteRegistrar whereIn(array|string $parameters, array $values)
  12891. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  12892. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  12893. * @method static \Illuminate\Routing\RouteRegistrar domain(\BackedEnum|string $value)
  12894. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  12895. * @method static \Illuminate\Routing\RouteRegistrar missing(\Closure $missing)
  12896. * @method static \Illuminate\Routing\RouteRegistrar name(\BackedEnum|string $value)
  12897. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  12898. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  12899. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  12900. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  12901. * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
  12902. * @method static \Illuminate\Routing\RouteRegistrar withoutScopedBindings()
  12903. * @see \Illuminate\Routing\Router
  12904. */ class Route {
  12905. /**
  12906. * Register a new GET route with the router.
  12907. *
  12908. * @param string $uri
  12909. * @param array|string|callable|null $action
  12910. * @return \Illuminate\Routing\Route
  12911. * @static
  12912. */ public static function get($uri, $action = null)
  12913. {
  12914. /** @var \Illuminate\Routing\Router $instance */
  12915. return $instance->get($uri, $action);
  12916. }
  12917. /**
  12918. * Register a new POST route with the router.
  12919. *
  12920. * @param string $uri
  12921. * @param array|string|callable|null $action
  12922. * @return \Illuminate\Routing\Route
  12923. * @static
  12924. */ public static function post($uri, $action = null)
  12925. {
  12926. /** @var \Illuminate\Routing\Router $instance */
  12927. return $instance->post($uri, $action);
  12928. }
  12929. /**
  12930. * Register a new PUT route with the router.
  12931. *
  12932. * @param string $uri
  12933. * @param array|string|callable|null $action
  12934. * @return \Illuminate\Routing\Route
  12935. * @static
  12936. */ public static function put($uri, $action = null)
  12937. {
  12938. /** @var \Illuminate\Routing\Router $instance */
  12939. return $instance->put($uri, $action);
  12940. }
  12941. /**
  12942. * Register a new PATCH route with the router.
  12943. *
  12944. * @param string $uri
  12945. * @param array|string|callable|null $action
  12946. * @return \Illuminate\Routing\Route
  12947. * @static
  12948. */ public static function patch($uri, $action = null)
  12949. {
  12950. /** @var \Illuminate\Routing\Router $instance */
  12951. return $instance->patch($uri, $action);
  12952. }
  12953. /**
  12954. * Register a new DELETE route with the router.
  12955. *
  12956. * @param string $uri
  12957. * @param array|string|callable|null $action
  12958. * @return \Illuminate\Routing\Route
  12959. * @static
  12960. */ public static function delete($uri, $action = null)
  12961. {
  12962. /** @var \Illuminate\Routing\Router $instance */
  12963. return $instance->delete($uri, $action);
  12964. }
  12965. /**
  12966. * Register a new OPTIONS route with the router.
  12967. *
  12968. * @param string $uri
  12969. * @param array|string|callable|null $action
  12970. * @return \Illuminate\Routing\Route
  12971. * @static
  12972. */ public static function options($uri, $action = null)
  12973. {
  12974. /** @var \Illuminate\Routing\Router $instance */
  12975. return $instance->options($uri, $action);
  12976. }
  12977. /**
  12978. * Register a new route responding to all verbs.
  12979. *
  12980. * @param string $uri
  12981. * @param array|string|callable|null $action
  12982. * @return \Illuminate\Routing\Route
  12983. * @static
  12984. */ public static function any($uri, $action = null)
  12985. {
  12986. /** @var \Illuminate\Routing\Router $instance */
  12987. return $instance->any($uri, $action);
  12988. }
  12989. /**
  12990. * Register a new fallback route with the router.
  12991. *
  12992. * @param array|string|callable|null $action
  12993. * @return \Illuminate\Routing\Route
  12994. * @static
  12995. */ public static function fallback($action)
  12996. {
  12997. /** @var \Illuminate\Routing\Router $instance */
  12998. return $instance->fallback($action);
  12999. }
  13000. /**
  13001. * Create a redirect from one URI to another.
  13002. *
  13003. * @param string $uri
  13004. * @param string $destination
  13005. * @param int $status
  13006. * @return \Illuminate\Routing\Route
  13007. * @static
  13008. */ public static function redirect($uri, $destination, $status = 302)
  13009. {
  13010. /** @var \Illuminate\Routing\Router $instance */
  13011. return $instance->redirect($uri, $destination, $status);
  13012. }
  13013. /**
  13014. * Create a permanent redirect from one URI to another.
  13015. *
  13016. * @param string $uri
  13017. * @param string $destination
  13018. * @return \Illuminate\Routing\Route
  13019. * @static
  13020. */ public static function permanentRedirect($uri, $destination)
  13021. {
  13022. /** @var \Illuminate\Routing\Router $instance */
  13023. return $instance->permanentRedirect($uri, $destination);
  13024. }
  13025. /**
  13026. * Register a new route that returns a view.
  13027. *
  13028. * @param string $uri
  13029. * @param string $view
  13030. * @param array $data
  13031. * @param int|array $status
  13032. * @param array $headers
  13033. * @return \Illuminate\Routing\Route
  13034. * @static
  13035. */ public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  13036. {
  13037. /** @var \Illuminate\Routing\Router $instance */
  13038. return $instance->view($uri, $view, $data, $status, $headers);
  13039. }
  13040. /**
  13041. * Register a new route with the given verbs.
  13042. *
  13043. * @param array|string $methods
  13044. * @param string $uri
  13045. * @param array|string|callable|null $action
  13046. * @return \Illuminate\Routing\Route
  13047. * @static
  13048. */ public static function match($methods, $uri, $action = null)
  13049. {
  13050. /** @var \Illuminate\Routing\Router $instance */
  13051. return $instance->match($methods, $uri, $action);
  13052. }
  13053. /**
  13054. * Register an array of resource controllers.
  13055. *
  13056. * @param array $resources
  13057. * @param array $options
  13058. * @return void
  13059. * @static
  13060. */ public static function resources($resources, $options = [])
  13061. {
  13062. /** @var \Illuminate\Routing\Router $instance */
  13063. $instance->resources($resources, $options);
  13064. }
  13065. /**
  13066. * Route a resource to a controller.
  13067. *
  13068. * @param string $name
  13069. * @param string $controller
  13070. * @param array $options
  13071. * @return \Illuminate\Routing\PendingResourceRegistration
  13072. * @static
  13073. */ public static function resource($name, $controller, $options = [])
  13074. {
  13075. /** @var \Illuminate\Routing\Router $instance */
  13076. return $instance->resource($name, $controller, $options);
  13077. }
  13078. /**
  13079. * Register an array of API resource controllers.
  13080. *
  13081. * @param array $resources
  13082. * @param array $options
  13083. * @return void
  13084. * @static
  13085. */ public static function apiResources($resources, $options = [])
  13086. {
  13087. /** @var \Illuminate\Routing\Router $instance */
  13088. $instance->apiResources($resources, $options);
  13089. }
  13090. /**
  13091. * Route an API resource to a controller.
  13092. *
  13093. * @param string $name
  13094. * @param string $controller
  13095. * @param array $options
  13096. * @return \Illuminate\Routing\PendingResourceRegistration
  13097. * @static
  13098. */ public static function apiResource($name, $controller, $options = [])
  13099. {
  13100. /** @var \Illuminate\Routing\Router $instance */
  13101. return $instance->apiResource($name, $controller, $options);
  13102. }
  13103. /**
  13104. * Register an array of singleton resource controllers.
  13105. *
  13106. * @param array $singletons
  13107. * @param array $options
  13108. * @return void
  13109. * @static
  13110. */ public static function singletons($singletons, $options = [])
  13111. {
  13112. /** @var \Illuminate\Routing\Router $instance */
  13113. $instance->singletons($singletons, $options);
  13114. }
  13115. /**
  13116. * Route a singleton resource to a controller.
  13117. *
  13118. * @param string $name
  13119. * @param string $controller
  13120. * @param array $options
  13121. * @return \Illuminate\Routing\PendingSingletonResourceRegistration
  13122. * @static
  13123. */ public static function singleton($name, $controller, $options = [])
  13124. {
  13125. /** @var \Illuminate\Routing\Router $instance */
  13126. return $instance->singleton($name, $controller, $options);
  13127. }
  13128. /**
  13129. * Register an array of API singleton resource controllers.
  13130. *
  13131. * @param array $singletons
  13132. * @param array $options
  13133. * @return void
  13134. * @static
  13135. */ public static function apiSingletons($singletons, $options = [])
  13136. {
  13137. /** @var \Illuminate\Routing\Router $instance */
  13138. $instance->apiSingletons($singletons, $options);
  13139. }
  13140. /**
  13141. * Route an API singleton resource to a controller.
  13142. *
  13143. * @param string $name
  13144. * @param string $controller
  13145. * @param array $options
  13146. * @return \Illuminate\Routing\PendingSingletonResourceRegistration
  13147. * @static
  13148. */ public static function apiSingleton($name, $controller, $options = [])
  13149. {
  13150. /** @var \Illuminate\Routing\Router $instance */
  13151. return $instance->apiSingleton($name, $controller, $options);
  13152. }
  13153. /**
  13154. * Create a route group with shared attributes.
  13155. *
  13156. * @param array $attributes
  13157. * @param \Closure|array|string $routes
  13158. * @return \Illuminate\Routing\Router
  13159. * @static
  13160. */ public static function group($attributes, $routes)
  13161. {
  13162. /** @var \Illuminate\Routing\Router $instance */
  13163. return $instance->group($attributes, $routes);
  13164. }
  13165. /**
  13166. * Merge the given array with the last group stack.
  13167. *
  13168. * @param array $new
  13169. * @param bool $prependExistingPrefix
  13170. * @return array
  13171. * @static
  13172. */ public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  13173. {
  13174. /** @var \Illuminate\Routing\Router $instance */
  13175. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  13176. }
  13177. /**
  13178. * Get the prefix from the last group on the stack.
  13179. *
  13180. * @return string
  13181. * @static
  13182. */ public static function getLastGroupPrefix()
  13183. {
  13184. /** @var \Illuminate\Routing\Router $instance */
  13185. return $instance->getLastGroupPrefix();
  13186. }
  13187. /**
  13188. * Add a route to the underlying route collection.
  13189. *
  13190. * @param array|string $methods
  13191. * @param string $uri
  13192. * @param array|string|callable|null $action
  13193. * @return \Illuminate\Routing\Route
  13194. * @static
  13195. */ public static function addRoute($methods, $uri, $action)
  13196. {
  13197. /** @var \Illuminate\Routing\Router $instance */
  13198. return $instance->addRoute($methods, $uri, $action);
  13199. }
  13200. /**
  13201. * Create a new Route object.
  13202. *
  13203. * @param array|string $methods
  13204. * @param string $uri
  13205. * @param mixed $action
  13206. * @return \Illuminate\Routing\Route
  13207. * @static
  13208. */ public static function newRoute($methods, $uri, $action)
  13209. {
  13210. /** @var \Illuminate\Routing\Router $instance */
  13211. return $instance->newRoute($methods, $uri, $action);
  13212. }
  13213. /**
  13214. * Return the response returned by the given route.
  13215. *
  13216. * @param string $name
  13217. * @return \Symfony\Component\HttpFoundation\Response
  13218. * @static
  13219. */ public static function respondWithRoute($name)
  13220. {
  13221. /** @var \Illuminate\Routing\Router $instance */
  13222. return $instance->respondWithRoute($name);
  13223. }
  13224. /**
  13225. * Dispatch the request to the application.
  13226. *
  13227. * @param \Illuminate\Http\Request $request
  13228. * @return \Symfony\Component\HttpFoundation\Response
  13229. * @static
  13230. */ public static function dispatch($request)
  13231. {
  13232. /** @var \Illuminate\Routing\Router $instance */
  13233. return $instance->dispatch($request);
  13234. }
  13235. /**
  13236. * Dispatch the request to a route and return the response.
  13237. *
  13238. * @param \Illuminate\Http\Request $request
  13239. * @return \Symfony\Component\HttpFoundation\Response
  13240. * @static
  13241. */ public static function dispatchToRoute($request)
  13242. {
  13243. /** @var \Illuminate\Routing\Router $instance */
  13244. return $instance->dispatchToRoute($request);
  13245. }
  13246. /**
  13247. * Gather the middleware for the given route with resolved class names.
  13248. *
  13249. * @param \Illuminate\Routing\Route $route
  13250. * @return array
  13251. * @static
  13252. */ public static function gatherRouteMiddleware($route)
  13253. {
  13254. /** @var \Illuminate\Routing\Router $instance */
  13255. return $instance->gatherRouteMiddleware($route);
  13256. }
  13257. /**
  13258. * Resolve a flat array of middleware classes from the provided array.
  13259. *
  13260. * @param array $middleware
  13261. * @param array $excluded
  13262. * @return array
  13263. * @static
  13264. */ public static function resolveMiddleware($middleware, $excluded = [])
  13265. {
  13266. /** @var \Illuminate\Routing\Router $instance */
  13267. return $instance->resolveMiddleware($middleware, $excluded);
  13268. }
  13269. /**
  13270. * Create a response instance from the given value.
  13271. *
  13272. * @param \Symfony\Component\HttpFoundation\Request $request
  13273. * @param mixed $response
  13274. * @return \Symfony\Component\HttpFoundation\Response
  13275. * @static
  13276. */ public static function prepareResponse($request, $response)
  13277. {
  13278. /** @var \Illuminate\Routing\Router $instance */
  13279. return $instance->prepareResponse($request, $response);
  13280. }
  13281. /**
  13282. * Static version of prepareResponse.
  13283. *
  13284. * @param \Symfony\Component\HttpFoundation\Request $request
  13285. * @param mixed $response
  13286. * @return \Symfony\Component\HttpFoundation\Response
  13287. * @static
  13288. */ public static function toResponse($request, $response)
  13289. {
  13290. return \Illuminate\Routing\Router::toResponse($request, $response);
  13291. }
  13292. /**
  13293. * Substitute the route bindings onto the route.
  13294. *
  13295. * @param \Illuminate\Routing\Route $route
  13296. * @return \Illuminate\Routing\Route
  13297. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  13298. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  13299. * @static
  13300. */ public static function substituteBindings($route)
  13301. {
  13302. /** @var \Illuminate\Routing\Router $instance */
  13303. return $instance->substituteBindings($route);
  13304. }
  13305. /**
  13306. * Substitute the implicit route bindings for the given route.
  13307. *
  13308. * @param \Illuminate\Routing\Route $route
  13309. * @return void
  13310. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  13311. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  13312. * @static
  13313. */ public static function substituteImplicitBindings($route)
  13314. {
  13315. /** @var \Illuminate\Routing\Router $instance */
  13316. $instance->substituteImplicitBindings($route);
  13317. }
  13318. /**
  13319. * Register a callback to run after implicit bindings are substituted.
  13320. *
  13321. * @param callable $callback
  13322. * @return \Illuminate\Routing\Router
  13323. * @static
  13324. */ public static function substituteImplicitBindingsUsing($callback)
  13325. {
  13326. /** @var \Illuminate\Routing\Router $instance */
  13327. return $instance->substituteImplicitBindingsUsing($callback);
  13328. }
  13329. /**
  13330. * Register a route matched event listener.
  13331. *
  13332. * @param string|callable $callback
  13333. * @return void
  13334. * @static
  13335. */ public static function matched($callback)
  13336. {
  13337. /** @var \Illuminate\Routing\Router $instance */
  13338. $instance->matched($callback);
  13339. }
  13340. /**
  13341. * Get all of the defined middleware short-hand names.
  13342. *
  13343. * @return array
  13344. * @static
  13345. */ public static function getMiddleware()
  13346. {
  13347. /** @var \Illuminate\Routing\Router $instance */
  13348. return $instance->getMiddleware();
  13349. }
  13350. /**
  13351. * Register a short-hand name for a middleware.
  13352. *
  13353. * @param string $name
  13354. * @param string $class
  13355. * @return \Illuminate\Routing\Router
  13356. * @static
  13357. */ public static function aliasMiddleware($name, $class)
  13358. {
  13359. /** @var \Illuminate\Routing\Router $instance */
  13360. return $instance->aliasMiddleware($name, $class);
  13361. }
  13362. /**
  13363. * Check if a middlewareGroup with the given name exists.
  13364. *
  13365. * @param string $name
  13366. * @return bool
  13367. * @static
  13368. */ public static function hasMiddlewareGroup($name)
  13369. {
  13370. /** @var \Illuminate\Routing\Router $instance */
  13371. return $instance->hasMiddlewareGroup($name);
  13372. }
  13373. /**
  13374. * Get all of the defined middleware groups.
  13375. *
  13376. * @return array
  13377. * @static
  13378. */ public static function getMiddlewareGroups()
  13379. {
  13380. /** @var \Illuminate\Routing\Router $instance */
  13381. return $instance->getMiddlewareGroups();
  13382. }
  13383. /**
  13384. * Register a group of middleware.
  13385. *
  13386. * @param string $name
  13387. * @param array $middleware
  13388. * @return \Illuminate\Routing\Router
  13389. * @static
  13390. */ public static function middlewareGroup($name, $middleware)
  13391. {
  13392. /** @var \Illuminate\Routing\Router $instance */
  13393. return $instance->middlewareGroup($name, $middleware);
  13394. }
  13395. /**
  13396. * Add a middleware to the beginning of a middleware group.
  13397. *
  13398. * If the middleware is already in the group, it will not be added again.
  13399. *
  13400. * @param string $group
  13401. * @param string $middleware
  13402. * @return \Illuminate\Routing\Router
  13403. * @static
  13404. */ public static function prependMiddlewareToGroup($group, $middleware)
  13405. {
  13406. /** @var \Illuminate\Routing\Router $instance */
  13407. return $instance->prependMiddlewareToGroup($group, $middleware);
  13408. }
  13409. /**
  13410. * Add a middleware to the end of a middleware group.
  13411. *
  13412. * If the middleware is already in the group, it will not be added again.
  13413. *
  13414. * @param string $group
  13415. * @param string $middleware
  13416. * @return \Illuminate\Routing\Router
  13417. * @static
  13418. */ public static function pushMiddlewareToGroup($group, $middleware)
  13419. {
  13420. /** @var \Illuminate\Routing\Router $instance */
  13421. return $instance->pushMiddlewareToGroup($group, $middleware);
  13422. }
  13423. /**
  13424. * Remove the given middleware from the specified group.
  13425. *
  13426. * @param string $group
  13427. * @param string $middleware
  13428. * @return \Illuminate\Routing\Router
  13429. * @static
  13430. */ public static function removeMiddlewareFromGroup($group, $middleware)
  13431. {
  13432. /** @var \Illuminate\Routing\Router $instance */
  13433. return $instance->removeMiddlewareFromGroup($group, $middleware);
  13434. }
  13435. /**
  13436. * Flush the router's middleware groups.
  13437. *
  13438. * @return \Illuminate\Routing\Router
  13439. * @static
  13440. */ public static function flushMiddlewareGroups()
  13441. {
  13442. /** @var \Illuminate\Routing\Router $instance */
  13443. return $instance->flushMiddlewareGroups();
  13444. }
  13445. /**
  13446. * Add a new route parameter binder.
  13447. *
  13448. * @param string $key
  13449. * @param string|callable $binder
  13450. * @return void
  13451. * @static
  13452. */ public static function bind($key, $binder)
  13453. {
  13454. /** @var \Illuminate\Routing\Router $instance */
  13455. $instance->bind($key, $binder);
  13456. }
  13457. /**
  13458. * Register a model binder for a wildcard.
  13459. *
  13460. * @param string $key
  13461. * @param string $class
  13462. * @param \Closure|null $callback
  13463. * @return void
  13464. * @static
  13465. */ public static function model($key, $class, $callback = null)
  13466. {
  13467. /** @var \Illuminate\Routing\Router $instance */
  13468. $instance->model($key, $class, $callback);
  13469. }
  13470. /**
  13471. * Get the binding callback for a given binding.
  13472. *
  13473. * @param string $key
  13474. * @return \Closure|null
  13475. * @static
  13476. */ public static function getBindingCallback($key)
  13477. {
  13478. /** @var \Illuminate\Routing\Router $instance */
  13479. return $instance->getBindingCallback($key);
  13480. }
  13481. /**
  13482. * Get the global "where" patterns.
  13483. *
  13484. * @return array
  13485. * @static
  13486. */ public static function getPatterns()
  13487. {
  13488. /** @var \Illuminate\Routing\Router $instance */
  13489. return $instance->getPatterns();
  13490. }
  13491. /**
  13492. * Set a global where pattern on all routes.
  13493. *
  13494. * @param string $key
  13495. * @param string $pattern
  13496. * @return void
  13497. * @static
  13498. */ public static function pattern($key, $pattern)
  13499. {
  13500. /** @var \Illuminate\Routing\Router $instance */
  13501. $instance->pattern($key, $pattern);
  13502. }
  13503. /**
  13504. * Set a group of global where patterns on all routes.
  13505. *
  13506. * @param array $patterns
  13507. * @return void
  13508. * @static
  13509. */ public static function patterns($patterns)
  13510. {
  13511. /** @var \Illuminate\Routing\Router $instance */
  13512. $instance->patterns($patterns);
  13513. }
  13514. /**
  13515. * Determine if the router currently has a group stack.
  13516. *
  13517. * @return bool
  13518. * @static
  13519. */ public static function hasGroupStack()
  13520. {
  13521. /** @var \Illuminate\Routing\Router $instance */
  13522. return $instance->hasGroupStack();
  13523. }
  13524. /**
  13525. * Get the current group stack for the router.
  13526. *
  13527. * @return array
  13528. * @static
  13529. */ public static function getGroupStack()
  13530. {
  13531. /** @var \Illuminate\Routing\Router $instance */
  13532. return $instance->getGroupStack();
  13533. }
  13534. /**
  13535. * Get a route parameter for the current route.
  13536. *
  13537. * @param string $key
  13538. * @param string|null $default
  13539. * @return mixed
  13540. * @static
  13541. */ public static function input($key, $default = null)
  13542. {
  13543. /** @var \Illuminate\Routing\Router $instance */
  13544. return $instance->input($key, $default);
  13545. }
  13546. /**
  13547. * Get the request currently being dispatched.
  13548. *
  13549. * @return \Illuminate\Http\Request
  13550. * @static
  13551. */ public static function getCurrentRequest()
  13552. {
  13553. /** @var \Illuminate\Routing\Router $instance */
  13554. return $instance->getCurrentRequest();
  13555. }
  13556. /**
  13557. * Get the currently dispatched route instance.
  13558. *
  13559. * @return \Illuminate\Routing\Route|null
  13560. * @static
  13561. */ public static function getCurrentRoute()
  13562. {
  13563. /** @var \Illuminate\Routing\Router $instance */
  13564. return $instance->getCurrentRoute();
  13565. }
  13566. /**
  13567. * Get the currently dispatched route instance.
  13568. *
  13569. * @return \Illuminate\Routing\Route|null
  13570. * @static
  13571. */ public static function current()
  13572. {
  13573. /** @var \Illuminate\Routing\Router $instance */
  13574. return $instance->current();
  13575. }
  13576. /**
  13577. * Check if a route with the given name exists.
  13578. *
  13579. * @param string|array $name
  13580. * @return bool
  13581. * @static
  13582. */ public static function has($name)
  13583. {
  13584. /** @var \Illuminate\Routing\Router $instance */
  13585. return $instance->has($name);
  13586. }
  13587. /**
  13588. * Get the current route name.
  13589. *
  13590. * @return string|null
  13591. * @static
  13592. */ public static function currentRouteName()
  13593. {
  13594. /** @var \Illuminate\Routing\Router $instance */
  13595. return $instance->currentRouteName();
  13596. }
  13597. /**
  13598. * Alias for the "currentRouteNamed" method.
  13599. *
  13600. * @param mixed $patterns
  13601. * @return bool
  13602. * @static
  13603. */ public static function is(...$patterns)
  13604. {
  13605. /** @var \Illuminate\Routing\Router $instance */
  13606. return $instance->is(...$patterns);
  13607. }
  13608. /**
  13609. * Determine if the current route matches a pattern.
  13610. *
  13611. * @param mixed $patterns
  13612. * @return bool
  13613. * @static
  13614. */ public static function currentRouteNamed(...$patterns)
  13615. {
  13616. /** @var \Illuminate\Routing\Router $instance */
  13617. return $instance->currentRouteNamed(...$patterns);
  13618. }
  13619. /**
  13620. * Get the current route action.
  13621. *
  13622. * @return string|null
  13623. * @static
  13624. */ public static function currentRouteAction()
  13625. {
  13626. /** @var \Illuminate\Routing\Router $instance */
  13627. return $instance->currentRouteAction();
  13628. }
  13629. /**
  13630. * Alias for the "currentRouteUses" method.
  13631. *
  13632. * @param array|string $patterns
  13633. * @return bool
  13634. * @static
  13635. */ public static function uses(...$patterns)
  13636. {
  13637. /** @var \Illuminate\Routing\Router $instance */
  13638. return $instance->uses(...$patterns);
  13639. }
  13640. /**
  13641. * Determine if the current route action matches a given action.
  13642. *
  13643. * @param string $action
  13644. * @return bool
  13645. * @static
  13646. */ public static function currentRouteUses($action)
  13647. {
  13648. /** @var \Illuminate\Routing\Router $instance */
  13649. return $instance->currentRouteUses($action);
  13650. }
  13651. /**
  13652. * Set the unmapped global resource parameters to singular.
  13653. *
  13654. * @param bool $singular
  13655. * @return void
  13656. * @static
  13657. */ public static function singularResourceParameters($singular = true)
  13658. {
  13659. /** @var \Illuminate\Routing\Router $instance */
  13660. $instance->singularResourceParameters($singular);
  13661. }
  13662. /**
  13663. * Set the global resource parameter mapping.
  13664. *
  13665. * @param array $parameters
  13666. * @return void
  13667. * @static
  13668. */ public static function resourceParameters($parameters = [])
  13669. {
  13670. /** @var \Illuminate\Routing\Router $instance */
  13671. $instance->resourceParameters($parameters);
  13672. }
  13673. /**
  13674. * Get or set the verbs used in the resource URIs.
  13675. *
  13676. * @param array $verbs
  13677. * @return array|null
  13678. * @static
  13679. */ public static function resourceVerbs($verbs = [])
  13680. {
  13681. /** @var \Illuminate\Routing\Router $instance */
  13682. return $instance->resourceVerbs($verbs);
  13683. }
  13684. /**
  13685. * Get the underlying route collection.
  13686. *
  13687. * @return \Illuminate\Routing\RouteCollectionInterface
  13688. * @static
  13689. */ public static function getRoutes()
  13690. {
  13691. /** @var \Illuminate\Routing\Router $instance */
  13692. return $instance->getRoutes();
  13693. }
  13694. /**
  13695. * Set the route collection instance.
  13696. *
  13697. * @param \Illuminate\Routing\RouteCollection $routes
  13698. * @return void
  13699. * @static
  13700. */ public static function setRoutes($routes)
  13701. {
  13702. /** @var \Illuminate\Routing\Router $instance */
  13703. $instance->setRoutes($routes);
  13704. }
  13705. /**
  13706. * Set the compiled route collection instance.
  13707. *
  13708. * @param array $routes
  13709. * @return void
  13710. * @static
  13711. */ public static function setCompiledRoutes($routes)
  13712. {
  13713. /** @var \Illuminate\Routing\Router $instance */
  13714. $instance->setCompiledRoutes($routes);
  13715. }
  13716. /**
  13717. * Remove any duplicate middleware from the given array.
  13718. *
  13719. * @param array $middleware
  13720. * @return array
  13721. * @static
  13722. */ public static function uniqueMiddleware($middleware)
  13723. {
  13724. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  13725. }
  13726. /**
  13727. * Set the container instance used by the router.
  13728. *
  13729. * @param \Illuminate\Container\Container $container
  13730. * @return \Illuminate\Routing\Router
  13731. * @static
  13732. */ public static function setContainer($container)
  13733. {
  13734. /** @var \Illuminate\Routing\Router $instance */
  13735. return $instance->setContainer($container);
  13736. }
  13737. /**
  13738. * Register a custom macro.
  13739. *
  13740. * @param string $name
  13741. * @param object|callable $macro
  13742. * @param-closure-this static $macro
  13743. * @return void
  13744. * @static
  13745. */ public static function macro($name, $macro)
  13746. {
  13747. \Illuminate\Routing\Router::macro($name, $macro);
  13748. }
  13749. /**
  13750. * Mix another object into the class.
  13751. *
  13752. * @param object $mixin
  13753. * @param bool $replace
  13754. * @return void
  13755. * @throws \ReflectionException
  13756. * @static
  13757. */ public static function mixin($mixin, $replace = true)
  13758. {
  13759. \Illuminate\Routing\Router::mixin($mixin, $replace);
  13760. }
  13761. /**
  13762. * Checks if macro is registered.
  13763. *
  13764. * @param string $name
  13765. * @return bool
  13766. * @static
  13767. */ public static function hasMacro($name)
  13768. {
  13769. return \Illuminate\Routing\Router::hasMacro($name);
  13770. }
  13771. /**
  13772. * Flush the existing macros.
  13773. *
  13774. * @return void
  13775. * @static
  13776. */ public static function flushMacros()
  13777. {
  13778. \Illuminate\Routing\Router::flushMacros();
  13779. }
  13780. /**
  13781. * Dynamically handle calls to the class.
  13782. *
  13783. * @param string $method
  13784. * @param array $parameters
  13785. * @return mixed
  13786. * @throws \BadMethodCallException
  13787. * @static
  13788. */ public static function macroCall($method, $parameters)
  13789. {
  13790. /** @var \Illuminate\Routing\Router $instance */
  13791. return $instance->macroCall($method, $parameters);
  13792. }
  13793. /**
  13794. * Call the given Closure with this instance then return the instance.
  13795. *
  13796. * @param (callable($this): mixed)|null $callback
  13797. * @return ($callback is null ? \Illuminate\Support\HigherOrderTapProxy : $this)
  13798. * @static
  13799. */ public static function tap($callback = null)
  13800. {
  13801. /** @var \Illuminate\Routing\Router $instance */
  13802. return $instance->tap($callback);
  13803. }
  13804. }
  13805. /**
  13806. *
  13807. *
  13808. * @see \Illuminate\Database\Schema\Builder
  13809. */ class Schema {
  13810. /**
  13811. * Create a database in the schema.
  13812. *
  13813. * @param string $name
  13814. * @return bool
  13815. * @static
  13816. */ public static function createDatabase($name)
  13817. {
  13818. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13819. return $instance->createDatabase($name);
  13820. }
  13821. /**
  13822. * Drop a database from the schema if the database exists.
  13823. *
  13824. * @param string $name
  13825. * @return bool
  13826. * @static
  13827. */ public static function dropDatabaseIfExists($name)
  13828. {
  13829. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13830. return $instance->dropDatabaseIfExists($name);
  13831. }
  13832. /**
  13833. * Determine if the given table exists.
  13834. *
  13835. * @param string $table
  13836. * @return bool
  13837. * @static
  13838. */ public static function hasTable($table)
  13839. {
  13840. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13841. return $instance->hasTable($table);
  13842. }
  13843. /**
  13844. * Get the tables for the database.
  13845. *
  13846. * @return array
  13847. * @static
  13848. */ public static function getTables()
  13849. {
  13850. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13851. return $instance->getTables();
  13852. }
  13853. /**
  13854. * Get the views for the database.
  13855. *
  13856. * @return array
  13857. * @static
  13858. */ public static function getViews()
  13859. {
  13860. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13861. return $instance->getViews();
  13862. }
  13863. /**
  13864. * Get the columns for a given table.
  13865. *
  13866. * @param string $table
  13867. * @return array
  13868. * @static
  13869. */ public static function getColumns($table)
  13870. {
  13871. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13872. return $instance->getColumns($table);
  13873. }
  13874. /**
  13875. * Get the indexes for a given table.
  13876. *
  13877. * @param string $table
  13878. * @return array
  13879. * @static
  13880. */ public static function getIndexes($table)
  13881. {
  13882. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13883. return $instance->getIndexes($table);
  13884. }
  13885. /**
  13886. * Get the foreign keys for a given table.
  13887. *
  13888. * @param string $table
  13889. * @return array
  13890. * @static
  13891. */ public static function getForeignKeys($table)
  13892. {
  13893. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13894. return $instance->getForeignKeys($table);
  13895. }
  13896. /**
  13897. * Drop all tables from the database.
  13898. *
  13899. * @return void
  13900. * @static
  13901. */ public static function dropAllTables()
  13902. {
  13903. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13904. $instance->dropAllTables();
  13905. }
  13906. /**
  13907. * Drop all views from the database.
  13908. *
  13909. * @return void
  13910. * @static
  13911. */ public static function dropAllViews()
  13912. {
  13913. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13914. $instance->dropAllViews();
  13915. }
  13916. /**
  13917. * Set the default string length for migrations.
  13918. *
  13919. * @param int $length
  13920. * @return void
  13921. * @static
  13922. */ public static function defaultStringLength($length)
  13923. { //Method inherited from \Illuminate\Database\Schema\Builder
  13924. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  13925. }
  13926. /**
  13927. * Set the default morph key type for migrations.
  13928. *
  13929. * @param string $type
  13930. * @return void
  13931. * @throws \InvalidArgumentException
  13932. * @static
  13933. */ public static function defaultMorphKeyType($type)
  13934. { //Method inherited from \Illuminate\Database\Schema\Builder
  13935. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  13936. }
  13937. /**
  13938. * Set the default morph key type for migrations to UUIDs.
  13939. *
  13940. * @return void
  13941. * @static
  13942. */ public static function morphUsingUuids()
  13943. { //Method inherited from \Illuminate\Database\Schema\Builder
  13944. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  13945. }
  13946. /**
  13947. * Set the default morph key type for migrations to ULIDs.
  13948. *
  13949. * @return void
  13950. * @static
  13951. */ public static function morphUsingUlids()
  13952. { //Method inherited from \Illuminate\Database\Schema\Builder
  13953. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUlids();
  13954. }
  13955. /**
  13956. * Determine if the given view exists.
  13957. *
  13958. * @param string $view
  13959. * @return bool
  13960. * @static
  13961. */ public static function hasView($view)
  13962. { //Method inherited from \Illuminate\Database\Schema\Builder
  13963. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13964. return $instance->hasView($view);
  13965. }
  13966. /**
  13967. * Get the names of the tables that belong to the database.
  13968. *
  13969. * @return array
  13970. * @static
  13971. */ public static function getTableListing()
  13972. { //Method inherited from \Illuminate\Database\Schema\Builder
  13973. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13974. return $instance->getTableListing();
  13975. }
  13976. /**
  13977. * Get the user-defined types that belong to the database.
  13978. *
  13979. * @return array
  13980. * @static
  13981. */ public static function getTypes()
  13982. { //Method inherited from \Illuminate\Database\Schema\Builder
  13983. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13984. return $instance->getTypes();
  13985. }
  13986. /**
  13987. * Determine if the given table has a given column.
  13988. *
  13989. * @param string $table
  13990. * @param string $column
  13991. * @return bool
  13992. * @static
  13993. */ public static function hasColumn($table, $column)
  13994. { //Method inherited from \Illuminate\Database\Schema\Builder
  13995. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13996. return $instance->hasColumn($table, $column);
  13997. }
  13998. /**
  13999. * Determine if the given table has given columns.
  14000. *
  14001. * @param string $table
  14002. * @param array $columns
  14003. * @return bool
  14004. * @static
  14005. */ public static function hasColumns($table, $columns)
  14006. { //Method inherited from \Illuminate\Database\Schema\Builder
  14007. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14008. return $instance->hasColumns($table, $columns);
  14009. }
  14010. /**
  14011. * Execute a table builder callback if the given table has a given column.
  14012. *
  14013. * @param string $table
  14014. * @param string $column
  14015. * @param \Closure $callback
  14016. * @return void
  14017. * @static
  14018. */ public static function whenTableHasColumn($table, $column, $callback)
  14019. { //Method inherited from \Illuminate\Database\Schema\Builder
  14020. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14021. $instance->whenTableHasColumn($table, $column, $callback);
  14022. }
  14023. /**
  14024. * Execute a table builder callback if the given table doesn't have a given column.
  14025. *
  14026. * @param string $table
  14027. * @param string $column
  14028. * @param \Closure $callback
  14029. * @return void
  14030. * @static
  14031. */ public static function whenTableDoesntHaveColumn($table, $column, $callback)
  14032. { //Method inherited from \Illuminate\Database\Schema\Builder
  14033. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14034. $instance->whenTableDoesntHaveColumn($table, $column, $callback);
  14035. }
  14036. /**
  14037. * Get the data type for the given column name.
  14038. *
  14039. * @param string $table
  14040. * @param string $column
  14041. * @param bool $fullDefinition
  14042. * @return string
  14043. * @static
  14044. */ public static function getColumnType($table, $column, $fullDefinition = false)
  14045. { //Method inherited from \Illuminate\Database\Schema\Builder
  14046. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14047. return $instance->getColumnType($table, $column, $fullDefinition);
  14048. }
  14049. /**
  14050. * Get the column listing for a given table.
  14051. *
  14052. * @param string $table
  14053. * @return array
  14054. * @static
  14055. */ public static function getColumnListing($table)
  14056. { //Method inherited from \Illuminate\Database\Schema\Builder
  14057. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14058. return $instance->getColumnListing($table);
  14059. }
  14060. /**
  14061. * Get the names of the indexes for a given table.
  14062. *
  14063. * @param string $table
  14064. * @return array
  14065. * @static
  14066. */ public static function getIndexListing($table)
  14067. { //Method inherited from \Illuminate\Database\Schema\Builder
  14068. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14069. return $instance->getIndexListing($table);
  14070. }
  14071. /**
  14072. * Determine if the given table has a given index.
  14073. *
  14074. * @param string $table
  14075. * @param string|array $index
  14076. * @param string|null $type
  14077. * @return bool
  14078. * @static
  14079. */ public static function hasIndex($table, $index, $type = null)
  14080. { //Method inherited from \Illuminate\Database\Schema\Builder
  14081. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14082. return $instance->hasIndex($table, $index, $type);
  14083. }
  14084. /**
  14085. * Modify a table on the schema.
  14086. *
  14087. * @param string $table
  14088. * @param \Closure $callback
  14089. * @return void
  14090. * @static
  14091. */ public static function table($table, $callback)
  14092. { //Method inherited from \Illuminate\Database\Schema\Builder
  14093. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14094. $instance->table($table, $callback);
  14095. }
  14096. /**
  14097. * Create a new table on the schema.
  14098. *
  14099. * @param string $table
  14100. * @param \Closure $callback
  14101. * @return void
  14102. * @static
  14103. */ public static function create($table, $callback)
  14104. { //Method inherited from \Illuminate\Database\Schema\Builder
  14105. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14106. $instance->create($table, $callback);
  14107. }
  14108. /**
  14109. * Drop a table from the schema.
  14110. *
  14111. * @param string $table
  14112. * @return void
  14113. * @static
  14114. */ public static function drop($table)
  14115. { //Method inherited from \Illuminate\Database\Schema\Builder
  14116. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14117. $instance->drop($table);
  14118. }
  14119. /**
  14120. * Drop a table from the schema if it exists.
  14121. *
  14122. * @param string $table
  14123. * @return void
  14124. * @static
  14125. */ public static function dropIfExists($table)
  14126. { //Method inherited from \Illuminate\Database\Schema\Builder
  14127. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14128. $instance->dropIfExists($table);
  14129. }
  14130. /**
  14131. * Drop columns from a table schema.
  14132. *
  14133. * @param string $table
  14134. * @param string|array $columns
  14135. * @return void
  14136. * @static
  14137. */ public static function dropColumns($table, $columns)
  14138. { //Method inherited from \Illuminate\Database\Schema\Builder
  14139. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14140. $instance->dropColumns($table, $columns);
  14141. }
  14142. /**
  14143. * Drop all types from the database.
  14144. *
  14145. * @return void
  14146. * @throws \LogicException
  14147. * @static
  14148. */ public static function dropAllTypes()
  14149. { //Method inherited from \Illuminate\Database\Schema\Builder
  14150. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14151. $instance->dropAllTypes();
  14152. }
  14153. /**
  14154. * Rename a table on the schema.
  14155. *
  14156. * @param string $from
  14157. * @param string $to
  14158. * @return void
  14159. * @static
  14160. */ public static function rename($from, $to)
  14161. { //Method inherited from \Illuminate\Database\Schema\Builder
  14162. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14163. $instance->rename($from, $to);
  14164. }
  14165. /**
  14166. * Enable foreign key constraints.
  14167. *
  14168. * @return bool
  14169. * @static
  14170. */ public static function enableForeignKeyConstraints()
  14171. { //Method inherited from \Illuminate\Database\Schema\Builder
  14172. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14173. return $instance->enableForeignKeyConstraints();
  14174. }
  14175. /**
  14176. * Disable foreign key constraints.
  14177. *
  14178. * @return bool
  14179. * @static
  14180. */ public static function disableForeignKeyConstraints()
  14181. { //Method inherited from \Illuminate\Database\Schema\Builder
  14182. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14183. return $instance->disableForeignKeyConstraints();
  14184. }
  14185. /**
  14186. * Disable foreign key constraints during the execution of a callback.
  14187. *
  14188. * @param \Closure $callback
  14189. * @return mixed
  14190. * @static
  14191. */ public static function withoutForeignKeyConstraints($callback)
  14192. { //Method inherited from \Illuminate\Database\Schema\Builder
  14193. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14194. return $instance->withoutForeignKeyConstraints($callback);
  14195. }
  14196. /**
  14197. * Get the database connection instance.
  14198. *
  14199. * @return \Illuminate\Database\Connection
  14200. * @static
  14201. */ public static function getConnection()
  14202. { //Method inherited from \Illuminate\Database\Schema\Builder
  14203. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14204. return $instance->getConnection();
  14205. }
  14206. /**
  14207. * Set the database connection instance.
  14208. *
  14209. * @param \Illuminate\Database\Connection $connection
  14210. * @return \Illuminate\Database\Schema\MySqlBuilder
  14211. * @static
  14212. */ public static function setConnection($connection)
  14213. { //Method inherited from \Illuminate\Database\Schema\Builder
  14214. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14215. return $instance->setConnection($connection);
  14216. }
  14217. /**
  14218. * Set the Schema Blueprint resolver callback.
  14219. *
  14220. * @param \Closure $resolver
  14221. * @return void
  14222. * @static
  14223. */ public static function blueprintResolver($resolver)
  14224. { //Method inherited from \Illuminate\Database\Schema\Builder
  14225. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  14226. $instance->blueprintResolver($resolver);
  14227. }
  14228. /**
  14229. * Register a custom macro.
  14230. *
  14231. * @param string $name
  14232. * @param object|callable $macro
  14233. * @param-closure-this static $macro
  14234. * @return void
  14235. * @static
  14236. */ public static function macro($name, $macro)
  14237. { //Method inherited from \Illuminate\Database\Schema\Builder
  14238. \Illuminate\Database\Schema\MySqlBuilder::macro($name, $macro);
  14239. }
  14240. /**
  14241. * Mix another object into the class.
  14242. *
  14243. * @param object $mixin
  14244. * @param bool $replace
  14245. * @return void
  14246. * @throws \ReflectionException
  14247. * @static
  14248. */ public static function mixin($mixin, $replace = true)
  14249. { //Method inherited from \Illuminate\Database\Schema\Builder
  14250. \Illuminate\Database\Schema\MySqlBuilder::mixin($mixin, $replace);
  14251. }
  14252. /**
  14253. * Checks if macro is registered.
  14254. *
  14255. * @param string $name
  14256. * @return bool
  14257. * @static
  14258. */ public static function hasMacro($name)
  14259. { //Method inherited from \Illuminate\Database\Schema\Builder
  14260. return \Illuminate\Database\Schema\MySqlBuilder::hasMacro($name);
  14261. }
  14262. /**
  14263. * Flush the existing macros.
  14264. *
  14265. * @return void
  14266. * @static
  14267. */ public static function flushMacros()
  14268. { //Method inherited from \Illuminate\Database\Schema\Builder
  14269. \Illuminate\Database\Schema\MySqlBuilder::flushMacros();
  14270. }
  14271. }
  14272. /**
  14273. *
  14274. *
  14275. * @see \Illuminate\Session\SessionManager
  14276. */ class Session {
  14277. /**
  14278. * Determine if requests for the same session should wait for each to finish before executing.
  14279. *
  14280. * @return bool
  14281. * @static
  14282. */ public static function shouldBlock()
  14283. {
  14284. /** @var \Illuminate\Session\SessionManager $instance */
  14285. return $instance->shouldBlock();
  14286. }
  14287. /**
  14288. * Get the name of the cache store / driver that should be used to acquire session locks.
  14289. *
  14290. * @return string|null
  14291. * @static
  14292. */ public static function blockDriver()
  14293. {
  14294. /** @var \Illuminate\Session\SessionManager $instance */
  14295. return $instance->blockDriver();
  14296. }
  14297. /**
  14298. * Get the maximum number of seconds the session lock should be held for.
  14299. *
  14300. * @return int
  14301. * @static
  14302. */ public static function defaultRouteBlockLockSeconds()
  14303. {
  14304. /** @var \Illuminate\Session\SessionManager $instance */
  14305. return $instance->defaultRouteBlockLockSeconds();
  14306. }
  14307. /**
  14308. * Get the maximum number of seconds to wait while attempting to acquire a route block session lock.
  14309. *
  14310. * @return int
  14311. * @static
  14312. */ public static function defaultRouteBlockWaitSeconds()
  14313. {
  14314. /** @var \Illuminate\Session\SessionManager $instance */
  14315. return $instance->defaultRouteBlockWaitSeconds();
  14316. }
  14317. /**
  14318. * Get the session configuration.
  14319. *
  14320. * @return array
  14321. * @static
  14322. */ public static function getSessionConfig()
  14323. {
  14324. /** @var \Illuminate\Session\SessionManager $instance */
  14325. return $instance->getSessionConfig();
  14326. }
  14327. /**
  14328. * Get the default session driver name.
  14329. *
  14330. * @return string
  14331. * @static
  14332. */ public static function getDefaultDriver()
  14333. {
  14334. /** @var \Illuminate\Session\SessionManager $instance */
  14335. return $instance->getDefaultDriver();
  14336. }
  14337. /**
  14338. * Set the default session driver name.
  14339. *
  14340. * @param string $name
  14341. * @return void
  14342. * @static
  14343. */ public static function setDefaultDriver($name)
  14344. {
  14345. /** @var \Illuminate\Session\SessionManager $instance */
  14346. $instance->setDefaultDriver($name);
  14347. }
  14348. /**
  14349. * Get a driver instance.
  14350. *
  14351. * @param string|null $driver
  14352. * @return mixed
  14353. * @throws \InvalidArgumentException
  14354. * @static
  14355. */ public static function driver($driver = null)
  14356. { //Method inherited from \Illuminate\Support\Manager
  14357. /** @var \Illuminate\Session\SessionManager $instance */
  14358. return $instance->driver($driver);
  14359. }
  14360. /**
  14361. * Register a custom driver creator Closure.
  14362. *
  14363. * @param string $driver
  14364. * @param \Closure $callback
  14365. * @return \Illuminate\Session\SessionManager
  14366. * @static
  14367. */ public static function extend($driver, $callback)
  14368. { //Method inherited from \Illuminate\Support\Manager
  14369. /** @var \Illuminate\Session\SessionManager $instance */
  14370. return $instance->extend($driver, $callback);
  14371. }
  14372. /**
  14373. * Get all of the created "drivers".
  14374. *
  14375. * @return array
  14376. * @static
  14377. */ public static function getDrivers()
  14378. { //Method inherited from \Illuminate\Support\Manager
  14379. /** @var \Illuminate\Session\SessionManager $instance */
  14380. return $instance->getDrivers();
  14381. }
  14382. /**
  14383. * Get the container instance used by the manager.
  14384. *
  14385. * @return \Illuminate\Contracts\Container\Container
  14386. * @static
  14387. */ public static function getContainer()
  14388. { //Method inherited from \Illuminate\Support\Manager
  14389. /** @var \Illuminate\Session\SessionManager $instance */
  14390. return $instance->getContainer();
  14391. }
  14392. /**
  14393. * Set the container instance used by the manager.
  14394. *
  14395. * @param \Illuminate\Contracts\Container\Container $container
  14396. * @return \Illuminate\Session\SessionManager
  14397. * @static
  14398. */ public static function setContainer($container)
  14399. { //Method inherited from \Illuminate\Support\Manager
  14400. /** @var \Illuminate\Session\SessionManager $instance */
  14401. return $instance->setContainer($container);
  14402. }
  14403. /**
  14404. * Forget all of the resolved driver instances.
  14405. *
  14406. * @return \Illuminate\Session\SessionManager
  14407. * @static
  14408. */ public static function forgetDrivers()
  14409. { //Method inherited from \Illuminate\Support\Manager
  14410. /** @var \Illuminate\Session\SessionManager $instance */
  14411. return $instance->forgetDrivers();
  14412. }
  14413. /**
  14414. * Start the session, reading the data from a handler.
  14415. *
  14416. * @return bool
  14417. * @static
  14418. */ public static function start()
  14419. {
  14420. /** @var \Illuminate\Session\Store $instance */
  14421. return $instance->start();
  14422. }
  14423. /**
  14424. * Save the session data to storage.
  14425. *
  14426. * @return void
  14427. * @static
  14428. */ public static function save()
  14429. {
  14430. /** @var \Illuminate\Session\Store $instance */
  14431. $instance->save();
  14432. }
  14433. /**
  14434. * Age the flash data for the session.
  14435. *
  14436. * @return void
  14437. * @static
  14438. */ public static function ageFlashData()
  14439. {
  14440. /** @var \Illuminate\Session\Store $instance */
  14441. $instance->ageFlashData();
  14442. }
  14443. /**
  14444. * Get all of the session data.
  14445. *
  14446. * @return array
  14447. * @static
  14448. */ public static function all()
  14449. {
  14450. /** @var \Illuminate\Session\Store $instance */
  14451. return $instance->all();
  14452. }
  14453. /**
  14454. * Get a subset of the session data.
  14455. *
  14456. * @param array $keys
  14457. * @return array
  14458. * @static
  14459. */ public static function only($keys)
  14460. {
  14461. /** @var \Illuminate\Session\Store $instance */
  14462. return $instance->only($keys);
  14463. }
  14464. /**
  14465. * Get all the session data except for a specified array of items.
  14466. *
  14467. * @param array $keys
  14468. * @return array
  14469. * @static
  14470. */ public static function except($keys)
  14471. {
  14472. /** @var \Illuminate\Session\Store $instance */
  14473. return $instance->except($keys);
  14474. }
  14475. /**
  14476. * Checks if a key exists.
  14477. *
  14478. * @param string|array $key
  14479. * @return bool
  14480. * @static
  14481. */ public static function exists($key)
  14482. {
  14483. /** @var \Illuminate\Session\Store $instance */
  14484. return $instance->exists($key);
  14485. }
  14486. /**
  14487. * Determine if the given key is missing from the session data.
  14488. *
  14489. * @param string|array $key
  14490. * @return bool
  14491. * @static
  14492. */ public static function missing($key)
  14493. {
  14494. /** @var \Illuminate\Session\Store $instance */
  14495. return $instance->missing($key);
  14496. }
  14497. /**
  14498. * Determine if a key is present and not null.
  14499. *
  14500. * @param string|array $key
  14501. * @return bool
  14502. * @static
  14503. */ public static function has($key)
  14504. {
  14505. /** @var \Illuminate\Session\Store $instance */
  14506. return $instance->has($key);
  14507. }
  14508. /**
  14509. * Determine if any of the given keys are present and not null.
  14510. *
  14511. * @param string|array $key
  14512. * @return bool
  14513. * @static
  14514. */ public static function hasAny($key)
  14515. {
  14516. /** @var \Illuminate\Session\Store $instance */
  14517. return $instance->hasAny($key);
  14518. }
  14519. /**
  14520. * Get an item from the session.
  14521. *
  14522. * @param string $key
  14523. * @param mixed $default
  14524. * @return mixed
  14525. * @static
  14526. */ public static function get($key, $default = null)
  14527. {
  14528. /** @var \Illuminate\Session\Store $instance */
  14529. return $instance->get($key, $default);
  14530. }
  14531. /**
  14532. * Get the value of a given key and then forget it.
  14533. *
  14534. * @param string $key
  14535. * @param mixed $default
  14536. * @return mixed
  14537. * @static
  14538. */ public static function pull($key, $default = null)
  14539. {
  14540. /** @var \Illuminate\Session\Store $instance */
  14541. return $instance->pull($key, $default);
  14542. }
  14543. /**
  14544. * Determine if the session contains old input.
  14545. *
  14546. * @param string|null $key
  14547. * @return bool
  14548. * @static
  14549. */ public static function hasOldInput($key = null)
  14550. {
  14551. /** @var \Illuminate\Session\Store $instance */
  14552. return $instance->hasOldInput($key);
  14553. }
  14554. /**
  14555. * Get the requested item from the flashed input array.
  14556. *
  14557. * @param string|null $key
  14558. * @param mixed $default
  14559. * @return mixed
  14560. * @static
  14561. */ public static function getOldInput($key = null, $default = null)
  14562. {
  14563. /** @var \Illuminate\Session\Store $instance */
  14564. return $instance->getOldInput($key, $default);
  14565. }
  14566. /**
  14567. * Replace the given session attributes entirely.
  14568. *
  14569. * @param array $attributes
  14570. * @return void
  14571. * @static
  14572. */ public static function replace($attributes)
  14573. {
  14574. /** @var \Illuminate\Session\Store $instance */
  14575. $instance->replace($attributes);
  14576. }
  14577. /**
  14578. * Put a key / value pair or array of key / value pairs in the session.
  14579. *
  14580. * @param string|array $key
  14581. * @param mixed $value
  14582. * @return void
  14583. * @static
  14584. */ public static function put($key, $value = null)
  14585. {
  14586. /** @var \Illuminate\Session\Store $instance */
  14587. $instance->put($key, $value);
  14588. }
  14589. /**
  14590. * Get an item from the session, or store the default value.
  14591. *
  14592. * @param string $key
  14593. * @param \Closure $callback
  14594. * @return mixed
  14595. * @static
  14596. */ public static function remember($key, $callback)
  14597. {
  14598. /** @var \Illuminate\Session\Store $instance */
  14599. return $instance->remember($key, $callback);
  14600. }
  14601. /**
  14602. * Push a value onto a session array.
  14603. *
  14604. * @param string $key
  14605. * @param mixed $value
  14606. * @return void
  14607. * @static
  14608. */ public static function push($key, $value)
  14609. {
  14610. /** @var \Illuminate\Session\Store $instance */
  14611. $instance->push($key, $value);
  14612. }
  14613. /**
  14614. * Increment the value of an item in the session.
  14615. *
  14616. * @param string $key
  14617. * @param int $amount
  14618. * @return mixed
  14619. * @static
  14620. */ public static function increment($key, $amount = 1)
  14621. {
  14622. /** @var \Illuminate\Session\Store $instance */
  14623. return $instance->increment($key, $amount);
  14624. }
  14625. /**
  14626. * Decrement the value of an item in the session.
  14627. *
  14628. * @param string $key
  14629. * @param int $amount
  14630. * @return int
  14631. * @static
  14632. */ public static function decrement($key, $amount = 1)
  14633. {
  14634. /** @var \Illuminate\Session\Store $instance */
  14635. return $instance->decrement($key, $amount);
  14636. }
  14637. /**
  14638. * Flash a key / value pair to the session.
  14639. *
  14640. * @param string $key
  14641. * @param mixed $value
  14642. * @return void
  14643. * @static
  14644. */ public static function flash($key, $value = true)
  14645. {
  14646. /** @var \Illuminate\Session\Store $instance */
  14647. $instance->flash($key, $value);
  14648. }
  14649. /**
  14650. * Flash a key / value pair to the session for immediate use.
  14651. *
  14652. * @param string $key
  14653. * @param mixed $value
  14654. * @return void
  14655. * @static
  14656. */ public static function now($key, $value)
  14657. {
  14658. /** @var \Illuminate\Session\Store $instance */
  14659. $instance->now($key, $value);
  14660. }
  14661. /**
  14662. * Reflash all of the session flash data.
  14663. *
  14664. * @return void
  14665. * @static
  14666. */ public static function reflash()
  14667. {
  14668. /** @var \Illuminate\Session\Store $instance */
  14669. $instance->reflash();
  14670. }
  14671. /**
  14672. * Reflash a subset of the current flash data.
  14673. *
  14674. * @param array|mixed $keys
  14675. * @return void
  14676. * @static
  14677. */ public static function keep($keys = null)
  14678. {
  14679. /** @var \Illuminate\Session\Store $instance */
  14680. $instance->keep($keys);
  14681. }
  14682. /**
  14683. * Flash an input array to the session.
  14684. *
  14685. * @param array $value
  14686. * @return void
  14687. * @static
  14688. */ public static function flashInput($value)
  14689. {
  14690. /** @var \Illuminate\Session\Store $instance */
  14691. $instance->flashInput($value);
  14692. }
  14693. /**
  14694. * Remove an item from the session, returning its value.
  14695. *
  14696. * @param string $key
  14697. * @return mixed
  14698. * @static
  14699. */ public static function remove($key)
  14700. {
  14701. /** @var \Illuminate\Session\Store $instance */
  14702. return $instance->remove($key);
  14703. }
  14704. /**
  14705. * Remove one or many items from the session.
  14706. *
  14707. * @param string|array $keys
  14708. * @return void
  14709. * @static
  14710. */ public static function forget($keys)
  14711. {
  14712. /** @var \Illuminate\Session\Store $instance */
  14713. $instance->forget($keys);
  14714. }
  14715. /**
  14716. * Remove all of the items from the session.
  14717. *
  14718. * @return void
  14719. * @static
  14720. */ public static function flush()
  14721. {
  14722. /** @var \Illuminate\Session\Store $instance */
  14723. $instance->flush();
  14724. }
  14725. /**
  14726. * Flush the session data and regenerate the ID.
  14727. *
  14728. * @return bool
  14729. * @static
  14730. */ public static function invalidate()
  14731. {
  14732. /** @var \Illuminate\Session\Store $instance */
  14733. return $instance->invalidate();
  14734. }
  14735. /**
  14736. * Generate a new session identifier.
  14737. *
  14738. * @param bool $destroy
  14739. * @return bool
  14740. * @static
  14741. */ public static function regenerate($destroy = false)
  14742. {
  14743. /** @var \Illuminate\Session\Store $instance */
  14744. return $instance->regenerate($destroy);
  14745. }
  14746. /**
  14747. * Generate a new session ID for the session.
  14748. *
  14749. * @param bool $destroy
  14750. * @return bool
  14751. * @static
  14752. */ public static function migrate($destroy = false)
  14753. {
  14754. /** @var \Illuminate\Session\Store $instance */
  14755. return $instance->migrate($destroy);
  14756. }
  14757. /**
  14758. * Determine if the session has been started.
  14759. *
  14760. * @return bool
  14761. * @static
  14762. */ public static function isStarted()
  14763. {
  14764. /** @var \Illuminate\Session\Store $instance */
  14765. return $instance->isStarted();
  14766. }
  14767. /**
  14768. * Get the name of the session.
  14769. *
  14770. * @return string
  14771. * @static
  14772. */ public static function getName()
  14773. {
  14774. /** @var \Illuminate\Session\Store $instance */
  14775. return $instance->getName();
  14776. }
  14777. /**
  14778. * Set the name of the session.
  14779. *
  14780. * @param string $name
  14781. * @return void
  14782. * @static
  14783. */ public static function setName($name)
  14784. {
  14785. /** @var \Illuminate\Session\Store $instance */
  14786. $instance->setName($name);
  14787. }
  14788. /**
  14789. * Get the current session ID.
  14790. *
  14791. * @return string
  14792. * @static
  14793. */ public static function id()
  14794. {
  14795. /** @var \Illuminate\Session\Store $instance */
  14796. return $instance->id();
  14797. }
  14798. /**
  14799. * Get the current session ID.
  14800. *
  14801. * @return string
  14802. * @static
  14803. */ public static function getId()
  14804. {
  14805. /** @var \Illuminate\Session\Store $instance */
  14806. return $instance->getId();
  14807. }
  14808. /**
  14809. * Set the session ID.
  14810. *
  14811. * @param string|null $id
  14812. * @return void
  14813. * @static
  14814. */ public static function setId($id)
  14815. {
  14816. /** @var \Illuminate\Session\Store $instance */
  14817. $instance->setId($id);
  14818. }
  14819. /**
  14820. * Determine if this is a valid session ID.
  14821. *
  14822. * @param string|null $id
  14823. * @return bool
  14824. * @static
  14825. */ public static function isValidId($id)
  14826. {
  14827. /** @var \Illuminate\Session\Store $instance */
  14828. return $instance->isValidId($id);
  14829. }
  14830. /**
  14831. * Set the existence of the session on the handler if applicable.
  14832. *
  14833. * @param bool $value
  14834. * @return void
  14835. * @static
  14836. */ public static function setExists($value)
  14837. {
  14838. /** @var \Illuminate\Session\Store $instance */
  14839. $instance->setExists($value);
  14840. }
  14841. /**
  14842. * Get the CSRF token value.
  14843. *
  14844. * @return string
  14845. * @static
  14846. */ public static function token()
  14847. {
  14848. /** @var \Illuminate\Session\Store $instance */
  14849. return $instance->token();
  14850. }
  14851. /**
  14852. * Regenerate the CSRF token value.
  14853. *
  14854. * @return void
  14855. * @static
  14856. */ public static function regenerateToken()
  14857. {
  14858. /** @var \Illuminate\Session\Store $instance */
  14859. $instance->regenerateToken();
  14860. }
  14861. /**
  14862. * Get the previous URL from the session.
  14863. *
  14864. * @return string|null
  14865. * @static
  14866. */ public static function previousUrl()
  14867. {
  14868. /** @var \Illuminate\Session\Store $instance */
  14869. return $instance->previousUrl();
  14870. }
  14871. /**
  14872. * Set the "previous" URL in the session.
  14873. *
  14874. * @param string $url
  14875. * @return void
  14876. * @static
  14877. */ public static function setPreviousUrl($url)
  14878. {
  14879. /** @var \Illuminate\Session\Store $instance */
  14880. $instance->setPreviousUrl($url);
  14881. }
  14882. /**
  14883. * Specify that the user has confirmed their password.
  14884. *
  14885. * @return void
  14886. * @static
  14887. */ public static function passwordConfirmed()
  14888. {
  14889. /** @var \Illuminate\Session\Store $instance */
  14890. $instance->passwordConfirmed();
  14891. }
  14892. /**
  14893. * Get the underlying session handler implementation.
  14894. *
  14895. * @return \SessionHandlerInterface
  14896. * @static
  14897. */ public static function getHandler()
  14898. {
  14899. /** @var \Illuminate\Session\Store $instance */
  14900. return $instance->getHandler();
  14901. }
  14902. /**
  14903. * Set the underlying session handler implementation.
  14904. *
  14905. * @param \SessionHandlerInterface $handler
  14906. * @return \SessionHandlerInterface
  14907. * @static
  14908. */ public static function setHandler($handler)
  14909. {
  14910. /** @var \Illuminate\Session\Store $instance */
  14911. return $instance->setHandler($handler);
  14912. }
  14913. /**
  14914. * Determine if the session handler needs a request.
  14915. *
  14916. * @return bool
  14917. * @static
  14918. */ public static function handlerNeedsRequest()
  14919. {
  14920. /** @var \Illuminate\Session\Store $instance */
  14921. return $instance->handlerNeedsRequest();
  14922. }
  14923. /**
  14924. * Set the request on the handler instance.
  14925. *
  14926. * @param \Illuminate\Http\Request $request
  14927. * @return void
  14928. * @static
  14929. */ public static function setRequestOnHandler($request)
  14930. {
  14931. /** @var \Illuminate\Session\Store $instance */
  14932. $instance->setRequestOnHandler($request);
  14933. }
  14934. /**
  14935. * Register a custom macro.
  14936. *
  14937. * @param string $name
  14938. * @param object|callable $macro
  14939. * @param-closure-this static $macro
  14940. * @return void
  14941. * @static
  14942. */ public static function macro($name, $macro)
  14943. {
  14944. \Illuminate\Session\Store::macro($name, $macro);
  14945. }
  14946. /**
  14947. * Mix another object into the class.
  14948. *
  14949. * @param object $mixin
  14950. * @param bool $replace
  14951. * @return void
  14952. * @throws \ReflectionException
  14953. * @static
  14954. */ public static function mixin($mixin, $replace = true)
  14955. {
  14956. \Illuminate\Session\Store::mixin($mixin, $replace);
  14957. }
  14958. /**
  14959. * Checks if macro is registered.
  14960. *
  14961. * @param string $name
  14962. * @return bool
  14963. * @static
  14964. */ public static function hasMacro($name)
  14965. {
  14966. return \Illuminate\Session\Store::hasMacro($name);
  14967. }
  14968. /**
  14969. * Flush the existing macros.
  14970. *
  14971. * @return void
  14972. * @static
  14973. */ public static function flushMacros()
  14974. {
  14975. \Illuminate\Session\Store::flushMacros();
  14976. }
  14977. }
  14978. /**
  14979. *
  14980. *
  14981. * @method static bool has(string $location)
  14982. * @method static string read(string $location)
  14983. * @method static \League\Flysystem\DirectoryListing listContents(string $location, bool $deep = false)
  14984. * @method static int fileSize(string $path)
  14985. * @method static string visibility(string $path)
  14986. * @method static void write(string $location, string $contents, array $config = [])
  14987. * @method static void createDirectory(string $location, array $config = [])
  14988. * @see \Illuminate\Filesystem\FilesystemManager
  14989. */ class Storage {
  14990. /**
  14991. * Get a filesystem instance.
  14992. *
  14993. * @param string|null $name
  14994. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  14995. * @static
  14996. */ public static function drive($name = null)
  14997. {
  14998. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14999. return $instance->drive($name);
  15000. }
  15001. /**
  15002. * Get a filesystem instance.
  15003. *
  15004. * @param string|null $name
  15005. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15006. * @static
  15007. */ public static function disk($name = null)
  15008. {
  15009. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15010. return $instance->disk($name);
  15011. }
  15012. /**
  15013. * Get a default cloud filesystem instance.
  15014. *
  15015. * @return \Illuminate\Contracts\Filesystem\Cloud
  15016. * @static
  15017. */ public static function cloud()
  15018. {
  15019. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15020. return $instance->cloud();
  15021. }
  15022. /**
  15023. * Build an on-demand disk.
  15024. *
  15025. * @param string|array $config
  15026. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15027. * @static
  15028. */ public static function build($config)
  15029. {
  15030. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15031. return $instance->build($config);
  15032. }
  15033. /**
  15034. * Create an instance of the local driver.
  15035. *
  15036. * @param array $config
  15037. * @param string $name
  15038. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15039. * @static
  15040. */ public static function createLocalDriver($config, $name = 'local')
  15041. {
  15042. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15043. return $instance->createLocalDriver($config, $name);
  15044. }
  15045. /**
  15046. * Create an instance of the ftp driver.
  15047. *
  15048. * @param array $config
  15049. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15050. * @static
  15051. */ public static function createFtpDriver($config)
  15052. {
  15053. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15054. return $instance->createFtpDriver($config);
  15055. }
  15056. /**
  15057. * Create an instance of the sftp driver.
  15058. *
  15059. * @param array $config
  15060. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15061. * @static
  15062. */ public static function createSftpDriver($config)
  15063. {
  15064. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15065. return $instance->createSftpDriver($config);
  15066. }
  15067. /**
  15068. * Create an instance of the Amazon S3 driver.
  15069. *
  15070. * @param array $config
  15071. * @return \Illuminate\Contracts\Filesystem\Cloud
  15072. * @static
  15073. */ public static function createS3Driver($config)
  15074. {
  15075. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15076. return $instance->createS3Driver($config);
  15077. }
  15078. /**
  15079. * Create a scoped driver.
  15080. *
  15081. * @param array $config
  15082. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15083. * @static
  15084. */ public static function createScopedDriver($config)
  15085. {
  15086. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15087. return $instance->createScopedDriver($config);
  15088. }
  15089. /**
  15090. * Set the given disk instance.
  15091. *
  15092. * @param string $name
  15093. * @param mixed $disk
  15094. * @return \Illuminate\Filesystem\FilesystemManager
  15095. * @static
  15096. */ public static function set($name, $disk)
  15097. {
  15098. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15099. return $instance->set($name, $disk);
  15100. }
  15101. /**
  15102. * Get the default driver name.
  15103. *
  15104. * @return string
  15105. * @static
  15106. */ public static function getDefaultDriver()
  15107. {
  15108. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15109. return $instance->getDefaultDriver();
  15110. }
  15111. /**
  15112. * Get the default cloud driver name.
  15113. *
  15114. * @return string
  15115. * @static
  15116. */ public static function getDefaultCloudDriver()
  15117. {
  15118. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15119. return $instance->getDefaultCloudDriver();
  15120. }
  15121. /**
  15122. * Unset the given disk instances.
  15123. *
  15124. * @param array|string $disk
  15125. * @return \Illuminate\Filesystem\FilesystemManager
  15126. * @static
  15127. */ public static function forgetDisk($disk)
  15128. {
  15129. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15130. return $instance->forgetDisk($disk);
  15131. }
  15132. /**
  15133. * Disconnect the given disk and remove from local cache.
  15134. *
  15135. * @param string|null $name
  15136. * @return void
  15137. * @static
  15138. */ public static function purge($name = null)
  15139. {
  15140. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15141. $instance->purge($name);
  15142. }
  15143. /**
  15144. * Register a custom driver creator Closure.
  15145. *
  15146. * @param string $driver
  15147. * @param \Closure $callback
  15148. * @return \Illuminate\Filesystem\FilesystemManager
  15149. * @static
  15150. */ public static function extend($driver, $callback)
  15151. {
  15152. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15153. return $instance->extend($driver, $callback);
  15154. }
  15155. /**
  15156. * Set the application instance used by the manager.
  15157. *
  15158. * @param \Illuminate\Contracts\Foundation\Application $app
  15159. * @return \Illuminate\Filesystem\FilesystemManager
  15160. * @static
  15161. */ public static function setApplication($app)
  15162. {
  15163. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  15164. return $instance->setApplication($app);
  15165. }
  15166. /**
  15167. * Get the URL for the file at the given path.
  15168. *
  15169. * @param string $path
  15170. * @return string
  15171. * @throws \RuntimeException
  15172. * @static
  15173. */ public static function url($path)
  15174. {
  15175. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15176. return $instance->url($path);
  15177. }
  15178. /**
  15179. * Determine if temporary URLs can be generated.
  15180. *
  15181. * @return bool
  15182. * @static
  15183. */ public static function providesTemporaryUrls()
  15184. {
  15185. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15186. return $instance->providesTemporaryUrls();
  15187. }
  15188. /**
  15189. * Get a temporary URL for the file at the given path.
  15190. *
  15191. * @param string $path
  15192. * @param \DateTimeInterface $expiration
  15193. * @param array $options
  15194. * @return string
  15195. * @static
  15196. */ public static function temporaryUrl($path, $expiration, $options = [])
  15197. {
  15198. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15199. return $instance->temporaryUrl($path, $expiration, $options);
  15200. }
  15201. /**
  15202. * Get a temporary upload URL for the file at the given path.
  15203. *
  15204. * @param string $path
  15205. * @param \DateTimeInterface $expiration
  15206. * @param array $options
  15207. * @return array
  15208. * @static
  15209. */ public static function temporaryUploadUrl($path, $expiration, $options = [])
  15210. {
  15211. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15212. return $instance->temporaryUploadUrl($path, $expiration, $options);
  15213. }
  15214. /**
  15215. * Get the underlying S3 client.
  15216. *
  15217. * @return \Aws\S3\S3Client
  15218. * @static
  15219. */ public static function getClient()
  15220. {
  15221. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15222. return $instance->getClient();
  15223. }
  15224. /**
  15225. * Assert that the given file or directory exists.
  15226. *
  15227. * @param string|array $path
  15228. * @param string|null $content
  15229. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15230. * @static
  15231. */ public static function assertExists($path, $content = null)
  15232. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15233. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15234. return $instance->assertExists($path, $content);
  15235. }
  15236. /**
  15237. * Assert that the given file or directory does not exist.
  15238. *
  15239. * @param string|array $path
  15240. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15241. * @static
  15242. */ public static function assertMissing($path)
  15243. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15244. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15245. return $instance->assertMissing($path);
  15246. }
  15247. /**
  15248. * Assert that the given directory is empty.
  15249. *
  15250. * @param string $path
  15251. * @return \Illuminate\Filesystem\AwsS3V3Adapter
  15252. * @static
  15253. */ public static function assertDirectoryEmpty($path)
  15254. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15255. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15256. return $instance->assertDirectoryEmpty($path);
  15257. }
  15258. /**
  15259. * Determine if a file or directory exists.
  15260. *
  15261. * @param string $path
  15262. * @return bool
  15263. * @static
  15264. */ public static function exists($path)
  15265. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15266. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15267. return $instance->exists($path);
  15268. }
  15269. /**
  15270. * Determine if a file or directory is missing.
  15271. *
  15272. * @param string $path
  15273. * @return bool
  15274. * @static
  15275. */ public static function missing($path)
  15276. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15277. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15278. return $instance->missing($path);
  15279. }
  15280. /**
  15281. * Determine if a file exists.
  15282. *
  15283. * @param string $path
  15284. * @return bool
  15285. * @static
  15286. */ public static function fileExists($path)
  15287. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15288. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15289. return $instance->fileExists($path);
  15290. }
  15291. /**
  15292. * Determine if a file is missing.
  15293. *
  15294. * @param string $path
  15295. * @return bool
  15296. * @static
  15297. */ public static function fileMissing($path)
  15298. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15299. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15300. return $instance->fileMissing($path);
  15301. }
  15302. /**
  15303. * Determine if a directory exists.
  15304. *
  15305. * @param string $path
  15306. * @return bool
  15307. * @static
  15308. */ public static function directoryExists($path)
  15309. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15310. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15311. return $instance->directoryExists($path);
  15312. }
  15313. /**
  15314. * Determine if a directory is missing.
  15315. *
  15316. * @param string $path
  15317. * @return bool
  15318. * @static
  15319. */ public static function directoryMissing($path)
  15320. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15321. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15322. return $instance->directoryMissing($path);
  15323. }
  15324. /**
  15325. * Get the full path to the file that exists at the given relative path.
  15326. *
  15327. * @param string $path
  15328. * @return string
  15329. * @static
  15330. */ public static function path($path)
  15331. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15332. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15333. return $instance->path($path);
  15334. }
  15335. /**
  15336. * Get the contents of a file.
  15337. *
  15338. * @param string $path
  15339. * @return string|null
  15340. * @static
  15341. */ public static function get($path)
  15342. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15343. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15344. return $instance->get($path);
  15345. }
  15346. /**
  15347. * Get the contents of a file as decoded JSON.
  15348. *
  15349. * @param string $path
  15350. * @param int $flags
  15351. * @return array|null
  15352. * @static
  15353. */ public static function json($path, $flags = 0)
  15354. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15355. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15356. return $instance->json($path, $flags);
  15357. }
  15358. /**
  15359. * Create a streamed response for a given file.
  15360. *
  15361. * @param string $path
  15362. * @param string|null $name
  15363. * @param array $headers
  15364. * @param string|null $disposition
  15365. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15366. * @static
  15367. */ public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  15368. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15369. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15370. return $instance->response($path, $name, $headers, $disposition);
  15371. }
  15372. /**
  15373. * Create a streamed download response for a given file.
  15374. *
  15375. * @param \Illuminate\Http\Request $request
  15376. * @param string $path
  15377. * @param string|null $name
  15378. * @param array $headers
  15379. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15380. * @static
  15381. */ public static function serve($request, $path, $name = null, $headers = [])
  15382. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15383. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15384. return $instance->serve($request, $path, $name, $headers);
  15385. }
  15386. /**
  15387. * Create a streamed download response for a given file.
  15388. *
  15389. * @param string $path
  15390. * @param string|null $name
  15391. * @param array $headers
  15392. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15393. * @static
  15394. */ public static function download($path, $name = null, $headers = [])
  15395. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15396. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15397. return $instance->download($path, $name, $headers);
  15398. }
  15399. /**
  15400. * Write the contents of a file.
  15401. *
  15402. * @param string $path
  15403. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  15404. * @param mixed $options
  15405. * @return string|bool
  15406. * @static
  15407. */ public static function put($path, $contents, $options = [])
  15408. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15409. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15410. return $instance->put($path, $contents, $options);
  15411. }
  15412. /**
  15413. * Store the uploaded file on the disk.
  15414. *
  15415. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path
  15416. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file
  15417. * @param mixed $options
  15418. * @return string|false
  15419. * @static
  15420. */ public static function putFile($path, $file = null, $options = [])
  15421. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15422. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15423. return $instance->putFile($path, $file, $options);
  15424. }
  15425. /**
  15426. * Store the uploaded file on the disk with a given name.
  15427. *
  15428. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path
  15429. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file
  15430. * @param string|array|null $name
  15431. * @param mixed $options
  15432. * @return string|false
  15433. * @static
  15434. */ public static function putFileAs($path, $file, $name = null, $options = [])
  15435. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15436. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15437. return $instance->putFileAs($path, $file, $name, $options);
  15438. }
  15439. /**
  15440. * Get the visibility for the given path.
  15441. *
  15442. * @param string $path
  15443. * @return string
  15444. * @static
  15445. */ public static function getVisibility($path)
  15446. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15447. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15448. return $instance->getVisibility($path);
  15449. }
  15450. /**
  15451. * Set the visibility for the given path.
  15452. *
  15453. * @param string $path
  15454. * @param string $visibility
  15455. * @return bool
  15456. * @static
  15457. */ public static function setVisibility($path, $visibility)
  15458. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15459. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15460. return $instance->setVisibility($path, $visibility);
  15461. }
  15462. /**
  15463. * Prepend to a file.
  15464. *
  15465. * @param string $path
  15466. * @param string $data
  15467. * @param string $separator
  15468. * @return bool
  15469. * @static
  15470. */ public static function prepend($path, $data, $separator = '
  15471. ')
  15472. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15473. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15474. return $instance->prepend($path, $data, $separator);
  15475. }
  15476. /**
  15477. * Append to a file.
  15478. *
  15479. * @param string $path
  15480. * @param string $data
  15481. * @param string $separator
  15482. * @return bool
  15483. * @static
  15484. */ public static function append($path, $data, $separator = '
  15485. ')
  15486. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15487. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15488. return $instance->append($path, $data, $separator);
  15489. }
  15490. /**
  15491. * Delete the file at a given path.
  15492. *
  15493. * @param string|array $paths
  15494. * @return bool
  15495. * @static
  15496. */ public static function delete($paths)
  15497. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15498. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15499. return $instance->delete($paths);
  15500. }
  15501. /**
  15502. * Copy a file to a new location.
  15503. *
  15504. * @param string $from
  15505. * @param string $to
  15506. * @return bool
  15507. * @static
  15508. */ public static function copy($from, $to)
  15509. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15510. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15511. return $instance->copy($from, $to);
  15512. }
  15513. /**
  15514. * Move a file to a new location.
  15515. *
  15516. * @param string $from
  15517. * @param string $to
  15518. * @return bool
  15519. * @static
  15520. */ public static function move($from, $to)
  15521. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15522. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15523. return $instance->move($from, $to);
  15524. }
  15525. /**
  15526. * Get the file size of a given file.
  15527. *
  15528. * @param string $path
  15529. * @return int
  15530. * @static
  15531. */ public static function size($path)
  15532. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15533. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15534. return $instance->size($path);
  15535. }
  15536. /**
  15537. * Get the checksum for a file.
  15538. *
  15539. * @return string|false
  15540. * @throws UnableToProvideChecksum
  15541. * @static
  15542. */ public static function checksum($path, $options = [])
  15543. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15544. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15545. return $instance->checksum($path, $options);
  15546. }
  15547. /**
  15548. * Get the mime-type of a given file.
  15549. *
  15550. * @param string $path
  15551. * @return string|false
  15552. * @static
  15553. */ public static function mimeType($path)
  15554. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15555. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15556. return $instance->mimeType($path);
  15557. }
  15558. /**
  15559. * Get the file's last modification time.
  15560. *
  15561. * @param string $path
  15562. * @return int
  15563. * @static
  15564. */ public static function lastModified($path)
  15565. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15566. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15567. return $instance->lastModified($path);
  15568. }
  15569. /**
  15570. * Get a resource to read the file.
  15571. *
  15572. * @param string $path
  15573. * @return resource|null The path resource or null on failure.
  15574. * @static
  15575. */ public static function readStream($path)
  15576. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15577. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15578. return $instance->readStream($path);
  15579. }
  15580. /**
  15581. * Write a new file using a stream.
  15582. *
  15583. * @param string $path
  15584. * @param resource $resource
  15585. * @param array $options
  15586. * @return bool
  15587. * @static
  15588. */ public static function writeStream($path, $resource, $options = [])
  15589. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15590. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15591. return $instance->writeStream($path, $resource, $options);
  15592. }
  15593. /**
  15594. * Get an array of all files in a directory.
  15595. *
  15596. * @param string|null $directory
  15597. * @param bool $recursive
  15598. * @return array
  15599. * @static
  15600. */ public static function files($directory = null, $recursive = false)
  15601. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15602. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15603. return $instance->files($directory, $recursive);
  15604. }
  15605. /**
  15606. * Get all of the files from the given directory (recursive).
  15607. *
  15608. * @param string|null $directory
  15609. * @return array
  15610. * @static
  15611. */ public static function allFiles($directory = null)
  15612. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15613. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15614. return $instance->allFiles($directory);
  15615. }
  15616. /**
  15617. * Get all of the directories within a given directory.
  15618. *
  15619. * @param string|null $directory
  15620. * @param bool $recursive
  15621. * @return array
  15622. * @static
  15623. */ public static function directories($directory = null, $recursive = false)
  15624. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15625. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15626. return $instance->directories($directory, $recursive);
  15627. }
  15628. /**
  15629. * Get all the directories within a given directory (recursive).
  15630. *
  15631. * @param string|null $directory
  15632. * @return array
  15633. * @static
  15634. */ public static function allDirectories($directory = null)
  15635. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15636. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15637. return $instance->allDirectories($directory);
  15638. }
  15639. /**
  15640. * Create a directory.
  15641. *
  15642. * @param string $path
  15643. * @return bool
  15644. * @static
  15645. */ public static function makeDirectory($path)
  15646. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15647. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15648. return $instance->makeDirectory($path);
  15649. }
  15650. /**
  15651. * Recursively delete a directory.
  15652. *
  15653. * @param string $directory
  15654. * @return bool
  15655. * @static
  15656. */ public static function deleteDirectory($directory)
  15657. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15658. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15659. return $instance->deleteDirectory($directory);
  15660. }
  15661. /**
  15662. * Get the Flysystem driver.
  15663. *
  15664. * @return \League\Flysystem\FilesystemOperator
  15665. * @static
  15666. */ public static function getDriver()
  15667. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15668. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15669. return $instance->getDriver();
  15670. }
  15671. /**
  15672. * Get the Flysystem adapter.
  15673. *
  15674. * @return \League\Flysystem\FilesystemAdapter
  15675. * @static
  15676. */ public static function getAdapter()
  15677. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15678. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15679. return $instance->getAdapter();
  15680. }
  15681. /**
  15682. * Get the configuration values.
  15683. *
  15684. * @return array
  15685. * @static
  15686. */ public static function getConfig()
  15687. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15688. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15689. return $instance->getConfig();
  15690. }
  15691. /**
  15692. * Define a custom callback that generates file download responses.
  15693. *
  15694. * @param \Closure $callback
  15695. * @return void
  15696. * @static
  15697. */ public static function serveUsing($callback)
  15698. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15699. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15700. $instance->serveUsing($callback);
  15701. }
  15702. /**
  15703. * Define a custom temporary URL builder callback.
  15704. *
  15705. * @param \Closure $callback
  15706. * @return void
  15707. * @static
  15708. */ public static function buildTemporaryUrlsUsing($callback)
  15709. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15710. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15711. $instance->buildTemporaryUrlsUsing($callback);
  15712. }
  15713. /**
  15714. * Apply the callback if the given "value" is (or resolves to) truthy.
  15715. *
  15716. * @template TWhenParameter
  15717. * @template TWhenReturnType
  15718. * @param (\Closure($this): TWhenParameter)|\Illuminate\Filesystem\TWhenParameter|null $value
  15719. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  15720. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  15721. * @return $this|\Illuminate\Filesystem\TWhenReturnType
  15722. * @static
  15723. */ public static function when($value = null, $callback = null, $default = null)
  15724. {
  15725. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15726. return $instance->when($value, $callback, $default);
  15727. }
  15728. /**
  15729. * Apply the callback if the given "value" is (or resolves to) falsy.
  15730. *
  15731. * @template TUnlessParameter
  15732. * @template TUnlessReturnType
  15733. * @param (\Closure($this): TUnlessParameter)|\Illuminate\Filesystem\TUnlessParameter|null $value
  15734. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  15735. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  15736. * @return $this|\Illuminate\Filesystem\TUnlessReturnType
  15737. * @static
  15738. */ public static function unless($value = null, $callback = null, $default = null)
  15739. {
  15740. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15741. return $instance->unless($value, $callback, $default);
  15742. }
  15743. /**
  15744. * Register a custom macro.
  15745. *
  15746. * @param string $name
  15747. * @param object|callable $macro
  15748. * @param-closure-this static $macro
  15749. * @return void
  15750. * @static
  15751. */ public static function macro($name, $macro)
  15752. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15753. \Illuminate\Filesystem\AwsS3V3Adapter::macro($name, $macro);
  15754. }
  15755. /**
  15756. * Mix another object into the class.
  15757. *
  15758. * @param object $mixin
  15759. * @param bool $replace
  15760. * @return void
  15761. * @throws \ReflectionException
  15762. * @static
  15763. */ public static function mixin($mixin, $replace = true)
  15764. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15765. \Illuminate\Filesystem\AwsS3V3Adapter::mixin($mixin, $replace);
  15766. }
  15767. /**
  15768. * Checks if macro is registered.
  15769. *
  15770. * @param string $name
  15771. * @return bool
  15772. * @static
  15773. */ public static function hasMacro($name)
  15774. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15775. return \Illuminate\Filesystem\AwsS3V3Adapter::hasMacro($name);
  15776. }
  15777. /**
  15778. * Flush the existing macros.
  15779. *
  15780. * @return void
  15781. * @static
  15782. */ public static function flushMacros()
  15783. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15784. \Illuminate\Filesystem\AwsS3V3Adapter::flushMacros();
  15785. }
  15786. /**
  15787. * Dynamically handle calls to the class.
  15788. *
  15789. * @param string $method
  15790. * @param array $parameters
  15791. * @return mixed
  15792. * @throws \BadMethodCallException
  15793. * @static
  15794. */ public static function macroCall($method, $parameters)
  15795. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15796. /** @var \Illuminate\Filesystem\AwsS3V3Adapter $instance */
  15797. return $instance->macroCall($method, $parameters);
  15798. }
  15799. }
  15800. /**
  15801. *
  15802. *
  15803. * @see \Illuminate\Routing\UrlGenerator
  15804. */ class URL {
  15805. /**
  15806. * Get the full URL for the current request.
  15807. *
  15808. * @return string
  15809. * @static
  15810. */ public static function full()
  15811. {
  15812. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15813. return $instance->full();
  15814. }
  15815. /**
  15816. * Get the current URL for the request.
  15817. *
  15818. * @return string
  15819. * @static
  15820. */ public static function current()
  15821. {
  15822. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15823. return $instance->current();
  15824. }
  15825. /**
  15826. * Get the URL for the previous request.
  15827. *
  15828. * @param mixed $fallback
  15829. * @return string
  15830. * @static
  15831. */ public static function previous($fallback = false)
  15832. {
  15833. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15834. return $instance->previous($fallback);
  15835. }
  15836. /**
  15837. * Get the previous path info for the request.
  15838. *
  15839. * @param mixed $fallback
  15840. * @return string
  15841. * @static
  15842. */ public static function previousPath($fallback = false)
  15843. {
  15844. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15845. return $instance->previousPath($fallback);
  15846. }
  15847. /**
  15848. * Generate an absolute URL to the given path.
  15849. *
  15850. * @param string $path
  15851. * @param mixed $extra
  15852. * @param bool|null $secure
  15853. * @return string
  15854. * @static
  15855. */ public static function to($path, $extra = [], $secure = null)
  15856. {
  15857. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15858. return $instance->to($path, $extra, $secure);
  15859. }
  15860. /**
  15861. * Generate an absolute URL with the given query parameters.
  15862. *
  15863. * @param string $path
  15864. * @param array $query
  15865. * @param mixed $extra
  15866. * @param bool|null $secure
  15867. * @return string
  15868. * @static
  15869. */ public static function query($path, $query = [], $extra = [], $secure = null)
  15870. {
  15871. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15872. return $instance->query($path, $query, $extra, $secure);
  15873. }
  15874. /**
  15875. * Generate a secure, absolute URL to the given path.
  15876. *
  15877. * @param string $path
  15878. * @param array $parameters
  15879. * @return string
  15880. * @static
  15881. */ public static function secure($path, $parameters = [])
  15882. {
  15883. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15884. return $instance->secure($path, $parameters);
  15885. }
  15886. /**
  15887. * Generate the URL to an application asset.
  15888. *
  15889. * @param string $path
  15890. * @param bool|null $secure
  15891. * @return string
  15892. * @static
  15893. */ public static function asset($path, $secure = null)
  15894. {
  15895. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15896. return $instance->asset($path, $secure);
  15897. }
  15898. /**
  15899. * Generate the URL to a secure asset.
  15900. *
  15901. * @param string $path
  15902. * @return string
  15903. * @static
  15904. */ public static function secureAsset($path)
  15905. {
  15906. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15907. return $instance->secureAsset($path);
  15908. }
  15909. /**
  15910. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  15911. *
  15912. * @param string $root
  15913. * @param string $path
  15914. * @param bool|null $secure
  15915. * @return string
  15916. * @static
  15917. */ public static function assetFrom($root, $path, $secure = null)
  15918. {
  15919. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15920. return $instance->assetFrom($root, $path, $secure);
  15921. }
  15922. /**
  15923. * Get the default scheme for a raw URL.
  15924. *
  15925. * @param bool|null $secure
  15926. * @return string
  15927. * @static
  15928. */ public static function formatScheme($secure = null)
  15929. {
  15930. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15931. return $instance->formatScheme($secure);
  15932. }
  15933. /**
  15934. * Create a signed route URL for a named route.
  15935. *
  15936. * @param \BackedEnum|string $name
  15937. * @param mixed $parameters
  15938. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  15939. * @param bool $absolute
  15940. * @return string
  15941. * @throws \InvalidArgumentException
  15942. * @static
  15943. */ public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  15944. {
  15945. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15946. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  15947. }
  15948. /**
  15949. * Create a temporary signed route URL for a named route.
  15950. *
  15951. * @param \BackedEnum|string $name
  15952. * @param \DateTimeInterface|\DateInterval|int $expiration
  15953. * @param array $parameters
  15954. * @param bool $absolute
  15955. * @return string
  15956. * @static
  15957. */ public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  15958. {
  15959. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15960. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  15961. }
  15962. /**
  15963. * Determine if the given request has a valid signature.
  15964. *
  15965. * @param \Illuminate\Http\Request $request
  15966. * @param bool $absolute
  15967. * @param array $ignoreQuery
  15968. * @return bool
  15969. * @static
  15970. */ public static function hasValidSignature($request, $absolute = true, $ignoreQuery = [])
  15971. {
  15972. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15973. return $instance->hasValidSignature($request, $absolute, $ignoreQuery);
  15974. }
  15975. /**
  15976. * Determine if the given request has a valid signature for a relative URL.
  15977. *
  15978. * @param \Illuminate\Http\Request $request
  15979. * @param array $ignoreQuery
  15980. * @return bool
  15981. * @static
  15982. */ public static function hasValidRelativeSignature($request, $ignoreQuery = [])
  15983. {
  15984. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15985. return $instance->hasValidRelativeSignature($request, $ignoreQuery);
  15986. }
  15987. /**
  15988. * Determine if the signature from the given request matches the URL.
  15989. *
  15990. * @param \Illuminate\Http\Request $request
  15991. * @param bool $absolute
  15992. * @param array $ignoreQuery
  15993. * @return bool
  15994. * @static
  15995. */ public static function hasCorrectSignature($request, $absolute = true, $ignoreQuery = [])
  15996. {
  15997. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15998. return $instance->hasCorrectSignature($request, $absolute, $ignoreQuery);
  15999. }
  16000. /**
  16001. * Determine if the expires timestamp from the given request is not from the past.
  16002. *
  16003. * @param \Illuminate\Http\Request $request
  16004. * @return bool
  16005. * @static
  16006. */ public static function signatureHasNotExpired($request)
  16007. {
  16008. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16009. return $instance->signatureHasNotExpired($request);
  16010. }
  16011. /**
  16012. * Get the URL to a named route.
  16013. *
  16014. * @param \BackedEnum|string $name
  16015. * @param mixed $parameters
  16016. * @param bool $absolute
  16017. * @return string
  16018. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException|\InvalidArgumentException
  16019. * @static
  16020. */ public static function route($name, $parameters = [], $absolute = true)
  16021. {
  16022. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16023. return $instance->route($name, $parameters, $absolute);
  16024. }
  16025. /**
  16026. * Get the URL for a given route instance.
  16027. *
  16028. * @param \Illuminate\Routing\Route $route
  16029. * @param mixed $parameters
  16030. * @param bool $absolute
  16031. * @return string
  16032. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  16033. * @static
  16034. */ public static function toRoute($route, $parameters, $absolute)
  16035. {
  16036. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16037. return $instance->toRoute($route, $parameters, $absolute);
  16038. }
  16039. /**
  16040. * Get the URL to a controller action.
  16041. *
  16042. * @param string|array $action
  16043. * @param mixed $parameters
  16044. * @param bool $absolute
  16045. * @return string
  16046. * @throws \InvalidArgumentException
  16047. * @static
  16048. */ public static function action($action, $parameters = [], $absolute = true)
  16049. {
  16050. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16051. return $instance->action($action, $parameters, $absolute);
  16052. }
  16053. /**
  16054. * Format the array of URL parameters.
  16055. *
  16056. * @param mixed $parameters
  16057. * @return array
  16058. * @static
  16059. */ public static function formatParameters($parameters)
  16060. {
  16061. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16062. return $instance->formatParameters($parameters);
  16063. }
  16064. /**
  16065. * Get the base URL for the request.
  16066. *
  16067. * @param string $scheme
  16068. * @param string|null $root
  16069. * @return string
  16070. * @static
  16071. */ public static function formatRoot($scheme, $root = null)
  16072. {
  16073. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16074. return $instance->formatRoot($scheme, $root);
  16075. }
  16076. /**
  16077. * Format the given URL segments into a single URL.
  16078. *
  16079. * @param string $root
  16080. * @param string $path
  16081. * @param \Illuminate\Routing\Route|null $route
  16082. * @return string
  16083. * @static
  16084. */ public static function format($root, $path, $route = null)
  16085. {
  16086. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16087. return $instance->format($root, $path, $route);
  16088. }
  16089. /**
  16090. * Determine if the given path is a valid URL.
  16091. *
  16092. * @param string $path
  16093. * @return bool
  16094. * @static
  16095. */ public static function isValidUrl($path)
  16096. {
  16097. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16098. return $instance->isValidUrl($path);
  16099. }
  16100. /**
  16101. * Set the default named parameters used by the URL generator.
  16102. *
  16103. * @param array $defaults
  16104. * @return void
  16105. * @static
  16106. */ public static function defaults($defaults)
  16107. {
  16108. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16109. $instance->defaults($defaults);
  16110. }
  16111. /**
  16112. * Get the default named parameters used by the URL generator.
  16113. *
  16114. * @return array
  16115. * @static
  16116. */ public static function getDefaultParameters()
  16117. {
  16118. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16119. return $instance->getDefaultParameters();
  16120. }
  16121. /**
  16122. * Force the scheme for URLs.
  16123. *
  16124. * @param string|null $scheme
  16125. * @return void
  16126. * @static
  16127. */ public static function forceScheme($scheme)
  16128. {
  16129. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16130. $instance->forceScheme($scheme);
  16131. }
  16132. /**
  16133. * Set the forced root URL.
  16134. *
  16135. * @param string|null $root
  16136. * @return void
  16137. * @static
  16138. */ public static function forceRootUrl($root)
  16139. {
  16140. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16141. $instance->forceRootUrl($root);
  16142. }
  16143. /**
  16144. * Set a callback to be used to format the host of generated URLs.
  16145. *
  16146. * @param \Closure $callback
  16147. * @return \Illuminate\Routing\UrlGenerator
  16148. * @static
  16149. */ public static function formatHostUsing($callback)
  16150. {
  16151. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16152. return $instance->formatHostUsing($callback);
  16153. }
  16154. /**
  16155. * Set a callback to be used to format the path of generated URLs.
  16156. *
  16157. * @param \Closure $callback
  16158. * @return \Illuminate\Routing\UrlGenerator
  16159. * @static
  16160. */ public static function formatPathUsing($callback)
  16161. {
  16162. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16163. return $instance->formatPathUsing($callback);
  16164. }
  16165. /**
  16166. * Get the path formatter being used by the URL generator.
  16167. *
  16168. * @return \Closure
  16169. * @static
  16170. */ public static function pathFormatter()
  16171. {
  16172. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16173. return $instance->pathFormatter();
  16174. }
  16175. /**
  16176. * Get the request instance.
  16177. *
  16178. * @return \Illuminate\Http\Request
  16179. * @static
  16180. */ public static function getRequest()
  16181. {
  16182. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16183. return $instance->getRequest();
  16184. }
  16185. /**
  16186. * Set the current request instance.
  16187. *
  16188. * @param \Illuminate\Http\Request $request
  16189. * @return void
  16190. * @static
  16191. */ public static function setRequest($request)
  16192. {
  16193. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16194. $instance->setRequest($request);
  16195. }
  16196. /**
  16197. * Set the route collection.
  16198. *
  16199. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  16200. * @return \Illuminate\Routing\UrlGenerator
  16201. * @static
  16202. */ public static function setRoutes($routes)
  16203. {
  16204. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16205. return $instance->setRoutes($routes);
  16206. }
  16207. /**
  16208. * Set the session resolver for the generator.
  16209. *
  16210. * @param callable $sessionResolver
  16211. * @return \Illuminate\Routing\UrlGenerator
  16212. * @static
  16213. */ public static function setSessionResolver($sessionResolver)
  16214. {
  16215. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16216. return $instance->setSessionResolver($sessionResolver);
  16217. }
  16218. /**
  16219. * Set the encryption key resolver.
  16220. *
  16221. * @param callable $keyResolver
  16222. * @return \Illuminate\Routing\UrlGenerator
  16223. * @static
  16224. */ public static function setKeyResolver($keyResolver)
  16225. {
  16226. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16227. return $instance->setKeyResolver($keyResolver);
  16228. }
  16229. /**
  16230. * Clone a new instance of the URL generator with a different encryption key resolver.
  16231. *
  16232. * @param callable $keyResolver
  16233. * @return \Illuminate\Routing\UrlGenerator
  16234. * @static
  16235. */ public static function withKeyResolver($keyResolver)
  16236. {
  16237. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16238. return $instance->withKeyResolver($keyResolver);
  16239. }
  16240. /**
  16241. * Set the callback that should be used to attempt to resolve missing named routes.
  16242. *
  16243. * @param callable $missingNamedRouteResolver
  16244. * @return \Illuminate\Routing\UrlGenerator
  16245. * @static
  16246. */ public static function resolveMissingNamedRoutesUsing($missingNamedRouteResolver)
  16247. {
  16248. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16249. return $instance->resolveMissingNamedRoutesUsing($missingNamedRouteResolver);
  16250. }
  16251. /**
  16252. * Get the root controller namespace.
  16253. *
  16254. * @return string
  16255. * @static
  16256. */ public static function getRootControllerNamespace()
  16257. {
  16258. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16259. return $instance->getRootControllerNamespace();
  16260. }
  16261. /**
  16262. * Set the root controller namespace.
  16263. *
  16264. * @param string $rootNamespace
  16265. * @return \Illuminate\Routing\UrlGenerator
  16266. * @static
  16267. */ public static function setRootControllerNamespace($rootNamespace)
  16268. {
  16269. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16270. return $instance->setRootControllerNamespace($rootNamespace);
  16271. }
  16272. /**
  16273. * Register a custom macro.
  16274. *
  16275. * @param string $name
  16276. * @param object|callable $macro
  16277. * @param-closure-this static $macro
  16278. * @return void
  16279. * @static
  16280. */ public static function macro($name, $macro)
  16281. {
  16282. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  16283. }
  16284. /**
  16285. * Mix another object into the class.
  16286. *
  16287. * @param object $mixin
  16288. * @param bool $replace
  16289. * @return void
  16290. * @throws \ReflectionException
  16291. * @static
  16292. */ public static function mixin($mixin, $replace = true)
  16293. {
  16294. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  16295. }
  16296. /**
  16297. * Checks if macro is registered.
  16298. *
  16299. * @param string $name
  16300. * @return bool
  16301. * @static
  16302. */ public static function hasMacro($name)
  16303. {
  16304. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  16305. }
  16306. /**
  16307. * Flush the existing macros.
  16308. *
  16309. * @return void
  16310. * @static
  16311. */ public static function flushMacros()
  16312. {
  16313. \Illuminate\Routing\UrlGenerator::flushMacros();
  16314. }
  16315. }
  16316. /**
  16317. *
  16318. *
  16319. * @see \Illuminate\Validation\Factory
  16320. */ class Validator {
  16321. /**
  16322. * Create a new Validator instance.
  16323. *
  16324. * @param array $data
  16325. * @param array $rules
  16326. * @param array $messages
  16327. * @param array $attributes
  16328. * @return \Illuminate\Validation\Validator
  16329. * @static
  16330. */ public static function make($data, $rules, $messages = [], $attributes = [])
  16331. {
  16332. /** @var \Illuminate\Validation\Factory $instance */
  16333. return $instance->make($data, $rules, $messages, $attributes);
  16334. }
  16335. /**
  16336. * Validate the given data against the provided rules.
  16337. *
  16338. * @param array $data
  16339. * @param array $rules
  16340. * @param array $messages
  16341. * @param array $attributes
  16342. * @return array
  16343. * @throws \Illuminate\Validation\ValidationException
  16344. * @static
  16345. */ public static function validate($data, $rules, $messages = [], $attributes = [])
  16346. {
  16347. /** @var \Illuminate\Validation\Factory $instance */
  16348. return $instance->validate($data, $rules, $messages, $attributes);
  16349. }
  16350. /**
  16351. * Register a custom validator extension.
  16352. *
  16353. * @param string $rule
  16354. * @param \Closure|string $extension
  16355. * @param string|null $message
  16356. * @return void
  16357. * @static
  16358. */ public static function extend($rule, $extension, $message = null)
  16359. {
  16360. /** @var \Illuminate\Validation\Factory $instance */
  16361. $instance->extend($rule, $extension, $message);
  16362. }
  16363. /**
  16364. * Register a custom implicit validator extension.
  16365. *
  16366. * @param string $rule
  16367. * @param \Closure|string $extension
  16368. * @param string|null $message
  16369. * @return void
  16370. * @static
  16371. */ public static function extendImplicit($rule, $extension, $message = null)
  16372. {
  16373. /** @var \Illuminate\Validation\Factory $instance */
  16374. $instance->extendImplicit($rule, $extension, $message);
  16375. }
  16376. /**
  16377. * Register a custom dependent validator extension.
  16378. *
  16379. * @param string $rule
  16380. * @param \Closure|string $extension
  16381. * @param string|null $message
  16382. * @return void
  16383. * @static
  16384. */ public static function extendDependent($rule, $extension, $message = null)
  16385. {
  16386. /** @var \Illuminate\Validation\Factory $instance */
  16387. $instance->extendDependent($rule, $extension, $message);
  16388. }
  16389. /**
  16390. * Register a custom validator message replacer.
  16391. *
  16392. * @param string $rule
  16393. * @param \Closure|string $replacer
  16394. * @return void
  16395. * @static
  16396. */ public static function replacer($rule, $replacer)
  16397. {
  16398. /** @var \Illuminate\Validation\Factory $instance */
  16399. $instance->replacer($rule, $replacer);
  16400. }
  16401. /**
  16402. * Indicate that unvalidated array keys should be included in validated data when the parent array is validated.
  16403. *
  16404. * @return void
  16405. * @static
  16406. */ public static function includeUnvalidatedArrayKeys()
  16407. {
  16408. /** @var \Illuminate\Validation\Factory $instance */
  16409. $instance->includeUnvalidatedArrayKeys();
  16410. }
  16411. /**
  16412. * Indicate that unvalidated array keys should be excluded from the validated data, even if the parent array was validated.
  16413. *
  16414. * @return void
  16415. * @static
  16416. */ public static function excludeUnvalidatedArrayKeys()
  16417. {
  16418. /** @var \Illuminate\Validation\Factory $instance */
  16419. $instance->excludeUnvalidatedArrayKeys();
  16420. }
  16421. /**
  16422. * Set the Validator instance resolver.
  16423. *
  16424. * @param \Closure $resolver
  16425. * @return void
  16426. * @static
  16427. */ public static function resolver($resolver)
  16428. {
  16429. /** @var \Illuminate\Validation\Factory $instance */
  16430. $instance->resolver($resolver);
  16431. }
  16432. /**
  16433. * Get the Translator implementation.
  16434. *
  16435. * @return \Illuminate\Contracts\Translation\Translator
  16436. * @static
  16437. */ public static function getTranslator()
  16438. {
  16439. /** @var \Illuminate\Validation\Factory $instance */
  16440. return $instance->getTranslator();
  16441. }
  16442. /**
  16443. * Get the Presence Verifier implementation.
  16444. *
  16445. * @return \Illuminate\Validation\PresenceVerifierInterface
  16446. * @static
  16447. */ public static function getPresenceVerifier()
  16448. {
  16449. /** @var \Illuminate\Validation\Factory $instance */
  16450. return $instance->getPresenceVerifier();
  16451. }
  16452. /**
  16453. * Set the Presence Verifier implementation.
  16454. *
  16455. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  16456. * @return void
  16457. * @static
  16458. */ public static function setPresenceVerifier($presenceVerifier)
  16459. {
  16460. /** @var \Illuminate\Validation\Factory $instance */
  16461. $instance->setPresenceVerifier($presenceVerifier);
  16462. }
  16463. /**
  16464. * Get the container instance used by the validation factory.
  16465. *
  16466. * @return \Illuminate\Contracts\Container\Container|null
  16467. * @static
  16468. */ public static function getContainer()
  16469. {
  16470. /** @var \Illuminate\Validation\Factory $instance */
  16471. return $instance->getContainer();
  16472. }
  16473. /**
  16474. * Set the container instance used by the validation factory.
  16475. *
  16476. * @param \Illuminate\Contracts\Container\Container $container
  16477. * @return \Illuminate\Validation\Factory
  16478. * @static
  16479. */ public static function setContainer($container)
  16480. {
  16481. /** @var \Illuminate\Validation\Factory $instance */
  16482. return $instance->setContainer($container);
  16483. }
  16484. }
  16485. /**
  16486. *
  16487. *
  16488. * @see \Illuminate\View\Factory
  16489. */ class View {
  16490. /**
  16491. * Get the evaluated view contents for the given view.
  16492. *
  16493. * @param string $path
  16494. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16495. * @param array $mergeData
  16496. * @return \Illuminate\Contracts\View\View
  16497. * @static
  16498. */ public static function file($path, $data = [], $mergeData = [])
  16499. {
  16500. /** @var \Illuminate\View\Factory $instance */
  16501. return $instance->file($path, $data, $mergeData);
  16502. }
  16503. /**
  16504. * Get the evaluated view contents for the given view.
  16505. *
  16506. * @param string $view
  16507. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16508. * @param array $mergeData
  16509. * @return \Illuminate\Contracts\View\View
  16510. * @static
  16511. */ public static function make($view, $data = [], $mergeData = [])
  16512. {
  16513. /** @var \Illuminate\View\Factory $instance */
  16514. return $instance->make($view, $data, $mergeData);
  16515. }
  16516. /**
  16517. * Get the first view that actually exists from the given list.
  16518. *
  16519. * @param array $views
  16520. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16521. * @param array $mergeData
  16522. * @return \Illuminate\Contracts\View\View
  16523. * @throws \InvalidArgumentException
  16524. * @static
  16525. */ public static function first($views, $data = [], $mergeData = [])
  16526. {
  16527. /** @var \Illuminate\View\Factory $instance */
  16528. return $instance->first($views, $data, $mergeData);
  16529. }
  16530. /**
  16531. * Get the rendered content of the view based on a given condition.
  16532. *
  16533. * @param bool $condition
  16534. * @param string $view
  16535. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16536. * @param array $mergeData
  16537. * @return string
  16538. * @static
  16539. */ public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  16540. {
  16541. /** @var \Illuminate\View\Factory $instance */
  16542. return $instance->renderWhen($condition, $view, $data, $mergeData);
  16543. }
  16544. /**
  16545. * Get the rendered content of the view based on the negation of a given condition.
  16546. *
  16547. * @param bool $condition
  16548. * @param string $view
  16549. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16550. * @param array $mergeData
  16551. * @return string
  16552. * @static
  16553. */ public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  16554. {
  16555. /** @var \Illuminate\View\Factory $instance */
  16556. return $instance->renderUnless($condition, $view, $data, $mergeData);
  16557. }
  16558. /**
  16559. * Get the rendered contents of a partial from a loop.
  16560. *
  16561. * @param string $view
  16562. * @param array $data
  16563. * @param string $iterator
  16564. * @param string $empty
  16565. * @return string
  16566. * @static
  16567. */ public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  16568. {
  16569. /** @var \Illuminate\View\Factory $instance */
  16570. return $instance->renderEach($view, $data, $iterator, $empty);
  16571. }
  16572. /**
  16573. * Determine if a given view exists.
  16574. *
  16575. * @param string $view
  16576. * @return bool
  16577. * @static
  16578. */ public static function exists($view)
  16579. {
  16580. /** @var \Illuminate\View\Factory $instance */
  16581. return $instance->exists($view);
  16582. }
  16583. /**
  16584. * Get the appropriate view engine for the given path.
  16585. *
  16586. * @param string $path
  16587. * @return \Illuminate\Contracts\View\Engine
  16588. * @throws \InvalidArgumentException
  16589. * @static
  16590. */ public static function getEngineFromPath($path)
  16591. {
  16592. /** @var \Illuminate\View\Factory $instance */
  16593. return $instance->getEngineFromPath($path);
  16594. }
  16595. /**
  16596. * Add a piece of shared data to the environment.
  16597. *
  16598. * @param array|string $key
  16599. * @param mixed|null $value
  16600. * @return mixed
  16601. * @static
  16602. */ public static function share($key, $value = null)
  16603. {
  16604. /** @var \Illuminate\View\Factory $instance */
  16605. return $instance->share($key, $value);
  16606. }
  16607. /**
  16608. * Increment the rendering counter.
  16609. *
  16610. * @return void
  16611. * @static
  16612. */ public static function incrementRender()
  16613. {
  16614. /** @var \Illuminate\View\Factory $instance */
  16615. $instance->incrementRender();
  16616. }
  16617. /**
  16618. * Decrement the rendering counter.
  16619. *
  16620. * @return void
  16621. * @static
  16622. */ public static function decrementRender()
  16623. {
  16624. /** @var \Illuminate\View\Factory $instance */
  16625. $instance->decrementRender();
  16626. }
  16627. /**
  16628. * Check if there are no active render operations.
  16629. *
  16630. * @return bool
  16631. * @static
  16632. */ public static function doneRendering()
  16633. {
  16634. /** @var \Illuminate\View\Factory $instance */
  16635. return $instance->doneRendering();
  16636. }
  16637. /**
  16638. * Determine if the given once token has been rendered.
  16639. *
  16640. * @param string $id
  16641. * @return bool
  16642. * @static
  16643. */ public static function hasRenderedOnce($id)
  16644. {
  16645. /** @var \Illuminate\View\Factory $instance */
  16646. return $instance->hasRenderedOnce($id);
  16647. }
  16648. /**
  16649. * Mark the given once token as having been rendered.
  16650. *
  16651. * @param string $id
  16652. * @return void
  16653. * @static
  16654. */ public static function markAsRenderedOnce($id)
  16655. {
  16656. /** @var \Illuminate\View\Factory $instance */
  16657. $instance->markAsRenderedOnce($id);
  16658. }
  16659. /**
  16660. * Add a location to the array of view locations.
  16661. *
  16662. * @param string $location
  16663. * @return void
  16664. * @static
  16665. */ public static function addLocation($location)
  16666. {
  16667. /** @var \Illuminate\View\Factory $instance */
  16668. $instance->addLocation($location);
  16669. }
  16670. /**
  16671. * Prepend a location to the array of view locations.
  16672. *
  16673. * @param string $location
  16674. * @return void
  16675. * @static
  16676. */ public static function prependLocation($location)
  16677. {
  16678. /** @var \Illuminate\View\Factory $instance */
  16679. $instance->prependLocation($location);
  16680. }
  16681. /**
  16682. * Add a new namespace to the loader.
  16683. *
  16684. * @param string $namespace
  16685. * @param string|array $hints
  16686. * @return \Illuminate\View\Factory
  16687. * @static
  16688. */ public static function addNamespace($namespace, $hints)
  16689. {
  16690. /** @var \Illuminate\View\Factory $instance */
  16691. return $instance->addNamespace($namespace, $hints);
  16692. }
  16693. /**
  16694. * Prepend a new namespace to the loader.
  16695. *
  16696. * @param string $namespace
  16697. * @param string|array $hints
  16698. * @return \Illuminate\View\Factory
  16699. * @static
  16700. */ public static function prependNamespace($namespace, $hints)
  16701. {
  16702. /** @var \Illuminate\View\Factory $instance */
  16703. return $instance->prependNamespace($namespace, $hints);
  16704. }
  16705. /**
  16706. * Replace the namespace hints for the given namespace.
  16707. *
  16708. * @param string $namespace
  16709. * @param string|array $hints
  16710. * @return \Illuminate\View\Factory
  16711. * @static
  16712. */ public static function replaceNamespace($namespace, $hints)
  16713. {
  16714. /** @var \Illuminate\View\Factory $instance */
  16715. return $instance->replaceNamespace($namespace, $hints);
  16716. }
  16717. /**
  16718. * Register a valid view extension and its engine.
  16719. *
  16720. * @param string $extension
  16721. * @param string $engine
  16722. * @param \Closure|null $resolver
  16723. * @return void
  16724. * @static
  16725. */ public static function addExtension($extension, $engine, $resolver = null)
  16726. {
  16727. /** @var \Illuminate\View\Factory $instance */
  16728. $instance->addExtension($extension, $engine, $resolver);
  16729. }
  16730. /**
  16731. * Flush all of the factory state like sections and stacks.
  16732. *
  16733. * @return void
  16734. * @static
  16735. */ public static function flushState()
  16736. {
  16737. /** @var \Illuminate\View\Factory $instance */
  16738. $instance->flushState();
  16739. }
  16740. /**
  16741. * Flush all of the section contents if done rendering.
  16742. *
  16743. * @return void
  16744. * @static
  16745. */ public static function flushStateIfDoneRendering()
  16746. {
  16747. /** @var \Illuminate\View\Factory $instance */
  16748. $instance->flushStateIfDoneRendering();
  16749. }
  16750. /**
  16751. * Get the extension to engine bindings.
  16752. *
  16753. * @return array
  16754. * @static
  16755. */ public static function getExtensions()
  16756. {
  16757. /** @var \Illuminate\View\Factory $instance */
  16758. return $instance->getExtensions();
  16759. }
  16760. /**
  16761. * Get the engine resolver instance.
  16762. *
  16763. * @return \Illuminate\View\Engines\EngineResolver
  16764. * @static
  16765. */ public static function getEngineResolver()
  16766. {
  16767. /** @var \Illuminate\View\Factory $instance */
  16768. return $instance->getEngineResolver();
  16769. }
  16770. /**
  16771. * Get the view finder instance.
  16772. *
  16773. * @return \Illuminate\View\ViewFinderInterface
  16774. * @static
  16775. */ public static function getFinder()
  16776. {
  16777. /** @var \Illuminate\View\Factory $instance */
  16778. return $instance->getFinder();
  16779. }
  16780. /**
  16781. * Set the view finder instance.
  16782. *
  16783. * @param \Illuminate\View\ViewFinderInterface $finder
  16784. * @return void
  16785. * @static
  16786. */ public static function setFinder($finder)
  16787. {
  16788. /** @var \Illuminate\View\Factory $instance */
  16789. $instance->setFinder($finder);
  16790. }
  16791. /**
  16792. * Flush the cache of views located by the finder.
  16793. *
  16794. * @return void
  16795. * @static
  16796. */ public static function flushFinderCache()
  16797. {
  16798. /** @var \Illuminate\View\Factory $instance */
  16799. $instance->flushFinderCache();
  16800. }
  16801. /**
  16802. * Get the event dispatcher instance.
  16803. *
  16804. * @return \Illuminate\Contracts\Events\Dispatcher
  16805. * @static
  16806. */ public static function getDispatcher()
  16807. {
  16808. /** @var \Illuminate\View\Factory $instance */
  16809. return $instance->getDispatcher();
  16810. }
  16811. /**
  16812. * Set the event dispatcher instance.
  16813. *
  16814. * @param \Illuminate\Contracts\Events\Dispatcher $events
  16815. * @return void
  16816. * @static
  16817. */ public static function setDispatcher($events)
  16818. {
  16819. /** @var \Illuminate\View\Factory $instance */
  16820. $instance->setDispatcher($events);
  16821. }
  16822. /**
  16823. * Get the IoC container instance.
  16824. *
  16825. * @return \Illuminate\Contracts\Container\Container
  16826. * @static
  16827. */ public static function getContainer()
  16828. {
  16829. /** @var \Illuminate\View\Factory $instance */
  16830. return $instance->getContainer();
  16831. }
  16832. /**
  16833. * Set the IoC container instance.
  16834. *
  16835. * @param \Illuminate\Contracts\Container\Container $container
  16836. * @return void
  16837. * @static
  16838. */ public static function setContainer($container)
  16839. {
  16840. /** @var \Illuminate\View\Factory $instance */
  16841. $instance->setContainer($container);
  16842. }
  16843. /**
  16844. * Get an item from the shared data.
  16845. *
  16846. * @param string $key
  16847. * @param mixed $default
  16848. * @return mixed
  16849. * @static
  16850. */ public static function shared($key, $default = null)
  16851. {
  16852. /** @var \Illuminate\View\Factory $instance */
  16853. return $instance->shared($key, $default);
  16854. }
  16855. /**
  16856. * Get all of the shared data for the environment.
  16857. *
  16858. * @return array
  16859. * @static
  16860. */ public static function getShared()
  16861. {
  16862. /** @var \Illuminate\View\Factory $instance */
  16863. return $instance->getShared();
  16864. }
  16865. /**
  16866. * Register a custom macro.
  16867. *
  16868. * @param string $name
  16869. * @param object|callable $macro
  16870. * @param-closure-this static $macro
  16871. * @return void
  16872. * @static
  16873. */ public static function macro($name, $macro)
  16874. {
  16875. \Illuminate\View\Factory::macro($name, $macro);
  16876. }
  16877. /**
  16878. * Mix another object into the class.
  16879. *
  16880. * @param object $mixin
  16881. * @param bool $replace
  16882. * @return void
  16883. * @throws \ReflectionException
  16884. * @static
  16885. */ public static function mixin($mixin, $replace = true)
  16886. {
  16887. \Illuminate\View\Factory::mixin($mixin, $replace);
  16888. }
  16889. /**
  16890. * Checks if macro is registered.
  16891. *
  16892. * @param string $name
  16893. * @return bool
  16894. * @static
  16895. */ public static function hasMacro($name)
  16896. {
  16897. return \Illuminate\View\Factory::hasMacro($name);
  16898. }
  16899. /**
  16900. * Flush the existing macros.
  16901. *
  16902. * @return void
  16903. * @static
  16904. */ public static function flushMacros()
  16905. {
  16906. \Illuminate\View\Factory::flushMacros();
  16907. }
  16908. /**
  16909. * Start a component rendering process.
  16910. *
  16911. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  16912. * @param array $data
  16913. * @return void
  16914. * @static
  16915. */ public static function startComponent($view, $data = [])
  16916. {
  16917. /** @var \Illuminate\View\Factory $instance */
  16918. $instance->startComponent($view, $data);
  16919. }
  16920. /**
  16921. * Get the first view that actually exists from the given list, and start a component.
  16922. *
  16923. * @param array $names
  16924. * @param array $data
  16925. * @return void
  16926. * @static
  16927. */ public static function startComponentFirst($names, $data = [])
  16928. {
  16929. /** @var \Illuminate\View\Factory $instance */
  16930. $instance->startComponentFirst($names, $data);
  16931. }
  16932. /**
  16933. * Render the current component.
  16934. *
  16935. * @return string
  16936. * @static
  16937. */ public static function renderComponent()
  16938. {
  16939. /** @var \Illuminate\View\Factory $instance */
  16940. return $instance->renderComponent();
  16941. }
  16942. /**
  16943. * Get an item from the component data that exists above the current component.
  16944. *
  16945. * @param string $key
  16946. * @param mixed $default
  16947. * @return mixed|null
  16948. * @static
  16949. */ public static function getConsumableComponentData($key, $default = null)
  16950. {
  16951. /** @var \Illuminate\View\Factory $instance */
  16952. return $instance->getConsumableComponentData($key, $default);
  16953. }
  16954. /**
  16955. * Start the slot rendering process.
  16956. *
  16957. * @param string $name
  16958. * @param string|null $content
  16959. * @param array $attributes
  16960. * @return void
  16961. * @static
  16962. */ public static function slot($name, $content = null, $attributes = [])
  16963. {
  16964. /** @var \Illuminate\View\Factory $instance */
  16965. $instance->slot($name, $content, $attributes);
  16966. }
  16967. /**
  16968. * Save the slot content for rendering.
  16969. *
  16970. * @return void
  16971. * @static
  16972. */ public static function endSlot()
  16973. {
  16974. /** @var \Illuminate\View\Factory $instance */
  16975. $instance->endSlot();
  16976. }
  16977. /**
  16978. * Register a view creator event.
  16979. *
  16980. * @param array|string $views
  16981. * @param \Closure|string $callback
  16982. * @return array
  16983. * @static
  16984. */ public static function creator($views, $callback)
  16985. {
  16986. /** @var \Illuminate\View\Factory $instance */
  16987. return $instance->creator($views, $callback);
  16988. }
  16989. /**
  16990. * Register multiple view composers via an array.
  16991. *
  16992. * @param array $composers
  16993. * @return array
  16994. * @static
  16995. */ public static function composers($composers)
  16996. {
  16997. /** @var \Illuminate\View\Factory $instance */
  16998. return $instance->composers($composers);
  16999. }
  17000. /**
  17001. * Register a view composer event.
  17002. *
  17003. * @param array|string $views
  17004. * @param \Closure|string $callback
  17005. * @return array
  17006. * @static
  17007. */ public static function composer($views, $callback)
  17008. {
  17009. /** @var \Illuminate\View\Factory $instance */
  17010. return $instance->composer($views, $callback);
  17011. }
  17012. /**
  17013. * Call the composer for a given view.
  17014. *
  17015. * @param \Illuminate\Contracts\View\View $view
  17016. * @return void
  17017. * @static
  17018. */ public static function callComposer($view)
  17019. {
  17020. /** @var \Illuminate\View\Factory $instance */
  17021. $instance->callComposer($view);
  17022. }
  17023. /**
  17024. * Call the creator for a given view.
  17025. *
  17026. * @param \Illuminate\Contracts\View\View $view
  17027. * @return void
  17028. * @static
  17029. */ public static function callCreator($view)
  17030. {
  17031. /** @var \Illuminate\View\Factory $instance */
  17032. $instance->callCreator($view);
  17033. }
  17034. /**
  17035. * Start injecting content into a fragment.
  17036. *
  17037. * @param string $fragment
  17038. * @return void
  17039. * @static
  17040. */ public static function startFragment($fragment)
  17041. {
  17042. /** @var \Illuminate\View\Factory $instance */
  17043. $instance->startFragment($fragment);
  17044. }
  17045. /**
  17046. * Stop injecting content into a fragment.
  17047. *
  17048. * @return string
  17049. * @throws \InvalidArgumentException
  17050. * @static
  17051. */ public static function stopFragment()
  17052. {
  17053. /** @var \Illuminate\View\Factory $instance */
  17054. return $instance->stopFragment();
  17055. }
  17056. /**
  17057. * Get the contents of a fragment.
  17058. *
  17059. * @param string $name
  17060. * @param string|null $default
  17061. * @return mixed
  17062. * @static
  17063. */ public static function getFragment($name, $default = null)
  17064. {
  17065. /** @var \Illuminate\View\Factory $instance */
  17066. return $instance->getFragment($name, $default);
  17067. }
  17068. /**
  17069. * Get the entire array of rendered fragments.
  17070. *
  17071. * @return array
  17072. * @static
  17073. */ public static function getFragments()
  17074. {
  17075. /** @var \Illuminate\View\Factory $instance */
  17076. return $instance->getFragments();
  17077. }
  17078. /**
  17079. * Flush all of the fragments.
  17080. *
  17081. * @return void
  17082. * @static
  17083. */ public static function flushFragments()
  17084. {
  17085. /** @var \Illuminate\View\Factory $instance */
  17086. $instance->flushFragments();
  17087. }
  17088. /**
  17089. * Start injecting content into a section.
  17090. *
  17091. * @param string $section
  17092. * @param string|null $content
  17093. * @return void
  17094. * @static
  17095. */ public static function startSection($section, $content = null)
  17096. {
  17097. /** @var \Illuminate\View\Factory $instance */
  17098. $instance->startSection($section, $content);
  17099. }
  17100. /**
  17101. * Inject inline content into a section.
  17102. *
  17103. * @param string $section
  17104. * @param string $content
  17105. * @return void
  17106. * @static
  17107. */ public static function inject($section, $content)
  17108. {
  17109. /** @var \Illuminate\View\Factory $instance */
  17110. $instance->inject($section, $content);
  17111. }
  17112. /**
  17113. * Stop injecting content into a section and return its contents.
  17114. *
  17115. * @return string
  17116. * @static
  17117. */ public static function yieldSection()
  17118. {
  17119. /** @var \Illuminate\View\Factory $instance */
  17120. return $instance->yieldSection();
  17121. }
  17122. /**
  17123. * Stop injecting content into a section.
  17124. *
  17125. * @param bool $overwrite
  17126. * @return string
  17127. * @throws \InvalidArgumentException
  17128. * @static
  17129. */ public static function stopSection($overwrite = false)
  17130. {
  17131. /** @var \Illuminate\View\Factory $instance */
  17132. return $instance->stopSection($overwrite);
  17133. }
  17134. /**
  17135. * Stop injecting content into a section and append it.
  17136. *
  17137. * @return string
  17138. * @throws \InvalidArgumentException
  17139. * @static
  17140. */ public static function appendSection()
  17141. {
  17142. /** @var \Illuminate\View\Factory $instance */
  17143. return $instance->appendSection();
  17144. }
  17145. /**
  17146. * Get the string contents of a section.
  17147. *
  17148. * @param string $section
  17149. * @param string $default
  17150. * @return string
  17151. * @static
  17152. */ public static function yieldContent($section, $default = '')
  17153. {
  17154. /** @var \Illuminate\View\Factory $instance */
  17155. return $instance->yieldContent($section, $default);
  17156. }
  17157. /**
  17158. * Get the parent placeholder for the current request.
  17159. *
  17160. * @param string $section
  17161. * @return string
  17162. * @static
  17163. */ public static function parentPlaceholder($section = '')
  17164. {
  17165. return \Illuminate\View\Factory::parentPlaceholder($section);
  17166. }
  17167. /**
  17168. * Check if section exists.
  17169. *
  17170. * @param string $name
  17171. * @return bool
  17172. * @static
  17173. */ public static function hasSection($name)
  17174. {
  17175. /** @var \Illuminate\View\Factory $instance */
  17176. return $instance->hasSection($name);
  17177. }
  17178. /**
  17179. * Check if section does not exist.
  17180. *
  17181. * @param string $name
  17182. * @return bool
  17183. * @static
  17184. */ public static function sectionMissing($name)
  17185. {
  17186. /** @var \Illuminate\View\Factory $instance */
  17187. return $instance->sectionMissing($name);
  17188. }
  17189. /**
  17190. * Get the contents of a section.
  17191. *
  17192. * @param string $name
  17193. * @param string|null $default
  17194. * @return mixed
  17195. * @static
  17196. */ public static function getSection($name, $default = null)
  17197. {
  17198. /** @var \Illuminate\View\Factory $instance */
  17199. return $instance->getSection($name, $default);
  17200. }
  17201. /**
  17202. * Get the entire array of sections.
  17203. *
  17204. * @return array
  17205. * @static
  17206. */ public static function getSections()
  17207. {
  17208. /** @var \Illuminate\View\Factory $instance */
  17209. return $instance->getSections();
  17210. }
  17211. /**
  17212. * Flush all of the sections.
  17213. *
  17214. * @return void
  17215. * @static
  17216. */ public static function flushSections()
  17217. {
  17218. /** @var \Illuminate\View\Factory $instance */
  17219. $instance->flushSections();
  17220. }
  17221. /**
  17222. * Add new loop to the stack.
  17223. *
  17224. * @param \Countable|array $data
  17225. * @return void
  17226. * @static
  17227. */ public static function addLoop($data)
  17228. {
  17229. /** @var \Illuminate\View\Factory $instance */
  17230. $instance->addLoop($data);
  17231. }
  17232. /**
  17233. * Increment the top loop's indices.
  17234. *
  17235. * @return void
  17236. * @static
  17237. */ public static function incrementLoopIndices()
  17238. {
  17239. /** @var \Illuminate\View\Factory $instance */
  17240. $instance->incrementLoopIndices();
  17241. }
  17242. /**
  17243. * Pop a loop from the top of the loop stack.
  17244. *
  17245. * @return void
  17246. * @static
  17247. */ public static function popLoop()
  17248. {
  17249. /** @var \Illuminate\View\Factory $instance */
  17250. $instance->popLoop();
  17251. }
  17252. /**
  17253. * Get an instance of the last loop in the stack.
  17254. *
  17255. * @return \stdClass|null
  17256. * @static
  17257. */ public static function getLastLoop()
  17258. {
  17259. /** @var \Illuminate\View\Factory $instance */
  17260. return $instance->getLastLoop();
  17261. }
  17262. /**
  17263. * Get the entire loop stack.
  17264. *
  17265. * @return array
  17266. * @static
  17267. */ public static function getLoopStack()
  17268. {
  17269. /** @var \Illuminate\View\Factory $instance */
  17270. return $instance->getLoopStack();
  17271. }
  17272. /**
  17273. * Start injecting content into a push section.
  17274. *
  17275. * @param string $section
  17276. * @param string $content
  17277. * @return void
  17278. * @static
  17279. */ public static function startPush($section, $content = '')
  17280. {
  17281. /** @var \Illuminate\View\Factory $instance */
  17282. $instance->startPush($section, $content);
  17283. }
  17284. /**
  17285. * Stop injecting content into a push section.
  17286. *
  17287. * @return string
  17288. * @throws \InvalidArgumentException
  17289. * @static
  17290. */ public static function stopPush()
  17291. {
  17292. /** @var \Illuminate\View\Factory $instance */
  17293. return $instance->stopPush();
  17294. }
  17295. /**
  17296. * Start prepending content into a push section.
  17297. *
  17298. * @param string $section
  17299. * @param string $content
  17300. * @return void
  17301. * @static
  17302. */ public static function startPrepend($section, $content = '')
  17303. {
  17304. /** @var \Illuminate\View\Factory $instance */
  17305. $instance->startPrepend($section, $content);
  17306. }
  17307. /**
  17308. * Stop prepending content into a push section.
  17309. *
  17310. * @return string
  17311. * @throws \InvalidArgumentException
  17312. * @static
  17313. */ public static function stopPrepend()
  17314. {
  17315. /** @var \Illuminate\View\Factory $instance */
  17316. return $instance->stopPrepend();
  17317. }
  17318. /**
  17319. * Get the string contents of a push section.
  17320. *
  17321. * @param string $section
  17322. * @param string $default
  17323. * @return string
  17324. * @static
  17325. */ public static function yieldPushContent($section, $default = '')
  17326. {
  17327. /** @var \Illuminate\View\Factory $instance */
  17328. return $instance->yieldPushContent($section, $default);
  17329. }
  17330. /**
  17331. * Flush all of the stacks.
  17332. *
  17333. * @return void
  17334. * @static
  17335. */ public static function flushStacks()
  17336. {
  17337. /** @var \Illuminate\View\Factory $instance */
  17338. $instance->flushStacks();
  17339. }
  17340. /**
  17341. * Start a translation block.
  17342. *
  17343. * @param array $replacements
  17344. * @return void
  17345. * @static
  17346. */ public static function startTranslation($replacements = [])
  17347. {
  17348. /** @var \Illuminate\View\Factory $instance */
  17349. $instance->startTranslation($replacements);
  17350. }
  17351. /**
  17352. * Render the current translation.
  17353. *
  17354. * @return string
  17355. * @static
  17356. */ public static function renderTranslation()
  17357. {
  17358. /** @var \Illuminate\View\Factory $instance */
  17359. return $instance->renderTranslation();
  17360. }
  17361. }
  17362. }
  17363. namespace SimpleSoftwareIO\QrCode\Facades {
  17364. /**
  17365. *
  17366. *
  17367. */ class QrCode {
  17368. /**
  17369. * Generates the QrCode.
  17370. *
  17371. * @param string $text
  17372. * @param string|null $filename
  17373. * @return void|\Illuminate\Support\HtmlString|string
  17374. * @throws WriterException
  17375. * @throws InvalidArgumentException
  17376. * @static
  17377. */ public static function generate($text, $filename = null)
  17378. {
  17379. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17380. return $instance->generate($text, $filename);
  17381. }
  17382. /**
  17383. * Merges an image over the QrCode.
  17384. *
  17385. * @param string $filepath
  17386. * @param float $percentage
  17387. * @param \SimpleSoftwareIO\QrCode\SimpleSoftwareIO\QrCode\boolean|bool $absolute
  17388. * @return \Generator
  17389. * @static
  17390. */ public static function merge($filepath, $percentage = 0.2, $absolute = false)
  17391. {
  17392. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17393. return $instance->merge($filepath, $percentage, $absolute);
  17394. }
  17395. /**
  17396. * Merges an image string with the center of the QrCode.
  17397. *
  17398. * @param string $content
  17399. * @param float $percentage
  17400. * @return \Generator
  17401. * @static
  17402. */ public static function mergeString($content, $percentage = 0.2)
  17403. {
  17404. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17405. return $instance->mergeString($content, $percentage);
  17406. }
  17407. /**
  17408. * Sets the size of the QrCode.
  17409. *
  17410. * @param int $pixels
  17411. * @return \Generator
  17412. * @static
  17413. */ public static function size($pixels)
  17414. {
  17415. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17416. return $instance->size($pixels);
  17417. }
  17418. /**
  17419. * Sets the format of the QrCode.
  17420. *
  17421. * @param string $format
  17422. * @return \Generator
  17423. * @throws InvalidArgumentException
  17424. * @static
  17425. */ public static function format($format)
  17426. {
  17427. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17428. return $instance->format($format);
  17429. }
  17430. /**
  17431. * Sets the foreground color of the QrCode.
  17432. *
  17433. * @param int $red
  17434. * @param int $green
  17435. * @param int $blue
  17436. * @param null|int $alpha
  17437. * @return \Generator
  17438. * @static
  17439. */ public static function color($red, $green, $blue, $alpha = null)
  17440. {
  17441. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17442. return $instance->color($red, $green, $blue, $alpha);
  17443. }
  17444. /**
  17445. * Sets the background color of the QrCode.
  17446. *
  17447. * @param int $red
  17448. * @param int $green
  17449. * @param int $blue
  17450. * @param null|int $alpha
  17451. * @return \Generator
  17452. * @static
  17453. */ public static function backgroundColor($red, $green, $blue, $alpha = null)
  17454. {
  17455. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17456. return $instance->backgroundColor($red, $green, $blue, $alpha);
  17457. }
  17458. /**
  17459. * Sets the eye color for the provided eye index.
  17460. *
  17461. * @param int $eyeNumber
  17462. * @param int $innerRed
  17463. * @param int $innerGreen
  17464. * @param int $innerBlue
  17465. * @param int $outterRed
  17466. * @param int $outterGreen
  17467. * @param int $outterBlue
  17468. * @return \Generator
  17469. * @throws InvalidArgumentException
  17470. * @static
  17471. */ public static function eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed = 0, $outterGreen = 0, $outterBlue = 0)
  17472. {
  17473. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17474. return $instance->eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed, $outterGreen, $outterBlue);
  17475. }
  17476. /**
  17477. *
  17478. *
  17479. * @static
  17480. */ public static function gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type)
  17481. {
  17482. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17483. return $instance->gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type);
  17484. }
  17485. /**
  17486. * Sets the eye style.
  17487. *
  17488. * @param string $style
  17489. * @return \Generator
  17490. * @throws InvalidArgumentException
  17491. * @static
  17492. */ public static function eye($style)
  17493. {
  17494. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17495. return $instance->eye($style);
  17496. }
  17497. /**
  17498. * Sets the style of the blocks for the QrCode.
  17499. *
  17500. * @param string $style
  17501. * @param float $size
  17502. * @return \Generator
  17503. * @throws InvalidArgumentException
  17504. * @static
  17505. */ public static function style($style, $size = 0.5)
  17506. {
  17507. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17508. return $instance->style($style, $size);
  17509. }
  17510. /**
  17511. * Sets the encoding for the QrCode.
  17512. *
  17513. * Possible values are
  17514. * ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6,
  17515. * ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11,
  17516. * ISO-8859-12, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16,
  17517. * SHIFT-JIS, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1256,
  17518. * UTF-16BE, UTF-8, ASCII, GBK, EUC-KR.
  17519. *
  17520. * @param string $encoding
  17521. * @return \Generator
  17522. * @static
  17523. */ public static function encoding($encoding)
  17524. {
  17525. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17526. return $instance->encoding($encoding);
  17527. }
  17528. /**
  17529. * Sets the error correction for the QrCode.
  17530. *
  17531. * L: 7% loss.
  17532. * M: 15% loss.
  17533. * Q: 25% loss.
  17534. * H: 30% loss.
  17535. *
  17536. * @param string $errorCorrection
  17537. * @return \Generator
  17538. * @static
  17539. */ public static function errorCorrection($errorCorrection)
  17540. {
  17541. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17542. return $instance->errorCorrection($errorCorrection);
  17543. }
  17544. /**
  17545. * Sets the margin of the QrCode.
  17546. *
  17547. * @param int $margin
  17548. * @return \Generator
  17549. * @static
  17550. */ public static function margin($margin)
  17551. {
  17552. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17553. return $instance->margin($margin);
  17554. }
  17555. /**
  17556. * Fetches the Writer.
  17557. *
  17558. * @param \BaconQrCode\Renderer\ImageRenderer $renderer
  17559. * @return \BaconQrCode\Writer
  17560. * @static
  17561. */ public static function getWriter($renderer)
  17562. {
  17563. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17564. return $instance->getWriter($renderer);
  17565. }
  17566. /**
  17567. * Fetches the Image Renderer.
  17568. *
  17569. * @return \BaconQrCode\Renderer\ImageRenderer
  17570. * @static
  17571. */ public static function getRenderer()
  17572. {
  17573. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17574. return $instance->getRenderer();
  17575. }
  17576. /**
  17577. * Returns the Renderer Style.
  17578. *
  17579. * @return \BaconQrCode\Renderer\RendererStyle\RendererStyle
  17580. * @static
  17581. */ public static function getRendererStyle()
  17582. {
  17583. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17584. return $instance->getRendererStyle();
  17585. }
  17586. /**
  17587. * Fetches the formatter.
  17588. *
  17589. * @return \BaconQrCode\Renderer\Image\ImageBackEndInterface
  17590. * @static
  17591. */ public static function getFormatter()
  17592. {
  17593. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17594. return $instance->getFormatter();
  17595. }
  17596. /**
  17597. * Fetches the module.
  17598. *
  17599. * @return \BaconQrCode\Renderer\Module\ModuleInterface
  17600. * @static
  17601. */ public static function getModule()
  17602. {
  17603. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17604. return $instance->getModule();
  17605. }
  17606. /**
  17607. * Fetches the eye style.
  17608. *
  17609. * @return \BaconQrCode\Renderer\Eye\EyeInterface
  17610. * @static
  17611. */ public static function getEye()
  17612. {
  17613. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17614. return $instance->getEye();
  17615. }
  17616. /**
  17617. * Fetches the color fill.
  17618. *
  17619. * @return \BaconQrCode\Renderer\RendererStyle\Fill
  17620. * @static
  17621. */ public static function getFill()
  17622. {
  17623. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17624. return $instance->getFill();
  17625. }
  17626. /**
  17627. * Creates a RGB or Alpha channel color.
  17628. *
  17629. * @param int $red
  17630. * @param int $green
  17631. * @param int $blue
  17632. * @param null|int $alpha
  17633. * @return \BaconQrCode\Renderer\Color\ColorInterface
  17634. * @static
  17635. */ public static function createColor($red, $green, $blue, $alpha = null)
  17636. {
  17637. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17638. return $instance->createColor($red, $green, $blue, $alpha);
  17639. }
  17640. }
  17641. }
  17642. namespace Illuminate\Http {
  17643. /**
  17644. *
  17645. *
  17646. */ class Request {
  17647. /**
  17648. *
  17649. *
  17650. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  17651. * @param array $rules
  17652. * @param mixed $params
  17653. * @static
  17654. */ public static function validate($rules, ...$params)
  17655. {
  17656. return \Illuminate\Http\Request::validate($rules, ...$params);
  17657. }
  17658. /**
  17659. *
  17660. *
  17661. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  17662. * @param string $errorBag
  17663. * @param array $rules
  17664. * @param mixed $params
  17665. * @static
  17666. */ public static function validateWithBag($errorBag, $rules, ...$params)
  17667. {
  17668. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  17669. }
  17670. /**
  17671. *
  17672. *
  17673. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17674. * @param mixed $absolute
  17675. * @static
  17676. */ public static function hasValidSignature($absolute = true)
  17677. {
  17678. return \Illuminate\Http\Request::hasValidSignature($absolute);
  17679. }
  17680. /**
  17681. *
  17682. *
  17683. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17684. * @static
  17685. */ public static function hasValidRelativeSignature()
  17686. {
  17687. return \Illuminate\Http\Request::hasValidRelativeSignature();
  17688. }
  17689. /**
  17690. *
  17691. *
  17692. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17693. * @param mixed $ignoreQuery
  17694. * @param mixed $absolute
  17695. * @static
  17696. */ public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  17697. {
  17698. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  17699. }
  17700. /**
  17701. *
  17702. *
  17703. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17704. * @param mixed $ignoreQuery
  17705. * @static
  17706. */ public static function hasValidRelativeSignatureWhileIgnoring($ignoreQuery = [])
  17707. {
  17708. return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
  17709. }
  17710. }
  17711. }
  17712. namespace Illuminate\Database\Query {
  17713. /**
  17714. *
  17715. *
  17716. */ class Builder {
  17717. }
  17718. }
  17719. namespace {
  17720. class App extends \Illuminate\Support\Facades\App {}
  17721. class Arr extends \Illuminate\Support\Arr {}
  17722. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  17723. class Auth extends \Illuminate\Support\Facades\Auth {}
  17724. class Blade extends \Illuminate\Support\Facades\Blade {}
  17725. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  17726. class Bus extends \Illuminate\Support\Facades\Bus {}
  17727. class Cache extends \Illuminate\Support\Facades\Cache {}
  17728. class Config extends \Illuminate\Support\Facades\Config {}
  17729. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  17730. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  17731. class Date extends \Illuminate\Support\Carbon {}
  17732. class DB extends \Illuminate\Support\Facades\DB {}
  17733. class Eloquent extends \Illuminate\Database\Eloquent\Model { /**
  17734. * Create and return an un-saved model instance.
  17735. *
  17736. * @param array $attributes
  17737. * @return \Illuminate\Database\Eloquent\TModel
  17738. * @static
  17739. */ public static function make($attributes = [])
  17740. {
  17741. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17742. return $instance->make($attributes);
  17743. }
  17744. /**
  17745. * Register a new global scope.
  17746. *
  17747. * @param string $identifier
  17748. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  17749. * @return \Illuminate\Database\Eloquent\Builder|static
  17750. * @static
  17751. */ public static function withGlobalScope($identifier, $scope)
  17752. {
  17753. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17754. return $instance->withGlobalScope($identifier, $scope);
  17755. }
  17756. /**
  17757. * Remove a registered global scope.
  17758. *
  17759. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  17760. * @return \Illuminate\Database\Eloquent\Builder|static
  17761. * @static
  17762. */ public static function withoutGlobalScope($scope)
  17763. {
  17764. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17765. return $instance->withoutGlobalScope($scope);
  17766. }
  17767. /**
  17768. * Remove all or passed registered global scopes.
  17769. *
  17770. * @param array|null $scopes
  17771. * @return \Illuminate\Database\Eloquent\Builder|static
  17772. * @static
  17773. */ public static function withoutGlobalScopes($scopes = null)
  17774. {
  17775. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17776. return $instance->withoutGlobalScopes($scopes);
  17777. }
  17778. /**
  17779. * Get an array of global scopes that were removed from the query.
  17780. *
  17781. * @return array
  17782. * @static
  17783. */ public static function removedScopes()
  17784. {
  17785. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17786. return $instance->removedScopes();
  17787. }
  17788. /**
  17789. * Add a where clause on the primary key to the query.
  17790. *
  17791. * @param mixed $id
  17792. * @return \Illuminate\Database\Eloquent\Builder|static
  17793. * @static
  17794. */ public static function whereKey($id)
  17795. {
  17796. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17797. return $instance->whereKey($id);
  17798. }
  17799. /**
  17800. * Add a where clause on the primary key to the query.
  17801. *
  17802. * @param mixed $id
  17803. * @return \Illuminate\Database\Eloquent\Builder|static
  17804. * @static
  17805. */ public static function whereKeyNot($id)
  17806. {
  17807. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17808. return $instance->whereKeyNot($id);
  17809. }
  17810. /**
  17811. * Add a basic where clause to the query.
  17812. *
  17813. * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  17814. * @param mixed $operator
  17815. * @param mixed $value
  17816. * @param string $boolean
  17817. * @return \Illuminate\Database\Eloquent\Builder|static
  17818. * @static
  17819. */ public static function where($column, $operator = null, $value = null, $boolean = 'and')
  17820. {
  17821. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17822. return $instance->where($column, $operator, $value, $boolean);
  17823. }
  17824. /**
  17825. * Add a basic where clause to the query, and return the first result.
  17826. *
  17827. * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  17828. * @param mixed $operator
  17829. * @param mixed $value
  17830. * @param string $boolean
  17831. * @return \Illuminate\Database\Eloquent\TModel|null
  17832. * @static
  17833. */ public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  17834. {
  17835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17836. return $instance->firstWhere($column, $operator, $value, $boolean);
  17837. }
  17838. /**
  17839. * Add an "or where" clause to the query.
  17840. *
  17841. * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column
  17842. * @param mixed $operator
  17843. * @param mixed $value
  17844. * @return \Illuminate\Database\Eloquent\Builder|static
  17845. * @static
  17846. */ public static function orWhere($column, $operator = null, $value = null)
  17847. {
  17848. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17849. return $instance->orWhere($column, $operator, $value);
  17850. }
  17851. /**
  17852. * Add a basic "where not" clause to the query.
  17853. *
  17854. * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  17855. * @param mixed $operator
  17856. * @param mixed $value
  17857. * @param string $boolean
  17858. * @return \Illuminate\Database\Eloquent\Builder|static
  17859. * @static
  17860. */ public static function whereNot($column, $operator = null, $value = null, $boolean = 'and')
  17861. {
  17862. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17863. return $instance->whereNot($column, $operator, $value, $boolean);
  17864. }
  17865. /**
  17866. * Add an "or where not" clause to the query.
  17867. *
  17868. * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column
  17869. * @param mixed $operator
  17870. * @param mixed $value
  17871. * @return \Illuminate\Database\Eloquent\Builder|static
  17872. * @static
  17873. */ public static function orWhereNot($column, $operator = null, $value = null)
  17874. {
  17875. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17876. return $instance->orWhereNot($column, $operator, $value);
  17877. }
  17878. /**
  17879. * Add an "order by" clause for a timestamp to the query.
  17880. *
  17881. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  17882. * @return \Illuminate\Database\Eloquent\Builder|static
  17883. * @static
  17884. */ public static function latest($column = null)
  17885. {
  17886. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17887. return $instance->latest($column);
  17888. }
  17889. /**
  17890. * Add an "order by" clause for a timestamp to the query.
  17891. *
  17892. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  17893. * @return \Illuminate\Database\Eloquent\Builder|static
  17894. * @static
  17895. */ public static function oldest($column = null)
  17896. {
  17897. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17898. return $instance->oldest($column);
  17899. }
  17900. /**
  17901. * Create a collection of models from plain arrays.
  17902. *
  17903. * @param array $items
  17904. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  17905. * @static
  17906. */ public static function hydrate($items)
  17907. {
  17908. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17909. return $instance->hydrate($items);
  17910. }
  17911. /**
  17912. * Create a collection of models from a raw query.
  17913. *
  17914. * @param string $query
  17915. * @param array $bindings
  17916. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  17917. * @static
  17918. */ public static function fromQuery($query, $bindings = [])
  17919. {
  17920. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17921. return $instance->fromQuery($query, $bindings);
  17922. }
  17923. /**
  17924. * Find a model by its primary key.
  17925. *
  17926. * @param mixed $id
  17927. * @param array|string $columns
  17928. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel|null)
  17929. * @static
  17930. */ public static function find($id, $columns = [])
  17931. {
  17932. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17933. return $instance->find($id, $columns);
  17934. }
  17935. /**
  17936. * Find multiple models by their primary keys.
  17937. *
  17938. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  17939. * @param array|string $columns
  17940. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  17941. * @static
  17942. */ public static function findMany($ids, $columns = [])
  17943. {
  17944. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17945. return $instance->findMany($ids, $columns);
  17946. }
  17947. /**
  17948. * Find a model by its primary key or throw an exception.
  17949. *
  17950. * @param mixed $id
  17951. * @param array|string $columns
  17952. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
  17953. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  17954. * @static
  17955. */ public static function findOrFail($id, $columns = [])
  17956. {
  17957. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17958. return $instance->findOrFail($id, $columns);
  17959. }
  17960. /**
  17961. * Find a model by its primary key or return fresh model instance.
  17962. *
  17963. * @param mixed $id
  17964. * @param array|string $columns
  17965. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
  17966. * @static
  17967. */ public static function findOrNew($id, $columns = [])
  17968. {
  17969. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17970. return $instance->findOrNew($id, $columns);
  17971. }
  17972. /**
  17973. * Find a model by its primary key or call a callback.
  17974. *
  17975. * @template TValue
  17976. * @param mixed $id
  17977. * @param (\Closure(): TValue)|\Illuminate\Database\Eloquent\list<string>|string $columns
  17978. * @param (\Closure(): TValue)|null $callback
  17979. * @return ( $id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>)
  17980. * ? \Illuminate\Database\Eloquent\Collection<int, TModel>
  17981. * : TModel|TValue
  17982. * )
  17983. * @static
  17984. */ public static function findOr($id, $columns = [], $callback = null)
  17985. {
  17986. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17987. return $instance->findOr($id, $columns, $callback);
  17988. }
  17989. /**
  17990. * Get the first record matching the attributes or instantiate it.
  17991. *
  17992. * @param array $attributes
  17993. * @param array $values
  17994. * @return \Illuminate\Database\Eloquent\TModel
  17995. * @static
  17996. */ public static function firstOrNew($attributes = [], $values = [])
  17997. {
  17998. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17999. return $instance->firstOrNew($attributes, $values);
  18000. }
  18001. /**
  18002. * Get the first record matching the attributes. If the record is not found, create it.
  18003. *
  18004. * @param array $attributes
  18005. * @param array $values
  18006. * @return \Illuminate\Database\Eloquent\TModel
  18007. * @static
  18008. */ public static function firstOrCreate($attributes = [], $values = [])
  18009. {
  18010. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18011. return $instance->firstOrCreate($attributes, $values);
  18012. }
  18013. /**
  18014. * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record.
  18015. *
  18016. * @param array $attributes
  18017. * @param array $values
  18018. * @return \Illuminate\Database\Eloquent\TModel
  18019. * @static
  18020. */ public static function createOrFirst($attributes = [], $values = [])
  18021. {
  18022. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18023. return $instance->createOrFirst($attributes, $values);
  18024. }
  18025. /**
  18026. * Create or update a record matching the attributes, and fill it with values.
  18027. *
  18028. * @param array $attributes
  18029. * @param array $values
  18030. * @return \Illuminate\Database\Eloquent\TModel
  18031. * @static
  18032. */ public static function updateOrCreate($attributes, $values = [])
  18033. {
  18034. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18035. return $instance->updateOrCreate($attributes, $values);
  18036. }
  18037. /**
  18038. * Execute the query and get the first result or throw an exception.
  18039. *
  18040. * @param array|string $columns
  18041. * @return \Illuminate\Database\Eloquent\TModel
  18042. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  18043. * @static
  18044. */ public static function firstOrFail($columns = [])
  18045. {
  18046. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18047. return $instance->firstOrFail($columns);
  18048. }
  18049. /**
  18050. * Execute the query and get the first result or call a callback.
  18051. *
  18052. * @template TValue
  18053. * @param (\Closure(): TValue)|\Illuminate\Database\Eloquent\list<string> $columns
  18054. * @param (\Closure(): TValue)|null $callback
  18055. * @return \Illuminate\Database\Eloquent\TModel|\Illuminate\Database\Eloquent\TValue
  18056. * @static
  18057. */ public static function firstOr($columns = [], $callback = null)
  18058. {
  18059. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18060. return $instance->firstOr($columns, $callback);
  18061. }
  18062. /**
  18063. * Execute the query and get the first result if it's the sole matching record.
  18064. *
  18065. * @param array|string $columns
  18066. * @return \Illuminate\Database\Eloquent\TModel
  18067. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  18068. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18069. * @static
  18070. */ public static function sole($columns = [])
  18071. {
  18072. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18073. return $instance->sole($columns);
  18074. }
  18075. /**
  18076. * Get a single column's value from the first result of a query.
  18077. *
  18078. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  18079. * @return mixed
  18080. * @static
  18081. */ public static function value($column)
  18082. {
  18083. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18084. return $instance->value($column);
  18085. }
  18086. /**
  18087. * Get a single column's value from the first result of a query if it's the sole matching record.
  18088. *
  18089. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  18090. * @return mixed
  18091. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  18092. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18093. * @static
  18094. */ public static function soleValue($column)
  18095. {
  18096. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18097. return $instance->soleValue($column);
  18098. }
  18099. /**
  18100. * Get a single column's value from the first result of the query or throw an exception.
  18101. *
  18102. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  18103. * @return mixed
  18104. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  18105. * @static
  18106. */ public static function valueOrFail($column)
  18107. {
  18108. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18109. return $instance->valueOrFail($column);
  18110. }
  18111. /**
  18112. * Execute the query as a "select" statement.
  18113. *
  18114. * @param array|string $columns
  18115. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  18116. * @static
  18117. */ public static function get($columns = [])
  18118. {
  18119. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18120. return $instance->get($columns);
  18121. }
  18122. /**
  18123. * Get the hydrated models without eager loading.
  18124. *
  18125. * @param array|string $columns
  18126. * @return array<int, TModel>
  18127. * @static
  18128. */ public static function getModels($columns = [])
  18129. {
  18130. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18131. return $instance->getModels($columns);
  18132. }
  18133. /**
  18134. * Eager load the relationships for the models.
  18135. *
  18136. * @param array<int, TModel> $models
  18137. * @return array<int, TModel>
  18138. * @static
  18139. */ public static function eagerLoadRelations($models)
  18140. {
  18141. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18142. return $instance->eagerLoadRelations($models);
  18143. }
  18144. /**
  18145. * Register a closure to be invoked after the query is executed.
  18146. *
  18147. * @param \Closure $callback
  18148. * @return \Illuminate\Database\Eloquent\Builder|static
  18149. * @static
  18150. */ public static function afterQuery($callback)
  18151. {
  18152. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18153. return $instance->afterQuery($callback);
  18154. }
  18155. /**
  18156. * Invoke the "after query" modification callbacks.
  18157. *
  18158. * @param mixed $result
  18159. * @return mixed
  18160. * @static
  18161. */ public static function applyAfterQueryCallbacks($result)
  18162. {
  18163. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18164. return $instance->applyAfterQueryCallbacks($result);
  18165. }
  18166. /**
  18167. * Get a lazy collection for the given query.
  18168. *
  18169. * @return \Illuminate\Support\LazyCollection<int, TModel>
  18170. * @static
  18171. */ public static function cursor()
  18172. {
  18173. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18174. return $instance->cursor();
  18175. }
  18176. /**
  18177. * Get a collection with the values of a given column.
  18178. *
  18179. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  18180. * @param string|null $key
  18181. * @return \Illuminate\Support\Collection<array-key, mixed>
  18182. * @static
  18183. */ public static function pluck($column, $key = null)
  18184. {
  18185. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18186. return $instance->pluck($column, $key);
  18187. }
  18188. /**
  18189. * Paginate the given query.
  18190. *
  18191. * @param int|null|\Closure $perPage
  18192. * @param array|string $columns
  18193. * @param string $pageName
  18194. * @param int|null $page
  18195. * @param \Closure|int|null $total
  18196. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  18197. * @throws \InvalidArgumentException
  18198. * @static
  18199. */ public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null, $total = null)
  18200. {
  18201. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18202. return $instance->paginate($perPage, $columns, $pageName, $page, $total);
  18203. }
  18204. /**
  18205. * Paginate the given query into a simple paginator.
  18206. *
  18207. * @param int|null $perPage
  18208. * @param array|string $columns
  18209. * @param string $pageName
  18210. * @param int|null $page
  18211. * @return \Illuminate\Contracts\Pagination\Paginator
  18212. * @static
  18213. */ public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  18214. {
  18215. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18216. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  18217. }
  18218. /**
  18219. * Paginate the given query into a cursor paginator.
  18220. *
  18221. * @param int|null $perPage
  18222. * @param array|string $columns
  18223. * @param string $cursorName
  18224. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  18225. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  18226. * @static
  18227. */ public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  18228. {
  18229. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18230. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  18231. }
  18232. /**
  18233. * Save a new model and return the instance.
  18234. *
  18235. * @param array $attributes
  18236. * @return \Illuminate\Database\Eloquent\TModel
  18237. * @static
  18238. */ public static function create($attributes = [])
  18239. {
  18240. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18241. return $instance->create($attributes);
  18242. }
  18243. /**
  18244. * Save a new model and return the instance. Allow mass-assignment.
  18245. *
  18246. * @param array $attributes
  18247. * @return \Illuminate\Database\Eloquent\TModel
  18248. * @static
  18249. */ public static function forceCreate($attributes)
  18250. {
  18251. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18252. return $instance->forceCreate($attributes);
  18253. }
  18254. /**
  18255. * Save a new model instance with mass assignment without raising model events.
  18256. *
  18257. * @param array $attributes
  18258. * @return \Illuminate\Database\Eloquent\TModel
  18259. * @static
  18260. */ public static function forceCreateQuietly($attributes = [])
  18261. {
  18262. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18263. return $instance->forceCreateQuietly($attributes);
  18264. }
  18265. /**
  18266. * Insert new records or update the existing ones.
  18267. *
  18268. * @param array $values
  18269. * @param array|string $uniqueBy
  18270. * @param array|null $update
  18271. * @return int
  18272. * @static
  18273. */ public static function upsert($values, $uniqueBy, $update = null)
  18274. {
  18275. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18276. return $instance->upsert($values, $uniqueBy, $update);
  18277. }
  18278. /**
  18279. * Register a replacement for the default delete function.
  18280. *
  18281. * @param \Closure $callback
  18282. * @return void
  18283. * @static
  18284. */ public static function onDelete($callback)
  18285. {
  18286. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18287. $instance->onDelete($callback);
  18288. }
  18289. /**
  18290. * Call the given local model scopes.
  18291. *
  18292. * @param array|string $scopes
  18293. * @return static|mixed
  18294. * @static
  18295. */ public static function scopes($scopes)
  18296. {
  18297. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18298. return $instance->scopes($scopes);
  18299. }
  18300. /**
  18301. * Apply the scopes to the Eloquent builder instance and return it.
  18302. *
  18303. * @return static
  18304. * @static
  18305. */ public static function applyScopes()
  18306. {
  18307. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18308. return $instance->applyScopes();
  18309. }
  18310. /**
  18311. * Prevent the specified relations from being eager loaded.
  18312. *
  18313. * @param mixed $relations
  18314. * @return \Illuminate\Database\Eloquent\Builder|static
  18315. * @static
  18316. */ public static function without($relations)
  18317. {
  18318. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18319. return $instance->without($relations);
  18320. }
  18321. /**
  18322. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  18323. *
  18324. * @param array<array-key, array|(\Closure(\Illuminate\Database\Eloquent\Relations\Relation<*,*,*>): mixed)|string>|string $relations
  18325. * @return \Illuminate\Database\Eloquent\Builder|static
  18326. * @static
  18327. */ public static function withOnly($relations)
  18328. {
  18329. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18330. return $instance->withOnly($relations);
  18331. }
  18332. /**
  18333. * Create a new instance of the model being queried.
  18334. *
  18335. * @param array $attributes
  18336. * @return \Illuminate\Database\Eloquent\TModel
  18337. * @static
  18338. */ public static function newModelInstance($attributes = [])
  18339. {
  18340. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18341. return $instance->newModelInstance($attributes);
  18342. }
  18343. /**
  18344. * Apply query-time casts to the model instance.
  18345. *
  18346. * @param array $casts
  18347. * @return \Illuminate\Database\Eloquent\Builder|static
  18348. * @static
  18349. */ public static function withCasts($casts)
  18350. {
  18351. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18352. return $instance->withCasts($casts);
  18353. }
  18354. /**
  18355. * Execute the given Closure within a transaction savepoint if needed.
  18356. *
  18357. * @template TModelValue
  18358. * @param \Closure(): TModelValue $scope
  18359. * @return \Illuminate\Database\Eloquent\TModelValue
  18360. * @static
  18361. */ public static function withSavepointIfNeeded($scope)
  18362. {
  18363. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18364. return $instance->withSavepointIfNeeded($scope);
  18365. }
  18366. /**
  18367. * Get the underlying query builder instance.
  18368. *
  18369. * @return \Illuminate\Database\Query\Builder
  18370. * @static
  18371. */ public static function getQuery()
  18372. {
  18373. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18374. return $instance->getQuery();
  18375. }
  18376. /**
  18377. * Set the underlying query builder instance.
  18378. *
  18379. * @param \Illuminate\Database\Query\Builder $query
  18380. * @return \Illuminate\Database\Eloquent\Builder|static
  18381. * @static
  18382. */ public static function setQuery($query)
  18383. {
  18384. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18385. return $instance->setQuery($query);
  18386. }
  18387. /**
  18388. * Get a base query builder instance.
  18389. *
  18390. * @return \Illuminate\Database\Query\Builder
  18391. * @static
  18392. */ public static function toBase()
  18393. {
  18394. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18395. return $instance->toBase();
  18396. }
  18397. /**
  18398. * Get the relationships being eagerly loaded.
  18399. *
  18400. * @return array
  18401. * @static
  18402. */ public static function getEagerLoads()
  18403. {
  18404. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18405. return $instance->getEagerLoads();
  18406. }
  18407. /**
  18408. * Set the relationships being eagerly loaded.
  18409. *
  18410. * @param array $eagerLoad
  18411. * @return \Illuminate\Database\Eloquent\Builder|static
  18412. * @static
  18413. */ public static function setEagerLoads($eagerLoad)
  18414. {
  18415. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18416. return $instance->setEagerLoads($eagerLoad);
  18417. }
  18418. /**
  18419. * Indicate that the given relationships should not be eagerly loaded.
  18420. *
  18421. * @param array $relations
  18422. * @return \Illuminate\Database\Eloquent\Builder|static
  18423. * @static
  18424. */ public static function withoutEagerLoad($relations)
  18425. {
  18426. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18427. return $instance->withoutEagerLoad($relations);
  18428. }
  18429. /**
  18430. * Flush the relationships being eagerly loaded.
  18431. *
  18432. * @return \Illuminate\Database\Eloquent\Builder|static
  18433. * @static
  18434. */ public static function withoutEagerLoads()
  18435. {
  18436. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18437. return $instance->withoutEagerLoads();
  18438. }
  18439. /**
  18440. * Get the model instance being queried.
  18441. *
  18442. * @return \Illuminate\Database\Eloquent\TModel
  18443. * @static
  18444. */ public static function getModel()
  18445. {
  18446. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18447. return $instance->getModel();
  18448. }
  18449. /**
  18450. * Set a model instance for the model being queried.
  18451. *
  18452. * @template TModelNew of \Illuminate\Database\Eloquent\Model
  18453. * @param \Illuminate\Database\Eloquent\TModelNew $model
  18454. * @return \Illuminate\Database\Eloquent\static<TModelNew>
  18455. * @static
  18456. */ public static function setModel($model)
  18457. {
  18458. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18459. return $instance->setModel($model);
  18460. }
  18461. /**
  18462. * Get the given macro by name.
  18463. *
  18464. * @param string $name
  18465. * @return \Closure
  18466. * @static
  18467. */ public static function getMacro($name)
  18468. {
  18469. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18470. return $instance->getMacro($name);
  18471. }
  18472. /**
  18473. * Checks if a macro is registered.
  18474. *
  18475. * @param string $name
  18476. * @return bool
  18477. * @static
  18478. */ public static function hasMacro($name)
  18479. {
  18480. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18481. return $instance->hasMacro($name);
  18482. }
  18483. /**
  18484. * Get the given global macro by name.
  18485. *
  18486. * @param string $name
  18487. * @return \Closure
  18488. * @static
  18489. */ public static function getGlobalMacro($name)
  18490. {
  18491. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  18492. }
  18493. /**
  18494. * Checks if a global macro is registered.
  18495. *
  18496. * @param string $name
  18497. * @return bool
  18498. * @static
  18499. */ public static function hasGlobalMacro($name)
  18500. {
  18501. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  18502. }
  18503. /**
  18504. * Clone the Eloquent query builder.
  18505. *
  18506. * @return static
  18507. * @static
  18508. */ public static function clone()
  18509. {
  18510. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18511. return $instance->clone();
  18512. }
  18513. /**
  18514. * Chunk the results of the query.
  18515. *
  18516. * @param int $count
  18517. * @param \Illuminate\Database\Eloquent\callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  18518. * @return bool
  18519. * @static
  18520. */ public static function chunk($count, $callback)
  18521. {
  18522. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18523. return $instance->chunk($count, $callback);
  18524. }
  18525. /**
  18526. * Run a map over each item while chunking.
  18527. *
  18528. * @template TReturn
  18529. * @param \Illuminate\Database\Eloquent\callable(TValue): TReturn $callback
  18530. * @param int $count
  18531. * @return \Illuminate\Support\Collection<int, TReturn>
  18532. * @static
  18533. */ public static function chunkMap($callback, $count = 1000)
  18534. {
  18535. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18536. return $instance->chunkMap($callback, $count);
  18537. }
  18538. /**
  18539. * Execute a callback over each item while chunking.
  18540. *
  18541. * @param \Illuminate\Database\Eloquent\callable(TValue, int): mixed $callback
  18542. * @param int $count
  18543. * @return bool
  18544. * @throws \RuntimeException
  18545. * @static
  18546. */ public static function each($callback, $count = 1000)
  18547. {
  18548. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18549. return $instance->each($callback, $count);
  18550. }
  18551. /**
  18552. * Chunk the results of a query by comparing IDs.
  18553. *
  18554. * @param int $count
  18555. * @param \Illuminate\Database\Eloquent\callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  18556. * @param string|null $column
  18557. * @param string|null $alias
  18558. * @return bool
  18559. * @static
  18560. */ public static function chunkById($count, $callback, $column = null, $alias = null)
  18561. {
  18562. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18563. return $instance->chunkById($count, $callback, $column, $alias);
  18564. }
  18565. /**
  18566. * Chunk the results of a query by comparing IDs in descending order.
  18567. *
  18568. * @param int $count
  18569. * @param \Illuminate\Database\Eloquent\callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  18570. * @param string|null $column
  18571. * @param string|null $alias
  18572. * @return bool
  18573. * @static
  18574. */ public static function chunkByIdDesc($count, $callback, $column = null, $alias = null)
  18575. {
  18576. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18577. return $instance->chunkByIdDesc($count, $callback, $column, $alias);
  18578. }
  18579. /**
  18580. * Chunk the results of a query by comparing IDs in a given order.
  18581. *
  18582. * @param int $count
  18583. * @param \Illuminate\Database\Eloquent\callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  18584. * @param string|null $column
  18585. * @param string|null $alias
  18586. * @param bool $descending
  18587. * @return bool
  18588. * @throws \RuntimeException
  18589. * @static
  18590. */ public static function orderedChunkById($count, $callback, $column = null, $alias = null, $descending = false)
  18591. {
  18592. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18593. return $instance->orderedChunkById($count, $callback, $column, $alias, $descending);
  18594. }
  18595. /**
  18596. * Execute a callback over each item while chunking by ID.
  18597. *
  18598. * @param \Illuminate\Database\Eloquent\callable(TValue, int): mixed $callback
  18599. * @param int $count
  18600. * @param string|null $column
  18601. * @param string|null $alias
  18602. * @return bool
  18603. * @static
  18604. */ public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  18605. {
  18606. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18607. return $instance->eachById($callback, $count, $column, $alias);
  18608. }
  18609. /**
  18610. * Query lazily, by chunks of the given size.
  18611. *
  18612. * @param int $chunkSize
  18613. * @return \Illuminate\Support\LazyCollection
  18614. * @throws \InvalidArgumentException
  18615. * @static
  18616. */ public static function lazy($chunkSize = 1000)
  18617. {
  18618. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18619. return $instance->lazy($chunkSize);
  18620. }
  18621. /**
  18622. * Query lazily, by chunking the results of a query by comparing IDs.
  18623. *
  18624. * @param int $chunkSize
  18625. * @param string|null $column
  18626. * @param string|null $alias
  18627. * @return \Illuminate\Support\LazyCollection
  18628. * @throws \InvalidArgumentException
  18629. * @static
  18630. */ public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  18631. {
  18632. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18633. return $instance->lazyById($chunkSize, $column, $alias);
  18634. }
  18635. /**
  18636. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  18637. *
  18638. * @param int $chunkSize
  18639. * @param string|null $column
  18640. * @param string|null $alias
  18641. * @return \Illuminate\Support\LazyCollection
  18642. * @throws \InvalidArgumentException
  18643. * @static
  18644. */ public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  18645. {
  18646. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18647. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  18648. }
  18649. /**
  18650. * Execute the query and get the first result.
  18651. *
  18652. * @param array|string $columns
  18653. * @return \Illuminate\Database\Eloquent\TValue|null
  18654. * @static
  18655. */ public static function first($columns = [])
  18656. {
  18657. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18658. return $instance->first($columns);
  18659. }
  18660. /**
  18661. * Execute the query and get the first result if it's the sole matching record.
  18662. *
  18663. * @param array|string $columns
  18664. * @return \Illuminate\Database\Eloquent\TValue
  18665. * @throws \Illuminate\Database\RecordsNotFoundException
  18666. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18667. * @static
  18668. */ public static function baseSole($columns = [])
  18669. {
  18670. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18671. return $instance->baseSole($columns);
  18672. }
  18673. /**
  18674. * Pass the query to a given callback.
  18675. *
  18676. * @param \Illuminate\Database\Eloquent\callable($this): mixed $callback
  18677. * @return \Illuminate\Database\Eloquent\Builder|static
  18678. * @static
  18679. */ public static function tap($callback)
  18680. {
  18681. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18682. return $instance->tap($callback);
  18683. }
  18684. /**
  18685. * Apply the callback if the given "value" is (or resolves to) truthy.
  18686. *
  18687. * @template TWhenParameter
  18688. * @template TWhenReturnType
  18689. * @param (\Closure($this): TWhenParameter)|\Illuminate\Database\Eloquent\TWhenParameter|null $value
  18690. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  18691. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  18692. * @return $this|\Illuminate\Database\Eloquent\TWhenReturnType
  18693. * @static
  18694. */ public static function when($value = null, $callback = null, $default = null)
  18695. {
  18696. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18697. return $instance->when($value, $callback, $default);
  18698. }
  18699. /**
  18700. * Apply the callback if the given "value" is (or resolves to) falsy.
  18701. *
  18702. * @template TUnlessParameter
  18703. * @template TUnlessReturnType
  18704. * @param (\Closure($this): TUnlessParameter)|\Illuminate\Database\Eloquent\TUnlessParameter|null $value
  18705. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  18706. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  18707. * @return $this|\Illuminate\Database\Eloquent\TUnlessReturnType
  18708. * @static
  18709. */ public static function unless($value = null, $callback = null, $default = null)
  18710. {
  18711. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18712. return $instance->unless($value, $callback, $default);
  18713. }
  18714. /**
  18715. * Add a relationship count / exists condition to the query.
  18716. *
  18717. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18718. * @param string $operator
  18719. * @param int $count
  18720. * @param string $boolean
  18721. * @param \Closure|null $callback
  18722. * @return \Illuminate\Database\Eloquent\Builder|static
  18723. * @throws \RuntimeException
  18724. * @static
  18725. */ public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18726. {
  18727. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18728. return $instance->has($relation, $operator, $count, $boolean, $callback);
  18729. }
  18730. /**
  18731. * Add a relationship count / exists condition to the query with an "or".
  18732. *
  18733. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18734. * @param string $operator
  18735. * @param int $count
  18736. * @return \Illuminate\Database\Eloquent\Builder|static
  18737. * @static
  18738. */ public static function orHas($relation, $operator = '>=', $count = 1)
  18739. {
  18740. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18741. return $instance->orHas($relation, $operator, $count);
  18742. }
  18743. /**
  18744. * Add a relationship count / exists condition to the query.
  18745. *
  18746. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18747. * @param string $boolean
  18748. * @param \Closure|null $callback
  18749. * @return \Illuminate\Database\Eloquent\Builder|static
  18750. * @static
  18751. */ public static function doesntHave($relation, $boolean = 'and', $callback = null)
  18752. {
  18753. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18754. return $instance->doesntHave($relation, $boolean, $callback);
  18755. }
  18756. /**
  18757. * Add a relationship count / exists condition to the query with an "or".
  18758. *
  18759. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18760. * @return \Illuminate\Database\Eloquent\Builder|static
  18761. * @static
  18762. */ public static function orDoesntHave($relation)
  18763. {
  18764. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18765. return $instance->orDoesntHave($relation);
  18766. }
  18767. /**
  18768. * Add a relationship count / exists condition to the query with where clauses.
  18769. *
  18770. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18771. * @param \Closure|null $callback
  18772. * @param string $operator
  18773. * @param int $count
  18774. * @return \Illuminate\Database\Eloquent\Builder|static
  18775. * @static
  18776. */ public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18777. {
  18778. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18779. return $instance->whereHas($relation, $callback, $operator, $count);
  18780. }
  18781. /**
  18782. * Add a relationship count / exists condition to the query with where clauses.
  18783. *
  18784. * Also load the relationship with same condition.
  18785. *
  18786. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18787. * @param \Closure|null $callback
  18788. * @param string $operator
  18789. * @param int $count
  18790. * @return \Illuminate\Database\Eloquent\Builder|static
  18791. * @static
  18792. */ public static function withWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18793. {
  18794. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18795. return $instance->withWhereHas($relation, $callback, $operator, $count);
  18796. }
  18797. /**
  18798. * Add a relationship count / exists condition to the query with where clauses and an "or".
  18799. *
  18800. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18801. * @param \Closure|null $callback
  18802. * @param string $operator
  18803. * @param int $count
  18804. * @return \Illuminate\Database\Eloquent\Builder|static
  18805. * @static
  18806. */ public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18807. {
  18808. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18809. return $instance->orWhereHas($relation, $callback, $operator, $count);
  18810. }
  18811. /**
  18812. * Add a relationship count / exists condition to the query with where clauses.
  18813. *
  18814. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18815. * @param \Closure|null $callback
  18816. * @return \Illuminate\Database\Eloquent\Builder|static
  18817. * @static
  18818. */ public static function whereDoesntHave($relation, $callback = null)
  18819. {
  18820. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18821. return $instance->whereDoesntHave($relation, $callback);
  18822. }
  18823. /**
  18824. * Add a relationship count / exists condition to the query with where clauses and an "or".
  18825. *
  18826. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18827. * @param \Closure|null $callback
  18828. * @return \Illuminate\Database\Eloquent\Builder|static
  18829. * @static
  18830. */ public static function orWhereDoesntHave($relation, $callback = null)
  18831. {
  18832. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18833. return $instance->orWhereDoesntHave($relation, $callback);
  18834. }
  18835. /**
  18836. * Add a polymorphic relationship count / exists condition to the query.
  18837. *
  18838. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18839. * @param string|array $types
  18840. * @param string $operator
  18841. * @param int $count
  18842. * @param string $boolean
  18843. * @param \Closure|null $callback
  18844. * @return \Illuminate\Database\Eloquent\Builder|static
  18845. * @static
  18846. */ public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18847. {
  18848. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18849. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  18850. }
  18851. /**
  18852. * Add a polymorphic relationship count / exists condition to the query with an "or".
  18853. *
  18854. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18855. * @param string|array $types
  18856. * @param string $operator
  18857. * @param int $count
  18858. * @return \Illuminate\Database\Eloquent\Builder|static
  18859. * @static
  18860. */ public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  18861. {
  18862. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18863. return $instance->orHasMorph($relation, $types, $operator, $count);
  18864. }
  18865. /**
  18866. * Add a polymorphic relationship count / exists condition to the query.
  18867. *
  18868. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18869. * @param string|array $types
  18870. * @param string $boolean
  18871. * @param \Closure|null $callback
  18872. * @return \Illuminate\Database\Eloquent\Builder|static
  18873. * @static
  18874. */ public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  18875. {
  18876. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18877. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  18878. }
  18879. /**
  18880. * Add a polymorphic relationship count / exists condition to the query with an "or".
  18881. *
  18882. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18883. * @param string|array $types
  18884. * @return \Illuminate\Database\Eloquent\Builder|static
  18885. * @static
  18886. */ public static function orDoesntHaveMorph($relation, $types)
  18887. {
  18888. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18889. return $instance->orDoesntHaveMorph($relation, $types);
  18890. }
  18891. /**
  18892. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  18893. *
  18894. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18895. * @param string|array $types
  18896. * @param \Closure|null $callback
  18897. * @param string $operator
  18898. * @param int $count
  18899. * @return \Illuminate\Database\Eloquent\Builder|static
  18900. * @static
  18901. */ public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  18902. {
  18903. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18904. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  18905. }
  18906. /**
  18907. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  18908. *
  18909. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18910. * @param string|array $types
  18911. * @param \Closure|null $callback
  18912. * @param string $operator
  18913. * @param int $count
  18914. * @return \Illuminate\Database\Eloquent\Builder|static
  18915. * @static
  18916. */ public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  18917. {
  18918. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18919. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  18920. }
  18921. /**
  18922. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  18923. *
  18924. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18925. * @param string|array $types
  18926. * @param \Closure|null $callback
  18927. * @return \Illuminate\Database\Eloquent\Builder|static
  18928. * @static
  18929. */ public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  18930. {
  18931. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18932. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  18933. }
  18934. /**
  18935. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  18936. *
  18937. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18938. * @param string|array $types
  18939. * @param \Closure|null $callback
  18940. * @return \Illuminate\Database\Eloquent\Builder|static
  18941. * @static
  18942. */ public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  18943. {
  18944. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18945. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  18946. }
  18947. /**
  18948. * Add a basic where clause to a relationship query.
  18949. *
  18950. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18951. * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  18952. * @param mixed $operator
  18953. * @param mixed $value
  18954. * @return \Illuminate\Database\Eloquent\Builder|static
  18955. * @static
  18956. */ public static function whereRelation($relation, $column, $operator = null, $value = null)
  18957. {
  18958. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18959. return $instance->whereRelation($relation, $column, $operator, $value);
  18960. }
  18961. /**
  18962. * Add an "or where" clause to a relationship query.
  18963. *
  18964. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18965. * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  18966. * @param mixed $operator
  18967. * @param mixed $value
  18968. * @return \Illuminate\Database\Eloquent\Builder|static
  18969. * @static
  18970. */ public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  18971. {
  18972. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18973. return $instance->orWhereRelation($relation, $column, $operator, $value);
  18974. }
  18975. /**
  18976. * Add a polymorphic relationship condition to the query with a where clause.
  18977. *
  18978. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18979. * @param string|array $types
  18980. * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  18981. * @param mixed $operator
  18982. * @param mixed $value
  18983. * @return \Illuminate\Database\Eloquent\Builder|static
  18984. * @static
  18985. */ public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  18986. {
  18987. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18988. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  18989. }
  18990. /**
  18991. * Add a polymorphic relationship condition to the query with an "or where" clause.
  18992. *
  18993. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18994. * @param string|array $types
  18995. * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  18996. * @param mixed $operator
  18997. * @param mixed $value
  18998. * @return \Illuminate\Database\Eloquent\Builder|static
  18999. * @static
  19000. */ public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  19001. {
  19002. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19003. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  19004. }
  19005. /**
  19006. * Add a morph-to relationship condition to the query.
  19007. *
  19008. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19009. * @param \Illuminate\Database\Eloquent\Model|string|null $model
  19010. * @return \Illuminate\Database\Eloquent\Builder|static
  19011. * @static
  19012. */ public static function whereMorphedTo($relation, $model, $boolean = 'and')
  19013. {
  19014. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19015. return $instance->whereMorphedTo($relation, $model, $boolean);
  19016. }
  19017. /**
  19018. * Add a not morph-to relationship condition to the query.
  19019. *
  19020. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19021. * @param \Illuminate\Database\Eloquent\Model|string $model
  19022. * @return \Illuminate\Database\Eloquent\Builder|static
  19023. * @static
  19024. */ public static function whereNotMorphedTo($relation, $model, $boolean = 'and')
  19025. {
  19026. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19027. return $instance->whereNotMorphedTo($relation, $model, $boolean);
  19028. }
  19029. /**
  19030. * Add a morph-to relationship condition to the query with an "or where" clause.
  19031. *
  19032. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19033. * @param \Illuminate\Database\Eloquent\Model|string|null $model
  19034. * @return \Illuminate\Database\Eloquent\Builder|static
  19035. * @static
  19036. */ public static function orWhereMorphedTo($relation, $model)
  19037. {
  19038. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19039. return $instance->orWhereMorphedTo($relation, $model);
  19040. }
  19041. /**
  19042. * Add a not morph-to relationship condition to the query with an "or where" clause.
  19043. *
  19044. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19045. * @param \Illuminate\Database\Eloquent\Model|string $model
  19046. * @return \Illuminate\Database\Eloquent\Builder|static
  19047. * @static
  19048. */ public static function orWhereNotMorphedTo($relation, $model)
  19049. {
  19050. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19051. return $instance->orWhereNotMorphedTo($relation, $model);
  19052. }
  19053. /**
  19054. * Add a "belongs to" relationship where clause to the query.
  19055. *
  19056. * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<int, \Illuminate\Database\Eloquent\Model> $related
  19057. * @param string|null $relationshipName
  19058. * @param string $boolean
  19059. * @return \Illuminate\Database\Eloquent\Builder|static
  19060. * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
  19061. * @static
  19062. */ public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  19063. {
  19064. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19065. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  19066. }
  19067. /**
  19068. * Add a "BelongsTo" relationship with an "or where" clause to the query.
  19069. *
  19070. * @param \Illuminate\Database\Eloquent\Model $related
  19071. * @param string|null $relationshipName
  19072. * @return \Illuminate\Database\Eloquent\Builder|static
  19073. * @throws \RuntimeException
  19074. * @static
  19075. */ public static function orWhereBelongsTo($related, $relationshipName = null)
  19076. {
  19077. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19078. return $instance->orWhereBelongsTo($related, $relationshipName);
  19079. }
  19080. /**
  19081. * Add subselect queries to include an aggregate value for a relationship.
  19082. *
  19083. * @param mixed $relations
  19084. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19085. * @param string $function
  19086. * @return \Illuminate\Database\Eloquent\Builder|static
  19087. * @static
  19088. */ public static function withAggregate($relations, $column, $function = null)
  19089. {
  19090. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19091. return $instance->withAggregate($relations, $column, $function);
  19092. }
  19093. /**
  19094. * Add subselect queries to count the relations.
  19095. *
  19096. * @param mixed $relations
  19097. * @return \Illuminate\Database\Eloquent\Builder|static
  19098. * @static
  19099. */ public static function withCount($relations)
  19100. {
  19101. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19102. return $instance->withCount($relations);
  19103. }
  19104. /**
  19105. * Add subselect queries to include the max of the relation's column.
  19106. *
  19107. * @param string|array $relation
  19108. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19109. * @return \Illuminate\Database\Eloquent\Builder|static
  19110. * @static
  19111. */ public static function withMax($relation, $column)
  19112. {
  19113. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19114. return $instance->withMax($relation, $column);
  19115. }
  19116. /**
  19117. * Add subselect queries to include the min of the relation's column.
  19118. *
  19119. * @param string|array $relation
  19120. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19121. * @return \Illuminate\Database\Eloquent\Builder|static
  19122. * @static
  19123. */ public static function withMin($relation, $column)
  19124. {
  19125. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19126. return $instance->withMin($relation, $column);
  19127. }
  19128. /**
  19129. * Add subselect queries to include the sum of the relation's column.
  19130. *
  19131. * @param string|array $relation
  19132. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19133. * @return \Illuminate\Database\Eloquent\Builder|static
  19134. * @static
  19135. */ public static function withSum($relation, $column)
  19136. {
  19137. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19138. return $instance->withSum($relation, $column);
  19139. }
  19140. /**
  19141. * Add subselect queries to include the average of the relation's column.
  19142. *
  19143. * @param string|array $relation
  19144. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19145. * @return \Illuminate\Database\Eloquent\Builder|static
  19146. * @static
  19147. */ public static function withAvg($relation, $column)
  19148. {
  19149. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19150. return $instance->withAvg($relation, $column);
  19151. }
  19152. /**
  19153. * Add subselect queries to include the existence of related models.
  19154. *
  19155. * @param string|array $relation
  19156. * @return \Illuminate\Database\Eloquent\Builder|static
  19157. * @static
  19158. */ public static function withExists($relation)
  19159. {
  19160. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19161. return $instance->withExists($relation);
  19162. }
  19163. /**
  19164. * Merge the where constraints from another query to the current query.
  19165. *
  19166. * @param \Illuminate\Database\Eloquent\Builder<*> $from
  19167. * @return \Illuminate\Database\Eloquent\Builder|static
  19168. * @static
  19169. */ public static function mergeConstraintsFrom($from)
  19170. {
  19171. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19172. return $instance->mergeConstraintsFrom($from);
  19173. }
  19174. /**
  19175. *
  19176. *
  19177. * @see \Slowlyo\Support\Macro::handle()
  19178. * @param mixed $column
  19179. * @param mixed $value
  19180. * @static
  19181. */ public static function findInSet($column, $value)
  19182. {
  19183. return \Illuminate\Database\Eloquent\Builder::findInSet($column, $value);
  19184. }
  19185. /**
  19186. *
  19187. *
  19188. * @see \Slowlyo\Support\Macro::handle()
  19189. * @static
  19190. */ public static function toRawSql()
  19191. {
  19192. return \Illuminate\Database\Eloquent\Builder::toRawSql();
  19193. }
  19194. /**
  19195. * Set the columns to be selected.
  19196. *
  19197. * @param array|mixed $columns
  19198. * @return \Illuminate\Database\Query\Builder
  19199. * @static
  19200. */ public static function select($columns = [])
  19201. {
  19202. /** @var \Illuminate\Database\Query\Builder $instance */
  19203. return $instance->select($columns);
  19204. }
  19205. /**
  19206. * Add a subselect expression to the query.
  19207. *
  19208. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19209. * @param string $as
  19210. * @return \Illuminate\Database\Query\Builder
  19211. * @throws \InvalidArgumentException
  19212. * @static
  19213. */ public static function selectSub($query, $as)
  19214. {
  19215. /** @var \Illuminate\Database\Query\Builder $instance */
  19216. return $instance->selectSub($query, $as);
  19217. }
  19218. /**
  19219. * Add a new "raw" select expression to the query.
  19220. *
  19221. * @param string $expression
  19222. * @param array $bindings
  19223. * @return \Illuminate\Database\Query\Builder
  19224. * @static
  19225. */ public static function selectRaw($expression, $bindings = [])
  19226. {
  19227. /** @var \Illuminate\Database\Query\Builder $instance */
  19228. return $instance->selectRaw($expression, $bindings);
  19229. }
  19230. /**
  19231. * Makes "from" fetch from a subquery.
  19232. *
  19233. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19234. * @param string $as
  19235. * @return \Illuminate\Database\Query\Builder
  19236. * @throws \InvalidArgumentException
  19237. * @static
  19238. */ public static function fromSub($query, $as)
  19239. {
  19240. /** @var \Illuminate\Database\Query\Builder $instance */
  19241. return $instance->fromSub($query, $as);
  19242. }
  19243. /**
  19244. * Add a raw from clause to the query.
  19245. *
  19246. * @param string $expression
  19247. * @param mixed $bindings
  19248. * @return \Illuminate\Database\Query\Builder
  19249. * @static
  19250. */ public static function fromRaw($expression, $bindings = [])
  19251. {
  19252. /** @var \Illuminate\Database\Query\Builder $instance */
  19253. return $instance->fromRaw($expression, $bindings);
  19254. }
  19255. /**
  19256. * Add a new select column to the query.
  19257. *
  19258. * @param array|mixed $column
  19259. * @return \Illuminate\Database\Query\Builder
  19260. * @static
  19261. */ public static function addSelect($column)
  19262. {
  19263. /** @var \Illuminate\Database\Query\Builder $instance */
  19264. return $instance->addSelect($column);
  19265. }
  19266. /**
  19267. * Force the query to only return distinct results.
  19268. *
  19269. * @return \Illuminate\Database\Query\Builder
  19270. * @static
  19271. */ public static function distinct()
  19272. {
  19273. /** @var \Illuminate\Database\Query\Builder $instance */
  19274. return $instance->distinct();
  19275. }
  19276. /**
  19277. * Set the table which the query is targeting.
  19278. *
  19279. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $table
  19280. * @param string|null $as
  19281. * @return \Illuminate\Database\Query\Builder
  19282. * @static
  19283. */ public static function from($table, $as = null)
  19284. {
  19285. /** @var \Illuminate\Database\Query\Builder $instance */
  19286. return $instance->from($table, $as);
  19287. }
  19288. /**
  19289. * Add an index hint to suggest a query index.
  19290. *
  19291. * @param string $index
  19292. * @return \Illuminate\Database\Query\Builder
  19293. * @static
  19294. */ public static function useIndex($index)
  19295. {
  19296. /** @var \Illuminate\Database\Query\Builder $instance */
  19297. return $instance->useIndex($index);
  19298. }
  19299. /**
  19300. * Add an index hint to force a query index.
  19301. *
  19302. * @param string $index
  19303. * @return \Illuminate\Database\Query\Builder
  19304. * @static
  19305. */ public static function forceIndex($index)
  19306. {
  19307. /** @var \Illuminate\Database\Query\Builder $instance */
  19308. return $instance->forceIndex($index);
  19309. }
  19310. /**
  19311. * Add an index hint to ignore a query index.
  19312. *
  19313. * @param string $index
  19314. * @return \Illuminate\Database\Query\Builder
  19315. * @static
  19316. */ public static function ignoreIndex($index)
  19317. {
  19318. /** @var \Illuminate\Database\Query\Builder $instance */
  19319. return $instance->ignoreIndex($index);
  19320. }
  19321. /**
  19322. * Add a join clause to the query.
  19323. *
  19324. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19325. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19326. * @param string|null $operator
  19327. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19328. * @param string $type
  19329. * @param bool $where
  19330. * @return \Illuminate\Database\Query\Builder
  19331. * @static
  19332. */ public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19333. {
  19334. /** @var \Illuminate\Database\Query\Builder $instance */
  19335. return $instance->join($table, $first, $operator, $second, $type, $where);
  19336. }
  19337. /**
  19338. * Add a "join where" clause to the query.
  19339. *
  19340. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19341. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19342. * @param string $operator
  19343. * @param \Illuminate\Contracts\Database\Query\Expression|string $second
  19344. * @param string $type
  19345. * @return \Illuminate\Database\Query\Builder
  19346. * @static
  19347. */ public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  19348. {
  19349. /** @var \Illuminate\Database\Query\Builder $instance */
  19350. return $instance->joinWhere($table, $first, $operator, $second, $type);
  19351. }
  19352. /**
  19353. * Add a subquery join clause to the query.
  19354. *
  19355. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19356. * @param string $as
  19357. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19358. * @param string|null $operator
  19359. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19360. * @param string $type
  19361. * @param bool $where
  19362. * @return \Illuminate\Database\Query\Builder
  19363. * @throws \InvalidArgumentException
  19364. * @static
  19365. */ public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19366. {
  19367. /** @var \Illuminate\Database\Query\Builder $instance */
  19368. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  19369. }
  19370. /**
  19371. * Add a lateral join clause to the query.
  19372. *
  19373. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19374. * @param string $as
  19375. * @param string $type
  19376. * @return \Illuminate\Database\Query\Builder
  19377. * @static
  19378. */ public static function joinLateral($query, $as, $type = 'inner')
  19379. {
  19380. /** @var \Illuminate\Database\Query\Builder $instance */
  19381. return $instance->joinLateral($query, $as, $type);
  19382. }
  19383. /**
  19384. * Add a lateral left join to the query.
  19385. *
  19386. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19387. * @param string $as
  19388. * @return \Illuminate\Database\Query\Builder
  19389. * @static
  19390. */ public static function leftJoinLateral($query, $as)
  19391. {
  19392. /** @var \Illuminate\Database\Query\Builder $instance */
  19393. return $instance->leftJoinLateral($query, $as);
  19394. }
  19395. /**
  19396. * Add a left join to the query.
  19397. *
  19398. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19399. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19400. * @param string|null $operator
  19401. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19402. * @return \Illuminate\Database\Query\Builder
  19403. * @static
  19404. */ public static function leftJoin($table, $first, $operator = null, $second = null)
  19405. {
  19406. /** @var \Illuminate\Database\Query\Builder $instance */
  19407. return $instance->leftJoin($table, $first, $operator, $second);
  19408. }
  19409. /**
  19410. * Add a "join where" clause to the query.
  19411. *
  19412. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19413. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19414. * @param string $operator
  19415. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19416. * @return \Illuminate\Database\Query\Builder
  19417. * @static
  19418. */ public static function leftJoinWhere($table, $first, $operator, $second)
  19419. {
  19420. /** @var \Illuminate\Database\Query\Builder $instance */
  19421. return $instance->leftJoinWhere($table, $first, $operator, $second);
  19422. }
  19423. /**
  19424. * Add a subquery left join to the query.
  19425. *
  19426. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19427. * @param string $as
  19428. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19429. * @param string|null $operator
  19430. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19431. * @return \Illuminate\Database\Query\Builder
  19432. * @static
  19433. */ public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  19434. {
  19435. /** @var \Illuminate\Database\Query\Builder $instance */
  19436. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  19437. }
  19438. /**
  19439. * Add a right join to the query.
  19440. *
  19441. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19442. * @param \Closure|string $first
  19443. * @param string|null $operator
  19444. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19445. * @return \Illuminate\Database\Query\Builder
  19446. * @static
  19447. */ public static function rightJoin($table, $first, $operator = null, $second = null)
  19448. {
  19449. /** @var \Illuminate\Database\Query\Builder $instance */
  19450. return $instance->rightJoin($table, $first, $operator, $second);
  19451. }
  19452. /**
  19453. * Add a "right join where" clause to the query.
  19454. *
  19455. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19456. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19457. * @param string $operator
  19458. * @param \Illuminate\Contracts\Database\Query\Expression|string $second
  19459. * @return \Illuminate\Database\Query\Builder
  19460. * @static
  19461. */ public static function rightJoinWhere($table, $first, $operator, $second)
  19462. {
  19463. /** @var \Illuminate\Database\Query\Builder $instance */
  19464. return $instance->rightJoinWhere($table, $first, $operator, $second);
  19465. }
  19466. /**
  19467. * Add a subquery right join to the query.
  19468. *
  19469. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19470. * @param string $as
  19471. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19472. * @param string|null $operator
  19473. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19474. * @return \Illuminate\Database\Query\Builder
  19475. * @static
  19476. */ public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  19477. {
  19478. /** @var \Illuminate\Database\Query\Builder $instance */
  19479. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  19480. }
  19481. /**
  19482. * Add a "cross join" clause to the query.
  19483. *
  19484. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19485. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string|null $first
  19486. * @param string|null $operator
  19487. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19488. * @return \Illuminate\Database\Query\Builder
  19489. * @static
  19490. */ public static function crossJoin($table, $first = null, $operator = null, $second = null)
  19491. {
  19492. /** @var \Illuminate\Database\Query\Builder $instance */
  19493. return $instance->crossJoin($table, $first, $operator, $second);
  19494. }
  19495. /**
  19496. * Add a subquery cross join to the query.
  19497. *
  19498. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19499. * @param string $as
  19500. * @return \Illuminate\Database\Query\Builder
  19501. * @static
  19502. */ public static function crossJoinSub($query, $as)
  19503. {
  19504. /** @var \Illuminate\Database\Query\Builder $instance */
  19505. return $instance->crossJoinSub($query, $as);
  19506. }
  19507. /**
  19508. * Merge an array of where clauses and bindings.
  19509. *
  19510. * @param array $wheres
  19511. * @param array $bindings
  19512. * @return \Illuminate\Database\Query\Builder
  19513. * @static
  19514. */ public static function mergeWheres($wheres, $bindings)
  19515. {
  19516. /** @var \Illuminate\Database\Query\Builder $instance */
  19517. return $instance->mergeWheres($wheres, $bindings);
  19518. }
  19519. /**
  19520. * Prepare the value and operator for a where clause.
  19521. *
  19522. * @param string $value
  19523. * @param string $operator
  19524. * @param bool $useDefault
  19525. * @return array
  19526. * @throws \InvalidArgumentException
  19527. * @static
  19528. */ public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  19529. {
  19530. /** @var \Illuminate\Database\Query\Builder $instance */
  19531. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  19532. }
  19533. /**
  19534. * Add a "where" clause comparing two columns to the query.
  19535. *
  19536. * @param \Illuminate\Contracts\Database\Query\Expression|string|array $first
  19537. * @param string|null $operator
  19538. * @param string|null $second
  19539. * @param string|null $boolean
  19540. * @return \Illuminate\Database\Query\Builder
  19541. * @static
  19542. */ public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  19543. {
  19544. /** @var \Illuminate\Database\Query\Builder $instance */
  19545. return $instance->whereColumn($first, $operator, $second, $boolean);
  19546. }
  19547. /**
  19548. * Add an "or where" clause comparing two columns to the query.
  19549. *
  19550. * @param \Illuminate\Contracts\Database\Query\Expression|string|array $first
  19551. * @param string|null $operator
  19552. * @param string|null $second
  19553. * @return \Illuminate\Database\Query\Builder
  19554. * @static
  19555. */ public static function orWhereColumn($first, $operator = null, $second = null)
  19556. {
  19557. /** @var \Illuminate\Database\Query\Builder $instance */
  19558. return $instance->orWhereColumn($first, $operator, $second);
  19559. }
  19560. /**
  19561. * Add a raw where clause to the query.
  19562. *
  19563. * @param string $sql
  19564. * @param mixed $bindings
  19565. * @param string $boolean
  19566. * @return \Illuminate\Database\Query\Builder
  19567. * @static
  19568. */ public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  19569. {
  19570. /** @var \Illuminate\Database\Query\Builder $instance */
  19571. return $instance->whereRaw($sql, $bindings, $boolean);
  19572. }
  19573. /**
  19574. * Add a raw or where clause to the query.
  19575. *
  19576. * @param string $sql
  19577. * @param mixed $bindings
  19578. * @return \Illuminate\Database\Query\Builder
  19579. * @static
  19580. */ public static function orWhereRaw($sql, $bindings = [])
  19581. {
  19582. /** @var \Illuminate\Database\Query\Builder $instance */
  19583. return $instance->orWhereRaw($sql, $bindings);
  19584. }
  19585. /**
  19586. * Add a "where like" clause to the query.
  19587. *
  19588. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19589. * @param string $value
  19590. * @param bool $caseSensitive
  19591. * @param string $boolean
  19592. * @param bool $not
  19593. * @return \Illuminate\Database\Query\Builder
  19594. * @static
  19595. */ public static function whereLike($column, $value, $caseSensitive = false, $boolean = 'and', $not = false)
  19596. {
  19597. /** @var \Illuminate\Database\Query\Builder $instance */
  19598. return $instance->whereLike($column, $value, $caseSensitive, $boolean, $not);
  19599. }
  19600. /**
  19601. * Add an "or where like" clause to the query.
  19602. *
  19603. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19604. * @param string $value
  19605. * @param bool $caseSensitive
  19606. * @return \Illuminate\Database\Query\Builder
  19607. * @static
  19608. */ public static function orWhereLike($column, $value, $caseSensitive = false)
  19609. {
  19610. /** @var \Illuminate\Database\Query\Builder $instance */
  19611. return $instance->orWhereLike($column, $value, $caseSensitive);
  19612. }
  19613. /**
  19614. * Add a "where not like" clause to the query.
  19615. *
  19616. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19617. * @param string $value
  19618. * @param bool $caseSensitive
  19619. * @param string $boolean
  19620. * @return \Illuminate\Database\Query\Builder
  19621. * @static
  19622. */ public static function whereNotLike($column, $value, $caseSensitive = false, $boolean = 'and')
  19623. {
  19624. /** @var \Illuminate\Database\Query\Builder $instance */
  19625. return $instance->whereNotLike($column, $value, $caseSensitive, $boolean);
  19626. }
  19627. /**
  19628. * Add an "or where not like" clause to the query.
  19629. *
  19630. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19631. * @param string $value
  19632. * @param bool $caseSensitive
  19633. * @return \Illuminate\Database\Query\Builder
  19634. * @static
  19635. */ public static function orWhereNotLike($column, $value, $caseSensitive = false)
  19636. {
  19637. /** @var \Illuminate\Database\Query\Builder $instance */
  19638. return $instance->orWhereNotLike($column, $value, $caseSensitive);
  19639. }
  19640. /**
  19641. * Add a "where in" clause to the query.
  19642. *
  19643. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19644. * @param mixed $values
  19645. * @param string $boolean
  19646. * @param bool $not
  19647. * @return \Illuminate\Database\Query\Builder
  19648. * @static
  19649. */ public static function whereIn($column, $values, $boolean = 'and', $not = false)
  19650. {
  19651. /** @var \Illuminate\Database\Query\Builder $instance */
  19652. return $instance->whereIn($column, $values, $boolean, $not);
  19653. }
  19654. /**
  19655. * Add an "or where in" clause to the query.
  19656. *
  19657. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19658. * @param mixed $values
  19659. * @return \Illuminate\Database\Query\Builder
  19660. * @static
  19661. */ public static function orWhereIn($column, $values)
  19662. {
  19663. /** @var \Illuminate\Database\Query\Builder $instance */
  19664. return $instance->orWhereIn($column, $values);
  19665. }
  19666. /**
  19667. * Add a "where not in" clause to the query.
  19668. *
  19669. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19670. * @param mixed $values
  19671. * @param string $boolean
  19672. * @return \Illuminate\Database\Query\Builder
  19673. * @static
  19674. */ public static function whereNotIn($column, $values, $boolean = 'and')
  19675. {
  19676. /** @var \Illuminate\Database\Query\Builder $instance */
  19677. return $instance->whereNotIn($column, $values, $boolean);
  19678. }
  19679. /**
  19680. * Add an "or where not in" clause to the query.
  19681. *
  19682. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19683. * @param mixed $values
  19684. * @return \Illuminate\Database\Query\Builder
  19685. * @static
  19686. */ public static function orWhereNotIn($column, $values)
  19687. {
  19688. /** @var \Illuminate\Database\Query\Builder $instance */
  19689. return $instance->orWhereNotIn($column, $values);
  19690. }
  19691. /**
  19692. * Add a "where in raw" clause for integer values to the query.
  19693. *
  19694. * @param string $column
  19695. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19696. * @param string $boolean
  19697. * @param bool $not
  19698. * @return \Illuminate\Database\Query\Builder
  19699. * @static
  19700. */ public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  19701. {
  19702. /** @var \Illuminate\Database\Query\Builder $instance */
  19703. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  19704. }
  19705. /**
  19706. * Add an "or where in raw" clause for integer values to the query.
  19707. *
  19708. * @param string $column
  19709. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19710. * @return \Illuminate\Database\Query\Builder
  19711. * @static
  19712. */ public static function orWhereIntegerInRaw($column, $values)
  19713. {
  19714. /** @var \Illuminate\Database\Query\Builder $instance */
  19715. return $instance->orWhereIntegerInRaw($column, $values);
  19716. }
  19717. /**
  19718. * Add a "where not in raw" clause for integer values to the query.
  19719. *
  19720. * @param string $column
  19721. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19722. * @param string $boolean
  19723. * @return \Illuminate\Database\Query\Builder
  19724. * @static
  19725. */ public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  19726. {
  19727. /** @var \Illuminate\Database\Query\Builder $instance */
  19728. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  19729. }
  19730. /**
  19731. * Add an "or where not in raw" clause for integer values to the query.
  19732. *
  19733. * @param string $column
  19734. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19735. * @return \Illuminate\Database\Query\Builder
  19736. * @static
  19737. */ public static function orWhereIntegerNotInRaw($column, $values)
  19738. {
  19739. /** @var \Illuminate\Database\Query\Builder $instance */
  19740. return $instance->orWhereIntegerNotInRaw($column, $values);
  19741. }
  19742. /**
  19743. * Add a "where null" clause to the query.
  19744. *
  19745. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $columns
  19746. * @param string $boolean
  19747. * @param bool $not
  19748. * @return \Illuminate\Database\Query\Builder
  19749. * @static
  19750. */ public static function whereNull($columns, $boolean = 'and', $not = false)
  19751. {
  19752. /** @var \Illuminate\Database\Query\Builder $instance */
  19753. return $instance->whereNull($columns, $boolean, $not);
  19754. }
  19755. /**
  19756. * Add an "or where null" clause to the query.
  19757. *
  19758. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $column
  19759. * @return \Illuminate\Database\Query\Builder
  19760. * @static
  19761. */ public static function orWhereNull($column)
  19762. {
  19763. /** @var \Illuminate\Database\Query\Builder $instance */
  19764. return $instance->orWhereNull($column);
  19765. }
  19766. /**
  19767. * Add a "where not null" clause to the query.
  19768. *
  19769. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $columns
  19770. * @param string $boolean
  19771. * @return \Illuminate\Database\Query\Builder
  19772. * @static
  19773. */ public static function whereNotNull($columns, $boolean = 'and')
  19774. {
  19775. /** @var \Illuminate\Database\Query\Builder $instance */
  19776. return $instance->whereNotNull($columns, $boolean);
  19777. }
  19778. /**
  19779. * Add a where between statement to the query.
  19780. *
  19781. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19782. * @param \Illuminate\Database\Query\iterable $values
  19783. * @param string $boolean
  19784. * @param bool $not
  19785. * @return \Illuminate\Database\Query\Builder
  19786. * @static
  19787. */ public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  19788. {
  19789. /** @var \Illuminate\Database\Query\Builder $instance */
  19790. return $instance->whereBetween($column, $values, $boolean, $not);
  19791. }
  19792. /**
  19793. * Add a where between statement using columns to the query.
  19794. *
  19795. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19796. * @param array $values
  19797. * @param string $boolean
  19798. * @param bool $not
  19799. * @return \Illuminate\Database\Query\Builder
  19800. * @static
  19801. */ public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  19802. {
  19803. /** @var \Illuminate\Database\Query\Builder $instance */
  19804. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  19805. }
  19806. /**
  19807. * Add an or where between statement to the query.
  19808. *
  19809. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19810. * @param \Illuminate\Database\Query\iterable $values
  19811. * @return \Illuminate\Database\Query\Builder
  19812. * @static
  19813. */ public static function orWhereBetween($column, $values)
  19814. {
  19815. /** @var \Illuminate\Database\Query\Builder $instance */
  19816. return $instance->orWhereBetween($column, $values);
  19817. }
  19818. /**
  19819. * Add an or where between statement using columns to the query.
  19820. *
  19821. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19822. * @param array $values
  19823. * @return \Illuminate\Database\Query\Builder
  19824. * @static
  19825. */ public static function orWhereBetweenColumns($column, $values)
  19826. {
  19827. /** @var \Illuminate\Database\Query\Builder $instance */
  19828. return $instance->orWhereBetweenColumns($column, $values);
  19829. }
  19830. /**
  19831. * Add a where not between statement to the query.
  19832. *
  19833. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19834. * @param \Illuminate\Database\Query\iterable $values
  19835. * @param string $boolean
  19836. * @return \Illuminate\Database\Query\Builder
  19837. * @static
  19838. */ public static function whereNotBetween($column, $values, $boolean = 'and')
  19839. {
  19840. /** @var \Illuminate\Database\Query\Builder $instance */
  19841. return $instance->whereNotBetween($column, $values, $boolean);
  19842. }
  19843. /**
  19844. * Add a where not between statement using columns to the query.
  19845. *
  19846. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19847. * @param array $values
  19848. * @param string $boolean
  19849. * @return \Illuminate\Database\Query\Builder
  19850. * @static
  19851. */ public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  19852. {
  19853. /** @var \Illuminate\Database\Query\Builder $instance */
  19854. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  19855. }
  19856. /**
  19857. * Add an or where not between statement to the query.
  19858. *
  19859. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19860. * @param \Illuminate\Database\Query\iterable $values
  19861. * @return \Illuminate\Database\Query\Builder
  19862. * @static
  19863. */ public static function orWhereNotBetween($column, $values)
  19864. {
  19865. /** @var \Illuminate\Database\Query\Builder $instance */
  19866. return $instance->orWhereNotBetween($column, $values);
  19867. }
  19868. /**
  19869. * Add an or where not between statement using columns to the query.
  19870. *
  19871. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19872. * @param array $values
  19873. * @return \Illuminate\Database\Query\Builder
  19874. * @static
  19875. */ public static function orWhereNotBetweenColumns($column, $values)
  19876. {
  19877. /** @var \Illuminate\Database\Query\Builder $instance */
  19878. return $instance->orWhereNotBetweenColumns($column, $values);
  19879. }
  19880. /**
  19881. * Add an "or where not null" clause to the query.
  19882. *
  19883. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19884. * @return \Illuminate\Database\Query\Builder
  19885. * @static
  19886. */ public static function orWhereNotNull($column)
  19887. {
  19888. /** @var \Illuminate\Database\Query\Builder $instance */
  19889. return $instance->orWhereNotNull($column);
  19890. }
  19891. /**
  19892. * Add a "where date" statement to the query.
  19893. *
  19894. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19895. * @param \DateTimeInterface|string|null $operator
  19896. * @param \DateTimeInterface|string|null $value
  19897. * @param string $boolean
  19898. * @return \Illuminate\Database\Query\Builder
  19899. * @static
  19900. */ public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  19901. {
  19902. /** @var \Illuminate\Database\Query\Builder $instance */
  19903. return $instance->whereDate($column, $operator, $value, $boolean);
  19904. }
  19905. /**
  19906. * Add an "or where date" statement to the query.
  19907. *
  19908. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19909. * @param \DateTimeInterface|string|null $operator
  19910. * @param \DateTimeInterface|string|null $value
  19911. * @return \Illuminate\Database\Query\Builder
  19912. * @static
  19913. */ public static function orWhereDate($column, $operator, $value = null)
  19914. {
  19915. /** @var \Illuminate\Database\Query\Builder $instance */
  19916. return $instance->orWhereDate($column, $operator, $value);
  19917. }
  19918. /**
  19919. * Add a "where time" statement to the query.
  19920. *
  19921. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19922. * @param \DateTimeInterface|string|null $operator
  19923. * @param \DateTimeInterface|string|null $value
  19924. * @param string $boolean
  19925. * @return \Illuminate\Database\Query\Builder
  19926. * @static
  19927. */ public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  19928. {
  19929. /** @var \Illuminate\Database\Query\Builder $instance */
  19930. return $instance->whereTime($column, $operator, $value, $boolean);
  19931. }
  19932. /**
  19933. * Add an "or where time" statement to the query.
  19934. *
  19935. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19936. * @param \DateTimeInterface|string|null $operator
  19937. * @param \DateTimeInterface|string|null $value
  19938. * @return \Illuminate\Database\Query\Builder
  19939. * @static
  19940. */ public static function orWhereTime($column, $operator, $value = null)
  19941. {
  19942. /** @var \Illuminate\Database\Query\Builder $instance */
  19943. return $instance->orWhereTime($column, $operator, $value);
  19944. }
  19945. /**
  19946. * Add a "where day" statement to the query.
  19947. *
  19948. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19949. * @param \DateTimeInterface|string|int|null $operator
  19950. * @param \DateTimeInterface|string|int|null $value
  19951. * @param string $boolean
  19952. * @return \Illuminate\Database\Query\Builder
  19953. * @static
  19954. */ public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  19955. {
  19956. /** @var \Illuminate\Database\Query\Builder $instance */
  19957. return $instance->whereDay($column, $operator, $value, $boolean);
  19958. }
  19959. /**
  19960. * Add an "or where day" statement to the query.
  19961. *
  19962. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19963. * @param \DateTimeInterface|string|int|null $operator
  19964. * @param \DateTimeInterface|string|int|null $value
  19965. * @return \Illuminate\Database\Query\Builder
  19966. * @static
  19967. */ public static function orWhereDay($column, $operator, $value = null)
  19968. {
  19969. /** @var \Illuminate\Database\Query\Builder $instance */
  19970. return $instance->orWhereDay($column, $operator, $value);
  19971. }
  19972. /**
  19973. * Add a "where month" statement to the query.
  19974. *
  19975. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19976. * @param \DateTimeInterface|string|int|null $operator
  19977. * @param \DateTimeInterface|string|int|null $value
  19978. * @param string $boolean
  19979. * @return \Illuminate\Database\Query\Builder
  19980. * @static
  19981. */ public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  19982. {
  19983. /** @var \Illuminate\Database\Query\Builder $instance */
  19984. return $instance->whereMonth($column, $operator, $value, $boolean);
  19985. }
  19986. /**
  19987. * Add an "or where month" statement to the query.
  19988. *
  19989. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19990. * @param \DateTimeInterface|string|int|null $operator
  19991. * @param \DateTimeInterface|string|int|null $value
  19992. * @return \Illuminate\Database\Query\Builder
  19993. * @static
  19994. */ public static function orWhereMonth($column, $operator, $value = null)
  19995. {
  19996. /** @var \Illuminate\Database\Query\Builder $instance */
  19997. return $instance->orWhereMonth($column, $operator, $value);
  19998. }
  19999. /**
  20000. * Add a "where year" statement to the query.
  20001. *
  20002. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20003. * @param \DateTimeInterface|string|int|null $operator
  20004. * @param \DateTimeInterface|string|int|null $value
  20005. * @param string $boolean
  20006. * @return \Illuminate\Database\Query\Builder
  20007. * @static
  20008. */ public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  20009. {
  20010. /** @var \Illuminate\Database\Query\Builder $instance */
  20011. return $instance->whereYear($column, $operator, $value, $boolean);
  20012. }
  20013. /**
  20014. * Add an "or where year" statement to the query.
  20015. *
  20016. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20017. * @param \DateTimeInterface|string|int|null $operator
  20018. * @param \DateTimeInterface|string|int|null $value
  20019. * @return \Illuminate\Database\Query\Builder
  20020. * @static
  20021. */ public static function orWhereYear($column, $operator, $value = null)
  20022. {
  20023. /** @var \Illuminate\Database\Query\Builder $instance */
  20024. return $instance->orWhereYear($column, $operator, $value);
  20025. }
  20026. /**
  20027. * Add a nested where statement to the query.
  20028. *
  20029. * @param \Closure $callback
  20030. * @param string $boolean
  20031. * @return \Illuminate\Database\Query\Builder
  20032. * @static
  20033. */ public static function whereNested($callback, $boolean = 'and')
  20034. {
  20035. /** @var \Illuminate\Database\Query\Builder $instance */
  20036. return $instance->whereNested($callback, $boolean);
  20037. }
  20038. /**
  20039. * Create a new query instance for nested where condition.
  20040. *
  20041. * @return \Illuminate\Database\Query\Builder
  20042. * @static
  20043. */ public static function forNestedWhere()
  20044. {
  20045. /** @var \Illuminate\Database\Query\Builder $instance */
  20046. return $instance->forNestedWhere();
  20047. }
  20048. /**
  20049. * Add another query builder as a nested where to the query builder.
  20050. *
  20051. * @param \Illuminate\Database\Query\Builder $query
  20052. * @param string $boolean
  20053. * @return \Illuminate\Database\Query\Builder
  20054. * @static
  20055. */ public static function addNestedWhereQuery($query, $boolean = 'and')
  20056. {
  20057. /** @var \Illuminate\Database\Query\Builder $instance */
  20058. return $instance->addNestedWhereQuery($query, $boolean);
  20059. }
  20060. /**
  20061. * Add an exists clause to the query.
  20062. *
  20063. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  20064. * @param string $boolean
  20065. * @param bool $not
  20066. * @return \Illuminate\Database\Query\Builder
  20067. * @static
  20068. */ public static function whereExists($callback, $boolean = 'and', $not = false)
  20069. {
  20070. /** @var \Illuminate\Database\Query\Builder $instance */
  20071. return $instance->whereExists($callback, $boolean, $not);
  20072. }
  20073. /**
  20074. * Add an or exists clause to the query.
  20075. *
  20076. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  20077. * @param bool $not
  20078. * @return \Illuminate\Database\Query\Builder
  20079. * @static
  20080. */ public static function orWhereExists($callback, $not = false)
  20081. {
  20082. /** @var \Illuminate\Database\Query\Builder $instance */
  20083. return $instance->orWhereExists($callback, $not);
  20084. }
  20085. /**
  20086. * Add a where not exists clause to the query.
  20087. *
  20088. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  20089. * @param string $boolean
  20090. * @return \Illuminate\Database\Query\Builder
  20091. * @static
  20092. */ public static function whereNotExists($callback, $boolean = 'and')
  20093. {
  20094. /** @var \Illuminate\Database\Query\Builder $instance */
  20095. return $instance->whereNotExists($callback, $boolean);
  20096. }
  20097. /**
  20098. * Add a where not exists clause to the query.
  20099. *
  20100. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  20101. * @return \Illuminate\Database\Query\Builder
  20102. * @static
  20103. */ public static function orWhereNotExists($callback)
  20104. {
  20105. /** @var \Illuminate\Database\Query\Builder $instance */
  20106. return $instance->orWhereNotExists($callback);
  20107. }
  20108. /**
  20109. * Add an exists clause to the query.
  20110. *
  20111. * @param \Illuminate\Database\Query\Builder $query
  20112. * @param string $boolean
  20113. * @param bool $not
  20114. * @return \Illuminate\Database\Query\Builder
  20115. * @static
  20116. */ public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  20117. {
  20118. /** @var \Illuminate\Database\Query\Builder $instance */
  20119. return $instance->addWhereExistsQuery($query, $boolean, $not);
  20120. }
  20121. /**
  20122. * Adds a where condition using row values.
  20123. *
  20124. * @param array $columns
  20125. * @param string $operator
  20126. * @param array $values
  20127. * @param string $boolean
  20128. * @return \Illuminate\Database\Query\Builder
  20129. * @throws \InvalidArgumentException
  20130. * @static
  20131. */ public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  20132. {
  20133. /** @var \Illuminate\Database\Query\Builder $instance */
  20134. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  20135. }
  20136. /**
  20137. * Adds an or where condition using row values.
  20138. *
  20139. * @param array $columns
  20140. * @param string $operator
  20141. * @param array $values
  20142. * @return \Illuminate\Database\Query\Builder
  20143. * @static
  20144. */ public static function orWhereRowValues($columns, $operator, $values)
  20145. {
  20146. /** @var \Illuminate\Database\Query\Builder $instance */
  20147. return $instance->orWhereRowValues($columns, $operator, $values);
  20148. }
  20149. /**
  20150. * Add a "where JSON contains" clause to the query.
  20151. *
  20152. * @param string $column
  20153. * @param mixed $value
  20154. * @param string $boolean
  20155. * @param bool $not
  20156. * @return \Illuminate\Database\Query\Builder
  20157. * @static
  20158. */ public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  20159. {
  20160. /** @var \Illuminate\Database\Query\Builder $instance */
  20161. return $instance->whereJsonContains($column, $value, $boolean, $not);
  20162. }
  20163. /**
  20164. * Add an "or where JSON contains" clause to the query.
  20165. *
  20166. * @param string $column
  20167. * @param mixed $value
  20168. * @return \Illuminate\Database\Query\Builder
  20169. * @static
  20170. */ public static function orWhereJsonContains($column, $value)
  20171. {
  20172. /** @var \Illuminate\Database\Query\Builder $instance */
  20173. return $instance->orWhereJsonContains($column, $value);
  20174. }
  20175. /**
  20176. * Add a "where JSON not contains" clause to the query.
  20177. *
  20178. * @param string $column
  20179. * @param mixed $value
  20180. * @param string $boolean
  20181. * @return \Illuminate\Database\Query\Builder
  20182. * @static
  20183. */ public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  20184. {
  20185. /** @var \Illuminate\Database\Query\Builder $instance */
  20186. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  20187. }
  20188. /**
  20189. * Add an "or where JSON not contains" clause to the query.
  20190. *
  20191. * @param string $column
  20192. * @param mixed $value
  20193. * @return \Illuminate\Database\Query\Builder
  20194. * @static
  20195. */ public static function orWhereJsonDoesntContain($column, $value)
  20196. {
  20197. /** @var \Illuminate\Database\Query\Builder $instance */
  20198. return $instance->orWhereJsonDoesntContain($column, $value);
  20199. }
  20200. /**
  20201. * Add a "where JSON overlaps" clause to the query.
  20202. *
  20203. * @param string $column
  20204. * @param mixed $value
  20205. * @param string $boolean
  20206. * @param bool $not
  20207. * @return \Illuminate\Database\Query\Builder
  20208. * @static
  20209. */ public static function whereJsonOverlaps($column, $value, $boolean = 'and', $not = false)
  20210. {
  20211. /** @var \Illuminate\Database\Query\Builder $instance */
  20212. return $instance->whereJsonOverlaps($column, $value, $boolean, $not);
  20213. }
  20214. /**
  20215. * Add an "or where JSON overlaps" clause to the query.
  20216. *
  20217. * @param string $column
  20218. * @param mixed $value
  20219. * @return \Illuminate\Database\Query\Builder
  20220. * @static
  20221. */ public static function orWhereJsonOverlaps($column, $value)
  20222. {
  20223. /** @var \Illuminate\Database\Query\Builder $instance */
  20224. return $instance->orWhereJsonOverlaps($column, $value);
  20225. }
  20226. /**
  20227. * Add a "where JSON not overlap" clause to the query.
  20228. *
  20229. * @param string $column
  20230. * @param mixed $value
  20231. * @param string $boolean
  20232. * @return \Illuminate\Database\Query\Builder
  20233. * @static
  20234. */ public static function whereJsonDoesntOverlap($column, $value, $boolean = 'and')
  20235. {
  20236. /** @var \Illuminate\Database\Query\Builder $instance */
  20237. return $instance->whereJsonDoesntOverlap($column, $value, $boolean);
  20238. }
  20239. /**
  20240. * Add an "or where JSON not overlap" clause to the query.
  20241. *
  20242. * @param string $column
  20243. * @param mixed $value
  20244. * @return \Illuminate\Database\Query\Builder
  20245. * @static
  20246. */ public static function orWhereJsonDoesntOverlap($column, $value)
  20247. {
  20248. /** @var \Illuminate\Database\Query\Builder $instance */
  20249. return $instance->orWhereJsonDoesntOverlap($column, $value);
  20250. }
  20251. /**
  20252. * Add a clause that determines if a JSON path exists to the query.
  20253. *
  20254. * @param string $column
  20255. * @param string $boolean
  20256. * @param bool $not
  20257. * @return \Illuminate\Database\Query\Builder
  20258. * @static
  20259. */ public static function whereJsonContainsKey($column, $boolean = 'and', $not = false)
  20260. {
  20261. /** @var \Illuminate\Database\Query\Builder $instance */
  20262. return $instance->whereJsonContainsKey($column, $boolean, $not);
  20263. }
  20264. /**
  20265. * Add an "or" clause that determines if a JSON path exists to the query.
  20266. *
  20267. * @param string $column
  20268. * @return \Illuminate\Database\Query\Builder
  20269. * @static
  20270. */ public static function orWhereJsonContainsKey($column)
  20271. {
  20272. /** @var \Illuminate\Database\Query\Builder $instance */
  20273. return $instance->orWhereJsonContainsKey($column);
  20274. }
  20275. /**
  20276. * Add a clause that determines if a JSON path does not exist to the query.
  20277. *
  20278. * @param string $column
  20279. * @param string $boolean
  20280. * @return \Illuminate\Database\Query\Builder
  20281. * @static
  20282. */ public static function whereJsonDoesntContainKey($column, $boolean = 'and')
  20283. {
  20284. /** @var \Illuminate\Database\Query\Builder $instance */
  20285. return $instance->whereJsonDoesntContainKey($column, $boolean);
  20286. }
  20287. /**
  20288. * Add an "or" clause that determines if a JSON path does not exist to the query.
  20289. *
  20290. * @param string $column
  20291. * @return \Illuminate\Database\Query\Builder
  20292. * @static
  20293. */ public static function orWhereJsonDoesntContainKey($column)
  20294. {
  20295. /** @var \Illuminate\Database\Query\Builder $instance */
  20296. return $instance->orWhereJsonDoesntContainKey($column);
  20297. }
  20298. /**
  20299. * Add a "where JSON length" clause to the query.
  20300. *
  20301. * @param string $column
  20302. * @param mixed $operator
  20303. * @param mixed $value
  20304. * @param string $boolean
  20305. * @return \Illuminate\Database\Query\Builder
  20306. * @static
  20307. */ public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  20308. {
  20309. /** @var \Illuminate\Database\Query\Builder $instance */
  20310. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  20311. }
  20312. /**
  20313. * Add an "or where JSON length" clause to the query.
  20314. *
  20315. * @param string $column
  20316. * @param mixed $operator
  20317. * @param mixed $value
  20318. * @return \Illuminate\Database\Query\Builder
  20319. * @static
  20320. */ public static function orWhereJsonLength($column, $operator, $value = null)
  20321. {
  20322. /** @var \Illuminate\Database\Query\Builder $instance */
  20323. return $instance->orWhereJsonLength($column, $operator, $value);
  20324. }
  20325. /**
  20326. * Handles dynamic "where" clauses to the query.
  20327. *
  20328. * @param string $method
  20329. * @param array $parameters
  20330. * @return \Illuminate\Database\Query\Builder
  20331. * @static
  20332. */ public static function dynamicWhere($method, $parameters)
  20333. {
  20334. /** @var \Illuminate\Database\Query\Builder $instance */
  20335. return $instance->dynamicWhere($method, $parameters);
  20336. }
  20337. /**
  20338. * Add a "where fulltext" clause to the query.
  20339. *
  20340. * @param string|string[] $columns
  20341. * @param string $value
  20342. * @param string $boolean
  20343. * @return \Illuminate\Database\Query\Builder
  20344. * @static
  20345. */ public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  20346. {
  20347. /** @var \Illuminate\Database\Query\Builder $instance */
  20348. return $instance->whereFullText($columns, $value, $options, $boolean);
  20349. }
  20350. /**
  20351. * Add a "or where fulltext" clause to the query.
  20352. *
  20353. * @param string|string[] $columns
  20354. * @param string $value
  20355. * @return \Illuminate\Database\Query\Builder
  20356. * @static
  20357. */ public static function orWhereFullText($columns, $value, $options = [])
  20358. {
  20359. /** @var \Illuminate\Database\Query\Builder $instance */
  20360. return $instance->orWhereFullText($columns, $value, $options);
  20361. }
  20362. /**
  20363. * Add a "where" clause to the query for multiple columns with "and" conditions between them.
  20364. *
  20365. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20366. * @param mixed $operator
  20367. * @param mixed $value
  20368. * @param string $boolean
  20369. * @return \Illuminate\Database\Query\Builder
  20370. * @static
  20371. */ public static function whereAll($columns, $operator = null, $value = null, $boolean = 'and')
  20372. {
  20373. /** @var \Illuminate\Database\Query\Builder $instance */
  20374. return $instance->whereAll($columns, $operator, $value, $boolean);
  20375. }
  20376. /**
  20377. * Add an "or where" clause to the query for multiple columns with "and" conditions between them.
  20378. *
  20379. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20380. * @param mixed $operator
  20381. * @param mixed $value
  20382. * @return \Illuminate\Database\Query\Builder
  20383. * @static
  20384. */ public static function orWhereAll($columns, $operator = null, $value = null)
  20385. {
  20386. /** @var \Illuminate\Database\Query\Builder $instance */
  20387. return $instance->orWhereAll($columns, $operator, $value);
  20388. }
  20389. /**
  20390. * Add a "where" clause to the query for multiple columns with "or" conditions between them.
  20391. *
  20392. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20393. * @param mixed $operator
  20394. * @param mixed $value
  20395. * @param string $boolean
  20396. * @return \Illuminate\Database\Query\Builder
  20397. * @static
  20398. */ public static function whereAny($columns, $operator = null, $value = null, $boolean = 'and')
  20399. {
  20400. /** @var \Illuminate\Database\Query\Builder $instance */
  20401. return $instance->whereAny($columns, $operator, $value, $boolean);
  20402. }
  20403. /**
  20404. * Add an "or where" clause to the query for multiple columns with "or" conditions between them.
  20405. *
  20406. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20407. * @param mixed $operator
  20408. * @param mixed $value
  20409. * @return \Illuminate\Database\Query\Builder
  20410. * @static
  20411. */ public static function orWhereAny($columns, $operator = null, $value = null)
  20412. {
  20413. /** @var \Illuminate\Database\Query\Builder $instance */
  20414. return $instance->orWhereAny($columns, $operator, $value);
  20415. }
  20416. /**
  20417. * Add a "where not" clause to the query for multiple columns where none of the conditions should be true.
  20418. *
  20419. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20420. * @param mixed $operator
  20421. * @param mixed $value
  20422. * @param string $boolean
  20423. * @return \Illuminate\Database\Query\Builder
  20424. * @static
  20425. */ public static function whereNone($columns, $operator = null, $value = null, $boolean = 'and')
  20426. {
  20427. /** @var \Illuminate\Database\Query\Builder $instance */
  20428. return $instance->whereNone($columns, $operator, $value, $boolean);
  20429. }
  20430. /**
  20431. * Add an "or where not" clause to the query for multiple columns where none of the conditions should be true.
  20432. *
  20433. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20434. * @param mixed $operator
  20435. * @param mixed $value
  20436. * @return \Illuminate\Database\Query\Builder
  20437. * @static
  20438. */ public static function orWhereNone($columns, $operator = null, $value = null)
  20439. {
  20440. /** @var \Illuminate\Database\Query\Builder $instance */
  20441. return $instance->orWhereNone($columns, $operator, $value);
  20442. }
  20443. /**
  20444. * Add a "group by" clause to the query.
  20445. *
  20446. * @param array|\Illuminate\Contracts\Database\Query\Expression|string $groups
  20447. * @return \Illuminate\Database\Query\Builder
  20448. * @static
  20449. */ public static function groupBy(...$groups)
  20450. {
  20451. /** @var \Illuminate\Database\Query\Builder $instance */
  20452. return $instance->groupBy(...$groups);
  20453. }
  20454. /**
  20455. * Add a raw groupBy clause to the query.
  20456. *
  20457. * @param string $sql
  20458. * @param array $bindings
  20459. * @return \Illuminate\Database\Query\Builder
  20460. * @static
  20461. */ public static function groupByRaw($sql, $bindings = [])
  20462. {
  20463. /** @var \Illuminate\Database\Query\Builder $instance */
  20464. return $instance->groupByRaw($sql, $bindings);
  20465. }
  20466. /**
  20467. * Add a "having" clause to the query.
  20468. *
  20469. * @param \Illuminate\Contracts\Database\Query\Expression|\Closure|string $column
  20470. * @param string|int|float|null $operator
  20471. * @param string|int|float|null $value
  20472. * @param string $boolean
  20473. * @return \Illuminate\Database\Query\Builder
  20474. * @static
  20475. */ public static function having($column, $operator = null, $value = null, $boolean = 'and')
  20476. {
  20477. /** @var \Illuminate\Database\Query\Builder $instance */
  20478. return $instance->having($column, $operator, $value, $boolean);
  20479. }
  20480. /**
  20481. * Add an "or having" clause to the query.
  20482. *
  20483. * @param \Illuminate\Contracts\Database\Query\Expression|\Closure|string $column
  20484. * @param string|int|float|null $operator
  20485. * @param string|int|float|null $value
  20486. * @return \Illuminate\Database\Query\Builder
  20487. * @static
  20488. */ public static function orHaving($column, $operator = null, $value = null)
  20489. {
  20490. /** @var \Illuminate\Database\Query\Builder $instance */
  20491. return $instance->orHaving($column, $operator, $value);
  20492. }
  20493. /**
  20494. * Add a nested having statement to the query.
  20495. *
  20496. * @param \Closure $callback
  20497. * @param string $boolean
  20498. * @return \Illuminate\Database\Query\Builder
  20499. * @static
  20500. */ public static function havingNested($callback, $boolean = 'and')
  20501. {
  20502. /** @var \Illuminate\Database\Query\Builder $instance */
  20503. return $instance->havingNested($callback, $boolean);
  20504. }
  20505. /**
  20506. * Add another query builder as a nested having to the query builder.
  20507. *
  20508. * @param \Illuminate\Database\Query\Builder $query
  20509. * @param string $boolean
  20510. * @return \Illuminate\Database\Query\Builder
  20511. * @static
  20512. */ public static function addNestedHavingQuery($query, $boolean = 'and')
  20513. {
  20514. /** @var \Illuminate\Database\Query\Builder $instance */
  20515. return $instance->addNestedHavingQuery($query, $boolean);
  20516. }
  20517. /**
  20518. * Add a "having null" clause to the query.
  20519. *
  20520. * @param string|array $columns
  20521. * @param string $boolean
  20522. * @param bool $not
  20523. * @return \Illuminate\Database\Query\Builder
  20524. * @static
  20525. */ public static function havingNull($columns, $boolean = 'and', $not = false)
  20526. {
  20527. /** @var \Illuminate\Database\Query\Builder $instance */
  20528. return $instance->havingNull($columns, $boolean, $not);
  20529. }
  20530. /**
  20531. * Add an "or having null" clause to the query.
  20532. *
  20533. * @param string $column
  20534. * @return \Illuminate\Database\Query\Builder
  20535. * @static
  20536. */ public static function orHavingNull($column)
  20537. {
  20538. /** @var \Illuminate\Database\Query\Builder $instance */
  20539. return $instance->orHavingNull($column);
  20540. }
  20541. /**
  20542. * Add a "having not null" clause to the query.
  20543. *
  20544. * @param string|array $columns
  20545. * @param string $boolean
  20546. * @return \Illuminate\Database\Query\Builder
  20547. * @static
  20548. */ public static function havingNotNull($columns, $boolean = 'and')
  20549. {
  20550. /** @var \Illuminate\Database\Query\Builder $instance */
  20551. return $instance->havingNotNull($columns, $boolean);
  20552. }
  20553. /**
  20554. * Add an "or having not null" clause to the query.
  20555. *
  20556. * @param string $column
  20557. * @return \Illuminate\Database\Query\Builder
  20558. * @static
  20559. */ public static function orHavingNotNull($column)
  20560. {
  20561. /** @var \Illuminate\Database\Query\Builder $instance */
  20562. return $instance->orHavingNotNull($column);
  20563. }
  20564. /**
  20565. * Add a "having between " clause to the query.
  20566. *
  20567. * @param string $column
  20568. * @param \Illuminate\Database\Query\iterable $values
  20569. * @param string $boolean
  20570. * @param bool $not
  20571. * @return \Illuminate\Database\Query\Builder
  20572. * @static
  20573. */ public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  20574. {
  20575. /** @var \Illuminate\Database\Query\Builder $instance */
  20576. return $instance->havingBetween($column, $values, $boolean, $not);
  20577. }
  20578. /**
  20579. * Add a raw having clause to the query.
  20580. *
  20581. * @param string $sql
  20582. * @param array $bindings
  20583. * @param string $boolean
  20584. * @return \Illuminate\Database\Query\Builder
  20585. * @static
  20586. */ public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  20587. {
  20588. /** @var \Illuminate\Database\Query\Builder $instance */
  20589. return $instance->havingRaw($sql, $bindings, $boolean);
  20590. }
  20591. /**
  20592. * Add a raw or having clause to the query.
  20593. *
  20594. * @param string $sql
  20595. * @param array $bindings
  20596. * @return \Illuminate\Database\Query\Builder
  20597. * @static
  20598. */ public static function orHavingRaw($sql, $bindings = [])
  20599. {
  20600. /** @var \Illuminate\Database\Query\Builder $instance */
  20601. return $instance->orHavingRaw($sql, $bindings);
  20602. }
  20603. /**
  20604. * Add an "order by" clause to the query.
  20605. *
  20606. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $column
  20607. * @param string $direction
  20608. * @return \Illuminate\Database\Query\Builder
  20609. * @throws \InvalidArgumentException
  20610. * @static
  20611. */ public static function orderBy($column, $direction = 'asc')
  20612. {
  20613. /** @var \Illuminate\Database\Query\Builder $instance */
  20614. return $instance->orderBy($column, $direction);
  20615. }
  20616. /**
  20617. * Add a descending "order by" clause to the query.
  20618. *
  20619. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $column
  20620. * @return \Illuminate\Database\Query\Builder
  20621. * @static
  20622. */ public static function orderByDesc($column)
  20623. {
  20624. /** @var \Illuminate\Database\Query\Builder $instance */
  20625. return $instance->orderByDesc($column);
  20626. }
  20627. /**
  20628. * Put the query's results in random order.
  20629. *
  20630. * @param string|int $seed
  20631. * @return \Illuminate\Database\Query\Builder
  20632. * @static
  20633. */ public static function inRandomOrder($seed = '')
  20634. {
  20635. /** @var \Illuminate\Database\Query\Builder $instance */
  20636. return $instance->inRandomOrder($seed);
  20637. }
  20638. /**
  20639. * Add a raw "order by" clause to the query.
  20640. *
  20641. * @param string $sql
  20642. * @param array $bindings
  20643. * @return \Illuminate\Database\Query\Builder
  20644. * @static
  20645. */ public static function orderByRaw($sql, $bindings = [])
  20646. {
  20647. /** @var \Illuminate\Database\Query\Builder $instance */
  20648. return $instance->orderByRaw($sql, $bindings);
  20649. }
  20650. /**
  20651. * Alias to set the "offset" value of the query.
  20652. *
  20653. * @param int $value
  20654. * @return \Illuminate\Database\Query\Builder
  20655. * @static
  20656. */ public static function skip($value)
  20657. {
  20658. /** @var \Illuminate\Database\Query\Builder $instance */
  20659. return $instance->skip($value);
  20660. }
  20661. /**
  20662. * Set the "offset" value of the query.
  20663. *
  20664. * @param int $value
  20665. * @return \Illuminate\Database\Query\Builder
  20666. * @static
  20667. */ public static function offset($value)
  20668. {
  20669. /** @var \Illuminate\Database\Query\Builder $instance */
  20670. return $instance->offset($value);
  20671. }
  20672. /**
  20673. * Alias to set the "limit" value of the query.
  20674. *
  20675. * @param int $value
  20676. * @return \Illuminate\Database\Query\Builder
  20677. * @static
  20678. */ public static function take($value)
  20679. {
  20680. /** @var \Illuminate\Database\Query\Builder $instance */
  20681. return $instance->take($value);
  20682. }
  20683. /**
  20684. * Set the "limit" value of the query.
  20685. *
  20686. * @param int $value
  20687. * @return \Illuminate\Database\Query\Builder
  20688. * @static
  20689. */ public static function limit($value)
  20690. {
  20691. /** @var \Illuminate\Database\Query\Builder $instance */
  20692. return $instance->limit($value);
  20693. }
  20694. /**
  20695. * Add a "group limit" clause to the query.
  20696. *
  20697. * @param int $value
  20698. * @param string $column
  20699. * @return \Illuminate\Database\Query\Builder
  20700. * @static
  20701. */ public static function groupLimit($value, $column)
  20702. {
  20703. /** @var \Illuminate\Database\Query\Builder $instance */
  20704. return $instance->groupLimit($value, $column);
  20705. }
  20706. /**
  20707. * Set the limit and offset for a given page.
  20708. *
  20709. * @param int $page
  20710. * @param int $perPage
  20711. * @return \Illuminate\Database\Query\Builder
  20712. * @static
  20713. */ public static function forPage($page, $perPage = 15)
  20714. {
  20715. /** @var \Illuminate\Database\Query\Builder $instance */
  20716. return $instance->forPage($page, $perPage);
  20717. }
  20718. /**
  20719. * Constrain the query to the previous "page" of results before a given ID.
  20720. *
  20721. * @param int $perPage
  20722. * @param int|null $lastId
  20723. * @param string $column
  20724. * @return \Illuminate\Database\Query\Builder
  20725. * @static
  20726. */ public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  20727. {
  20728. /** @var \Illuminate\Database\Query\Builder $instance */
  20729. return $instance->forPageBeforeId($perPage, $lastId, $column);
  20730. }
  20731. /**
  20732. * Constrain the query to the next "page" of results after a given ID.
  20733. *
  20734. * @param int $perPage
  20735. * @param int|null $lastId
  20736. * @param string $column
  20737. * @return \Illuminate\Database\Query\Builder
  20738. * @static
  20739. */ public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  20740. {
  20741. /** @var \Illuminate\Database\Query\Builder $instance */
  20742. return $instance->forPageAfterId($perPage, $lastId, $column);
  20743. }
  20744. /**
  20745. * Remove all existing orders and optionally add a new order.
  20746. *
  20747. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|string|null $column
  20748. * @param string $direction
  20749. * @return \Illuminate\Database\Query\Builder
  20750. * @static
  20751. */ public static function reorder($column = null, $direction = 'asc')
  20752. {
  20753. /** @var \Illuminate\Database\Query\Builder $instance */
  20754. return $instance->reorder($column, $direction);
  20755. }
  20756. /**
  20757. * Add a union statement to the query.
  20758. *
  20759. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $query
  20760. * @param bool $all
  20761. * @return \Illuminate\Database\Query\Builder
  20762. * @static
  20763. */ public static function union($query, $all = false)
  20764. {
  20765. /** @var \Illuminate\Database\Query\Builder $instance */
  20766. return $instance->union($query, $all);
  20767. }
  20768. /**
  20769. * Add a union all statement to the query.
  20770. *
  20771. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $query
  20772. * @return \Illuminate\Database\Query\Builder
  20773. * @static
  20774. */ public static function unionAll($query)
  20775. {
  20776. /** @var \Illuminate\Database\Query\Builder $instance */
  20777. return $instance->unionAll($query);
  20778. }
  20779. /**
  20780. * Lock the selected rows in the table.
  20781. *
  20782. * @param string|bool $value
  20783. * @return \Illuminate\Database\Query\Builder
  20784. * @static
  20785. */ public static function lock($value = true)
  20786. {
  20787. /** @var \Illuminate\Database\Query\Builder $instance */
  20788. return $instance->lock($value);
  20789. }
  20790. /**
  20791. * Lock the selected rows in the table for updating.
  20792. *
  20793. * @return \Illuminate\Database\Query\Builder
  20794. * @static
  20795. */ public static function lockForUpdate()
  20796. {
  20797. /** @var \Illuminate\Database\Query\Builder $instance */
  20798. return $instance->lockForUpdate();
  20799. }
  20800. /**
  20801. * Share lock the selected rows in the table.
  20802. *
  20803. * @return \Illuminate\Database\Query\Builder
  20804. * @static
  20805. */ public static function sharedLock()
  20806. {
  20807. /** @var \Illuminate\Database\Query\Builder $instance */
  20808. return $instance->sharedLock();
  20809. }
  20810. /**
  20811. * Register a closure to be invoked before the query is executed.
  20812. *
  20813. * @param callable $callback
  20814. * @return \Illuminate\Database\Query\Builder
  20815. * @static
  20816. */ public static function beforeQuery($callback)
  20817. {
  20818. /** @var \Illuminate\Database\Query\Builder $instance */
  20819. return $instance->beforeQuery($callback);
  20820. }
  20821. /**
  20822. * Invoke the "before query" modification callbacks.
  20823. *
  20824. * @return void
  20825. * @static
  20826. */ public static function applyBeforeQueryCallbacks()
  20827. {
  20828. /** @var \Illuminate\Database\Query\Builder $instance */
  20829. $instance->applyBeforeQueryCallbacks();
  20830. }
  20831. /**
  20832. * Get the SQL representation of the query.
  20833. *
  20834. * @return string
  20835. * @static
  20836. */ public static function toSql()
  20837. {
  20838. /** @var \Illuminate\Database\Query\Builder $instance */
  20839. return $instance->toSql();
  20840. }
  20841. /**
  20842. * Get a single expression value from the first result of a query.
  20843. *
  20844. * @param string $expression
  20845. * @param array $bindings
  20846. * @return mixed
  20847. * @static
  20848. */ public static function rawValue($expression, $bindings = [])
  20849. {
  20850. /** @var \Illuminate\Database\Query\Builder $instance */
  20851. return $instance->rawValue($expression, $bindings);
  20852. }
  20853. /**
  20854. * Get the count of the total records for the paginator.
  20855. *
  20856. * @param array $columns
  20857. * @return int
  20858. * @static
  20859. */ public static function getCountForPagination($columns = [])
  20860. {
  20861. /** @var \Illuminate\Database\Query\Builder $instance */
  20862. return $instance->getCountForPagination($columns);
  20863. }
  20864. /**
  20865. * Concatenate values of a given column as a string.
  20866. *
  20867. * @param string $column
  20868. * @param string $glue
  20869. * @return string
  20870. * @static
  20871. */ public static function implode($column, $glue = '')
  20872. {
  20873. /** @var \Illuminate\Database\Query\Builder $instance */
  20874. return $instance->implode($column, $glue);
  20875. }
  20876. /**
  20877. * Determine if any rows exist for the current query.
  20878. *
  20879. * @return bool
  20880. * @static
  20881. */ public static function exists()
  20882. {
  20883. /** @var \Illuminate\Database\Query\Builder $instance */
  20884. return $instance->exists();
  20885. }
  20886. /**
  20887. * Determine if no rows exist for the current query.
  20888. *
  20889. * @return bool
  20890. * @static
  20891. */ public static function doesntExist()
  20892. {
  20893. /** @var \Illuminate\Database\Query\Builder $instance */
  20894. return $instance->doesntExist();
  20895. }
  20896. /**
  20897. * Execute the given callback if no rows exist for the current query.
  20898. *
  20899. * @param \Closure $callback
  20900. * @return mixed
  20901. * @static
  20902. */ public static function existsOr($callback)
  20903. {
  20904. /** @var \Illuminate\Database\Query\Builder $instance */
  20905. return $instance->existsOr($callback);
  20906. }
  20907. /**
  20908. * Execute the given callback if rows exist for the current query.
  20909. *
  20910. * @param \Closure $callback
  20911. * @return mixed
  20912. * @static
  20913. */ public static function doesntExistOr($callback)
  20914. {
  20915. /** @var \Illuminate\Database\Query\Builder $instance */
  20916. return $instance->doesntExistOr($callback);
  20917. }
  20918. /**
  20919. * Retrieve the "count" result of the query.
  20920. *
  20921. * @param \Illuminate\Contracts\Database\Query\Expression|string $columns
  20922. * @return int
  20923. * @static
  20924. */ public static function count($columns = '*')
  20925. {
  20926. /** @var \Illuminate\Database\Query\Builder $instance */
  20927. return $instance->count($columns);
  20928. }
  20929. /**
  20930. * Retrieve the minimum value of a given column.
  20931. *
  20932. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20933. * @return mixed
  20934. * @static
  20935. */ public static function min($column)
  20936. {
  20937. /** @var \Illuminate\Database\Query\Builder $instance */
  20938. return $instance->min($column);
  20939. }
  20940. /**
  20941. * Retrieve the maximum value of a given column.
  20942. *
  20943. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20944. * @return mixed
  20945. * @static
  20946. */ public static function max($column)
  20947. {
  20948. /** @var \Illuminate\Database\Query\Builder $instance */
  20949. return $instance->max($column);
  20950. }
  20951. /**
  20952. * Retrieve the sum of the values of a given column.
  20953. *
  20954. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20955. * @return mixed
  20956. * @static
  20957. */ public static function sum($column)
  20958. {
  20959. /** @var \Illuminate\Database\Query\Builder $instance */
  20960. return $instance->sum($column);
  20961. }
  20962. /**
  20963. * Retrieve the average of the values of a given column.
  20964. *
  20965. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20966. * @return mixed
  20967. * @static
  20968. */ public static function avg($column)
  20969. {
  20970. /** @var \Illuminate\Database\Query\Builder $instance */
  20971. return $instance->avg($column);
  20972. }
  20973. /**
  20974. * Alias for the "avg" method.
  20975. *
  20976. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20977. * @return mixed
  20978. * @static
  20979. */ public static function average($column)
  20980. {
  20981. /** @var \Illuminate\Database\Query\Builder $instance */
  20982. return $instance->average($column);
  20983. }
  20984. /**
  20985. * Execute an aggregate function on the database.
  20986. *
  20987. * @param string $function
  20988. * @param array $columns
  20989. * @return mixed
  20990. * @static
  20991. */ public static function aggregate($function, $columns = [])
  20992. {
  20993. /** @var \Illuminate\Database\Query\Builder $instance */
  20994. return $instance->aggregate($function, $columns);
  20995. }
  20996. /**
  20997. * Execute a numeric aggregate function on the database.
  20998. *
  20999. * @param string $function
  21000. * @param array $columns
  21001. * @return float|int
  21002. * @static
  21003. */ public static function numericAggregate($function, $columns = [])
  21004. {
  21005. /** @var \Illuminate\Database\Query\Builder $instance */
  21006. return $instance->numericAggregate($function, $columns);
  21007. }
  21008. /**
  21009. * Insert new records into the database.
  21010. *
  21011. * @param array $values
  21012. * @return bool
  21013. * @static
  21014. */ public static function insert($values)
  21015. {
  21016. /** @var \Illuminate\Database\Query\Builder $instance */
  21017. return $instance->insert($values);
  21018. }
  21019. /**
  21020. * Insert new records into the database while ignoring errors.
  21021. *
  21022. * @param array $values
  21023. * @return int
  21024. * @static
  21025. */ public static function insertOrIgnore($values)
  21026. {
  21027. /** @var \Illuminate\Database\Query\Builder $instance */
  21028. return $instance->insertOrIgnore($values);
  21029. }
  21030. /**
  21031. * Insert a new record and get the value of the primary key.
  21032. *
  21033. * @param array $values
  21034. * @param string|null $sequence
  21035. * @return int
  21036. * @static
  21037. */ public static function insertGetId($values, $sequence = null)
  21038. {
  21039. /** @var \Illuminate\Database\Query\Builder $instance */
  21040. return $instance->insertGetId($values, $sequence);
  21041. }
  21042. /**
  21043. * Insert new records into the table using a subquery.
  21044. *
  21045. * @param array $columns
  21046. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  21047. * @return int
  21048. * @static
  21049. */ public static function insertUsing($columns, $query)
  21050. {
  21051. /** @var \Illuminate\Database\Query\Builder $instance */
  21052. return $instance->insertUsing($columns, $query);
  21053. }
  21054. /**
  21055. * Insert new records into the table using a subquery while ignoring errors.
  21056. *
  21057. * @param array $columns
  21058. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  21059. * @return int
  21060. * @static
  21061. */ public static function insertOrIgnoreUsing($columns, $query)
  21062. {
  21063. /** @var \Illuminate\Database\Query\Builder $instance */
  21064. return $instance->insertOrIgnoreUsing($columns, $query);
  21065. }
  21066. /**
  21067. * Update records in a PostgreSQL database using the update from syntax.
  21068. *
  21069. * @param array $values
  21070. * @return int
  21071. * @static
  21072. */ public static function updateFrom($values)
  21073. {
  21074. /** @var \Illuminate\Database\Query\Builder $instance */
  21075. return $instance->updateFrom($values);
  21076. }
  21077. /**
  21078. * Insert or update a record matching the attributes, and fill it with values.
  21079. *
  21080. * @param array $attributes
  21081. * @param array|callable $values
  21082. * @return bool
  21083. * @static
  21084. */ public static function updateOrInsert($attributes, $values = [])
  21085. {
  21086. /** @var \Illuminate\Database\Query\Builder $instance */
  21087. return $instance->updateOrInsert($attributes, $values);
  21088. }
  21089. /**
  21090. * Increment the given column's values by the given amounts.
  21091. *
  21092. * @param array<string, float|int|numeric-string> $columns
  21093. * @param array<string, mixed> $extra
  21094. * @return int
  21095. * @throws \InvalidArgumentException
  21096. * @static
  21097. */ public static function incrementEach($columns, $extra = [])
  21098. {
  21099. /** @var \Illuminate\Database\Query\Builder $instance */
  21100. return $instance->incrementEach($columns, $extra);
  21101. }
  21102. /**
  21103. * Decrement the given column's values by the given amounts.
  21104. *
  21105. * @param array<string, float|int|numeric-string> $columns
  21106. * @param array<string, mixed> $extra
  21107. * @return int
  21108. * @throws \InvalidArgumentException
  21109. * @static
  21110. */ public static function decrementEach($columns, $extra = [])
  21111. {
  21112. /** @var \Illuminate\Database\Query\Builder $instance */
  21113. return $instance->decrementEach($columns, $extra);
  21114. }
  21115. /**
  21116. * Run a truncate statement on the table.
  21117. *
  21118. * @return void
  21119. * @static
  21120. */ public static function truncate()
  21121. {
  21122. /** @var \Illuminate\Database\Query\Builder $instance */
  21123. $instance->truncate();
  21124. }
  21125. /**
  21126. * Get all of the query builder's columns in a text-only array with all expressions evaluated.
  21127. *
  21128. * @return array
  21129. * @static
  21130. */ public static function getColumns()
  21131. {
  21132. /** @var \Illuminate\Database\Query\Builder $instance */
  21133. return $instance->getColumns();
  21134. }
  21135. /**
  21136. * Create a raw database expression.
  21137. *
  21138. * @param mixed $value
  21139. * @return \Illuminate\Contracts\Database\Query\Expression
  21140. * @static
  21141. */ public static function raw($value)
  21142. {
  21143. /** @var \Illuminate\Database\Query\Builder $instance */
  21144. return $instance->raw($value);
  21145. }
  21146. /**
  21147. * Get the current query value bindings in a flattened array.
  21148. *
  21149. * @return array
  21150. * @static
  21151. */ public static function getBindings()
  21152. {
  21153. /** @var \Illuminate\Database\Query\Builder $instance */
  21154. return $instance->getBindings();
  21155. }
  21156. /**
  21157. * Get the raw array of bindings.
  21158. *
  21159. * @return array
  21160. * @static
  21161. */ public static function getRawBindings()
  21162. {
  21163. /** @var \Illuminate\Database\Query\Builder $instance */
  21164. return $instance->getRawBindings();
  21165. }
  21166. /**
  21167. * Set the bindings on the query builder.
  21168. *
  21169. * @param array $bindings
  21170. * @param string $type
  21171. * @return \Illuminate\Database\Query\Builder
  21172. * @throws \InvalidArgumentException
  21173. * @static
  21174. */ public static function setBindings($bindings, $type = 'where')
  21175. {
  21176. /** @var \Illuminate\Database\Query\Builder $instance */
  21177. return $instance->setBindings($bindings, $type);
  21178. }
  21179. /**
  21180. * Add a binding to the query.
  21181. *
  21182. * @param mixed $value
  21183. * @param string $type
  21184. * @return \Illuminate\Database\Query\Builder
  21185. * @throws \InvalidArgumentException
  21186. * @static
  21187. */ public static function addBinding($value, $type = 'where')
  21188. {
  21189. /** @var \Illuminate\Database\Query\Builder $instance */
  21190. return $instance->addBinding($value, $type);
  21191. }
  21192. /**
  21193. * Cast the given binding value.
  21194. *
  21195. * @param mixed $value
  21196. * @return mixed
  21197. * @static
  21198. */ public static function castBinding($value)
  21199. {
  21200. /** @var \Illuminate\Database\Query\Builder $instance */
  21201. return $instance->castBinding($value);
  21202. }
  21203. /**
  21204. * Merge an array of bindings into our bindings.
  21205. *
  21206. * @param \Illuminate\Database\Query\Builder $query
  21207. * @return \Illuminate\Database\Query\Builder
  21208. * @static
  21209. */ public static function mergeBindings($query)
  21210. {
  21211. /** @var \Illuminate\Database\Query\Builder $instance */
  21212. return $instance->mergeBindings($query);
  21213. }
  21214. /**
  21215. * Remove all of the expressions from a list of bindings.
  21216. *
  21217. * @param array $bindings
  21218. * @return array
  21219. * @static
  21220. */ public static function cleanBindings($bindings)
  21221. {
  21222. /** @var \Illuminate\Database\Query\Builder $instance */
  21223. return $instance->cleanBindings($bindings);
  21224. }
  21225. /**
  21226. * Get the database query processor instance.
  21227. *
  21228. * @return \Illuminate\Database\Query\Processors\Processor
  21229. * @static
  21230. */ public static function getProcessor()
  21231. {
  21232. /** @var \Illuminate\Database\Query\Builder $instance */
  21233. return $instance->getProcessor();
  21234. }
  21235. /**
  21236. * Get the query grammar instance.
  21237. *
  21238. * @return \Illuminate\Database\Query\Grammars\Grammar
  21239. * @static
  21240. */ public static function getGrammar()
  21241. {
  21242. /** @var \Illuminate\Database\Query\Builder $instance */
  21243. return $instance->getGrammar();
  21244. }
  21245. /**
  21246. * Use the "write" PDO connection when executing the query.
  21247. *
  21248. * @return \Illuminate\Database\Query\Builder
  21249. * @static
  21250. */ public static function useWritePdo()
  21251. {
  21252. /** @var \Illuminate\Database\Query\Builder $instance */
  21253. return $instance->useWritePdo();
  21254. }
  21255. /**
  21256. * Clone the query without the given properties.
  21257. *
  21258. * @param array $properties
  21259. * @return static
  21260. * @static
  21261. */ public static function cloneWithout($properties)
  21262. {
  21263. /** @var \Illuminate\Database\Query\Builder $instance */
  21264. return $instance->cloneWithout($properties);
  21265. }
  21266. /**
  21267. * Clone the query without the given bindings.
  21268. *
  21269. * @param array $except
  21270. * @return static
  21271. * @static
  21272. */ public static function cloneWithoutBindings($except)
  21273. {
  21274. /** @var \Illuminate\Database\Query\Builder $instance */
  21275. return $instance->cloneWithoutBindings($except);
  21276. }
  21277. /**
  21278. * Dump the current SQL and bindings.
  21279. *
  21280. * @param mixed $args
  21281. * @return \Illuminate\Database\Query\Builder
  21282. * @static
  21283. */ public static function dump(...$args)
  21284. {
  21285. /** @var \Illuminate\Database\Query\Builder $instance */
  21286. return $instance->dump(...$args);
  21287. }
  21288. /**
  21289. * Dump the raw current SQL with embedded bindings.
  21290. *
  21291. * @return \Illuminate\Database\Query\Builder
  21292. * @static
  21293. */ public static function dumpRawSql()
  21294. {
  21295. /** @var \Illuminate\Database\Query\Builder $instance */
  21296. return $instance->dumpRawSql();
  21297. }
  21298. /**
  21299. * Die and dump the current SQL and bindings.
  21300. *
  21301. * @return \Illuminate\Database\Query\never
  21302. * @static
  21303. */ public static function dd()
  21304. {
  21305. /** @var \Illuminate\Database\Query\Builder $instance */
  21306. return $instance->dd();
  21307. }
  21308. /**
  21309. * Die and dump the current SQL with embedded bindings.
  21310. *
  21311. * @return \Illuminate\Database\Query\never
  21312. * @static
  21313. */ public static function ddRawSql()
  21314. {
  21315. /** @var \Illuminate\Database\Query\Builder $instance */
  21316. return $instance->ddRawSql();
  21317. }
  21318. /**
  21319. * Explains the query.
  21320. *
  21321. * @return \Illuminate\Support\Collection
  21322. * @static
  21323. */ public static function explain()
  21324. {
  21325. /** @var \Illuminate\Database\Query\Builder $instance */
  21326. return $instance->explain();
  21327. }
  21328. /**
  21329. * Register a custom macro.
  21330. *
  21331. * @param string $name
  21332. * @param object|callable $macro
  21333. * @param-closure-this static $macro
  21334. * @return void
  21335. * @static
  21336. */ public static function macro($name, $macro)
  21337. {
  21338. \Illuminate\Database\Query\Builder::macro($name, $macro);
  21339. }
  21340. /**
  21341. * Mix another object into the class.
  21342. *
  21343. * @param object $mixin
  21344. * @param bool $replace
  21345. * @return void
  21346. * @throws \ReflectionException
  21347. * @static
  21348. */ public static function mixin($mixin, $replace = true)
  21349. {
  21350. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  21351. }
  21352. /**
  21353. * Flush the existing macros.
  21354. *
  21355. * @return void
  21356. * @static
  21357. */ public static function flushMacros()
  21358. {
  21359. \Illuminate\Database\Query\Builder::flushMacros();
  21360. }
  21361. /**
  21362. * Dynamically handle calls to the class.
  21363. *
  21364. * @param string $method
  21365. * @param array $parameters
  21366. * @return mixed
  21367. * @throws \BadMethodCallException
  21368. * @static
  21369. */ public static function macroCall($method, $parameters)
  21370. {
  21371. /** @var \Illuminate\Database\Query\Builder $instance */
  21372. return $instance->macroCall($method, $parameters);
  21373. }
  21374. }
  21375. class Event extends \Illuminate\Support\Facades\Event {}
  21376. class File extends \Illuminate\Support\Facades\File {}
  21377. class Gate extends \Illuminate\Support\Facades\Gate {}
  21378. class Hash extends \Illuminate\Support\Facades\Hash {}
  21379. class Http extends \Illuminate\Support\Facades\Http {}
  21380. class Js extends \Illuminate\Support\Js {}
  21381. class Lang extends \Illuminate\Support\Facades\Lang {}
  21382. class Log extends \Illuminate\Support\Facades\Log {}
  21383. class Mail extends \Illuminate\Support\Facades\Mail {}
  21384. class Notification extends \Illuminate\Support\Facades\Notification {}
  21385. class Password extends \Illuminate\Support\Facades\Password {}
  21386. class Process extends \Illuminate\Support\Facades\Process {}
  21387. class QrCode extends \SimpleSoftwareIO\QrCode\Facades\QrCode {}
  21388. class Queue extends \Illuminate\Support\Facades\Queue {}
  21389. class RateLimiter extends \Illuminate\Support\Facades\RateLimiter {}
  21390. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  21391. class Request extends \Illuminate\Support\Facades\Request {}
  21392. class Response extends \Illuminate\Support\Facades\Response {}
  21393. class Route extends \Illuminate\Support\Facades\Route {}
  21394. class Schema extends \Illuminate\Support\Facades\Schema {}
  21395. class Session extends \Illuminate\Support\Facades\Session {}
  21396. class Storage extends \Illuminate\Support\Facades\Storage {}
  21397. class Str extends \Illuminate\Support\Str {}
  21398. class URL extends \Illuminate\Support\Facades\URL {}
  21399. class Validator extends \Illuminate\Support\Facades\Validator {}
  21400. class View extends \Illuminate\Support\Facades\View {}
  21401. }