_ide_helper.php 870 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427
  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\LocalFilesystemAdapter
  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\LocalFilesystemAdapter
  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\LocalFilesystemAdapter
  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\LocalFilesystemAdapter
  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\LocalFilesystemAdapter
  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\LocalFilesystemAdapter
  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\LocalFilesystemAdapter
  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. * Determine if temporary URLs can be generated.
  15168. *
  15169. * @return bool
  15170. * @static
  15171. */ public static function providesTemporaryUrls()
  15172. {
  15173. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15174. return $instance->providesTemporaryUrls();
  15175. }
  15176. /**
  15177. * Get a temporary URL for the file at the given path.
  15178. *
  15179. * @param string $path
  15180. * @param \DateTimeInterface $expiration
  15181. * @param array $options
  15182. * @return string
  15183. * @static
  15184. */ public static function temporaryUrl($path, $expiration, $options = [])
  15185. {
  15186. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15187. return $instance->temporaryUrl($path, $expiration, $options);
  15188. }
  15189. /**
  15190. * Specify the name of the disk the adapter is managing.
  15191. *
  15192. * @param string $disk
  15193. * @return \Illuminate\Filesystem\LocalFilesystemAdapter
  15194. * @static
  15195. */ public static function diskName($disk)
  15196. {
  15197. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15198. return $instance->diskName($disk);
  15199. }
  15200. /**
  15201. * Indiate that signed URLs should serve the corresponding files.
  15202. *
  15203. * @param bool $serve
  15204. * @param \Closure|null $urlGeneratorResolver
  15205. * @return \Illuminate\Filesystem\LocalFilesystemAdapter
  15206. * @static
  15207. */ public static function shouldServeSignedUrls($serve = true, $urlGeneratorResolver = null)
  15208. {
  15209. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15210. return $instance->shouldServeSignedUrls($serve, $urlGeneratorResolver);
  15211. }
  15212. /**
  15213. * Assert that the given file or directory exists.
  15214. *
  15215. * @param string|array $path
  15216. * @param string|null $content
  15217. * @return \Illuminate\Filesystem\LocalFilesystemAdapter
  15218. * @static
  15219. */ public static function assertExists($path, $content = null)
  15220. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15221. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15222. return $instance->assertExists($path, $content);
  15223. }
  15224. /**
  15225. * Assert that the given file or directory does not exist.
  15226. *
  15227. * @param string|array $path
  15228. * @return \Illuminate\Filesystem\LocalFilesystemAdapter
  15229. * @static
  15230. */ public static function assertMissing($path)
  15231. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15232. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15233. return $instance->assertMissing($path);
  15234. }
  15235. /**
  15236. * Assert that the given directory is empty.
  15237. *
  15238. * @param string $path
  15239. * @return \Illuminate\Filesystem\LocalFilesystemAdapter
  15240. * @static
  15241. */ public static function assertDirectoryEmpty($path)
  15242. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15243. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15244. return $instance->assertDirectoryEmpty($path);
  15245. }
  15246. /**
  15247. * Determine if a file or directory exists.
  15248. *
  15249. * @param string $path
  15250. * @return bool
  15251. * @static
  15252. */ public static function exists($path)
  15253. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15254. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15255. return $instance->exists($path);
  15256. }
  15257. /**
  15258. * Determine if a file or directory is missing.
  15259. *
  15260. * @param string $path
  15261. * @return bool
  15262. * @static
  15263. */ public static function missing($path)
  15264. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15265. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15266. return $instance->missing($path);
  15267. }
  15268. /**
  15269. * Determine if a file exists.
  15270. *
  15271. * @param string $path
  15272. * @return bool
  15273. * @static
  15274. */ public static function fileExists($path)
  15275. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15276. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15277. return $instance->fileExists($path);
  15278. }
  15279. /**
  15280. * Determine if a file is missing.
  15281. *
  15282. * @param string $path
  15283. * @return bool
  15284. * @static
  15285. */ public static function fileMissing($path)
  15286. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15287. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15288. return $instance->fileMissing($path);
  15289. }
  15290. /**
  15291. * Determine if a directory exists.
  15292. *
  15293. * @param string $path
  15294. * @return bool
  15295. * @static
  15296. */ public static function directoryExists($path)
  15297. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15298. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15299. return $instance->directoryExists($path);
  15300. }
  15301. /**
  15302. * Determine if a directory is missing.
  15303. *
  15304. * @param string $path
  15305. * @return bool
  15306. * @static
  15307. */ public static function directoryMissing($path)
  15308. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15309. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15310. return $instance->directoryMissing($path);
  15311. }
  15312. /**
  15313. * Get the full path to the file that exists at the given relative path.
  15314. *
  15315. * @param string $path
  15316. * @return string
  15317. * @static
  15318. */ public static function path($path)
  15319. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15320. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15321. return $instance->path($path);
  15322. }
  15323. /**
  15324. * Get the contents of a file.
  15325. *
  15326. * @param string $path
  15327. * @return string|null
  15328. * @static
  15329. */ public static function get($path)
  15330. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15331. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15332. return $instance->get($path);
  15333. }
  15334. /**
  15335. * Get the contents of a file as decoded JSON.
  15336. *
  15337. * @param string $path
  15338. * @param int $flags
  15339. * @return array|null
  15340. * @static
  15341. */ public static function json($path, $flags = 0)
  15342. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15343. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15344. return $instance->json($path, $flags);
  15345. }
  15346. /**
  15347. * Create a streamed response for a given file.
  15348. *
  15349. * @param string $path
  15350. * @param string|null $name
  15351. * @param array $headers
  15352. * @param string|null $disposition
  15353. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15354. * @static
  15355. */ public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  15356. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15357. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15358. return $instance->response($path, $name, $headers, $disposition);
  15359. }
  15360. /**
  15361. * Create a streamed download response for a given file.
  15362. *
  15363. * @param \Illuminate\Http\Request $request
  15364. * @param string $path
  15365. * @param string|null $name
  15366. * @param array $headers
  15367. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15368. * @static
  15369. */ public static function serve($request, $path, $name = null, $headers = [])
  15370. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15371. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15372. return $instance->serve($request, $path, $name, $headers);
  15373. }
  15374. /**
  15375. * Create a streamed download response for a given file.
  15376. *
  15377. * @param string $path
  15378. * @param string|null $name
  15379. * @param array $headers
  15380. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  15381. * @static
  15382. */ public static function download($path, $name = null, $headers = [])
  15383. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15384. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15385. return $instance->download($path, $name, $headers);
  15386. }
  15387. /**
  15388. * Write the contents of a file.
  15389. *
  15390. * @param string $path
  15391. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  15392. * @param mixed $options
  15393. * @return string|bool
  15394. * @static
  15395. */ public static function put($path, $contents, $options = [])
  15396. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15397. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15398. return $instance->put($path, $contents, $options);
  15399. }
  15400. /**
  15401. * Store the uploaded file on the disk.
  15402. *
  15403. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path
  15404. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file
  15405. * @param mixed $options
  15406. * @return string|false
  15407. * @static
  15408. */ public static function putFile($path, $file = null, $options = [])
  15409. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15410. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15411. return $instance->putFile($path, $file, $options);
  15412. }
  15413. /**
  15414. * Store the uploaded file on the disk with a given name.
  15415. *
  15416. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $path
  15417. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|array|null $file
  15418. * @param string|array|null $name
  15419. * @param mixed $options
  15420. * @return string|false
  15421. * @static
  15422. */ public static function putFileAs($path, $file, $name = null, $options = [])
  15423. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15424. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15425. return $instance->putFileAs($path, $file, $name, $options);
  15426. }
  15427. /**
  15428. * Get the visibility for the given path.
  15429. *
  15430. * @param string $path
  15431. * @return string
  15432. * @static
  15433. */ public static function getVisibility($path)
  15434. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15435. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15436. return $instance->getVisibility($path);
  15437. }
  15438. /**
  15439. * Set the visibility for the given path.
  15440. *
  15441. * @param string $path
  15442. * @param string $visibility
  15443. * @return bool
  15444. * @static
  15445. */ public static function setVisibility($path, $visibility)
  15446. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15447. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15448. return $instance->setVisibility($path, $visibility);
  15449. }
  15450. /**
  15451. * Prepend to a file.
  15452. *
  15453. * @param string $path
  15454. * @param string $data
  15455. * @param string $separator
  15456. * @return bool
  15457. * @static
  15458. */ public static function prepend($path, $data, $separator = '
  15459. ')
  15460. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15461. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15462. return $instance->prepend($path, $data, $separator);
  15463. }
  15464. /**
  15465. * Append to a file.
  15466. *
  15467. * @param string $path
  15468. * @param string $data
  15469. * @param string $separator
  15470. * @return bool
  15471. * @static
  15472. */ public static function append($path, $data, $separator = '
  15473. ')
  15474. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15475. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15476. return $instance->append($path, $data, $separator);
  15477. }
  15478. /**
  15479. * Delete the file at a given path.
  15480. *
  15481. * @param string|array $paths
  15482. * @return bool
  15483. * @static
  15484. */ public static function delete($paths)
  15485. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15486. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15487. return $instance->delete($paths);
  15488. }
  15489. /**
  15490. * Copy a file to a new location.
  15491. *
  15492. * @param string $from
  15493. * @param string $to
  15494. * @return bool
  15495. * @static
  15496. */ public static function copy($from, $to)
  15497. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15498. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15499. return $instance->copy($from, $to);
  15500. }
  15501. /**
  15502. * Move a file to a new location.
  15503. *
  15504. * @param string $from
  15505. * @param string $to
  15506. * @return bool
  15507. * @static
  15508. */ public static function move($from, $to)
  15509. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15510. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15511. return $instance->move($from, $to);
  15512. }
  15513. /**
  15514. * Get the file size of a given file.
  15515. *
  15516. * @param string $path
  15517. * @return int
  15518. * @static
  15519. */ public static function size($path)
  15520. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15521. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15522. return $instance->size($path);
  15523. }
  15524. /**
  15525. * Get the checksum for a file.
  15526. *
  15527. * @return string|false
  15528. * @throws UnableToProvideChecksum
  15529. * @static
  15530. */ public static function checksum($path, $options = [])
  15531. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15532. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15533. return $instance->checksum($path, $options);
  15534. }
  15535. /**
  15536. * Get the mime-type of a given file.
  15537. *
  15538. * @param string $path
  15539. * @return string|false
  15540. * @static
  15541. */ public static function mimeType($path)
  15542. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15543. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15544. return $instance->mimeType($path);
  15545. }
  15546. /**
  15547. * Get the file's last modification time.
  15548. *
  15549. * @param string $path
  15550. * @return int
  15551. * @static
  15552. */ public static function lastModified($path)
  15553. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15554. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15555. return $instance->lastModified($path);
  15556. }
  15557. /**
  15558. * Get a resource to read the file.
  15559. *
  15560. * @param string $path
  15561. * @return resource|null The path resource or null on failure.
  15562. * @static
  15563. */ public static function readStream($path)
  15564. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15565. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15566. return $instance->readStream($path);
  15567. }
  15568. /**
  15569. * Write a new file using a stream.
  15570. *
  15571. * @param string $path
  15572. * @param resource $resource
  15573. * @param array $options
  15574. * @return bool
  15575. * @static
  15576. */ public static function writeStream($path, $resource, $options = [])
  15577. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15578. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15579. return $instance->writeStream($path, $resource, $options);
  15580. }
  15581. /**
  15582. * Get the URL for the file at the given path.
  15583. *
  15584. * @param string $path
  15585. * @return string
  15586. * @throws \RuntimeException
  15587. * @static
  15588. */ public static function url($path)
  15589. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15590. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15591. return $instance->url($path);
  15592. }
  15593. /**
  15594. * Get a temporary upload URL for the file at the given path.
  15595. *
  15596. * @param string $path
  15597. * @param \DateTimeInterface $expiration
  15598. * @param array $options
  15599. * @return array
  15600. * @throws \RuntimeException
  15601. * @static
  15602. */ public static function temporaryUploadUrl($path, $expiration, $options = [])
  15603. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15604. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15605. return $instance->temporaryUploadUrl($path, $expiration, $options);
  15606. }
  15607. /**
  15608. * Get an array of all files in a directory.
  15609. *
  15610. * @param string|null $directory
  15611. * @param bool $recursive
  15612. * @return array
  15613. * @static
  15614. */ public static function files($directory = null, $recursive = false)
  15615. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15616. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15617. return $instance->files($directory, $recursive);
  15618. }
  15619. /**
  15620. * Get all of the files from the given directory (recursive).
  15621. *
  15622. * @param string|null $directory
  15623. * @return array
  15624. * @static
  15625. */ public static function allFiles($directory = null)
  15626. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15627. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15628. return $instance->allFiles($directory);
  15629. }
  15630. /**
  15631. * Get all of the directories within a given directory.
  15632. *
  15633. * @param string|null $directory
  15634. * @param bool $recursive
  15635. * @return array
  15636. * @static
  15637. */ public static function directories($directory = null, $recursive = false)
  15638. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15639. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15640. return $instance->directories($directory, $recursive);
  15641. }
  15642. /**
  15643. * Get all the directories within a given directory (recursive).
  15644. *
  15645. * @param string|null $directory
  15646. * @return array
  15647. * @static
  15648. */ public static function allDirectories($directory = null)
  15649. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15650. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15651. return $instance->allDirectories($directory);
  15652. }
  15653. /**
  15654. * Create a directory.
  15655. *
  15656. * @param string $path
  15657. * @return bool
  15658. * @static
  15659. */ public static function makeDirectory($path)
  15660. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15661. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15662. return $instance->makeDirectory($path);
  15663. }
  15664. /**
  15665. * Recursively delete a directory.
  15666. *
  15667. * @param string $directory
  15668. * @return bool
  15669. * @static
  15670. */ public static function deleteDirectory($directory)
  15671. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15672. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15673. return $instance->deleteDirectory($directory);
  15674. }
  15675. /**
  15676. * Get the Flysystem driver.
  15677. *
  15678. * @return \League\Flysystem\FilesystemOperator
  15679. * @static
  15680. */ public static function getDriver()
  15681. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15682. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15683. return $instance->getDriver();
  15684. }
  15685. /**
  15686. * Get the Flysystem adapter.
  15687. *
  15688. * @return \League\Flysystem\FilesystemAdapter
  15689. * @static
  15690. */ public static function getAdapter()
  15691. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15692. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15693. return $instance->getAdapter();
  15694. }
  15695. /**
  15696. * Get the configuration values.
  15697. *
  15698. * @return array
  15699. * @static
  15700. */ public static function getConfig()
  15701. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15702. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15703. return $instance->getConfig();
  15704. }
  15705. /**
  15706. * Define a custom callback that generates file download responses.
  15707. *
  15708. * @param \Closure $callback
  15709. * @return void
  15710. * @static
  15711. */ public static function serveUsing($callback)
  15712. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15713. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15714. $instance->serveUsing($callback);
  15715. }
  15716. /**
  15717. * Define a custom temporary URL builder callback.
  15718. *
  15719. * @param \Closure $callback
  15720. * @return void
  15721. * @static
  15722. */ public static function buildTemporaryUrlsUsing($callback)
  15723. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15724. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15725. $instance->buildTemporaryUrlsUsing($callback);
  15726. }
  15727. /**
  15728. * Apply the callback if the given "value" is (or resolves to) truthy.
  15729. *
  15730. * @template TWhenParameter
  15731. * @template TWhenReturnType
  15732. * @param (\Closure($this): TWhenParameter)|\Illuminate\Filesystem\TWhenParameter|null $value
  15733. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  15734. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  15735. * @return $this|\Illuminate\Filesystem\TWhenReturnType
  15736. * @static
  15737. */ public static function when($value = null, $callback = null, $default = null)
  15738. {
  15739. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15740. return $instance->when($value, $callback, $default);
  15741. }
  15742. /**
  15743. * Apply the callback if the given "value" is (or resolves to) falsy.
  15744. *
  15745. * @template TUnlessParameter
  15746. * @template TUnlessReturnType
  15747. * @param (\Closure($this): TUnlessParameter)|\Illuminate\Filesystem\TUnlessParameter|null $value
  15748. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  15749. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  15750. * @return $this|\Illuminate\Filesystem\TUnlessReturnType
  15751. * @static
  15752. */ public static function unless($value = null, $callback = null, $default = null)
  15753. {
  15754. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15755. return $instance->unless($value, $callback, $default);
  15756. }
  15757. /**
  15758. * Register a custom macro.
  15759. *
  15760. * @param string $name
  15761. * @param object|callable $macro
  15762. * @param-closure-this static $macro
  15763. * @return void
  15764. * @static
  15765. */ public static function macro($name, $macro)
  15766. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15767. \Illuminate\Filesystem\LocalFilesystemAdapter::macro($name, $macro);
  15768. }
  15769. /**
  15770. * Mix another object into the class.
  15771. *
  15772. * @param object $mixin
  15773. * @param bool $replace
  15774. * @return void
  15775. * @throws \ReflectionException
  15776. * @static
  15777. */ public static function mixin($mixin, $replace = true)
  15778. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15779. \Illuminate\Filesystem\LocalFilesystemAdapter::mixin($mixin, $replace);
  15780. }
  15781. /**
  15782. * Checks if macro is registered.
  15783. *
  15784. * @param string $name
  15785. * @return bool
  15786. * @static
  15787. */ public static function hasMacro($name)
  15788. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15789. return \Illuminate\Filesystem\LocalFilesystemAdapter::hasMacro($name);
  15790. }
  15791. /**
  15792. * Flush the existing macros.
  15793. *
  15794. * @return void
  15795. * @static
  15796. */ public static function flushMacros()
  15797. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15798. \Illuminate\Filesystem\LocalFilesystemAdapter::flushMacros();
  15799. }
  15800. /**
  15801. * Dynamically handle calls to the class.
  15802. *
  15803. * @param string $method
  15804. * @param array $parameters
  15805. * @return mixed
  15806. * @throws \BadMethodCallException
  15807. * @static
  15808. */ public static function macroCall($method, $parameters)
  15809. { //Method inherited from \Illuminate\Filesystem\FilesystemAdapter
  15810. /** @var \Illuminate\Filesystem\LocalFilesystemAdapter $instance */
  15811. return $instance->macroCall($method, $parameters);
  15812. }
  15813. }
  15814. /**
  15815. *
  15816. *
  15817. * @see \Illuminate\Routing\UrlGenerator
  15818. */ class URL {
  15819. /**
  15820. * Get the full URL for the current request.
  15821. *
  15822. * @return string
  15823. * @static
  15824. */ public static function full()
  15825. {
  15826. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15827. return $instance->full();
  15828. }
  15829. /**
  15830. * Get the current URL for the request.
  15831. *
  15832. * @return string
  15833. * @static
  15834. */ public static function current()
  15835. {
  15836. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15837. return $instance->current();
  15838. }
  15839. /**
  15840. * Get the URL for the previous request.
  15841. *
  15842. * @param mixed $fallback
  15843. * @return string
  15844. * @static
  15845. */ public static function previous($fallback = false)
  15846. {
  15847. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15848. return $instance->previous($fallback);
  15849. }
  15850. /**
  15851. * Get the previous path info for the request.
  15852. *
  15853. * @param mixed $fallback
  15854. * @return string
  15855. * @static
  15856. */ public static function previousPath($fallback = false)
  15857. {
  15858. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15859. return $instance->previousPath($fallback);
  15860. }
  15861. /**
  15862. * Generate an absolute URL to the given path.
  15863. *
  15864. * @param string $path
  15865. * @param mixed $extra
  15866. * @param bool|null $secure
  15867. * @return string
  15868. * @static
  15869. */ public static function to($path, $extra = [], $secure = null)
  15870. {
  15871. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15872. return $instance->to($path, $extra, $secure);
  15873. }
  15874. /**
  15875. * Generate an absolute URL with the given query parameters.
  15876. *
  15877. * @param string $path
  15878. * @param array $query
  15879. * @param mixed $extra
  15880. * @param bool|null $secure
  15881. * @return string
  15882. * @static
  15883. */ public static function query($path, $query = [], $extra = [], $secure = null)
  15884. {
  15885. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15886. return $instance->query($path, $query, $extra, $secure);
  15887. }
  15888. /**
  15889. * Generate a secure, absolute URL to the given path.
  15890. *
  15891. * @param string $path
  15892. * @param array $parameters
  15893. * @return string
  15894. * @static
  15895. */ public static function secure($path, $parameters = [])
  15896. {
  15897. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15898. return $instance->secure($path, $parameters);
  15899. }
  15900. /**
  15901. * Generate the URL to an application asset.
  15902. *
  15903. * @param string $path
  15904. * @param bool|null $secure
  15905. * @return string
  15906. * @static
  15907. */ public static function asset($path, $secure = null)
  15908. {
  15909. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15910. return $instance->asset($path, $secure);
  15911. }
  15912. /**
  15913. * Generate the URL to a secure asset.
  15914. *
  15915. * @param string $path
  15916. * @return string
  15917. * @static
  15918. */ public static function secureAsset($path)
  15919. {
  15920. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15921. return $instance->secureAsset($path);
  15922. }
  15923. /**
  15924. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  15925. *
  15926. * @param string $root
  15927. * @param string $path
  15928. * @param bool|null $secure
  15929. * @return string
  15930. * @static
  15931. */ public static function assetFrom($root, $path, $secure = null)
  15932. {
  15933. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15934. return $instance->assetFrom($root, $path, $secure);
  15935. }
  15936. /**
  15937. * Get the default scheme for a raw URL.
  15938. *
  15939. * @param bool|null $secure
  15940. * @return string
  15941. * @static
  15942. */ public static function formatScheme($secure = null)
  15943. {
  15944. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15945. return $instance->formatScheme($secure);
  15946. }
  15947. /**
  15948. * Create a signed route URL for a named route.
  15949. *
  15950. * @param \BackedEnum|string $name
  15951. * @param mixed $parameters
  15952. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  15953. * @param bool $absolute
  15954. * @return string
  15955. * @throws \InvalidArgumentException
  15956. * @static
  15957. */ public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  15958. {
  15959. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15960. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  15961. }
  15962. /**
  15963. * Create a temporary signed route URL for a named route.
  15964. *
  15965. * @param \BackedEnum|string $name
  15966. * @param \DateTimeInterface|\DateInterval|int $expiration
  15967. * @param array $parameters
  15968. * @param bool $absolute
  15969. * @return string
  15970. * @static
  15971. */ public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  15972. {
  15973. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15974. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  15975. }
  15976. /**
  15977. * Determine if the given request has a valid signature.
  15978. *
  15979. * @param \Illuminate\Http\Request $request
  15980. * @param bool $absolute
  15981. * @param array $ignoreQuery
  15982. * @return bool
  15983. * @static
  15984. */ public static function hasValidSignature($request, $absolute = true, $ignoreQuery = [])
  15985. {
  15986. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15987. return $instance->hasValidSignature($request, $absolute, $ignoreQuery);
  15988. }
  15989. /**
  15990. * Determine if the given request has a valid signature for a relative URL.
  15991. *
  15992. * @param \Illuminate\Http\Request $request
  15993. * @param array $ignoreQuery
  15994. * @return bool
  15995. * @static
  15996. */ public static function hasValidRelativeSignature($request, $ignoreQuery = [])
  15997. {
  15998. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15999. return $instance->hasValidRelativeSignature($request, $ignoreQuery);
  16000. }
  16001. /**
  16002. * Determine if the signature from the given request matches the URL.
  16003. *
  16004. * @param \Illuminate\Http\Request $request
  16005. * @param bool $absolute
  16006. * @param array $ignoreQuery
  16007. * @return bool
  16008. * @static
  16009. */ public static function hasCorrectSignature($request, $absolute = true, $ignoreQuery = [])
  16010. {
  16011. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16012. return $instance->hasCorrectSignature($request, $absolute, $ignoreQuery);
  16013. }
  16014. /**
  16015. * Determine if the expires timestamp from the given request is not from the past.
  16016. *
  16017. * @param \Illuminate\Http\Request $request
  16018. * @return bool
  16019. * @static
  16020. */ public static function signatureHasNotExpired($request)
  16021. {
  16022. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16023. return $instance->signatureHasNotExpired($request);
  16024. }
  16025. /**
  16026. * Get the URL to a named route.
  16027. *
  16028. * @param \BackedEnum|string $name
  16029. * @param mixed $parameters
  16030. * @param bool $absolute
  16031. * @return string
  16032. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException|\InvalidArgumentException
  16033. * @static
  16034. */ public static function route($name, $parameters = [], $absolute = true)
  16035. {
  16036. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16037. return $instance->route($name, $parameters, $absolute);
  16038. }
  16039. /**
  16040. * Get the URL for a given route instance.
  16041. *
  16042. * @param \Illuminate\Routing\Route $route
  16043. * @param mixed $parameters
  16044. * @param bool $absolute
  16045. * @return string
  16046. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  16047. * @static
  16048. */ public static function toRoute($route, $parameters, $absolute)
  16049. {
  16050. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16051. return $instance->toRoute($route, $parameters, $absolute);
  16052. }
  16053. /**
  16054. * Get the URL to a controller action.
  16055. *
  16056. * @param string|array $action
  16057. * @param mixed $parameters
  16058. * @param bool $absolute
  16059. * @return string
  16060. * @throws \InvalidArgumentException
  16061. * @static
  16062. */ public static function action($action, $parameters = [], $absolute = true)
  16063. {
  16064. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16065. return $instance->action($action, $parameters, $absolute);
  16066. }
  16067. /**
  16068. * Format the array of URL parameters.
  16069. *
  16070. * @param mixed $parameters
  16071. * @return array
  16072. * @static
  16073. */ public static function formatParameters($parameters)
  16074. {
  16075. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16076. return $instance->formatParameters($parameters);
  16077. }
  16078. /**
  16079. * Get the base URL for the request.
  16080. *
  16081. * @param string $scheme
  16082. * @param string|null $root
  16083. * @return string
  16084. * @static
  16085. */ public static function formatRoot($scheme, $root = null)
  16086. {
  16087. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16088. return $instance->formatRoot($scheme, $root);
  16089. }
  16090. /**
  16091. * Format the given URL segments into a single URL.
  16092. *
  16093. * @param string $root
  16094. * @param string $path
  16095. * @param \Illuminate\Routing\Route|null $route
  16096. * @return string
  16097. * @static
  16098. */ public static function format($root, $path, $route = null)
  16099. {
  16100. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16101. return $instance->format($root, $path, $route);
  16102. }
  16103. /**
  16104. * Determine if the given path is a valid URL.
  16105. *
  16106. * @param string $path
  16107. * @return bool
  16108. * @static
  16109. */ public static function isValidUrl($path)
  16110. {
  16111. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16112. return $instance->isValidUrl($path);
  16113. }
  16114. /**
  16115. * Set the default named parameters used by the URL generator.
  16116. *
  16117. * @param array $defaults
  16118. * @return void
  16119. * @static
  16120. */ public static function defaults($defaults)
  16121. {
  16122. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16123. $instance->defaults($defaults);
  16124. }
  16125. /**
  16126. * Get the default named parameters used by the URL generator.
  16127. *
  16128. * @return array
  16129. * @static
  16130. */ public static function getDefaultParameters()
  16131. {
  16132. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16133. return $instance->getDefaultParameters();
  16134. }
  16135. /**
  16136. * Force the scheme for URLs.
  16137. *
  16138. * @param string|null $scheme
  16139. * @return void
  16140. * @static
  16141. */ public static function forceScheme($scheme)
  16142. {
  16143. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16144. $instance->forceScheme($scheme);
  16145. }
  16146. /**
  16147. * Set the forced root URL.
  16148. *
  16149. * @param string|null $root
  16150. * @return void
  16151. * @static
  16152. */ public static function forceRootUrl($root)
  16153. {
  16154. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16155. $instance->forceRootUrl($root);
  16156. }
  16157. /**
  16158. * Set a callback to be used to format the host of generated URLs.
  16159. *
  16160. * @param \Closure $callback
  16161. * @return \Illuminate\Routing\UrlGenerator
  16162. * @static
  16163. */ public static function formatHostUsing($callback)
  16164. {
  16165. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16166. return $instance->formatHostUsing($callback);
  16167. }
  16168. /**
  16169. * Set a callback to be used to format the path of generated URLs.
  16170. *
  16171. * @param \Closure $callback
  16172. * @return \Illuminate\Routing\UrlGenerator
  16173. * @static
  16174. */ public static function formatPathUsing($callback)
  16175. {
  16176. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16177. return $instance->formatPathUsing($callback);
  16178. }
  16179. /**
  16180. * Get the path formatter being used by the URL generator.
  16181. *
  16182. * @return \Closure
  16183. * @static
  16184. */ public static function pathFormatter()
  16185. {
  16186. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16187. return $instance->pathFormatter();
  16188. }
  16189. /**
  16190. * Get the request instance.
  16191. *
  16192. * @return \Illuminate\Http\Request
  16193. * @static
  16194. */ public static function getRequest()
  16195. {
  16196. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16197. return $instance->getRequest();
  16198. }
  16199. /**
  16200. * Set the current request instance.
  16201. *
  16202. * @param \Illuminate\Http\Request $request
  16203. * @return void
  16204. * @static
  16205. */ public static function setRequest($request)
  16206. {
  16207. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16208. $instance->setRequest($request);
  16209. }
  16210. /**
  16211. * Set the route collection.
  16212. *
  16213. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  16214. * @return \Illuminate\Routing\UrlGenerator
  16215. * @static
  16216. */ public static function setRoutes($routes)
  16217. {
  16218. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16219. return $instance->setRoutes($routes);
  16220. }
  16221. /**
  16222. * Set the session resolver for the generator.
  16223. *
  16224. * @param callable $sessionResolver
  16225. * @return \Illuminate\Routing\UrlGenerator
  16226. * @static
  16227. */ public static function setSessionResolver($sessionResolver)
  16228. {
  16229. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16230. return $instance->setSessionResolver($sessionResolver);
  16231. }
  16232. /**
  16233. * Set the encryption key resolver.
  16234. *
  16235. * @param callable $keyResolver
  16236. * @return \Illuminate\Routing\UrlGenerator
  16237. * @static
  16238. */ public static function setKeyResolver($keyResolver)
  16239. {
  16240. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16241. return $instance->setKeyResolver($keyResolver);
  16242. }
  16243. /**
  16244. * Clone a new instance of the URL generator with a different encryption key resolver.
  16245. *
  16246. * @param callable $keyResolver
  16247. * @return \Illuminate\Routing\UrlGenerator
  16248. * @static
  16249. */ public static function withKeyResolver($keyResolver)
  16250. {
  16251. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16252. return $instance->withKeyResolver($keyResolver);
  16253. }
  16254. /**
  16255. * Set the callback that should be used to attempt to resolve missing named routes.
  16256. *
  16257. * @param callable $missingNamedRouteResolver
  16258. * @return \Illuminate\Routing\UrlGenerator
  16259. * @static
  16260. */ public static function resolveMissingNamedRoutesUsing($missingNamedRouteResolver)
  16261. {
  16262. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16263. return $instance->resolveMissingNamedRoutesUsing($missingNamedRouteResolver);
  16264. }
  16265. /**
  16266. * Get the root controller namespace.
  16267. *
  16268. * @return string
  16269. * @static
  16270. */ public static function getRootControllerNamespace()
  16271. {
  16272. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16273. return $instance->getRootControllerNamespace();
  16274. }
  16275. /**
  16276. * Set the root controller namespace.
  16277. *
  16278. * @param string $rootNamespace
  16279. * @return \Illuminate\Routing\UrlGenerator
  16280. * @static
  16281. */ public static function setRootControllerNamespace($rootNamespace)
  16282. {
  16283. /** @var \Illuminate\Routing\UrlGenerator $instance */
  16284. return $instance->setRootControllerNamespace($rootNamespace);
  16285. }
  16286. /**
  16287. * Register a custom macro.
  16288. *
  16289. * @param string $name
  16290. * @param object|callable $macro
  16291. * @param-closure-this static $macro
  16292. * @return void
  16293. * @static
  16294. */ public static function macro($name, $macro)
  16295. {
  16296. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  16297. }
  16298. /**
  16299. * Mix another object into the class.
  16300. *
  16301. * @param object $mixin
  16302. * @param bool $replace
  16303. * @return void
  16304. * @throws \ReflectionException
  16305. * @static
  16306. */ public static function mixin($mixin, $replace = true)
  16307. {
  16308. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  16309. }
  16310. /**
  16311. * Checks if macro is registered.
  16312. *
  16313. * @param string $name
  16314. * @return bool
  16315. * @static
  16316. */ public static function hasMacro($name)
  16317. {
  16318. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  16319. }
  16320. /**
  16321. * Flush the existing macros.
  16322. *
  16323. * @return void
  16324. * @static
  16325. */ public static function flushMacros()
  16326. {
  16327. \Illuminate\Routing\UrlGenerator::flushMacros();
  16328. }
  16329. }
  16330. /**
  16331. *
  16332. *
  16333. * @see \Illuminate\Validation\Factory
  16334. */ class Validator {
  16335. /**
  16336. * Create a new Validator instance.
  16337. *
  16338. * @param array $data
  16339. * @param array $rules
  16340. * @param array $messages
  16341. * @param array $attributes
  16342. * @return \Illuminate\Validation\Validator
  16343. * @static
  16344. */ public static function make($data, $rules, $messages = [], $attributes = [])
  16345. {
  16346. /** @var \Illuminate\Validation\Factory $instance */
  16347. return $instance->make($data, $rules, $messages, $attributes);
  16348. }
  16349. /**
  16350. * Validate the given data against the provided rules.
  16351. *
  16352. * @param array $data
  16353. * @param array $rules
  16354. * @param array $messages
  16355. * @param array $attributes
  16356. * @return array
  16357. * @throws \Illuminate\Validation\ValidationException
  16358. * @static
  16359. */ public static function validate($data, $rules, $messages = [], $attributes = [])
  16360. {
  16361. /** @var \Illuminate\Validation\Factory $instance */
  16362. return $instance->validate($data, $rules, $messages, $attributes);
  16363. }
  16364. /**
  16365. * Register a custom validator extension.
  16366. *
  16367. * @param string $rule
  16368. * @param \Closure|string $extension
  16369. * @param string|null $message
  16370. * @return void
  16371. * @static
  16372. */ public static function extend($rule, $extension, $message = null)
  16373. {
  16374. /** @var \Illuminate\Validation\Factory $instance */
  16375. $instance->extend($rule, $extension, $message);
  16376. }
  16377. /**
  16378. * Register a custom implicit validator extension.
  16379. *
  16380. * @param string $rule
  16381. * @param \Closure|string $extension
  16382. * @param string|null $message
  16383. * @return void
  16384. * @static
  16385. */ public static function extendImplicit($rule, $extension, $message = null)
  16386. {
  16387. /** @var \Illuminate\Validation\Factory $instance */
  16388. $instance->extendImplicit($rule, $extension, $message);
  16389. }
  16390. /**
  16391. * Register a custom dependent validator extension.
  16392. *
  16393. * @param string $rule
  16394. * @param \Closure|string $extension
  16395. * @param string|null $message
  16396. * @return void
  16397. * @static
  16398. */ public static function extendDependent($rule, $extension, $message = null)
  16399. {
  16400. /** @var \Illuminate\Validation\Factory $instance */
  16401. $instance->extendDependent($rule, $extension, $message);
  16402. }
  16403. /**
  16404. * Register a custom validator message replacer.
  16405. *
  16406. * @param string $rule
  16407. * @param \Closure|string $replacer
  16408. * @return void
  16409. * @static
  16410. */ public static function replacer($rule, $replacer)
  16411. {
  16412. /** @var \Illuminate\Validation\Factory $instance */
  16413. $instance->replacer($rule, $replacer);
  16414. }
  16415. /**
  16416. * Indicate that unvalidated array keys should be included in validated data when the parent array is validated.
  16417. *
  16418. * @return void
  16419. * @static
  16420. */ public static function includeUnvalidatedArrayKeys()
  16421. {
  16422. /** @var \Illuminate\Validation\Factory $instance */
  16423. $instance->includeUnvalidatedArrayKeys();
  16424. }
  16425. /**
  16426. * Indicate that unvalidated array keys should be excluded from the validated data, even if the parent array was validated.
  16427. *
  16428. * @return void
  16429. * @static
  16430. */ public static function excludeUnvalidatedArrayKeys()
  16431. {
  16432. /** @var \Illuminate\Validation\Factory $instance */
  16433. $instance->excludeUnvalidatedArrayKeys();
  16434. }
  16435. /**
  16436. * Set the Validator instance resolver.
  16437. *
  16438. * @param \Closure $resolver
  16439. * @return void
  16440. * @static
  16441. */ public static function resolver($resolver)
  16442. {
  16443. /** @var \Illuminate\Validation\Factory $instance */
  16444. $instance->resolver($resolver);
  16445. }
  16446. /**
  16447. * Get the Translator implementation.
  16448. *
  16449. * @return \Illuminate\Contracts\Translation\Translator
  16450. * @static
  16451. */ public static function getTranslator()
  16452. {
  16453. /** @var \Illuminate\Validation\Factory $instance */
  16454. return $instance->getTranslator();
  16455. }
  16456. /**
  16457. * Get the Presence Verifier implementation.
  16458. *
  16459. * @return \Illuminate\Validation\PresenceVerifierInterface
  16460. * @static
  16461. */ public static function getPresenceVerifier()
  16462. {
  16463. /** @var \Illuminate\Validation\Factory $instance */
  16464. return $instance->getPresenceVerifier();
  16465. }
  16466. /**
  16467. * Set the Presence Verifier implementation.
  16468. *
  16469. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  16470. * @return void
  16471. * @static
  16472. */ public static function setPresenceVerifier($presenceVerifier)
  16473. {
  16474. /** @var \Illuminate\Validation\Factory $instance */
  16475. $instance->setPresenceVerifier($presenceVerifier);
  16476. }
  16477. /**
  16478. * Get the container instance used by the validation factory.
  16479. *
  16480. * @return \Illuminate\Contracts\Container\Container|null
  16481. * @static
  16482. */ public static function getContainer()
  16483. {
  16484. /** @var \Illuminate\Validation\Factory $instance */
  16485. return $instance->getContainer();
  16486. }
  16487. /**
  16488. * Set the container instance used by the validation factory.
  16489. *
  16490. * @param \Illuminate\Contracts\Container\Container $container
  16491. * @return \Illuminate\Validation\Factory
  16492. * @static
  16493. */ public static function setContainer($container)
  16494. {
  16495. /** @var \Illuminate\Validation\Factory $instance */
  16496. return $instance->setContainer($container);
  16497. }
  16498. }
  16499. /**
  16500. *
  16501. *
  16502. * @see \Illuminate\View\Factory
  16503. */ class View {
  16504. /**
  16505. * Get the evaluated view contents for the given view.
  16506. *
  16507. * @param string $path
  16508. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16509. * @param array $mergeData
  16510. * @return \Illuminate\Contracts\View\View
  16511. * @static
  16512. */ public static function file($path, $data = [], $mergeData = [])
  16513. {
  16514. /** @var \Illuminate\View\Factory $instance */
  16515. return $instance->file($path, $data, $mergeData);
  16516. }
  16517. /**
  16518. * Get the evaluated view contents for the given view.
  16519. *
  16520. * @param string $view
  16521. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16522. * @param array $mergeData
  16523. * @return \Illuminate\Contracts\View\View
  16524. * @static
  16525. */ public static function make($view, $data = [], $mergeData = [])
  16526. {
  16527. /** @var \Illuminate\View\Factory $instance */
  16528. return $instance->make($view, $data, $mergeData);
  16529. }
  16530. /**
  16531. * Get the first view that actually exists from the given list.
  16532. *
  16533. * @param array $views
  16534. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16535. * @param array $mergeData
  16536. * @return \Illuminate\Contracts\View\View
  16537. * @throws \InvalidArgumentException
  16538. * @static
  16539. */ public static function first($views, $data = [], $mergeData = [])
  16540. {
  16541. /** @var \Illuminate\View\Factory $instance */
  16542. return $instance->first($views, $data, $mergeData);
  16543. }
  16544. /**
  16545. * Get the rendered content of the view based on 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 renderWhen($condition, $view, $data = [], $mergeData = [])
  16554. {
  16555. /** @var \Illuminate\View\Factory $instance */
  16556. return $instance->renderWhen($condition, $view, $data, $mergeData);
  16557. }
  16558. /**
  16559. * Get the rendered content of the view based on the negation of a given condition.
  16560. *
  16561. * @param bool $condition
  16562. * @param string $view
  16563. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16564. * @param array $mergeData
  16565. * @return string
  16566. * @static
  16567. */ public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  16568. {
  16569. /** @var \Illuminate\View\Factory $instance */
  16570. return $instance->renderUnless($condition, $view, $data, $mergeData);
  16571. }
  16572. /**
  16573. * Get the rendered contents of a partial from a loop.
  16574. *
  16575. * @param string $view
  16576. * @param array $data
  16577. * @param string $iterator
  16578. * @param string $empty
  16579. * @return string
  16580. * @static
  16581. */ public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  16582. {
  16583. /** @var \Illuminate\View\Factory $instance */
  16584. return $instance->renderEach($view, $data, $iterator, $empty);
  16585. }
  16586. /**
  16587. * Determine if a given view exists.
  16588. *
  16589. * @param string $view
  16590. * @return bool
  16591. * @static
  16592. */ public static function exists($view)
  16593. {
  16594. /** @var \Illuminate\View\Factory $instance */
  16595. return $instance->exists($view);
  16596. }
  16597. /**
  16598. * Get the appropriate view engine for the given path.
  16599. *
  16600. * @param string $path
  16601. * @return \Illuminate\Contracts\View\Engine
  16602. * @throws \InvalidArgumentException
  16603. * @static
  16604. */ public static function getEngineFromPath($path)
  16605. {
  16606. /** @var \Illuminate\View\Factory $instance */
  16607. return $instance->getEngineFromPath($path);
  16608. }
  16609. /**
  16610. * Add a piece of shared data to the environment.
  16611. *
  16612. * @param array|string $key
  16613. * @param mixed|null $value
  16614. * @return mixed
  16615. * @static
  16616. */ public static function share($key, $value = null)
  16617. {
  16618. /** @var \Illuminate\View\Factory $instance */
  16619. return $instance->share($key, $value);
  16620. }
  16621. /**
  16622. * Increment the rendering counter.
  16623. *
  16624. * @return void
  16625. * @static
  16626. */ public static function incrementRender()
  16627. {
  16628. /** @var \Illuminate\View\Factory $instance */
  16629. $instance->incrementRender();
  16630. }
  16631. /**
  16632. * Decrement the rendering counter.
  16633. *
  16634. * @return void
  16635. * @static
  16636. */ public static function decrementRender()
  16637. {
  16638. /** @var \Illuminate\View\Factory $instance */
  16639. $instance->decrementRender();
  16640. }
  16641. /**
  16642. * Check if there are no active render operations.
  16643. *
  16644. * @return bool
  16645. * @static
  16646. */ public static function doneRendering()
  16647. {
  16648. /** @var \Illuminate\View\Factory $instance */
  16649. return $instance->doneRendering();
  16650. }
  16651. /**
  16652. * Determine if the given once token has been rendered.
  16653. *
  16654. * @param string $id
  16655. * @return bool
  16656. * @static
  16657. */ public static function hasRenderedOnce($id)
  16658. {
  16659. /** @var \Illuminate\View\Factory $instance */
  16660. return $instance->hasRenderedOnce($id);
  16661. }
  16662. /**
  16663. * Mark the given once token as having been rendered.
  16664. *
  16665. * @param string $id
  16666. * @return void
  16667. * @static
  16668. */ public static function markAsRenderedOnce($id)
  16669. {
  16670. /** @var \Illuminate\View\Factory $instance */
  16671. $instance->markAsRenderedOnce($id);
  16672. }
  16673. /**
  16674. * Add a location to the array of view locations.
  16675. *
  16676. * @param string $location
  16677. * @return void
  16678. * @static
  16679. */ public static function addLocation($location)
  16680. {
  16681. /** @var \Illuminate\View\Factory $instance */
  16682. $instance->addLocation($location);
  16683. }
  16684. /**
  16685. * Prepend a location to the array of view locations.
  16686. *
  16687. * @param string $location
  16688. * @return void
  16689. * @static
  16690. */ public static function prependLocation($location)
  16691. {
  16692. /** @var \Illuminate\View\Factory $instance */
  16693. $instance->prependLocation($location);
  16694. }
  16695. /**
  16696. * Add a new namespace to the loader.
  16697. *
  16698. * @param string $namespace
  16699. * @param string|array $hints
  16700. * @return \Illuminate\View\Factory
  16701. * @static
  16702. */ public static function addNamespace($namespace, $hints)
  16703. {
  16704. /** @var \Illuminate\View\Factory $instance */
  16705. return $instance->addNamespace($namespace, $hints);
  16706. }
  16707. /**
  16708. * Prepend a new namespace to the loader.
  16709. *
  16710. * @param string $namespace
  16711. * @param string|array $hints
  16712. * @return \Illuminate\View\Factory
  16713. * @static
  16714. */ public static function prependNamespace($namespace, $hints)
  16715. {
  16716. /** @var \Illuminate\View\Factory $instance */
  16717. return $instance->prependNamespace($namespace, $hints);
  16718. }
  16719. /**
  16720. * Replace the namespace hints for the given namespace.
  16721. *
  16722. * @param string $namespace
  16723. * @param string|array $hints
  16724. * @return \Illuminate\View\Factory
  16725. * @static
  16726. */ public static function replaceNamespace($namespace, $hints)
  16727. {
  16728. /** @var \Illuminate\View\Factory $instance */
  16729. return $instance->replaceNamespace($namespace, $hints);
  16730. }
  16731. /**
  16732. * Register a valid view extension and its engine.
  16733. *
  16734. * @param string $extension
  16735. * @param string $engine
  16736. * @param \Closure|null $resolver
  16737. * @return void
  16738. * @static
  16739. */ public static function addExtension($extension, $engine, $resolver = null)
  16740. {
  16741. /** @var \Illuminate\View\Factory $instance */
  16742. $instance->addExtension($extension, $engine, $resolver);
  16743. }
  16744. /**
  16745. * Flush all of the factory state like sections and stacks.
  16746. *
  16747. * @return void
  16748. * @static
  16749. */ public static function flushState()
  16750. {
  16751. /** @var \Illuminate\View\Factory $instance */
  16752. $instance->flushState();
  16753. }
  16754. /**
  16755. * Flush all of the section contents if done rendering.
  16756. *
  16757. * @return void
  16758. * @static
  16759. */ public static function flushStateIfDoneRendering()
  16760. {
  16761. /** @var \Illuminate\View\Factory $instance */
  16762. $instance->flushStateIfDoneRendering();
  16763. }
  16764. /**
  16765. * Get the extension to engine bindings.
  16766. *
  16767. * @return array
  16768. * @static
  16769. */ public static function getExtensions()
  16770. {
  16771. /** @var \Illuminate\View\Factory $instance */
  16772. return $instance->getExtensions();
  16773. }
  16774. /**
  16775. * Get the engine resolver instance.
  16776. *
  16777. * @return \Illuminate\View\Engines\EngineResolver
  16778. * @static
  16779. */ public static function getEngineResolver()
  16780. {
  16781. /** @var \Illuminate\View\Factory $instance */
  16782. return $instance->getEngineResolver();
  16783. }
  16784. /**
  16785. * Get the view finder instance.
  16786. *
  16787. * @return \Illuminate\View\ViewFinderInterface
  16788. * @static
  16789. */ public static function getFinder()
  16790. {
  16791. /** @var \Illuminate\View\Factory $instance */
  16792. return $instance->getFinder();
  16793. }
  16794. /**
  16795. * Set the view finder instance.
  16796. *
  16797. * @param \Illuminate\View\ViewFinderInterface $finder
  16798. * @return void
  16799. * @static
  16800. */ public static function setFinder($finder)
  16801. {
  16802. /** @var \Illuminate\View\Factory $instance */
  16803. $instance->setFinder($finder);
  16804. }
  16805. /**
  16806. * Flush the cache of views located by the finder.
  16807. *
  16808. * @return void
  16809. * @static
  16810. */ public static function flushFinderCache()
  16811. {
  16812. /** @var \Illuminate\View\Factory $instance */
  16813. $instance->flushFinderCache();
  16814. }
  16815. /**
  16816. * Get the event dispatcher instance.
  16817. *
  16818. * @return \Illuminate\Contracts\Events\Dispatcher
  16819. * @static
  16820. */ public static function getDispatcher()
  16821. {
  16822. /** @var \Illuminate\View\Factory $instance */
  16823. return $instance->getDispatcher();
  16824. }
  16825. /**
  16826. * Set the event dispatcher instance.
  16827. *
  16828. * @param \Illuminate\Contracts\Events\Dispatcher $events
  16829. * @return void
  16830. * @static
  16831. */ public static function setDispatcher($events)
  16832. {
  16833. /** @var \Illuminate\View\Factory $instance */
  16834. $instance->setDispatcher($events);
  16835. }
  16836. /**
  16837. * Get the IoC container instance.
  16838. *
  16839. * @return \Illuminate\Contracts\Container\Container
  16840. * @static
  16841. */ public static function getContainer()
  16842. {
  16843. /** @var \Illuminate\View\Factory $instance */
  16844. return $instance->getContainer();
  16845. }
  16846. /**
  16847. * Set the IoC container instance.
  16848. *
  16849. * @param \Illuminate\Contracts\Container\Container $container
  16850. * @return void
  16851. * @static
  16852. */ public static function setContainer($container)
  16853. {
  16854. /** @var \Illuminate\View\Factory $instance */
  16855. $instance->setContainer($container);
  16856. }
  16857. /**
  16858. * Get an item from the shared data.
  16859. *
  16860. * @param string $key
  16861. * @param mixed $default
  16862. * @return mixed
  16863. * @static
  16864. */ public static function shared($key, $default = null)
  16865. {
  16866. /** @var \Illuminate\View\Factory $instance */
  16867. return $instance->shared($key, $default);
  16868. }
  16869. /**
  16870. * Get all of the shared data for the environment.
  16871. *
  16872. * @return array
  16873. * @static
  16874. */ public static function getShared()
  16875. {
  16876. /** @var \Illuminate\View\Factory $instance */
  16877. return $instance->getShared();
  16878. }
  16879. /**
  16880. * Register a custom macro.
  16881. *
  16882. * @param string $name
  16883. * @param object|callable $macro
  16884. * @param-closure-this static $macro
  16885. * @return void
  16886. * @static
  16887. */ public static function macro($name, $macro)
  16888. {
  16889. \Illuminate\View\Factory::macro($name, $macro);
  16890. }
  16891. /**
  16892. * Mix another object into the class.
  16893. *
  16894. * @param object $mixin
  16895. * @param bool $replace
  16896. * @return void
  16897. * @throws \ReflectionException
  16898. * @static
  16899. */ public static function mixin($mixin, $replace = true)
  16900. {
  16901. \Illuminate\View\Factory::mixin($mixin, $replace);
  16902. }
  16903. /**
  16904. * Checks if macro is registered.
  16905. *
  16906. * @param string $name
  16907. * @return bool
  16908. * @static
  16909. */ public static function hasMacro($name)
  16910. {
  16911. return \Illuminate\View\Factory::hasMacro($name);
  16912. }
  16913. /**
  16914. * Flush the existing macros.
  16915. *
  16916. * @return void
  16917. * @static
  16918. */ public static function flushMacros()
  16919. {
  16920. \Illuminate\View\Factory::flushMacros();
  16921. }
  16922. /**
  16923. * Start a component rendering process.
  16924. *
  16925. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  16926. * @param array $data
  16927. * @return void
  16928. * @static
  16929. */ public static function startComponent($view, $data = [])
  16930. {
  16931. /** @var \Illuminate\View\Factory $instance */
  16932. $instance->startComponent($view, $data);
  16933. }
  16934. /**
  16935. * Get the first view that actually exists from the given list, and start a component.
  16936. *
  16937. * @param array $names
  16938. * @param array $data
  16939. * @return void
  16940. * @static
  16941. */ public static function startComponentFirst($names, $data = [])
  16942. {
  16943. /** @var \Illuminate\View\Factory $instance */
  16944. $instance->startComponentFirst($names, $data);
  16945. }
  16946. /**
  16947. * Render the current component.
  16948. *
  16949. * @return string
  16950. * @static
  16951. */ public static function renderComponent()
  16952. {
  16953. /** @var \Illuminate\View\Factory $instance */
  16954. return $instance->renderComponent();
  16955. }
  16956. /**
  16957. * Get an item from the component data that exists above the current component.
  16958. *
  16959. * @param string $key
  16960. * @param mixed $default
  16961. * @return mixed|null
  16962. * @static
  16963. */ public static function getConsumableComponentData($key, $default = null)
  16964. {
  16965. /** @var \Illuminate\View\Factory $instance */
  16966. return $instance->getConsumableComponentData($key, $default);
  16967. }
  16968. /**
  16969. * Start the slot rendering process.
  16970. *
  16971. * @param string $name
  16972. * @param string|null $content
  16973. * @param array $attributes
  16974. * @return void
  16975. * @static
  16976. */ public static function slot($name, $content = null, $attributes = [])
  16977. {
  16978. /** @var \Illuminate\View\Factory $instance */
  16979. $instance->slot($name, $content, $attributes);
  16980. }
  16981. /**
  16982. * Save the slot content for rendering.
  16983. *
  16984. * @return void
  16985. * @static
  16986. */ public static function endSlot()
  16987. {
  16988. /** @var \Illuminate\View\Factory $instance */
  16989. $instance->endSlot();
  16990. }
  16991. /**
  16992. * Register a view creator event.
  16993. *
  16994. * @param array|string $views
  16995. * @param \Closure|string $callback
  16996. * @return array
  16997. * @static
  16998. */ public static function creator($views, $callback)
  16999. {
  17000. /** @var \Illuminate\View\Factory $instance */
  17001. return $instance->creator($views, $callback);
  17002. }
  17003. /**
  17004. * Register multiple view composers via an array.
  17005. *
  17006. * @param array $composers
  17007. * @return array
  17008. * @static
  17009. */ public static function composers($composers)
  17010. {
  17011. /** @var \Illuminate\View\Factory $instance */
  17012. return $instance->composers($composers);
  17013. }
  17014. /**
  17015. * Register a view composer event.
  17016. *
  17017. * @param array|string $views
  17018. * @param \Closure|string $callback
  17019. * @return array
  17020. * @static
  17021. */ public static function composer($views, $callback)
  17022. {
  17023. /** @var \Illuminate\View\Factory $instance */
  17024. return $instance->composer($views, $callback);
  17025. }
  17026. /**
  17027. * Call the composer for a given view.
  17028. *
  17029. * @param \Illuminate\Contracts\View\View $view
  17030. * @return void
  17031. * @static
  17032. */ public static function callComposer($view)
  17033. {
  17034. /** @var \Illuminate\View\Factory $instance */
  17035. $instance->callComposer($view);
  17036. }
  17037. /**
  17038. * Call the creator for a given view.
  17039. *
  17040. * @param \Illuminate\Contracts\View\View $view
  17041. * @return void
  17042. * @static
  17043. */ public static function callCreator($view)
  17044. {
  17045. /** @var \Illuminate\View\Factory $instance */
  17046. $instance->callCreator($view);
  17047. }
  17048. /**
  17049. * Start injecting content into a fragment.
  17050. *
  17051. * @param string $fragment
  17052. * @return void
  17053. * @static
  17054. */ public static function startFragment($fragment)
  17055. {
  17056. /** @var \Illuminate\View\Factory $instance */
  17057. $instance->startFragment($fragment);
  17058. }
  17059. /**
  17060. * Stop injecting content into a fragment.
  17061. *
  17062. * @return string
  17063. * @throws \InvalidArgumentException
  17064. * @static
  17065. */ public static function stopFragment()
  17066. {
  17067. /** @var \Illuminate\View\Factory $instance */
  17068. return $instance->stopFragment();
  17069. }
  17070. /**
  17071. * Get the contents of a fragment.
  17072. *
  17073. * @param string $name
  17074. * @param string|null $default
  17075. * @return mixed
  17076. * @static
  17077. */ public static function getFragment($name, $default = null)
  17078. {
  17079. /** @var \Illuminate\View\Factory $instance */
  17080. return $instance->getFragment($name, $default);
  17081. }
  17082. /**
  17083. * Get the entire array of rendered fragments.
  17084. *
  17085. * @return array
  17086. * @static
  17087. */ public static function getFragments()
  17088. {
  17089. /** @var \Illuminate\View\Factory $instance */
  17090. return $instance->getFragments();
  17091. }
  17092. /**
  17093. * Flush all of the fragments.
  17094. *
  17095. * @return void
  17096. * @static
  17097. */ public static function flushFragments()
  17098. {
  17099. /** @var \Illuminate\View\Factory $instance */
  17100. $instance->flushFragments();
  17101. }
  17102. /**
  17103. * Start injecting content into a section.
  17104. *
  17105. * @param string $section
  17106. * @param string|null $content
  17107. * @return void
  17108. * @static
  17109. */ public static function startSection($section, $content = null)
  17110. {
  17111. /** @var \Illuminate\View\Factory $instance */
  17112. $instance->startSection($section, $content);
  17113. }
  17114. /**
  17115. * Inject inline content into a section.
  17116. *
  17117. * @param string $section
  17118. * @param string $content
  17119. * @return void
  17120. * @static
  17121. */ public static function inject($section, $content)
  17122. {
  17123. /** @var \Illuminate\View\Factory $instance */
  17124. $instance->inject($section, $content);
  17125. }
  17126. /**
  17127. * Stop injecting content into a section and return its contents.
  17128. *
  17129. * @return string
  17130. * @static
  17131. */ public static function yieldSection()
  17132. {
  17133. /** @var \Illuminate\View\Factory $instance */
  17134. return $instance->yieldSection();
  17135. }
  17136. /**
  17137. * Stop injecting content into a section.
  17138. *
  17139. * @param bool $overwrite
  17140. * @return string
  17141. * @throws \InvalidArgumentException
  17142. * @static
  17143. */ public static function stopSection($overwrite = false)
  17144. {
  17145. /** @var \Illuminate\View\Factory $instance */
  17146. return $instance->stopSection($overwrite);
  17147. }
  17148. /**
  17149. * Stop injecting content into a section and append it.
  17150. *
  17151. * @return string
  17152. * @throws \InvalidArgumentException
  17153. * @static
  17154. */ public static function appendSection()
  17155. {
  17156. /** @var \Illuminate\View\Factory $instance */
  17157. return $instance->appendSection();
  17158. }
  17159. /**
  17160. * Get the string contents of a section.
  17161. *
  17162. * @param string $section
  17163. * @param string $default
  17164. * @return string
  17165. * @static
  17166. */ public static function yieldContent($section, $default = '')
  17167. {
  17168. /** @var \Illuminate\View\Factory $instance */
  17169. return $instance->yieldContent($section, $default);
  17170. }
  17171. /**
  17172. * Get the parent placeholder for the current request.
  17173. *
  17174. * @param string $section
  17175. * @return string
  17176. * @static
  17177. */ public static function parentPlaceholder($section = '')
  17178. {
  17179. return \Illuminate\View\Factory::parentPlaceholder($section);
  17180. }
  17181. /**
  17182. * Check if section exists.
  17183. *
  17184. * @param string $name
  17185. * @return bool
  17186. * @static
  17187. */ public static function hasSection($name)
  17188. {
  17189. /** @var \Illuminate\View\Factory $instance */
  17190. return $instance->hasSection($name);
  17191. }
  17192. /**
  17193. * Check if section does not exist.
  17194. *
  17195. * @param string $name
  17196. * @return bool
  17197. * @static
  17198. */ public static function sectionMissing($name)
  17199. {
  17200. /** @var \Illuminate\View\Factory $instance */
  17201. return $instance->sectionMissing($name);
  17202. }
  17203. /**
  17204. * Get the contents of a section.
  17205. *
  17206. * @param string $name
  17207. * @param string|null $default
  17208. * @return mixed
  17209. * @static
  17210. */ public static function getSection($name, $default = null)
  17211. {
  17212. /** @var \Illuminate\View\Factory $instance */
  17213. return $instance->getSection($name, $default);
  17214. }
  17215. /**
  17216. * Get the entire array of sections.
  17217. *
  17218. * @return array
  17219. * @static
  17220. */ public static function getSections()
  17221. {
  17222. /** @var \Illuminate\View\Factory $instance */
  17223. return $instance->getSections();
  17224. }
  17225. /**
  17226. * Flush all of the sections.
  17227. *
  17228. * @return void
  17229. * @static
  17230. */ public static function flushSections()
  17231. {
  17232. /** @var \Illuminate\View\Factory $instance */
  17233. $instance->flushSections();
  17234. }
  17235. /**
  17236. * Add new loop to the stack.
  17237. *
  17238. * @param \Countable|array $data
  17239. * @return void
  17240. * @static
  17241. */ public static function addLoop($data)
  17242. {
  17243. /** @var \Illuminate\View\Factory $instance */
  17244. $instance->addLoop($data);
  17245. }
  17246. /**
  17247. * Increment the top loop's indices.
  17248. *
  17249. * @return void
  17250. * @static
  17251. */ public static function incrementLoopIndices()
  17252. {
  17253. /** @var \Illuminate\View\Factory $instance */
  17254. $instance->incrementLoopIndices();
  17255. }
  17256. /**
  17257. * Pop a loop from the top of the loop stack.
  17258. *
  17259. * @return void
  17260. * @static
  17261. */ public static function popLoop()
  17262. {
  17263. /** @var \Illuminate\View\Factory $instance */
  17264. $instance->popLoop();
  17265. }
  17266. /**
  17267. * Get an instance of the last loop in the stack.
  17268. *
  17269. * @return \stdClass|null
  17270. * @static
  17271. */ public static function getLastLoop()
  17272. {
  17273. /** @var \Illuminate\View\Factory $instance */
  17274. return $instance->getLastLoop();
  17275. }
  17276. /**
  17277. * Get the entire loop stack.
  17278. *
  17279. * @return array
  17280. * @static
  17281. */ public static function getLoopStack()
  17282. {
  17283. /** @var \Illuminate\View\Factory $instance */
  17284. return $instance->getLoopStack();
  17285. }
  17286. /**
  17287. * Start injecting content into a push section.
  17288. *
  17289. * @param string $section
  17290. * @param string $content
  17291. * @return void
  17292. * @static
  17293. */ public static function startPush($section, $content = '')
  17294. {
  17295. /** @var \Illuminate\View\Factory $instance */
  17296. $instance->startPush($section, $content);
  17297. }
  17298. /**
  17299. * Stop injecting content into a push section.
  17300. *
  17301. * @return string
  17302. * @throws \InvalidArgumentException
  17303. * @static
  17304. */ public static function stopPush()
  17305. {
  17306. /** @var \Illuminate\View\Factory $instance */
  17307. return $instance->stopPush();
  17308. }
  17309. /**
  17310. * Start prepending content into a push section.
  17311. *
  17312. * @param string $section
  17313. * @param string $content
  17314. * @return void
  17315. * @static
  17316. */ public static function startPrepend($section, $content = '')
  17317. {
  17318. /** @var \Illuminate\View\Factory $instance */
  17319. $instance->startPrepend($section, $content);
  17320. }
  17321. /**
  17322. * Stop prepending content into a push section.
  17323. *
  17324. * @return string
  17325. * @throws \InvalidArgumentException
  17326. * @static
  17327. */ public static function stopPrepend()
  17328. {
  17329. /** @var \Illuminate\View\Factory $instance */
  17330. return $instance->stopPrepend();
  17331. }
  17332. /**
  17333. * Get the string contents of a push section.
  17334. *
  17335. * @param string $section
  17336. * @param string $default
  17337. * @return string
  17338. * @static
  17339. */ public static function yieldPushContent($section, $default = '')
  17340. {
  17341. /** @var \Illuminate\View\Factory $instance */
  17342. return $instance->yieldPushContent($section, $default);
  17343. }
  17344. /**
  17345. * Flush all of the stacks.
  17346. *
  17347. * @return void
  17348. * @static
  17349. */ public static function flushStacks()
  17350. {
  17351. /** @var \Illuminate\View\Factory $instance */
  17352. $instance->flushStacks();
  17353. }
  17354. /**
  17355. * Start a translation block.
  17356. *
  17357. * @param array $replacements
  17358. * @return void
  17359. * @static
  17360. */ public static function startTranslation($replacements = [])
  17361. {
  17362. /** @var \Illuminate\View\Factory $instance */
  17363. $instance->startTranslation($replacements);
  17364. }
  17365. /**
  17366. * Render the current translation.
  17367. *
  17368. * @return string
  17369. * @static
  17370. */ public static function renderTranslation()
  17371. {
  17372. /** @var \Illuminate\View\Factory $instance */
  17373. return $instance->renderTranslation();
  17374. }
  17375. }
  17376. }
  17377. namespace SimpleSoftwareIO\QrCode\Facades {
  17378. /**
  17379. *
  17380. *
  17381. */ class QrCode {
  17382. /**
  17383. * Generates the QrCode.
  17384. *
  17385. * @param string $text
  17386. * @param string|null $filename
  17387. * @return void|\Illuminate\Support\HtmlString|string
  17388. * @throws WriterException
  17389. * @throws InvalidArgumentException
  17390. * @static
  17391. */ public static function generate($text, $filename = null)
  17392. {
  17393. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17394. return $instance->generate($text, $filename);
  17395. }
  17396. /**
  17397. * Merges an image over the QrCode.
  17398. *
  17399. * @param string $filepath
  17400. * @param float $percentage
  17401. * @param \SimpleSoftwareIO\QrCode\SimpleSoftwareIO\QrCode\boolean|bool $absolute
  17402. * @return \Generator
  17403. * @static
  17404. */ public static function merge($filepath, $percentage = 0.2, $absolute = false)
  17405. {
  17406. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17407. return $instance->merge($filepath, $percentage, $absolute);
  17408. }
  17409. /**
  17410. * Merges an image string with the center of the QrCode.
  17411. *
  17412. * @param string $content
  17413. * @param float $percentage
  17414. * @return \Generator
  17415. * @static
  17416. */ public static function mergeString($content, $percentage = 0.2)
  17417. {
  17418. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17419. return $instance->mergeString($content, $percentage);
  17420. }
  17421. /**
  17422. * Sets the size of the QrCode.
  17423. *
  17424. * @param int $pixels
  17425. * @return \Generator
  17426. * @static
  17427. */ public static function size($pixels)
  17428. {
  17429. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17430. return $instance->size($pixels);
  17431. }
  17432. /**
  17433. * Sets the format of the QrCode.
  17434. *
  17435. * @param string $format
  17436. * @return \Generator
  17437. * @throws InvalidArgumentException
  17438. * @static
  17439. */ public static function format($format)
  17440. {
  17441. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17442. return $instance->format($format);
  17443. }
  17444. /**
  17445. * Sets the foreground 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 color($red, $green, $blue, $alpha = null)
  17454. {
  17455. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17456. return $instance->color($red, $green, $blue, $alpha);
  17457. }
  17458. /**
  17459. * Sets the background color of the QrCode.
  17460. *
  17461. * @param int $red
  17462. * @param int $green
  17463. * @param int $blue
  17464. * @param null|int $alpha
  17465. * @return \Generator
  17466. * @static
  17467. */ public static function backgroundColor($red, $green, $blue, $alpha = null)
  17468. {
  17469. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17470. return $instance->backgroundColor($red, $green, $blue, $alpha);
  17471. }
  17472. /**
  17473. * Sets the eye color for the provided eye index.
  17474. *
  17475. * @param int $eyeNumber
  17476. * @param int $innerRed
  17477. * @param int $innerGreen
  17478. * @param int $innerBlue
  17479. * @param int $outterRed
  17480. * @param int $outterGreen
  17481. * @param int $outterBlue
  17482. * @return \Generator
  17483. * @throws InvalidArgumentException
  17484. * @static
  17485. */ public static function eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed = 0, $outterGreen = 0, $outterBlue = 0)
  17486. {
  17487. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17488. return $instance->eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed, $outterGreen, $outterBlue);
  17489. }
  17490. /**
  17491. *
  17492. *
  17493. * @static
  17494. */ public static function gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type)
  17495. {
  17496. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17497. return $instance->gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type);
  17498. }
  17499. /**
  17500. * Sets the eye style.
  17501. *
  17502. * @param string $style
  17503. * @return \Generator
  17504. * @throws InvalidArgumentException
  17505. * @static
  17506. */ public static function eye($style)
  17507. {
  17508. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17509. return $instance->eye($style);
  17510. }
  17511. /**
  17512. * Sets the style of the blocks for the QrCode.
  17513. *
  17514. * @param string $style
  17515. * @param float $size
  17516. * @return \Generator
  17517. * @throws InvalidArgumentException
  17518. * @static
  17519. */ public static function style($style, $size = 0.5)
  17520. {
  17521. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17522. return $instance->style($style, $size);
  17523. }
  17524. /**
  17525. * Sets the encoding for the QrCode.
  17526. *
  17527. * Possible values are
  17528. * ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6,
  17529. * ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11,
  17530. * ISO-8859-12, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16,
  17531. * SHIFT-JIS, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1256,
  17532. * UTF-16BE, UTF-8, ASCII, GBK, EUC-KR.
  17533. *
  17534. * @param string $encoding
  17535. * @return \Generator
  17536. * @static
  17537. */ public static function encoding($encoding)
  17538. {
  17539. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17540. return $instance->encoding($encoding);
  17541. }
  17542. /**
  17543. * Sets the error correction for the QrCode.
  17544. *
  17545. * L: 7% loss.
  17546. * M: 15% loss.
  17547. * Q: 25% loss.
  17548. * H: 30% loss.
  17549. *
  17550. * @param string $errorCorrection
  17551. * @return \Generator
  17552. * @static
  17553. */ public static function errorCorrection($errorCorrection)
  17554. {
  17555. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17556. return $instance->errorCorrection($errorCorrection);
  17557. }
  17558. /**
  17559. * Sets the margin of the QrCode.
  17560. *
  17561. * @param int $margin
  17562. * @return \Generator
  17563. * @static
  17564. */ public static function margin($margin)
  17565. {
  17566. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17567. return $instance->margin($margin);
  17568. }
  17569. /**
  17570. * Fetches the Writer.
  17571. *
  17572. * @param \BaconQrCode\Renderer\ImageRenderer $renderer
  17573. * @return \BaconQrCode\Writer
  17574. * @static
  17575. */ public static function getWriter($renderer)
  17576. {
  17577. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17578. return $instance->getWriter($renderer);
  17579. }
  17580. /**
  17581. * Fetches the Image Renderer.
  17582. *
  17583. * @return \BaconQrCode\Renderer\ImageRenderer
  17584. * @static
  17585. */ public static function getRenderer()
  17586. {
  17587. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17588. return $instance->getRenderer();
  17589. }
  17590. /**
  17591. * Returns the Renderer Style.
  17592. *
  17593. * @return \BaconQrCode\Renderer\RendererStyle\RendererStyle
  17594. * @static
  17595. */ public static function getRendererStyle()
  17596. {
  17597. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17598. return $instance->getRendererStyle();
  17599. }
  17600. /**
  17601. * Fetches the formatter.
  17602. *
  17603. * @return \BaconQrCode\Renderer\Image\ImageBackEndInterface
  17604. * @static
  17605. */ public static function getFormatter()
  17606. {
  17607. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17608. return $instance->getFormatter();
  17609. }
  17610. /**
  17611. * Fetches the module.
  17612. *
  17613. * @return \BaconQrCode\Renderer\Module\ModuleInterface
  17614. * @static
  17615. */ public static function getModule()
  17616. {
  17617. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17618. return $instance->getModule();
  17619. }
  17620. /**
  17621. * Fetches the eye style.
  17622. *
  17623. * @return \BaconQrCode\Renderer\Eye\EyeInterface
  17624. * @static
  17625. */ public static function getEye()
  17626. {
  17627. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17628. return $instance->getEye();
  17629. }
  17630. /**
  17631. * Fetches the color fill.
  17632. *
  17633. * @return \BaconQrCode\Renderer\RendererStyle\Fill
  17634. * @static
  17635. */ public static function getFill()
  17636. {
  17637. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17638. return $instance->getFill();
  17639. }
  17640. /**
  17641. * Creates a RGB or Alpha channel color.
  17642. *
  17643. * @param int $red
  17644. * @param int $green
  17645. * @param int $blue
  17646. * @param null|int $alpha
  17647. * @return \BaconQrCode\Renderer\Color\ColorInterface
  17648. * @static
  17649. */ public static function createColor($red, $green, $blue, $alpha = null)
  17650. {
  17651. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17652. return $instance->createColor($red, $green, $blue, $alpha);
  17653. }
  17654. }
  17655. }
  17656. namespace Illuminate\Http {
  17657. /**
  17658. *
  17659. *
  17660. */ class Request {
  17661. /**
  17662. *
  17663. *
  17664. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  17665. * @param array $rules
  17666. * @param mixed $params
  17667. * @static
  17668. */ public static function validate($rules, ...$params)
  17669. {
  17670. return \Illuminate\Http\Request::validate($rules, ...$params);
  17671. }
  17672. /**
  17673. *
  17674. *
  17675. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  17676. * @param string $errorBag
  17677. * @param array $rules
  17678. * @param mixed $params
  17679. * @static
  17680. */ public static function validateWithBag($errorBag, $rules, ...$params)
  17681. {
  17682. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  17683. }
  17684. /**
  17685. *
  17686. *
  17687. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17688. * @param mixed $absolute
  17689. * @static
  17690. */ public static function hasValidSignature($absolute = true)
  17691. {
  17692. return \Illuminate\Http\Request::hasValidSignature($absolute);
  17693. }
  17694. /**
  17695. *
  17696. *
  17697. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17698. * @static
  17699. */ public static function hasValidRelativeSignature()
  17700. {
  17701. return \Illuminate\Http\Request::hasValidRelativeSignature();
  17702. }
  17703. /**
  17704. *
  17705. *
  17706. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17707. * @param mixed $ignoreQuery
  17708. * @param mixed $absolute
  17709. * @static
  17710. */ public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  17711. {
  17712. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  17713. }
  17714. /**
  17715. *
  17716. *
  17717. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17718. * @param mixed $ignoreQuery
  17719. * @static
  17720. */ public static function hasValidRelativeSignatureWhileIgnoring($ignoreQuery = [])
  17721. {
  17722. return \Illuminate\Http\Request::hasValidRelativeSignatureWhileIgnoring($ignoreQuery);
  17723. }
  17724. }
  17725. }
  17726. namespace Illuminate\Database\Query {
  17727. /**
  17728. *
  17729. *
  17730. */ class Builder {
  17731. }
  17732. }
  17733. namespace {
  17734. class App extends \Illuminate\Support\Facades\App {}
  17735. class Arr extends \Illuminate\Support\Arr {}
  17736. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  17737. class Auth extends \Illuminate\Support\Facades\Auth {}
  17738. class Blade extends \Illuminate\Support\Facades\Blade {}
  17739. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  17740. class Bus extends \Illuminate\Support\Facades\Bus {}
  17741. class Cache extends \Illuminate\Support\Facades\Cache {}
  17742. class Config extends \Illuminate\Support\Facades\Config {}
  17743. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  17744. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  17745. class Date extends \Illuminate\Support\Carbon {}
  17746. class DB extends \Illuminate\Support\Facades\DB {}
  17747. class Eloquent extends \Illuminate\Database\Eloquent\Model { /**
  17748. * Create and return an un-saved model instance.
  17749. *
  17750. * @param array $attributes
  17751. * @return \Illuminate\Database\Eloquent\TModel
  17752. * @static
  17753. */ public static function make($attributes = [])
  17754. {
  17755. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17756. return $instance->make($attributes);
  17757. }
  17758. /**
  17759. * Register a new global scope.
  17760. *
  17761. * @param string $identifier
  17762. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  17763. * @return \Illuminate\Database\Eloquent\Builder|static
  17764. * @static
  17765. */ public static function withGlobalScope($identifier, $scope)
  17766. {
  17767. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17768. return $instance->withGlobalScope($identifier, $scope);
  17769. }
  17770. /**
  17771. * Remove a registered global scope.
  17772. *
  17773. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  17774. * @return \Illuminate\Database\Eloquent\Builder|static
  17775. * @static
  17776. */ public static function withoutGlobalScope($scope)
  17777. {
  17778. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17779. return $instance->withoutGlobalScope($scope);
  17780. }
  17781. /**
  17782. * Remove all or passed registered global scopes.
  17783. *
  17784. * @param array|null $scopes
  17785. * @return \Illuminate\Database\Eloquent\Builder|static
  17786. * @static
  17787. */ public static function withoutGlobalScopes($scopes = null)
  17788. {
  17789. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17790. return $instance->withoutGlobalScopes($scopes);
  17791. }
  17792. /**
  17793. * Get an array of global scopes that were removed from the query.
  17794. *
  17795. * @return array
  17796. * @static
  17797. */ public static function removedScopes()
  17798. {
  17799. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17800. return $instance->removedScopes();
  17801. }
  17802. /**
  17803. * Add a where clause on the primary key to the query.
  17804. *
  17805. * @param mixed $id
  17806. * @return \Illuminate\Database\Eloquent\Builder|static
  17807. * @static
  17808. */ public static function whereKey($id)
  17809. {
  17810. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17811. return $instance->whereKey($id);
  17812. }
  17813. /**
  17814. * Add a where clause on the primary key to the query.
  17815. *
  17816. * @param mixed $id
  17817. * @return \Illuminate\Database\Eloquent\Builder|static
  17818. * @static
  17819. */ public static function whereKeyNot($id)
  17820. {
  17821. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17822. return $instance->whereKeyNot($id);
  17823. }
  17824. /**
  17825. * Add a basic where clause to the query.
  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\Builder|static
  17832. * @static
  17833. */ public static function where($column, $operator = null, $value = null, $boolean = 'and')
  17834. {
  17835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17836. return $instance->where($column, $operator, $value, $boolean);
  17837. }
  17838. /**
  17839. * Add a basic where clause to the query, and return the first result.
  17840. *
  17841. * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  17842. * @param mixed $operator
  17843. * @param mixed $value
  17844. * @param string $boolean
  17845. * @return \Illuminate\Database\Eloquent\TModel|null
  17846. * @static
  17847. */ public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  17848. {
  17849. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17850. return $instance->firstWhere($column, $operator, $value, $boolean);
  17851. }
  17852. /**
  17853. * Add an "or where" clause to the query.
  17854. *
  17855. * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column
  17856. * @param mixed $operator
  17857. * @param mixed $value
  17858. * @return \Illuminate\Database\Eloquent\Builder|static
  17859. * @static
  17860. */ public static function orWhere($column, $operator = null, $value = null)
  17861. {
  17862. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17863. return $instance->orWhere($column, $operator, $value);
  17864. }
  17865. /**
  17866. * Add a basic "where not" clause to the query.
  17867. *
  17868. * @param (\Closure(static): mixed)|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  17869. * @param mixed $operator
  17870. * @param mixed $value
  17871. * @param string $boolean
  17872. * @return \Illuminate\Database\Eloquent\Builder|static
  17873. * @static
  17874. */ public static function whereNot($column, $operator = null, $value = null, $boolean = 'and')
  17875. {
  17876. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17877. return $instance->whereNot($column, $operator, $value, $boolean);
  17878. }
  17879. /**
  17880. * Add an "or where not" clause to the query.
  17881. *
  17882. * @param (\Closure(static): mixed)|array|string|\Illuminate\Contracts\Database\Query\Expression $column
  17883. * @param mixed $operator
  17884. * @param mixed $value
  17885. * @return \Illuminate\Database\Eloquent\Builder|static
  17886. * @static
  17887. */ public static function orWhereNot($column, $operator = null, $value = null)
  17888. {
  17889. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17890. return $instance->orWhereNot($column, $operator, $value);
  17891. }
  17892. /**
  17893. * Add an "order by" clause for a timestamp to the query.
  17894. *
  17895. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  17896. * @return \Illuminate\Database\Eloquent\Builder|static
  17897. * @static
  17898. */ public static function latest($column = null)
  17899. {
  17900. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17901. return $instance->latest($column);
  17902. }
  17903. /**
  17904. * Add an "order by" clause for a timestamp to the query.
  17905. *
  17906. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  17907. * @return \Illuminate\Database\Eloquent\Builder|static
  17908. * @static
  17909. */ public static function oldest($column = null)
  17910. {
  17911. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17912. return $instance->oldest($column);
  17913. }
  17914. /**
  17915. * Create a collection of models from plain arrays.
  17916. *
  17917. * @param array $items
  17918. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  17919. * @static
  17920. */ public static function hydrate($items)
  17921. {
  17922. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17923. return $instance->hydrate($items);
  17924. }
  17925. /**
  17926. * Create a collection of models from a raw query.
  17927. *
  17928. * @param string $query
  17929. * @param array $bindings
  17930. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  17931. * @static
  17932. */ public static function fromQuery($query, $bindings = [])
  17933. {
  17934. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17935. return $instance->fromQuery($query, $bindings);
  17936. }
  17937. /**
  17938. * Find a model by its primary key.
  17939. *
  17940. * @param mixed $id
  17941. * @param array|string $columns
  17942. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel|null)
  17943. * @static
  17944. */ public static function find($id, $columns = [])
  17945. {
  17946. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17947. return $instance->find($id, $columns);
  17948. }
  17949. /**
  17950. * Find multiple models by their primary keys.
  17951. *
  17952. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  17953. * @param array|string $columns
  17954. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  17955. * @static
  17956. */ public static function findMany($ids, $columns = [])
  17957. {
  17958. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17959. return $instance->findMany($ids, $columns);
  17960. }
  17961. /**
  17962. * Find a model by its primary key or throw an exception.
  17963. *
  17964. * @param mixed $id
  17965. * @param array|string $columns
  17966. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
  17967. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  17968. * @static
  17969. */ public static function findOrFail($id, $columns = [])
  17970. {
  17971. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17972. return $instance->findOrFail($id, $columns);
  17973. }
  17974. /**
  17975. * Find a model by its primary key or return fresh model instance.
  17976. *
  17977. * @param mixed $id
  17978. * @param array|string $columns
  17979. * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
  17980. * @static
  17981. */ public static function findOrNew($id, $columns = [])
  17982. {
  17983. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17984. return $instance->findOrNew($id, $columns);
  17985. }
  17986. /**
  17987. * Find a model by its primary key or call a callback.
  17988. *
  17989. * @template TValue
  17990. * @param mixed $id
  17991. * @param (\Closure(): TValue)|\Illuminate\Database\Eloquent\list<string>|string $columns
  17992. * @param (\Closure(): TValue)|null $callback
  17993. * @return ( $id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>)
  17994. * ? \Illuminate\Database\Eloquent\Collection<int, TModel>
  17995. * : TModel|TValue
  17996. * )
  17997. * @static
  17998. */ public static function findOr($id, $columns = [], $callback = null)
  17999. {
  18000. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18001. return $instance->findOr($id, $columns, $callback);
  18002. }
  18003. /**
  18004. * Get the first record matching the attributes or instantiate it.
  18005. *
  18006. * @param array $attributes
  18007. * @param array $values
  18008. * @return \Illuminate\Database\Eloquent\TModel
  18009. * @static
  18010. */ public static function firstOrNew($attributes = [], $values = [])
  18011. {
  18012. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18013. return $instance->firstOrNew($attributes, $values);
  18014. }
  18015. /**
  18016. * Get the first record matching the attributes. If the record is not found, create it.
  18017. *
  18018. * @param array $attributes
  18019. * @param array $values
  18020. * @return \Illuminate\Database\Eloquent\TModel
  18021. * @static
  18022. */ public static function firstOrCreate($attributes = [], $values = [])
  18023. {
  18024. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18025. return $instance->firstOrCreate($attributes, $values);
  18026. }
  18027. /**
  18028. * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record.
  18029. *
  18030. * @param array $attributes
  18031. * @param array $values
  18032. * @return \Illuminate\Database\Eloquent\TModel
  18033. * @static
  18034. */ public static function createOrFirst($attributes = [], $values = [])
  18035. {
  18036. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18037. return $instance->createOrFirst($attributes, $values);
  18038. }
  18039. /**
  18040. * Create or update a record matching the attributes, and fill it with values.
  18041. *
  18042. * @param array $attributes
  18043. * @param array $values
  18044. * @return \Illuminate\Database\Eloquent\TModel
  18045. * @static
  18046. */ public static function updateOrCreate($attributes, $values = [])
  18047. {
  18048. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18049. return $instance->updateOrCreate($attributes, $values);
  18050. }
  18051. /**
  18052. * Execute the query and get the first result or throw an exception.
  18053. *
  18054. * @param array|string $columns
  18055. * @return \Illuminate\Database\Eloquent\TModel
  18056. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  18057. * @static
  18058. */ public static function firstOrFail($columns = [])
  18059. {
  18060. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18061. return $instance->firstOrFail($columns);
  18062. }
  18063. /**
  18064. * Execute the query and get the first result or call a callback.
  18065. *
  18066. * @template TValue
  18067. * @param (\Closure(): TValue)|\Illuminate\Database\Eloquent\list<string> $columns
  18068. * @param (\Closure(): TValue)|null $callback
  18069. * @return \Illuminate\Database\Eloquent\TModel|\Illuminate\Database\Eloquent\TValue
  18070. * @static
  18071. */ public static function firstOr($columns = [], $callback = null)
  18072. {
  18073. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18074. return $instance->firstOr($columns, $callback);
  18075. }
  18076. /**
  18077. * Execute the query and get the first result if it's the sole matching record.
  18078. *
  18079. * @param array|string $columns
  18080. * @return \Illuminate\Database\Eloquent\TModel
  18081. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  18082. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18083. * @static
  18084. */ public static function sole($columns = [])
  18085. {
  18086. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18087. return $instance->sole($columns);
  18088. }
  18089. /**
  18090. * Get a single column's value from the first result of a query.
  18091. *
  18092. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  18093. * @return mixed
  18094. * @static
  18095. */ public static function value($column)
  18096. {
  18097. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18098. return $instance->value($column);
  18099. }
  18100. /**
  18101. * Get a single column's value from the first result of a query if it's the sole matching record.
  18102. *
  18103. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  18104. * @return mixed
  18105. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  18106. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18107. * @static
  18108. */ public static function soleValue($column)
  18109. {
  18110. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18111. return $instance->soleValue($column);
  18112. }
  18113. /**
  18114. * Get a single column's value from the first result of the query or throw an exception.
  18115. *
  18116. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  18117. * @return mixed
  18118. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<TModel>
  18119. * @static
  18120. */ public static function valueOrFail($column)
  18121. {
  18122. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18123. return $instance->valueOrFail($column);
  18124. }
  18125. /**
  18126. * Execute the query as a "select" statement.
  18127. *
  18128. * @param array|string $columns
  18129. * @return \Illuminate\Database\Eloquent\Collection<int, TModel>
  18130. * @static
  18131. */ public static function get($columns = [])
  18132. {
  18133. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18134. return $instance->get($columns);
  18135. }
  18136. /**
  18137. * Get the hydrated models without eager loading.
  18138. *
  18139. * @param array|string $columns
  18140. * @return array<int, TModel>
  18141. * @static
  18142. */ public static function getModels($columns = [])
  18143. {
  18144. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18145. return $instance->getModels($columns);
  18146. }
  18147. /**
  18148. * Eager load the relationships for the models.
  18149. *
  18150. * @param array<int, TModel> $models
  18151. * @return array<int, TModel>
  18152. * @static
  18153. */ public static function eagerLoadRelations($models)
  18154. {
  18155. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18156. return $instance->eagerLoadRelations($models);
  18157. }
  18158. /**
  18159. * Register a closure to be invoked after the query is executed.
  18160. *
  18161. * @param \Closure $callback
  18162. * @return \Illuminate\Database\Eloquent\Builder|static
  18163. * @static
  18164. */ public static function afterQuery($callback)
  18165. {
  18166. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18167. return $instance->afterQuery($callback);
  18168. }
  18169. /**
  18170. * Invoke the "after query" modification callbacks.
  18171. *
  18172. * @param mixed $result
  18173. * @return mixed
  18174. * @static
  18175. */ public static function applyAfterQueryCallbacks($result)
  18176. {
  18177. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18178. return $instance->applyAfterQueryCallbacks($result);
  18179. }
  18180. /**
  18181. * Get a lazy collection for the given query.
  18182. *
  18183. * @return \Illuminate\Support\LazyCollection<int, TModel>
  18184. * @static
  18185. */ public static function cursor()
  18186. {
  18187. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18188. return $instance->cursor();
  18189. }
  18190. /**
  18191. * Get a collection with the values of a given column.
  18192. *
  18193. * @param string|\Illuminate\Contracts\Database\Query\Expression $column
  18194. * @param string|null $key
  18195. * @return \Illuminate\Support\Collection<array-key, mixed>
  18196. * @static
  18197. */ public static function pluck($column, $key = null)
  18198. {
  18199. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18200. return $instance->pluck($column, $key);
  18201. }
  18202. /**
  18203. * Paginate the given query.
  18204. *
  18205. * @param int|null|\Closure $perPage
  18206. * @param array|string $columns
  18207. * @param string $pageName
  18208. * @param int|null $page
  18209. * @param \Closure|int|null $total
  18210. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  18211. * @throws \InvalidArgumentException
  18212. * @static
  18213. */ public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null, $total = null)
  18214. {
  18215. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18216. return $instance->paginate($perPage, $columns, $pageName, $page, $total);
  18217. }
  18218. /**
  18219. * Paginate the given query into a simple paginator.
  18220. *
  18221. * @param int|null $perPage
  18222. * @param array|string $columns
  18223. * @param string $pageName
  18224. * @param int|null $page
  18225. * @return \Illuminate\Contracts\Pagination\Paginator
  18226. * @static
  18227. */ public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  18228. {
  18229. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18230. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  18231. }
  18232. /**
  18233. * Paginate the given query into a cursor paginator.
  18234. *
  18235. * @param int|null $perPage
  18236. * @param array|string $columns
  18237. * @param string $cursorName
  18238. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  18239. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  18240. * @static
  18241. */ public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  18242. {
  18243. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18244. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  18245. }
  18246. /**
  18247. * Save a new model and return the instance.
  18248. *
  18249. * @param array $attributes
  18250. * @return \Illuminate\Database\Eloquent\TModel
  18251. * @static
  18252. */ public static function create($attributes = [])
  18253. {
  18254. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18255. return $instance->create($attributes);
  18256. }
  18257. /**
  18258. * Save a new model and return the instance. Allow mass-assignment.
  18259. *
  18260. * @param array $attributes
  18261. * @return \Illuminate\Database\Eloquent\TModel
  18262. * @static
  18263. */ public static function forceCreate($attributes)
  18264. {
  18265. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18266. return $instance->forceCreate($attributes);
  18267. }
  18268. /**
  18269. * Save a new model instance with mass assignment without raising model events.
  18270. *
  18271. * @param array $attributes
  18272. * @return \Illuminate\Database\Eloquent\TModel
  18273. * @static
  18274. */ public static function forceCreateQuietly($attributes = [])
  18275. {
  18276. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18277. return $instance->forceCreateQuietly($attributes);
  18278. }
  18279. /**
  18280. * Insert new records or update the existing ones.
  18281. *
  18282. * @param array $values
  18283. * @param array|string $uniqueBy
  18284. * @param array|null $update
  18285. * @return int
  18286. * @static
  18287. */ public static function upsert($values, $uniqueBy, $update = null)
  18288. {
  18289. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18290. return $instance->upsert($values, $uniqueBy, $update);
  18291. }
  18292. /**
  18293. * Register a replacement for the default delete function.
  18294. *
  18295. * @param \Closure $callback
  18296. * @return void
  18297. * @static
  18298. */ public static function onDelete($callback)
  18299. {
  18300. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18301. $instance->onDelete($callback);
  18302. }
  18303. /**
  18304. * Call the given local model scopes.
  18305. *
  18306. * @param array|string $scopes
  18307. * @return static|mixed
  18308. * @static
  18309. */ public static function scopes($scopes)
  18310. {
  18311. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18312. return $instance->scopes($scopes);
  18313. }
  18314. /**
  18315. * Apply the scopes to the Eloquent builder instance and return it.
  18316. *
  18317. * @return static
  18318. * @static
  18319. */ public static function applyScopes()
  18320. {
  18321. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18322. return $instance->applyScopes();
  18323. }
  18324. /**
  18325. * Prevent the specified relations from being eager loaded.
  18326. *
  18327. * @param mixed $relations
  18328. * @return \Illuminate\Database\Eloquent\Builder|static
  18329. * @static
  18330. */ public static function without($relations)
  18331. {
  18332. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18333. return $instance->without($relations);
  18334. }
  18335. /**
  18336. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  18337. *
  18338. * @param array<array-key, array|(\Closure(\Illuminate\Database\Eloquent\Relations\Relation<*,*,*>): mixed)|string>|string $relations
  18339. * @return \Illuminate\Database\Eloquent\Builder|static
  18340. * @static
  18341. */ public static function withOnly($relations)
  18342. {
  18343. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18344. return $instance->withOnly($relations);
  18345. }
  18346. /**
  18347. * Create a new instance of the model being queried.
  18348. *
  18349. * @param array $attributes
  18350. * @return \Illuminate\Database\Eloquent\TModel
  18351. * @static
  18352. */ public static function newModelInstance($attributes = [])
  18353. {
  18354. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18355. return $instance->newModelInstance($attributes);
  18356. }
  18357. /**
  18358. * Apply query-time casts to the model instance.
  18359. *
  18360. * @param array $casts
  18361. * @return \Illuminate\Database\Eloquent\Builder|static
  18362. * @static
  18363. */ public static function withCasts($casts)
  18364. {
  18365. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18366. return $instance->withCasts($casts);
  18367. }
  18368. /**
  18369. * Execute the given Closure within a transaction savepoint if needed.
  18370. *
  18371. * @template TModelValue
  18372. * @param \Closure(): TModelValue $scope
  18373. * @return \Illuminate\Database\Eloquent\TModelValue
  18374. * @static
  18375. */ public static function withSavepointIfNeeded($scope)
  18376. {
  18377. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18378. return $instance->withSavepointIfNeeded($scope);
  18379. }
  18380. /**
  18381. * Get the underlying query builder instance.
  18382. *
  18383. * @return \Illuminate\Database\Query\Builder
  18384. * @static
  18385. */ public static function getQuery()
  18386. {
  18387. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18388. return $instance->getQuery();
  18389. }
  18390. /**
  18391. * Set the underlying query builder instance.
  18392. *
  18393. * @param \Illuminate\Database\Query\Builder $query
  18394. * @return \Illuminate\Database\Eloquent\Builder|static
  18395. * @static
  18396. */ public static function setQuery($query)
  18397. {
  18398. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18399. return $instance->setQuery($query);
  18400. }
  18401. /**
  18402. * Get a base query builder instance.
  18403. *
  18404. * @return \Illuminate\Database\Query\Builder
  18405. * @static
  18406. */ public static function toBase()
  18407. {
  18408. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18409. return $instance->toBase();
  18410. }
  18411. /**
  18412. * Get the relationships being eagerly loaded.
  18413. *
  18414. * @return array
  18415. * @static
  18416. */ public static function getEagerLoads()
  18417. {
  18418. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18419. return $instance->getEagerLoads();
  18420. }
  18421. /**
  18422. * Set the relationships being eagerly loaded.
  18423. *
  18424. * @param array $eagerLoad
  18425. * @return \Illuminate\Database\Eloquent\Builder|static
  18426. * @static
  18427. */ public static function setEagerLoads($eagerLoad)
  18428. {
  18429. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18430. return $instance->setEagerLoads($eagerLoad);
  18431. }
  18432. /**
  18433. * Indicate that the given relationships should not be eagerly loaded.
  18434. *
  18435. * @param array $relations
  18436. * @return \Illuminate\Database\Eloquent\Builder|static
  18437. * @static
  18438. */ public static function withoutEagerLoad($relations)
  18439. {
  18440. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18441. return $instance->withoutEagerLoad($relations);
  18442. }
  18443. /**
  18444. * Flush the relationships being eagerly loaded.
  18445. *
  18446. * @return \Illuminate\Database\Eloquent\Builder|static
  18447. * @static
  18448. */ public static function withoutEagerLoads()
  18449. {
  18450. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18451. return $instance->withoutEagerLoads();
  18452. }
  18453. /**
  18454. * Get the model instance being queried.
  18455. *
  18456. * @return \Illuminate\Database\Eloquent\TModel
  18457. * @static
  18458. */ public static function getModel()
  18459. {
  18460. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18461. return $instance->getModel();
  18462. }
  18463. /**
  18464. * Set a model instance for the model being queried.
  18465. *
  18466. * @template TModelNew of \Illuminate\Database\Eloquent\Model
  18467. * @param \Illuminate\Database\Eloquent\TModelNew $model
  18468. * @return \Illuminate\Database\Eloquent\static<TModelNew>
  18469. * @static
  18470. */ public static function setModel($model)
  18471. {
  18472. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18473. return $instance->setModel($model);
  18474. }
  18475. /**
  18476. * Get the given macro by name.
  18477. *
  18478. * @param string $name
  18479. * @return \Closure
  18480. * @static
  18481. */ public static function getMacro($name)
  18482. {
  18483. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18484. return $instance->getMacro($name);
  18485. }
  18486. /**
  18487. * Checks if a macro is registered.
  18488. *
  18489. * @param string $name
  18490. * @return bool
  18491. * @static
  18492. */ public static function hasMacro($name)
  18493. {
  18494. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18495. return $instance->hasMacro($name);
  18496. }
  18497. /**
  18498. * Get the given global macro by name.
  18499. *
  18500. * @param string $name
  18501. * @return \Closure
  18502. * @static
  18503. */ public static function getGlobalMacro($name)
  18504. {
  18505. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  18506. }
  18507. /**
  18508. * Checks if a global macro is registered.
  18509. *
  18510. * @param string $name
  18511. * @return bool
  18512. * @static
  18513. */ public static function hasGlobalMacro($name)
  18514. {
  18515. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  18516. }
  18517. /**
  18518. * Clone the Eloquent query builder.
  18519. *
  18520. * @return static
  18521. * @static
  18522. */ public static function clone()
  18523. {
  18524. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18525. return $instance->clone();
  18526. }
  18527. /**
  18528. * Chunk the results of the query.
  18529. *
  18530. * @param int $count
  18531. * @param \Illuminate\Database\Eloquent\callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  18532. * @return bool
  18533. * @static
  18534. */ public static function chunk($count, $callback)
  18535. {
  18536. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18537. return $instance->chunk($count, $callback);
  18538. }
  18539. /**
  18540. * Run a map over each item while chunking.
  18541. *
  18542. * @template TReturn
  18543. * @param \Illuminate\Database\Eloquent\callable(TValue): TReturn $callback
  18544. * @param int $count
  18545. * @return \Illuminate\Support\Collection<int, TReturn>
  18546. * @static
  18547. */ public static function chunkMap($callback, $count = 1000)
  18548. {
  18549. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18550. return $instance->chunkMap($callback, $count);
  18551. }
  18552. /**
  18553. * Execute a callback over each item while chunking.
  18554. *
  18555. * @param \Illuminate\Database\Eloquent\callable(TValue, int): mixed $callback
  18556. * @param int $count
  18557. * @return bool
  18558. * @throws \RuntimeException
  18559. * @static
  18560. */ public static function each($callback, $count = 1000)
  18561. {
  18562. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18563. return $instance->each($callback, $count);
  18564. }
  18565. /**
  18566. * Chunk the results of a query by comparing IDs.
  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 chunkById($count, $callback, $column = null, $alias = null)
  18575. {
  18576. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18577. return $instance->chunkById($count, $callback, $column, $alias);
  18578. }
  18579. /**
  18580. * Chunk the results of a query by comparing IDs in descending 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. * @return bool
  18587. * @static
  18588. */ public static function chunkByIdDesc($count, $callback, $column = null, $alias = null)
  18589. {
  18590. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18591. return $instance->chunkByIdDesc($count, $callback, $column, $alias);
  18592. }
  18593. /**
  18594. * Chunk the results of a query by comparing IDs in a given order.
  18595. *
  18596. * @param int $count
  18597. * @param \Illuminate\Database\Eloquent\callable(\Illuminate\Support\Collection<int, TValue>, int): mixed $callback
  18598. * @param string|null $column
  18599. * @param string|null $alias
  18600. * @param bool $descending
  18601. * @return bool
  18602. * @throws \RuntimeException
  18603. * @static
  18604. */ public static function orderedChunkById($count, $callback, $column = null, $alias = null, $descending = false)
  18605. {
  18606. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18607. return $instance->orderedChunkById($count, $callback, $column, $alias, $descending);
  18608. }
  18609. /**
  18610. * Execute a callback over each item while chunking by ID.
  18611. *
  18612. * @param \Illuminate\Database\Eloquent\callable(TValue, int): mixed $callback
  18613. * @param int $count
  18614. * @param string|null $column
  18615. * @param string|null $alias
  18616. * @return bool
  18617. * @static
  18618. */ public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  18619. {
  18620. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18621. return $instance->eachById($callback, $count, $column, $alias);
  18622. }
  18623. /**
  18624. * Query lazily, by chunks of the given size.
  18625. *
  18626. * @param int $chunkSize
  18627. * @return \Illuminate\Support\LazyCollection
  18628. * @throws \InvalidArgumentException
  18629. * @static
  18630. */ public static function lazy($chunkSize = 1000)
  18631. {
  18632. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18633. return $instance->lazy($chunkSize);
  18634. }
  18635. /**
  18636. * Query lazily, by chunking the results of a query by comparing IDs.
  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 lazyById($chunkSize = 1000, $column = null, $alias = null)
  18645. {
  18646. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18647. return $instance->lazyById($chunkSize, $column, $alias);
  18648. }
  18649. /**
  18650. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  18651. *
  18652. * @param int $chunkSize
  18653. * @param string|null $column
  18654. * @param string|null $alias
  18655. * @return \Illuminate\Support\LazyCollection
  18656. * @throws \InvalidArgumentException
  18657. * @static
  18658. */ public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  18659. {
  18660. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18661. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  18662. }
  18663. /**
  18664. * Execute the query and get the first result.
  18665. *
  18666. * @param array|string $columns
  18667. * @return \Illuminate\Database\Eloquent\TValue|null
  18668. * @static
  18669. */ public static function first($columns = [])
  18670. {
  18671. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18672. return $instance->first($columns);
  18673. }
  18674. /**
  18675. * Execute the query and get the first result if it's the sole matching record.
  18676. *
  18677. * @param array|string $columns
  18678. * @return \Illuminate\Database\Eloquent\TValue
  18679. * @throws \Illuminate\Database\RecordsNotFoundException
  18680. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18681. * @static
  18682. */ public static function baseSole($columns = [])
  18683. {
  18684. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18685. return $instance->baseSole($columns);
  18686. }
  18687. /**
  18688. * Pass the query to a given callback.
  18689. *
  18690. * @param \Illuminate\Database\Eloquent\callable($this): mixed $callback
  18691. * @return \Illuminate\Database\Eloquent\Builder|static
  18692. * @static
  18693. */ public static function tap($callback)
  18694. {
  18695. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18696. return $instance->tap($callback);
  18697. }
  18698. /**
  18699. * Apply the callback if the given "value" is (or resolves to) truthy.
  18700. *
  18701. * @template TWhenParameter
  18702. * @template TWhenReturnType
  18703. * @param (\Closure($this): TWhenParameter)|\Illuminate\Database\Eloquent\TWhenParameter|null $value
  18704. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $callback
  18705. * @param (callable($this, TWhenParameter): TWhenReturnType)|null $default
  18706. * @return $this|\Illuminate\Database\Eloquent\TWhenReturnType
  18707. * @static
  18708. */ public static function when($value = null, $callback = null, $default = null)
  18709. {
  18710. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18711. return $instance->when($value, $callback, $default);
  18712. }
  18713. /**
  18714. * Apply the callback if the given "value" is (or resolves to) falsy.
  18715. *
  18716. * @template TUnlessParameter
  18717. * @template TUnlessReturnType
  18718. * @param (\Closure($this): TUnlessParameter)|\Illuminate\Database\Eloquent\TUnlessParameter|null $value
  18719. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  18720. * @param (callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  18721. * @return $this|\Illuminate\Database\Eloquent\TUnlessReturnType
  18722. * @static
  18723. */ public static function unless($value = null, $callback = null, $default = null)
  18724. {
  18725. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18726. return $instance->unless($value, $callback, $default);
  18727. }
  18728. /**
  18729. * Add a relationship count / exists condition to the query.
  18730. *
  18731. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18732. * @param string $operator
  18733. * @param int $count
  18734. * @param string $boolean
  18735. * @param \Closure|null $callback
  18736. * @return \Illuminate\Database\Eloquent\Builder|static
  18737. * @throws \RuntimeException
  18738. * @static
  18739. */ public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18740. {
  18741. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18742. return $instance->has($relation, $operator, $count, $boolean, $callback);
  18743. }
  18744. /**
  18745. * Add a relationship count / exists condition to the query with an "or".
  18746. *
  18747. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18748. * @param string $operator
  18749. * @param int $count
  18750. * @return \Illuminate\Database\Eloquent\Builder|static
  18751. * @static
  18752. */ public static function orHas($relation, $operator = '>=', $count = 1)
  18753. {
  18754. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18755. return $instance->orHas($relation, $operator, $count);
  18756. }
  18757. /**
  18758. * Add a relationship count / exists condition to the query.
  18759. *
  18760. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18761. * @param string $boolean
  18762. * @param \Closure|null $callback
  18763. * @return \Illuminate\Database\Eloquent\Builder|static
  18764. * @static
  18765. */ public static function doesntHave($relation, $boolean = 'and', $callback = null)
  18766. {
  18767. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18768. return $instance->doesntHave($relation, $boolean, $callback);
  18769. }
  18770. /**
  18771. * Add a relationship count / exists condition to the query with an "or".
  18772. *
  18773. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18774. * @return \Illuminate\Database\Eloquent\Builder|static
  18775. * @static
  18776. */ public static function orDoesntHave($relation)
  18777. {
  18778. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18779. return $instance->orDoesntHave($relation);
  18780. }
  18781. /**
  18782. * Add a relationship count / exists condition to the query with where clauses.
  18783. *
  18784. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18785. * @param \Closure|null $callback
  18786. * @param string $operator
  18787. * @param int $count
  18788. * @return \Illuminate\Database\Eloquent\Builder|static
  18789. * @static
  18790. */ public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18791. {
  18792. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18793. return $instance->whereHas($relation, $callback, $operator, $count);
  18794. }
  18795. /**
  18796. * Add a relationship count / exists condition to the query with where clauses.
  18797. *
  18798. * Also load the relationship with same condition.
  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 withWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18807. {
  18808. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18809. return $instance->withWhereHas($relation, $callback, $operator, $count);
  18810. }
  18811. /**
  18812. * Add a relationship count / exists condition to the query with where clauses and an "or".
  18813. *
  18814. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18815. * @param \Closure|null $callback
  18816. * @param string $operator
  18817. * @param int $count
  18818. * @return \Illuminate\Database\Eloquent\Builder|static
  18819. * @static
  18820. */ public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18821. {
  18822. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18823. return $instance->orWhereHas($relation, $callback, $operator, $count);
  18824. }
  18825. /**
  18826. * Add a relationship count / exists condition to the query with where clauses.
  18827. *
  18828. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18829. * @param \Closure|null $callback
  18830. * @return \Illuminate\Database\Eloquent\Builder|static
  18831. * @static
  18832. */ public static function whereDoesntHave($relation, $callback = null)
  18833. {
  18834. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18835. return $instance->whereDoesntHave($relation, $callback);
  18836. }
  18837. /**
  18838. * Add a relationship count / exists condition to the query with where clauses and an "or".
  18839. *
  18840. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18841. * @param \Closure|null $callback
  18842. * @return \Illuminate\Database\Eloquent\Builder|static
  18843. * @static
  18844. */ public static function orWhereDoesntHave($relation, $callback = null)
  18845. {
  18846. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18847. return $instance->orWhereDoesntHave($relation, $callback);
  18848. }
  18849. /**
  18850. * Add a polymorphic relationship count / exists condition to the query.
  18851. *
  18852. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18853. * @param string|array $types
  18854. * @param string $operator
  18855. * @param int $count
  18856. * @param string $boolean
  18857. * @param \Closure|null $callback
  18858. * @return \Illuminate\Database\Eloquent\Builder|static
  18859. * @static
  18860. */ public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18861. {
  18862. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18863. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  18864. }
  18865. /**
  18866. * Add a polymorphic relationship count / exists condition to the query with an "or".
  18867. *
  18868. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18869. * @param string|array $types
  18870. * @param string $operator
  18871. * @param int $count
  18872. * @return \Illuminate\Database\Eloquent\Builder|static
  18873. * @static
  18874. */ public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  18875. {
  18876. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18877. return $instance->orHasMorph($relation, $types, $operator, $count);
  18878. }
  18879. /**
  18880. * Add a polymorphic relationship count / exists condition to the query.
  18881. *
  18882. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18883. * @param string|array $types
  18884. * @param string $boolean
  18885. * @param \Closure|null $callback
  18886. * @return \Illuminate\Database\Eloquent\Builder|static
  18887. * @static
  18888. */ public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  18889. {
  18890. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18891. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  18892. }
  18893. /**
  18894. * Add a polymorphic relationship count / exists condition to the query with an "or".
  18895. *
  18896. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18897. * @param string|array $types
  18898. * @return \Illuminate\Database\Eloquent\Builder|static
  18899. * @static
  18900. */ public static function orDoesntHaveMorph($relation, $types)
  18901. {
  18902. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18903. return $instance->orDoesntHaveMorph($relation, $types);
  18904. }
  18905. /**
  18906. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  18907. *
  18908. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18909. * @param string|array $types
  18910. * @param \Closure|null $callback
  18911. * @param string $operator
  18912. * @param int $count
  18913. * @return \Illuminate\Database\Eloquent\Builder|static
  18914. * @static
  18915. */ public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  18916. {
  18917. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18918. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  18919. }
  18920. /**
  18921. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  18922. *
  18923. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18924. * @param string|array $types
  18925. * @param \Closure|null $callback
  18926. * @param string $operator
  18927. * @param int $count
  18928. * @return \Illuminate\Database\Eloquent\Builder|static
  18929. * @static
  18930. */ public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  18931. {
  18932. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18933. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  18934. }
  18935. /**
  18936. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  18937. *
  18938. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18939. * @param string|array $types
  18940. * @param \Closure|null $callback
  18941. * @return \Illuminate\Database\Eloquent\Builder|static
  18942. * @static
  18943. */ public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  18944. {
  18945. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18946. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  18947. }
  18948. /**
  18949. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  18950. *
  18951. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18952. * @param string|array $types
  18953. * @param \Closure|null $callback
  18954. * @return \Illuminate\Database\Eloquent\Builder|static
  18955. * @static
  18956. */ public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  18957. {
  18958. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18959. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  18960. }
  18961. /**
  18962. * Add a basic 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 whereRelation($relation, $column, $operator = null, $value = null)
  18971. {
  18972. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18973. return $instance->whereRelation($relation, $column, $operator, $value);
  18974. }
  18975. /**
  18976. * Add an "or where" clause to a relationship query.
  18977. *
  18978. * @param \Illuminate\Database\Eloquent\Relations\Relation<*, *, *>|string $relation
  18979. * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  18980. * @param mixed $operator
  18981. * @param mixed $value
  18982. * @return \Illuminate\Database\Eloquent\Builder|static
  18983. * @static
  18984. */ public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  18985. {
  18986. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18987. return $instance->orWhereRelation($relation, $column, $operator, $value);
  18988. }
  18989. /**
  18990. * Add a polymorphic relationship condition to the query with a where clause.
  18991. *
  18992. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  18993. * @param string|array $types
  18994. * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  18995. * @param mixed $operator
  18996. * @param mixed $value
  18997. * @return \Illuminate\Database\Eloquent\Builder|static
  18998. * @static
  18999. */ public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  19000. {
  19001. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19002. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  19003. }
  19004. /**
  19005. * Add a polymorphic relationship condition to the query with an "or where" clause.
  19006. *
  19007. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19008. * @param string|array $types
  19009. * @param \Closure|string|array|\Illuminate\Contracts\Database\Query\Expression $column
  19010. * @param mixed $operator
  19011. * @param mixed $value
  19012. * @return \Illuminate\Database\Eloquent\Builder|static
  19013. * @static
  19014. */ public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  19015. {
  19016. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19017. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  19018. }
  19019. /**
  19020. * Add a morph-to relationship condition to the query.
  19021. *
  19022. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19023. * @param \Illuminate\Database\Eloquent\Model|string|null $model
  19024. * @return \Illuminate\Database\Eloquent\Builder|static
  19025. * @static
  19026. */ public static function whereMorphedTo($relation, $model, $boolean = 'and')
  19027. {
  19028. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19029. return $instance->whereMorphedTo($relation, $model, $boolean);
  19030. }
  19031. /**
  19032. * Add a not morph-to relationship condition to the query.
  19033. *
  19034. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19035. * @param \Illuminate\Database\Eloquent\Model|string $model
  19036. * @return \Illuminate\Database\Eloquent\Builder|static
  19037. * @static
  19038. */ public static function whereNotMorphedTo($relation, $model, $boolean = 'and')
  19039. {
  19040. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19041. return $instance->whereNotMorphedTo($relation, $model, $boolean);
  19042. }
  19043. /**
  19044. * Add a morph-to relationship condition to the query with an "or where" clause.
  19045. *
  19046. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19047. * @param \Illuminate\Database\Eloquent\Model|string|null $model
  19048. * @return \Illuminate\Database\Eloquent\Builder|static
  19049. * @static
  19050. */ public static function orWhereMorphedTo($relation, $model)
  19051. {
  19052. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19053. return $instance->orWhereMorphedTo($relation, $model);
  19054. }
  19055. /**
  19056. * Add a not morph-to relationship condition to the query with an "or where" clause.
  19057. *
  19058. * @param \Illuminate\Database\Eloquent\Relations\MorphTo<*, *>|string $relation
  19059. * @param \Illuminate\Database\Eloquent\Model|string $model
  19060. * @return \Illuminate\Database\Eloquent\Builder|static
  19061. * @static
  19062. */ public static function orWhereNotMorphedTo($relation, $model)
  19063. {
  19064. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19065. return $instance->orWhereNotMorphedTo($relation, $model);
  19066. }
  19067. /**
  19068. * Add a "belongs to" relationship where clause to the query.
  19069. *
  19070. * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<int, \Illuminate\Database\Eloquent\Model> $related
  19071. * @param string|null $relationshipName
  19072. * @param string $boolean
  19073. * @return \Illuminate\Database\Eloquent\Builder|static
  19074. * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
  19075. * @static
  19076. */ public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  19077. {
  19078. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19079. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  19080. }
  19081. /**
  19082. * Add a "BelongsTo" relationship with an "or where" clause to the query.
  19083. *
  19084. * @param \Illuminate\Database\Eloquent\Model $related
  19085. * @param string|null $relationshipName
  19086. * @return \Illuminate\Database\Eloquent\Builder|static
  19087. * @throws \RuntimeException
  19088. * @static
  19089. */ public static function orWhereBelongsTo($related, $relationshipName = null)
  19090. {
  19091. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19092. return $instance->orWhereBelongsTo($related, $relationshipName);
  19093. }
  19094. /**
  19095. * Add subselect queries to include an aggregate value for a relationship.
  19096. *
  19097. * @param mixed $relations
  19098. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19099. * @param string $function
  19100. * @return \Illuminate\Database\Eloquent\Builder|static
  19101. * @static
  19102. */ public static function withAggregate($relations, $column, $function = null)
  19103. {
  19104. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19105. return $instance->withAggregate($relations, $column, $function);
  19106. }
  19107. /**
  19108. * Add subselect queries to count the relations.
  19109. *
  19110. * @param mixed $relations
  19111. * @return \Illuminate\Database\Eloquent\Builder|static
  19112. * @static
  19113. */ public static function withCount($relations)
  19114. {
  19115. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19116. return $instance->withCount($relations);
  19117. }
  19118. /**
  19119. * Add subselect queries to include the max of the relation's column.
  19120. *
  19121. * @param string|array $relation
  19122. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19123. * @return \Illuminate\Database\Eloquent\Builder|static
  19124. * @static
  19125. */ public static function withMax($relation, $column)
  19126. {
  19127. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19128. return $instance->withMax($relation, $column);
  19129. }
  19130. /**
  19131. * Add subselect queries to include the min of the relation's column.
  19132. *
  19133. * @param string|array $relation
  19134. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19135. * @return \Illuminate\Database\Eloquent\Builder|static
  19136. * @static
  19137. */ public static function withMin($relation, $column)
  19138. {
  19139. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19140. return $instance->withMin($relation, $column);
  19141. }
  19142. /**
  19143. * Add subselect queries to include the sum of the relation's column.
  19144. *
  19145. * @param string|array $relation
  19146. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19147. * @return \Illuminate\Database\Eloquent\Builder|static
  19148. * @static
  19149. */ public static function withSum($relation, $column)
  19150. {
  19151. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19152. return $instance->withSum($relation, $column);
  19153. }
  19154. /**
  19155. * Add subselect queries to include the average of the relation's column.
  19156. *
  19157. * @param string|array $relation
  19158. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19159. * @return \Illuminate\Database\Eloquent\Builder|static
  19160. * @static
  19161. */ public static function withAvg($relation, $column)
  19162. {
  19163. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19164. return $instance->withAvg($relation, $column);
  19165. }
  19166. /**
  19167. * Add subselect queries to include the existence of related models.
  19168. *
  19169. * @param string|array $relation
  19170. * @return \Illuminate\Database\Eloquent\Builder|static
  19171. * @static
  19172. */ public static function withExists($relation)
  19173. {
  19174. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19175. return $instance->withExists($relation);
  19176. }
  19177. /**
  19178. * Merge the where constraints from another query to the current query.
  19179. *
  19180. * @param \Illuminate\Database\Eloquent\Builder<*> $from
  19181. * @return \Illuminate\Database\Eloquent\Builder|static
  19182. * @static
  19183. */ public static function mergeConstraintsFrom($from)
  19184. {
  19185. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19186. return $instance->mergeConstraintsFrom($from);
  19187. }
  19188. /**
  19189. *
  19190. *
  19191. * @see \Slowlyo\Support\Macro::handle()
  19192. * @param mixed $column
  19193. * @param mixed $value
  19194. * @static
  19195. */ public static function findInSet($column, $value)
  19196. {
  19197. return \Illuminate\Database\Eloquent\Builder::findInSet($column, $value);
  19198. }
  19199. /**
  19200. *
  19201. *
  19202. * @see \Slowlyo\Support\Macro::handle()
  19203. * @static
  19204. */ public static function toRawSql()
  19205. {
  19206. return \Illuminate\Database\Eloquent\Builder::toRawSql();
  19207. }
  19208. /**
  19209. * Set the columns to be selected.
  19210. *
  19211. * @param array|mixed $columns
  19212. * @return \Illuminate\Database\Query\Builder
  19213. * @static
  19214. */ public static function select($columns = [])
  19215. {
  19216. /** @var \Illuminate\Database\Query\Builder $instance */
  19217. return $instance->select($columns);
  19218. }
  19219. /**
  19220. * Add a subselect expression to the query.
  19221. *
  19222. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19223. * @param string $as
  19224. * @return \Illuminate\Database\Query\Builder
  19225. * @throws \InvalidArgumentException
  19226. * @static
  19227. */ public static function selectSub($query, $as)
  19228. {
  19229. /** @var \Illuminate\Database\Query\Builder $instance */
  19230. return $instance->selectSub($query, $as);
  19231. }
  19232. /**
  19233. * Add a new "raw" select expression to the query.
  19234. *
  19235. * @param string $expression
  19236. * @param array $bindings
  19237. * @return \Illuminate\Database\Query\Builder
  19238. * @static
  19239. */ public static function selectRaw($expression, $bindings = [])
  19240. {
  19241. /** @var \Illuminate\Database\Query\Builder $instance */
  19242. return $instance->selectRaw($expression, $bindings);
  19243. }
  19244. /**
  19245. * Makes "from" fetch from a subquery.
  19246. *
  19247. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19248. * @param string $as
  19249. * @return \Illuminate\Database\Query\Builder
  19250. * @throws \InvalidArgumentException
  19251. * @static
  19252. */ public static function fromSub($query, $as)
  19253. {
  19254. /** @var \Illuminate\Database\Query\Builder $instance */
  19255. return $instance->fromSub($query, $as);
  19256. }
  19257. /**
  19258. * Add a raw from clause to the query.
  19259. *
  19260. * @param string $expression
  19261. * @param mixed $bindings
  19262. * @return \Illuminate\Database\Query\Builder
  19263. * @static
  19264. */ public static function fromRaw($expression, $bindings = [])
  19265. {
  19266. /** @var \Illuminate\Database\Query\Builder $instance */
  19267. return $instance->fromRaw($expression, $bindings);
  19268. }
  19269. /**
  19270. * Add a new select column to the query.
  19271. *
  19272. * @param array|mixed $column
  19273. * @return \Illuminate\Database\Query\Builder
  19274. * @static
  19275. */ public static function addSelect($column)
  19276. {
  19277. /** @var \Illuminate\Database\Query\Builder $instance */
  19278. return $instance->addSelect($column);
  19279. }
  19280. /**
  19281. * Force the query to only return distinct results.
  19282. *
  19283. * @return \Illuminate\Database\Query\Builder
  19284. * @static
  19285. */ public static function distinct()
  19286. {
  19287. /** @var \Illuminate\Database\Query\Builder $instance */
  19288. return $instance->distinct();
  19289. }
  19290. /**
  19291. * Set the table which the query is targeting.
  19292. *
  19293. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $table
  19294. * @param string|null $as
  19295. * @return \Illuminate\Database\Query\Builder
  19296. * @static
  19297. */ public static function from($table, $as = null)
  19298. {
  19299. /** @var \Illuminate\Database\Query\Builder $instance */
  19300. return $instance->from($table, $as);
  19301. }
  19302. /**
  19303. * Add an index hint to suggest a query index.
  19304. *
  19305. * @param string $index
  19306. * @return \Illuminate\Database\Query\Builder
  19307. * @static
  19308. */ public static function useIndex($index)
  19309. {
  19310. /** @var \Illuminate\Database\Query\Builder $instance */
  19311. return $instance->useIndex($index);
  19312. }
  19313. /**
  19314. * Add an index hint to force a query index.
  19315. *
  19316. * @param string $index
  19317. * @return \Illuminate\Database\Query\Builder
  19318. * @static
  19319. */ public static function forceIndex($index)
  19320. {
  19321. /** @var \Illuminate\Database\Query\Builder $instance */
  19322. return $instance->forceIndex($index);
  19323. }
  19324. /**
  19325. * Add an index hint to ignore a query index.
  19326. *
  19327. * @param string $index
  19328. * @return \Illuminate\Database\Query\Builder
  19329. * @static
  19330. */ public static function ignoreIndex($index)
  19331. {
  19332. /** @var \Illuminate\Database\Query\Builder $instance */
  19333. return $instance->ignoreIndex($index);
  19334. }
  19335. /**
  19336. * Add a join clause to the query.
  19337. *
  19338. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19339. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19340. * @param string|null $operator
  19341. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19342. * @param string $type
  19343. * @param bool $where
  19344. * @return \Illuminate\Database\Query\Builder
  19345. * @static
  19346. */ public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19347. {
  19348. /** @var \Illuminate\Database\Query\Builder $instance */
  19349. return $instance->join($table, $first, $operator, $second, $type, $where);
  19350. }
  19351. /**
  19352. * Add a "join where" clause to the query.
  19353. *
  19354. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19355. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19356. * @param string $operator
  19357. * @param \Illuminate\Contracts\Database\Query\Expression|string $second
  19358. * @param string $type
  19359. * @return \Illuminate\Database\Query\Builder
  19360. * @static
  19361. */ public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  19362. {
  19363. /** @var \Illuminate\Database\Query\Builder $instance */
  19364. return $instance->joinWhere($table, $first, $operator, $second, $type);
  19365. }
  19366. /**
  19367. * Add a subquery join clause to the query.
  19368. *
  19369. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19370. * @param string $as
  19371. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19372. * @param string|null $operator
  19373. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19374. * @param string $type
  19375. * @param bool $where
  19376. * @return \Illuminate\Database\Query\Builder
  19377. * @throws \InvalidArgumentException
  19378. * @static
  19379. */ public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19380. {
  19381. /** @var \Illuminate\Database\Query\Builder $instance */
  19382. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  19383. }
  19384. /**
  19385. * Add a lateral join clause to the query.
  19386. *
  19387. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19388. * @param string $as
  19389. * @param string $type
  19390. * @return \Illuminate\Database\Query\Builder
  19391. * @static
  19392. */ public static function joinLateral($query, $as, $type = 'inner')
  19393. {
  19394. /** @var \Illuminate\Database\Query\Builder $instance */
  19395. return $instance->joinLateral($query, $as, $type);
  19396. }
  19397. /**
  19398. * Add a lateral left join to the query.
  19399. *
  19400. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19401. * @param string $as
  19402. * @return \Illuminate\Database\Query\Builder
  19403. * @static
  19404. */ public static function leftJoinLateral($query, $as)
  19405. {
  19406. /** @var \Illuminate\Database\Query\Builder $instance */
  19407. return $instance->leftJoinLateral($query, $as);
  19408. }
  19409. /**
  19410. * Add a left join 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|null $operator
  19415. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19416. * @return \Illuminate\Database\Query\Builder
  19417. * @static
  19418. */ public static function leftJoin($table, $first, $operator = null, $second = null)
  19419. {
  19420. /** @var \Illuminate\Database\Query\Builder $instance */
  19421. return $instance->leftJoin($table, $first, $operator, $second);
  19422. }
  19423. /**
  19424. * Add a "join where" clause to the query.
  19425. *
  19426. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19427. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19428. * @param string $operator
  19429. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19430. * @return \Illuminate\Database\Query\Builder
  19431. * @static
  19432. */ public static function leftJoinWhere($table, $first, $operator, $second)
  19433. {
  19434. /** @var \Illuminate\Database\Query\Builder $instance */
  19435. return $instance->leftJoinWhere($table, $first, $operator, $second);
  19436. }
  19437. /**
  19438. * Add a subquery left join to the query.
  19439. *
  19440. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19441. * @param string $as
  19442. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|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 leftJoinSub($query, $as, $first, $operator = null, $second = null)
  19448. {
  19449. /** @var \Illuminate\Database\Query\Builder $instance */
  19450. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  19451. }
  19452. /**
  19453. * Add a right join to the query.
  19454. *
  19455. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19456. * @param \Closure|string $first
  19457. * @param string|null $operator
  19458. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19459. * @return \Illuminate\Database\Query\Builder
  19460. * @static
  19461. */ public static function rightJoin($table, $first, $operator = null, $second = null)
  19462. {
  19463. /** @var \Illuminate\Database\Query\Builder $instance */
  19464. return $instance->rightJoin($table, $first, $operator, $second);
  19465. }
  19466. /**
  19467. * Add a "right join where" clause to the query.
  19468. *
  19469. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19470. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $first
  19471. * @param string $operator
  19472. * @param \Illuminate\Contracts\Database\Query\Expression|string $second
  19473. * @return \Illuminate\Database\Query\Builder
  19474. * @static
  19475. */ public static function rightJoinWhere($table, $first, $operator, $second)
  19476. {
  19477. /** @var \Illuminate\Database\Query\Builder $instance */
  19478. return $instance->rightJoinWhere($table, $first, $operator, $second);
  19479. }
  19480. /**
  19481. * Add a subquery right join to the query.
  19482. *
  19483. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19484. * @param string $as
  19485. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string $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 rightJoinSub($query, $as, $first, $operator = null, $second = null)
  19491. {
  19492. /** @var \Illuminate\Database\Query\Builder $instance */
  19493. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  19494. }
  19495. /**
  19496. * Add a "cross join" clause to the query.
  19497. *
  19498. * @param \Illuminate\Contracts\Database\Query\Expression|string $table
  19499. * @param \Closure|\Illuminate\Contracts\Database\Query\Expression|string|null $first
  19500. * @param string|null $operator
  19501. * @param \Illuminate\Contracts\Database\Query\Expression|string|null $second
  19502. * @return \Illuminate\Database\Query\Builder
  19503. * @static
  19504. */ public static function crossJoin($table, $first = null, $operator = null, $second = null)
  19505. {
  19506. /** @var \Illuminate\Database\Query\Builder $instance */
  19507. return $instance->crossJoin($table, $first, $operator, $second);
  19508. }
  19509. /**
  19510. * Add a subquery cross join to the query.
  19511. *
  19512. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  19513. * @param string $as
  19514. * @return \Illuminate\Database\Query\Builder
  19515. * @static
  19516. */ public static function crossJoinSub($query, $as)
  19517. {
  19518. /** @var \Illuminate\Database\Query\Builder $instance */
  19519. return $instance->crossJoinSub($query, $as);
  19520. }
  19521. /**
  19522. * Merge an array of where clauses and bindings.
  19523. *
  19524. * @param array $wheres
  19525. * @param array $bindings
  19526. * @return \Illuminate\Database\Query\Builder
  19527. * @static
  19528. */ public static function mergeWheres($wheres, $bindings)
  19529. {
  19530. /** @var \Illuminate\Database\Query\Builder $instance */
  19531. return $instance->mergeWheres($wheres, $bindings);
  19532. }
  19533. /**
  19534. * Prepare the value and operator for a where clause.
  19535. *
  19536. * @param string $value
  19537. * @param string $operator
  19538. * @param bool $useDefault
  19539. * @return array
  19540. * @throws \InvalidArgumentException
  19541. * @static
  19542. */ public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  19543. {
  19544. /** @var \Illuminate\Database\Query\Builder $instance */
  19545. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  19546. }
  19547. /**
  19548. * Add a "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. * @param string|null $boolean
  19554. * @return \Illuminate\Database\Query\Builder
  19555. * @static
  19556. */ public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  19557. {
  19558. /** @var \Illuminate\Database\Query\Builder $instance */
  19559. return $instance->whereColumn($first, $operator, $second, $boolean);
  19560. }
  19561. /**
  19562. * Add an "or where" clause comparing two columns to the query.
  19563. *
  19564. * @param \Illuminate\Contracts\Database\Query\Expression|string|array $first
  19565. * @param string|null $operator
  19566. * @param string|null $second
  19567. * @return \Illuminate\Database\Query\Builder
  19568. * @static
  19569. */ public static function orWhereColumn($first, $operator = null, $second = null)
  19570. {
  19571. /** @var \Illuminate\Database\Query\Builder $instance */
  19572. return $instance->orWhereColumn($first, $operator, $second);
  19573. }
  19574. /**
  19575. * Add a raw where clause to the query.
  19576. *
  19577. * @param string $sql
  19578. * @param mixed $bindings
  19579. * @param string $boolean
  19580. * @return \Illuminate\Database\Query\Builder
  19581. * @static
  19582. */ public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  19583. {
  19584. /** @var \Illuminate\Database\Query\Builder $instance */
  19585. return $instance->whereRaw($sql, $bindings, $boolean);
  19586. }
  19587. /**
  19588. * Add a raw or where clause to the query.
  19589. *
  19590. * @param string $sql
  19591. * @param mixed $bindings
  19592. * @return \Illuminate\Database\Query\Builder
  19593. * @static
  19594. */ public static function orWhereRaw($sql, $bindings = [])
  19595. {
  19596. /** @var \Illuminate\Database\Query\Builder $instance */
  19597. return $instance->orWhereRaw($sql, $bindings);
  19598. }
  19599. /**
  19600. * Add a "where like" clause to the query.
  19601. *
  19602. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19603. * @param string $value
  19604. * @param bool $caseSensitive
  19605. * @param string $boolean
  19606. * @param bool $not
  19607. * @return \Illuminate\Database\Query\Builder
  19608. * @static
  19609. */ public static function whereLike($column, $value, $caseSensitive = false, $boolean = 'and', $not = false)
  19610. {
  19611. /** @var \Illuminate\Database\Query\Builder $instance */
  19612. return $instance->whereLike($column, $value, $caseSensitive, $boolean, $not);
  19613. }
  19614. /**
  19615. * Add an "or where like" clause to the query.
  19616. *
  19617. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19618. * @param string $value
  19619. * @param bool $caseSensitive
  19620. * @return \Illuminate\Database\Query\Builder
  19621. * @static
  19622. */ public static function orWhereLike($column, $value, $caseSensitive = false)
  19623. {
  19624. /** @var \Illuminate\Database\Query\Builder $instance */
  19625. return $instance->orWhereLike($column, $value, $caseSensitive);
  19626. }
  19627. /**
  19628. * Add a "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. * @param string $boolean
  19634. * @return \Illuminate\Database\Query\Builder
  19635. * @static
  19636. */ public static function whereNotLike($column, $value, $caseSensitive = false, $boolean = 'and')
  19637. {
  19638. /** @var \Illuminate\Database\Query\Builder $instance */
  19639. return $instance->whereNotLike($column, $value, $caseSensitive, $boolean);
  19640. }
  19641. /**
  19642. * Add an "or where not like" clause to the query.
  19643. *
  19644. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19645. * @param string $value
  19646. * @param bool $caseSensitive
  19647. * @return \Illuminate\Database\Query\Builder
  19648. * @static
  19649. */ public static function orWhereNotLike($column, $value, $caseSensitive = false)
  19650. {
  19651. /** @var \Illuminate\Database\Query\Builder $instance */
  19652. return $instance->orWhereNotLike($column, $value, $caseSensitive);
  19653. }
  19654. /**
  19655. * Add a "where in" clause to the query.
  19656. *
  19657. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19658. * @param mixed $values
  19659. * @param string $boolean
  19660. * @param bool $not
  19661. * @return \Illuminate\Database\Query\Builder
  19662. * @static
  19663. */ public static function whereIn($column, $values, $boolean = 'and', $not = false)
  19664. {
  19665. /** @var \Illuminate\Database\Query\Builder $instance */
  19666. return $instance->whereIn($column, $values, $boolean, $not);
  19667. }
  19668. /**
  19669. * Add an "or where in" clause to the query.
  19670. *
  19671. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19672. * @param mixed $values
  19673. * @return \Illuminate\Database\Query\Builder
  19674. * @static
  19675. */ public static function orWhereIn($column, $values)
  19676. {
  19677. /** @var \Illuminate\Database\Query\Builder $instance */
  19678. return $instance->orWhereIn($column, $values);
  19679. }
  19680. /**
  19681. * Add a "where not in" clause to the query.
  19682. *
  19683. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19684. * @param mixed $values
  19685. * @param string $boolean
  19686. * @return \Illuminate\Database\Query\Builder
  19687. * @static
  19688. */ public static function whereNotIn($column, $values, $boolean = 'and')
  19689. {
  19690. /** @var \Illuminate\Database\Query\Builder $instance */
  19691. return $instance->whereNotIn($column, $values, $boolean);
  19692. }
  19693. /**
  19694. * Add an "or where not in" clause to the query.
  19695. *
  19696. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19697. * @param mixed $values
  19698. * @return \Illuminate\Database\Query\Builder
  19699. * @static
  19700. */ public static function orWhereNotIn($column, $values)
  19701. {
  19702. /** @var \Illuminate\Database\Query\Builder $instance */
  19703. return $instance->orWhereNotIn($column, $values);
  19704. }
  19705. /**
  19706. * Add a "where in raw" clause for integer values to the query.
  19707. *
  19708. * @param string $column
  19709. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19710. * @param string $boolean
  19711. * @param bool $not
  19712. * @return \Illuminate\Database\Query\Builder
  19713. * @static
  19714. */ public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  19715. {
  19716. /** @var \Illuminate\Database\Query\Builder $instance */
  19717. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  19718. }
  19719. /**
  19720. * Add an "or where in raw" clause for integer values to the query.
  19721. *
  19722. * @param string $column
  19723. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19724. * @return \Illuminate\Database\Query\Builder
  19725. * @static
  19726. */ public static function orWhereIntegerInRaw($column, $values)
  19727. {
  19728. /** @var \Illuminate\Database\Query\Builder $instance */
  19729. return $instance->orWhereIntegerInRaw($column, $values);
  19730. }
  19731. /**
  19732. * Add a "where not in raw" clause for integer values to the query.
  19733. *
  19734. * @param string $column
  19735. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19736. * @param string $boolean
  19737. * @return \Illuminate\Database\Query\Builder
  19738. * @static
  19739. */ public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  19740. {
  19741. /** @var \Illuminate\Database\Query\Builder $instance */
  19742. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  19743. }
  19744. /**
  19745. * Add an "or where not in raw" clause for integer values to the query.
  19746. *
  19747. * @param string $column
  19748. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19749. * @return \Illuminate\Database\Query\Builder
  19750. * @static
  19751. */ public static function orWhereIntegerNotInRaw($column, $values)
  19752. {
  19753. /** @var \Illuminate\Database\Query\Builder $instance */
  19754. return $instance->orWhereIntegerNotInRaw($column, $values);
  19755. }
  19756. /**
  19757. * Add a "where null" clause to the query.
  19758. *
  19759. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $columns
  19760. * @param string $boolean
  19761. * @param bool $not
  19762. * @return \Illuminate\Database\Query\Builder
  19763. * @static
  19764. */ public static function whereNull($columns, $boolean = 'and', $not = false)
  19765. {
  19766. /** @var \Illuminate\Database\Query\Builder $instance */
  19767. return $instance->whereNull($columns, $boolean, $not);
  19768. }
  19769. /**
  19770. * Add an "or where null" clause to the query.
  19771. *
  19772. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $column
  19773. * @return \Illuminate\Database\Query\Builder
  19774. * @static
  19775. */ public static function orWhereNull($column)
  19776. {
  19777. /** @var \Illuminate\Database\Query\Builder $instance */
  19778. return $instance->orWhereNull($column);
  19779. }
  19780. /**
  19781. * Add a "where not null" clause to the query.
  19782. *
  19783. * @param string|array|\Illuminate\Contracts\Database\Query\Expression $columns
  19784. * @param string $boolean
  19785. * @return \Illuminate\Database\Query\Builder
  19786. * @static
  19787. */ public static function whereNotNull($columns, $boolean = 'and')
  19788. {
  19789. /** @var \Illuminate\Database\Query\Builder $instance */
  19790. return $instance->whereNotNull($columns, $boolean);
  19791. }
  19792. /**
  19793. * Add a where between statement to the query.
  19794. *
  19795. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19796. * @param \Illuminate\Database\Query\iterable $values
  19797. * @param string $boolean
  19798. * @param bool $not
  19799. * @return \Illuminate\Database\Query\Builder
  19800. * @static
  19801. */ public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  19802. {
  19803. /** @var \Illuminate\Database\Query\Builder $instance */
  19804. return $instance->whereBetween($column, $values, $boolean, $not);
  19805. }
  19806. /**
  19807. * Add a where between statement using columns to the query.
  19808. *
  19809. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19810. * @param array $values
  19811. * @param string $boolean
  19812. * @param bool $not
  19813. * @return \Illuminate\Database\Query\Builder
  19814. * @static
  19815. */ public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  19816. {
  19817. /** @var \Illuminate\Database\Query\Builder $instance */
  19818. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  19819. }
  19820. /**
  19821. * Add an or where between statement to the query.
  19822. *
  19823. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19824. * @param \Illuminate\Database\Query\iterable $values
  19825. * @return \Illuminate\Database\Query\Builder
  19826. * @static
  19827. */ public static function orWhereBetween($column, $values)
  19828. {
  19829. /** @var \Illuminate\Database\Query\Builder $instance */
  19830. return $instance->orWhereBetween($column, $values);
  19831. }
  19832. /**
  19833. * Add an or where between statement using columns to the query.
  19834. *
  19835. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19836. * @param array $values
  19837. * @return \Illuminate\Database\Query\Builder
  19838. * @static
  19839. */ public static function orWhereBetweenColumns($column, $values)
  19840. {
  19841. /** @var \Illuminate\Database\Query\Builder $instance */
  19842. return $instance->orWhereBetweenColumns($column, $values);
  19843. }
  19844. /**
  19845. * Add a where not between statement to the query.
  19846. *
  19847. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19848. * @param \Illuminate\Database\Query\iterable $values
  19849. * @param string $boolean
  19850. * @return \Illuminate\Database\Query\Builder
  19851. * @static
  19852. */ public static function whereNotBetween($column, $values, $boolean = 'and')
  19853. {
  19854. /** @var \Illuminate\Database\Query\Builder $instance */
  19855. return $instance->whereNotBetween($column, $values, $boolean);
  19856. }
  19857. /**
  19858. * Add a where not between statement using columns to the query.
  19859. *
  19860. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19861. * @param array $values
  19862. * @param string $boolean
  19863. * @return \Illuminate\Database\Query\Builder
  19864. * @static
  19865. */ public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  19866. {
  19867. /** @var \Illuminate\Database\Query\Builder $instance */
  19868. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  19869. }
  19870. /**
  19871. * Add an or where not between statement to the query.
  19872. *
  19873. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19874. * @param \Illuminate\Database\Query\iterable $values
  19875. * @return \Illuminate\Database\Query\Builder
  19876. * @static
  19877. */ public static function orWhereNotBetween($column, $values)
  19878. {
  19879. /** @var \Illuminate\Database\Query\Builder $instance */
  19880. return $instance->orWhereNotBetween($column, $values);
  19881. }
  19882. /**
  19883. * Add an or where not between statement using columns to the query.
  19884. *
  19885. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19886. * @param array $values
  19887. * @return \Illuminate\Database\Query\Builder
  19888. * @static
  19889. */ public static function orWhereNotBetweenColumns($column, $values)
  19890. {
  19891. /** @var \Illuminate\Database\Query\Builder $instance */
  19892. return $instance->orWhereNotBetweenColumns($column, $values);
  19893. }
  19894. /**
  19895. * Add an "or where not null" clause to the query.
  19896. *
  19897. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19898. * @return \Illuminate\Database\Query\Builder
  19899. * @static
  19900. */ public static function orWhereNotNull($column)
  19901. {
  19902. /** @var \Illuminate\Database\Query\Builder $instance */
  19903. return $instance->orWhereNotNull($column);
  19904. }
  19905. /**
  19906. * Add a "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. * @param string $boolean
  19912. * @return \Illuminate\Database\Query\Builder
  19913. * @static
  19914. */ public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  19915. {
  19916. /** @var \Illuminate\Database\Query\Builder $instance */
  19917. return $instance->whereDate($column, $operator, $value, $boolean);
  19918. }
  19919. /**
  19920. * Add an "or where date" statement to the query.
  19921. *
  19922. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19923. * @param \DateTimeInterface|string|null $operator
  19924. * @param \DateTimeInterface|string|null $value
  19925. * @return \Illuminate\Database\Query\Builder
  19926. * @static
  19927. */ public static function orWhereDate($column, $operator, $value = null)
  19928. {
  19929. /** @var \Illuminate\Database\Query\Builder $instance */
  19930. return $instance->orWhereDate($column, $operator, $value);
  19931. }
  19932. /**
  19933. * Add a "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. * @param string $boolean
  19939. * @return \Illuminate\Database\Query\Builder
  19940. * @static
  19941. */ public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  19942. {
  19943. /** @var \Illuminate\Database\Query\Builder $instance */
  19944. return $instance->whereTime($column, $operator, $value, $boolean);
  19945. }
  19946. /**
  19947. * Add an "or where time" statement to the query.
  19948. *
  19949. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19950. * @param \DateTimeInterface|string|null $operator
  19951. * @param \DateTimeInterface|string|null $value
  19952. * @return \Illuminate\Database\Query\Builder
  19953. * @static
  19954. */ public static function orWhereTime($column, $operator, $value = null)
  19955. {
  19956. /** @var \Illuminate\Database\Query\Builder $instance */
  19957. return $instance->orWhereTime($column, $operator, $value);
  19958. }
  19959. /**
  19960. * Add a "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. * @param string $boolean
  19966. * @return \Illuminate\Database\Query\Builder
  19967. * @static
  19968. */ public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  19969. {
  19970. /** @var \Illuminate\Database\Query\Builder $instance */
  19971. return $instance->whereDay($column, $operator, $value, $boolean);
  19972. }
  19973. /**
  19974. * Add an "or where day" statement to the query.
  19975. *
  19976. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  19977. * @param \DateTimeInterface|string|int|null $operator
  19978. * @param \DateTimeInterface|string|int|null $value
  19979. * @return \Illuminate\Database\Query\Builder
  19980. * @static
  19981. */ public static function orWhereDay($column, $operator, $value = null)
  19982. {
  19983. /** @var \Illuminate\Database\Query\Builder $instance */
  19984. return $instance->orWhereDay($column, $operator, $value);
  19985. }
  19986. /**
  19987. * Add a "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. * @param string $boolean
  19993. * @return \Illuminate\Database\Query\Builder
  19994. * @static
  19995. */ public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  19996. {
  19997. /** @var \Illuminate\Database\Query\Builder $instance */
  19998. return $instance->whereMonth($column, $operator, $value, $boolean);
  19999. }
  20000. /**
  20001. * Add an "or where month" statement to the query.
  20002. *
  20003. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20004. * @param \DateTimeInterface|string|int|null $operator
  20005. * @param \DateTimeInterface|string|int|null $value
  20006. * @return \Illuminate\Database\Query\Builder
  20007. * @static
  20008. */ public static function orWhereMonth($column, $operator, $value = null)
  20009. {
  20010. /** @var \Illuminate\Database\Query\Builder $instance */
  20011. return $instance->orWhereMonth($column, $operator, $value);
  20012. }
  20013. /**
  20014. * Add a "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. * @param string $boolean
  20020. * @return \Illuminate\Database\Query\Builder
  20021. * @static
  20022. */ public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  20023. {
  20024. /** @var \Illuminate\Database\Query\Builder $instance */
  20025. return $instance->whereYear($column, $operator, $value, $boolean);
  20026. }
  20027. /**
  20028. * Add an "or where year" statement to the query.
  20029. *
  20030. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20031. * @param \DateTimeInterface|string|int|null $operator
  20032. * @param \DateTimeInterface|string|int|null $value
  20033. * @return \Illuminate\Database\Query\Builder
  20034. * @static
  20035. */ public static function orWhereYear($column, $operator, $value = null)
  20036. {
  20037. /** @var \Illuminate\Database\Query\Builder $instance */
  20038. return $instance->orWhereYear($column, $operator, $value);
  20039. }
  20040. /**
  20041. * Add a nested where statement to the query.
  20042. *
  20043. * @param \Closure $callback
  20044. * @param string $boolean
  20045. * @return \Illuminate\Database\Query\Builder
  20046. * @static
  20047. */ public static function whereNested($callback, $boolean = 'and')
  20048. {
  20049. /** @var \Illuminate\Database\Query\Builder $instance */
  20050. return $instance->whereNested($callback, $boolean);
  20051. }
  20052. /**
  20053. * Create a new query instance for nested where condition.
  20054. *
  20055. * @return \Illuminate\Database\Query\Builder
  20056. * @static
  20057. */ public static function forNestedWhere()
  20058. {
  20059. /** @var \Illuminate\Database\Query\Builder $instance */
  20060. return $instance->forNestedWhere();
  20061. }
  20062. /**
  20063. * Add another query builder as a nested where to the query builder.
  20064. *
  20065. * @param \Illuminate\Database\Query\Builder $query
  20066. * @param string $boolean
  20067. * @return \Illuminate\Database\Query\Builder
  20068. * @static
  20069. */ public static function addNestedWhereQuery($query, $boolean = 'and')
  20070. {
  20071. /** @var \Illuminate\Database\Query\Builder $instance */
  20072. return $instance->addNestedWhereQuery($query, $boolean);
  20073. }
  20074. /**
  20075. * Add an exists clause to the query.
  20076. *
  20077. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  20078. * @param string $boolean
  20079. * @param bool $not
  20080. * @return \Illuminate\Database\Query\Builder
  20081. * @static
  20082. */ public static function whereExists($callback, $boolean = 'and', $not = false)
  20083. {
  20084. /** @var \Illuminate\Database\Query\Builder $instance */
  20085. return $instance->whereExists($callback, $boolean, $not);
  20086. }
  20087. /**
  20088. * Add an or exists clause to the query.
  20089. *
  20090. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  20091. * @param bool $not
  20092. * @return \Illuminate\Database\Query\Builder
  20093. * @static
  20094. */ public static function orWhereExists($callback, $not = false)
  20095. {
  20096. /** @var \Illuminate\Database\Query\Builder $instance */
  20097. return $instance->orWhereExists($callback, $not);
  20098. }
  20099. /**
  20100. * Add a where not exists clause to the query.
  20101. *
  20102. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  20103. * @param string $boolean
  20104. * @return \Illuminate\Database\Query\Builder
  20105. * @static
  20106. */ public static function whereNotExists($callback, $boolean = 'and')
  20107. {
  20108. /** @var \Illuminate\Database\Query\Builder $instance */
  20109. return $instance->whereNotExists($callback, $boolean);
  20110. }
  20111. /**
  20112. * Add a where not exists clause to the query.
  20113. *
  20114. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $callback
  20115. * @return \Illuminate\Database\Query\Builder
  20116. * @static
  20117. */ public static function orWhereNotExists($callback)
  20118. {
  20119. /** @var \Illuminate\Database\Query\Builder $instance */
  20120. return $instance->orWhereNotExists($callback);
  20121. }
  20122. /**
  20123. * Add an exists clause to the query.
  20124. *
  20125. * @param \Illuminate\Database\Query\Builder $query
  20126. * @param string $boolean
  20127. * @param bool $not
  20128. * @return \Illuminate\Database\Query\Builder
  20129. * @static
  20130. */ public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  20131. {
  20132. /** @var \Illuminate\Database\Query\Builder $instance */
  20133. return $instance->addWhereExistsQuery($query, $boolean, $not);
  20134. }
  20135. /**
  20136. * Adds a where condition using row values.
  20137. *
  20138. * @param array $columns
  20139. * @param string $operator
  20140. * @param array $values
  20141. * @param string $boolean
  20142. * @return \Illuminate\Database\Query\Builder
  20143. * @throws \InvalidArgumentException
  20144. * @static
  20145. */ public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  20146. {
  20147. /** @var \Illuminate\Database\Query\Builder $instance */
  20148. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  20149. }
  20150. /**
  20151. * Adds an or where condition using row values.
  20152. *
  20153. * @param array $columns
  20154. * @param string $operator
  20155. * @param array $values
  20156. * @return \Illuminate\Database\Query\Builder
  20157. * @static
  20158. */ public static function orWhereRowValues($columns, $operator, $values)
  20159. {
  20160. /** @var \Illuminate\Database\Query\Builder $instance */
  20161. return $instance->orWhereRowValues($columns, $operator, $values);
  20162. }
  20163. /**
  20164. * Add a "where JSON contains" clause to the query.
  20165. *
  20166. * @param string $column
  20167. * @param mixed $value
  20168. * @param string $boolean
  20169. * @param bool $not
  20170. * @return \Illuminate\Database\Query\Builder
  20171. * @static
  20172. */ public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  20173. {
  20174. /** @var \Illuminate\Database\Query\Builder $instance */
  20175. return $instance->whereJsonContains($column, $value, $boolean, $not);
  20176. }
  20177. /**
  20178. * Add an "or where JSON contains" clause to the query.
  20179. *
  20180. * @param string $column
  20181. * @param mixed $value
  20182. * @return \Illuminate\Database\Query\Builder
  20183. * @static
  20184. */ public static function orWhereJsonContains($column, $value)
  20185. {
  20186. /** @var \Illuminate\Database\Query\Builder $instance */
  20187. return $instance->orWhereJsonContains($column, $value);
  20188. }
  20189. /**
  20190. * Add a "where JSON not contains" clause to the query.
  20191. *
  20192. * @param string $column
  20193. * @param mixed $value
  20194. * @param string $boolean
  20195. * @return \Illuminate\Database\Query\Builder
  20196. * @static
  20197. */ public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  20198. {
  20199. /** @var \Illuminate\Database\Query\Builder $instance */
  20200. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  20201. }
  20202. /**
  20203. * Add an "or where JSON not contains" clause to the query.
  20204. *
  20205. * @param string $column
  20206. * @param mixed $value
  20207. * @return \Illuminate\Database\Query\Builder
  20208. * @static
  20209. */ public static function orWhereJsonDoesntContain($column, $value)
  20210. {
  20211. /** @var \Illuminate\Database\Query\Builder $instance */
  20212. return $instance->orWhereJsonDoesntContain($column, $value);
  20213. }
  20214. /**
  20215. * Add a "where JSON overlaps" clause to the query.
  20216. *
  20217. * @param string $column
  20218. * @param mixed $value
  20219. * @param string $boolean
  20220. * @param bool $not
  20221. * @return \Illuminate\Database\Query\Builder
  20222. * @static
  20223. */ public static function whereJsonOverlaps($column, $value, $boolean = 'and', $not = false)
  20224. {
  20225. /** @var \Illuminate\Database\Query\Builder $instance */
  20226. return $instance->whereJsonOverlaps($column, $value, $boolean, $not);
  20227. }
  20228. /**
  20229. * Add an "or where JSON overlaps" clause to the query.
  20230. *
  20231. * @param string $column
  20232. * @param mixed $value
  20233. * @return \Illuminate\Database\Query\Builder
  20234. * @static
  20235. */ public static function orWhereJsonOverlaps($column, $value)
  20236. {
  20237. /** @var \Illuminate\Database\Query\Builder $instance */
  20238. return $instance->orWhereJsonOverlaps($column, $value);
  20239. }
  20240. /**
  20241. * Add a "where JSON not overlap" clause to the query.
  20242. *
  20243. * @param string $column
  20244. * @param mixed $value
  20245. * @param string $boolean
  20246. * @return \Illuminate\Database\Query\Builder
  20247. * @static
  20248. */ public static function whereJsonDoesntOverlap($column, $value, $boolean = 'and')
  20249. {
  20250. /** @var \Illuminate\Database\Query\Builder $instance */
  20251. return $instance->whereJsonDoesntOverlap($column, $value, $boolean);
  20252. }
  20253. /**
  20254. * Add an "or where JSON not overlap" clause to the query.
  20255. *
  20256. * @param string $column
  20257. * @param mixed $value
  20258. * @return \Illuminate\Database\Query\Builder
  20259. * @static
  20260. */ public static function orWhereJsonDoesntOverlap($column, $value)
  20261. {
  20262. /** @var \Illuminate\Database\Query\Builder $instance */
  20263. return $instance->orWhereJsonDoesntOverlap($column, $value);
  20264. }
  20265. /**
  20266. * Add a clause that determines if a JSON path exists to the query.
  20267. *
  20268. * @param string $column
  20269. * @param string $boolean
  20270. * @param bool $not
  20271. * @return \Illuminate\Database\Query\Builder
  20272. * @static
  20273. */ public static function whereJsonContainsKey($column, $boolean = 'and', $not = false)
  20274. {
  20275. /** @var \Illuminate\Database\Query\Builder $instance */
  20276. return $instance->whereJsonContainsKey($column, $boolean, $not);
  20277. }
  20278. /**
  20279. * Add an "or" clause that determines if a JSON path exists to the query.
  20280. *
  20281. * @param string $column
  20282. * @return \Illuminate\Database\Query\Builder
  20283. * @static
  20284. */ public static function orWhereJsonContainsKey($column)
  20285. {
  20286. /** @var \Illuminate\Database\Query\Builder $instance */
  20287. return $instance->orWhereJsonContainsKey($column);
  20288. }
  20289. /**
  20290. * Add a clause that determines if a JSON path does not exist to the query.
  20291. *
  20292. * @param string $column
  20293. * @param string $boolean
  20294. * @return \Illuminate\Database\Query\Builder
  20295. * @static
  20296. */ public static function whereJsonDoesntContainKey($column, $boolean = 'and')
  20297. {
  20298. /** @var \Illuminate\Database\Query\Builder $instance */
  20299. return $instance->whereJsonDoesntContainKey($column, $boolean);
  20300. }
  20301. /**
  20302. * Add an "or" clause that determines if a JSON path does not exist to the query.
  20303. *
  20304. * @param string $column
  20305. * @return \Illuminate\Database\Query\Builder
  20306. * @static
  20307. */ public static function orWhereJsonDoesntContainKey($column)
  20308. {
  20309. /** @var \Illuminate\Database\Query\Builder $instance */
  20310. return $instance->orWhereJsonDoesntContainKey($column);
  20311. }
  20312. /**
  20313. * Add a "where JSON length" clause to the query.
  20314. *
  20315. * @param string $column
  20316. * @param mixed $operator
  20317. * @param mixed $value
  20318. * @param string $boolean
  20319. * @return \Illuminate\Database\Query\Builder
  20320. * @static
  20321. */ public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  20322. {
  20323. /** @var \Illuminate\Database\Query\Builder $instance */
  20324. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  20325. }
  20326. /**
  20327. * Add an "or where JSON length" clause to the query.
  20328. *
  20329. * @param string $column
  20330. * @param mixed $operator
  20331. * @param mixed $value
  20332. * @return \Illuminate\Database\Query\Builder
  20333. * @static
  20334. */ public static function orWhereJsonLength($column, $operator, $value = null)
  20335. {
  20336. /** @var \Illuminate\Database\Query\Builder $instance */
  20337. return $instance->orWhereJsonLength($column, $operator, $value);
  20338. }
  20339. /**
  20340. * Handles dynamic "where" clauses to the query.
  20341. *
  20342. * @param string $method
  20343. * @param array $parameters
  20344. * @return \Illuminate\Database\Query\Builder
  20345. * @static
  20346. */ public static function dynamicWhere($method, $parameters)
  20347. {
  20348. /** @var \Illuminate\Database\Query\Builder $instance */
  20349. return $instance->dynamicWhere($method, $parameters);
  20350. }
  20351. /**
  20352. * Add a "where fulltext" clause to the query.
  20353. *
  20354. * @param string|string[] $columns
  20355. * @param string $value
  20356. * @param string $boolean
  20357. * @return \Illuminate\Database\Query\Builder
  20358. * @static
  20359. */ public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  20360. {
  20361. /** @var \Illuminate\Database\Query\Builder $instance */
  20362. return $instance->whereFullText($columns, $value, $options, $boolean);
  20363. }
  20364. /**
  20365. * Add a "or where fulltext" clause to the query.
  20366. *
  20367. * @param string|string[] $columns
  20368. * @param string $value
  20369. * @return \Illuminate\Database\Query\Builder
  20370. * @static
  20371. */ public static function orWhereFullText($columns, $value, $options = [])
  20372. {
  20373. /** @var \Illuminate\Database\Query\Builder $instance */
  20374. return $instance->orWhereFullText($columns, $value, $options);
  20375. }
  20376. /**
  20377. * Add a "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. * @param string $boolean
  20383. * @return \Illuminate\Database\Query\Builder
  20384. * @static
  20385. */ public static function whereAll($columns, $operator = null, $value = null, $boolean = 'and')
  20386. {
  20387. /** @var \Illuminate\Database\Query\Builder $instance */
  20388. return $instance->whereAll($columns, $operator, $value, $boolean);
  20389. }
  20390. /**
  20391. * Add an "or where" clause to the query for multiple columns with "and" conditions between them.
  20392. *
  20393. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20394. * @param mixed $operator
  20395. * @param mixed $value
  20396. * @return \Illuminate\Database\Query\Builder
  20397. * @static
  20398. */ public static function orWhereAll($columns, $operator = null, $value = null)
  20399. {
  20400. /** @var \Illuminate\Database\Query\Builder $instance */
  20401. return $instance->orWhereAll($columns, $operator, $value);
  20402. }
  20403. /**
  20404. * Add a "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. * @param string $boolean
  20410. * @return \Illuminate\Database\Query\Builder
  20411. * @static
  20412. */ public static function whereAny($columns, $operator = null, $value = null, $boolean = 'and')
  20413. {
  20414. /** @var \Illuminate\Database\Query\Builder $instance */
  20415. return $instance->whereAny($columns, $operator, $value, $boolean);
  20416. }
  20417. /**
  20418. * Add an "or where" clause to the query for multiple columns with "or" conditions between them.
  20419. *
  20420. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20421. * @param mixed $operator
  20422. * @param mixed $value
  20423. * @return \Illuminate\Database\Query\Builder
  20424. * @static
  20425. */ public static function orWhereAny($columns, $operator = null, $value = null)
  20426. {
  20427. /** @var \Illuminate\Database\Query\Builder $instance */
  20428. return $instance->orWhereAny($columns, $operator, $value);
  20429. }
  20430. /**
  20431. * Add a "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. * @param string $boolean
  20437. * @return \Illuminate\Database\Query\Builder
  20438. * @static
  20439. */ public static function whereNone($columns, $operator = null, $value = null, $boolean = 'and')
  20440. {
  20441. /** @var \Illuminate\Database\Query\Builder $instance */
  20442. return $instance->whereNone($columns, $operator, $value, $boolean);
  20443. }
  20444. /**
  20445. * Add an "or where not" clause to the query for multiple columns where none of the conditions should be true.
  20446. *
  20447. * @param \Illuminate\Contracts\Database\Query\Expression[]|\Closure[]|string[] $columns
  20448. * @param mixed $operator
  20449. * @param mixed $value
  20450. * @return \Illuminate\Database\Query\Builder
  20451. * @static
  20452. */ public static function orWhereNone($columns, $operator = null, $value = null)
  20453. {
  20454. /** @var \Illuminate\Database\Query\Builder $instance */
  20455. return $instance->orWhereNone($columns, $operator, $value);
  20456. }
  20457. /**
  20458. * Add a "group by" clause to the query.
  20459. *
  20460. * @param array|\Illuminate\Contracts\Database\Query\Expression|string $groups
  20461. * @return \Illuminate\Database\Query\Builder
  20462. * @static
  20463. */ public static function groupBy(...$groups)
  20464. {
  20465. /** @var \Illuminate\Database\Query\Builder $instance */
  20466. return $instance->groupBy(...$groups);
  20467. }
  20468. /**
  20469. * Add a raw groupBy clause to the query.
  20470. *
  20471. * @param string $sql
  20472. * @param array $bindings
  20473. * @return \Illuminate\Database\Query\Builder
  20474. * @static
  20475. */ public static function groupByRaw($sql, $bindings = [])
  20476. {
  20477. /** @var \Illuminate\Database\Query\Builder $instance */
  20478. return $instance->groupByRaw($sql, $bindings);
  20479. }
  20480. /**
  20481. * Add a "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. * @param string $boolean
  20487. * @return \Illuminate\Database\Query\Builder
  20488. * @static
  20489. */ public static function having($column, $operator = null, $value = null, $boolean = 'and')
  20490. {
  20491. /** @var \Illuminate\Database\Query\Builder $instance */
  20492. return $instance->having($column, $operator, $value, $boolean);
  20493. }
  20494. /**
  20495. * Add an "or having" clause to the query.
  20496. *
  20497. * @param \Illuminate\Contracts\Database\Query\Expression|\Closure|string $column
  20498. * @param string|int|float|null $operator
  20499. * @param string|int|float|null $value
  20500. * @return \Illuminate\Database\Query\Builder
  20501. * @static
  20502. */ public static function orHaving($column, $operator = null, $value = null)
  20503. {
  20504. /** @var \Illuminate\Database\Query\Builder $instance */
  20505. return $instance->orHaving($column, $operator, $value);
  20506. }
  20507. /**
  20508. * Add a nested having statement to the query.
  20509. *
  20510. * @param \Closure $callback
  20511. * @param string $boolean
  20512. * @return \Illuminate\Database\Query\Builder
  20513. * @static
  20514. */ public static function havingNested($callback, $boolean = 'and')
  20515. {
  20516. /** @var \Illuminate\Database\Query\Builder $instance */
  20517. return $instance->havingNested($callback, $boolean);
  20518. }
  20519. /**
  20520. * Add another query builder as a nested having to the query builder.
  20521. *
  20522. * @param \Illuminate\Database\Query\Builder $query
  20523. * @param string $boolean
  20524. * @return \Illuminate\Database\Query\Builder
  20525. * @static
  20526. */ public static function addNestedHavingQuery($query, $boolean = 'and')
  20527. {
  20528. /** @var \Illuminate\Database\Query\Builder $instance */
  20529. return $instance->addNestedHavingQuery($query, $boolean);
  20530. }
  20531. /**
  20532. * Add a "having null" clause to the query.
  20533. *
  20534. * @param string|array $columns
  20535. * @param string $boolean
  20536. * @param bool $not
  20537. * @return \Illuminate\Database\Query\Builder
  20538. * @static
  20539. */ public static function havingNull($columns, $boolean = 'and', $not = false)
  20540. {
  20541. /** @var \Illuminate\Database\Query\Builder $instance */
  20542. return $instance->havingNull($columns, $boolean, $not);
  20543. }
  20544. /**
  20545. * Add an "or having null" clause to the query.
  20546. *
  20547. * @param string $column
  20548. * @return \Illuminate\Database\Query\Builder
  20549. * @static
  20550. */ public static function orHavingNull($column)
  20551. {
  20552. /** @var \Illuminate\Database\Query\Builder $instance */
  20553. return $instance->orHavingNull($column);
  20554. }
  20555. /**
  20556. * Add a "having not null" clause to the query.
  20557. *
  20558. * @param string|array $columns
  20559. * @param string $boolean
  20560. * @return \Illuminate\Database\Query\Builder
  20561. * @static
  20562. */ public static function havingNotNull($columns, $boolean = 'and')
  20563. {
  20564. /** @var \Illuminate\Database\Query\Builder $instance */
  20565. return $instance->havingNotNull($columns, $boolean);
  20566. }
  20567. /**
  20568. * Add an "or having not null" clause to the query.
  20569. *
  20570. * @param string $column
  20571. * @return \Illuminate\Database\Query\Builder
  20572. * @static
  20573. */ public static function orHavingNotNull($column)
  20574. {
  20575. /** @var \Illuminate\Database\Query\Builder $instance */
  20576. return $instance->orHavingNotNull($column);
  20577. }
  20578. /**
  20579. * Add a "having between " clause to the query.
  20580. *
  20581. * @param string $column
  20582. * @param \Illuminate\Database\Query\iterable $values
  20583. * @param string $boolean
  20584. * @param bool $not
  20585. * @return \Illuminate\Database\Query\Builder
  20586. * @static
  20587. */ public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  20588. {
  20589. /** @var \Illuminate\Database\Query\Builder $instance */
  20590. return $instance->havingBetween($column, $values, $boolean, $not);
  20591. }
  20592. /**
  20593. * Add a raw having clause to the query.
  20594. *
  20595. * @param string $sql
  20596. * @param array $bindings
  20597. * @param string $boolean
  20598. * @return \Illuminate\Database\Query\Builder
  20599. * @static
  20600. */ public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  20601. {
  20602. /** @var \Illuminate\Database\Query\Builder $instance */
  20603. return $instance->havingRaw($sql, $bindings, $boolean);
  20604. }
  20605. /**
  20606. * Add a raw or having clause to the query.
  20607. *
  20608. * @param string $sql
  20609. * @param array $bindings
  20610. * @return \Illuminate\Database\Query\Builder
  20611. * @static
  20612. */ public static function orHavingRaw($sql, $bindings = [])
  20613. {
  20614. /** @var \Illuminate\Database\Query\Builder $instance */
  20615. return $instance->orHavingRaw($sql, $bindings);
  20616. }
  20617. /**
  20618. * Add an "order by" clause to the query.
  20619. *
  20620. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $column
  20621. * @param string $direction
  20622. * @return \Illuminate\Database\Query\Builder
  20623. * @throws \InvalidArgumentException
  20624. * @static
  20625. */ public static function orderBy($column, $direction = 'asc')
  20626. {
  20627. /** @var \Illuminate\Database\Query\Builder $instance */
  20628. return $instance->orderBy($column, $direction);
  20629. }
  20630. /**
  20631. * Add a descending "order by" clause to the query.
  20632. *
  20633. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|\Illuminate\Contracts\Database\Query\Expression|string $column
  20634. * @return \Illuminate\Database\Query\Builder
  20635. * @static
  20636. */ public static function orderByDesc($column)
  20637. {
  20638. /** @var \Illuminate\Database\Query\Builder $instance */
  20639. return $instance->orderByDesc($column);
  20640. }
  20641. /**
  20642. * Put the query's results in random order.
  20643. *
  20644. * @param string|int $seed
  20645. * @return \Illuminate\Database\Query\Builder
  20646. * @static
  20647. */ public static function inRandomOrder($seed = '')
  20648. {
  20649. /** @var \Illuminate\Database\Query\Builder $instance */
  20650. return $instance->inRandomOrder($seed);
  20651. }
  20652. /**
  20653. * Add a raw "order by" clause to the query.
  20654. *
  20655. * @param string $sql
  20656. * @param array $bindings
  20657. * @return \Illuminate\Database\Query\Builder
  20658. * @static
  20659. */ public static function orderByRaw($sql, $bindings = [])
  20660. {
  20661. /** @var \Illuminate\Database\Query\Builder $instance */
  20662. return $instance->orderByRaw($sql, $bindings);
  20663. }
  20664. /**
  20665. * Alias to set the "offset" value of the query.
  20666. *
  20667. * @param int $value
  20668. * @return \Illuminate\Database\Query\Builder
  20669. * @static
  20670. */ public static function skip($value)
  20671. {
  20672. /** @var \Illuminate\Database\Query\Builder $instance */
  20673. return $instance->skip($value);
  20674. }
  20675. /**
  20676. * Set the "offset" value of the query.
  20677. *
  20678. * @param int $value
  20679. * @return \Illuminate\Database\Query\Builder
  20680. * @static
  20681. */ public static function offset($value)
  20682. {
  20683. /** @var \Illuminate\Database\Query\Builder $instance */
  20684. return $instance->offset($value);
  20685. }
  20686. /**
  20687. * Alias to set the "limit" value of the query.
  20688. *
  20689. * @param int $value
  20690. * @return \Illuminate\Database\Query\Builder
  20691. * @static
  20692. */ public static function take($value)
  20693. {
  20694. /** @var \Illuminate\Database\Query\Builder $instance */
  20695. return $instance->take($value);
  20696. }
  20697. /**
  20698. * Set the "limit" value of the query.
  20699. *
  20700. * @param int $value
  20701. * @return \Illuminate\Database\Query\Builder
  20702. * @static
  20703. */ public static function limit($value)
  20704. {
  20705. /** @var \Illuminate\Database\Query\Builder $instance */
  20706. return $instance->limit($value);
  20707. }
  20708. /**
  20709. * Add a "group limit" clause to the query.
  20710. *
  20711. * @param int $value
  20712. * @param string $column
  20713. * @return \Illuminate\Database\Query\Builder
  20714. * @static
  20715. */ public static function groupLimit($value, $column)
  20716. {
  20717. /** @var \Illuminate\Database\Query\Builder $instance */
  20718. return $instance->groupLimit($value, $column);
  20719. }
  20720. /**
  20721. * Set the limit and offset for a given page.
  20722. *
  20723. * @param int $page
  20724. * @param int $perPage
  20725. * @return \Illuminate\Database\Query\Builder
  20726. * @static
  20727. */ public static function forPage($page, $perPage = 15)
  20728. {
  20729. /** @var \Illuminate\Database\Query\Builder $instance */
  20730. return $instance->forPage($page, $perPage);
  20731. }
  20732. /**
  20733. * Constrain the query to the previous "page" of results before a given ID.
  20734. *
  20735. * @param int $perPage
  20736. * @param int|null $lastId
  20737. * @param string $column
  20738. * @return \Illuminate\Database\Query\Builder
  20739. * @static
  20740. */ public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  20741. {
  20742. /** @var \Illuminate\Database\Query\Builder $instance */
  20743. return $instance->forPageBeforeId($perPage, $lastId, $column);
  20744. }
  20745. /**
  20746. * Constrain the query to the next "page" of results after a given ID.
  20747. *
  20748. * @param int $perPage
  20749. * @param int|null $lastId
  20750. * @param string $column
  20751. * @return \Illuminate\Database\Query\Builder
  20752. * @static
  20753. */ public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  20754. {
  20755. /** @var \Illuminate\Database\Query\Builder $instance */
  20756. return $instance->forPageAfterId($perPage, $lastId, $column);
  20757. }
  20758. /**
  20759. * Remove all existing orders and optionally add a new order.
  20760. *
  20761. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Contracts\Database\Query\Expression|string|null $column
  20762. * @param string $direction
  20763. * @return \Illuminate\Database\Query\Builder
  20764. * @static
  20765. */ public static function reorder($column = null, $direction = 'asc')
  20766. {
  20767. /** @var \Illuminate\Database\Query\Builder $instance */
  20768. return $instance->reorder($column, $direction);
  20769. }
  20770. /**
  20771. * Add a union statement to the query.
  20772. *
  20773. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $query
  20774. * @param bool $all
  20775. * @return \Illuminate\Database\Query\Builder
  20776. * @static
  20777. */ public static function union($query, $all = false)
  20778. {
  20779. /** @var \Illuminate\Database\Query\Builder $instance */
  20780. return $instance->union($query, $all);
  20781. }
  20782. /**
  20783. * Add a union all statement to the query.
  20784. *
  20785. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*> $query
  20786. * @return \Illuminate\Database\Query\Builder
  20787. * @static
  20788. */ public static function unionAll($query)
  20789. {
  20790. /** @var \Illuminate\Database\Query\Builder $instance */
  20791. return $instance->unionAll($query);
  20792. }
  20793. /**
  20794. * Lock the selected rows in the table.
  20795. *
  20796. * @param string|bool $value
  20797. * @return \Illuminate\Database\Query\Builder
  20798. * @static
  20799. */ public static function lock($value = true)
  20800. {
  20801. /** @var \Illuminate\Database\Query\Builder $instance */
  20802. return $instance->lock($value);
  20803. }
  20804. /**
  20805. * Lock the selected rows in the table for updating.
  20806. *
  20807. * @return \Illuminate\Database\Query\Builder
  20808. * @static
  20809. */ public static function lockForUpdate()
  20810. {
  20811. /** @var \Illuminate\Database\Query\Builder $instance */
  20812. return $instance->lockForUpdate();
  20813. }
  20814. /**
  20815. * Share lock the selected rows in the table.
  20816. *
  20817. * @return \Illuminate\Database\Query\Builder
  20818. * @static
  20819. */ public static function sharedLock()
  20820. {
  20821. /** @var \Illuminate\Database\Query\Builder $instance */
  20822. return $instance->sharedLock();
  20823. }
  20824. /**
  20825. * Register a closure to be invoked before the query is executed.
  20826. *
  20827. * @param callable $callback
  20828. * @return \Illuminate\Database\Query\Builder
  20829. * @static
  20830. */ public static function beforeQuery($callback)
  20831. {
  20832. /** @var \Illuminate\Database\Query\Builder $instance */
  20833. return $instance->beforeQuery($callback);
  20834. }
  20835. /**
  20836. * Invoke the "before query" modification callbacks.
  20837. *
  20838. * @return void
  20839. * @static
  20840. */ public static function applyBeforeQueryCallbacks()
  20841. {
  20842. /** @var \Illuminate\Database\Query\Builder $instance */
  20843. $instance->applyBeforeQueryCallbacks();
  20844. }
  20845. /**
  20846. * Get the SQL representation of the query.
  20847. *
  20848. * @return string
  20849. * @static
  20850. */ public static function toSql()
  20851. {
  20852. /** @var \Illuminate\Database\Query\Builder $instance */
  20853. return $instance->toSql();
  20854. }
  20855. /**
  20856. * Get a single expression value from the first result of a query.
  20857. *
  20858. * @param string $expression
  20859. * @param array $bindings
  20860. * @return mixed
  20861. * @static
  20862. */ public static function rawValue($expression, $bindings = [])
  20863. {
  20864. /** @var \Illuminate\Database\Query\Builder $instance */
  20865. return $instance->rawValue($expression, $bindings);
  20866. }
  20867. /**
  20868. * Get the count of the total records for the paginator.
  20869. *
  20870. * @param array $columns
  20871. * @return int
  20872. * @static
  20873. */ public static function getCountForPagination($columns = [])
  20874. {
  20875. /** @var \Illuminate\Database\Query\Builder $instance */
  20876. return $instance->getCountForPagination($columns);
  20877. }
  20878. /**
  20879. * Concatenate values of a given column as a string.
  20880. *
  20881. * @param string $column
  20882. * @param string $glue
  20883. * @return string
  20884. * @static
  20885. */ public static function implode($column, $glue = '')
  20886. {
  20887. /** @var \Illuminate\Database\Query\Builder $instance */
  20888. return $instance->implode($column, $glue);
  20889. }
  20890. /**
  20891. * Determine if any rows exist for the current query.
  20892. *
  20893. * @return bool
  20894. * @static
  20895. */ public static function exists()
  20896. {
  20897. /** @var \Illuminate\Database\Query\Builder $instance */
  20898. return $instance->exists();
  20899. }
  20900. /**
  20901. * Determine if no rows exist for the current query.
  20902. *
  20903. * @return bool
  20904. * @static
  20905. */ public static function doesntExist()
  20906. {
  20907. /** @var \Illuminate\Database\Query\Builder $instance */
  20908. return $instance->doesntExist();
  20909. }
  20910. /**
  20911. * Execute the given callback if no rows exist for the current query.
  20912. *
  20913. * @param \Closure $callback
  20914. * @return mixed
  20915. * @static
  20916. */ public static function existsOr($callback)
  20917. {
  20918. /** @var \Illuminate\Database\Query\Builder $instance */
  20919. return $instance->existsOr($callback);
  20920. }
  20921. /**
  20922. * Execute the given callback if rows exist for the current query.
  20923. *
  20924. * @param \Closure $callback
  20925. * @return mixed
  20926. * @static
  20927. */ public static function doesntExistOr($callback)
  20928. {
  20929. /** @var \Illuminate\Database\Query\Builder $instance */
  20930. return $instance->doesntExistOr($callback);
  20931. }
  20932. /**
  20933. * Retrieve the "count" result of the query.
  20934. *
  20935. * @param \Illuminate\Contracts\Database\Query\Expression|string $columns
  20936. * @return int
  20937. * @static
  20938. */ public static function count($columns = '*')
  20939. {
  20940. /** @var \Illuminate\Database\Query\Builder $instance */
  20941. return $instance->count($columns);
  20942. }
  20943. /**
  20944. * Retrieve the minimum value of a given column.
  20945. *
  20946. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20947. * @return mixed
  20948. * @static
  20949. */ public static function min($column)
  20950. {
  20951. /** @var \Illuminate\Database\Query\Builder $instance */
  20952. return $instance->min($column);
  20953. }
  20954. /**
  20955. * Retrieve the maximum value of a given column.
  20956. *
  20957. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20958. * @return mixed
  20959. * @static
  20960. */ public static function max($column)
  20961. {
  20962. /** @var \Illuminate\Database\Query\Builder $instance */
  20963. return $instance->max($column);
  20964. }
  20965. /**
  20966. * Retrieve the sum of the values of a given column.
  20967. *
  20968. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20969. * @return mixed
  20970. * @static
  20971. */ public static function sum($column)
  20972. {
  20973. /** @var \Illuminate\Database\Query\Builder $instance */
  20974. return $instance->sum($column);
  20975. }
  20976. /**
  20977. * Retrieve the average of the values of a given column.
  20978. *
  20979. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20980. * @return mixed
  20981. * @static
  20982. */ public static function avg($column)
  20983. {
  20984. /** @var \Illuminate\Database\Query\Builder $instance */
  20985. return $instance->avg($column);
  20986. }
  20987. /**
  20988. * Alias for the "avg" method.
  20989. *
  20990. * @param \Illuminate\Contracts\Database\Query\Expression|string $column
  20991. * @return mixed
  20992. * @static
  20993. */ public static function average($column)
  20994. {
  20995. /** @var \Illuminate\Database\Query\Builder $instance */
  20996. return $instance->average($column);
  20997. }
  20998. /**
  20999. * Execute an aggregate function on the database.
  21000. *
  21001. * @param string $function
  21002. * @param array $columns
  21003. * @return mixed
  21004. * @static
  21005. */ public static function aggregate($function, $columns = [])
  21006. {
  21007. /** @var \Illuminate\Database\Query\Builder $instance */
  21008. return $instance->aggregate($function, $columns);
  21009. }
  21010. /**
  21011. * Execute a numeric aggregate function on the database.
  21012. *
  21013. * @param string $function
  21014. * @param array $columns
  21015. * @return float|int
  21016. * @static
  21017. */ public static function numericAggregate($function, $columns = [])
  21018. {
  21019. /** @var \Illuminate\Database\Query\Builder $instance */
  21020. return $instance->numericAggregate($function, $columns);
  21021. }
  21022. /**
  21023. * Insert new records into the database.
  21024. *
  21025. * @param array $values
  21026. * @return bool
  21027. * @static
  21028. */ public static function insert($values)
  21029. {
  21030. /** @var \Illuminate\Database\Query\Builder $instance */
  21031. return $instance->insert($values);
  21032. }
  21033. /**
  21034. * Insert new records into the database while ignoring errors.
  21035. *
  21036. * @param array $values
  21037. * @return int
  21038. * @static
  21039. */ public static function insertOrIgnore($values)
  21040. {
  21041. /** @var \Illuminate\Database\Query\Builder $instance */
  21042. return $instance->insertOrIgnore($values);
  21043. }
  21044. /**
  21045. * Insert a new record and get the value of the primary key.
  21046. *
  21047. * @param array $values
  21048. * @param string|null $sequence
  21049. * @return int
  21050. * @static
  21051. */ public static function insertGetId($values, $sequence = null)
  21052. {
  21053. /** @var \Illuminate\Database\Query\Builder $instance */
  21054. return $instance->insertGetId($values, $sequence);
  21055. }
  21056. /**
  21057. * Insert new records into the table using a subquery.
  21058. *
  21059. * @param array $columns
  21060. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  21061. * @return int
  21062. * @static
  21063. */ public static function insertUsing($columns, $query)
  21064. {
  21065. /** @var \Illuminate\Database\Query\Builder $instance */
  21066. return $instance->insertUsing($columns, $query);
  21067. }
  21068. /**
  21069. * Insert new records into the table using a subquery while ignoring errors.
  21070. *
  21071. * @param array $columns
  21072. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder<*>|string $query
  21073. * @return int
  21074. * @static
  21075. */ public static function insertOrIgnoreUsing($columns, $query)
  21076. {
  21077. /** @var \Illuminate\Database\Query\Builder $instance */
  21078. return $instance->insertOrIgnoreUsing($columns, $query);
  21079. }
  21080. /**
  21081. * Update records in a PostgreSQL database using the update from syntax.
  21082. *
  21083. * @param array $values
  21084. * @return int
  21085. * @static
  21086. */ public static function updateFrom($values)
  21087. {
  21088. /** @var \Illuminate\Database\Query\Builder $instance */
  21089. return $instance->updateFrom($values);
  21090. }
  21091. /**
  21092. * Insert or update a record matching the attributes, and fill it with values.
  21093. *
  21094. * @param array $attributes
  21095. * @param array|callable $values
  21096. * @return bool
  21097. * @static
  21098. */ public static function updateOrInsert($attributes, $values = [])
  21099. {
  21100. /** @var \Illuminate\Database\Query\Builder $instance */
  21101. return $instance->updateOrInsert($attributes, $values);
  21102. }
  21103. /**
  21104. * Increment the given column's values by the given amounts.
  21105. *
  21106. * @param array<string, float|int|numeric-string> $columns
  21107. * @param array<string, mixed> $extra
  21108. * @return int
  21109. * @throws \InvalidArgumentException
  21110. * @static
  21111. */ public static function incrementEach($columns, $extra = [])
  21112. {
  21113. /** @var \Illuminate\Database\Query\Builder $instance */
  21114. return $instance->incrementEach($columns, $extra);
  21115. }
  21116. /**
  21117. * Decrement the given column's values by the given amounts.
  21118. *
  21119. * @param array<string, float|int|numeric-string> $columns
  21120. * @param array<string, mixed> $extra
  21121. * @return int
  21122. * @throws \InvalidArgumentException
  21123. * @static
  21124. */ public static function decrementEach($columns, $extra = [])
  21125. {
  21126. /** @var \Illuminate\Database\Query\Builder $instance */
  21127. return $instance->decrementEach($columns, $extra);
  21128. }
  21129. /**
  21130. * Run a truncate statement on the table.
  21131. *
  21132. * @return void
  21133. * @static
  21134. */ public static function truncate()
  21135. {
  21136. /** @var \Illuminate\Database\Query\Builder $instance */
  21137. $instance->truncate();
  21138. }
  21139. /**
  21140. * Get all of the query builder's columns in a text-only array with all expressions evaluated.
  21141. *
  21142. * @return array
  21143. * @static
  21144. */ public static function getColumns()
  21145. {
  21146. /** @var \Illuminate\Database\Query\Builder $instance */
  21147. return $instance->getColumns();
  21148. }
  21149. /**
  21150. * Create a raw database expression.
  21151. *
  21152. * @param mixed $value
  21153. * @return \Illuminate\Contracts\Database\Query\Expression
  21154. * @static
  21155. */ public static function raw($value)
  21156. {
  21157. /** @var \Illuminate\Database\Query\Builder $instance */
  21158. return $instance->raw($value);
  21159. }
  21160. /**
  21161. * Get the current query value bindings in a flattened array.
  21162. *
  21163. * @return array
  21164. * @static
  21165. */ public static function getBindings()
  21166. {
  21167. /** @var \Illuminate\Database\Query\Builder $instance */
  21168. return $instance->getBindings();
  21169. }
  21170. /**
  21171. * Get the raw array of bindings.
  21172. *
  21173. * @return array
  21174. * @static
  21175. */ public static function getRawBindings()
  21176. {
  21177. /** @var \Illuminate\Database\Query\Builder $instance */
  21178. return $instance->getRawBindings();
  21179. }
  21180. /**
  21181. * Set the bindings on the query builder.
  21182. *
  21183. * @param array $bindings
  21184. * @param string $type
  21185. * @return \Illuminate\Database\Query\Builder
  21186. * @throws \InvalidArgumentException
  21187. * @static
  21188. */ public static function setBindings($bindings, $type = 'where')
  21189. {
  21190. /** @var \Illuminate\Database\Query\Builder $instance */
  21191. return $instance->setBindings($bindings, $type);
  21192. }
  21193. /**
  21194. * Add a binding to the query.
  21195. *
  21196. * @param mixed $value
  21197. * @param string $type
  21198. * @return \Illuminate\Database\Query\Builder
  21199. * @throws \InvalidArgumentException
  21200. * @static
  21201. */ public static function addBinding($value, $type = 'where')
  21202. {
  21203. /** @var \Illuminate\Database\Query\Builder $instance */
  21204. return $instance->addBinding($value, $type);
  21205. }
  21206. /**
  21207. * Cast the given binding value.
  21208. *
  21209. * @param mixed $value
  21210. * @return mixed
  21211. * @static
  21212. */ public static function castBinding($value)
  21213. {
  21214. /** @var \Illuminate\Database\Query\Builder $instance */
  21215. return $instance->castBinding($value);
  21216. }
  21217. /**
  21218. * Merge an array of bindings into our bindings.
  21219. *
  21220. * @param \Illuminate\Database\Query\Builder $query
  21221. * @return \Illuminate\Database\Query\Builder
  21222. * @static
  21223. */ public static function mergeBindings($query)
  21224. {
  21225. /** @var \Illuminate\Database\Query\Builder $instance */
  21226. return $instance->mergeBindings($query);
  21227. }
  21228. /**
  21229. * Remove all of the expressions from a list of bindings.
  21230. *
  21231. * @param array $bindings
  21232. * @return array
  21233. * @static
  21234. */ public static function cleanBindings($bindings)
  21235. {
  21236. /** @var \Illuminate\Database\Query\Builder $instance */
  21237. return $instance->cleanBindings($bindings);
  21238. }
  21239. /**
  21240. * Get the database query processor instance.
  21241. *
  21242. * @return \Illuminate\Database\Query\Processors\Processor
  21243. * @static
  21244. */ public static function getProcessor()
  21245. {
  21246. /** @var \Illuminate\Database\Query\Builder $instance */
  21247. return $instance->getProcessor();
  21248. }
  21249. /**
  21250. * Get the query grammar instance.
  21251. *
  21252. * @return \Illuminate\Database\Query\Grammars\Grammar
  21253. * @static
  21254. */ public static function getGrammar()
  21255. {
  21256. /** @var \Illuminate\Database\Query\Builder $instance */
  21257. return $instance->getGrammar();
  21258. }
  21259. /**
  21260. * Use the "write" PDO connection when executing the query.
  21261. *
  21262. * @return \Illuminate\Database\Query\Builder
  21263. * @static
  21264. */ public static function useWritePdo()
  21265. {
  21266. /** @var \Illuminate\Database\Query\Builder $instance */
  21267. return $instance->useWritePdo();
  21268. }
  21269. /**
  21270. * Clone the query without the given properties.
  21271. *
  21272. * @param array $properties
  21273. * @return static
  21274. * @static
  21275. */ public static function cloneWithout($properties)
  21276. {
  21277. /** @var \Illuminate\Database\Query\Builder $instance */
  21278. return $instance->cloneWithout($properties);
  21279. }
  21280. /**
  21281. * Clone the query without the given bindings.
  21282. *
  21283. * @param array $except
  21284. * @return static
  21285. * @static
  21286. */ public static function cloneWithoutBindings($except)
  21287. {
  21288. /** @var \Illuminate\Database\Query\Builder $instance */
  21289. return $instance->cloneWithoutBindings($except);
  21290. }
  21291. /**
  21292. * Dump the current SQL and bindings.
  21293. *
  21294. * @param mixed $args
  21295. * @return \Illuminate\Database\Query\Builder
  21296. * @static
  21297. */ public static function dump(...$args)
  21298. {
  21299. /** @var \Illuminate\Database\Query\Builder $instance */
  21300. return $instance->dump(...$args);
  21301. }
  21302. /**
  21303. * Dump the raw current SQL with embedded bindings.
  21304. *
  21305. * @return \Illuminate\Database\Query\Builder
  21306. * @static
  21307. */ public static function dumpRawSql()
  21308. {
  21309. /** @var \Illuminate\Database\Query\Builder $instance */
  21310. return $instance->dumpRawSql();
  21311. }
  21312. /**
  21313. * Die and dump the current SQL and bindings.
  21314. *
  21315. * @return \Illuminate\Database\Query\never
  21316. * @static
  21317. */ public static function dd()
  21318. {
  21319. /** @var \Illuminate\Database\Query\Builder $instance */
  21320. return $instance->dd();
  21321. }
  21322. /**
  21323. * Die and dump the current SQL with embedded bindings.
  21324. *
  21325. * @return \Illuminate\Database\Query\never
  21326. * @static
  21327. */ public static function ddRawSql()
  21328. {
  21329. /** @var \Illuminate\Database\Query\Builder $instance */
  21330. return $instance->ddRawSql();
  21331. }
  21332. /**
  21333. * Explains the query.
  21334. *
  21335. * @return \Illuminate\Support\Collection
  21336. * @static
  21337. */ public static function explain()
  21338. {
  21339. /** @var \Illuminate\Database\Query\Builder $instance */
  21340. return $instance->explain();
  21341. }
  21342. /**
  21343. * Register a custom macro.
  21344. *
  21345. * @param string $name
  21346. * @param object|callable $macro
  21347. * @param-closure-this static $macro
  21348. * @return void
  21349. * @static
  21350. */ public static function macro($name, $macro)
  21351. {
  21352. \Illuminate\Database\Query\Builder::macro($name, $macro);
  21353. }
  21354. /**
  21355. * Mix another object into the class.
  21356. *
  21357. * @param object $mixin
  21358. * @param bool $replace
  21359. * @return void
  21360. * @throws \ReflectionException
  21361. * @static
  21362. */ public static function mixin($mixin, $replace = true)
  21363. {
  21364. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  21365. }
  21366. /**
  21367. * Flush the existing macros.
  21368. *
  21369. * @return void
  21370. * @static
  21371. */ public static function flushMacros()
  21372. {
  21373. \Illuminate\Database\Query\Builder::flushMacros();
  21374. }
  21375. /**
  21376. * Dynamically handle calls to the class.
  21377. *
  21378. * @param string $method
  21379. * @param array $parameters
  21380. * @return mixed
  21381. * @throws \BadMethodCallException
  21382. * @static
  21383. */ public static function macroCall($method, $parameters)
  21384. {
  21385. /** @var \Illuminate\Database\Query\Builder $instance */
  21386. return $instance->macroCall($method, $parameters);
  21387. }
  21388. }
  21389. class Event extends \Illuminate\Support\Facades\Event {}
  21390. class File extends \Illuminate\Support\Facades\File {}
  21391. class Gate extends \Illuminate\Support\Facades\Gate {}
  21392. class Hash extends \Illuminate\Support\Facades\Hash {}
  21393. class Http extends \Illuminate\Support\Facades\Http {}
  21394. class Js extends \Illuminate\Support\Js {}
  21395. class Lang extends \Illuminate\Support\Facades\Lang {}
  21396. class Log extends \Illuminate\Support\Facades\Log {}
  21397. class Mail extends \Illuminate\Support\Facades\Mail {}
  21398. class Notification extends \Illuminate\Support\Facades\Notification {}
  21399. class Password extends \Illuminate\Support\Facades\Password {}
  21400. class Process extends \Illuminate\Support\Facades\Process {}
  21401. class QrCode extends \SimpleSoftwareIO\QrCode\Facades\QrCode {}
  21402. class Queue extends \Illuminate\Support\Facades\Queue {}
  21403. class RateLimiter extends \Illuminate\Support\Facades\RateLimiter {}
  21404. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  21405. class Request extends \Illuminate\Support\Facades\Request {}
  21406. class Response extends \Illuminate\Support\Facades\Response {}
  21407. class Route extends \Illuminate\Support\Facades\Route {}
  21408. class Schema extends \Illuminate\Support\Facades\Schema {}
  21409. class Session extends \Illuminate\Support\Facades\Session {}
  21410. class Storage extends \Illuminate\Support\Facades\Storage {}
  21411. class Str extends \Illuminate\Support\Str {}
  21412. class URL extends \Illuminate\Support\Facades\URL {}
  21413. class Validator extends \Illuminate\Support\Facades\Validator {}
  21414. class View extends \Illuminate\Support\Facades\View {}
  21415. }