_ide_helper.php 777 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456
  1. <?php
  2. // @formatter:off
  3. // phpcs:ignoreFile
  4. /**
  5. * A helper file for Laravel, to provide autocomplete information to your IDE
  6. * Generated for Laravel 9.33.0.
  7. *
  8. * This file should not be included in your code, only analyzed by your IDE!
  9. *
  10. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  11. * @see https://github.com/barryvdh/laravel-ide-helper
  12. */
  13. namespace Illuminate\Support\Facades {
  14. /**
  15. *
  16. *
  17. * @see \Illuminate\Contracts\Foundation\Application
  18. */
  19. class App {
  20. /**
  21. * Get the version number of the application.
  22. *
  23. * @return string
  24. * @static
  25. */
  26. public static function version()
  27. {
  28. /** @var \Illuminate\Foundation\Application $instance */
  29. return $instance->version();
  30. }
  31. /**
  32. * Run the given array of bootstrap classes.
  33. *
  34. * @param string[] $bootstrappers
  35. * @return void
  36. * @static
  37. */
  38. public static function bootstrapWith($bootstrappers)
  39. {
  40. /** @var \Illuminate\Foundation\Application $instance */
  41. $instance->bootstrapWith($bootstrappers);
  42. }
  43. /**
  44. * Register a callback to run after loading the environment.
  45. *
  46. * @param \Closure $callback
  47. * @return void
  48. * @static
  49. */
  50. public static function afterLoadingEnvironment($callback)
  51. {
  52. /** @var \Illuminate\Foundation\Application $instance */
  53. $instance->afterLoadingEnvironment($callback);
  54. }
  55. /**
  56. * Register a callback to run before a bootstrapper.
  57. *
  58. * @param string $bootstrapper
  59. * @param \Closure $callback
  60. * @return void
  61. * @static
  62. */
  63. public static function beforeBootstrapping($bootstrapper, $callback)
  64. {
  65. /** @var \Illuminate\Foundation\Application $instance */
  66. $instance->beforeBootstrapping($bootstrapper, $callback);
  67. }
  68. /**
  69. * Register a callback to run after a bootstrapper.
  70. *
  71. * @param string $bootstrapper
  72. * @param \Closure $callback
  73. * @return void
  74. * @static
  75. */
  76. public static function afterBootstrapping($bootstrapper, $callback)
  77. {
  78. /** @var \Illuminate\Foundation\Application $instance */
  79. $instance->afterBootstrapping($bootstrapper, $callback);
  80. }
  81. /**
  82. * Determine if the application has been bootstrapped before.
  83. *
  84. * @return bool
  85. * @static
  86. */
  87. public static function hasBeenBootstrapped()
  88. {
  89. /** @var \Illuminate\Foundation\Application $instance */
  90. return $instance->hasBeenBootstrapped();
  91. }
  92. /**
  93. * Set the base path for the application.
  94. *
  95. * @param string $basePath
  96. * @return \Illuminate\Foundation\Application
  97. * @static
  98. */
  99. public static function setBasePath($basePath)
  100. {
  101. /** @var \Illuminate\Foundation\Application $instance */
  102. return $instance->setBasePath($basePath);
  103. }
  104. /**
  105. * Get the path to the application "app" directory.
  106. *
  107. * @param string $path
  108. * @return string
  109. * @static
  110. */
  111. public static function path($path = '')
  112. {
  113. /** @var \Illuminate\Foundation\Application $instance */
  114. return $instance->path($path);
  115. }
  116. /**
  117. * Set the application directory.
  118. *
  119. * @param string $path
  120. * @return \Illuminate\Foundation\Application
  121. * @static
  122. */
  123. public static function useAppPath($path)
  124. {
  125. /** @var \Illuminate\Foundation\Application $instance */
  126. return $instance->useAppPath($path);
  127. }
  128. /**
  129. * Get the base path of the Laravel installation.
  130. *
  131. * @param string $path
  132. * @return string
  133. * @static
  134. */
  135. public static function basePath($path = '')
  136. {
  137. /** @var \Illuminate\Foundation\Application $instance */
  138. return $instance->basePath($path);
  139. }
  140. /**
  141. * Get the path to the bootstrap directory.
  142. *
  143. * @param string $path
  144. * @return string
  145. * @static
  146. */
  147. public static function bootstrapPath($path = '')
  148. {
  149. /** @var \Illuminate\Foundation\Application $instance */
  150. return $instance->bootstrapPath($path);
  151. }
  152. /**
  153. * Get the path to the application configuration files.
  154. *
  155. * @param string $path
  156. * @return string
  157. * @static
  158. */
  159. public static function configPath($path = '')
  160. {
  161. /** @var \Illuminate\Foundation\Application $instance */
  162. return $instance->configPath($path);
  163. }
  164. /**
  165. * Get the path to the database directory.
  166. *
  167. * @param string $path
  168. * @return string
  169. * @static
  170. */
  171. public static function databasePath($path = '')
  172. {
  173. /** @var \Illuminate\Foundation\Application $instance */
  174. return $instance->databasePath($path);
  175. }
  176. /**
  177. * Set the database directory.
  178. *
  179. * @param string $path
  180. * @return \Illuminate\Foundation\Application
  181. * @static
  182. */
  183. public static function useDatabasePath($path)
  184. {
  185. /** @var \Illuminate\Foundation\Application $instance */
  186. return $instance->useDatabasePath($path);
  187. }
  188. /**
  189. * Get the path to the language files.
  190. *
  191. * @param string $path
  192. * @return string
  193. * @static
  194. */
  195. public static function langPath($path = '')
  196. {
  197. /** @var \Illuminate\Foundation\Application $instance */
  198. return $instance->langPath($path);
  199. }
  200. /**
  201. * Set the language file directory.
  202. *
  203. * @param string $path
  204. * @return \Illuminate\Foundation\Application
  205. * @static
  206. */
  207. public static function useLangPath($path)
  208. {
  209. /** @var \Illuminate\Foundation\Application $instance */
  210. return $instance->useLangPath($path);
  211. }
  212. /**
  213. * Get the path to the public / web directory.
  214. *
  215. * @return string
  216. * @static
  217. */
  218. public static function publicPath()
  219. {
  220. /** @var \Illuminate\Foundation\Application $instance */
  221. return $instance->publicPath();
  222. }
  223. /**
  224. * Get the path to the storage directory.
  225. *
  226. * @param string $path
  227. * @return string
  228. * @static
  229. */
  230. public static function storagePath($path = '')
  231. {
  232. /** @var \Illuminate\Foundation\Application $instance */
  233. return $instance->storagePath($path);
  234. }
  235. /**
  236. * Set the storage directory.
  237. *
  238. * @param string $path
  239. * @return \Illuminate\Foundation\Application
  240. * @static
  241. */
  242. public static function useStoragePath($path)
  243. {
  244. /** @var \Illuminate\Foundation\Application $instance */
  245. return $instance->useStoragePath($path);
  246. }
  247. /**
  248. * Get the path to the resources directory.
  249. *
  250. * @param string $path
  251. * @return string
  252. * @static
  253. */
  254. public static function resourcePath($path = '')
  255. {
  256. /** @var \Illuminate\Foundation\Application $instance */
  257. return $instance->resourcePath($path);
  258. }
  259. /**
  260. * Get the path to the views directory.
  261. *
  262. * This method returns the first configured path in the array of view paths.
  263. *
  264. * @param string $path
  265. * @return string
  266. * @static
  267. */
  268. public static function viewPath($path = '')
  269. {
  270. /** @var \Illuminate\Foundation\Application $instance */
  271. return $instance->viewPath($path);
  272. }
  273. /**
  274. * Get the path to the environment file directory.
  275. *
  276. * @return string
  277. * @static
  278. */
  279. public static function environmentPath()
  280. {
  281. /** @var \Illuminate\Foundation\Application $instance */
  282. return $instance->environmentPath();
  283. }
  284. /**
  285. * Set the directory for the environment file.
  286. *
  287. * @param string $path
  288. * @return \Illuminate\Foundation\Application
  289. * @static
  290. */
  291. public static function useEnvironmentPath($path)
  292. {
  293. /** @var \Illuminate\Foundation\Application $instance */
  294. return $instance->useEnvironmentPath($path);
  295. }
  296. /**
  297. * Set the environment file to be loaded during bootstrapping.
  298. *
  299. * @param string $file
  300. * @return \Illuminate\Foundation\Application
  301. * @static
  302. */
  303. public static function loadEnvironmentFrom($file)
  304. {
  305. /** @var \Illuminate\Foundation\Application $instance */
  306. return $instance->loadEnvironmentFrom($file);
  307. }
  308. /**
  309. * Get the environment file the application is using.
  310. *
  311. * @return string
  312. * @static
  313. */
  314. public static function environmentFile()
  315. {
  316. /** @var \Illuminate\Foundation\Application $instance */
  317. return $instance->environmentFile();
  318. }
  319. /**
  320. * Get the fully qualified path to the environment file.
  321. *
  322. * @return string
  323. * @static
  324. */
  325. public static function environmentFilePath()
  326. {
  327. /** @var \Illuminate\Foundation\Application $instance */
  328. return $instance->environmentFilePath();
  329. }
  330. /**
  331. * Get or check the current application environment.
  332. *
  333. * @param string|array $environments
  334. * @return string|bool
  335. * @static
  336. */
  337. public static function environment(...$environments)
  338. {
  339. /** @var \Illuminate\Foundation\Application $instance */
  340. return $instance->environment(...$environments);
  341. }
  342. /**
  343. * Determine if the application is in the local environment.
  344. *
  345. * @return bool
  346. * @static
  347. */
  348. public static function isLocal()
  349. {
  350. /** @var \Illuminate\Foundation\Application $instance */
  351. return $instance->isLocal();
  352. }
  353. /**
  354. * Determine if the application is in the production environment.
  355. *
  356. * @return bool
  357. * @static
  358. */
  359. public static function isProduction()
  360. {
  361. /** @var \Illuminate\Foundation\Application $instance */
  362. return $instance->isProduction();
  363. }
  364. /**
  365. * Detect the application's current environment.
  366. *
  367. * @param \Closure $callback
  368. * @return string
  369. * @static
  370. */
  371. public static function detectEnvironment($callback)
  372. {
  373. /** @var \Illuminate\Foundation\Application $instance */
  374. return $instance->detectEnvironment($callback);
  375. }
  376. /**
  377. * Determine if the application is running in the console.
  378. *
  379. * @return bool
  380. * @static
  381. */
  382. public static function runningInConsole()
  383. {
  384. /** @var \Illuminate\Foundation\Application $instance */
  385. return $instance->runningInConsole();
  386. }
  387. /**
  388. * Determine if the application is running unit tests.
  389. *
  390. * @return bool
  391. * @static
  392. */
  393. public static function runningUnitTests()
  394. {
  395. /** @var \Illuminate\Foundation\Application $instance */
  396. return $instance->runningUnitTests();
  397. }
  398. /**
  399. * Determine if the application is running with debug mode enabled.
  400. *
  401. * @return bool
  402. * @static
  403. */
  404. public static function hasDebugModeEnabled()
  405. {
  406. /** @var \Illuminate\Foundation\Application $instance */
  407. return $instance->hasDebugModeEnabled();
  408. }
  409. /**
  410. * Register all of the configured providers.
  411. *
  412. * @return void
  413. * @static
  414. */
  415. public static function registerConfiguredProviders()
  416. {
  417. /** @var \Illuminate\Foundation\Application $instance */
  418. $instance->registerConfiguredProviders();
  419. }
  420. /**
  421. * Register a service provider with the application.
  422. *
  423. * @param \Illuminate\Support\ServiceProvider|string $provider
  424. * @param bool $force
  425. * @return \Illuminate\Support\ServiceProvider
  426. * @static
  427. */
  428. public static function register($provider, $force = false)
  429. {
  430. /** @var \Illuminate\Foundation\Application $instance */
  431. return $instance->register($provider, $force);
  432. }
  433. /**
  434. * Get the registered service provider instance if it exists.
  435. *
  436. * @param \Illuminate\Support\ServiceProvider|string $provider
  437. * @return \Illuminate\Support\ServiceProvider|null
  438. * @static
  439. */
  440. public static function getProvider($provider)
  441. {
  442. /** @var \Illuminate\Foundation\Application $instance */
  443. return $instance->getProvider($provider);
  444. }
  445. /**
  446. * Get the registered service provider instances if any exist.
  447. *
  448. * @param \Illuminate\Support\ServiceProvider|string $provider
  449. * @return array
  450. * @static
  451. */
  452. public static function getProviders($provider)
  453. {
  454. /** @var \Illuminate\Foundation\Application $instance */
  455. return $instance->getProviders($provider);
  456. }
  457. /**
  458. * Resolve a service provider instance from the class name.
  459. *
  460. * @param string $provider
  461. * @return \Illuminate\Support\ServiceProvider
  462. * @static
  463. */
  464. public static function resolveProvider($provider)
  465. {
  466. /** @var \Illuminate\Foundation\Application $instance */
  467. return $instance->resolveProvider($provider);
  468. }
  469. /**
  470. * Load and boot all of the remaining deferred providers.
  471. *
  472. * @return void
  473. * @static
  474. */
  475. public static function loadDeferredProviders()
  476. {
  477. /** @var \Illuminate\Foundation\Application $instance */
  478. $instance->loadDeferredProviders();
  479. }
  480. /**
  481. * Load the provider for a deferred service.
  482. *
  483. * @param string $service
  484. * @return void
  485. * @static
  486. */
  487. public static function loadDeferredProvider($service)
  488. {
  489. /** @var \Illuminate\Foundation\Application $instance */
  490. $instance->loadDeferredProvider($service);
  491. }
  492. /**
  493. * Register a deferred provider and service.
  494. *
  495. * @param string $provider
  496. * @param string|null $service
  497. * @return void
  498. * @static
  499. */
  500. public static function registerDeferredProvider($provider, $service = null)
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. $instance->registerDeferredProvider($provider, $service);
  504. }
  505. /**
  506. * Resolve the given type from the container.
  507. *
  508. * @param string $abstract
  509. * @param array $parameters
  510. * @return mixed
  511. * @static
  512. */
  513. public static function make($abstract, $parameters = [])
  514. {
  515. /** @var \Illuminate\Foundation\Application $instance */
  516. return $instance->make($abstract, $parameters);
  517. }
  518. /**
  519. * Determine if the given abstract type has been bound.
  520. *
  521. * @param string $abstract
  522. * @return bool
  523. * @static
  524. */
  525. public static function bound($abstract)
  526. {
  527. /** @var \Illuminate\Foundation\Application $instance */
  528. return $instance->bound($abstract);
  529. }
  530. /**
  531. * Determine if the application has booted.
  532. *
  533. * @return bool
  534. * @static
  535. */
  536. public static function isBooted()
  537. {
  538. /** @var \Illuminate\Foundation\Application $instance */
  539. return $instance->isBooted();
  540. }
  541. /**
  542. * Boot the application's service providers.
  543. *
  544. * @return void
  545. * @static
  546. */
  547. public static function boot()
  548. {
  549. /** @var \Illuminate\Foundation\Application $instance */
  550. $instance->boot();
  551. }
  552. /**
  553. * Register a new boot listener.
  554. *
  555. * @param callable $callback
  556. * @return void
  557. * @static
  558. */
  559. public static function booting($callback)
  560. {
  561. /** @var \Illuminate\Foundation\Application $instance */
  562. $instance->booting($callback);
  563. }
  564. /**
  565. * Register a new "booted" listener.
  566. *
  567. * @param callable $callback
  568. * @return void
  569. * @static
  570. */
  571. public static function booted($callback)
  572. {
  573. /** @var \Illuminate\Foundation\Application $instance */
  574. $instance->booted($callback);
  575. }
  576. /**
  577. * {@inheritdoc}
  578. *
  579. * @return \Symfony\Component\HttpFoundation\Response
  580. * @static
  581. */
  582. public static function handle($request, $type = 1, $catch = true)
  583. {
  584. /** @var \Illuminate\Foundation\Application $instance */
  585. return $instance->handle($request, $type, $catch);
  586. }
  587. /**
  588. * Determine if middleware has been disabled for the application.
  589. *
  590. * @return bool
  591. * @static
  592. */
  593. public static function shouldSkipMiddleware()
  594. {
  595. /** @var \Illuminate\Foundation\Application $instance */
  596. return $instance->shouldSkipMiddleware();
  597. }
  598. /**
  599. * Get the path to the cached services.php file.
  600. *
  601. * @return string
  602. * @static
  603. */
  604. public static function getCachedServicesPath()
  605. {
  606. /** @var \Illuminate\Foundation\Application $instance */
  607. return $instance->getCachedServicesPath();
  608. }
  609. /**
  610. * Get the path to the cached packages.php file.
  611. *
  612. * @return string
  613. * @static
  614. */
  615. public static function getCachedPackagesPath()
  616. {
  617. /** @var \Illuminate\Foundation\Application $instance */
  618. return $instance->getCachedPackagesPath();
  619. }
  620. /**
  621. * Determine if the application configuration is cached.
  622. *
  623. * @return bool
  624. * @static
  625. */
  626. public static function configurationIsCached()
  627. {
  628. /** @var \Illuminate\Foundation\Application $instance */
  629. return $instance->configurationIsCached();
  630. }
  631. /**
  632. * Get the path to the configuration cache file.
  633. *
  634. * @return string
  635. * @static
  636. */
  637. public static function getCachedConfigPath()
  638. {
  639. /** @var \Illuminate\Foundation\Application $instance */
  640. return $instance->getCachedConfigPath();
  641. }
  642. /**
  643. * Determine if the application routes are cached.
  644. *
  645. * @return bool
  646. * @static
  647. */
  648. public static function routesAreCached()
  649. {
  650. /** @var \Illuminate\Foundation\Application $instance */
  651. return $instance->routesAreCached();
  652. }
  653. /**
  654. * Get the path to the routes cache file.
  655. *
  656. * @return string
  657. * @static
  658. */
  659. public static function getCachedRoutesPath()
  660. {
  661. /** @var \Illuminate\Foundation\Application $instance */
  662. return $instance->getCachedRoutesPath();
  663. }
  664. /**
  665. * Determine if the application events are cached.
  666. *
  667. * @return bool
  668. * @static
  669. */
  670. public static function eventsAreCached()
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. return $instance->eventsAreCached();
  674. }
  675. /**
  676. * Get the path to the events cache file.
  677. *
  678. * @return string
  679. * @static
  680. */
  681. public static function getCachedEventsPath()
  682. {
  683. /** @var \Illuminate\Foundation\Application $instance */
  684. return $instance->getCachedEventsPath();
  685. }
  686. /**
  687. * Add new prefix to list of absolute path prefixes.
  688. *
  689. * @param string $prefix
  690. * @return \Illuminate\Foundation\Application
  691. * @static
  692. */
  693. public static function addAbsoluteCachePathPrefix($prefix)
  694. {
  695. /** @var \Illuminate\Foundation\Application $instance */
  696. return $instance->addAbsoluteCachePathPrefix($prefix);
  697. }
  698. /**
  699. * Get an instance of the maintenance mode manager implementation.
  700. *
  701. * @return \Illuminate\Contracts\Foundation\MaintenanceMode
  702. * @static
  703. */
  704. public static function maintenanceMode()
  705. {
  706. /** @var \Illuminate\Foundation\Application $instance */
  707. return $instance->maintenanceMode();
  708. }
  709. /**
  710. * Determine if the application is currently down for maintenance.
  711. *
  712. * @return bool
  713. * @static
  714. */
  715. public static function isDownForMaintenance()
  716. {
  717. /** @var \Illuminate\Foundation\Application $instance */
  718. return $instance->isDownForMaintenance();
  719. }
  720. /**
  721. * Throw an HttpException with the given data.
  722. *
  723. * @param int $code
  724. * @param string $message
  725. * @param array $headers
  726. * @return \Illuminate\Foundation\never
  727. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  728. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  729. * @static
  730. */
  731. public static function abort($code, $message = '', $headers = [])
  732. {
  733. /** @var \Illuminate\Foundation\Application $instance */
  734. return $instance->abort($code, $message, $headers);
  735. }
  736. /**
  737. * Register a terminating callback with the application.
  738. *
  739. * @param callable|string $callback
  740. * @return \Illuminate\Foundation\Application
  741. * @static
  742. */
  743. public static function terminating($callback)
  744. {
  745. /** @var \Illuminate\Foundation\Application $instance */
  746. return $instance->terminating($callback);
  747. }
  748. /**
  749. * Terminate the application.
  750. *
  751. * @return void
  752. * @static
  753. */
  754. public static function terminate()
  755. {
  756. /** @var \Illuminate\Foundation\Application $instance */
  757. $instance->terminate();
  758. }
  759. /**
  760. * Get the service providers that have been loaded.
  761. *
  762. * @return array
  763. * @static
  764. */
  765. public static function getLoadedProviders()
  766. {
  767. /** @var \Illuminate\Foundation\Application $instance */
  768. return $instance->getLoadedProviders();
  769. }
  770. /**
  771. * Determine if the given service provider is loaded.
  772. *
  773. * @param string $provider
  774. * @return bool
  775. * @static
  776. */
  777. public static function providerIsLoaded($provider)
  778. {
  779. /** @var \Illuminate\Foundation\Application $instance */
  780. return $instance->providerIsLoaded($provider);
  781. }
  782. /**
  783. * Get the application's deferred services.
  784. *
  785. * @return array
  786. * @static
  787. */
  788. public static function getDeferredServices()
  789. {
  790. /** @var \Illuminate\Foundation\Application $instance */
  791. return $instance->getDeferredServices();
  792. }
  793. /**
  794. * Set the application's deferred services.
  795. *
  796. * @param array $services
  797. * @return void
  798. * @static
  799. */
  800. public static function setDeferredServices($services)
  801. {
  802. /** @var \Illuminate\Foundation\Application $instance */
  803. $instance->setDeferredServices($services);
  804. }
  805. /**
  806. * Add an array of services to the application's deferred services.
  807. *
  808. * @param array $services
  809. * @return void
  810. * @static
  811. */
  812. public static function addDeferredServices($services)
  813. {
  814. /** @var \Illuminate\Foundation\Application $instance */
  815. $instance->addDeferredServices($services);
  816. }
  817. /**
  818. * Determine if the given service is a deferred service.
  819. *
  820. * @param string $service
  821. * @return bool
  822. * @static
  823. */
  824. public static function isDeferredService($service)
  825. {
  826. /** @var \Illuminate\Foundation\Application $instance */
  827. return $instance->isDeferredService($service);
  828. }
  829. /**
  830. * Configure the real-time facade namespace.
  831. *
  832. * @param string $namespace
  833. * @return void
  834. * @static
  835. */
  836. public static function provideFacades($namespace)
  837. {
  838. /** @var \Illuminate\Foundation\Application $instance */
  839. $instance->provideFacades($namespace);
  840. }
  841. /**
  842. * Get the current application locale.
  843. *
  844. * @return string
  845. * @static
  846. */
  847. public static function getLocale()
  848. {
  849. /** @var \Illuminate\Foundation\Application $instance */
  850. return $instance->getLocale();
  851. }
  852. /**
  853. * Get the current application locale.
  854. *
  855. * @return string
  856. * @static
  857. */
  858. public static function currentLocale()
  859. {
  860. /** @var \Illuminate\Foundation\Application $instance */
  861. return $instance->currentLocale();
  862. }
  863. /**
  864. * Get the current application fallback locale.
  865. *
  866. * @return string
  867. * @static
  868. */
  869. public static function getFallbackLocale()
  870. {
  871. /** @var \Illuminate\Foundation\Application $instance */
  872. return $instance->getFallbackLocale();
  873. }
  874. /**
  875. * Set the current application locale.
  876. *
  877. * @param string $locale
  878. * @return void
  879. * @static
  880. */
  881. public static function setLocale($locale)
  882. {
  883. /** @var \Illuminate\Foundation\Application $instance */
  884. $instance->setLocale($locale);
  885. }
  886. /**
  887. * Set the current application fallback locale.
  888. *
  889. * @param string $fallbackLocale
  890. * @return void
  891. * @static
  892. */
  893. public static function setFallbackLocale($fallbackLocale)
  894. {
  895. /** @var \Illuminate\Foundation\Application $instance */
  896. $instance->setFallbackLocale($fallbackLocale);
  897. }
  898. /**
  899. * Determine if the application locale is the given locale.
  900. *
  901. * @param string $locale
  902. * @return bool
  903. * @static
  904. */
  905. public static function isLocale($locale)
  906. {
  907. /** @var \Illuminate\Foundation\Application $instance */
  908. return $instance->isLocale($locale);
  909. }
  910. /**
  911. * Register the core class aliases in the container.
  912. *
  913. * @return void
  914. * @static
  915. */
  916. public static function registerCoreContainerAliases()
  917. {
  918. /** @var \Illuminate\Foundation\Application $instance */
  919. $instance->registerCoreContainerAliases();
  920. }
  921. /**
  922. * Flush the container of all bindings and resolved instances.
  923. *
  924. * @return void
  925. * @static
  926. */
  927. public static function flush()
  928. {
  929. /** @var \Illuminate\Foundation\Application $instance */
  930. $instance->flush();
  931. }
  932. /**
  933. * Get the application namespace.
  934. *
  935. * @return string
  936. * @throws \RuntimeException
  937. * @static
  938. */
  939. public static function getNamespace()
  940. {
  941. /** @var \Illuminate\Foundation\Application $instance */
  942. return $instance->getNamespace();
  943. }
  944. /**
  945. * Define a contextual binding.
  946. *
  947. * @param array|string $concrete
  948. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  949. * @static
  950. */
  951. public static function when($concrete)
  952. { //Method inherited from \Illuminate\Container\Container
  953. /** @var \Illuminate\Foundation\Application $instance */
  954. return $instance->when($concrete);
  955. }
  956. /**
  957. * Returns true if the container can return an entry for the given identifier.
  958. *
  959. * Returns false otherwise.
  960. *
  961. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  962. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  963. *
  964. * @return bool
  965. * @param string $id Identifier of the entry to look for.
  966. * @return bool
  967. * @static
  968. */
  969. public static function has($id)
  970. { //Method inherited from \Illuminate\Container\Container
  971. /** @var \Illuminate\Foundation\Application $instance */
  972. return $instance->has($id);
  973. }
  974. /**
  975. * Determine if the given abstract type has been resolved.
  976. *
  977. * @param string $abstract
  978. * @return bool
  979. * @static
  980. */
  981. public static function resolved($abstract)
  982. { //Method inherited from \Illuminate\Container\Container
  983. /** @var \Illuminate\Foundation\Application $instance */
  984. return $instance->resolved($abstract);
  985. }
  986. /**
  987. * Determine if a given type is shared.
  988. *
  989. * @param string $abstract
  990. * @return bool
  991. * @static
  992. */
  993. public static function isShared($abstract)
  994. { //Method inherited from \Illuminate\Container\Container
  995. /** @var \Illuminate\Foundation\Application $instance */
  996. return $instance->isShared($abstract);
  997. }
  998. /**
  999. * Determine if a given string is an alias.
  1000. *
  1001. * @param string $name
  1002. * @return bool
  1003. * @static
  1004. */
  1005. public static function isAlias($name)
  1006. { //Method inherited from \Illuminate\Container\Container
  1007. /** @var \Illuminate\Foundation\Application $instance */
  1008. return $instance->isAlias($name);
  1009. }
  1010. /**
  1011. * Register a binding with the container.
  1012. *
  1013. * @param string $abstract
  1014. * @param \Closure|string|null $concrete
  1015. * @param bool $shared
  1016. * @return void
  1017. * @throws \TypeError
  1018. * @static
  1019. */
  1020. public static function bind($abstract, $concrete = null, $shared = false)
  1021. { //Method inherited from \Illuminate\Container\Container
  1022. /** @var \Illuminate\Foundation\Application $instance */
  1023. $instance->bind($abstract, $concrete, $shared);
  1024. }
  1025. /**
  1026. * Determine if the container has a method binding.
  1027. *
  1028. * @param string $method
  1029. * @return bool
  1030. * @static
  1031. */
  1032. public static function hasMethodBinding($method)
  1033. { //Method inherited from \Illuminate\Container\Container
  1034. /** @var \Illuminate\Foundation\Application $instance */
  1035. return $instance->hasMethodBinding($method);
  1036. }
  1037. /**
  1038. * Bind a callback to resolve with Container::call.
  1039. *
  1040. * @param array|string $method
  1041. * @param \Closure $callback
  1042. * @return void
  1043. * @static
  1044. */
  1045. public static function bindMethod($method, $callback)
  1046. { //Method inherited from \Illuminate\Container\Container
  1047. /** @var \Illuminate\Foundation\Application $instance */
  1048. $instance->bindMethod($method, $callback);
  1049. }
  1050. /**
  1051. * Get the method binding for the given method.
  1052. *
  1053. * @param string $method
  1054. * @param mixed $instance
  1055. * @return mixed
  1056. * @static
  1057. */
  1058. public static function callMethodBinding($method, $instance)
  1059. { //Method inherited from \Illuminate\Container\Container
  1060. /** @var \Illuminate\Foundation\Application $instance */
  1061. return $instance->callMethodBinding($method, $instance);
  1062. }
  1063. /**
  1064. * Add a contextual binding to the container.
  1065. *
  1066. * @param string $concrete
  1067. * @param string $abstract
  1068. * @param \Closure|string $implementation
  1069. * @return void
  1070. * @static
  1071. */
  1072. public static function addContextualBinding($concrete, $abstract, $implementation)
  1073. { //Method inherited from \Illuminate\Container\Container
  1074. /** @var \Illuminate\Foundation\Application $instance */
  1075. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1076. }
  1077. /**
  1078. * Register a binding if it hasn't already been registered.
  1079. *
  1080. * @param string $abstract
  1081. * @param \Closure|string|null $concrete
  1082. * @param bool $shared
  1083. * @return void
  1084. * @static
  1085. */
  1086. public static function bindIf($abstract, $concrete = null, $shared = false)
  1087. { //Method inherited from \Illuminate\Container\Container
  1088. /** @var \Illuminate\Foundation\Application $instance */
  1089. $instance->bindIf($abstract, $concrete, $shared);
  1090. }
  1091. /**
  1092. * Register a shared binding in the container.
  1093. *
  1094. * @param string $abstract
  1095. * @param \Closure|string|null $concrete
  1096. * @return void
  1097. * @static
  1098. */
  1099. public static function singleton($abstract, $concrete = null)
  1100. { //Method inherited from \Illuminate\Container\Container
  1101. /** @var \Illuminate\Foundation\Application $instance */
  1102. $instance->singleton($abstract, $concrete);
  1103. }
  1104. /**
  1105. * Register a shared binding if it hasn't already been registered.
  1106. *
  1107. * @param string $abstract
  1108. * @param \Closure|string|null $concrete
  1109. * @return void
  1110. * @static
  1111. */
  1112. public static function singletonIf($abstract, $concrete = null)
  1113. { //Method inherited from \Illuminate\Container\Container
  1114. /** @var \Illuminate\Foundation\Application $instance */
  1115. $instance->singletonIf($abstract, $concrete);
  1116. }
  1117. /**
  1118. * Register a scoped binding in the container.
  1119. *
  1120. * @param string $abstract
  1121. * @param \Closure|string|null $concrete
  1122. * @return void
  1123. * @static
  1124. */
  1125. public static function scoped($abstract, $concrete = null)
  1126. { //Method inherited from \Illuminate\Container\Container
  1127. /** @var \Illuminate\Foundation\Application $instance */
  1128. $instance->scoped($abstract, $concrete);
  1129. }
  1130. /**
  1131. * Register a scoped binding if it hasn't already been registered.
  1132. *
  1133. * @param string $abstract
  1134. * @param \Closure|string|null $concrete
  1135. * @return void
  1136. * @static
  1137. */
  1138. public static function scopedIf($abstract, $concrete = null)
  1139. { //Method inherited from \Illuminate\Container\Container
  1140. /** @var \Illuminate\Foundation\Application $instance */
  1141. $instance->scopedIf($abstract, $concrete);
  1142. }
  1143. /**
  1144. * "Extend" an abstract type in the container.
  1145. *
  1146. * @param string $abstract
  1147. * @param \Closure $closure
  1148. * @return void
  1149. * @throws \InvalidArgumentException
  1150. * @static
  1151. */
  1152. public static function extend($abstract, $closure)
  1153. { //Method inherited from \Illuminate\Container\Container
  1154. /** @var \Illuminate\Foundation\Application $instance */
  1155. $instance->extend($abstract, $closure);
  1156. }
  1157. /**
  1158. * Register an existing instance as shared in the container.
  1159. *
  1160. * @param string $abstract
  1161. * @param mixed $instance
  1162. * @return mixed
  1163. * @static
  1164. */
  1165. public static function instance($abstract, $instance)
  1166. { //Method inherited from \Illuminate\Container\Container
  1167. /** @var \Illuminate\Foundation\Application $instance */
  1168. return $instance->instance($abstract, $instance);
  1169. }
  1170. /**
  1171. * Assign a set of tags to a given binding.
  1172. *
  1173. * @param array|string $abstracts
  1174. * @param array|mixed $tags
  1175. * @return void
  1176. * @static
  1177. */
  1178. public static function tag($abstracts, $tags)
  1179. { //Method inherited from \Illuminate\Container\Container
  1180. /** @var \Illuminate\Foundation\Application $instance */
  1181. $instance->tag($abstracts, $tags);
  1182. }
  1183. /**
  1184. * Resolve all of the bindings for a given tag.
  1185. *
  1186. * @param string $tag
  1187. * @return \Illuminate\Container\iterable
  1188. * @static
  1189. */
  1190. public static function tagged($tag)
  1191. { //Method inherited from \Illuminate\Container\Container
  1192. /** @var \Illuminate\Foundation\Application $instance */
  1193. return $instance->tagged($tag);
  1194. }
  1195. /**
  1196. * Alias a type to a different name.
  1197. *
  1198. * @param string $abstract
  1199. * @param string $alias
  1200. * @return void
  1201. * @throws \LogicException
  1202. * @static
  1203. */
  1204. public static function alias($abstract, $alias)
  1205. { //Method inherited from \Illuminate\Container\Container
  1206. /** @var \Illuminate\Foundation\Application $instance */
  1207. $instance->alias($abstract, $alias);
  1208. }
  1209. /**
  1210. * Bind a new callback to an abstract's rebind event.
  1211. *
  1212. * @param string $abstract
  1213. * @param \Closure $callback
  1214. * @return mixed
  1215. * @static
  1216. */
  1217. public static function rebinding($abstract, $callback)
  1218. { //Method inherited from \Illuminate\Container\Container
  1219. /** @var \Illuminate\Foundation\Application $instance */
  1220. return $instance->rebinding($abstract, $callback);
  1221. }
  1222. /**
  1223. * Refresh an instance on the given target and method.
  1224. *
  1225. * @param string $abstract
  1226. * @param mixed $target
  1227. * @param string $method
  1228. * @return mixed
  1229. * @static
  1230. */
  1231. public static function refresh($abstract, $target, $method)
  1232. { //Method inherited from \Illuminate\Container\Container
  1233. /** @var \Illuminate\Foundation\Application $instance */
  1234. return $instance->refresh($abstract, $target, $method);
  1235. }
  1236. /**
  1237. * Wrap the given closure such that its dependencies will be injected when executed.
  1238. *
  1239. * @param \Closure $callback
  1240. * @param array $parameters
  1241. * @return \Closure
  1242. * @static
  1243. */
  1244. public static function wrap($callback, $parameters = [])
  1245. { //Method inherited from \Illuminate\Container\Container
  1246. /** @var \Illuminate\Foundation\Application $instance */
  1247. return $instance->wrap($callback, $parameters);
  1248. }
  1249. /**
  1250. * Call the given Closure / class@method and inject its dependencies.
  1251. *
  1252. * @param callable|string $callback
  1253. * @param \Illuminate\Container\array<string, mixed> $parameters
  1254. * @param string|null $defaultMethod
  1255. * @return mixed
  1256. * @throws \InvalidArgumentException
  1257. * @static
  1258. */
  1259. public static function call($callback, $parameters = [], $defaultMethod = null)
  1260. { //Method inherited from \Illuminate\Container\Container
  1261. /** @var \Illuminate\Foundation\Application $instance */
  1262. return $instance->call($callback, $parameters, $defaultMethod);
  1263. }
  1264. /**
  1265. * Get a closure to resolve the given type from the container.
  1266. *
  1267. * @param string $abstract
  1268. * @return \Closure
  1269. * @static
  1270. */
  1271. public static function factory($abstract)
  1272. { //Method inherited from \Illuminate\Container\Container
  1273. /** @var \Illuminate\Foundation\Application $instance */
  1274. return $instance->factory($abstract);
  1275. }
  1276. /**
  1277. * An alias function name for make().
  1278. *
  1279. * @param string|callable $abstract
  1280. * @param array $parameters
  1281. * @return mixed
  1282. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1283. * @static
  1284. */
  1285. public static function makeWith($abstract, $parameters = [])
  1286. { //Method inherited from \Illuminate\Container\Container
  1287. /** @var \Illuminate\Foundation\Application $instance */
  1288. return $instance->makeWith($abstract, $parameters);
  1289. }
  1290. /**
  1291. * Finds an entry of the container by its identifier and returns it.
  1292. *
  1293. * @return mixed
  1294. * @param string $id Identifier of the entry to look for.
  1295. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1296. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1297. * @return mixed Entry.
  1298. * @static
  1299. */
  1300. public static function get($id)
  1301. { //Method inherited from \Illuminate\Container\Container
  1302. /** @var \Illuminate\Foundation\Application $instance */
  1303. return $instance->get($id);
  1304. }
  1305. /**
  1306. * Instantiate a concrete instance of the given type.
  1307. *
  1308. * @param \Closure|string $concrete
  1309. * @return mixed
  1310. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1311. * @throws \Illuminate\Contracts\Container\CircularDependencyException
  1312. * @static
  1313. */
  1314. public static function build($concrete)
  1315. { //Method inherited from \Illuminate\Container\Container
  1316. /** @var \Illuminate\Foundation\Application $instance */
  1317. return $instance->build($concrete);
  1318. }
  1319. /**
  1320. * Register a new before resolving callback for all types.
  1321. *
  1322. * @param \Closure|string $abstract
  1323. * @param \Closure|null $callback
  1324. * @return void
  1325. * @static
  1326. */
  1327. public static function beforeResolving($abstract, $callback = null)
  1328. { //Method inherited from \Illuminate\Container\Container
  1329. /** @var \Illuminate\Foundation\Application $instance */
  1330. $instance->beforeResolving($abstract, $callback);
  1331. }
  1332. /**
  1333. * Register a new resolving callback.
  1334. *
  1335. * @param \Closure|string $abstract
  1336. * @param \Closure|null $callback
  1337. * @return void
  1338. * @static
  1339. */
  1340. public static function resolving($abstract, $callback = null)
  1341. { //Method inherited from \Illuminate\Container\Container
  1342. /** @var \Illuminate\Foundation\Application $instance */
  1343. $instance->resolving($abstract, $callback);
  1344. }
  1345. /**
  1346. * Register a new after resolving callback for all types.
  1347. *
  1348. * @param \Closure|string $abstract
  1349. * @param \Closure|null $callback
  1350. * @return void
  1351. * @static
  1352. */
  1353. public static function afterResolving($abstract, $callback = null)
  1354. { //Method inherited from \Illuminate\Container\Container
  1355. /** @var \Illuminate\Foundation\Application $instance */
  1356. $instance->afterResolving($abstract, $callback);
  1357. }
  1358. /**
  1359. * Get the container's bindings.
  1360. *
  1361. * @return array
  1362. * @static
  1363. */
  1364. public static function getBindings()
  1365. { //Method inherited from \Illuminate\Container\Container
  1366. /** @var \Illuminate\Foundation\Application $instance */
  1367. return $instance->getBindings();
  1368. }
  1369. /**
  1370. * Get the alias for an abstract if available.
  1371. *
  1372. * @param string $abstract
  1373. * @return string
  1374. * @static
  1375. */
  1376. public static function getAlias($abstract)
  1377. { //Method inherited from \Illuminate\Container\Container
  1378. /** @var \Illuminate\Foundation\Application $instance */
  1379. return $instance->getAlias($abstract);
  1380. }
  1381. /**
  1382. * Remove all of the extender callbacks for a given type.
  1383. *
  1384. * @param string $abstract
  1385. * @return void
  1386. * @static
  1387. */
  1388. public static function forgetExtenders($abstract)
  1389. { //Method inherited from \Illuminate\Container\Container
  1390. /** @var \Illuminate\Foundation\Application $instance */
  1391. $instance->forgetExtenders($abstract);
  1392. }
  1393. /**
  1394. * Remove a resolved instance from the instance cache.
  1395. *
  1396. * @param string $abstract
  1397. * @return void
  1398. * @static
  1399. */
  1400. public static function forgetInstance($abstract)
  1401. { //Method inherited from \Illuminate\Container\Container
  1402. /** @var \Illuminate\Foundation\Application $instance */
  1403. $instance->forgetInstance($abstract);
  1404. }
  1405. /**
  1406. * Clear all of the instances from the container.
  1407. *
  1408. * @return void
  1409. * @static
  1410. */
  1411. public static function forgetInstances()
  1412. { //Method inherited from \Illuminate\Container\Container
  1413. /** @var \Illuminate\Foundation\Application $instance */
  1414. $instance->forgetInstances();
  1415. }
  1416. /**
  1417. * Clear all of the scoped instances from the container.
  1418. *
  1419. * @return void
  1420. * @static
  1421. */
  1422. public static function forgetScopedInstances()
  1423. { //Method inherited from \Illuminate\Container\Container
  1424. /** @var \Illuminate\Foundation\Application $instance */
  1425. $instance->forgetScopedInstances();
  1426. }
  1427. /**
  1428. * Get the globally available instance of the container.
  1429. *
  1430. * @return static
  1431. * @static
  1432. */
  1433. public static function getInstance()
  1434. { //Method inherited from \Illuminate\Container\Container
  1435. return \Illuminate\Foundation\Application::getInstance();
  1436. }
  1437. /**
  1438. * Set the shared instance of the container.
  1439. *
  1440. * @param \Illuminate\Contracts\Container\Container|null $container
  1441. * @return \Illuminate\Contracts\Container\Container|static
  1442. * @static
  1443. */
  1444. public static function setInstance($container = null)
  1445. { //Method inherited from \Illuminate\Container\Container
  1446. return \Illuminate\Foundation\Application::setInstance($container);
  1447. }
  1448. /**
  1449. * Determine if a given offset exists.
  1450. *
  1451. * @param string $key
  1452. * @return bool
  1453. * @static
  1454. */
  1455. public static function offsetExists($key)
  1456. { //Method inherited from \Illuminate\Container\Container
  1457. /** @var \Illuminate\Foundation\Application $instance */
  1458. return $instance->offsetExists($key);
  1459. }
  1460. /**
  1461. * Get the value at a given offset.
  1462. *
  1463. * @param string $key
  1464. * @return mixed
  1465. * @static
  1466. */
  1467. public static function offsetGet($key)
  1468. { //Method inherited from \Illuminate\Container\Container
  1469. /** @var \Illuminate\Foundation\Application $instance */
  1470. return $instance->offsetGet($key);
  1471. }
  1472. /**
  1473. * Set the value at a given offset.
  1474. *
  1475. * @param string $key
  1476. * @param mixed $value
  1477. * @return void
  1478. * @static
  1479. */
  1480. public static function offsetSet($key, $value)
  1481. { //Method inherited from \Illuminate\Container\Container
  1482. /** @var \Illuminate\Foundation\Application $instance */
  1483. $instance->offsetSet($key, $value);
  1484. }
  1485. /**
  1486. * Unset the value at a given offset.
  1487. *
  1488. * @param string $key
  1489. * @return void
  1490. * @static
  1491. */
  1492. public static function offsetUnset($key)
  1493. { //Method inherited from \Illuminate\Container\Container
  1494. /** @var \Illuminate\Foundation\Application $instance */
  1495. $instance->offsetUnset($key);
  1496. }
  1497. /**
  1498. * Register a custom macro.
  1499. *
  1500. * @param string $name
  1501. * @param object|callable $macro
  1502. * @return void
  1503. * @static
  1504. */
  1505. public static function macro($name, $macro)
  1506. {
  1507. \Illuminate\Foundation\Application::macro($name, $macro);
  1508. }
  1509. /**
  1510. * Mix another object into the class.
  1511. *
  1512. * @param object $mixin
  1513. * @param bool $replace
  1514. * @return void
  1515. * @throws \ReflectionException
  1516. * @static
  1517. */
  1518. public static function mixin($mixin, $replace = true)
  1519. {
  1520. \Illuminate\Foundation\Application::mixin($mixin, $replace);
  1521. }
  1522. /**
  1523. * Checks if macro is registered.
  1524. *
  1525. * @param string $name
  1526. * @return bool
  1527. * @static
  1528. */
  1529. public static function hasMacro($name)
  1530. {
  1531. return \Illuminate\Foundation\Application::hasMacro($name);
  1532. }
  1533. /**
  1534. * Flush the existing macros.
  1535. *
  1536. * @return void
  1537. * @static
  1538. */
  1539. public static function flushMacros()
  1540. {
  1541. \Illuminate\Foundation\Application::flushMacros();
  1542. }
  1543. }
  1544. /**
  1545. *
  1546. *
  1547. * @see \Illuminate\Contracts\Console\Kernel
  1548. */
  1549. class Artisan {
  1550. /**
  1551. * Run the console application.
  1552. *
  1553. * @param \Symfony\Component\Console\Input\InputInterface $input
  1554. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1555. * @return int
  1556. * @static
  1557. */
  1558. public static function handle($input, $output = null)
  1559. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1560. /** @var \App\Console\Kernel $instance */
  1561. return $instance->handle($input, $output);
  1562. }
  1563. /**
  1564. * Terminate the application.
  1565. *
  1566. * @param \Symfony\Component\Console\Input\InputInterface $input
  1567. * @param int $status
  1568. * @return void
  1569. * @static
  1570. */
  1571. public static function terminate($input, $status)
  1572. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1573. /** @var \App\Console\Kernel $instance */
  1574. $instance->terminate($input, $status);
  1575. }
  1576. /**
  1577. * Register a callback to be invoked when the command lifecyle duration exceeds a given amount of time.
  1578. *
  1579. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  1580. * @param callable $handler
  1581. * @return void
  1582. * @static
  1583. */
  1584. public static function whenCommandLifecycleIsLongerThan($threshold, $handler)
  1585. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1586. /** @var \App\Console\Kernel $instance */
  1587. $instance->whenCommandLifecycleIsLongerThan($threshold, $handler);
  1588. }
  1589. /**
  1590. * When the command being handled started.
  1591. *
  1592. * @return \Illuminate\Support\Carbon|null
  1593. * @static
  1594. */
  1595. public static function commandStartedAt()
  1596. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1597. /** @var \App\Console\Kernel $instance */
  1598. return $instance->commandStartedAt();
  1599. }
  1600. /**
  1601. * Register a Closure based command with the application.
  1602. *
  1603. * @param string $signature
  1604. * @param \Closure $callback
  1605. * @return \Illuminate\Foundation\Console\ClosureCommand
  1606. * @static
  1607. */
  1608. public static function command($signature, $callback)
  1609. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1610. /** @var \App\Console\Kernel $instance */
  1611. return $instance->command($signature, $callback);
  1612. }
  1613. /**
  1614. * Register the given command with the console application.
  1615. *
  1616. * @param \Symfony\Component\Console\Command\Command $command
  1617. * @return void
  1618. * @static
  1619. */
  1620. public static function registerCommand($command)
  1621. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1622. /** @var \App\Console\Kernel $instance */
  1623. $instance->registerCommand($command);
  1624. }
  1625. /**
  1626. * Run an Artisan console command by name.
  1627. *
  1628. * @param string $command
  1629. * @param array $parameters
  1630. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1631. * @return int
  1632. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1633. * @static
  1634. */
  1635. public static function call($command, $parameters = [], $outputBuffer = null)
  1636. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1637. /** @var \App\Console\Kernel $instance */
  1638. return $instance->call($command, $parameters, $outputBuffer);
  1639. }
  1640. /**
  1641. * Queue the given console command.
  1642. *
  1643. * @param string $command
  1644. * @param array $parameters
  1645. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1646. * @static
  1647. */
  1648. public static function queue($command, $parameters = [])
  1649. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1650. /** @var \App\Console\Kernel $instance */
  1651. return $instance->queue($command, $parameters);
  1652. }
  1653. /**
  1654. * Get all of the commands registered with the console.
  1655. *
  1656. * @return array
  1657. * @static
  1658. */
  1659. public static function all()
  1660. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1661. /** @var \App\Console\Kernel $instance */
  1662. return $instance->all();
  1663. }
  1664. /**
  1665. * Get the output for the last run command.
  1666. *
  1667. * @return string
  1668. * @static
  1669. */
  1670. public static function output()
  1671. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1672. /** @var \App\Console\Kernel $instance */
  1673. return $instance->output();
  1674. }
  1675. /**
  1676. * Bootstrap the application for artisan commands.
  1677. *
  1678. * @return void
  1679. * @static
  1680. */
  1681. public static function bootstrap()
  1682. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1683. /** @var \App\Console\Kernel $instance */
  1684. $instance->bootstrap();
  1685. }
  1686. /**
  1687. * Set the Artisan application instance.
  1688. *
  1689. * @param \Illuminate\Console\Application $artisan
  1690. * @return void
  1691. * @static
  1692. */
  1693. public static function setArtisan($artisan)
  1694. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1695. /** @var \App\Console\Kernel $instance */
  1696. $instance->setArtisan($artisan);
  1697. }
  1698. }
  1699. /**
  1700. *
  1701. *
  1702. * @see \Illuminate\Auth\AuthManager
  1703. * @see \Illuminate\Contracts\Auth\Factory
  1704. * @see \Illuminate\Contracts\Auth\Guard
  1705. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1706. */
  1707. class Auth {
  1708. /**
  1709. * Attempt to get the guard from the local cache.
  1710. *
  1711. * @param string|null $name
  1712. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1713. * @static
  1714. */
  1715. public static function guard($name = null)
  1716. {
  1717. /** @var \Illuminate\Auth\AuthManager $instance */
  1718. return $instance->guard($name);
  1719. }
  1720. /**
  1721. * Create a session based authentication guard.
  1722. *
  1723. * @param string $name
  1724. * @param array $config
  1725. * @return \Illuminate\Auth\SessionGuard
  1726. * @static
  1727. */
  1728. public static function createSessionDriver($name, $config)
  1729. {
  1730. /** @var \Illuminate\Auth\AuthManager $instance */
  1731. return $instance->createSessionDriver($name, $config);
  1732. }
  1733. /**
  1734. * Create a token based authentication guard.
  1735. *
  1736. * @param string $name
  1737. * @param array $config
  1738. * @return \Illuminate\Auth\TokenGuard
  1739. * @static
  1740. */
  1741. public static function createTokenDriver($name, $config)
  1742. {
  1743. /** @var \Illuminate\Auth\AuthManager $instance */
  1744. return $instance->createTokenDriver($name, $config);
  1745. }
  1746. /**
  1747. * Get the default authentication driver name.
  1748. *
  1749. * @return string
  1750. * @static
  1751. */
  1752. public static function getDefaultDriver()
  1753. {
  1754. /** @var \Illuminate\Auth\AuthManager $instance */
  1755. return $instance->getDefaultDriver();
  1756. }
  1757. /**
  1758. * Set the default guard driver the factory should serve.
  1759. *
  1760. * @param string $name
  1761. * @return void
  1762. * @static
  1763. */
  1764. public static function shouldUse($name)
  1765. {
  1766. /** @var \Illuminate\Auth\AuthManager $instance */
  1767. $instance->shouldUse($name);
  1768. }
  1769. /**
  1770. * Set the default authentication driver name.
  1771. *
  1772. * @param string $name
  1773. * @return void
  1774. * @static
  1775. */
  1776. public static function setDefaultDriver($name)
  1777. {
  1778. /** @var \Illuminate\Auth\AuthManager $instance */
  1779. $instance->setDefaultDriver($name);
  1780. }
  1781. /**
  1782. * Register a new callback based request guard.
  1783. *
  1784. * @param string $driver
  1785. * @param callable $callback
  1786. * @return \Illuminate\Auth\AuthManager
  1787. * @static
  1788. */
  1789. public static function viaRequest($driver, $callback)
  1790. {
  1791. /** @var \Illuminate\Auth\AuthManager $instance */
  1792. return $instance->viaRequest($driver, $callback);
  1793. }
  1794. /**
  1795. * Get the user resolver callback.
  1796. *
  1797. * @return \Closure
  1798. * @static
  1799. */
  1800. public static function userResolver()
  1801. {
  1802. /** @var \Illuminate\Auth\AuthManager $instance */
  1803. return $instance->userResolver();
  1804. }
  1805. /**
  1806. * Set the callback to be used to resolve users.
  1807. *
  1808. * @param \Closure $userResolver
  1809. * @return \Illuminate\Auth\AuthManager
  1810. * @static
  1811. */
  1812. public static function resolveUsersUsing($userResolver)
  1813. {
  1814. /** @var \Illuminate\Auth\AuthManager $instance */
  1815. return $instance->resolveUsersUsing($userResolver);
  1816. }
  1817. /**
  1818. * Register a custom driver creator Closure.
  1819. *
  1820. * @param string $driver
  1821. * @param \Closure $callback
  1822. * @return \Illuminate\Auth\AuthManager
  1823. * @static
  1824. */
  1825. public static function extend($driver, $callback)
  1826. {
  1827. /** @var \Illuminate\Auth\AuthManager $instance */
  1828. return $instance->extend($driver, $callback);
  1829. }
  1830. /**
  1831. * Register a custom provider creator Closure.
  1832. *
  1833. * @param string $name
  1834. * @param \Closure $callback
  1835. * @return \Illuminate\Auth\AuthManager
  1836. * @static
  1837. */
  1838. public static function provider($name, $callback)
  1839. {
  1840. /** @var \Illuminate\Auth\AuthManager $instance */
  1841. return $instance->provider($name, $callback);
  1842. }
  1843. /**
  1844. * Determines if any guards have already been resolved.
  1845. *
  1846. * @return bool
  1847. * @static
  1848. */
  1849. public static function hasResolvedGuards()
  1850. {
  1851. /** @var \Illuminate\Auth\AuthManager $instance */
  1852. return $instance->hasResolvedGuards();
  1853. }
  1854. /**
  1855. * Forget all of the resolved guard instances.
  1856. *
  1857. * @return \Illuminate\Auth\AuthManager
  1858. * @static
  1859. */
  1860. public static function forgetGuards()
  1861. {
  1862. /** @var \Illuminate\Auth\AuthManager $instance */
  1863. return $instance->forgetGuards();
  1864. }
  1865. /**
  1866. * Set the application instance used by the manager.
  1867. *
  1868. * @param \Illuminate\Contracts\Foundation\Application $app
  1869. * @return \Illuminate\Auth\AuthManager
  1870. * @static
  1871. */
  1872. public static function setApplication($app)
  1873. {
  1874. /** @var \Illuminate\Auth\AuthManager $instance */
  1875. return $instance->setApplication($app);
  1876. }
  1877. /**
  1878. * Create the user provider implementation for the driver.
  1879. *
  1880. * @param string|null $provider
  1881. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1882. * @throws \InvalidArgumentException
  1883. * @static
  1884. */
  1885. public static function createUserProvider($provider = null)
  1886. {
  1887. /** @var \Illuminate\Auth\AuthManager $instance */
  1888. return $instance->createUserProvider($provider);
  1889. }
  1890. /**
  1891. * Get the default user provider name.
  1892. *
  1893. * @return string
  1894. * @static
  1895. */
  1896. public static function getDefaultUserProvider()
  1897. {
  1898. /** @var \Illuminate\Auth\AuthManager $instance */
  1899. return $instance->getDefaultUserProvider();
  1900. }
  1901. /**
  1902. * Get the currently authenticated user.
  1903. *
  1904. * @return \App\Models\User|null
  1905. * @static
  1906. */
  1907. public static function user()
  1908. {
  1909. /** @var \Illuminate\Auth\SessionGuard $instance */
  1910. return $instance->user();
  1911. }
  1912. /**
  1913. * Get the ID for the currently authenticated user.
  1914. *
  1915. * @return int|string|null
  1916. * @static
  1917. */
  1918. public static function id()
  1919. {
  1920. /** @var \Illuminate\Auth\SessionGuard $instance */
  1921. return $instance->id();
  1922. }
  1923. /**
  1924. * Log a user into the application without sessions or cookies.
  1925. *
  1926. * @param array $credentials
  1927. * @return bool
  1928. * @static
  1929. */
  1930. public static function once($credentials = [])
  1931. {
  1932. /** @var \Illuminate\Auth\SessionGuard $instance */
  1933. return $instance->once($credentials);
  1934. }
  1935. /**
  1936. * Log the given user ID into the application without sessions or cookies.
  1937. *
  1938. * @param mixed $id
  1939. * @return \App\Models\User|false
  1940. * @static
  1941. */
  1942. public static function onceUsingId($id)
  1943. {
  1944. /** @var \Illuminate\Auth\SessionGuard $instance */
  1945. return $instance->onceUsingId($id);
  1946. }
  1947. /**
  1948. * Validate a user's credentials.
  1949. *
  1950. * @param array $credentials
  1951. * @return bool
  1952. * @static
  1953. */
  1954. public static function validate($credentials = [])
  1955. {
  1956. /** @var \Illuminate\Auth\SessionGuard $instance */
  1957. return $instance->validate($credentials);
  1958. }
  1959. /**
  1960. * Attempt to authenticate using HTTP Basic Auth.
  1961. *
  1962. * @param string $field
  1963. * @param array $extraConditions
  1964. * @return \Symfony\Component\HttpFoundation\Response|null
  1965. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1966. * @static
  1967. */
  1968. public static function basic($field = 'email', $extraConditions = [])
  1969. {
  1970. /** @var \Illuminate\Auth\SessionGuard $instance */
  1971. return $instance->basic($field, $extraConditions);
  1972. }
  1973. /**
  1974. * Perform a stateless HTTP Basic login attempt.
  1975. *
  1976. * @param string $field
  1977. * @param array $extraConditions
  1978. * @return \Symfony\Component\HttpFoundation\Response|null
  1979. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1980. * @static
  1981. */
  1982. public static function onceBasic($field = 'email', $extraConditions = [])
  1983. {
  1984. /** @var \Illuminate\Auth\SessionGuard $instance */
  1985. return $instance->onceBasic($field, $extraConditions);
  1986. }
  1987. /**
  1988. * Attempt to authenticate a user using the given credentials.
  1989. *
  1990. * @param array $credentials
  1991. * @param bool $remember
  1992. * @return bool
  1993. * @static
  1994. */
  1995. public static function attempt($credentials = [], $remember = false)
  1996. {
  1997. /** @var \Illuminate\Auth\SessionGuard $instance */
  1998. return $instance->attempt($credentials, $remember);
  1999. }
  2000. /**
  2001. * Attempt to authenticate a user with credentials and additional callbacks.
  2002. *
  2003. * @param array $credentials
  2004. * @param array|callable $callbacks
  2005. * @param bool $remember
  2006. * @return bool
  2007. * @static
  2008. */
  2009. public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
  2010. {
  2011. /** @var \Illuminate\Auth\SessionGuard $instance */
  2012. return $instance->attemptWhen($credentials, $callbacks, $remember);
  2013. }
  2014. /**
  2015. * Log the given user ID into the application.
  2016. *
  2017. * @param mixed $id
  2018. * @param bool $remember
  2019. * @return \App\Models\User|false
  2020. * @static
  2021. */
  2022. public static function loginUsingId($id, $remember = false)
  2023. {
  2024. /** @var \Illuminate\Auth\SessionGuard $instance */
  2025. return $instance->loginUsingId($id, $remember);
  2026. }
  2027. /**
  2028. * Log a user into the application.
  2029. *
  2030. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2031. * @param bool $remember
  2032. * @return void
  2033. * @static
  2034. */
  2035. public static function login($user, $remember = false)
  2036. {
  2037. /** @var \Illuminate\Auth\SessionGuard $instance */
  2038. $instance->login($user, $remember);
  2039. }
  2040. /**
  2041. * Log the user out of the application.
  2042. *
  2043. * @return void
  2044. * @static
  2045. */
  2046. public static function logout()
  2047. {
  2048. /** @var \Illuminate\Auth\SessionGuard $instance */
  2049. $instance->logout();
  2050. }
  2051. /**
  2052. * Log the user out of the application on their current device only.
  2053. *
  2054. * This method does not cycle the "remember" token.
  2055. *
  2056. * @return void
  2057. * @static
  2058. */
  2059. public static function logoutCurrentDevice()
  2060. {
  2061. /** @var \Illuminate\Auth\SessionGuard $instance */
  2062. $instance->logoutCurrentDevice();
  2063. }
  2064. /**
  2065. * Invalidate other sessions for the current user.
  2066. *
  2067. * The application must be using the AuthenticateSession middleware.
  2068. *
  2069. * @param string $password
  2070. * @param string $attribute
  2071. * @return \App\Models\User|null
  2072. * @throws \Illuminate\Auth\AuthenticationException
  2073. * @static
  2074. */
  2075. public static function logoutOtherDevices($password, $attribute = 'password')
  2076. {
  2077. /** @var \Illuminate\Auth\SessionGuard $instance */
  2078. return $instance->logoutOtherDevices($password, $attribute);
  2079. }
  2080. /**
  2081. * Register an authentication attempt event listener.
  2082. *
  2083. * @param mixed $callback
  2084. * @return void
  2085. * @static
  2086. */
  2087. public static function attempting($callback)
  2088. {
  2089. /** @var \Illuminate\Auth\SessionGuard $instance */
  2090. $instance->attempting($callback);
  2091. }
  2092. /**
  2093. * Get the last user we attempted to authenticate.
  2094. *
  2095. * @return \App\Models\User
  2096. * @static
  2097. */
  2098. public static function getLastAttempted()
  2099. {
  2100. /** @var \Illuminate\Auth\SessionGuard $instance */
  2101. return $instance->getLastAttempted();
  2102. }
  2103. /**
  2104. * Get a unique identifier for the auth session value.
  2105. *
  2106. * @return string
  2107. * @static
  2108. */
  2109. public static function getName()
  2110. {
  2111. /** @var \Illuminate\Auth\SessionGuard $instance */
  2112. return $instance->getName();
  2113. }
  2114. /**
  2115. * Get the name of the cookie used to store the "recaller".
  2116. *
  2117. * @return string
  2118. * @static
  2119. */
  2120. public static function getRecallerName()
  2121. {
  2122. /** @var \Illuminate\Auth\SessionGuard $instance */
  2123. return $instance->getRecallerName();
  2124. }
  2125. /**
  2126. * Determine if the user was authenticated via "remember me" cookie.
  2127. *
  2128. * @return bool
  2129. * @static
  2130. */
  2131. public static function viaRemember()
  2132. {
  2133. /** @var \Illuminate\Auth\SessionGuard $instance */
  2134. return $instance->viaRemember();
  2135. }
  2136. /**
  2137. * Set the number of minutes the remember me cookie should be valid for.
  2138. *
  2139. * @param int $minutes
  2140. * @return \Illuminate\Auth\SessionGuard
  2141. * @static
  2142. */
  2143. public static function setRememberDuration($minutes)
  2144. {
  2145. /** @var \Illuminate\Auth\SessionGuard $instance */
  2146. return $instance->setRememberDuration($minutes);
  2147. }
  2148. /**
  2149. * Get the cookie creator instance used by the guard.
  2150. *
  2151. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  2152. * @throws \RuntimeException
  2153. * @static
  2154. */
  2155. public static function getCookieJar()
  2156. {
  2157. /** @var \Illuminate\Auth\SessionGuard $instance */
  2158. return $instance->getCookieJar();
  2159. }
  2160. /**
  2161. * Set the cookie creator instance used by the guard.
  2162. *
  2163. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  2164. * @return void
  2165. * @static
  2166. */
  2167. public static function setCookieJar($cookie)
  2168. {
  2169. /** @var \Illuminate\Auth\SessionGuard $instance */
  2170. $instance->setCookieJar($cookie);
  2171. }
  2172. /**
  2173. * Get the event dispatcher instance.
  2174. *
  2175. * @return \Illuminate\Contracts\Events\Dispatcher
  2176. * @static
  2177. */
  2178. public static function getDispatcher()
  2179. {
  2180. /** @var \Illuminate\Auth\SessionGuard $instance */
  2181. return $instance->getDispatcher();
  2182. }
  2183. /**
  2184. * Set the event dispatcher instance.
  2185. *
  2186. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2187. * @return void
  2188. * @static
  2189. */
  2190. public static function setDispatcher($events)
  2191. {
  2192. /** @var \Illuminate\Auth\SessionGuard $instance */
  2193. $instance->setDispatcher($events);
  2194. }
  2195. /**
  2196. * Get the session store used by the guard.
  2197. *
  2198. * @return \Illuminate\Contracts\Session\Session
  2199. * @static
  2200. */
  2201. public static function getSession()
  2202. {
  2203. /** @var \Illuminate\Auth\SessionGuard $instance */
  2204. return $instance->getSession();
  2205. }
  2206. /**
  2207. * Return the currently cached user.
  2208. *
  2209. * @return \App\Models\User|null
  2210. * @static
  2211. */
  2212. public static function getUser()
  2213. {
  2214. /** @var \Illuminate\Auth\SessionGuard $instance */
  2215. return $instance->getUser();
  2216. }
  2217. /**
  2218. * Set the current user.
  2219. *
  2220. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2221. * @return \Illuminate\Auth\SessionGuard
  2222. * @static
  2223. */
  2224. public static function setUser($user)
  2225. {
  2226. /** @var \Illuminate\Auth\SessionGuard $instance */
  2227. return $instance->setUser($user);
  2228. }
  2229. /**
  2230. * Get the current request instance.
  2231. *
  2232. * @return \Symfony\Component\HttpFoundation\Request
  2233. * @static
  2234. */
  2235. public static function getRequest()
  2236. {
  2237. /** @var \Illuminate\Auth\SessionGuard $instance */
  2238. return $instance->getRequest();
  2239. }
  2240. /**
  2241. * Set the current request instance.
  2242. *
  2243. * @param \Symfony\Component\HttpFoundation\Request $request
  2244. * @return \Illuminate\Auth\SessionGuard
  2245. * @static
  2246. */
  2247. public static function setRequest($request)
  2248. {
  2249. /** @var \Illuminate\Auth\SessionGuard $instance */
  2250. return $instance->setRequest($request);
  2251. }
  2252. /**
  2253. * Get the timebox instance used by the guard.
  2254. *
  2255. * @return \Illuminate\Support\Timebox
  2256. * @static
  2257. */
  2258. public static function getTimebox()
  2259. {
  2260. /** @var \Illuminate\Auth\SessionGuard $instance */
  2261. return $instance->getTimebox();
  2262. }
  2263. /**
  2264. * Determine if the current user is authenticated. If not, throw an exception.
  2265. *
  2266. * @return \App\Models\User
  2267. * @throws \Illuminate\Auth\AuthenticationException
  2268. * @static
  2269. */
  2270. public static function authenticate()
  2271. {
  2272. /** @var \Illuminate\Auth\SessionGuard $instance */
  2273. return $instance->authenticate();
  2274. }
  2275. /**
  2276. * Determine if the guard has a user instance.
  2277. *
  2278. * @return bool
  2279. * @static
  2280. */
  2281. public static function hasUser()
  2282. {
  2283. /** @var \Illuminate\Auth\SessionGuard $instance */
  2284. return $instance->hasUser();
  2285. }
  2286. /**
  2287. * Determine if the current user is authenticated.
  2288. *
  2289. * @return bool
  2290. * @static
  2291. */
  2292. public static function check()
  2293. {
  2294. /** @var \Illuminate\Auth\SessionGuard $instance */
  2295. return $instance->check();
  2296. }
  2297. /**
  2298. * Determine if the current user is a guest.
  2299. *
  2300. * @return bool
  2301. * @static
  2302. */
  2303. public static function guest()
  2304. {
  2305. /** @var \Illuminate\Auth\SessionGuard $instance */
  2306. return $instance->guest();
  2307. }
  2308. /**
  2309. * Get the user provider used by the guard.
  2310. *
  2311. * @return \Illuminate\Contracts\Auth\UserProvider
  2312. * @static
  2313. */
  2314. public static function getProvider()
  2315. {
  2316. /** @var \Illuminate\Auth\SessionGuard $instance */
  2317. return $instance->getProvider();
  2318. }
  2319. /**
  2320. * Set the user provider used by the guard.
  2321. *
  2322. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2323. * @return void
  2324. * @static
  2325. */
  2326. public static function setProvider($provider)
  2327. {
  2328. /** @var \Illuminate\Auth\SessionGuard $instance */
  2329. $instance->setProvider($provider);
  2330. }
  2331. /**
  2332. * Register a custom macro.
  2333. *
  2334. * @param string $name
  2335. * @param object|callable $macro
  2336. * @return void
  2337. * @static
  2338. */
  2339. public static function macro($name, $macro)
  2340. {
  2341. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2342. }
  2343. /**
  2344. * Mix another object into the class.
  2345. *
  2346. * @param object $mixin
  2347. * @param bool $replace
  2348. * @return void
  2349. * @throws \ReflectionException
  2350. * @static
  2351. */
  2352. public static function mixin($mixin, $replace = true)
  2353. {
  2354. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2355. }
  2356. /**
  2357. * Checks if macro is registered.
  2358. *
  2359. * @param string $name
  2360. * @return bool
  2361. * @static
  2362. */
  2363. public static function hasMacro($name)
  2364. {
  2365. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2366. }
  2367. /**
  2368. * Flush the existing macros.
  2369. *
  2370. * @return void
  2371. * @static
  2372. */
  2373. public static function flushMacros()
  2374. {
  2375. \Illuminate\Auth\SessionGuard::flushMacros();
  2376. }
  2377. }
  2378. /**
  2379. *
  2380. *
  2381. * @see \Illuminate\View\Compilers\BladeCompiler
  2382. */
  2383. class Blade {
  2384. /**
  2385. * Compile the view at the given path.
  2386. *
  2387. * @param string|null $path
  2388. * @return void
  2389. * @static
  2390. */
  2391. public static function compile($path = null)
  2392. {
  2393. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2394. $instance->compile($path);
  2395. }
  2396. /**
  2397. * Get the path currently being compiled.
  2398. *
  2399. * @return string
  2400. * @static
  2401. */
  2402. public static function getPath()
  2403. {
  2404. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2405. return $instance->getPath();
  2406. }
  2407. /**
  2408. * Set the path currently being compiled.
  2409. *
  2410. * @param string $path
  2411. * @return void
  2412. * @static
  2413. */
  2414. public static function setPath($path)
  2415. {
  2416. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2417. $instance->setPath($path);
  2418. }
  2419. /**
  2420. * Compile the given Blade template contents.
  2421. *
  2422. * @param string $value
  2423. * @return string
  2424. * @static
  2425. */
  2426. public static function compileString($value)
  2427. {
  2428. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2429. return $instance->compileString($value);
  2430. }
  2431. /**
  2432. * Evaluate and render a Blade string to HTML.
  2433. *
  2434. * @param string $string
  2435. * @param array $data
  2436. * @param bool $deleteCachedView
  2437. * @return string
  2438. * @static
  2439. */
  2440. public static function render($string, $data = [], $deleteCachedView = false)
  2441. {
  2442. return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
  2443. }
  2444. /**
  2445. * Render a component instance to HTML.
  2446. *
  2447. * @param \Illuminate\View\Component $component
  2448. * @return string
  2449. * @static
  2450. */
  2451. public static function renderComponent($component)
  2452. {
  2453. return \Illuminate\View\Compilers\BladeCompiler::renderComponent($component);
  2454. }
  2455. /**
  2456. * Strip the parentheses from the given expression.
  2457. *
  2458. * @param string $expression
  2459. * @return string
  2460. * @static
  2461. */
  2462. public static function stripParentheses($expression)
  2463. {
  2464. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2465. return $instance->stripParentheses($expression);
  2466. }
  2467. /**
  2468. * Register a custom Blade compiler.
  2469. *
  2470. * @param callable $compiler
  2471. * @return void
  2472. * @static
  2473. */
  2474. public static function extend($compiler)
  2475. {
  2476. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2477. $instance->extend($compiler);
  2478. }
  2479. /**
  2480. * Get the extensions used by the compiler.
  2481. *
  2482. * @return array
  2483. * @static
  2484. */
  2485. public static function getExtensions()
  2486. {
  2487. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2488. return $instance->getExtensions();
  2489. }
  2490. /**
  2491. * Register an "if" statement directive.
  2492. *
  2493. * @param string $name
  2494. * @param callable $callback
  2495. * @return void
  2496. * @static
  2497. */
  2498. public static function if($name, $callback)
  2499. {
  2500. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2501. $instance->if($name, $callback);
  2502. }
  2503. /**
  2504. * Check the result of a condition.
  2505. *
  2506. * @param string $name
  2507. * @param array $parameters
  2508. * @return bool
  2509. * @static
  2510. */
  2511. public static function check($name, ...$parameters)
  2512. {
  2513. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2514. return $instance->check($name, ...$parameters);
  2515. }
  2516. /**
  2517. * Register a class-based component alias directive.
  2518. *
  2519. * @param string $class
  2520. * @param string|null $alias
  2521. * @param string $prefix
  2522. * @return void
  2523. * @static
  2524. */
  2525. public static function component($class, $alias = null, $prefix = '')
  2526. {
  2527. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2528. $instance->component($class, $alias, $prefix);
  2529. }
  2530. /**
  2531. * Register an array of class-based components.
  2532. *
  2533. * @param array $components
  2534. * @param string $prefix
  2535. * @return void
  2536. * @static
  2537. */
  2538. public static function components($components, $prefix = '')
  2539. {
  2540. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2541. $instance->components($components, $prefix);
  2542. }
  2543. /**
  2544. * Get the registered class component aliases.
  2545. *
  2546. * @return array
  2547. * @static
  2548. */
  2549. public static function getClassComponentAliases()
  2550. {
  2551. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2552. return $instance->getClassComponentAliases();
  2553. }
  2554. /**
  2555. * Register an anonymous component namespace.
  2556. *
  2557. * @param string $directory
  2558. * @param string|null $prefix
  2559. * @return void
  2560. * @static
  2561. */
  2562. public static function anonymousComponentNamespace($directory, $prefix = null)
  2563. {
  2564. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2565. $instance->anonymousComponentNamespace($directory, $prefix);
  2566. }
  2567. /**
  2568. * Register a class-based component namespace.
  2569. *
  2570. * @param string $namespace
  2571. * @param string $prefix
  2572. * @return void
  2573. * @static
  2574. */
  2575. public static function componentNamespace($namespace, $prefix)
  2576. {
  2577. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2578. $instance->componentNamespace($namespace, $prefix);
  2579. }
  2580. /**
  2581. * Get the registered anonymous component namespaces.
  2582. *
  2583. * @return array
  2584. * @static
  2585. */
  2586. public static function getAnonymousComponentNamespaces()
  2587. {
  2588. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2589. return $instance->getAnonymousComponentNamespaces();
  2590. }
  2591. /**
  2592. * Get the registered class component namespaces.
  2593. *
  2594. * @return array
  2595. * @static
  2596. */
  2597. public static function getClassComponentNamespaces()
  2598. {
  2599. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2600. return $instance->getClassComponentNamespaces();
  2601. }
  2602. /**
  2603. * Register a component alias directive.
  2604. *
  2605. * @param string $path
  2606. * @param string|null $alias
  2607. * @return void
  2608. * @static
  2609. */
  2610. public static function aliasComponent($path, $alias = null)
  2611. {
  2612. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2613. $instance->aliasComponent($path, $alias);
  2614. }
  2615. /**
  2616. * Register an include alias directive.
  2617. *
  2618. * @param string $path
  2619. * @param string|null $alias
  2620. * @return void
  2621. * @static
  2622. */
  2623. public static function include($path, $alias = null)
  2624. {
  2625. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2626. $instance->include($path, $alias);
  2627. }
  2628. /**
  2629. * Register an include alias directive.
  2630. *
  2631. * @param string $path
  2632. * @param string|null $alias
  2633. * @return void
  2634. * @static
  2635. */
  2636. public static function aliasInclude($path, $alias = null)
  2637. {
  2638. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2639. $instance->aliasInclude($path, $alias);
  2640. }
  2641. /**
  2642. * Register a handler for custom directives.
  2643. *
  2644. * @param string $name
  2645. * @param callable $handler
  2646. * @return void
  2647. * @throws \InvalidArgumentException
  2648. * @static
  2649. */
  2650. public static function directive($name, $handler)
  2651. {
  2652. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2653. $instance->directive($name, $handler);
  2654. }
  2655. /**
  2656. * Get the list of custom directives.
  2657. *
  2658. * @return array
  2659. * @static
  2660. */
  2661. public static function getCustomDirectives()
  2662. {
  2663. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2664. return $instance->getCustomDirectives();
  2665. }
  2666. /**
  2667. * Register a new precompiler.
  2668. *
  2669. * @param callable $precompiler
  2670. * @return void
  2671. * @static
  2672. */
  2673. public static function precompiler($precompiler)
  2674. {
  2675. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2676. $instance->precompiler($precompiler);
  2677. }
  2678. /**
  2679. * Set the echo format to be used by the compiler.
  2680. *
  2681. * @param string $format
  2682. * @return void
  2683. * @static
  2684. */
  2685. public static function setEchoFormat($format)
  2686. {
  2687. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2688. $instance->setEchoFormat($format);
  2689. }
  2690. /**
  2691. * Set the "echo" format to double encode entities.
  2692. *
  2693. * @return void
  2694. * @static
  2695. */
  2696. public static function withDoubleEncoding()
  2697. {
  2698. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2699. $instance->withDoubleEncoding();
  2700. }
  2701. /**
  2702. * Set the "echo" format to not double encode entities.
  2703. *
  2704. * @return void
  2705. * @static
  2706. */
  2707. public static function withoutDoubleEncoding()
  2708. {
  2709. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2710. $instance->withoutDoubleEncoding();
  2711. }
  2712. /**
  2713. * Indicate that component tags should not be compiled.
  2714. *
  2715. * @return void
  2716. * @static
  2717. */
  2718. public static function withoutComponentTags()
  2719. {
  2720. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2721. $instance->withoutComponentTags();
  2722. }
  2723. /**
  2724. * Get the path to the compiled version of a view.
  2725. *
  2726. * @param string $path
  2727. * @return string
  2728. * @static
  2729. */
  2730. public static function getCompiledPath($path)
  2731. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2732. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2733. return $instance->getCompiledPath($path);
  2734. }
  2735. /**
  2736. * Determine if the view at the given path is expired.
  2737. *
  2738. * @param string $path
  2739. * @return bool
  2740. * @static
  2741. */
  2742. public static function isExpired($path)
  2743. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2744. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2745. return $instance->isExpired($path);
  2746. }
  2747. /**
  2748. * Get a new component hash for a component name.
  2749. *
  2750. * @param string $component
  2751. * @return string
  2752. * @static
  2753. */
  2754. public static function newComponentHash($component)
  2755. {
  2756. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2757. }
  2758. /**
  2759. * Compile a class component opening.
  2760. *
  2761. * @param string $component
  2762. * @param string $alias
  2763. * @param string $data
  2764. * @param string $hash
  2765. * @return string
  2766. * @static
  2767. */
  2768. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2769. {
  2770. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2771. }
  2772. /**
  2773. * Compile the end-component statements into valid PHP.
  2774. *
  2775. * @return string
  2776. * @static
  2777. */
  2778. public static function compileEndComponentClass()
  2779. {
  2780. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2781. return $instance->compileEndComponentClass();
  2782. }
  2783. /**
  2784. * Sanitize the given component attribute value.
  2785. *
  2786. * @param mixed $value
  2787. * @return mixed
  2788. * @static
  2789. */
  2790. public static function sanitizeComponentAttribute($value)
  2791. {
  2792. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2793. }
  2794. /**
  2795. * Compile an end-once block into valid PHP.
  2796. *
  2797. * @return string
  2798. * @static
  2799. */
  2800. public static function compileEndOnce()
  2801. {
  2802. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2803. return $instance->compileEndOnce();
  2804. }
  2805. /**
  2806. * Add a handler to be executed before echoing a given class.
  2807. *
  2808. * @param string|callable $class
  2809. * @param callable|null $handler
  2810. * @return void
  2811. * @static
  2812. */
  2813. public static function stringable($class, $handler = null)
  2814. {
  2815. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2816. $instance->stringable($class, $handler);
  2817. }
  2818. /**
  2819. * Compile Blade echos into valid PHP.
  2820. *
  2821. * @param string $value
  2822. * @return string
  2823. * @static
  2824. */
  2825. public static function compileEchos($value)
  2826. {
  2827. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2828. return $instance->compileEchos($value);
  2829. }
  2830. /**
  2831. * Apply the echo handler for the value if it exists.
  2832. *
  2833. * @param string $value
  2834. * @return string
  2835. * @static
  2836. */
  2837. public static function applyEchoHandler($value)
  2838. {
  2839. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2840. return $instance->applyEchoHandler($value);
  2841. }
  2842. }
  2843. /**
  2844. *
  2845. *
  2846. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2847. * @method static mixed auth(\Illuminate\Http\Request $request)
  2848. * @method static void resolveAuthenticatedUserUsing(\Closure $callback)
  2849. * @see \Illuminate\Contracts\Broadcasting\Factory
  2850. */
  2851. class Broadcast {
  2852. /**
  2853. * Register the routes for handling broadcast channel authentication and sockets.
  2854. *
  2855. * @param array|null $attributes
  2856. * @return void
  2857. * @static
  2858. */
  2859. public static function routes($attributes = null)
  2860. {
  2861. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2862. $instance->routes($attributes);
  2863. }
  2864. /**
  2865. * Register the routes for handling broadcast user authentication.
  2866. *
  2867. * @param array|null $attributes
  2868. * @return void
  2869. * @static
  2870. */
  2871. public static function userRoutes($attributes = null)
  2872. {
  2873. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2874. $instance->userRoutes($attributes);
  2875. }
  2876. /**
  2877. * Register the routes for handling broadcast authentication and sockets.
  2878. *
  2879. * Alias of "routes" method.
  2880. *
  2881. * @param array|null $attributes
  2882. * @return void
  2883. * @static
  2884. */
  2885. public static function channelRoutes($attributes = null)
  2886. {
  2887. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2888. $instance->channelRoutes($attributes);
  2889. }
  2890. /**
  2891. * Get the socket ID for the given request.
  2892. *
  2893. * @param \Illuminate\Http\Request|null $request
  2894. * @return string|null
  2895. * @static
  2896. */
  2897. public static function socket($request = null)
  2898. {
  2899. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2900. return $instance->socket($request);
  2901. }
  2902. /**
  2903. * Begin broadcasting an event.
  2904. *
  2905. * @param mixed|null $event
  2906. * @return \Illuminate\Broadcasting\PendingBroadcast
  2907. * @static
  2908. */
  2909. public static function event($event = null)
  2910. {
  2911. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2912. return $instance->event($event);
  2913. }
  2914. /**
  2915. * Queue the given event for broadcast.
  2916. *
  2917. * @param mixed $event
  2918. * @return void
  2919. * @static
  2920. */
  2921. public static function queue($event)
  2922. {
  2923. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2924. $instance->queue($event);
  2925. }
  2926. /**
  2927. * Get a driver instance.
  2928. *
  2929. * @param string|null $driver
  2930. * @return mixed
  2931. * @static
  2932. */
  2933. public static function connection($driver = null)
  2934. {
  2935. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2936. return $instance->connection($driver);
  2937. }
  2938. /**
  2939. * Get a driver instance.
  2940. *
  2941. * @param string|null $name
  2942. * @return mixed
  2943. * @static
  2944. */
  2945. public static function driver($name = null)
  2946. {
  2947. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2948. return $instance->driver($name);
  2949. }
  2950. /**
  2951. * Get a Pusher instance for the given configuration.
  2952. *
  2953. * @param array $config
  2954. * @return \Pusher\Pusher
  2955. * @static
  2956. */
  2957. public static function pusher($config)
  2958. {
  2959. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2960. return $instance->pusher($config);
  2961. }
  2962. /**
  2963. * Get an Ably instance for the given configuration.
  2964. *
  2965. * @param array $config
  2966. * @return \Ably\AblyRest
  2967. * @static
  2968. */
  2969. public static function ably($config)
  2970. {
  2971. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2972. return $instance->ably($config);
  2973. }
  2974. /**
  2975. * Get the default driver name.
  2976. *
  2977. * @return string
  2978. * @static
  2979. */
  2980. public static function getDefaultDriver()
  2981. {
  2982. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2983. return $instance->getDefaultDriver();
  2984. }
  2985. /**
  2986. * Set the default driver name.
  2987. *
  2988. * @param string $name
  2989. * @return void
  2990. * @static
  2991. */
  2992. public static function setDefaultDriver($name)
  2993. {
  2994. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2995. $instance->setDefaultDriver($name);
  2996. }
  2997. /**
  2998. * Disconnect the given disk and remove from local cache.
  2999. *
  3000. * @param string|null $name
  3001. * @return void
  3002. * @static
  3003. */
  3004. public static function purge($name = null)
  3005. {
  3006. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3007. $instance->purge($name);
  3008. }
  3009. /**
  3010. * Register a custom driver creator Closure.
  3011. *
  3012. * @param string $driver
  3013. * @param \Closure $callback
  3014. * @return \Illuminate\Broadcasting\BroadcastManager
  3015. * @static
  3016. */
  3017. public static function extend($driver, $callback)
  3018. {
  3019. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3020. return $instance->extend($driver, $callback);
  3021. }
  3022. /**
  3023. * Get the application instance used by the manager.
  3024. *
  3025. * @return \Illuminate\Contracts\Foundation\Application
  3026. * @static
  3027. */
  3028. public static function getApplication()
  3029. {
  3030. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3031. return $instance->getApplication();
  3032. }
  3033. /**
  3034. * Set the application instance used by the manager.
  3035. *
  3036. * @param \Illuminate\Contracts\Foundation\Application $app
  3037. * @return \Illuminate\Broadcasting\BroadcastManager
  3038. * @static
  3039. */
  3040. public static function setApplication($app)
  3041. {
  3042. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3043. return $instance->setApplication($app);
  3044. }
  3045. /**
  3046. * Forget all of the resolved driver instances.
  3047. *
  3048. * @return \Illuminate\Broadcasting\BroadcastManager
  3049. * @static
  3050. */
  3051. public static function forgetDrivers()
  3052. {
  3053. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3054. return $instance->forgetDrivers();
  3055. }
  3056. }
  3057. /**
  3058. *
  3059. *
  3060. * @see \Illuminate\Contracts\Bus\Dispatcher
  3061. */
  3062. class Bus {
  3063. /**
  3064. * Dispatch a command to its appropriate handler.
  3065. *
  3066. * @param mixed $command
  3067. * @return mixed
  3068. * @static
  3069. */
  3070. public static function dispatch($command)
  3071. {
  3072. /** @var \Illuminate\Bus\Dispatcher $instance */
  3073. return $instance->dispatch($command);
  3074. }
  3075. /**
  3076. * Dispatch a command to its appropriate handler in the current process.
  3077. *
  3078. * Queueable jobs will be dispatched to the "sync" queue.
  3079. *
  3080. * @param mixed $command
  3081. * @param mixed $handler
  3082. * @return mixed
  3083. * @static
  3084. */
  3085. public static function dispatchSync($command, $handler = null)
  3086. {
  3087. /** @var \Illuminate\Bus\Dispatcher $instance */
  3088. return $instance->dispatchSync($command, $handler);
  3089. }
  3090. /**
  3091. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  3092. *
  3093. * @param mixed $command
  3094. * @param mixed $handler
  3095. * @return mixed
  3096. * @static
  3097. */
  3098. public static function dispatchNow($command, $handler = null)
  3099. {
  3100. /** @var \Illuminate\Bus\Dispatcher $instance */
  3101. return $instance->dispatchNow($command, $handler);
  3102. }
  3103. /**
  3104. * Attempt to find the batch with the given ID.
  3105. *
  3106. * @param string $batchId
  3107. * @return \Illuminate\Bus\Batch|null
  3108. * @static
  3109. */
  3110. public static function findBatch($batchId)
  3111. {
  3112. /** @var \Illuminate\Bus\Dispatcher $instance */
  3113. return $instance->findBatch($batchId);
  3114. }
  3115. /**
  3116. * Create a new batch of queueable jobs.
  3117. *
  3118. * @param \Illuminate\Support\Collection|array|mixed $jobs
  3119. * @return \Illuminate\Bus\PendingBatch
  3120. * @static
  3121. */
  3122. public static function batch($jobs)
  3123. {
  3124. /** @var \Illuminate\Bus\Dispatcher $instance */
  3125. return $instance->batch($jobs);
  3126. }
  3127. /**
  3128. * Create a new chain of queueable jobs.
  3129. *
  3130. * @param \Illuminate\Support\Collection|array $jobs
  3131. * @return \Illuminate\Foundation\Bus\PendingChain
  3132. * @static
  3133. */
  3134. public static function chain($jobs)
  3135. {
  3136. /** @var \Illuminate\Bus\Dispatcher $instance */
  3137. return $instance->chain($jobs);
  3138. }
  3139. /**
  3140. * Determine if the given command has a handler.
  3141. *
  3142. * @param mixed $command
  3143. * @return bool
  3144. * @static
  3145. */
  3146. public static function hasCommandHandler($command)
  3147. {
  3148. /** @var \Illuminate\Bus\Dispatcher $instance */
  3149. return $instance->hasCommandHandler($command);
  3150. }
  3151. /**
  3152. * Retrieve the handler for a command.
  3153. *
  3154. * @param mixed $command
  3155. * @return bool|mixed
  3156. * @static
  3157. */
  3158. public static function getCommandHandler($command)
  3159. {
  3160. /** @var \Illuminate\Bus\Dispatcher $instance */
  3161. return $instance->getCommandHandler($command);
  3162. }
  3163. /**
  3164. * Dispatch a command to its appropriate handler behind a queue.
  3165. *
  3166. * @param mixed $command
  3167. * @return mixed
  3168. * @throws \RuntimeException
  3169. * @static
  3170. */
  3171. public static function dispatchToQueue($command)
  3172. {
  3173. /** @var \Illuminate\Bus\Dispatcher $instance */
  3174. return $instance->dispatchToQueue($command);
  3175. }
  3176. /**
  3177. * Dispatch a command to its appropriate handler after the current process.
  3178. *
  3179. * @param mixed $command
  3180. * @param mixed $handler
  3181. * @return void
  3182. * @static
  3183. */
  3184. public static function dispatchAfterResponse($command, $handler = null)
  3185. {
  3186. /** @var \Illuminate\Bus\Dispatcher $instance */
  3187. $instance->dispatchAfterResponse($command, $handler);
  3188. }
  3189. /**
  3190. * Set the pipes through which commands should be piped before dispatching.
  3191. *
  3192. * @param array $pipes
  3193. * @return \Illuminate\Bus\Dispatcher
  3194. * @static
  3195. */
  3196. public static function pipeThrough($pipes)
  3197. {
  3198. /** @var \Illuminate\Bus\Dispatcher $instance */
  3199. return $instance->pipeThrough($pipes);
  3200. }
  3201. /**
  3202. * Map a command to a handler.
  3203. *
  3204. * @param array $map
  3205. * @return \Illuminate\Bus\Dispatcher
  3206. * @static
  3207. */
  3208. public static function map($map)
  3209. {
  3210. /** @var \Illuminate\Bus\Dispatcher $instance */
  3211. return $instance->map($map);
  3212. }
  3213. /**
  3214. * Specify the jobs that should be dispatched instead of faked.
  3215. *
  3216. * @param array|string $jobsToDispatch
  3217. * @return void
  3218. * @static
  3219. */
  3220. public static function except($jobsToDispatch)
  3221. {
  3222. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3223. $instance->except($jobsToDispatch);
  3224. }
  3225. /**
  3226. * Assert if a job was dispatched based on a truth-test callback.
  3227. *
  3228. * @param string|\Closure $command
  3229. * @param callable|int|null $callback
  3230. * @return void
  3231. * @static
  3232. */
  3233. public static function assertDispatched($command, $callback = null)
  3234. {
  3235. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3236. $instance->assertDispatched($command, $callback);
  3237. }
  3238. /**
  3239. * Assert if a job was pushed a number of times.
  3240. *
  3241. * @param string $command
  3242. * @param int $times
  3243. * @return void
  3244. * @static
  3245. */
  3246. public static function assertDispatchedTimes($command, $times = 1)
  3247. {
  3248. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3249. $instance->assertDispatchedTimes($command, $times);
  3250. }
  3251. /**
  3252. * Determine if a job was dispatched based on a truth-test callback.
  3253. *
  3254. * @param string|\Closure $command
  3255. * @param callable|null $callback
  3256. * @return void
  3257. * @static
  3258. */
  3259. public static function assertNotDispatched($command, $callback = null)
  3260. {
  3261. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3262. $instance->assertNotDispatched($command, $callback);
  3263. }
  3264. /**
  3265. * Assert that no jobs were dispatched.
  3266. *
  3267. * @return void
  3268. * @static
  3269. */
  3270. public static function assertNothingDispatched()
  3271. {
  3272. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3273. $instance->assertNothingDispatched();
  3274. }
  3275. /**
  3276. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3277. *
  3278. * @param string|\Closure $command
  3279. * @param callable|int|null $callback
  3280. * @return void
  3281. * @static
  3282. */
  3283. public static function assertDispatchedSync($command, $callback = null)
  3284. {
  3285. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3286. $instance->assertDispatchedSync($command, $callback);
  3287. }
  3288. /**
  3289. * Assert if a job was pushed synchronously a number of times.
  3290. *
  3291. * @param string $command
  3292. * @param int $times
  3293. * @return void
  3294. * @static
  3295. */
  3296. public static function assertDispatchedSyncTimes($command, $times = 1)
  3297. {
  3298. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3299. $instance->assertDispatchedSyncTimes($command, $times);
  3300. }
  3301. /**
  3302. * Determine if a job was dispatched based on a truth-test callback.
  3303. *
  3304. * @param string|\Closure $command
  3305. * @param callable|null $callback
  3306. * @return void
  3307. * @static
  3308. */
  3309. public static function assertNotDispatchedSync($command, $callback = null)
  3310. {
  3311. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3312. $instance->assertNotDispatchedSync($command, $callback);
  3313. }
  3314. /**
  3315. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3316. *
  3317. * @param string|\Closure $command
  3318. * @param callable|int|null $callback
  3319. * @return void
  3320. * @static
  3321. */
  3322. public static function assertDispatchedAfterResponse($command, $callback = null)
  3323. {
  3324. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3325. $instance->assertDispatchedAfterResponse($command, $callback);
  3326. }
  3327. /**
  3328. * Assert if a job was pushed after the response was sent a number of times.
  3329. *
  3330. * @param string $command
  3331. * @param int $times
  3332. * @return void
  3333. * @static
  3334. */
  3335. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3336. {
  3337. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3338. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3339. }
  3340. /**
  3341. * Determine if a job was dispatched based on a truth-test callback.
  3342. *
  3343. * @param string|\Closure $command
  3344. * @param callable|null $callback
  3345. * @return void
  3346. * @static
  3347. */
  3348. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3349. {
  3350. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3351. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3352. }
  3353. /**
  3354. * Assert if a chain of jobs was dispatched.
  3355. *
  3356. * @param array $expectedChain
  3357. * @return void
  3358. * @static
  3359. */
  3360. public static function assertChained($expectedChain)
  3361. {
  3362. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3363. $instance->assertChained($expectedChain);
  3364. }
  3365. /**
  3366. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3367. *
  3368. * @param string|\Closure $command
  3369. * @param callable|null $callback
  3370. * @return void
  3371. * @static
  3372. */
  3373. public static function assertDispatchedWithoutChain($command, $callback = null)
  3374. {
  3375. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3376. $instance->assertDispatchedWithoutChain($command, $callback);
  3377. }
  3378. /**
  3379. * Assert if a batch was dispatched based on a truth-test callback.
  3380. *
  3381. * @param callable $callback
  3382. * @return void
  3383. * @static
  3384. */
  3385. public static function assertBatched($callback)
  3386. {
  3387. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3388. $instance->assertBatched($callback);
  3389. }
  3390. /**
  3391. * Assert the number of batches that have been dispatched.
  3392. *
  3393. * @param int $count
  3394. * @return void
  3395. * @static
  3396. */
  3397. public static function assertBatchCount($count)
  3398. {
  3399. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3400. $instance->assertBatchCount($count);
  3401. }
  3402. /**
  3403. * Assert that no batched jobs were dispatched.
  3404. *
  3405. * @return void
  3406. * @static
  3407. */
  3408. public static function assertNothingBatched()
  3409. {
  3410. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3411. $instance->assertNothingBatched();
  3412. }
  3413. /**
  3414. * Get all of the jobs matching a truth-test callback.
  3415. *
  3416. * @param string $command
  3417. * @param callable|null $callback
  3418. * @return \Illuminate\Support\Collection
  3419. * @static
  3420. */
  3421. public static function dispatched($command, $callback = null)
  3422. {
  3423. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3424. return $instance->dispatched($command, $callback);
  3425. }
  3426. /**
  3427. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3428. *
  3429. * @param string $command
  3430. * @param callable|null $callback
  3431. * @return \Illuminate\Support\Collection
  3432. * @static
  3433. */
  3434. public static function dispatchedSync($command, $callback = null)
  3435. {
  3436. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3437. return $instance->dispatchedSync($command, $callback);
  3438. }
  3439. /**
  3440. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3441. *
  3442. * @param string $command
  3443. * @param callable|null $callback
  3444. * @return \Illuminate\Support\Collection
  3445. * @static
  3446. */
  3447. public static function dispatchedAfterResponse($command, $callback = null)
  3448. {
  3449. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3450. return $instance->dispatchedAfterResponse($command, $callback);
  3451. }
  3452. /**
  3453. * Get all of the pending batches matching a truth-test callback.
  3454. *
  3455. * @param callable $callback
  3456. * @return \Illuminate\Support\Collection
  3457. * @static
  3458. */
  3459. public static function batched($callback)
  3460. {
  3461. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3462. return $instance->batched($callback);
  3463. }
  3464. /**
  3465. * Determine if there are any stored commands for a given class.
  3466. *
  3467. * @param string $command
  3468. * @return bool
  3469. * @static
  3470. */
  3471. public static function hasDispatched($command)
  3472. {
  3473. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3474. return $instance->hasDispatched($command);
  3475. }
  3476. /**
  3477. * Determine if there are any stored commands for a given class.
  3478. *
  3479. * @param string $command
  3480. * @return bool
  3481. * @static
  3482. */
  3483. public static function hasDispatchedSync($command)
  3484. {
  3485. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3486. return $instance->hasDispatchedSync($command);
  3487. }
  3488. /**
  3489. * Determine if there are any stored commands for a given class.
  3490. *
  3491. * @param string $command
  3492. * @return bool
  3493. * @static
  3494. */
  3495. public static function hasDispatchedAfterResponse($command)
  3496. {
  3497. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3498. return $instance->hasDispatchedAfterResponse($command);
  3499. }
  3500. /**
  3501. * Dispatch an empty job batch for testing.
  3502. *
  3503. * @param string $name
  3504. * @return \Illuminate\Bus\Batch
  3505. * @static
  3506. */
  3507. public static function dispatchFakeBatch($name = '')
  3508. {
  3509. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3510. return $instance->dispatchFakeBatch($name);
  3511. }
  3512. /**
  3513. * Record the fake pending batch dispatch.
  3514. *
  3515. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  3516. * @return \Illuminate\Bus\Batch
  3517. * @static
  3518. */
  3519. public static function recordPendingBatch($pendingBatch)
  3520. {
  3521. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3522. return $instance->recordPendingBatch($pendingBatch);
  3523. }
  3524. }
  3525. /**
  3526. *
  3527. *
  3528. * @see \Illuminate\Cache\CacheManager
  3529. * @see \Illuminate\Cache\Repository
  3530. */
  3531. class Cache {
  3532. /**
  3533. * Get a cache store instance by name, wrapped in a repository.
  3534. *
  3535. * @param string|null $name
  3536. * @return \Illuminate\Contracts\Cache\Repository
  3537. * @static
  3538. */
  3539. public static function store($name = null)
  3540. {
  3541. /** @var \Illuminate\Cache\CacheManager $instance */
  3542. return $instance->store($name);
  3543. }
  3544. /**
  3545. * Get a cache driver instance.
  3546. *
  3547. * @param string|null $driver
  3548. * @return \Illuminate\Contracts\Cache\Repository
  3549. * @static
  3550. */
  3551. public static function driver($driver = null)
  3552. {
  3553. /** @var \Illuminate\Cache\CacheManager $instance */
  3554. return $instance->driver($driver);
  3555. }
  3556. /**
  3557. * Create a new cache repository with the given implementation.
  3558. *
  3559. * @param \Illuminate\Contracts\Cache\Store $store
  3560. * @return \Illuminate\Cache\Repository
  3561. * @static
  3562. */
  3563. public static function repository($store)
  3564. {
  3565. /** @var \Illuminate\Cache\CacheManager $instance */
  3566. return $instance->repository($store);
  3567. }
  3568. /**
  3569. * Re-set the event dispatcher on all resolved cache repositories.
  3570. *
  3571. * @return void
  3572. * @static
  3573. */
  3574. public static function refreshEventDispatcher()
  3575. {
  3576. /** @var \Illuminate\Cache\CacheManager $instance */
  3577. $instance->refreshEventDispatcher();
  3578. }
  3579. /**
  3580. * Get the default cache driver name.
  3581. *
  3582. * @return string
  3583. * @static
  3584. */
  3585. public static function getDefaultDriver()
  3586. {
  3587. /** @var \Illuminate\Cache\CacheManager $instance */
  3588. return $instance->getDefaultDriver();
  3589. }
  3590. /**
  3591. * Set the default cache driver name.
  3592. *
  3593. * @param string $name
  3594. * @return void
  3595. * @static
  3596. */
  3597. public static function setDefaultDriver($name)
  3598. {
  3599. /** @var \Illuminate\Cache\CacheManager $instance */
  3600. $instance->setDefaultDriver($name);
  3601. }
  3602. /**
  3603. * Unset the given driver instances.
  3604. *
  3605. * @param array|string|null $name
  3606. * @return \Illuminate\Cache\CacheManager
  3607. * @static
  3608. */
  3609. public static function forgetDriver($name = null)
  3610. {
  3611. /** @var \Illuminate\Cache\CacheManager $instance */
  3612. return $instance->forgetDriver($name);
  3613. }
  3614. /**
  3615. * Disconnect the given driver and remove from local cache.
  3616. *
  3617. * @param string|null $name
  3618. * @return void
  3619. * @static
  3620. */
  3621. public static function purge($name = null)
  3622. {
  3623. /** @var \Illuminate\Cache\CacheManager $instance */
  3624. $instance->purge($name);
  3625. }
  3626. /**
  3627. * Register a custom driver creator Closure.
  3628. *
  3629. * @param string $driver
  3630. * @param \Closure $callback
  3631. * @return \Illuminate\Cache\CacheManager
  3632. * @static
  3633. */
  3634. public static function extend($driver, $callback)
  3635. {
  3636. /** @var \Illuminate\Cache\CacheManager $instance */
  3637. return $instance->extend($driver, $callback);
  3638. }
  3639. /**
  3640. * Determine if an item exists in the cache.
  3641. *
  3642. * @param string $key
  3643. * @return bool
  3644. * @static
  3645. */
  3646. public static function has($key)
  3647. {
  3648. /** @var \Illuminate\Cache\Repository $instance */
  3649. return $instance->has($key);
  3650. }
  3651. /**
  3652. * Determine if an item doesn't exist in the cache.
  3653. *
  3654. * @param string $key
  3655. * @return bool
  3656. * @static
  3657. */
  3658. public static function missing($key)
  3659. {
  3660. /** @var \Illuminate\Cache\Repository $instance */
  3661. return $instance->missing($key);
  3662. }
  3663. /**
  3664. * Retrieve an item from the cache by key.
  3665. *
  3666. * @param array|string $key
  3667. * @param mixed $default
  3668. * @return mixed
  3669. * @static
  3670. */
  3671. public static function get($key, $default = null)
  3672. {
  3673. /** @var \Illuminate\Cache\Repository $instance */
  3674. return $instance->get($key, $default);
  3675. }
  3676. /**
  3677. * Retrieve multiple items from the cache by key.
  3678. *
  3679. * Items not found in the cache will have a null value.
  3680. *
  3681. * @param array $keys
  3682. * @return array
  3683. * @static
  3684. */
  3685. public static function many($keys)
  3686. {
  3687. /** @var \Illuminate\Cache\Repository $instance */
  3688. return $instance->many($keys);
  3689. }
  3690. /**
  3691. * Obtains multiple cache items by their unique keys.
  3692. *
  3693. * @return \Illuminate\Cache\iterable
  3694. * @param \Psr\SimpleCache\iterable<string> $keys A list of keys that can be obtained in a single operation.
  3695. * @param mixed $default Default value to return for keys that do not exist.
  3696. * @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.
  3697. * @throws \Psr\SimpleCache\InvalidArgumentException
  3698. * MUST be thrown if $keys is neither an array nor a Traversable,
  3699. * or if any of the $keys are not a legal value.
  3700. * @static
  3701. */
  3702. public static function getMultiple($keys, $default = null)
  3703. {
  3704. /** @var \Illuminate\Cache\Repository $instance */
  3705. return $instance->getMultiple($keys, $default);
  3706. }
  3707. /**
  3708. * Retrieve an item from the cache and delete it.
  3709. *
  3710. * @param string $key
  3711. * @param mixed $default
  3712. * @return mixed
  3713. * @static
  3714. */
  3715. public static function pull($key, $default = null)
  3716. {
  3717. /** @var \Illuminate\Cache\Repository $instance */
  3718. return $instance->pull($key, $default);
  3719. }
  3720. /**
  3721. * Store an item in the cache.
  3722. *
  3723. * @param array|string $key
  3724. * @param mixed $value
  3725. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3726. * @return bool
  3727. * @static
  3728. */
  3729. public static function put($key, $value, $ttl = null)
  3730. {
  3731. /** @var \Illuminate\Cache\Repository $instance */
  3732. return $instance->put($key, $value, $ttl);
  3733. }
  3734. /**
  3735. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3736. *
  3737. * @return bool
  3738. * @param string $key The key of the item to store.
  3739. * @param mixed $value The value of the item to store, must be serializable.
  3740. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3741. * the driver supports TTL then the library may set a default value
  3742. * for it or let the driver take care of that.
  3743. * @return bool True on success and false on failure.
  3744. * @throws \Psr\SimpleCache\InvalidArgumentException
  3745. * MUST be thrown if the $key string is not a legal value.
  3746. * @static
  3747. */
  3748. public static function set($key, $value, $ttl = null)
  3749. {
  3750. /** @var \Illuminate\Cache\Repository $instance */
  3751. return $instance->set($key, $value, $ttl);
  3752. }
  3753. /**
  3754. * Store multiple items in the cache for a given number of seconds.
  3755. *
  3756. * @param array $values
  3757. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3758. * @return bool
  3759. * @static
  3760. */
  3761. public static function putMany($values, $ttl = null)
  3762. {
  3763. /** @var \Illuminate\Cache\Repository $instance */
  3764. return $instance->putMany($values, $ttl);
  3765. }
  3766. /**
  3767. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3768. *
  3769. * @return bool
  3770. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  3771. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3772. * the driver supports TTL then the library may set a default value
  3773. * for it or let the driver take care of that.
  3774. * @return bool True on success and false on failure.
  3775. * @throws \Psr\SimpleCache\InvalidArgumentException
  3776. * MUST be thrown if $values is neither an array nor a Traversable,
  3777. * or if any of the $values are not a legal value.
  3778. * @static
  3779. */
  3780. public static function setMultiple($values, $ttl = null)
  3781. {
  3782. /** @var \Illuminate\Cache\Repository $instance */
  3783. return $instance->setMultiple($values, $ttl);
  3784. }
  3785. /**
  3786. * Store an item in the cache if the key does not exist.
  3787. *
  3788. * @param string $key
  3789. * @param mixed $value
  3790. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3791. * @return bool
  3792. * @static
  3793. */
  3794. public static function add($key, $value, $ttl = null)
  3795. {
  3796. /** @var \Illuminate\Cache\Repository $instance */
  3797. return $instance->add($key, $value, $ttl);
  3798. }
  3799. /**
  3800. * Increment the value of an item in the cache.
  3801. *
  3802. * @param string $key
  3803. * @param mixed $value
  3804. * @return int|bool
  3805. * @static
  3806. */
  3807. public static function increment($key, $value = 1)
  3808. {
  3809. /** @var \Illuminate\Cache\Repository $instance */
  3810. return $instance->increment($key, $value);
  3811. }
  3812. /**
  3813. * Decrement the value of an item in the cache.
  3814. *
  3815. * @param string $key
  3816. * @param mixed $value
  3817. * @return int|bool
  3818. * @static
  3819. */
  3820. public static function decrement($key, $value = 1)
  3821. {
  3822. /** @var \Illuminate\Cache\Repository $instance */
  3823. return $instance->decrement($key, $value);
  3824. }
  3825. /**
  3826. * Store an item in the cache indefinitely.
  3827. *
  3828. * @param string $key
  3829. * @param mixed $value
  3830. * @return bool
  3831. * @static
  3832. */
  3833. public static function forever($key, $value)
  3834. {
  3835. /** @var \Illuminate\Cache\Repository $instance */
  3836. return $instance->forever($key, $value);
  3837. }
  3838. /**
  3839. * Get an item from the cache, or execute the given Closure and store the result.
  3840. *
  3841. * @param string $key
  3842. * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
  3843. * @param \Closure $callback
  3844. * @return mixed
  3845. * @static
  3846. */
  3847. public static function remember($key, $ttl, $callback)
  3848. {
  3849. /** @var \Illuminate\Cache\Repository $instance */
  3850. return $instance->remember($key, $ttl, $callback);
  3851. }
  3852. /**
  3853. * Get an item from the cache, or execute the given Closure and store the result forever.
  3854. *
  3855. * @param string $key
  3856. * @param \Closure $callback
  3857. * @return mixed
  3858. * @static
  3859. */
  3860. public static function sear($key, $callback)
  3861. {
  3862. /** @var \Illuminate\Cache\Repository $instance */
  3863. return $instance->sear($key, $callback);
  3864. }
  3865. /**
  3866. * Get an item from the cache, or execute the given Closure and store the result forever.
  3867. *
  3868. * @param string $key
  3869. * @param \Closure $callback
  3870. * @return mixed
  3871. * @static
  3872. */
  3873. public static function rememberForever($key, $callback)
  3874. {
  3875. /** @var \Illuminate\Cache\Repository $instance */
  3876. return $instance->rememberForever($key, $callback);
  3877. }
  3878. /**
  3879. * Remove an item from the cache.
  3880. *
  3881. * @param string $key
  3882. * @return bool
  3883. * @static
  3884. */
  3885. public static function forget($key)
  3886. {
  3887. /** @var \Illuminate\Cache\Repository $instance */
  3888. return $instance->forget($key);
  3889. }
  3890. /**
  3891. * Delete an item from the cache by its unique key.
  3892. *
  3893. * @return bool
  3894. * @param string $key The unique cache key of the item to delete.
  3895. * @return bool True if the item was successfully removed. False if there was an error.
  3896. * @throws \Psr\SimpleCache\InvalidArgumentException
  3897. * MUST be thrown if the $key string is not a legal value.
  3898. * @static
  3899. */
  3900. public static function delete($key)
  3901. {
  3902. /** @var \Illuminate\Cache\Repository $instance */
  3903. return $instance->delete($key);
  3904. }
  3905. /**
  3906. * Deletes multiple cache items in a single operation.
  3907. *
  3908. * @return bool
  3909. * @param \Psr\SimpleCache\iterable<string> $keys A list of string-based keys to be deleted.
  3910. * @return bool True if the items were successfully removed. False if there was an error.
  3911. * @throws \Psr\SimpleCache\InvalidArgumentException
  3912. * MUST be thrown if $keys is neither an array nor a Traversable,
  3913. * or if any of the $keys are not a legal value.
  3914. * @static
  3915. */
  3916. public static function deleteMultiple($keys)
  3917. {
  3918. /** @var \Illuminate\Cache\Repository $instance */
  3919. return $instance->deleteMultiple($keys);
  3920. }
  3921. /**
  3922. * Wipes clean the entire cache's keys.
  3923. *
  3924. * @return bool
  3925. * @return bool True on success and false on failure.
  3926. * @static
  3927. */
  3928. public static function clear()
  3929. {
  3930. /** @var \Illuminate\Cache\Repository $instance */
  3931. return $instance->clear();
  3932. }
  3933. /**
  3934. * Begin executing a new tags operation if the store supports it.
  3935. *
  3936. * @param array|mixed $names
  3937. * @return \Illuminate\Cache\TaggedCache
  3938. * @throws \BadMethodCallException
  3939. * @static
  3940. */
  3941. public static function tags($names)
  3942. {
  3943. /** @var \Illuminate\Cache\Repository $instance */
  3944. return $instance->tags($names);
  3945. }
  3946. /**
  3947. * Determine if the current store supports tags.
  3948. *
  3949. * @return bool
  3950. * @static
  3951. */
  3952. public static function supportsTags()
  3953. {
  3954. /** @var \Illuminate\Cache\Repository $instance */
  3955. return $instance->supportsTags();
  3956. }
  3957. /**
  3958. * Get the default cache time.
  3959. *
  3960. * @return int|null
  3961. * @static
  3962. */
  3963. public static function getDefaultCacheTime()
  3964. {
  3965. /** @var \Illuminate\Cache\Repository $instance */
  3966. return $instance->getDefaultCacheTime();
  3967. }
  3968. /**
  3969. * Set the default cache time in seconds.
  3970. *
  3971. * @param int|null $seconds
  3972. * @return \Illuminate\Cache\Repository
  3973. * @static
  3974. */
  3975. public static function setDefaultCacheTime($seconds)
  3976. {
  3977. /** @var \Illuminate\Cache\Repository $instance */
  3978. return $instance->setDefaultCacheTime($seconds);
  3979. }
  3980. /**
  3981. * Get the cache store implementation.
  3982. *
  3983. * @return \Illuminate\Contracts\Cache\Store
  3984. * @static
  3985. */
  3986. public static function getStore()
  3987. {
  3988. /** @var \Illuminate\Cache\Repository $instance */
  3989. return $instance->getStore();
  3990. }
  3991. /**
  3992. * Get the event dispatcher instance.
  3993. *
  3994. * @return \Illuminate\Contracts\Events\Dispatcher
  3995. * @static
  3996. */
  3997. public static function getEventDispatcher()
  3998. {
  3999. /** @var \Illuminate\Cache\Repository $instance */
  4000. return $instance->getEventDispatcher();
  4001. }
  4002. /**
  4003. * Set the event dispatcher instance.
  4004. *
  4005. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4006. * @return void
  4007. * @static
  4008. */
  4009. public static function setEventDispatcher($events)
  4010. {
  4011. /** @var \Illuminate\Cache\Repository $instance */
  4012. $instance->setEventDispatcher($events);
  4013. }
  4014. /**
  4015. * Determine if a cached value exists.
  4016. *
  4017. * @param string $key
  4018. * @return bool
  4019. * @static
  4020. */
  4021. public static function offsetExists($key)
  4022. {
  4023. /** @var \Illuminate\Cache\Repository $instance */
  4024. return $instance->offsetExists($key);
  4025. }
  4026. /**
  4027. * Retrieve an item from the cache by key.
  4028. *
  4029. * @param string $key
  4030. * @return mixed
  4031. * @static
  4032. */
  4033. public static function offsetGet($key)
  4034. {
  4035. /** @var \Illuminate\Cache\Repository $instance */
  4036. return $instance->offsetGet($key);
  4037. }
  4038. /**
  4039. * Store an item in the cache for the default time.
  4040. *
  4041. * @param string $key
  4042. * @param mixed $value
  4043. * @return void
  4044. * @static
  4045. */
  4046. public static function offsetSet($key, $value)
  4047. {
  4048. /** @var \Illuminate\Cache\Repository $instance */
  4049. $instance->offsetSet($key, $value);
  4050. }
  4051. /**
  4052. * Remove an item from the cache.
  4053. *
  4054. * @param string $key
  4055. * @return void
  4056. * @static
  4057. */
  4058. public static function offsetUnset($key)
  4059. {
  4060. /** @var \Illuminate\Cache\Repository $instance */
  4061. $instance->offsetUnset($key);
  4062. }
  4063. /**
  4064. * Register a custom macro.
  4065. *
  4066. * @param string $name
  4067. * @param object|callable $macro
  4068. * @return void
  4069. * @static
  4070. */
  4071. public static function macro($name, $macro)
  4072. {
  4073. \Illuminate\Cache\Repository::macro($name, $macro);
  4074. }
  4075. /**
  4076. * Mix another object into the class.
  4077. *
  4078. * @param object $mixin
  4079. * @param bool $replace
  4080. * @return void
  4081. * @throws \ReflectionException
  4082. * @static
  4083. */
  4084. public static function mixin($mixin, $replace = true)
  4085. {
  4086. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  4087. }
  4088. /**
  4089. * Checks if macro is registered.
  4090. *
  4091. * @param string $name
  4092. * @return bool
  4093. * @static
  4094. */
  4095. public static function hasMacro($name)
  4096. {
  4097. return \Illuminate\Cache\Repository::hasMacro($name);
  4098. }
  4099. /**
  4100. * Flush the existing macros.
  4101. *
  4102. * @return void
  4103. * @static
  4104. */
  4105. public static function flushMacros()
  4106. {
  4107. \Illuminate\Cache\Repository::flushMacros();
  4108. }
  4109. /**
  4110. * Dynamically handle calls to the class.
  4111. *
  4112. * @param string $method
  4113. * @param array $parameters
  4114. * @return mixed
  4115. * @throws \BadMethodCallException
  4116. * @static
  4117. */
  4118. public static function macroCall($method, $parameters)
  4119. {
  4120. /** @var \Illuminate\Cache\Repository $instance */
  4121. return $instance->macroCall($method, $parameters);
  4122. }
  4123. /**
  4124. * Remove all items from the cache.
  4125. *
  4126. * @return bool
  4127. * @static
  4128. */
  4129. public static function flush()
  4130. {
  4131. /** @var \Illuminate\Cache\FileStore $instance */
  4132. return $instance->flush();
  4133. }
  4134. /**
  4135. * Get the Filesystem instance.
  4136. *
  4137. * @return \Illuminate\Filesystem\Filesystem
  4138. * @static
  4139. */
  4140. public static function getFilesystem()
  4141. {
  4142. /** @var \Illuminate\Cache\FileStore $instance */
  4143. return $instance->getFilesystem();
  4144. }
  4145. /**
  4146. * Get the working directory of the cache.
  4147. *
  4148. * @return string
  4149. * @static
  4150. */
  4151. public static function getDirectory()
  4152. {
  4153. /** @var \Illuminate\Cache\FileStore $instance */
  4154. return $instance->getDirectory();
  4155. }
  4156. /**
  4157. * Get the cache key prefix.
  4158. *
  4159. * @return string
  4160. * @static
  4161. */
  4162. public static function getPrefix()
  4163. {
  4164. /** @var \Illuminate\Cache\FileStore $instance */
  4165. return $instance->getPrefix();
  4166. }
  4167. /**
  4168. * Get a lock instance.
  4169. *
  4170. * @param string $name
  4171. * @param int $seconds
  4172. * @param string|null $owner
  4173. * @return \Illuminate\Contracts\Cache\Lock
  4174. * @static
  4175. */
  4176. public static function lock($name, $seconds = 0, $owner = null)
  4177. {
  4178. /** @var \Illuminate\Cache\FileStore $instance */
  4179. return $instance->lock($name, $seconds, $owner);
  4180. }
  4181. /**
  4182. * Restore a lock instance using the owner identifier.
  4183. *
  4184. * @param string $name
  4185. * @param string $owner
  4186. * @return \Illuminate\Contracts\Cache\Lock
  4187. * @static
  4188. */
  4189. public static function restoreLock($name, $owner)
  4190. {
  4191. /** @var \Illuminate\Cache\FileStore $instance */
  4192. return $instance->restoreLock($name, $owner);
  4193. }
  4194. }
  4195. /**
  4196. *
  4197. *
  4198. * @see \Illuminate\Config\Repository
  4199. */
  4200. class Config {
  4201. /**
  4202. * Determine if the given configuration value exists.
  4203. *
  4204. * @param string $key
  4205. * @return bool
  4206. * @static
  4207. */
  4208. public static function has($key)
  4209. {
  4210. /** @var \Illuminate\Config\Repository $instance */
  4211. return $instance->has($key);
  4212. }
  4213. /**
  4214. * Get the specified configuration value.
  4215. *
  4216. * @param array|string $key
  4217. * @param mixed $default
  4218. * @return mixed
  4219. * @static
  4220. */
  4221. public static function get($key, $default = null)
  4222. {
  4223. /** @var \Illuminate\Config\Repository $instance */
  4224. return $instance->get($key, $default);
  4225. }
  4226. /**
  4227. * Get many configuration values.
  4228. *
  4229. * @param array $keys
  4230. * @return array
  4231. * @static
  4232. */
  4233. public static function getMany($keys)
  4234. {
  4235. /** @var \Illuminate\Config\Repository $instance */
  4236. return $instance->getMany($keys);
  4237. }
  4238. /**
  4239. * Set a given configuration value.
  4240. *
  4241. * @param array|string $key
  4242. * @param mixed $value
  4243. * @return void
  4244. * @static
  4245. */
  4246. public static function set($key, $value = null)
  4247. {
  4248. /** @var \Illuminate\Config\Repository $instance */
  4249. $instance->set($key, $value);
  4250. }
  4251. /**
  4252. * Prepend a value onto an array configuration value.
  4253. *
  4254. * @param string $key
  4255. * @param mixed $value
  4256. * @return void
  4257. * @static
  4258. */
  4259. public static function prepend($key, $value)
  4260. {
  4261. /** @var \Illuminate\Config\Repository $instance */
  4262. $instance->prepend($key, $value);
  4263. }
  4264. /**
  4265. * Push a value onto an array configuration value.
  4266. *
  4267. * @param string $key
  4268. * @param mixed $value
  4269. * @return void
  4270. * @static
  4271. */
  4272. public static function push($key, $value)
  4273. {
  4274. /** @var \Illuminate\Config\Repository $instance */
  4275. $instance->push($key, $value);
  4276. }
  4277. /**
  4278. * Get all of the configuration items for the application.
  4279. *
  4280. * @return array
  4281. * @static
  4282. */
  4283. public static function all()
  4284. {
  4285. /** @var \Illuminate\Config\Repository $instance */
  4286. return $instance->all();
  4287. }
  4288. /**
  4289. * Determine if the given configuration option exists.
  4290. *
  4291. * @param string $key
  4292. * @return bool
  4293. * @static
  4294. */
  4295. public static function offsetExists($key)
  4296. {
  4297. /** @var \Illuminate\Config\Repository $instance */
  4298. return $instance->offsetExists($key);
  4299. }
  4300. /**
  4301. * Get a configuration option.
  4302. *
  4303. * @param string $key
  4304. * @return mixed
  4305. * @static
  4306. */
  4307. public static function offsetGet($key)
  4308. {
  4309. /** @var \Illuminate\Config\Repository $instance */
  4310. return $instance->offsetGet($key);
  4311. }
  4312. /**
  4313. * Set a configuration option.
  4314. *
  4315. * @param string $key
  4316. * @param mixed $value
  4317. * @return void
  4318. * @static
  4319. */
  4320. public static function offsetSet($key, $value)
  4321. {
  4322. /** @var \Illuminate\Config\Repository $instance */
  4323. $instance->offsetSet($key, $value);
  4324. }
  4325. /**
  4326. * Unset a configuration option.
  4327. *
  4328. * @param string $key
  4329. * @return void
  4330. * @static
  4331. */
  4332. public static function offsetUnset($key)
  4333. {
  4334. /** @var \Illuminate\Config\Repository $instance */
  4335. $instance->offsetUnset($key);
  4336. }
  4337. /**
  4338. * Register a custom macro.
  4339. *
  4340. * @param string $name
  4341. * @param object|callable $macro
  4342. * @return void
  4343. * @static
  4344. */
  4345. public static function macro($name, $macro)
  4346. {
  4347. \Illuminate\Config\Repository::macro($name, $macro);
  4348. }
  4349. /**
  4350. * Mix another object into the class.
  4351. *
  4352. * @param object $mixin
  4353. * @param bool $replace
  4354. * @return void
  4355. * @throws \ReflectionException
  4356. * @static
  4357. */
  4358. public static function mixin($mixin, $replace = true)
  4359. {
  4360. \Illuminate\Config\Repository::mixin($mixin, $replace);
  4361. }
  4362. /**
  4363. * Checks if macro is registered.
  4364. *
  4365. * @param string $name
  4366. * @return bool
  4367. * @static
  4368. */
  4369. public static function hasMacro($name)
  4370. {
  4371. return \Illuminate\Config\Repository::hasMacro($name);
  4372. }
  4373. /**
  4374. * Flush the existing macros.
  4375. *
  4376. * @return void
  4377. * @static
  4378. */
  4379. public static function flushMacros()
  4380. {
  4381. \Illuminate\Config\Repository::flushMacros();
  4382. }
  4383. }
  4384. /**
  4385. *
  4386. *
  4387. * @see \Illuminate\Cookie\CookieJar
  4388. */
  4389. class Cookie {
  4390. /**
  4391. * Create a new cookie instance.
  4392. *
  4393. * @param string $name
  4394. * @param string $value
  4395. * @param int $minutes
  4396. * @param string|null $path
  4397. * @param string|null $domain
  4398. * @param bool|null $secure
  4399. * @param bool $httpOnly
  4400. * @param bool $raw
  4401. * @param string|null $sameSite
  4402. * @return \Symfony\Component\HttpFoundation\Cookie
  4403. * @static
  4404. */
  4405. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4406. {
  4407. /** @var \Illuminate\Cookie\CookieJar $instance */
  4408. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4409. }
  4410. /**
  4411. * Create a cookie that lasts "forever" (400 days).
  4412. *
  4413. * @param string $name
  4414. * @param string $value
  4415. * @param string|null $path
  4416. * @param string|null $domain
  4417. * @param bool|null $secure
  4418. * @param bool $httpOnly
  4419. * @param bool $raw
  4420. * @param string|null $sameSite
  4421. * @return \Symfony\Component\HttpFoundation\Cookie
  4422. * @static
  4423. */
  4424. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4425. {
  4426. /** @var \Illuminate\Cookie\CookieJar $instance */
  4427. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4428. }
  4429. /**
  4430. * Expire the given cookie.
  4431. *
  4432. * @param string $name
  4433. * @param string|null $path
  4434. * @param string|null $domain
  4435. * @return \Symfony\Component\HttpFoundation\Cookie
  4436. * @static
  4437. */
  4438. public static function forget($name, $path = null, $domain = null)
  4439. {
  4440. /** @var \Illuminate\Cookie\CookieJar $instance */
  4441. return $instance->forget($name, $path, $domain);
  4442. }
  4443. /**
  4444. * Determine if a cookie has been queued.
  4445. *
  4446. * @param string $key
  4447. * @param string|null $path
  4448. * @return bool
  4449. * @static
  4450. */
  4451. public static function hasQueued($key, $path = null)
  4452. {
  4453. /** @var \Illuminate\Cookie\CookieJar $instance */
  4454. return $instance->hasQueued($key, $path);
  4455. }
  4456. /**
  4457. * Get a queued cookie instance.
  4458. *
  4459. * @param string $key
  4460. * @param mixed $default
  4461. * @param string|null $path
  4462. * @return \Symfony\Component\HttpFoundation\Cookie|null
  4463. * @static
  4464. */
  4465. public static function queued($key, $default = null, $path = null)
  4466. {
  4467. /** @var \Illuminate\Cookie\CookieJar $instance */
  4468. return $instance->queued($key, $default, $path);
  4469. }
  4470. /**
  4471. * Queue a cookie to send with the next response.
  4472. *
  4473. * @param array $parameters
  4474. * @return void
  4475. * @static
  4476. */
  4477. public static function queue(...$parameters)
  4478. {
  4479. /** @var \Illuminate\Cookie\CookieJar $instance */
  4480. $instance->queue(...$parameters);
  4481. }
  4482. /**
  4483. * Queue a cookie to expire with the next response.
  4484. *
  4485. * @param string $name
  4486. * @param string|null $path
  4487. * @param string|null $domain
  4488. * @return void
  4489. * @static
  4490. */
  4491. public static function expire($name, $path = null, $domain = null)
  4492. {
  4493. /** @var \Illuminate\Cookie\CookieJar $instance */
  4494. $instance->expire($name, $path, $domain);
  4495. }
  4496. /**
  4497. * Remove a cookie from the queue.
  4498. *
  4499. * @param string $name
  4500. * @param string|null $path
  4501. * @return void
  4502. * @static
  4503. */
  4504. public static function unqueue($name, $path = null)
  4505. {
  4506. /** @var \Illuminate\Cookie\CookieJar $instance */
  4507. $instance->unqueue($name, $path);
  4508. }
  4509. /**
  4510. * Set the default path and domain for the jar.
  4511. *
  4512. * @param string $path
  4513. * @param string $domain
  4514. * @param bool $secure
  4515. * @param string|null $sameSite
  4516. * @return \Illuminate\Cookie\CookieJar
  4517. * @static
  4518. */
  4519. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  4520. {
  4521. /** @var \Illuminate\Cookie\CookieJar $instance */
  4522. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  4523. }
  4524. /**
  4525. * Get the cookies which have been queued for the next request.
  4526. *
  4527. * @return \Symfony\Component\HttpFoundation\Cookie[]
  4528. * @static
  4529. */
  4530. public static function getQueuedCookies()
  4531. {
  4532. /** @var \Illuminate\Cookie\CookieJar $instance */
  4533. return $instance->getQueuedCookies();
  4534. }
  4535. /**
  4536. * Flush the cookies which have been queued for the next request.
  4537. *
  4538. * @return \Illuminate\Cookie\CookieJar
  4539. * @static
  4540. */
  4541. public static function flushQueuedCookies()
  4542. {
  4543. /** @var \Illuminate\Cookie\CookieJar $instance */
  4544. return $instance->flushQueuedCookies();
  4545. }
  4546. /**
  4547. * Register a custom macro.
  4548. *
  4549. * @param string $name
  4550. * @param object|callable $macro
  4551. * @return void
  4552. * @static
  4553. */
  4554. public static function macro($name, $macro)
  4555. {
  4556. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  4557. }
  4558. /**
  4559. * Mix another object into the class.
  4560. *
  4561. * @param object $mixin
  4562. * @param bool $replace
  4563. * @return void
  4564. * @throws \ReflectionException
  4565. * @static
  4566. */
  4567. public static function mixin($mixin, $replace = true)
  4568. {
  4569. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  4570. }
  4571. /**
  4572. * Checks if macro is registered.
  4573. *
  4574. * @param string $name
  4575. * @return bool
  4576. * @static
  4577. */
  4578. public static function hasMacro($name)
  4579. {
  4580. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  4581. }
  4582. /**
  4583. * Flush the existing macros.
  4584. *
  4585. * @return void
  4586. * @static
  4587. */
  4588. public static function flushMacros()
  4589. {
  4590. \Illuminate\Cookie\CookieJar::flushMacros();
  4591. }
  4592. }
  4593. /**
  4594. *
  4595. *
  4596. * @see \Illuminate\Encryption\Encrypter
  4597. */
  4598. class Crypt {
  4599. /**
  4600. * Determine if the given key and cipher combination is valid.
  4601. *
  4602. * @param string $key
  4603. * @param string $cipher
  4604. * @return bool
  4605. * @static
  4606. */
  4607. public static function supported($key, $cipher)
  4608. {
  4609. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  4610. }
  4611. /**
  4612. * Create a new encryption key for the given cipher.
  4613. *
  4614. * @param string $cipher
  4615. * @return string
  4616. * @static
  4617. */
  4618. public static function generateKey($cipher)
  4619. {
  4620. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  4621. }
  4622. /**
  4623. * Encrypt the given value.
  4624. *
  4625. * @param mixed $value
  4626. * @param bool $serialize
  4627. * @return string
  4628. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4629. * @static
  4630. */
  4631. public static function encrypt($value, $serialize = true)
  4632. {
  4633. /** @var \Illuminate\Encryption\Encrypter $instance */
  4634. return $instance->encrypt($value, $serialize);
  4635. }
  4636. /**
  4637. * Encrypt a string without serialization.
  4638. *
  4639. * @param string $value
  4640. * @return string
  4641. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4642. * @static
  4643. */
  4644. public static function encryptString($value)
  4645. {
  4646. /** @var \Illuminate\Encryption\Encrypter $instance */
  4647. return $instance->encryptString($value);
  4648. }
  4649. /**
  4650. * Decrypt the given value.
  4651. *
  4652. * @param string $payload
  4653. * @param bool $unserialize
  4654. * @return mixed
  4655. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4656. * @static
  4657. */
  4658. public static function decrypt($payload, $unserialize = true)
  4659. {
  4660. /** @var \Illuminate\Encryption\Encrypter $instance */
  4661. return $instance->decrypt($payload, $unserialize);
  4662. }
  4663. /**
  4664. * Decrypt the given string without unserialization.
  4665. *
  4666. * @param string $payload
  4667. * @return string
  4668. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4669. * @static
  4670. */
  4671. public static function decryptString($payload)
  4672. {
  4673. /** @var \Illuminate\Encryption\Encrypter $instance */
  4674. return $instance->decryptString($payload);
  4675. }
  4676. /**
  4677. * Get the encryption key that the encrypter is currently using.
  4678. *
  4679. * @return string
  4680. * @static
  4681. */
  4682. public static function getKey()
  4683. {
  4684. /** @var \Illuminate\Encryption\Encrypter $instance */
  4685. return $instance->getKey();
  4686. }
  4687. }
  4688. /**
  4689. *
  4690. *
  4691. * @see https://carbon.nesbot.com/docs/
  4692. * @see https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Factory.php
  4693. * @method static \Illuminate\Support\Carbon create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null)
  4694. * @method static \Illuminate\Support\Carbon createFromDate($year = null, $month = null, $day = null, $tz = null)
  4695. * @method static \Illuminate\Support\Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null)
  4696. * @method static \Illuminate\Support\Carbon createFromTimeString($time, $tz = null)
  4697. * @method static \Illuminate\Support\Carbon createFromTimestamp($timestamp, $tz = null)
  4698. * @method static \Illuminate\Support\Carbon createFromTimestampMs($timestamp, $tz = null)
  4699. * @method static \Illuminate\Support\Carbon createFromTimestampUTC($timestamp)
  4700. * @method static \Illuminate\Support\Carbon createMidnightDate($year = null, $month = null, $day = null, $tz = null)
  4701. * @method static void disableHumanDiffOption($humanDiffOption)
  4702. * @method static void enableHumanDiffOption($humanDiffOption)
  4703. * @method static \Illuminate\Support\Carbon fromSerialized($value)
  4704. * @method static array getLastErrors()
  4705. * @method static \Illuminate\Support\Carbon|null getTestNow()
  4706. * @method static \Illuminate\Support\Carbon instance($date)
  4707. * @method static bool isMutable()
  4708. * @method static \Illuminate\Support\Carbon maxValue()
  4709. * @method static \Illuminate\Support\Carbon minValue()
  4710. * @method static \Illuminate\Support\Carbon now($tz = null)
  4711. * @method static \Illuminate\Support\Carbon parse($time = null, $tz = null)
  4712. * @method static void setHumanDiffOptions($humanDiffOptions)
  4713. * @method static void setTestNow($testNow = null)
  4714. * @method static void setUtf8($utf8)
  4715. * @method static \Illuminate\Support\Carbon today($tz = null)
  4716. * @method static \Illuminate\Support\Carbon tomorrow($tz = null)
  4717. * @method static void useStrictMode($strictModeEnabled = true)
  4718. * @method static \Illuminate\Support\Carbon yesterday($tz = null)
  4719. * @method static \Illuminate\Support\Carbon|false createFromFormat($format, $time, $tz = null)
  4720. * @method static \Illuminate\Support\Carbon|false createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null)
  4721. * @method static \Illuminate\Support\Carbon|null make($var)
  4722. * @method static \Symfony\Component\Translation\TranslatorInterface getTranslator()
  4723. * @method static array getAvailableLocales()
  4724. * @method static array getDays()
  4725. * @method static array getIsoUnits()
  4726. * @method static array getWeekendDays()
  4727. * @method static bool hasFormat($date, $format)
  4728. * @method static bool hasMacro($name)
  4729. * @method static bool hasRelativeKeywords($time)
  4730. * @method static bool hasTestNow()
  4731. * @method static bool isImmutable()
  4732. * @method static bool isModifiableUnit($unit)
  4733. * @method static bool isStrictModeEnabled()
  4734. * @method static bool localeHasDiffOneDayWords($locale)
  4735. * @method static bool localeHasDiffSyntax($locale)
  4736. * @method static bool localeHasDiffTwoDayWords($locale)
  4737. * @method static bool localeHasPeriodSyntax($locale)
  4738. * @method static bool localeHasShortUnits($locale)
  4739. * @method static bool setLocale($locale)
  4740. * @method static bool shouldOverflowMonths()
  4741. * @method static bool shouldOverflowYears()
  4742. * @method static int getHumanDiffOptions()
  4743. * @method static int getMidDayAt()
  4744. * @method static int getWeekEndsAt()
  4745. * @method static int getWeekStartsAt()
  4746. * @method static mixed executeWithLocale($locale, $func)
  4747. * @method static string getLocale()
  4748. * @method static string pluralUnit(string $unit)
  4749. * @method static string singularUnit(string $unit)
  4750. * @method static void macro($name, $macro)
  4751. * @method static void mixin($mixin)
  4752. * @method static void resetMonthsOverflow()
  4753. * @method static void resetToStringFormat()
  4754. * @method static void resetYearsOverflow()
  4755. * @method static void serializeUsing($callback)
  4756. * @method static void setMidDayAt($hour)
  4757. * @method static void setToStringFormat($format)
  4758. * @method static void setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator)
  4759. * @method static void setWeekEndsAt($day)
  4760. * @method static void setWeekStartsAt($day)
  4761. * @method static void setWeekendDays($days)
  4762. * @method static void useMonthsOverflow($monthsOverflow = true)
  4763. * @method static void useYearsOverflow($yearsOverflow = true)
  4764. */
  4765. class Date {
  4766. /**
  4767. * Use the given handler when generating dates (class name, callable, or factory).
  4768. *
  4769. * @param mixed $handler
  4770. * @return mixed
  4771. * @throws \InvalidArgumentException
  4772. * @static
  4773. */
  4774. public static function use($handler)
  4775. {
  4776. return \Illuminate\Support\DateFactory::use($handler);
  4777. }
  4778. /**
  4779. * Use the default date class when generating dates.
  4780. *
  4781. * @return void
  4782. * @static
  4783. */
  4784. public static function useDefault()
  4785. {
  4786. \Illuminate\Support\DateFactory::useDefault();
  4787. }
  4788. /**
  4789. * Execute the given callable on each date creation.
  4790. *
  4791. * @param callable $callable
  4792. * @return void
  4793. * @static
  4794. */
  4795. public static function useCallable($callable)
  4796. {
  4797. \Illuminate\Support\DateFactory::useCallable($callable);
  4798. }
  4799. /**
  4800. * Use the given date type (class) when generating dates.
  4801. *
  4802. * @param string $dateClass
  4803. * @return void
  4804. * @static
  4805. */
  4806. public static function useClass($dateClass)
  4807. {
  4808. \Illuminate\Support\DateFactory::useClass($dateClass);
  4809. }
  4810. /**
  4811. * Use the given Carbon factory when generating dates.
  4812. *
  4813. * @param object $factory
  4814. * @return void
  4815. * @static
  4816. */
  4817. public static function useFactory($factory)
  4818. {
  4819. \Illuminate\Support\DateFactory::useFactory($factory);
  4820. }
  4821. }
  4822. /**
  4823. *
  4824. *
  4825. * @see \Illuminate\Database\DatabaseManager
  4826. * @see \Illuminate\Database\Connection
  4827. */
  4828. class DB {
  4829. /**
  4830. * Get a database connection instance.
  4831. *
  4832. * @param string|null $name
  4833. * @return \Illuminate\Database\Connection
  4834. * @static
  4835. */
  4836. public static function connection($name = null)
  4837. {
  4838. /** @var \Illuminate\Database\DatabaseManager $instance */
  4839. return $instance->connection($name);
  4840. }
  4841. /**
  4842. * Register a custom Doctrine type.
  4843. *
  4844. * @param string $class
  4845. * @param string $name
  4846. * @param string $type
  4847. * @return void
  4848. * @throws \Doctrine\DBAL\DBALException
  4849. * @throws \RuntimeException
  4850. * @static
  4851. */
  4852. public static function registerDoctrineType($class, $name, $type)
  4853. {
  4854. /** @var \Illuminate\Database\DatabaseManager $instance */
  4855. $instance->registerDoctrineType($class, $name, $type);
  4856. }
  4857. /**
  4858. * Disconnect from the given database and remove from local cache.
  4859. *
  4860. * @param string|null $name
  4861. * @return void
  4862. * @static
  4863. */
  4864. public static function purge($name = null)
  4865. {
  4866. /** @var \Illuminate\Database\DatabaseManager $instance */
  4867. $instance->purge($name);
  4868. }
  4869. /**
  4870. * Disconnect from the given database.
  4871. *
  4872. * @param string|null $name
  4873. * @return void
  4874. * @static
  4875. */
  4876. public static function disconnect($name = null)
  4877. {
  4878. /** @var \Illuminate\Database\DatabaseManager $instance */
  4879. $instance->disconnect($name);
  4880. }
  4881. /**
  4882. * Reconnect to the given database.
  4883. *
  4884. * @param string|null $name
  4885. * @return \Illuminate\Database\Connection
  4886. * @static
  4887. */
  4888. public static function reconnect($name = null)
  4889. {
  4890. /** @var \Illuminate\Database\DatabaseManager $instance */
  4891. return $instance->reconnect($name);
  4892. }
  4893. /**
  4894. * Set the default database connection for the callback execution.
  4895. *
  4896. * @param string $name
  4897. * @param callable $callback
  4898. * @return mixed
  4899. * @static
  4900. */
  4901. public static function usingConnection($name, $callback)
  4902. {
  4903. /** @var \Illuminate\Database\DatabaseManager $instance */
  4904. return $instance->usingConnection($name, $callback);
  4905. }
  4906. /**
  4907. * Get the default connection name.
  4908. *
  4909. * @return string
  4910. * @static
  4911. */
  4912. public static function getDefaultConnection()
  4913. {
  4914. /** @var \Illuminate\Database\DatabaseManager $instance */
  4915. return $instance->getDefaultConnection();
  4916. }
  4917. /**
  4918. * Set the default connection name.
  4919. *
  4920. * @param string $name
  4921. * @return void
  4922. * @static
  4923. */
  4924. public static function setDefaultConnection($name)
  4925. {
  4926. /** @var \Illuminate\Database\DatabaseManager $instance */
  4927. $instance->setDefaultConnection($name);
  4928. }
  4929. /**
  4930. * Get all of the support drivers.
  4931. *
  4932. * @return string[]
  4933. * @static
  4934. */
  4935. public static function supportedDrivers()
  4936. {
  4937. /** @var \Illuminate\Database\DatabaseManager $instance */
  4938. return $instance->supportedDrivers();
  4939. }
  4940. /**
  4941. * Get all of the drivers that are actually available.
  4942. *
  4943. * @return string[]
  4944. * @static
  4945. */
  4946. public static function availableDrivers()
  4947. {
  4948. /** @var \Illuminate\Database\DatabaseManager $instance */
  4949. return $instance->availableDrivers();
  4950. }
  4951. /**
  4952. * Register an extension connection resolver.
  4953. *
  4954. * @param string $name
  4955. * @param callable $resolver
  4956. * @return void
  4957. * @static
  4958. */
  4959. public static function extend($name, $resolver)
  4960. {
  4961. /** @var \Illuminate\Database\DatabaseManager $instance */
  4962. $instance->extend($name, $resolver);
  4963. }
  4964. /**
  4965. * Remove an extension connection resolver.
  4966. *
  4967. * @param string $name
  4968. * @return void
  4969. * @static
  4970. */
  4971. public static function forgetExtension($name)
  4972. {
  4973. /** @var \Illuminate\Database\DatabaseManager $instance */
  4974. $instance->forgetExtension($name);
  4975. }
  4976. /**
  4977. * Return all of the created connections.
  4978. *
  4979. * @return array<string, \Illuminate\Database\Connection>
  4980. * @static
  4981. */
  4982. public static function getConnections()
  4983. {
  4984. /** @var \Illuminate\Database\DatabaseManager $instance */
  4985. return $instance->getConnections();
  4986. }
  4987. /**
  4988. * Set the database reconnector callback.
  4989. *
  4990. * @param callable $reconnector
  4991. * @return void
  4992. * @static
  4993. */
  4994. public static function setReconnector($reconnector)
  4995. {
  4996. /** @var \Illuminate\Database\DatabaseManager $instance */
  4997. $instance->setReconnector($reconnector);
  4998. }
  4999. /**
  5000. * Set the application instance used by the manager.
  5001. *
  5002. * @param \Illuminate\Contracts\Foundation\Application $app
  5003. * @return \Illuminate\Database\DatabaseManager
  5004. * @static
  5005. */
  5006. public static function setApplication($app)
  5007. {
  5008. /** @var \Illuminate\Database\DatabaseManager $instance */
  5009. return $instance->setApplication($app);
  5010. }
  5011. /**
  5012. * Register a custom macro.
  5013. *
  5014. * @param string $name
  5015. * @param object|callable $macro
  5016. * @return void
  5017. * @static
  5018. */
  5019. public static function macro($name, $macro)
  5020. {
  5021. \Illuminate\Database\DatabaseManager::macro($name, $macro);
  5022. }
  5023. /**
  5024. * Mix another object into the class.
  5025. *
  5026. * @param object $mixin
  5027. * @param bool $replace
  5028. * @return void
  5029. * @throws \ReflectionException
  5030. * @static
  5031. */
  5032. public static function mixin($mixin, $replace = true)
  5033. {
  5034. \Illuminate\Database\DatabaseManager::mixin($mixin, $replace);
  5035. }
  5036. /**
  5037. * Checks if macro is registered.
  5038. *
  5039. * @param string $name
  5040. * @return bool
  5041. * @static
  5042. */
  5043. public static function hasMacro($name)
  5044. {
  5045. return \Illuminate\Database\DatabaseManager::hasMacro($name);
  5046. }
  5047. /**
  5048. * Flush the existing macros.
  5049. *
  5050. * @return void
  5051. * @static
  5052. */
  5053. public static function flushMacros()
  5054. {
  5055. \Illuminate\Database\DatabaseManager::flushMacros();
  5056. }
  5057. /**
  5058. * Dynamically handle calls to the class.
  5059. *
  5060. * @param string $method
  5061. * @param array $parameters
  5062. * @return mixed
  5063. * @throws \BadMethodCallException
  5064. * @static
  5065. */
  5066. public static function macroCall($method, $parameters)
  5067. {
  5068. /** @var \Illuminate\Database\DatabaseManager $instance */
  5069. return $instance->macroCall($method, $parameters);
  5070. }
  5071. /**
  5072. * Determine if the connected database is a MariaDB database.
  5073. *
  5074. * @return bool
  5075. * @static
  5076. */
  5077. public static function isMaria()
  5078. {
  5079. /** @var \Illuminate\Database\MySqlConnection $instance */
  5080. return $instance->isMaria();
  5081. }
  5082. /**
  5083. * Get a schema builder instance for the connection.
  5084. *
  5085. * @return \Illuminate\Database\Schema\MySqlBuilder
  5086. * @static
  5087. */
  5088. public static function getSchemaBuilder()
  5089. {
  5090. /** @var \Illuminate\Database\MySqlConnection $instance */
  5091. return $instance->getSchemaBuilder();
  5092. }
  5093. /**
  5094. * Get the schema state for the connection.
  5095. *
  5096. * @param \Illuminate\Filesystem\Filesystem|null $files
  5097. * @param callable|null $processFactory
  5098. * @return \Illuminate\Database\Schema\MySqlSchemaState
  5099. * @static
  5100. */
  5101. public static function getSchemaState($files = null, $processFactory = null)
  5102. {
  5103. /** @var \Illuminate\Database\MySqlConnection $instance */
  5104. return $instance->getSchemaState($files, $processFactory);
  5105. }
  5106. /**
  5107. * Set the query grammar to the default implementation.
  5108. *
  5109. * @return void
  5110. * @static
  5111. */
  5112. public static function useDefaultQueryGrammar()
  5113. { //Method inherited from \Illuminate\Database\Connection
  5114. /** @var \Illuminate\Database\MySqlConnection $instance */
  5115. $instance->useDefaultQueryGrammar();
  5116. }
  5117. /**
  5118. * Set the schema grammar to the default implementation.
  5119. *
  5120. * @return void
  5121. * @static
  5122. */
  5123. public static function useDefaultSchemaGrammar()
  5124. { //Method inherited from \Illuminate\Database\Connection
  5125. /** @var \Illuminate\Database\MySqlConnection $instance */
  5126. $instance->useDefaultSchemaGrammar();
  5127. }
  5128. /**
  5129. * Set the query post processor to the default implementation.
  5130. *
  5131. * @return void
  5132. * @static
  5133. */
  5134. public static function useDefaultPostProcessor()
  5135. { //Method inherited from \Illuminate\Database\Connection
  5136. /** @var \Illuminate\Database\MySqlConnection $instance */
  5137. $instance->useDefaultPostProcessor();
  5138. }
  5139. /**
  5140. * Begin a fluent query against a database table.
  5141. *
  5142. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  5143. * @param string|null $as
  5144. * @return \Illuminate\Database\Query\Builder
  5145. * @static
  5146. */
  5147. public static function table($table, $as = null)
  5148. { //Method inherited from \Illuminate\Database\Connection
  5149. /** @var \Illuminate\Database\MySqlConnection $instance */
  5150. return $instance->table($table, $as);
  5151. }
  5152. /**
  5153. * Get a new query builder instance.
  5154. *
  5155. * @return \Illuminate\Database\Query\Builder
  5156. * @static
  5157. */
  5158. public static function query()
  5159. { //Method inherited from \Illuminate\Database\Connection
  5160. /** @var \Illuminate\Database\MySqlConnection $instance */
  5161. return $instance->query();
  5162. }
  5163. /**
  5164. * Run a select statement and return a single result.
  5165. *
  5166. * @param string $query
  5167. * @param array $bindings
  5168. * @param bool $useReadPdo
  5169. * @return mixed
  5170. * @static
  5171. */
  5172. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  5173. { //Method inherited from \Illuminate\Database\Connection
  5174. /** @var \Illuminate\Database\MySqlConnection $instance */
  5175. return $instance->selectOne($query, $bindings, $useReadPdo);
  5176. }
  5177. /**
  5178. * Run a select statement and return the first column of the first row.
  5179. *
  5180. * @param string $query
  5181. * @param array $bindings
  5182. * @param bool $useReadPdo
  5183. * @return mixed
  5184. * @throws \Illuminate\Database\MultipleColumnsSelectedException
  5185. * @static
  5186. */
  5187. public static function scalar($query, $bindings = [], $useReadPdo = true)
  5188. { //Method inherited from \Illuminate\Database\Connection
  5189. /** @var \Illuminate\Database\MySqlConnection $instance */
  5190. return $instance->scalar($query, $bindings, $useReadPdo);
  5191. }
  5192. /**
  5193. * Run a select statement against the database.
  5194. *
  5195. * @param string $query
  5196. * @param array $bindings
  5197. * @return array
  5198. * @static
  5199. */
  5200. public static function selectFromWriteConnection($query, $bindings = [])
  5201. { //Method inherited from \Illuminate\Database\Connection
  5202. /** @var \Illuminate\Database\MySqlConnection $instance */
  5203. return $instance->selectFromWriteConnection($query, $bindings);
  5204. }
  5205. /**
  5206. * Run a select statement against the database.
  5207. *
  5208. * @param string $query
  5209. * @param array $bindings
  5210. * @param bool $useReadPdo
  5211. * @return array
  5212. * @static
  5213. */
  5214. public static function select($query, $bindings = [], $useReadPdo = true)
  5215. { //Method inherited from \Illuminate\Database\Connection
  5216. /** @var \Illuminate\Database\MySqlConnection $instance */
  5217. return $instance->select($query, $bindings, $useReadPdo);
  5218. }
  5219. /**
  5220. * Run a select statement against the database and returns a generator.
  5221. *
  5222. * @param string $query
  5223. * @param array $bindings
  5224. * @param bool $useReadPdo
  5225. * @return \Generator
  5226. * @static
  5227. */
  5228. public static function cursor($query, $bindings = [], $useReadPdo = true)
  5229. { //Method inherited from \Illuminate\Database\Connection
  5230. /** @var \Illuminate\Database\MySqlConnection $instance */
  5231. return $instance->cursor($query, $bindings, $useReadPdo);
  5232. }
  5233. /**
  5234. * Run an insert statement against the database.
  5235. *
  5236. * @param string $query
  5237. * @param array $bindings
  5238. * @return bool
  5239. * @static
  5240. */
  5241. public static function insert($query, $bindings = [])
  5242. { //Method inherited from \Illuminate\Database\Connection
  5243. /** @var \Illuminate\Database\MySqlConnection $instance */
  5244. return $instance->insert($query, $bindings);
  5245. }
  5246. /**
  5247. * Run an update statement against the database.
  5248. *
  5249. * @param string $query
  5250. * @param array $bindings
  5251. * @return int
  5252. * @static
  5253. */
  5254. public static function update($query, $bindings = [])
  5255. { //Method inherited from \Illuminate\Database\Connection
  5256. /** @var \Illuminate\Database\MySqlConnection $instance */
  5257. return $instance->update($query, $bindings);
  5258. }
  5259. /**
  5260. * Run a delete statement against the database.
  5261. *
  5262. * @param string $query
  5263. * @param array $bindings
  5264. * @return int
  5265. * @static
  5266. */
  5267. public static function delete($query, $bindings = [])
  5268. { //Method inherited from \Illuminate\Database\Connection
  5269. /** @var \Illuminate\Database\MySqlConnection $instance */
  5270. return $instance->delete($query, $bindings);
  5271. }
  5272. /**
  5273. * Execute an SQL statement and return the boolean result.
  5274. *
  5275. * @param string $query
  5276. * @param array $bindings
  5277. * @return bool
  5278. * @static
  5279. */
  5280. public static function statement($query, $bindings = [])
  5281. { //Method inherited from \Illuminate\Database\Connection
  5282. /** @var \Illuminate\Database\MySqlConnection $instance */
  5283. return $instance->statement($query, $bindings);
  5284. }
  5285. /**
  5286. * Run an SQL statement and get the number of rows affected.
  5287. *
  5288. * @param string $query
  5289. * @param array $bindings
  5290. * @return int
  5291. * @static
  5292. */
  5293. public static function affectingStatement($query, $bindings = [])
  5294. { //Method inherited from \Illuminate\Database\Connection
  5295. /** @var \Illuminate\Database\MySqlConnection $instance */
  5296. return $instance->affectingStatement($query, $bindings);
  5297. }
  5298. /**
  5299. * Run a raw, unprepared query against the PDO connection.
  5300. *
  5301. * @param string $query
  5302. * @return bool
  5303. * @static
  5304. */
  5305. public static function unprepared($query)
  5306. { //Method inherited from \Illuminate\Database\Connection
  5307. /** @var \Illuminate\Database\MySqlConnection $instance */
  5308. return $instance->unprepared($query);
  5309. }
  5310. /**
  5311. * Execute the given callback in "dry run" mode.
  5312. *
  5313. * @param \Closure $callback
  5314. * @return array
  5315. * @static
  5316. */
  5317. public static function pretend($callback)
  5318. { //Method inherited from \Illuminate\Database\Connection
  5319. /** @var \Illuminate\Database\MySqlConnection $instance */
  5320. return $instance->pretend($callback);
  5321. }
  5322. /**
  5323. * Bind values to their parameters in the given statement.
  5324. *
  5325. * @param \PDOStatement $statement
  5326. * @param array $bindings
  5327. * @return void
  5328. * @static
  5329. */
  5330. public static function bindValues($statement, $bindings)
  5331. { //Method inherited from \Illuminate\Database\Connection
  5332. /** @var \Illuminate\Database\MySqlConnection $instance */
  5333. $instance->bindValues($statement, $bindings);
  5334. }
  5335. /**
  5336. * Prepare the query bindings for execution.
  5337. *
  5338. * @param array $bindings
  5339. * @return array
  5340. * @static
  5341. */
  5342. public static function prepareBindings($bindings)
  5343. { //Method inherited from \Illuminate\Database\Connection
  5344. /** @var \Illuminate\Database\MySqlConnection $instance */
  5345. return $instance->prepareBindings($bindings);
  5346. }
  5347. /**
  5348. * Log a query in the connection's query log.
  5349. *
  5350. * @param string $query
  5351. * @param array $bindings
  5352. * @param float|null $time
  5353. * @return void
  5354. * @static
  5355. */
  5356. public static function logQuery($query, $bindings, $time = null)
  5357. { //Method inherited from \Illuminate\Database\Connection
  5358. /** @var \Illuminate\Database\MySqlConnection $instance */
  5359. $instance->logQuery($query, $bindings, $time);
  5360. }
  5361. /**
  5362. * Register a callback to be invoked when the connection queries for longer than a given amount of time.
  5363. *
  5364. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  5365. * @param callable $handler
  5366. * @return void
  5367. * @static
  5368. */
  5369. public static function whenQueryingForLongerThan($threshold, $handler)
  5370. { //Method inherited from \Illuminate\Database\Connection
  5371. /** @var \Illuminate\Database\MySqlConnection $instance */
  5372. $instance->whenQueryingForLongerThan($threshold, $handler);
  5373. }
  5374. /**
  5375. * Allow all the query duration handlers to run again, even if they have already run.
  5376. *
  5377. * @return void
  5378. * @static
  5379. */
  5380. public static function allowQueryDurationHandlersToRunAgain()
  5381. { //Method inherited from \Illuminate\Database\Connection
  5382. /** @var \Illuminate\Database\MySqlConnection $instance */
  5383. $instance->allowQueryDurationHandlersToRunAgain();
  5384. }
  5385. /**
  5386. * Get the duration of all run queries in milliseconds.
  5387. *
  5388. * @return float
  5389. * @static
  5390. */
  5391. public static function totalQueryDuration()
  5392. { //Method inherited from \Illuminate\Database\Connection
  5393. /** @var \Illuminate\Database\MySqlConnection $instance */
  5394. return $instance->totalQueryDuration();
  5395. }
  5396. /**
  5397. * Reset the duration of all run queries.
  5398. *
  5399. * @return void
  5400. * @static
  5401. */
  5402. public static function resetTotalQueryDuration()
  5403. { //Method inherited from \Illuminate\Database\Connection
  5404. /** @var \Illuminate\Database\MySqlConnection $instance */
  5405. $instance->resetTotalQueryDuration();
  5406. }
  5407. /**
  5408. * Register a hook to be run just before a database query is executed.
  5409. *
  5410. * @param \Closure $callback
  5411. * @return \Illuminate\Database\MySqlConnection
  5412. * @static
  5413. */
  5414. public static function beforeExecuting($callback)
  5415. { //Method inherited from \Illuminate\Database\Connection
  5416. /** @var \Illuminate\Database\MySqlConnection $instance */
  5417. return $instance->beforeExecuting($callback);
  5418. }
  5419. /**
  5420. * Register a database query listener with the connection.
  5421. *
  5422. * @param \Closure $callback
  5423. * @return void
  5424. * @static
  5425. */
  5426. public static function listen($callback)
  5427. { //Method inherited from \Illuminate\Database\Connection
  5428. /** @var \Illuminate\Database\MySqlConnection $instance */
  5429. $instance->listen($callback);
  5430. }
  5431. /**
  5432. * Get a new raw query expression.
  5433. *
  5434. * @param mixed $value
  5435. * @return \Illuminate\Database\Query\Expression
  5436. * @static
  5437. */
  5438. public static function raw($value)
  5439. { //Method inherited from \Illuminate\Database\Connection
  5440. /** @var \Illuminate\Database\MySqlConnection $instance */
  5441. return $instance->raw($value);
  5442. }
  5443. /**
  5444. * Determine if the database connection has modified any database records.
  5445. *
  5446. * @return bool
  5447. * @static
  5448. */
  5449. public static function hasModifiedRecords()
  5450. { //Method inherited from \Illuminate\Database\Connection
  5451. /** @var \Illuminate\Database\MySqlConnection $instance */
  5452. return $instance->hasModifiedRecords();
  5453. }
  5454. /**
  5455. * Indicate if any records have been modified.
  5456. *
  5457. * @param bool $value
  5458. * @return void
  5459. * @static
  5460. */
  5461. public static function recordsHaveBeenModified($value = true)
  5462. { //Method inherited from \Illuminate\Database\Connection
  5463. /** @var \Illuminate\Database\MySqlConnection $instance */
  5464. $instance->recordsHaveBeenModified($value);
  5465. }
  5466. /**
  5467. * Set the record modification state.
  5468. *
  5469. * @param bool $value
  5470. * @return \Illuminate\Database\MySqlConnection
  5471. * @static
  5472. */
  5473. public static function setRecordModificationState($value)
  5474. { //Method inherited from \Illuminate\Database\Connection
  5475. /** @var \Illuminate\Database\MySqlConnection $instance */
  5476. return $instance->setRecordModificationState($value);
  5477. }
  5478. /**
  5479. * Reset the record modification state.
  5480. *
  5481. * @return void
  5482. * @static
  5483. */
  5484. public static function forgetRecordModificationState()
  5485. { //Method inherited from \Illuminate\Database\Connection
  5486. /** @var \Illuminate\Database\MySqlConnection $instance */
  5487. $instance->forgetRecordModificationState();
  5488. }
  5489. /**
  5490. * Indicate that the connection should use the write PDO connection for reads.
  5491. *
  5492. * @param bool $value
  5493. * @return \Illuminate\Database\MySqlConnection
  5494. * @static
  5495. */
  5496. public static function useWriteConnectionWhenReading($value = true)
  5497. { //Method inherited from \Illuminate\Database\Connection
  5498. /** @var \Illuminate\Database\MySqlConnection $instance */
  5499. return $instance->useWriteConnectionWhenReading($value);
  5500. }
  5501. /**
  5502. * Is Doctrine available?
  5503. *
  5504. * @return bool
  5505. * @static
  5506. */
  5507. public static function isDoctrineAvailable()
  5508. { //Method inherited from \Illuminate\Database\Connection
  5509. /** @var \Illuminate\Database\MySqlConnection $instance */
  5510. return $instance->isDoctrineAvailable();
  5511. }
  5512. /**
  5513. * Get a Doctrine Schema Column instance.
  5514. *
  5515. * @param string $table
  5516. * @param string $column
  5517. * @return \Doctrine\DBAL\Schema\Column
  5518. * @static
  5519. */
  5520. public static function getDoctrineColumn($table, $column)
  5521. { //Method inherited from \Illuminate\Database\Connection
  5522. /** @var \Illuminate\Database\MySqlConnection $instance */
  5523. return $instance->getDoctrineColumn($table, $column);
  5524. }
  5525. /**
  5526. * Get the Doctrine DBAL schema manager for the connection.
  5527. *
  5528. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  5529. * @static
  5530. */
  5531. public static function getDoctrineSchemaManager()
  5532. { //Method inherited from \Illuminate\Database\Connection
  5533. /** @var \Illuminate\Database\MySqlConnection $instance */
  5534. return $instance->getDoctrineSchemaManager();
  5535. }
  5536. /**
  5537. * Get the Doctrine DBAL database connection instance.
  5538. *
  5539. * @return \Doctrine\DBAL\Connection
  5540. * @static
  5541. */
  5542. public static function getDoctrineConnection()
  5543. { //Method inherited from \Illuminate\Database\Connection
  5544. /** @var \Illuminate\Database\MySqlConnection $instance */
  5545. return $instance->getDoctrineConnection();
  5546. }
  5547. /**
  5548. * Get the current PDO connection.
  5549. *
  5550. * @return \PDO
  5551. * @static
  5552. */
  5553. public static function getPdo()
  5554. { //Method inherited from \Illuminate\Database\Connection
  5555. /** @var \Illuminate\Database\MySqlConnection $instance */
  5556. return $instance->getPdo();
  5557. }
  5558. /**
  5559. * Get the current PDO connection parameter without executing any reconnect logic.
  5560. *
  5561. * @return \PDO|\Closure|null
  5562. * @static
  5563. */
  5564. public static function getRawPdo()
  5565. { //Method inherited from \Illuminate\Database\Connection
  5566. /** @var \Illuminate\Database\MySqlConnection $instance */
  5567. return $instance->getRawPdo();
  5568. }
  5569. /**
  5570. * Get the current PDO connection used for reading.
  5571. *
  5572. * @return \PDO
  5573. * @static
  5574. */
  5575. public static function getReadPdo()
  5576. { //Method inherited from \Illuminate\Database\Connection
  5577. /** @var \Illuminate\Database\MySqlConnection $instance */
  5578. return $instance->getReadPdo();
  5579. }
  5580. /**
  5581. * Get the current read PDO connection parameter without executing any reconnect logic.
  5582. *
  5583. * @return \PDO|\Closure|null
  5584. * @static
  5585. */
  5586. public static function getRawReadPdo()
  5587. { //Method inherited from \Illuminate\Database\Connection
  5588. /** @var \Illuminate\Database\MySqlConnection $instance */
  5589. return $instance->getRawReadPdo();
  5590. }
  5591. /**
  5592. * Set the PDO connection.
  5593. *
  5594. * @param \PDO|\Closure|null $pdo
  5595. * @return \Illuminate\Database\MySqlConnection
  5596. * @static
  5597. */
  5598. public static function setPdo($pdo)
  5599. { //Method inherited from \Illuminate\Database\Connection
  5600. /** @var \Illuminate\Database\MySqlConnection $instance */
  5601. return $instance->setPdo($pdo);
  5602. }
  5603. /**
  5604. * Set the PDO connection used for reading.
  5605. *
  5606. * @param \PDO|\Closure|null $pdo
  5607. * @return \Illuminate\Database\MySqlConnection
  5608. * @static
  5609. */
  5610. public static function setReadPdo($pdo)
  5611. { //Method inherited from \Illuminate\Database\Connection
  5612. /** @var \Illuminate\Database\MySqlConnection $instance */
  5613. return $instance->setReadPdo($pdo);
  5614. }
  5615. /**
  5616. * Get the database connection name.
  5617. *
  5618. * @return string|null
  5619. * @static
  5620. */
  5621. public static function getName()
  5622. { //Method inherited from \Illuminate\Database\Connection
  5623. /** @var \Illuminate\Database\MySqlConnection $instance */
  5624. return $instance->getName();
  5625. }
  5626. /**
  5627. * Get the database connection full name.
  5628. *
  5629. * @return string|null
  5630. * @static
  5631. */
  5632. public static function getNameWithReadWriteType()
  5633. { //Method inherited from \Illuminate\Database\Connection
  5634. /** @var \Illuminate\Database\MySqlConnection $instance */
  5635. return $instance->getNameWithReadWriteType();
  5636. }
  5637. /**
  5638. * Get an option from the configuration options.
  5639. *
  5640. * @param string|null $option
  5641. * @return mixed
  5642. * @static
  5643. */
  5644. public static function getConfig($option = null)
  5645. { //Method inherited from \Illuminate\Database\Connection
  5646. /** @var \Illuminate\Database\MySqlConnection $instance */
  5647. return $instance->getConfig($option);
  5648. }
  5649. /**
  5650. * Get the PDO driver name.
  5651. *
  5652. * @return string
  5653. * @static
  5654. */
  5655. public static function getDriverName()
  5656. { //Method inherited from \Illuminate\Database\Connection
  5657. /** @var \Illuminate\Database\MySqlConnection $instance */
  5658. return $instance->getDriverName();
  5659. }
  5660. /**
  5661. * Get the query grammar used by the connection.
  5662. *
  5663. * @return \Illuminate\Database\Query\Grammars\Grammar
  5664. * @static
  5665. */
  5666. public static function getQueryGrammar()
  5667. { //Method inherited from \Illuminate\Database\Connection
  5668. /** @var \Illuminate\Database\MySqlConnection $instance */
  5669. return $instance->getQueryGrammar();
  5670. }
  5671. /**
  5672. * Set the query grammar used by the connection.
  5673. *
  5674. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  5675. * @return \Illuminate\Database\MySqlConnection
  5676. * @static
  5677. */
  5678. public static function setQueryGrammar($grammar)
  5679. { //Method inherited from \Illuminate\Database\Connection
  5680. /** @var \Illuminate\Database\MySqlConnection $instance */
  5681. return $instance->setQueryGrammar($grammar);
  5682. }
  5683. /**
  5684. * Get the schema grammar used by the connection.
  5685. *
  5686. * @return \Illuminate\Database\Schema\Grammars\Grammar
  5687. * @static
  5688. */
  5689. public static function getSchemaGrammar()
  5690. { //Method inherited from \Illuminate\Database\Connection
  5691. /** @var \Illuminate\Database\MySqlConnection $instance */
  5692. return $instance->getSchemaGrammar();
  5693. }
  5694. /**
  5695. * Set the schema grammar used by the connection.
  5696. *
  5697. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  5698. * @return \Illuminate\Database\MySqlConnection
  5699. * @static
  5700. */
  5701. public static function setSchemaGrammar($grammar)
  5702. { //Method inherited from \Illuminate\Database\Connection
  5703. /** @var \Illuminate\Database\MySqlConnection $instance */
  5704. return $instance->setSchemaGrammar($grammar);
  5705. }
  5706. /**
  5707. * Get the query post processor used by the connection.
  5708. *
  5709. * @return \Illuminate\Database\Query\Processors\Processor
  5710. * @static
  5711. */
  5712. public static function getPostProcessor()
  5713. { //Method inherited from \Illuminate\Database\Connection
  5714. /** @var \Illuminate\Database\MySqlConnection $instance */
  5715. return $instance->getPostProcessor();
  5716. }
  5717. /**
  5718. * Set the query post processor used by the connection.
  5719. *
  5720. * @param \Illuminate\Database\Query\Processors\Processor $processor
  5721. * @return \Illuminate\Database\MySqlConnection
  5722. * @static
  5723. */
  5724. public static function setPostProcessor($processor)
  5725. { //Method inherited from \Illuminate\Database\Connection
  5726. /** @var \Illuminate\Database\MySqlConnection $instance */
  5727. return $instance->setPostProcessor($processor);
  5728. }
  5729. /**
  5730. * Get the event dispatcher used by the connection.
  5731. *
  5732. * @return \Illuminate\Contracts\Events\Dispatcher
  5733. * @static
  5734. */
  5735. public static function getEventDispatcher()
  5736. { //Method inherited from \Illuminate\Database\Connection
  5737. /** @var \Illuminate\Database\MySqlConnection $instance */
  5738. return $instance->getEventDispatcher();
  5739. }
  5740. /**
  5741. * Set the event dispatcher instance on the connection.
  5742. *
  5743. * @param \Illuminate\Contracts\Events\Dispatcher $events
  5744. * @return \Illuminate\Database\MySqlConnection
  5745. * @static
  5746. */
  5747. public static function setEventDispatcher($events)
  5748. { //Method inherited from \Illuminate\Database\Connection
  5749. /** @var \Illuminate\Database\MySqlConnection $instance */
  5750. return $instance->setEventDispatcher($events);
  5751. }
  5752. /**
  5753. * Unset the event dispatcher for this connection.
  5754. *
  5755. * @return void
  5756. * @static
  5757. */
  5758. public static function unsetEventDispatcher()
  5759. { //Method inherited from \Illuminate\Database\Connection
  5760. /** @var \Illuminate\Database\MySqlConnection $instance */
  5761. $instance->unsetEventDispatcher();
  5762. }
  5763. /**
  5764. * Set the transaction manager instance on the connection.
  5765. *
  5766. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  5767. * @return \Illuminate\Database\MySqlConnection
  5768. * @static
  5769. */
  5770. public static function setTransactionManager($manager)
  5771. { //Method inherited from \Illuminate\Database\Connection
  5772. /** @var \Illuminate\Database\MySqlConnection $instance */
  5773. return $instance->setTransactionManager($manager);
  5774. }
  5775. /**
  5776. * Unset the transaction manager for this connection.
  5777. *
  5778. * @return void
  5779. * @static
  5780. */
  5781. public static function unsetTransactionManager()
  5782. { //Method inherited from \Illuminate\Database\Connection
  5783. /** @var \Illuminate\Database\MySqlConnection $instance */
  5784. $instance->unsetTransactionManager();
  5785. }
  5786. /**
  5787. * Determine if the connection is in a "dry run".
  5788. *
  5789. * @return bool
  5790. * @static
  5791. */
  5792. public static function pretending()
  5793. { //Method inherited from \Illuminate\Database\Connection
  5794. /** @var \Illuminate\Database\MySqlConnection $instance */
  5795. return $instance->pretending();
  5796. }
  5797. /**
  5798. * Get the connection query log.
  5799. *
  5800. * @return array
  5801. * @static
  5802. */
  5803. public static function getQueryLog()
  5804. { //Method inherited from \Illuminate\Database\Connection
  5805. /** @var \Illuminate\Database\MySqlConnection $instance */
  5806. return $instance->getQueryLog();
  5807. }
  5808. /**
  5809. * Clear the query log.
  5810. *
  5811. * @return void
  5812. * @static
  5813. */
  5814. public static function flushQueryLog()
  5815. { //Method inherited from \Illuminate\Database\Connection
  5816. /** @var \Illuminate\Database\MySqlConnection $instance */
  5817. $instance->flushQueryLog();
  5818. }
  5819. /**
  5820. * Enable the query log on the connection.
  5821. *
  5822. * @return void
  5823. * @static
  5824. */
  5825. public static function enableQueryLog()
  5826. { //Method inherited from \Illuminate\Database\Connection
  5827. /** @var \Illuminate\Database\MySqlConnection $instance */
  5828. $instance->enableQueryLog();
  5829. }
  5830. /**
  5831. * Disable the query log on the connection.
  5832. *
  5833. * @return void
  5834. * @static
  5835. */
  5836. public static function disableQueryLog()
  5837. { //Method inherited from \Illuminate\Database\Connection
  5838. /** @var \Illuminate\Database\MySqlConnection $instance */
  5839. $instance->disableQueryLog();
  5840. }
  5841. /**
  5842. * Determine whether we're logging queries.
  5843. *
  5844. * @return bool
  5845. * @static
  5846. */
  5847. public static function logging()
  5848. { //Method inherited from \Illuminate\Database\Connection
  5849. /** @var \Illuminate\Database\MySqlConnection $instance */
  5850. return $instance->logging();
  5851. }
  5852. /**
  5853. * Get the name of the connected database.
  5854. *
  5855. * @return string
  5856. * @static
  5857. */
  5858. public static function getDatabaseName()
  5859. { //Method inherited from \Illuminate\Database\Connection
  5860. /** @var \Illuminate\Database\MySqlConnection $instance */
  5861. return $instance->getDatabaseName();
  5862. }
  5863. /**
  5864. * Set the name of the connected database.
  5865. *
  5866. * @param string $database
  5867. * @return \Illuminate\Database\MySqlConnection
  5868. * @static
  5869. */
  5870. public static function setDatabaseName($database)
  5871. { //Method inherited from \Illuminate\Database\Connection
  5872. /** @var \Illuminate\Database\MySqlConnection $instance */
  5873. return $instance->setDatabaseName($database);
  5874. }
  5875. /**
  5876. * Set the read / write type of the connection.
  5877. *
  5878. * @param string|null $readWriteType
  5879. * @return \Illuminate\Database\MySqlConnection
  5880. * @static
  5881. */
  5882. public static function setReadWriteType($readWriteType)
  5883. { //Method inherited from \Illuminate\Database\Connection
  5884. /** @var \Illuminate\Database\MySqlConnection $instance */
  5885. return $instance->setReadWriteType($readWriteType);
  5886. }
  5887. /**
  5888. * Get the table prefix for the connection.
  5889. *
  5890. * @return string
  5891. * @static
  5892. */
  5893. public static function getTablePrefix()
  5894. { //Method inherited from \Illuminate\Database\Connection
  5895. /** @var \Illuminate\Database\MySqlConnection $instance */
  5896. return $instance->getTablePrefix();
  5897. }
  5898. /**
  5899. * Set the table prefix in use by the connection.
  5900. *
  5901. * @param string $prefix
  5902. * @return \Illuminate\Database\MySqlConnection
  5903. * @static
  5904. */
  5905. public static function setTablePrefix($prefix)
  5906. { //Method inherited from \Illuminate\Database\Connection
  5907. /** @var \Illuminate\Database\MySqlConnection $instance */
  5908. return $instance->setTablePrefix($prefix);
  5909. }
  5910. /**
  5911. * Set the table prefix and return the grammar.
  5912. *
  5913. * @param \Illuminate\Database\Grammar $grammar
  5914. * @return \Illuminate\Database\Grammar
  5915. * @static
  5916. */
  5917. public static function withTablePrefix($grammar)
  5918. { //Method inherited from \Illuminate\Database\Connection
  5919. /** @var \Illuminate\Database\MySqlConnection $instance */
  5920. return $instance->withTablePrefix($grammar);
  5921. }
  5922. /**
  5923. * Register a connection resolver.
  5924. *
  5925. * @param string $driver
  5926. * @param \Closure $callback
  5927. * @return void
  5928. * @static
  5929. */
  5930. public static function resolverFor($driver, $callback)
  5931. { //Method inherited from \Illuminate\Database\Connection
  5932. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  5933. }
  5934. /**
  5935. * Get the connection resolver for the given driver.
  5936. *
  5937. * @param string $driver
  5938. * @return mixed
  5939. * @static
  5940. */
  5941. public static function getResolver($driver)
  5942. { //Method inherited from \Illuminate\Database\Connection
  5943. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  5944. }
  5945. /**
  5946. * Execute a Closure within a transaction.
  5947. *
  5948. * @param \Closure $callback
  5949. * @param int $attempts
  5950. * @return mixed
  5951. * @throws \Throwable
  5952. * @static
  5953. */
  5954. public static function transaction($callback, $attempts = 1)
  5955. { //Method inherited from \Illuminate\Database\Connection
  5956. /** @var \Illuminate\Database\MySqlConnection $instance */
  5957. return $instance->transaction($callback, $attempts);
  5958. }
  5959. /**
  5960. * Start a new database transaction.
  5961. *
  5962. * @return void
  5963. * @throws \Throwable
  5964. * @static
  5965. */
  5966. public static function beginTransaction()
  5967. { //Method inherited from \Illuminate\Database\Connection
  5968. /** @var \Illuminate\Database\MySqlConnection $instance */
  5969. $instance->beginTransaction();
  5970. }
  5971. /**
  5972. * Commit the active database transaction.
  5973. *
  5974. * @return void
  5975. * @throws \Throwable
  5976. * @static
  5977. */
  5978. public static function commit()
  5979. { //Method inherited from \Illuminate\Database\Connection
  5980. /** @var \Illuminate\Database\MySqlConnection $instance */
  5981. $instance->commit();
  5982. }
  5983. /**
  5984. * Rollback the active database transaction.
  5985. *
  5986. * @param int|null $toLevel
  5987. * @return void
  5988. * @throws \Throwable
  5989. * @static
  5990. */
  5991. public static function rollBack($toLevel = null)
  5992. { //Method inherited from \Illuminate\Database\Connection
  5993. /** @var \Illuminate\Database\MySqlConnection $instance */
  5994. $instance->rollBack($toLevel);
  5995. }
  5996. /**
  5997. * Get the number of active transactions.
  5998. *
  5999. * @return int
  6000. * @static
  6001. */
  6002. public static function transactionLevel()
  6003. { //Method inherited from \Illuminate\Database\Connection
  6004. /** @var \Illuminate\Database\MySqlConnection $instance */
  6005. return $instance->transactionLevel();
  6006. }
  6007. /**
  6008. * Execute the callback after a transaction commits.
  6009. *
  6010. * @param callable $callback
  6011. * @return void
  6012. * @throws \RuntimeException
  6013. * @static
  6014. */
  6015. public static function afterCommit($callback)
  6016. { //Method inherited from \Illuminate\Database\Connection
  6017. /** @var \Illuminate\Database\MySqlConnection $instance */
  6018. $instance->afterCommit($callback);
  6019. }
  6020. }
  6021. /**
  6022. *
  6023. *
  6024. * @see \Illuminate\Events\Dispatcher
  6025. */
  6026. class Event {
  6027. /**
  6028. * Register an event listener with the dispatcher.
  6029. *
  6030. * @param \Closure|string|array $events
  6031. * @param \Closure|string|array|null $listener
  6032. * @return void
  6033. * @static
  6034. */
  6035. public static function listen($events, $listener = null)
  6036. {
  6037. /** @var \Illuminate\Events\Dispatcher $instance */
  6038. $instance->listen($events, $listener);
  6039. }
  6040. /**
  6041. * Determine if a given event has listeners.
  6042. *
  6043. * @param string $eventName
  6044. * @return bool
  6045. * @static
  6046. */
  6047. public static function hasListeners($eventName)
  6048. {
  6049. /** @var \Illuminate\Events\Dispatcher $instance */
  6050. return $instance->hasListeners($eventName);
  6051. }
  6052. /**
  6053. * Determine if the given event has any wildcard listeners.
  6054. *
  6055. * @param string $eventName
  6056. * @return bool
  6057. * @static
  6058. */
  6059. public static function hasWildcardListeners($eventName)
  6060. {
  6061. /** @var \Illuminate\Events\Dispatcher $instance */
  6062. return $instance->hasWildcardListeners($eventName);
  6063. }
  6064. /**
  6065. * Register an event and payload to be fired later.
  6066. *
  6067. * @param string $event
  6068. * @param object|array $payload
  6069. * @return void
  6070. * @static
  6071. */
  6072. public static function push($event, $payload = [])
  6073. {
  6074. /** @var \Illuminate\Events\Dispatcher $instance */
  6075. $instance->push($event, $payload);
  6076. }
  6077. /**
  6078. * Flush a set of pushed events.
  6079. *
  6080. * @param string $event
  6081. * @return void
  6082. * @static
  6083. */
  6084. public static function flush($event)
  6085. {
  6086. /** @var \Illuminate\Events\Dispatcher $instance */
  6087. $instance->flush($event);
  6088. }
  6089. /**
  6090. * Register an event subscriber with the dispatcher.
  6091. *
  6092. * @param object|string $subscriber
  6093. * @return void
  6094. * @static
  6095. */
  6096. public static function subscribe($subscriber)
  6097. {
  6098. /** @var \Illuminate\Events\Dispatcher $instance */
  6099. $instance->subscribe($subscriber);
  6100. }
  6101. /**
  6102. * Fire an event until the first non-null response is returned.
  6103. *
  6104. * @param string|object $event
  6105. * @param mixed $payload
  6106. * @return array|null
  6107. * @static
  6108. */
  6109. public static function until($event, $payload = [])
  6110. {
  6111. /** @var \Illuminate\Events\Dispatcher $instance */
  6112. return $instance->until($event, $payload);
  6113. }
  6114. /**
  6115. * Fire an event and call the listeners.
  6116. *
  6117. * @param string|object $event
  6118. * @param mixed $payload
  6119. * @param bool $halt
  6120. * @return array|null
  6121. * @static
  6122. */
  6123. public static function dispatch($event, $payload = [], $halt = false)
  6124. {
  6125. /** @var \Illuminate\Events\Dispatcher $instance */
  6126. return $instance->dispatch($event, $payload, $halt);
  6127. }
  6128. /**
  6129. * Get all of the listeners for a given event name.
  6130. *
  6131. * @param string $eventName
  6132. * @return array
  6133. * @static
  6134. */
  6135. public static function getListeners($eventName)
  6136. {
  6137. /** @var \Illuminate\Events\Dispatcher $instance */
  6138. return $instance->getListeners($eventName);
  6139. }
  6140. /**
  6141. * Register an event listener with the dispatcher.
  6142. *
  6143. * @param \Closure|string|array $listener
  6144. * @param bool $wildcard
  6145. * @return \Closure
  6146. * @static
  6147. */
  6148. public static function makeListener($listener, $wildcard = false)
  6149. {
  6150. /** @var \Illuminate\Events\Dispatcher $instance */
  6151. return $instance->makeListener($listener, $wildcard);
  6152. }
  6153. /**
  6154. * Create a class based listener using the IoC container.
  6155. *
  6156. * @param string $listener
  6157. * @param bool $wildcard
  6158. * @return \Closure
  6159. * @static
  6160. */
  6161. public static function createClassListener($listener, $wildcard = false)
  6162. {
  6163. /** @var \Illuminate\Events\Dispatcher $instance */
  6164. return $instance->createClassListener($listener, $wildcard);
  6165. }
  6166. /**
  6167. * Remove a set of listeners from the dispatcher.
  6168. *
  6169. * @param string $event
  6170. * @return void
  6171. * @static
  6172. */
  6173. public static function forget($event)
  6174. {
  6175. /** @var \Illuminate\Events\Dispatcher $instance */
  6176. $instance->forget($event);
  6177. }
  6178. /**
  6179. * Forget all of the pushed listeners.
  6180. *
  6181. * @return void
  6182. * @static
  6183. */
  6184. public static function forgetPushed()
  6185. {
  6186. /** @var \Illuminate\Events\Dispatcher $instance */
  6187. $instance->forgetPushed();
  6188. }
  6189. /**
  6190. * Set the queue resolver implementation.
  6191. *
  6192. * @param callable $resolver
  6193. * @return \Illuminate\Events\Dispatcher
  6194. * @static
  6195. */
  6196. public static function setQueueResolver($resolver)
  6197. {
  6198. /** @var \Illuminate\Events\Dispatcher $instance */
  6199. return $instance->setQueueResolver($resolver);
  6200. }
  6201. /**
  6202. * Gets the raw, unprepared listeners.
  6203. *
  6204. * @return array
  6205. * @static
  6206. */
  6207. public static function getRawListeners()
  6208. {
  6209. /** @var \Illuminate\Events\Dispatcher $instance */
  6210. return $instance->getRawListeners();
  6211. }
  6212. /**
  6213. * Register a custom macro.
  6214. *
  6215. * @param string $name
  6216. * @param object|callable $macro
  6217. * @return void
  6218. * @static
  6219. */
  6220. public static function macro($name, $macro)
  6221. {
  6222. \Illuminate\Events\Dispatcher::macro($name, $macro);
  6223. }
  6224. /**
  6225. * Mix another object into the class.
  6226. *
  6227. * @param object $mixin
  6228. * @param bool $replace
  6229. * @return void
  6230. * @throws \ReflectionException
  6231. * @static
  6232. */
  6233. public static function mixin($mixin, $replace = true)
  6234. {
  6235. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  6236. }
  6237. /**
  6238. * Checks if macro is registered.
  6239. *
  6240. * @param string $name
  6241. * @return bool
  6242. * @static
  6243. */
  6244. public static function hasMacro($name)
  6245. {
  6246. return \Illuminate\Events\Dispatcher::hasMacro($name);
  6247. }
  6248. /**
  6249. * Flush the existing macros.
  6250. *
  6251. * @return void
  6252. * @static
  6253. */
  6254. public static function flushMacros()
  6255. {
  6256. \Illuminate\Events\Dispatcher::flushMacros();
  6257. }
  6258. /**
  6259. * Specify the events that should be dispatched instead of faked.
  6260. *
  6261. * @param array|string $eventsToDispatch
  6262. * @return \Illuminate\Support\Testing\Fakes\EventFake
  6263. * @static
  6264. */
  6265. public static function except($eventsToDispatch)
  6266. {
  6267. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6268. return $instance->except($eventsToDispatch);
  6269. }
  6270. /**
  6271. * Assert if an event has a listener attached to it.
  6272. *
  6273. * @param string $expectedEvent
  6274. * @param string|array $expectedListener
  6275. * @return void
  6276. * @static
  6277. */
  6278. public static function assertListening($expectedEvent, $expectedListener)
  6279. {
  6280. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6281. $instance->assertListening($expectedEvent, $expectedListener);
  6282. }
  6283. /**
  6284. * Assert if an event was dispatched based on a truth-test callback.
  6285. *
  6286. * @param string|\Closure $event
  6287. * @param callable|int|null $callback
  6288. * @return void
  6289. * @static
  6290. */
  6291. public static function assertDispatched($event, $callback = null)
  6292. {
  6293. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6294. $instance->assertDispatched($event, $callback);
  6295. }
  6296. /**
  6297. * Assert if an event was dispatched a number of times.
  6298. *
  6299. * @param string $event
  6300. * @param int $times
  6301. * @return void
  6302. * @static
  6303. */
  6304. public static function assertDispatchedTimes($event, $times = 1)
  6305. {
  6306. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6307. $instance->assertDispatchedTimes($event, $times);
  6308. }
  6309. /**
  6310. * Determine if an event was dispatched based on a truth-test callback.
  6311. *
  6312. * @param string|\Closure $event
  6313. * @param callable|null $callback
  6314. * @return void
  6315. * @static
  6316. */
  6317. public static function assertNotDispatched($event, $callback = null)
  6318. {
  6319. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6320. $instance->assertNotDispatched($event, $callback);
  6321. }
  6322. /**
  6323. * Assert that no events were dispatched.
  6324. *
  6325. * @return void
  6326. * @static
  6327. */
  6328. public static function assertNothingDispatched()
  6329. {
  6330. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6331. $instance->assertNothingDispatched();
  6332. }
  6333. /**
  6334. * Get all of the events matching a truth-test callback.
  6335. *
  6336. * @param string $event
  6337. * @param callable|null $callback
  6338. * @return \Illuminate\Support\Collection
  6339. * @static
  6340. */
  6341. public static function dispatched($event, $callback = null)
  6342. {
  6343. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6344. return $instance->dispatched($event, $callback);
  6345. }
  6346. /**
  6347. * Determine if the given event has been dispatched.
  6348. *
  6349. * @param string $event
  6350. * @return bool
  6351. * @static
  6352. */
  6353. public static function hasDispatched($event)
  6354. {
  6355. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6356. return $instance->hasDispatched($event);
  6357. }
  6358. }
  6359. /**
  6360. *
  6361. *
  6362. * @see \Illuminate\Filesystem\Filesystem
  6363. */
  6364. class File {
  6365. /**
  6366. * Determine if a file or directory exists.
  6367. *
  6368. * @param string $path
  6369. * @return bool
  6370. * @static
  6371. */
  6372. public static function exists($path)
  6373. {
  6374. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6375. return $instance->exists($path);
  6376. }
  6377. /**
  6378. * Determine if a file or directory is missing.
  6379. *
  6380. * @param string $path
  6381. * @return bool
  6382. * @static
  6383. */
  6384. public static function missing($path)
  6385. {
  6386. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6387. return $instance->missing($path);
  6388. }
  6389. /**
  6390. * Get the contents of a file.
  6391. *
  6392. * @param string $path
  6393. * @param bool $lock
  6394. * @return string
  6395. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6396. * @static
  6397. */
  6398. public static function get($path, $lock = false)
  6399. {
  6400. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6401. return $instance->get($path, $lock);
  6402. }
  6403. /**
  6404. * Get contents of a file with shared access.
  6405. *
  6406. * @param string $path
  6407. * @return string
  6408. * @static
  6409. */
  6410. public static function sharedGet($path)
  6411. {
  6412. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6413. return $instance->sharedGet($path);
  6414. }
  6415. /**
  6416. * Get the returned value of a file.
  6417. *
  6418. * @param string $path
  6419. * @param array $data
  6420. * @return mixed
  6421. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6422. * @static
  6423. */
  6424. public static function getRequire($path, $data = [])
  6425. {
  6426. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6427. return $instance->getRequire($path, $data);
  6428. }
  6429. /**
  6430. * Require the given file once.
  6431. *
  6432. * @param string $path
  6433. * @param array $data
  6434. * @return mixed
  6435. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6436. * @static
  6437. */
  6438. public static function requireOnce($path, $data = [])
  6439. {
  6440. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6441. return $instance->requireOnce($path, $data);
  6442. }
  6443. /**
  6444. * Get the contents of a file one line at a time.
  6445. *
  6446. * @param string $path
  6447. * @return \Illuminate\Support\LazyCollection
  6448. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6449. * @static
  6450. */
  6451. public static function lines($path)
  6452. {
  6453. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6454. return $instance->lines($path);
  6455. }
  6456. /**
  6457. * Get the hash of the file at the given path.
  6458. *
  6459. * @param string $path
  6460. * @param string $algorithm
  6461. * @return string
  6462. * @static
  6463. */
  6464. public static function hash($path, $algorithm = 'md5')
  6465. {
  6466. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6467. return $instance->hash($path, $algorithm);
  6468. }
  6469. /**
  6470. * Write the contents of a file.
  6471. *
  6472. * @param string $path
  6473. * @param string $contents
  6474. * @param bool $lock
  6475. * @return int|bool
  6476. * @static
  6477. */
  6478. public static function put($path, $contents, $lock = false)
  6479. {
  6480. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6481. return $instance->put($path, $contents, $lock);
  6482. }
  6483. /**
  6484. * Write the contents of a file, replacing it atomically if it already exists.
  6485. *
  6486. * @param string $path
  6487. * @param string $content
  6488. * @return void
  6489. * @static
  6490. */
  6491. public static function replace($path, $content)
  6492. {
  6493. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6494. $instance->replace($path, $content);
  6495. }
  6496. /**
  6497. * Replace a given string within a given file.
  6498. *
  6499. * @param array|string $search
  6500. * @param array|string $replace
  6501. * @param string $path
  6502. * @return void
  6503. * @static
  6504. */
  6505. public static function replaceInFile($search, $replace, $path)
  6506. {
  6507. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6508. $instance->replaceInFile($search, $replace, $path);
  6509. }
  6510. /**
  6511. * Prepend to a file.
  6512. *
  6513. * @param string $path
  6514. * @param string $data
  6515. * @return int
  6516. * @static
  6517. */
  6518. public static function prepend($path, $data)
  6519. {
  6520. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6521. return $instance->prepend($path, $data);
  6522. }
  6523. /**
  6524. * Append to a file.
  6525. *
  6526. * @param string $path
  6527. * @param string $data
  6528. * @return int
  6529. * @static
  6530. */
  6531. public static function append($path, $data)
  6532. {
  6533. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6534. return $instance->append($path, $data);
  6535. }
  6536. /**
  6537. * Get or set UNIX mode of a file or directory.
  6538. *
  6539. * @param string $path
  6540. * @param int|null $mode
  6541. * @return mixed
  6542. * @static
  6543. */
  6544. public static function chmod($path, $mode = null)
  6545. {
  6546. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6547. return $instance->chmod($path, $mode);
  6548. }
  6549. /**
  6550. * Delete the file at a given path.
  6551. *
  6552. * @param string|array $paths
  6553. * @return bool
  6554. * @static
  6555. */
  6556. public static function delete($paths)
  6557. {
  6558. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6559. return $instance->delete($paths);
  6560. }
  6561. /**
  6562. * Move a file to a new location.
  6563. *
  6564. * @param string $path
  6565. * @param string $target
  6566. * @return bool
  6567. * @static
  6568. */
  6569. public static function move($path, $target)
  6570. {
  6571. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6572. return $instance->move($path, $target);
  6573. }
  6574. /**
  6575. * Copy a file to a new location.
  6576. *
  6577. * @param string $path
  6578. * @param string $target
  6579. * @return bool
  6580. * @static
  6581. */
  6582. public static function copy($path, $target)
  6583. {
  6584. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6585. return $instance->copy($path, $target);
  6586. }
  6587. /**
  6588. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  6589. *
  6590. * @param string $target
  6591. * @param string $link
  6592. * @return void
  6593. * @static
  6594. */
  6595. public static function link($target, $link)
  6596. {
  6597. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6598. $instance->link($target, $link);
  6599. }
  6600. /**
  6601. * Create a relative symlink to the target file or directory.
  6602. *
  6603. * @param string $target
  6604. * @param string $link
  6605. * @return void
  6606. * @throws \RuntimeException
  6607. * @static
  6608. */
  6609. public static function relativeLink($target, $link)
  6610. {
  6611. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6612. $instance->relativeLink($target, $link);
  6613. }
  6614. /**
  6615. * Extract the file name from a file path.
  6616. *
  6617. * @param string $path
  6618. * @return string
  6619. * @static
  6620. */
  6621. public static function name($path)
  6622. {
  6623. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6624. return $instance->name($path);
  6625. }
  6626. /**
  6627. * Extract the trailing name component from a file path.
  6628. *
  6629. * @param string $path
  6630. * @return string
  6631. * @static
  6632. */
  6633. public static function basename($path)
  6634. {
  6635. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6636. return $instance->basename($path);
  6637. }
  6638. /**
  6639. * Extract the parent directory from a file path.
  6640. *
  6641. * @param string $path
  6642. * @return string
  6643. * @static
  6644. */
  6645. public static function dirname($path)
  6646. {
  6647. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6648. return $instance->dirname($path);
  6649. }
  6650. /**
  6651. * Extract the file extension from a file path.
  6652. *
  6653. * @param string $path
  6654. * @return string
  6655. * @static
  6656. */
  6657. public static function extension($path)
  6658. {
  6659. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6660. return $instance->extension($path);
  6661. }
  6662. /**
  6663. * Guess the file extension from the mime-type of a given file.
  6664. *
  6665. * @param string $path
  6666. * @return string|null
  6667. * @throws \RuntimeException
  6668. * @static
  6669. */
  6670. public static function guessExtension($path)
  6671. {
  6672. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6673. return $instance->guessExtension($path);
  6674. }
  6675. /**
  6676. * Get the file type of a given file.
  6677. *
  6678. * @param string $path
  6679. * @return string
  6680. * @static
  6681. */
  6682. public static function type($path)
  6683. {
  6684. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6685. return $instance->type($path);
  6686. }
  6687. /**
  6688. * Get the mime-type of a given file.
  6689. *
  6690. * @param string $path
  6691. * @return string|false
  6692. * @static
  6693. */
  6694. public static function mimeType($path)
  6695. {
  6696. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6697. return $instance->mimeType($path);
  6698. }
  6699. /**
  6700. * Get the file size of a given file.
  6701. *
  6702. * @param string $path
  6703. * @return int
  6704. * @static
  6705. */
  6706. public static function size($path)
  6707. {
  6708. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6709. return $instance->size($path);
  6710. }
  6711. /**
  6712. * Get the file's last modification time.
  6713. *
  6714. * @param string $path
  6715. * @return int
  6716. * @static
  6717. */
  6718. public static function lastModified($path)
  6719. {
  6720. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6721. return $instance->lastModified($path);
  6722. }
  6723. /**
  6724. * Determine if the given path is a directory.
  6725. *
  6726. * @param string $directory
  6727. * @return bool
  6728. * @static
  6729. */
  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. */
  6743. public static function isEmptyDirectory($directory, $ignoreDotFiles = false)
  6744. {
  6745. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6746. return $instance->isEmptyDirectory($directory, $ignoreDotFiles);
  6747. }
  6748. /**
  6749. * Determine if the given path is readable.
  6750. *
  6751. * @param string $path
  6752. * @return bool
  6753. * @static
  6754. */
  6755. public static function isReadable($path)
  6756. {
  6757. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6758. return $instance->isReadable($path);
  6759. }
  6760. /**
  6761. * Determine if the given path is writable.
  6762. *
  6763. * @param string $path
  6764. * @return bool
  6765. * @static
  6766. */
  6767. public static function isWritable($path)
  6768. {
  6769. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6770. return $instance->isWritable($path);
  6771. }
  6772. /**
  6773. * Determine if two files are the same by comparing their hashes.
  6774. *
  6775. * @param string $firstFile
  6776. * @param string $secondFile
  6777. * @return bool
  6778. * @static
  6779. */
  6780. public static function hasSameHash($firstFile, $secondFile)
  6781. {
  6782. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6783. return $instance->hasSameHash($firstFile, $secondFile);
  6784. }
  6785. /**
  6786. * Determine if the given path is a file.
  6787. *
  6788. * @param string $file
  6789. * @return bool
  6790. * @static
  6791. */
  6792. public static function isFile($file)
  6793. {
  6794. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6795. return $instance->isFile($file);
  6796. }
  6797. /**
  6798. * Find path names matching a given pattern.
  6799. *
  6800. * @param string $pattern
  6801. * @param int $flags
  6802. * @return array
  6803. * @static
  6804. */
  6805. public static function glob($pattern, $flags = 0)
  6806. {
  6807. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6808. return $instance->glob($pattern, $flags);
  6809. }
  6810. /**
  6811. * Get an array of all files in a directory.
  6812. *
  6813. * @param string $directory
  6814. * @param bool $hidden
  6815. * @return \Symfony\Component\Finder\SplFileInfo[]
  6816. * @static
  6817. */
  6818. public static function files($directory, $hidden = false)
  6819. {
  6820. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6821. return $instance->files($directory, $hidden);
  6822. }
  6823. /**
  6824. * Get all of the files from the given directory (recursive).
  6825. *
  6826. * @param string $directory
  6827. * @param bool $hidden
  6828. * @return \Symfony\Component\Finder\SplFileInfo[]
  6829. * @static
  6830. */
  6831. public static function allFiles($directory, $hidden = false)
  6832. {
  6833. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6834. return $instance->allFiles($directory, $hidden);
  6835. }
  6836. /**
  6837. * Get all of the directories within a given directory.
  6838. *
  6839. * @param string $directory
  6840. * @return array
  6841. * @static
  6842. */
  6843. public static function directories($directory)
  6844. {
  6845. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6846. return $instance->directories($directory);
  6847. }
  6848. /**
  6849. * Ensure a directory exists.
  6850. *
  6851. * @param string $path
  6852. * @param int $mode
  6853. * @param bool $recursive
  6854. * @return void
  6855. * @static
  6856. */
  6857. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  6858. {
  6859. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6860. $instance->ensureDirectoryExists($path, $mode, $recursive);
  6861. }
  6862. /**
  6863. * Create a directory.
  6864. *
  6865. * @param string $path
  6866. * @param int $mode
  6867. * @param bool $recursive
  6868. * @param bool $force
  6869. * @return bool
  6870. * @static
  6871. */
  6872. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  6873. {
  6874. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6875. return $instance->makeDirectory($path, $mode, $recursive, $force);
  6876. }
  6877. /**
  6878. * Move a directory.
  6879. *
  6880. * @param string $from
  6881. * @param string $to
  6882. * @param bool $overwrite
  6883. * @return bool
  6884. * @static
  6885. */
  6886. public static function moveDirectory($from, $to, $overwrite = false)
  6887. {
  6888. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6889. return $instance->moveDirectory($from, $to, $overwrite);
  6890. }
  6891. /**
  6892. * Copy a directory from one location to another.
  6893. *
  6894. * @param string $directory
  6895. * @param string $destination
  6896. * @param int|null $options
  6897. * @return bool
  6898. * @static
  6899. */
  6900. public static function copyDirectory($directory, $destination, $options = null)
  6901. {
  6902. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6903. return $instance->copyDirectory($directory, $destination, $options);
  6904. }
  6905. /**
  6906. * Recursively delete a directory.
  6907. *
  6908. * The directory itself may be optionally preserved.
  6909. *
  6910. * @param string $directory
  6911. * @param bool $preserve
  6912. * @return bool
  6913. * @static
  6914. */
  6915. public static function deleteDirectory($directory, $preserve = false)
  6916. {
  6917. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6918. return $instance->deleteDirectory($directory, $preserve);
  6919. }
  6920. /**
  6921. * Remove all of the directories within a given directory.
  6922. *
  6923. * @param string $directory
  6924. * @return bool
  6925. * @static
  6926. */
  6927. public static function deleteDirectories($directory)
  6928. {
  6929. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6930. return $instance->deleteDirectories($directory);
  6931. }
  6932. /**
  6933. * Empty the specified directory of all files and folders.
  6934. *
  6935. * @param string $directory
  6936. * @return bool
  6937. * @static
  6938. */
  6939. public static function cleanDirectory($directory)
  6940. {
  6941. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6942. return $instance->cleanDirectory($directory);
  6943. }
  6944. /**
  6945. * Apply the callback if the given "value" is (or resolves to) truthy.
  6946. *
  6947. * @template TWhenParameter
  6948. * @template TWhenReturnType
  6949. * @param \Illuminate\Filesystem\(\Closure($this): TWhenParameter)|TWhenParameter|null $value
  6950. * @param \Illuminate\Filesystem\(callable($this, TWhenParameter): TWhenReturnType)|null $callback
  6951. * @param \Illuminate\Filesystem\(callable($this, TWhenParameter): TWhenReturnType)|null $default
  6952. * @return $this|\Illuminate\Filesystem\TWhenReturnType
  6953. * @static
  6954. */
  6955. public static function when($value = null, $callback = null, $default = null)
  6956. {
  6957. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6958. return $instance->when($value, $callback, $default);
  6959. }
  6960. /**
  6961. * Apply the callback if the given "value" is (or resolves to) falsy.
  6962. *
  6963. * @template TUnlessParameter
  6964. * @template TUnlessReturnType
  6965. * @param \Illuminate\Filesystem\(\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  6966. * @param \Illuminate\Filesystem\(callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  6967. * @param \Illuminate\Filesystem\(callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  6968. * @return $this|\Illuminate\Filesystem\TUnlessReturnType
  6969. * @static
  6970. */
  6971. public static function unless($value = null, $callback = null, $default = null)
  6972. {
  6973. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6974. return $instance->unless($value, $callback, $default);
  6975. }
  6976. /**
  6977. * Register a custom macro.
  6978. *
  6979. * @param string $name
  6980. * @param object|callable $macro
  6981. * @return void
  6982. * @static
  6983. */
  6984. public static function macro($name, $macro)
  6985. {
  6986. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  6987. }
  6988. /**
  6989. * Mix another object into the class.
  6990. *
  6991. * @param object $mixin
  6992. * @param bool $replace
  6993. * @return void
  6994. * @throws \ReflectionException
  6995. * @static
  6996. */
  6997. public static function mixin($mixin, $replace = true)
  6998. {
  6999. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  7000. }
  7001. /**
  7002. * Checks if macro is registered.
  7003. *
  7004. * @param string $name
  7005. * @return bool
  7006. * @static
  7007. */
  7008. public static function hasMacro($name)
  7009. {
  7010. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  7011. }
  7012. /**
  7013. * Flush the existing macros.
  7014. *
  7015. * @return void
  7016. * @static
  7017. */
  7018. public static function flushMacros()
  7019. {
  7020. \Illuminate\Filesystem\Filesystem::flushMacros();
  7021. }
  7022. }
  7023. /**
  7024. *
  7025. *
  7026. * @see \Illuminate\Contracts\Auth\Access\Gate
  7027. */
  7028. class Gate {
  7029. /**
  7030. * Determine if a given ability has been defined.
  7031. *
  7032. * @param string|array $ability
  7033. * @return bool
  7034. * @static
  7035. */
  7036. public static function has($ability)
  7037. {
  7038. /** @var \Illuminate\Auth\Access\Gate $instance */
  7039. return $instance->has($ability);
  7040. }
  7041. /**
  7042. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
  7043. *
  7044. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  7045. * @param string|null $message
  7046. * @param string|null $code
  7047. * @return \Illuminate\Auth\Access\Response
  7048. * @throws \Illuminate\Auth\Access\AuthorizationException
  7049. * @static
  7050. */
  7051. public static function allowIf($condition, $message = null, $code = null)
  7052. {
  7053. /** @var \Illuminate\Auth\Access\Gate $instance */
  7054. return $instance->allowIf($condition, $message, $code);
  7055. }
  7056. /**
  7057. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
  7058. *
  7059. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  7060. * @param string|null $message
  7061. * @param string|null $code
  7062. * @return \Illuminate\Auth\Access\Response
  7063. * @throws \Illuminate\Auth\Access\AuthorizationException
  7064. * @static
  7065. */
  7066. public static function denyIf($condition, $message = null, $code = null)
  7067. {
  7068. /** @var \Illuminate\Auth\Access\Gate $instance */
  7069. return $instance->denyIf($condition, $message, $code);
  7070. }
  7071. /**
  7072. * Define a new ability.
  7073. *
  7074. * @param string $ability
  7075. * @param callable|array|string $callback
  7076. * @return \Illuminate\Auth\Access\Gate
  7077. * @throws \InvalidArgumentException
  7078. * @static
  7079. */
  7080. public static function define($ability, $callback)
  7081. {
  7082. /** @var \Illuminate\Auth\Access\Gate $instance */
  7083. return $instance->define($ability, $callback);
  7084. }
  7085. /**
  7086. * Define abilities for a resource.
  7087. *
  7088. * @param string $name
  7089. * @param string $class
  7090. * @param array|null $abilities
  7091. * @return \Illuminate\Auth\Access\Gate
  7092. * @static
  7093. */
  7094. public static function resource($name, $class, $abilities = null)
  7095. {
  7096. /** @var \Illuminate\Auth\Access\Gate $instance */
  7097. return $instance->resource($name, $class, $abilities);
  7098. }
  7099. /**
  7100. * Define a policy class for a given class type.
  7101. *
  7102. * @param string $class
  7103. * @param string $policy
  7104. * @return \Illuminate\Auth\Access\Gate
  7105. * @static
  7106. */
  7107. public static function policy($class, $policy)
  7108. {
  7109. /** @var \Illuminate\Auth\Access\Gate $instance */
  7110. return $instance->policy($class, $policy);
  7111. }
  7112. /**
  7113. * Register a callback to run before all Gate checks.
  7114. *
  7115. * @param callable $callback
  7116. * @return \Illuminate\Auth\Access\Gate
  7117. * @static
  7118. */
  7119. public static function before($callback)
  7120. {
  7121. /** @var \Illuminate\Auth\Access\Gate $instance */
  7122. return $instance->before($callback);
  7123. }
  7124. /**
  7125. * Register a callback to run after all Gate checks.
  7126. *
  7127. * @param callable $callback
  7128. * @return \Illuminate\Auth\Access\Gate
  7129. * @static
  7130. */
  7131. public static function after($callback)
  7132. {
  7133. /** @var \Illuminate\Auth\Access\Gate $instance */
  7134. return $instance->after($callback);
  7135. }
  7136. /**
  7137. * Determine if the given ability should be granted for the current user.
  7138. *
  7139. * @param string $ability
  7140. * @param array|mixed $arguments
  7141. * @return bool
  7142. * @static
  7143. */
  7144. public static function allows($ability, $arguments = [])
  7145. {
  7146. /** @var \Illuminate\Auth\Access\Gate $instance */
  7147. return $instance->allows($ability, $arguments);
  7148. }
  7149. /**
  7150. * Determine if the given ability should be denied for the current user.
  7151. *
  7152. * @param string $ability
  7153. * @param array|mixed $arguments
  7154. * @return bool
  7155. * @static
  7156. */
  7157. public static function denies($ability, $arguments = [])
  7158. {
  7159. /** @var \Illuminate\Auth\Access\Gate $instance */
  7160. return $instance->denies($ability, $arguments);
  7161. }
  7162. /**
  7163. * Determine if all of the given abilities should be granted for the current user.
  7164. *
  7165. * @param \Illuminate\Auth\Access\iterable|string $abilities
  7166. * @param array|mixed $arguments
  7167. * @return bool
  7168. * @static
  7169. */
  7170. public static function check($abilities, $arguments = [])
  7171. {
  7172. /** @var \Illuminate\Auth\Access\Gate $instance */
  7173. return $instance->check($abilities, $arguments);
  7174. }
  7175. /**
  7176. * Determine if any one of the given abilities should be granted for the current user.
  7177. *
  7178. * @param \Illuminate\Auth\Access\iterable|string $abilities
  7179. * @param array|mixed $arguments
  7180. * @return bool
  7181. * @static
  7182. */
  7183. public static function any($abilities, $arguments = [])
  7184. {
  7185. /** @var \Illuminate\Auth\Access\Gate $instance */
  7186. return $instance->any($abilities, $arguments);
  7187. }
  7188. /**
  7189. * Determine if all of the given abilities should be denied for the current user.
  7190. *
  7191. * @param \Illuminate\Auth\Access\iterable|string $abilities
  7192. * @param array|mixed $arguments
  7193. * @return bool
  7194. * @static
  7195. */
  7196. public static function none($abilities, $arguments = [])
  7197. {
  7198. /** @var \Illuminate\Auth\Access\Gate $instance */
  7199. return $instance->none($abilities, $arguments);
  7200. }
  7201. /**
  7202. * Determine if the given ability should be granted for the current user.
  7203. *
  7204. * @param string $ability
  7205. * @param array|mixed $arguments
  7206. * @return \Illuminate\Auth\Access\Response
  7207. * @throws \Illuminate\Auth\Access\AuthorizationException
  7208. * @static
  7209. */
  7210. public static function authorize($ability, $arguments = [])
  7211. {
  7212. /** @var \Illuminate\Auth\Access\Gate $instance */
  7213. return $instance->authorize($ability, $arguments);
  7214. }
  7215. /**
  7216. * Inspect the user for the given ability.
  7217. *
  7218. * @param string $ability
  7219. * @param array|mixed $arguments
  7220. * @return \Illuminate\Auth\Access\Response
  7221. * @static
  7222. */
  7223. public static function inspect($ability, $arguments = [])
  7224. {
  7225. /** @var \Illuminate\Auth\Access\Gate $instance */
  7226. return $instance->inspect($ability, $arguments);
  7227. }
  7228. /**
  7229. * Get the raw result from the authorization callback.
  7230. *
  7231. * @param string $ability
  7232. * @param array|mixed $arguments
  7233. * @return mixed
  7234. * @throws \Illuminate\Auth\Access\AuthorizationException
  7235. * @static
  7236. */
  7237. public static function raw($ability, $arguments = [])
  7238. {
  7239. /** @var \Illuminate\Auth\Access\Gate $instance */
  7240. return $instance->raw($ability, $arguments);
  7241. }
  7242. /**
  7243. * Get a policy instance for a given class.
  7244. *
  7245. * @param object|string $class
  7246. * @return mixed
  7247. * @static
  7248. */
  7249. public static function getPolicyFor($class)
  7250. {
  7251. /** @var \Illuminate\Auth\Access\Gate $instance */
  7252. return $instance->getPolicyFor($class);
  7253. }
  7254. /**
  7255. * Specify a callback to be used to guess policy names.
  7256. *
  7257. * @param callable $callback
  7258. * @return \Illuminate\Auth\Access\Gate
  7259. * @static
  7260. */
  7261. public static function guessPolicyNamesUsing($callback)
  7262. {
  7263. /** @var \Illuminate\Auth\Access\Gate $instance */
  7264. return $instance->guessPolicyNamesUsing($callback);
  7265. }
  7266. /**
  7267. * Build a policy class instance of the given type.
  7268. *
  7269. * @param object|string $class
  7270. * @return mixed
  7271. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  7272. * @static
  7273. */
  7274. public static function resolvePolicy($class)
  7275. {
  7276. /** @var \Illuminate\Auth\Access\Gate $instance */
  7277. return $instance->resolvePolicy($class);
  7278. }
  7279. /**
  7280. * Get a gate instance for the given user.
  7281. *
  7282. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  7283. * @return static
  7284. * @static
  7285. */
  7286. public static function forUser($user)
  7287. {
  7288. /** @var \Illuminate\Auth\Access\Gate $instance */
  7289. return $instance->forUser($user);
  7290. }
  7291. /**
  7292. * Get all of the defined abilities.
  7293. *
  7294. * @return array
  7295. * @static
  7296. */
  7297. public static function abilities()
  7298. {
  7299. /** @var \Illuminate\Auth\Access\Gate $instance */
  7300. return $instance->abilities();
  7301. }
  7302. /**
  7303. * Get all of the defined policies.
  7304. *
  7305. * @return array
  7306. * @static
  7307. */
  7308. public static function policies()
  7309. {
  7310. /** @var \Illuminate\Auth\Access\Gate $instance */
  7311. return $instance->policies();
  7312. }
  7313. /**
  7314. * Set the container instance used by the gate.
  7315. *
  7316. * @param \Illuminate\Contracts\Container\Container $container
  7317. * @return \Illuminate\Auth\Access\Gate
  7318. * @static
  7319. */
  7320. public static function setContainer($container)
  7321. {
  7322. /** @var \Illuminate\Auth\Access\Gate $instance */
  7323. return $instance->setContainer($container);
  7324. }
  7325. /**
  7326. * Deny with a HTTP status code.
  7327. *
  7328. * @param int $status
  7329. * @param \Illuminate\Auth\Access\?string $message
  7330. * @param \Illuminate\Auth\Access\?int $code
  7331. * @return \Illuminate\Auth\Access\Response
  7332. * @static
  7333. */
  7334. public static function denyWithStatus($status, $message = null, $code = null)
  7335. {
  7336. /** @var \Illuminate\Auth\Access\Gate $instance */
  7337. return $instance->denyWithStatus($status, $message, $code);
  7338. }
  7339. /**
  7340. * Deny with a 404 HTTP status code.
  7341. *
  7342. * @param \Illuminate\Auth\Access\?string $message
  7343. * @param \Illuminate\Auth\Access\?int $code
  7344. * @return \Illuminate\Auth\Access\Response
  7345. * @static
  7346. */
  7347. public static function denyAsNotFound($message = null, $code = null)
  7348. {
  7349. /** @var \Illuminate\Auth\Access\Gate $instance */
  7350. return $instance->denyAsNotFound($message, $code);
  7351. }
  7352. }
  7353. /**
  7354. *
  7355. *
  7356. * @see \Illuminate\Hashing\HashManager
  7357. */
  7358. class Hash {
  7359. /**
  7360. * Create an instance of the Bcrypt hash Driver.
  7361. *
  7362. * @return \Illuminate\Hashing\BcryptHasher
  7363. * @static
  7364. */
  7365. public static function createBcryptDriver()
  7366. {
  7367. /** @var \Illuminate\Hashing\HashManager $instance */
  7368. return $instance->createBcryptDriver();
  7369. }
  7370. /**
  7371. * Create an instance of the Argon2i hash Driver.
  7372. *
  7373. * @return \Illuminate\Hashing\ArgonHasher
  7374. * @static
  7375. */
  7376. public static function createArgonDriver()
  7377. {
  7378. /** @var \Illuminate\Hashing\HashManager $instance */
  7379. return $instance->createArgonDriver();
  7380. }
  7381. /**
  7382. * Create an instance of the Argon2id hash Driver.
  7383. *
  7384. * @return \Illuminate\Hashing\Argon2IdHasher
  7385. * @static
  7386. */
  7387. public static function createArgon2idDriver()
  7388. {
  7389. /** @var \Illuminate\Hashing\HashManager $instance */
  7390. return $instance->createArgon2idDriver();
  7391. }
  7392. /**
  7393. * Get information about the given hashed value.
  7394. *
  7395. * @param string $hashedValue
  7396. * @return array
  7397. * @static
  7398. */
  7399. public static function info($hashedValue)
  7400. {
  7401. /** @var \Illuminate\Hashing\HashManager $instance */
  7402. return $instance->info($hashedValue);
  7403. }
  7404. /**
  7405. * Hash the given value.
  7406. *
  7407. * @param string $value
  7408. * @param array $options
  7409. * @return string
  7410. * @static
  7411. */
  7412. public static function make($value, $options = [])
  7413. {
  7414. /** @var \Illuminate\Hashing\HashManager $instance */
  7415. return $instance->make($value, $options);
  7416. }
  7417. /**
  7418. * Check the given plain value against a hash.
  7419. *
  7420. * @param string $value
  7421. * @param string $hashedValue
  7422. * @param array $options
  7423. * @return bool
  7424. * @static
  7425. */
  7426. public static function check($value, $hashedValue, $options = [])
  7427. {
  7428. /** @var \Illuminate\Hashing\HashManager $instance */
  7429. return $instance->check($value, $hashedValue, $options);
  7430. }
  7431. /**
  7432. * Check if the given hash has been hashed using the given options.
  7433. *
  7434. * @param string $hashedValue
  7435. * @param array $options
  7436. * @return bool
  7437. * @static
  7438. */
  7439. public static function needsRehash($hashedValue, $options = [])
  7440. {
  7441. /** @var \Illuminate\Hashing\HashManager $instance */
  7442. return $instance->needsRehash($hashedValue, $options);
  7443. }
  7444. /**
  7445. * Get the default driver name.
  7446. *
  7447. * @return string
  7448. * @static
  7449. */
  7450. public static function getDefaultDriver()
  7451. {
  7452. /** @var \Illuminate\Hashing\HashManager $instance */
  7453. return $instance->getDefaultDriver();
  7454. }
  7455. /**
  7456. * Get a driver instance.
  7457. *
  7458. * @param string|null $driver
  7459. * @return mixed
  7460. * @throws \InvalidArgumentException
  7461. * @static
  7462. */
  7463. public static function driver($driver = null)
  7464. { //Method inherited from \Illuminate\Support\Manager
  7465. /** @var \Illuminate\Hashing\HashManager $instance */
  7466. return $instance->driver($driver);
  7467. }
  7468. /**
  7469. * Register a custom driver creator Closure.
  7470. *
  7471. * @param string $driver
  7472. * @param \Closure $callback
  7473. * @return \Illuminate\Hashing\HashManager
  7474. * @static
  7475. */
  7476. public static function extend($driver, $callback)
  7477. { //Method inherited from \Illuminate\Support\Manager
  7478. /** @var \Illuminate\Hashing\HashManager $instance */
  7479. return $instance->extend($driver, $callback);
  7480. }
  7481. /**
  7482. * Get all of the created "drivers".
  7483. *
  7484. * @return array
  7485. * @static
  7486. */
  7487. public static function getDrivers()
  7488. { //Method inherited from \Illuminate\Support\Manager
  7489. /** @var \Illuminate\Hashing\HashManager $instance */
  7490. return $instance->getDrivers();
  7491. }
  7492. /**
  7493. * Get the container instance used by the manager.
  7494. *
  7495. * @return \Illuminate\Contracts\Container\Container
  7496. * @static
  7497. */
  7498. public static function getContainer()
  7499. { //Method inherited from \Illuminate\Support\Manager
  7500. /** @var \Illuminate\Hashing\HashManager $instance */
  7501. return $instance->getContainer();
  7502. }
  7503. /**
  7504. * Set the container instance used by the manager.
  7505. *
  7506. * @param \Illuminate\Contracts\Container\Container $container
  7507. * @return \Illuminate\Hashing\HashManager
  7508. * @static
  7509. */
  7510. public static function setContainer($container)
  7511. { //Method inherited from \Illuminate\Support\Manager
  7512. /** @var \Illuminate\Hashing\HashManager $instance */
  7513. return $instance->setContainer($container);
  7514. }
  7515. /**
  7516. * Forget all of the resolved driver instances.
  7517. *
  7518. * @return \Illuminate\Hashing\HashManager
  7519. * @static
  7520. */
  7521. public static function forgetDrivers()
  7522. { //Method inherited from \Illuminate\Support\Manager
  7523. /** @var \Illuminate\Hashing\HashManager $instance */
  7524. return $instance->forgetDrivers();
  7525. }
  7526. }
  7527. /**
  7528. *
  7529. *
  7530. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  7531. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  7532. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  7533. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  7534. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  7535. * @method static \Illuminate\Http\Client\PendingRequest async()
  7536. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string|resource $contents = '', string|null $filename = null, array $headers = [])
  7537. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  7538. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  7539. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  7540. * @method static \Illuminate\Http\Client\PendingRequest connectTimeout(int $seconds)
  7541. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  7542. * @method static \Illuminate\Http\Client\PendingRequest dd()
  7543. * @method static \Illuminate\Http\Client\PendingRequest dump()
  7544. * @method static \Illuminate\Http\Client\PendingRequest maxRedirects(int $max)
  7545. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleepMilliseconds = 0, ?callable $when = null, bool $throw = true)
  7546. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  7547. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  7548. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  7549. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  7550. * @method static \Illuminate\Http\Client\PendingRequest withBody(resource|string $content, string $contentType)
  7551. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  7552. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  7553. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  7554. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  7555. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  7556. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  7557. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string $userAgent)
  7558. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  7559. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  7560. * @method static \Illuminate\Http\Client\PendingRequest throw(callable $callback = null)
  7561. * @method static \Illuminate\Http\Client\PendingRequest throwIf($condition)
  7562. * @method \Illuminate\Http\Client\PendingRequest throwUnless($condition)
  7563. * @method static array pool(callable $callback)
  7564. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  7565. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  7566. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  7567. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  7568. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  7569. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  7570. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  7571. * @see \Illuminate\Http\Client\Factory
  7572. */
  7573. class Http {
  7574. /**
  7575. * Create a new response instance for use during stubbing.
  7576. *
  7577. * @param array|string|null $body
  7578. * @param int $status
  7579. * @param array $headers
  7580. * @return \GuzzleHttp\Promise\PromiseInterface
  7581. * @static
  7582. */
  7583. public static function response($body = null, $status = 200, $headers = [])
  7584. {
  7585. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  7586. }
  7587. /**
  7588. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  7589. *
  7590. * @param array $responses
  7591. * @return \Illuminate\Http\Client\ResponseSequence
  7592. * @static
  7593. */
  7594. public static function sequence($responses = [])
  7595. {
  7596. /** @var \Illuminate\Http\Client\Factory $instance */
  7597. return $instance->sequence($responses);
  7598. }
  7599. /**
  7600. * Register a stub callable that will intercept requests and be able to return stub responses.
  7601. *
  7602. * @param callable|array|null $callback
  7603. * @return \Illuminate\Http\Client\Factory
  7604. * @static
  7605. */
  7606. public static function fake($callback = null)
  7607. {
  7608. /** @var \Illuminate\Http\Client\Factory $instance */
  7609. return $instance->fake($callback);
  7610. }
  7611. /**
  7612. * Register a response sequence for the given URL pattern.
  7613. *
  7614. * @param string $url
  7615. * @return \Illuminate\Http\Client\ResponseSequence
  7616. * @static
  7617. */
  7618. public static function fakeSequence($url = '*')
  7619. {
  7620. /** @var \Illuminate\Http\Client\Factory $instance */
  7621. return $instance->fakeSequence($url);
  7622. }
  7623. /**
  7624. * Stub the given URL using the given callback.
  7625. *
  7626. * @param string $url
  7627. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  7628. * @return \Illuminate\Http\Client\Factory
  7629. * @static
  7630. */
  7631. public static function stubUrl($url, $callback)
  7632. {
  7633. /** @var \Illuminate\Http\Client\Factory $instance */
  7634. return $instance->stubUrl($url, $callback);
  7635. }
  7636. /**
  7637. * Indicate that an exception should be thrown if any request is not faked.
  7638. *
  7639. * @param bool $prevent
  7640. * @return \Illuminate\Http\Client\Factory
  7641. * @static
  7642. */
  7643. public static function preventStrayRequests($prevent = true)
  7644. {
  7645. /** @var \Illuminate\Http\Client\Factory $instance */
  7646. return $instance->preventStrayRequests($prevent);
  7647. }
  7648. /**
  7649. * Indicate that an exception should not be thrown if any request is not faked.
  7650. *
  7651. * @return \Illuminate\Http\Client\Factory
  7652. * @static
  7653. */
  7654. public static function allowStrayRequests()
  7655. {
  7656. /** @var \Illuminate\Http\Client\Factory $instance */
  7657. return $instance->allowStrayRequests();
  7658. }
  7659. /**
  7660. * Record a request response pair.
  7661. *
  7662. * @param \Illuminate\Http\Client\Request $request
  7663. * @param \Illuminate\Http\Client\Response $response
  7664. * @return void
  7665. * @static
  7666. */
  7667. public static function recordRequestResponsePair($request, $response)
  7668. {
  7669. /** @var \Illuminate\Http\Client\Factory $instance */
  7670. $instance->recordRequestResponsePair($request, $response);
  7671. }
  7672. /**
  7673. * Assert that a request / response pair was recorded matching a given truth test.
  7674. *
  7675. * @param callable $callback
  7676. * @return void
  7677. * @static
  7678. */
  7679. public static function assertSent($callback)
  7680. {
  7681. /** @var \Illuminate\Http\Client\Factory $instance */
  7682. $instance->assertSent($callback);
  7683. }
  7684. /**
  7685. * Assert that the given request was sent in the given order.
  7686. *
  7687. * @param array $callbacks
  7688. * @return void
  7689. * @static
  7690. */
  7691. public static function assertSentInOrder($callbacks)
  7692. {
  7693. /** @var \Illuminate\Http\Client\Factory $instance */
  7694. $instance->assertSentInOrder($callbacks);
  7695. }
  7696. /**
  7697. * Assert that a request / response pair was not recorded matching a given truth test.
  7698. *
  7699. * @param callable $callback
  7700. * @return void
  7701. * @static
  7702. */
  7703. public static function assertNotSent($callback)
  7704. {
  7705. /** @var \Illuminate\Http\Client\Factory $instance */
  7706. $instance->assertNotSent($callback);
  7707. }
  7708. /**
  7709. * Assert that no request / response pair was recorded.
  7710. *
  7711. * @return void
  7712. * @static
  7713. */
  7714. public static function assertNothingSent()
  7715. {
  7716. /** @var \Illuminate\Http\Client\Factory $instance */
  7717. $instance->assertNothingSent();
  7718. }
  7719. /**
  7720. * Assert how many requests have been recorded.
  7721. *
  7722. * @param int $count
  7723. * @return void
  7724. * @static
  7725. */
  7726. public static function assertSentCount($count)
  7727. {
  7728. /** @var \Illuminate\Http\Client\Factory $instance */
  7729. $instance->assertSentCount($count);
  7730. }
  7731. /**
  7732. * Assert that every created response sequence is empty.
  7733. *
  7734. * @return void
  7735. * @static
  7736. */
  7737. public static function assertSequencesAreEmpty()
  7738. {
  7739. /** @var \Illuminate\Http\Client\Factory $instance */
  7740. $instance->assertSequencesAreEmpty();
  7741. }
  7742. /**
  7743. * Get a collection of the request / response pairs matching the given truth test.
  7744. *
  7745. * @param callable $callback
  7746. * @return \Illuminate\Support\Collection
  7747. * @static
  7748. */
  7749. public static function recorded($callback = null)
  7750. {
  7751. /** @var \Illuminate\Http\Client\Factory $instance */
  7752. return $instance->recorded($callback);
  7753. }
  7754. /**
  7755. * Get the current event dispatcher implementation.
  7756. *
  7757. * @return \Illuminate\Contracts\Events\Dispatcher|null
  7758. * @static
  7759. */
  7760. public static function getDispatcher()
  7761. {
  7762. /** @var \Illuminate\Http\Client\Factory $instance */
  7763. return $instance->getDispatcher();
  7764. }
  7765. /**
  7766. * Register a custom macro.
  7767. *
  7768. * @param string $name
  7769. * @param object|callable $macro
  7770. * @return void
  7771. * @static
  7772. */
  7773. public static function macro($name, $macro)
  7774. {
  7775. \Illuminate\Http\Client\Factory::macro($name, $macro);
  7776. }
  7777. /**
  7778. * Mix another object into the class.
  7779. *
  7780. * @param object $mixin
  7781. * @param bool $replace
  7782. * @return void
  7783. * @throws \ReflectionException
  7784. * @static
  7785. */
  7786. public static function mixin($mixin, $replace = true)
  7787. {
  7788. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  7789. }
  7790. /**
  7791. * Checks if macro is registered.
  7792. *
  7793. * @param string $name
  7794. * @return bool
  7795. * @static
  7796. */
  7797. public static function hasMacro($name)
  7798. {
  7799. return \Illuminate\Http\Client\Factory::hasMacro($name);
  7800. }
  7801. /**
  7802. * Flush the existing macros.
  7803. *
  7804. * @return void
  7805. * @static
  7806. */
  7807. public static function flushMacros()
  7808. {
  7809. \Illuminate\Http\Client\Factory::flushMacros();
  7810. }
  7811. /**
  7812. * Dynamically handle calls to the class.
  7813. *
  7814. * @param string $method
  7815. * @param array $parameters
  7816. * @return mixed
  7817. * @throws \BadMethodCallException
  7818. * @static
  7819. */
  7820. public static function macroCall($method, $parameters)
  7821. {
  7822. /** @var \Illuminate\Http\Client\Factory $instance */
  7823. return $instance->macroCall($method, $parameters);
  7824. }
  7825. }
  7826. /**
  7827. *
  7828. *
  7829. * @see \Illuminate\Translation\Translator
  7830. */
  7831. class Lang {
  7832. /**
  7833. * Determine if a translation exists for a given locale.
  7834. *
  7835. * @param string $key
  7836. * @param string|null $locale
  7837. * @return bool
  7838. * @static
  7839. */
  7840. public static function hasForLocale($key, $locale = null)
  7841. {
  7842. /** @var \Illuminate\Translation\Translator $instance */
  7843. return $instance->hasForLocale($key, $locale);
  7844. }
  7845. /**
  7846. * Determine if a translation exists.
  7847. *
  7848. * @param string $key
  7849. * @param string|null $locale
  7850. * @param bool $fallback
  7851. * @return bool
  7852. * @static
  7853. */
  7854. public static function has($key, $locale = null, $fallback = true)
  7855. {
  7856. /** @var \Illuminate\Translation\Translator $instance */
  7857. return $instance->has($key, $locale, $fallback);
  7858. }
  7859. /**
  7860. * Get the translation for the given key.
  7861. *
  7862. * @param string $key
  7863. * @param array $replace
  7864. * @param string|null $locale
  7865. * @param bool $fallback
  7866. * @return string|array
  7867. * @static
  7868. */
  7869. public static function get($key, $replace = [], $locale = null, $fallback = true)
  7870. {
  7871. /** @var \Illuminate\Translation\Translator $instance */
  7872. return $instance->get($key, $replace, $locale, $fallback);
  7873. }
  7874. /**
  7875. * Get a translation according to an integer value.
  7876. *
  7877. * @param string $key
  7878. * @param \Countable|int|array $number
  7879. * @param array $replace
  7880. * @param string|null $locale
  7881. * @return string
  7882. * @static
  7883. */
  7884. public static function choice($key, $number, $replace = [], $locale = null)
  7885. {
  7886. /** @var \Illuminate\Translation\Translator $instance */
  7887. return $instance->choice($key, $number, $replace, $locale);
  7888. }
  7889. /**
  7890. * Add translation lines to the given locale.
  7891. *
  7892. * @param array $lines
  7893. * @param string $locale
  7894. * @param string $namespace
  7895. * @return void
  7896. * @static
  7897. */
  7898. public static function addLines($lines, $locale, $namespace = '*')
  7899. {
  7900. /** @var \Illuminate\Translation\Translator $instance */
  7901. $instance->addLines($lines, $locale, $namespace);
  7902. }
  7903. /**
  7904. * Load the specified language group.
  7905. *
  7906. * @param string $namespace
  7907. * @param string $group
  7908. * @param string $locale
  7909. * @return void
  7910. * @static
  7911. */
  7912. public static function load($namespace, $group, $locale)
  7913. {
  7914. /** @var \Illuminate\Translation\Translator $instance */
  7915. $instance->load($namespace, $group, $locale);
  7916. }
  7917. /**
  7918. * Add a new namespace to the loader.
  7919. *
  7920. * @param string $namespace
  7921. * @param string $hint
  7922. * @return void
  7923. * @static
  7924. */
  7925. public static function addNamespace($namespace, $hint)
  7926. {
  7927. /** @var \Illuminate\Translation\Translator $instance */
  7928. $instance->addNamespace($namespace, $hint);
  7929. }
  7930. /**
  7931. * Add a new JSON path to the loader.
  7932. *
  7933. * @param string $path
  7934. * @return void
  7935. * @static
  7936. */
  7937. public static function addJsonPath($path)
  7938. {
  7939. /** @var \Illuminate\Translation\Translator $instance */
  7940. $instance->addJsonPath($path);
  7941. }
  7942. /**
  7943. * Parse a key into namespace, group, and item.
  7944. *
  7945. * @param string $key
  7946. * @return array
  7947. * @static
  7948. */
  7949. public static function parseKey($key)
  7950. {
  7951. /** @var \Illuminate\Translation\Translator $instance */
  7952. return $instance->parseKey($key);
  7953. }
  7954. /**
  7955. * Specify a callback that should be invoked to determined the applicable locale array.
  7956. *
  7957. * @param callable $callback
  7958. * @return void
  7959. * @static
  7960. */
  7961. public static function determineLocalesUsing($callback)
  7962. {
  7963. /** @var \Illuminate\Translation\Translator $instance */
  7964. $instance->determineLocalesUsing($callback);
  7965. }
  7966. /**
  7967. * Get the message selector instance.
  7968. *
  7969. * @return \Illuminate\Translation\MessageSelector
  7970. * @static
  7971. */
  7972. public static function getSelector()
  7973. {
  7974. /** @var \Illuminate\Translation\Translator $instance */
  7975. return $instance->getSelector();
  7976. }
  7977. /**
  7978. * Set the message selector instance.
  7979. *
  7980. * @param \Illuminate\Translation\MessageSelector $selector
  7981. * @return void
  7982. * @static
  7983. */
  7984. public static function setSelector($selector)
  7985. {
  7986. /** @var \Illuminate\Translation\Translator $instance */
  7987. $instance->setSelector($selector);
  7988. }
  7989. /**
  7990. * Get the language line loader implementation.
  7991. *
  7992. * @return \Illuminate\Contracts\Translation\Loader
  7993. * @static
  7994. */
  7995. public static function getLoader()
  7996. {
  7997. /** @var \Illuminate\Translation\Translator $instance */
  7998. return $instance->getLoader();
  7999. }
  8000. /**
  8001. * Get the default locale being used.
  8002. *
  8003. * @return string
  8004. * @static
  8005. */
  8006. public static function locale()
  8007. {
  8008. /** @var \Illuminate\Translation\Translator $instance */
  8009. return $instance->locale();
  8010. }
  8011. /**
  8012. * Get the default locale being used.
  8013. *
  8014. * @return string
  8015. * @static
  8016. */
  8017. public static function getLocale()
  8018. {
  8019. /** @var \Illuminate\Translation\Translator $instance */
  8020. return $instance->getLocale();
  8021. }
  8022. /**
  8023. * Set the default locale.
  8024. *
  8025. * @param string $locale
  8026. * @return void
  8027. * @throws \InvalidArgumentException
  8028. * @static
  8029. */
  8030. public static function setLocale($locale)
  8031. {
  8032. /** @var \Illuminate\Translation\Translator $instance */
  8033. $instance->setLocale($locale);
  8034. }
  8035. /**
  8036. * Get the fallback locale being used.
  8037. *
  8038. * @return string
  8039. * @static
  8040. */
  8041. public static function getFallback()
  8042. {
  8043. /** @var \Illuminate\Translation\Translator $instance */
  8044. return $instance->getFallback();
  8045. }
  8046. /**
  8047. * Set the fallback locale being used.
  8048. *
  8049. * @param string $fallback
  8050. * @return void
  8051. * @static
  8052. */
  8053. public static function setFallback($fallback)
  8054. {
  8055. /** @var \Illuminate\Translation\Translator $instance */
  8056. $instance->setFallback($fallback);
  8057. }
  8058. /**
  8059. * Set the loaded translation groups.
  8060. *
  8061. * @param array $loaded
  8062. * @return void
  8063. * @static
  8064. */
  8065. public static function setLoaded($loaded)
  8066. {
  8067. /** @var \Illuminate\Translation\Translator $instance */
  8068. $instance->setLoaded($loaded);
  8069. }
  8070. /**
  8071. * Set the parsed value of a key.
  8072. *
  8073. * @param string $key
  8074. * @param array $parsed
  8075. * @return void
  8076. * @static
  8077. */
  8078. public static function setParsedKey($key, $parsed)
  8079. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  8080. /** @var \Illuminate\Translation\Translator $instance */
  8081. $instance->setParsedKey($key, $parsed);
  8082. }
  8083. /**
  8084. * Flush the cache of parsed keys.
  8085. *
  8086. * @return void
  8087. * @static
  8088. */
  8089. public static function flushParsedKeys()
  8090. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  8091. /** @var \Illuminate\Translation\Translator $instance */
  8092. $instance->flushParsedKeys();
  8093. }
  8094. /**
  8095. * Register a custom macro.
  8096. *
  8097. * @param string $name
  8098. * @param object|callable $macro
  8099. * @return void
  8100. * @static
  8101. */
  8102. public static function macro($name, $macro)
  8103. {
  8104. \Illuminate\Translation\Translator::macro($name, $macro);
  8105. }
  8106. /**
  8107. * Mix another object into the class.
  8108. *
  8109. * @param object $mixin
  8110. * @param bool $replace
  8111. * @return void
  8112. * @throws \ReflectionException
  8113. * @static
  8114. */
  8115. public static function mixin($mixin, $replace = true)
  8116. {
  8117. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  8118. }
  8119. /**
  8120. * Checks if macro is registered.
  8121. *
  8122. * @param string $name
  8123. * @return bool
  8124. * @static
  8125. */
  8126. public static function hasMacro($name)
  8127. {
  8128. return \Illuminate\Translation\Translator::hasMacro($name);
  8129. }
  8130. /**
  8131. * Flush the existing macros.
  8132. *
  8133. * @return void
  8134. * @static
  8135. */
  8136. public static function flushMacros()
  8137. {
  8138. \Illuminate\Translation\Translator::flushMacros();
  8139. }
  8140. }
  8141. /**
  8142. *
  8143. *
  8144. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  8145. * @method static \Illuminate\Log\Logger withoutContext()
  8146. * @method static void write(string $level, string $message, array $context = [])
  8147. * @method static void listen(\Closure $callback)
  8148. * @see \Illuminate\Log\Logger
  8149. */
  8150. class Log {
  8151. /**
  8152. * Build an on-demand log channel.
  8153. *
  8154. * @param array $config
  8155. * @return \Psr\Log\LoggerInterface
  8156. * @static
  8157. */
  8158. public static function build($config)
  8159. {
  8160. /** @var \Illuminate\Log\LogManager $instance */
  8161. return $instance->build($config);
  8162. }
  8163. /**
  8164. * Create a new, on-demand aggregate logger instance.
  8165. *
  8166. * @param array $channels
  8167. * @param string|null $channel
  8168. * @return \Psr\Log\LoggerInterface
  8169. * @static
  8170. */
  8171. public static function stack($channels, $channel = null)
  8172. {
  8173. /** @var \Illuminate\Log\LogManager $instance */
  8174. return $instance->stack($channels, $channel);
  8175. }
  8176. /**
  8177. * Get a log channel instance.
  8178. *
  8179. * @param string|null $channel
  8180. * @return \Psr\Log\LoggerInterface
  8181. * @static
  8182. */
  8183. public static function channel($channel = null)
  8184. {
  8185. /** @var \Illuminate\Log\LogManager $instance */
  8186. return $instance->channel($channel);
  8187. }
  8188. /**
  8189. * Get a log driver instance.
  8190. *
  8191. * @param string|null $driver
  8192. * @return \Psr\Log\LoggerInterface
  8193. * @static
  8194. */
  8195. public static function driver($driver = null)
  8196. {
  8197. /** @var \Illuminate\Log\LogManager $instance */
  8198. return $instance->driver($driver);
  8199. }
  8200. /**
  8201. * Share context across channels and stacks.
  8202. *
  8203. * @param array $context
  8204. * @return \Illuminate\Log\LogManager
  8205. * @static
  8206. */
  8207. public static function shareContext($context)
  8208. {
  8209. /** @var \Illuminate\Log\LogManager $instance */
  8210. return $instance->shareContext($context);
  8211. }
  8212. /**
  8213. * The context shared across channels and stacks.
  8214. *
  8215. * @return array
  8216. * @static
  8217. */
  8218. public static function sharedContext()
  8219. {
  8220. /** @var \Illuminate\Log\LogManager $instance */
  8221. return $instance->sharedContext();
  8222. }
  8223. /**
  8224. * Flush the shared context.
  8225. *
  8226. * @return \Illuminate\Log\LogManager
  8227. * @static
  8228. */
  8229. public static function flushSharedContext()
  8230. {
  8231. /** @var \Illuminate\Log\LogManager $instance */
  8232. return $instance->flushSharedContext();
  8233. }
  8234. /**
  8235. * Get the default log driver name.
  8236. *
  8237. * @return string|null
  8238. * @static
  8239. */
  8240. public static function getDefaultDriver()
  8241. {
  8242. /** @var \Illuminate\Log\LogManager $instance */
  8243. return $instance->getDefaultDriver();
  8244. }
  8245. /**
  8246. * Set the default log driver name.
  8247. *
  8248. * @param string $name
  8249. * @return void
  8250. * @static
  8251. */
  8252. public static function setDefaultDriver($name)
  8253. {
  8254. /** @var \Illuminate\Log\LogManager $instance */
  8255. $instance->setDefaultDriver($name);
  8256. }
  8257. /**
  8258. * Register a custom driver creator Closure.
  8259. *
  8260. * @param string $driver
  8261. * @param \Closure $callback
  8262. * @return \Illuminate\Log\LogManager
  8263. * @static
  8264. */
  8265. public static function extend($driver, $callback)
  8266. {
  8267. /** @var \Illuminate\Log\LogManager $instance */
  8268. return $instance->extend($driver, $callback);
  8269. }
  8270. /**
  8271. * Unset the given channel instance.
  8272. *
  8273. * @param string|null $driver
  8274. * @return \Illuminate\Log\LogManager
  8275. * @static
  8276. */
  8277. public static function forgetChannel($driver = null)
  8278. {
  8279. /** @var \Illuminate\Log\LogManager $instance */
  8280. return $instance->forgetChannel($driver);
  8281. }
  8282. /**
  8283. * Get all of the resolved log channels.
  8284. *
  8285. * @return array
  8286. * @static
  8287. */
  8288. public static function getChannels()
  8289. {
  8290. /** @var \Illuminate\Log\LogManager $instance */
  8291. return $instance->getChannels();
  8292. }
  8293. /**
  8294. * System is unusable.
  8295. *
  8296. * @param string $message
  8297. * @param array $context
  8298. * @return void
  8299. * @static
  8300. */
  8301. public static function emergency($message, $context = [])
  8302. {
  8303. /** @var \Illuminate\Log\LogManager $instance */
  8304. $instance->emergency($message, $context);
  8305. }
  8306. /**
  8307. * Action must be taken immediately.
  8308. *
  8309. * Example: Entire website down, database unavailable, etc. This should
  8310. * trigger the SMS alerts and wake you up.
  8311. *
  8312. * @param string $message
  8313. * @param array $context
  8314. * @return void
  8315. * @static
  8316. */
  8317. public static function alert($message, $context = [])
  8318. {
  8319. /** @var \Illuminate\Log\LogManager $instance */
  8320. $instance->alert($message, $context);
  8321. }
  8322. /**
  8323. * Critical conditions.
  8324. *
  8325. * Example: Application component unavailable, unexpected exception.
  8326. *
  8327. * @param string $message
  8328. * @param array $context
  8329. * @return void
  8330. * @static
  8331. */
  8332. public static function critical($message, $context = [])
  8333. {
  8334. /** @var \Illuminate\Log\LogManager $instance */
  8335. $instance->critical($message, $context);
  8336. }
  8337. /**
  8338. * Runtime errors that do not require immediate action but should typically
  8339. * be logged and monitored.
  8340. *
  8341. * @param string $message
  8342. * @param array $context
  8343. * @return void
  8344. * @static
  8345. */
  8346. public static function error($message, $context = [])
  8347. {
  8348. /** @var \Illuminate\Log\LogManager $instance */
  8349. $instance->error($message, $context);
  8350. }
  8351. /**
  8352. * Exceptional occurrences that are not errors.
  8353. *
  8354. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  8355. * that are not necessarily wrong.
  8356. *
  8357. * @param string $message
  8358. * @param array $context
  8359. * @return void
  8360. * @static
  8361. */
  8362. public static function warning($message, $context = [])
  8363. {
  8364. /** @var \Illuminate\Log\LogManager $instance */
  8365. $instance->warning($message, $context);
  8366. }
  8367. /**
  8368. * Normal but significant events.
  8369. *
  8370. * @param string $message
  8371. * @param array $context
  8372. * @return void
  8373. * @static
  8374. */
  8375. public static function notice($message, $context = [])
  8376. {
  8377. /** @var \Illuminate\Log\LogManager $instance */
  8378. $instance->notice($message, $context);
  8379. }
  8380. /**
  8381. * Interesting events.
  8382. *
  8383. * Example: User logs in, SQL logs.
  8384. *
  8385. * @param string $message
  8386. * @param array $context
  8387. * @return void
  8388. * @static
  8389. */
  8390. public static function info($message, $context = [])
  8391. {
  8392. /** @var \Illuminate\Log\LogManager $instance */
  8393. $instance->info($message, $context);
  8394. }
  8395. /**
  8396. * Detailed debug information.
  8397. *
  8398. * @param string $message
  8399. * @param array $context
  8400. * @return void
  8401. * @static
  8402. */
  8403. public static function debug($message, $context = [])
  8404. {
  8405. /** @var \Illuminate\Log\LogManager $instance */
  8406. $instance->debug($message, $context);
  8407. }
  8408. /**
  8409. * Logs with an arbitrary level.
  8410. *
  8411. * @param mixed $level
  8412. * @param string $message
  8413. * @param array $context
  8414. * @return void
  8415. * @static
  8416. */
  8417. public static function log($level, $message, $context = [])
  8418. {
  8419. /** @var \Illuminate\Log\LogManager $instance */
  8420. $instance->log($level, $message, $context);
  8421. }
  8422. }
  8423. /**
  8424. *
  8425. *
  8426. * @method static void alwaysFrom(string $address, string|null $name = null)
  8427. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  8428. * @method static void alwaysReturnPath(string $address)
  8429. * @method static void alwaysTo(string $address, string|null $name = null)
  8430. * @method static \Illuminate\Mail\SentMessage|null plain(string $view, array $data, $callback)
  8431. * @method static \Illuminate\Mail\SentMessage|null html(string $html, $callback)
  8432. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  8433. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  8434. * @see \Illuminate\Mail\Mailer
  8435. * @see \Illuminate\Support\Testing\Fakes\MailFake
  8436. */
  8437. class Mail {
  8438. /**
  8439. * Get a mailer instance by name.
  8440. *
  8441. * @param string|null $name
  8442. * @return \Illuminate\Contracts\Mail\Mailer
  8443. * @static
  8444. */
  8445. public static function mailer($name = null)
  8446. {
  8447. /** @var \Illuminate\Mail\MailManager $instance */
  8448. return $instance->mailer($name);
  8449. }
  8450. /**
  8451. * Get a mailer driver instance.
  8452. *
  8453. * @param string|null $driver
  8454. * @return \Illuminate\Mail\Mailer
  8455. * @static
  8456. */
  8457. public static function driver($driver = null)
  8458. {
  8459. /** @var \Illuminate\Mail\MailManager $instance */
  8460. return $instance->driver($driver);
  8461. }
  8462. /**
  8463. * Create a new transport instance.
  8464. *
  8465. * @param array $config
  8466. * @return \Symfony\Component\Mailer\Transport\TransportInterface
  8467. * @throws \InvalidArgumentException
  8468. * @static
  8469. */
  8470. public static function createSymfonyTransport($config)
  8471. {
  8472. /** @var \Illuminate\Mail\MailManager $instance */
  8473. return $instance->createSymfonyTransport($config);
  8474. }
  8475. /**
  8476. * Get the default mail driver name.
  8477. *
  8478. * @return string
  8479. * @static
  8480. */
  8481. public static function getDefaultDriver()
  8482. {
  8483. /** @var \Illuminate\Mail\MailManager $instance */
  8484. return $instance->getDefaultDriver();
  8485. }
  8486. /**
  8487. * Set the default mail driver name.
  8488. *
  8489. * @param string $name
  8490. * @return void
  8491. * @static
  8492. */
  8493. public static function setDefaultDriver($name)
  8494. {
  8495. /** @var \Illuminate\Mail\MailManager $instance */
  8496. $instance->setDefaultDriver($name);
  8497. }
  8498. /**
  8499. * Disconnect the given mailer and remove from local cache.
  8500. *
  8501. * @param string|null $name
  8502. * @return void
  8503. * @static
  8504. */
  8505. public static function purge($name = null)
  8506. {
  8507. /** @var \Illuminate\Mail\MailManager $instance */
  8508. $instance->purge($name);
  8509. }
  8510. /**
  8511. * Register a custom transport creator Closure.
  8512. *
  8513. * @param string $driver
  8514. * @param \Closure $callback
  8515. * @return \Illuminate\Mail\MailManager
  8516. * @static
  8517. */
  8518. public static function extend($driver, $callback)
  8519. {
  8520. /** @var \Illuminate\Mail\MailManager $instance */
  8521. return $instance->extend($driver, $callback);
  8522. }
  8523. /**
  8524. * Get the application instance used by the manager.
  8525. *
  8526. * @return \Illuminate\Contracts\Foundation\Application
  8527. * @static
  8528. */
  8529. public static function getApplication()
  8530. {
  8531. /** @var \Illuminate\Mail\MailManager $instance */
  8532. return $instance->getApplication();
  8533. }
  8534. /**
  8535. * Set the application instance used by the manager.
  8536. *
  8537. * @param \Illuminate\Contracts\Foundation\Application $app
  8538. * @return \Illuminate\Mail\MailManager
  8539. * @static
  8540. */
  8541. public static function setApplication($app)
  8542. {
  8543. /** @var \Illuminate\Mail\MailManager $instance */
  8544. return $instance->setApplication($app);
  8545. }
  8546. /**
  8547. * Forget all of the resolved mailer instances.
  8548. *
  8549. * @return \Illuminate\Mail\MailManager
  8550. * @static
  8551. */
  8552. public static function forgetMailers()
  8553. {
  8554. /** @var \Illuminate\Mail\MailManager $instance */
  8555. return $instance->forgetMailers();
  8556. }
  8557. /**
  8558. * Assert if a mailable was sent based on a truth-test callback.
  8559. *
  8560. * @param string|\Closure $mailable
  8561. * @param callable|int|null $callback
  8562. * @return void
  8563. * @static
  8564. */
  8565. public static function assertSent($mailable, $callback = null)
  8566. {
  8567. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8568. $instance->assertSent($mailable, $callback);
  8569. }
  8570. /**
  8571. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  8572. *
  8573. * @param string|\Closure $mailable
  8574. * @param callable|null $callback
  8575. * @return void
  8576. * @static
  8577. */
  8578. public static function assertNotOutgoing($mailable, $callback = null)
  8579. {
  8580. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8581. $instance->assertNotOutgoing($mailable, $callback);
  8582. }
  8583. /**
  8584. * Determine if a mailable was not sent based on a truth-test callback.
  8585. *
  8586. * @param string|\Closure $mailable
  8587. * @param callable|null $callback
  8588. * @return void
  8589. * @static
  8590. */
  8591. public static function assertNotSent($mailable, $callback = null)
  8592. {
  8593. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8594. $instance->assertNotSent($mailable, $callback);
  8595. }
  8596. /**
  8597. * Assert that no mailables were sent or queued to be sent.
  8598. *
  8599. * @return void
  8600. * @static
  8601. */
  8602. public static function assertNothingOutgoing()
  8603. {
  8604. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8605. $instance->assertNothingOutgoing();
  8606. }
  8607. /**
  8608. * Assert that no mailables were sent.
  8609. *
  8610. * @return void
  8611. * @static
  8612. */
  8613. public static function assertNothingSent()
  8614. {
  8615. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8616. $instance->assertNothingSent();
  8617. }
  8618. /**
  8619. * Assert if a mailable was queued based on a truth-test callback.
  8620. *
  8621. * @param string|\Closure $mailable
  8622. * @param callable|int|null $callback
  8623. * @return void
  8624. * @static
  8625. */
  8626. public static function assertQueued($mailable, $callback = null)
  8627. {
  8628. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8629. $instance->assertQueued($mailable, $callback);
  8630. }
  8631. /**
  8632. * Determine if a mailable was not queued based on a truth-test callback.
  8633. *
  8634. * @param string|\Closure $mailable
  8635. * @param callable|null $callback
  8636. * @return void
  8637. * @static
  8638. */
  8639. public static function assertNotQueued($mailable, $callback = null)
  8640. {
  8641. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8642. $instance->assertNotQueued($mailable, $callback);
  8643. }
  8644. /**
  8645. * Assert that no mailables were queued.
  8646. *
  8647. * @return void
  8648. * @static
  8649. */
  8650. public static function assertNothingQueued()
  8651. {
  8652. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8653. $instance->assertNothingQueued();
  8654. }
  8655. /**
  8656. * Get all of the mailables matching a truth-test callback.
  8657. *
  8658. * @param string|\Closure $mailable
  8659. * @param callable|null $callback
  8660. * @return \Illuminate\Support\Collection
  8661. * @static
  8662. */
  8663. public static function sent($mailable, $callback = null)
  8664. {
  8665. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8666. return $instance->sent($mailable, $callback);
  8667. }
  8668. /**
  8669. * Determine if the given mailable has been sent.
  8670. *
  8671. * @param string $mailable
  8672. * @return bool
  8673. * @static
  8674. */
  8675. public static function hasSent($mailable)
  8676. {
  8677. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8678. return $instance->hasSent($mailable);
  8679. }
  8680. /**
  8681. * Get all of the queued mailables matching a truth-test callback.
  8682. *
  8683. * @param string|\Closure $mailable
  8684. * @param callable|null $callback
  8685. * @return \Illuminate\Support\Collection
  8686. * @static
  8687. */
  8688. public static function queued($mailable, $callback = null)
  8689. {
  8690. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8691. return $instance->queued($mailable, $callback);
  8692. }
  8693. /**
  8694. * Determine if the given mailable has been queued.
  8695. *
  8696. * @param string $mailable
  8697. * @return bool
  8698. * @static
  8699. */
  8700. public static function hasQueued($mailable)
  8701. {
  8702. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8703. return $instance->hasQueued($mailable);
  8704. }
  8705. /**
  8706. * Begin the process of mailing a mailable class instance.
  8707. *
  8708. * @param mixed $users
  8709. * @return \Illuminate\Mail\PendingMail
  8710. * @static
  8711. */
  8712. public static function to($users)
  8713. {
  8714. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8715. return $instance->to($users);
  8716. }
  8717. /**
  8718. * Begin the process of mailing a mailable class instance.
  8719. *
  8720. * @param mixed $users
  8721. * @return \Illuminate\Mail\PendingMail
  8722. * @static
  8723. */
  8724. public static function cc($users)
  8725. {
  8726. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8727. return $instance->cc($users);
  8728. }
  8729. /**
  8730. * Begin the process of mailing a mailable class instance.
  8731. *
  8732. * @param mixed $users
  8733. * @return \Illuminate\Mail\PendingMail
  8734. * @static
  8735. */
  8736. public static function bcc($users)
  8737. {
  8738. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8739. return $instance->bcc($users);
  8740. }
  8741. /**
  8742. * Send a new message with only a raw text part.
  8743. *
  8744. * @param string $text
  8745. * @param \Closure|string $callback
  8746. * @return void
  8747. * @static
  8748. */
  8749. public static function raw($text, $callback)
  8750. {
  8751. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8752. $instance->raw($text, $callback);
  8753. }
  8754. /**
  8755. * Send a new message using a view.
  8756. *
  8757. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8758. * @param array $data
  8759. * @param \Closure|string|null $callback
  8760. * @return void
  8761. * @static
  8762. */
  8763. public static function send($view, $data = [], $callback = null)
  8764. {
  8765. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8766. $instance->send($view, $data, $callback);
  8767. }
  8768. /**
  8769. * Queue a new e-mail message for sending.
  8770. *
  8771. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8772. * @param string|null $queue
  8773. * @return mixed
  8774. * @static
  8775. */
  8776. public static function queue($view, $queue = null)
  8777. {
  8778. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8779. return $instance->queue($view, $queue);
  8780. }
  8781. /**
  8782. * Queue a new e-mail message for sending after (n) seconds.
  8783. *
  8784. * @param \DateTimeInterface|\DateInterval|int $delay
  8785. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8786. * @param string|null $queue
  8787. * @return mixed
  8788. * @static
  8789. */
  8790. public static function later($delay, $view, $queue = null)
  8791. {
  8792. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8793. return $instance->later($delay, $view, $queue);
  8794. }
  8795. /**
  8796. * Get the array of failed recipients.
  8797. *
  8798. * @return array
  8799. * @static
  8800. */
  8801. public static function failures()
  8802. {
  8803. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8804. return $instance->failures();
  8805. }
  8806. }
  8807. /**
  8808. *
  8809. *
  8810. * @see \Illuminate\Notifications\ChannelManager
  8811. */
  8812. class Notification {
  8813. /**
  8814. * Send the given notification to the given notifiable entities.
  8815. *
  8816. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8817. * @param mixed $notification
  8818. * @return void
  8819. * @static
  8820. */
  8821. public static function send($notifiables, $notification)
  8822. {
  8823. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8824. $instance->send($notifiables, $notification);
  8825. }
  8826. /**
  8827. * Send the given notification immediately.
  8828. *
  8829. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8830. * @param mixed $notification
  8831. * @param array|null $channels
  8832. * @return void
  8833. * @static
  8834. */
  8835. public static function sendNow($notifiables, $notification, $channels = null)
  8836. {
  8837. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8838. $instance->sendNow($notifiables, $notification, $channels);
  8839. }
  8840. /**
  8841. * Get a channel instance.
  8842. *
  8843. * @param string|null $name
  8844. * @return mixed
  8845. * @static
  8846. */
  8847. public static function channel($name = null)
  8848. {
  8849. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8850. return $instance->channel($name);
  8851. }
  8852. /**
  8853. * Get the default channel driver name.
  8854. *
  8855. * @return string
  8856. * @static
  8857. */
  8858. public static function getDefaultDriver()
  8859. {
  8860. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8861. return $instance->getDefaultDriver();
  8862. }
  8863. /**
  8864. * Get the default channel driver name.
  8865. *
  8866. * @return string
  8867. * @static
  8868. */
  8869. public static function deliversVia()
  8870. {
  8871. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8872. return $instance->deliversVia();
  8873. }
  8874. /**
  8875. * Set the default channel driver name.
  8876. *
  8877. * @param string $channel
  8878. * @return void
  8879. * @static
  8880. */
  8881. public static function deliverVia($channel)
  8882. {
  8883. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8884. $instance->deliverVia($channel);
  8885. }
  8886. /**
  8887. * Set the locale of notifications.
  8888. *
  8889. * @param string $locale
  8890. * @return \Illuminate\Notifications\ChannelManager
  8891. * @static
  8892. */
  8893. public static function locale($locale)
  8894. {
  8895. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8896. return $instance->locale($locale);
  8897. }
  8898. /**
  8899. * Get a driver instance.
  8900. *
  8901. * @param string|null $driver
  8902. * @return mixed
  8903. * @throws \InvalidArgumentException
  8904. * @static
  8905. */
  8906. public static function driver($driver = null)
  8907. { //Method inherited from \Illuminate\Support\Manager
  8908. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8909. return $instance->driver($driver);
  8910. }
  8911. /**
  8912. * Register a custom driver creator Closure.
  8913. *
  8914. * @param string $driver
  8915. * @param \Closure $callback
  8916. * @return \Illuminate\Notifications\ChannelManager
  8917. * @static
  8918. */
  8919. public static function extend($driver, $callback)
  8920. { //Method inherited from \Illuminate\Support\Manager
  8921. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8922. return $instance->extend($driver, $callback);
  8923. }
  8924. /**
  8925. * Get all of the created "drivers".
  8926. *
  8927. * @return array
  8928. * @static
  8929. */
  8930. public static function getDrivers()
  8931. { //Method inherited from \Illuminate\Support\Manager
  8932. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8933. return $instance->getDrivers();
  8934. }
  8935. /**
  8936. * Get the container instance used by the manager.
  8937. *
  8938. * @return \Illuminate\Contracts\Container\Container
  8939. * @static
  8940. */
  8941. public static function getContainer()
  8942. { //Method inherited from \Illuminate\Support\Manager
  8943. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8944. return $instance->getContainer();
  8945. }
  8946. /**
  8947. * Set the container instance used by the manager.
  8948. *
  8949. * @param \Illuminate\Contracts\Container\Container $container
  8950. * @return \Illuminate\Notifications\ChannelManager
  8951. * @static
  8952. */
  8953. public static function setContainer($container)
  8954. { //Method inherited from \Illuminate\Support\Manager
  8955. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8956. return $instance->setContainer($container);
  8957. }
  8958. /**
  8959. * Forget all of the resolved driver instances.
  8960. *
  8961. * @return \Illuminate\Notifications\ChannelManager
  8962. * @static
  8963. */
  8964. public static function forgetDrivers()
  8965. { //Method inherited from \Illuminate\Support\Manager
  8966. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8967. return $instance->forgetDrivers();
  8968. }
  8969. /**
  8970. * Assert if a notification was sent on-demand based on a truth-test callback.
  8971. *
  8972. * @param string|\Closure $notification
  8973. * @param callable|null $callback
  8974. * @return void
  8975. * @throws \Exception
  8976. * @static
  8977. */
  8978. public static function assertSentOnDemand($notification, $callback = null)
  8979. {
  8980. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8981. $instance->assertSentOnDemand($notification, $callback);
  8982. }
  8983. /**
  8984. * Assert if a notification was sent based on a truth-test callback.
  8985. *
  8986. * @param mixed $notifiable
  8987. * @param string|\Closure $notification
  8988. * @param callable|null $callback
  8989. * @return void
  8990. * @throws \Exception
  8991. * @static
  8992. */
  8993. public static function assertSentTo($notifiable, $notification, $callback = null)
  8994. {
  8995. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8996. $instance->assertSentTo($notifiable, $notification, $callback);
  8997. }
  8998. /**
  8999. * Assert if a notification was sent on-demand a number of times.
  9000. *
  9001. * @param string $notification
  9002. * @param int $times
  9003. * @return void
  9004. * @static
  9005. */
  9006. public static function assertSentOnDemandTimes($notification, $times = 1)
  9007. {
  9008. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9009. $instance->assertSentOnDemandTimes($notification, $times);
  9010. }
  9011. /**
  9012. * Assert if a notification was sent a number of times.
  9013. *
  9014. * @param mixed $notifiable
  9015. * @param string $notification
  9016. * @param int $times
  9017. * @return void
  9018. * @static
  9019. */
  9020. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  9021. {
  9022. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9023. $instance->assertSentToTimes($notifiable, $notification, $times);
  9024. }
  9025. /**
  9026. * Determine if a notification was sent based on a truth-test callback.
  9027. *
  9028. * @param mixed $notifiable
  9029. * @param string|\Closure $notification
  9030. * @param callable|null $callback
  9031. * @return void
  9032. * @throws \Exception
  9033. * @static
  9034. */
  9035. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  9036. {
  9037. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9038. $instance->assertNotSentTo($notifiable, $notification, $callback);
  9039. }
  9040. /**
  9041. * Assert that no notifications were sent.
  9042. *
  9043. * @return void
  9044. * @static
  9045. */
  9046. public static function assertNothingSent()
  9047. {
  9048. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9049. $instance->assertNothingSent();
  9050. }
  9051. /**
  9052. * Assert that no notifications were sent to the given notifiable.
  9053. *
  9054. * @param mixed $notifiable
  9055. * @return void
  9056. * @throws \Exception
  9057. * @static
  9058. */
  9059. public static function assertNothingSentTo($notifiable)
  9060. {
  9061. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9062. $instance->assertNothingSentTo($notifiable);
  9063. }
  9064. /**
  9065. * Assert the total amount of times a notification was sent.
  9066. *
  9067. * @param string $notification
  9068. * @param int $expectedCount
  9069. * @return void
  9070. * @static
  9071. */
  9072. public static function assertSentTimes($notification, $expectedCount)
  9073. {
  9074. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9075. $instance->assertSentTimes($notification, $expectedCount);
  9076. }
  9077. /**
  9078. * Assert the total count of notification that were sent.
  9079. *
  9080. * @param int $expectedCount
  9081. * @return void
  9082. * @static
  9083. */
  9084. public static function assertCount($expectedCount)
  9085. {
  9086. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9087. $instance->assertCount($expectedCount);
  9088. }
  9089. /**
  9090. * Assert the total amount of times a notification was sent.
  9091. *
  9092. * @param int $expectedCount
  9093. * @param string $notification
  9094. * @return void
  9095. * @deprecated Use the assertSentTimes method instead
  9096. * @static
  9097. */
  9098. public static function assertTimesSent($expectedCount, $notification)
  9099. {
  9100. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9101. $instance->assertTimesSent($expectedCount, $notification);
  9102. }
  9103. /**
  9104. * Get all of the notifications matching a truth-test callback.
  9105. *
  9106. * @param mixed $notifiable
  9107. * @param string $notification
  9108. * @param callable|null $callback
  9109. * @return \Illuminate\Support\Collection
  9110. * @static
  9111. */
  9112. public static function sent($notifiable, $notification, $callback = null)
  9113. {
  9114. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9115. return $instance->sent($notifiable, $notification, $callback);
  9116. }
  9117. /**
  9118. * Determine if there are more notifications left to inspect.
  9119. *
  9120. * @param mixed $notifiable
  9121. * @param string $notification
  9122. * @return bool
  9123. * @static
  9124. */
  9125. public static function hasSent($notifiable, $notification)
  9126. {
  9127. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9128. return $instance->hasSent($notifiable, $notification);
  9129. }
  9130. /**
  9131. * Get the notifications that have been sent.
  9132. *
  9133. * @return array
  9134. * @static
  9135. */
  9136. public static function sentNotifications()
  9137. {
  9138. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9139. return $instance->sentNotifications();
  9140. }
  9141. /**
  9142. * Register a custom macro.
  9143. *
  9144. * @param string $name
  9145. * @param object|callable $macro
  9146. * @return void
  9147. * @static
  9148. */
  9149. public static function macro($name, $macro)
  9150. {
  9151. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  9152. }
  9153. /**
  9154. * Mix another object into the class.
  9155. *
  9156. * @param object $mixin
  9157. * @param bool $replace
  9158. * @return void
  9159. * @throws \ReflectionException
  9160. * @static
  9161. */
  9162. public static function mixin($mixin, $replace = true)
  9163. {
  9164. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  9165. }
  9166. /**
  9167. * Checks if macro is registered.
  9168. *
  9169. * @param string $name
  9170. * @return bool
  9171. * @static
  9172. */
  9173. public static function hasMacro($name)
  9174. {
  9175. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  9176. }
  9177. /**
  9178. * Flush the existing macros.
  9179. *
  9180. * @return void
  9181. * @static
  9182. */
  9183. public static function flushMacros()
  9184. {
  9185. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  9186. }
  9187. }
  9188. /**
  9189. *
  9190. *
  9191. * @method static mixed reset(array $credentials, \Closure $callback)
  9192. * @method static string sendResetLink(array $credentials, \Closure $callback = null)
  9193. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  9194. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  9195. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  9196. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  9197. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  9198. * @see \Illuminate\Auth\Passwords\PasswordBroker
  9199. */
  9200. class Password {
  9201. /**
  9202. * Attempt to get the broker from the local cache.
  9203. *
  9204. * @param string|null $name
  9205. * @return \Illuminate\Contracts\Auth\PasswordBroker
  9206. * @static
  9207. */
  9208. public static function broker($name = null)
  9209. {
  9210. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9211. return $instance->broker($name);
  9212. }
  9213. /**
  9214. * Get the default password broker name.
  9215. *
  9216. * @return string
  9217. * @static
  9218. */
  9219. public static function getDefaultDriver()
  9220. {
  9221. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9222. return $instance->getDefaultDriver();
  9223. }
  9224. /**
  9225. * Set the default password broker name.
  9226. *
  9227. * @param string $name
  9228. * @return void
  9229. * @static
  9230. */
  9231. public static function setDefaultDriver($name)
  9232. {
  9233. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9234. $instance->setDefaultDriver($name);
  9235. }
  9236. }
  9237. /**
  9238. *
  9239. *
  9240. * @see \Illuminate\Queue\QueueManager
  9241. * @see \Illuminate\Queue\Queue
  9242. */
  9243. class Queue {
  9244. /**
  9245. * Register an event listener for the before job event.
  9246. *
  9247. * @param mixed $callback
  9248. * @return void
  9249. * @static
  9250. */
  9251. public static function before($callback)
  9252. {
  9253. /** @var \Illuminate\Queue\QueueManager $instance */
  9254. $instance->before($callback);
  9255. }
  9256. /**
  9257. * Register an event listener for the after job event.
  9258. *
  9259. * @param mixed $callback
  9260. * @return void
  9261. * @static
  9262. */
  9263. public static function after($callback)
  9264. {
  9265. /** @var \Illuminate\Queue\QueueManager $instance */
  9266. $instance->after($callback);
  9267. }
  9268. /**
  9269. * Register an event listener for the exception occurred job event.
  9270. *
  9271. * @param mixed $callback
  9272. * @return void
  9273. * @static
  9274. */
  9275. public static function exceptionOccurred($callback)
  9276. {
  9277. /** @var \Illuminate\Queue\QueueManager $instance */
  9278. $instance->exceptionOccurred($callback);
  9279. }
  9280. /**
  9281. * Register an event listener for the daemon queue loop.
  9282. *
  9283. * @param mixed $callback
  9284. * @return void
  9285. * @static
  9286. */
  9287. public static function looping($callback)
  9288. {
  9289. /** @var \Illuminate\Queue\QueueManager $instance */
  9290. $instance->looping($callback);
  9291. }
  9292. /**
  9293. * Register an event listener for the failed job event.
  9294. *
  9295. * @param mixed $callback
  9296. * @return void
  9297. * @static
  9298. */
  9299. public static function failing($callback)
  9300. {
  9301. /** @var \Illuminate\Queue\QueueManager $instance */
  9302. $instance->failing($callback);
  9303. }
  9304. /**
  9305. * Register an event listener for the daemon queue stopping.
  9306. *
  9307. * @param mixed $callback
  9308. * @return void
  9309. * @static
  9310. */
  9311. public static function stopping($callback)
  9312. {
  9313. /** @var \Illuminate\Queue\QueueManager $instance */
  9314. $instance->stopping($callback);
  9315. }
  9316. /**
  9317. * Determine if the driver is connected.
  9318. *
  9319. * @param string|null $name
  9320. * @return bool
  9321. * @static
  9322. */
  9323. public static function connected($name = null)
  9324. {
  9325. /** @var \Illuminate\Queue\QueueManager $instance */
  9326. return $instance->connected($name);
  9327. }
  9328. /**
  9329. * Resolve a queue connection instance.
  9330. *
  9331. * @param string|null $name
  9332. * @return \Illuminate\Contracts\Queue\Queue
  9333. * @static
  9334. */
  9335. public static function connection($name = null)
  9336. {
  9337. /** @var \Illuminate\Queue\QueueManager $instance */
  9338. return $instance->connection($name);
  9339. }
  9340. /**
  9341. * Add a queue connection resolver.
  9342. *
  9343. * @param string $driver
  9344. * @param \Closure $resolver
  9345. * @return void
  9346. * @static
  9347. */
  9348. public static function extend($driver, $resolver)
  9349. {
  9350. /** @var \Illuminate\Queue\QueueManager $instance */
  9351. $instance->extend($driver, $resolver);
  9352. }
  9353. /**
  9354. * Add a queue connection resolver.
  9355. *
  9356. * @param string $driver
  9357. * @param \Closure $resolver
  9358. * @return void
  9359. * @static
  9360. */
  9361. public static function addConnector($driver, $resolver)
  9362. {
  9363. /** @var \Illuminate\Queue\QueueManager $instance */
  9364. $instance->addConnector($driver, $resolver);
  9365. }
  9366. /**
  9367. * Get the name of the default queue connection.
  9368. *
  9369. * @return string
  9370. * @static
  9371. */
  9372. public static function getDefaultDriver()
  9373. {
  9374. /** @var \Illuminate\Queue\QueueManager $instance */
  9375. return $instance->getDefaultDriver();
  9376. }
  9377. /**
  9378. * Set the name of the default queue connection.
  9379. *
  9380. * @param string $name
  9381. * @return void
  9382. * @static
  9383. */
  9384. public static function setDefaultDriver($name)
  9385. {
  9386. /** @var \Illuminate\Queue\QueueManager $instance */
  9387. $instance->setDefaultDriver($name);
  9388. }
  9389. /**
  9390. * Get the full name for the given connection.
  9391. *
  9392. * @param string|null $connection
  9393. * @return string
  9394. * @static
  9395. */
  9396. public static function getName($connection = null)
  9397. {
  9398. /** @var \Illuminate\Queue\QueueManager $instance */
  9399. return $instance->getName($connection);
  9400. }
  9401. /**
  9402. * Get the application instance used by the manager.
  9403. *
  9404. * @return \Illuminate\Contracts\Foundation\Application
  9405. * @static
  9406. */
  9407. public static function getApplication()
  9408. {
  9409. /** @var \Illuminate\Queue\QueueManager $instance */
  9410. return $instance->getApplication();
  9411. }
  9412. /**
  9413. * Set the application instance used by the manager.
  9414. *
  9415. * @param \Illuminate\Contracts\Foundation\Application $app
  9416. * @return \Illuminate\Queue\QueueManager
  9417. * @static
  9418. */
  9419. public static function setApplication($app)
  9420. {
  9421. /** @var \Illuminate\Queue\QueueManager $instance */
  9422. return $instance->setApplication($app);
  9423. }
  9424. /**
  9425. * Specify the jobs that should be queued instead of faked.
  9426. *
  9427. * @param array|string $jobsToBeQueued
  9428. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  9429. * @static
  9430. */
  9431. public static function except($jobsToBeQueued)
  9432. {
  9433. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9434. return $instance->except($jobsToBeQueued);
  9435. }
  9436. /**
  9437. * Assert if a job was pushed based on a truth-test callback.
  9438. *
  9439. * @param string|\Closure $job
  9440. * @param callable|int|null $callback
  9441. * @return void
  9442. * @static
  9443. */
  9444. public static function assertPushed($job, $callback = null)
  9445. {
  9446. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9447. $instance->assertPushed($job, $callback);
  9448. }
  9449. /**
  9450. * Assert if a job was pushed based on a truth-test callback.
  9451. *
  9452. * @param string $queue
  9453. * @param string|\Closure $job
  9454. * @param callable|null $callback
  9455. * @return void
  9456. * @static
  9457. */
  9458. public static function assertPushedOn($queue, $job, $callback = null)
  9459. {
  9460. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9461. $instance->assertPushedOn($queue, $job, $callback);
  9462. }
  9463. /**
  9464. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  9465. *
  9466. * @param string $job
  9467. * @param array $expectedChain
  9468. * @param callable|null $callback
  9469. * @return void
  9470. * @static
  9471. */
  9472. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  9473. {
  9474. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9475. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  9476. }
  9477. /**
  9478. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  9479. *
  9480. * @param string $job
  9481. * @param callable|null $callback
  9482. * @return void
  9483. * @static
  9484. */
  9485. public static function assertPushedWithoutChain($job, $callback = null)
  9486. {
  9487. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9488. $instance->assertPushedWithoutChain($job, $callback);
  9489. }
  9490. /**
  9491. * Determine if a job was pushed based on a truth-test callback.
  9492. *
  9493. * @param string|\Closure $job
  9494. * @param callable|null $callback
  9495. * @return void
  9496. * @static
  9497. */
  9498. public static function assertNotPushed($job, $callback = null)
  9499. {
  9500. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9501. $instance->assertNotPushed($job, $callback);
  9502. }
  9503. /**
  9504. * Assert that no jobs were pushed.
  9505. *
  9506. * @return void
  9507. * @static
  9508. */
  9509. public static function assertNothingPushed()
  9510. {
  9511. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9512. $instance->assertNothingPushed();
  9513. }
  9514. /**
  9515. * Get all of the jobs matching a truth-test callback.
  9516. *
  9517. * @param string $job
  9518. * @param callable|null $callback
  9519. * @return \Illuminate\Support\Collection
  9520. * @static
  9521. */
  9522. public static function pushed($job, $callback = null)
  9523. {
  9524. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9525. return $instance->pushed($job, $callback);
  9526. }
  9527. /**
  9528. * Determine if there are any stored jobs for a given class.
  9529. *
  9530. * @param string $job
  9531. * @return bool
  9532. * @static
  9533. */
  9534. public static function hasPushed($job)
  9535. {
  9536. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9537. return $instance->hasPushed($job);
  9538. }
  9539. /**
  9540. * Get the size of the queue.
  9541. *
  9542. * @param string|null $queue
  9543. * @return int
  9544. * @static
  9545. */
  9546. public static function size($queue = null)
  9547. {
  9548. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9549. return $instance->size($queue);
  9550. }
  9551. /**
  9552. * Push a new job onto the queue.
  9553. *
  9554. * @param string|object $job
  9555. * @param mixed $data
  9556. * @param string|null $queue
  9557. * @return mixed
  9558. * @static
  9559. */
  9560. public static function push($job, $data = '', $queue = null)
  9561. {
  9562. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9563. return $instance->push($job, $data, $queue);
  9564. }
  9565. /**
  9566. * Determine if a job should be faked or actually dispatched.
  9567. *
  9568. * @param object $job
  9569. * @return bool
  9570. * @static
  9571. */
  9572. public static function shouldFakeJob($job)
  9573. {
  9574. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9575. return $instance->shouldFakeJob($job);
  9576. }
  9577. /**
  9578. * Push a raw payload onto the queue.
  9579. *
  9580. * @param string $payload
  9581. * @param string|null $queue
  9582. * @param array $options
  9583. * @return mixed
  9584. * @static
  9585. */
  9586. public static function pushRaw($payload, $queue = null, $options = [])
  9587. {
  9588. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9589. return $instance->pushRaw($payload, $queue, $options);
  9590. }
  9591. /**
  9592. * Push a new job onto the queue after (n) seconds.
  9593. *
  9594. * @param \DateTimeInterface|\DateInterval|int $delay
  9595. * @param string|object $job
  9596. * @param mixed $data
  9597. * @param string|null $queue
  9598. * @return mixed
  9599. * @static
  9600. */
  9601. public static function later($delay, $job, $data = '', $queue = null)
  9602. {
  9603. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9604. return $instance->later($delay, $job, $data, $queue);
  9605. }
  9606. /**
  9607. * Push a new job onto the queue.
  9608. *
  9609. * @param string $queue
  9610. * @param string|object $job
  9611. * @param mixed $data
  9612. * @return mixed
  9613. * @static
  9614. */
  9615. public static function pushOn($queue, $job, $data = '')
  9616. {
  9617. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9618. return $instance->pushOn($queue, $job, $data);
  9619. }
  9620. /**
  9621. * Push a new job onto a specific queue after (n) seconds.
  9622. *
  9623. * @param string $queue
  9624. * @param \DateTimeInterface|\DateInterval|int $delay
  9625. * @param string|object $job
  9626. * @param mixed $data
  9627. * @return mixed
  9628. * @static
  9629. */
  9630. public static function laterOn($queue, $delay, $job, $data = '')
  9631. {
  9632. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9633. return $instance->laterOn($queue, $delay, $job, $data);
  9634. }
  9635. /**
  9636. * Pop the next job off of the queue.
  9637. *
  9638. * @param string|null $queue
  9639. * @return \Illuminate\Contracts\Queue\Job|null
  9640. * @static
  9641. */
  9642. public static function pop($queue = null)
  9643. {
  9644. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9645. return $instance->pop($queue);
  9646. }
  9647. /**
  9648. * Push an array of jobs onto the queue.
  9649. *
  9650. * @param array $jobs
  9651. * @param mixed $data
  9652. * @param string|null $queue
  9653. * @return mixed
  9654. * @static
  9655. */
  9656. public static function bulk($jobs, $data = '', $queue = null)
  9657. {
  9658. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9659. return $instance->bulk($jobs, $data, $queue);
  9660. }
  9661. /**
  9662. * Get the jobs that have been pushed.
  9663. *
  9664. * @return array
  9665. * @static
  9666. */
  9667. public static function pushedJobs()
  9668. {
  9669. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9670. return $instance->pushedJobs();
  9671. }
  9672. /**
  9673. * Get the connection name for the queue.
  9674. *
  9675. * @return string
  9676. * @static
  9677. */
  9678. public static function getConnectionName()
  9679. {
  9680. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9681. return $instance->getConnectionName();
  9682. }
  9683. /**
  9684. * Set the connection name for the queue.
  9685. *
  9686. * @param string $name
  9687. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  9688. * @static
  9689. */
  9690. public static function setConnectionName($name)
  9691. {
  9692. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9693. return $instance->setConnectionName($name);
  9694. }
  9695. /**
  9696. * Get the backoff for an object-based queue handler.
  9697. *
  9698. * @param mixed $job
  9699. * @return mixed
  9700. * @static
  9701. */
  9702. public static function getJobBackoff($job)
  9703. { //Method inherited from \Illuminate\Queue\Queue
  9704. /** @var \Illuminate\Queue\SyncQueue $instance */
  9705. return $instance->getJobBackoff($job);
  9706. }
  9707. /**
  9708. * Get the expiration timestamp for an object-based queue handler.
  9709. *
  9710. * @param mixed $job
  9711. * @return mixed
  9712. * @static
  9713. */
  9714. public static function getJobExpiration($job)
  9715. { //Method inherited from \Illuminate\Queue\Queue
  9716. /** @var \Illuminate\Queue\SyncQueue $instance */
  9717. return $instance->getJobExpiration($job);
  9718. }
  9719. /**
  9720. * Register a callback to be executed when creating job payloads.
  9721. *
  9722. * @param callable|null $callback
  9723. * @return void
  9724. * @static
  9725. */
  9726. public static function createPayloadUsing($callback)
  9727. { //Method inherited from \Illuminate\Queue\Queue
  9728. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  9729. }
  9730. /**
  9731. * Get the container instance being used by the connection.
  9732. *
  9733. * @return \Illuminate\Container\Container
  9734. * @static
  9735. */
  9736. public static function getContainer()
  9737. { //Method inherited from \Illuminate\Queue\Queue
  9738. /** @var \Illuminate\Queue\SyncQueue $instance */
  9739. return $instance->getContainer();
  9740. }
  9741. /**
  9742. * Set the IoC container instance.
  9743. *
  9744. * @param \Illuminate\Container\Container $container
  9745. * @return void
  9746. * @static
  9747. */
  9748. public static function setContainer($container)
  9749. { //Method inherited from \Illuminate\Queue\Queue
  9750. /** @var \Illuminate\Queue\SyncQueue $instance */
  9751. $instance->setContainer($container);
  9752. }
  9753. }
  9754. /**
  9755. *
  9756. *
  9757. * @see \Illuminate\Cache\RateLimiter
  9758. */
  9759. class RateLimiter {
  9760. /**
  9761. * Register a named limiter configuration.
  9762. *
  9763. * @param string $name
  9764. * @param \Closure $callback
  9765. * @return \Illuminate\Cache\RateLimiter
  9766. * @static
  9767. */
  9768. public static function for($name, $callback)
  9769. {
  9770. /** @var \Illuminate\Cache\RateLimiter $instance */
  9771. return $instance->for($name, $callback);
  9772. }
  9773. /**
  9774. * Get the given named rate limiter.
  9775. *
  9776. * @param string $name
  9777. * @return \Closure
  9778. * @static
  9779. */
  9780. public static function limiter($name)
  9781. {
  9782. /** @var \Illuminate\Cache\RateLimiter $instance */
  9783. return $instance->limiter($name);
  9784. }
  9785. /**
  9786. * Attempts to execute a callback if it's not limited.
  9787. *
  9788. * @param string $key
  9789. * @param int $maxAttempts
  9790. * @param \Closure $callback
  9791. * @param int $decaySeconds
  9792. * @return mixed
  9793. * @static
  9794. */
  9795. public static function attempt($key, $maxAttempts, $callback, $decaySeconds = 60)
  9796. {
  9797. /** @var \Illuminate\Cache\RateLimiter $instance */
  9798. return $instance->attempt($key, $maxAttempts, $callback, $decaySeconds);
  9799. }
  9800. /**
  9801. * Determine if the given key has been "accessed" too many times.
  9802. *
  9803. * @param string $key
  9804. * @param int $maxAttempts
  9805. * @return bool
  9806. * @static
  9807. */
  9808. public static function tooManyAttempts($key, $maxAttempts)
  9809. {
  9810. /** @var \Illuminate\Cache\RateLimiter $instance */
  9811. return $instance->tooManyAttempts($key, $maxAttempts);
  9812. }
  9813. /**
  9814. * Increment the counter for a given key for a given decay time.
  9815. *
  9816. * @param string $key
  9817. * @param int $decaySeconds
  9818. * @return int
  9819. * @static
  9820. */
  9821. public static function hit($key, $decaySeconds = 60)
  9822. {
  9823. /** @var \Illuminate\Cache\RateLimiter $instance */
  9824. return $instance->hit($key, $decaySeconds);
  9825. }
  9826. /**
  9827. * Get the number of attempts for the given key.
  9828. *
  9829. * @param string $key
  9830. * @return mixed
  9831. * @static
  9832. */
  9833. public static function attempts($key)
  9834. {
  9835. /** @var \Illuminate\Cache\RateLimiter $instance */
  9836. return $instance->attempts($key);
  9837. }
  9838. /**
  9839. * Reset the number of attempts for the given key.
  9840. *
  9841. * @param string $key
  9842. * @return mixed
  9843. * @static
  9844. */
  9845. public static function resetAttempts($key)
  9846. {
  9847. /** @var \Illuminate\Cache\RateLimiter $instance */
  9848. return $instance->resetAttempts($key);
  9849. }
  9850. /**
  9851. * Get the number of retries left for the given key.
  9852. *
  9853. * @param string $key
  9854. * @param int $maxAttempts
  9855. * @return int
  9856. * @static
  9857. */
  9858. public static function remaining($key, $maxAttempts)
  9859. {
  9860. /** @var \Illuminate\Cache\RateLimiter $instance */
  9861. return $instance->remaining($key, $maxAttempts);
  9862. }
  9863. /**
  9864. * Get the number of retries left for the given key.
  9865. *
  9866. * @param string $key
  9867. * @param int $maxAttempts
  9868. * @return int
  9869. * @static
  9870. */
  9871. public static function retriesLeft($key, $maxAttempts)
  9872. {
  9873. /** @var \Illuminate\Cache\RateLimiter $instance */
  9874. return $instance->retriesLeft($key, $maxAttempts);
  9875. }
  9876. /**
  9877. * Clear the hits and lockout timer for the given key.
  9878. *
  9879. * @param string $key
  9880. * @return void
  9881. * @static
  9882. */
  9883. public static function clear($key)
  9884. {
  9885. /** @var \Illuminate\Cache\RateLimiter $instance */
  9886. $instance->clear($key);
  9887. }
  9888. /**
  9889. * Get the number of seconds until the "key" is accessible again.
  9890. *
  9891. * @param string $key
  9892. * @return int
  9893. * @static
  9894. */
  9895. public static function availableIn($key)
  9896. {
  9897. /** @var \Illuminate\Cache\RateLimiter $instance */
  9898. return $instance->availableIn($key);
  9899. }
  9900. /**
  9901. * Clean the rate limiter key from unicode characters.
  9902. *
  9903. * @param string $key
  9904. * @return string
  9905. * @static
  9906. */
  9907. public static function cleanRateLimiterKey($key)
  9908. {
  9909. /** @var \Illuminate\Cache\RateLimiter $instance */
  9910. return $instance->cleanRateLimiterKey($key);
  9911. }
  9912. }
  9913. /**
  9914. *
  9915. *
  9916. * @see \Illuminate\Routing\Redirector
  9917. */
  9918. class Redirect {
  9919. /**
  9920. * Create a new redirect response to the "home" route.
  9921. *
  9922. * @param int $status
  9923. * @return \Illuminate\Http\RedirectResponse
  9924. * @deprecated Will be removed in a future Laravel version.
  9925. * @static
  9926. */
  9927. public static function home($status = 302)
  9928. {
  9929. /** @var \Illuminate\Routing\Redirector $instance */
  9930. return $instance->home($status);
  9931. }
  9932. /**
  9933. * Create a new redirect response to the previous location.
  9934. *
  9935. * @param int $status
  9936. * @param array $headers
  9937. * @param mixed $fallback
  9938. * @return \Illuminate\Http\RedirectResponse
  9939. * @static
  9940. */
  9941. public static function back($status = 302, $headers = [], $fallback = false)
  9942. {
  9943. /** @var \Illuminate\Routing\Redirector $instance */
  9944. return $instance->back($status, $headers, $fallback);
  9945. }
  9946. /**
  9947. * Create a new redirect response to the current URI.
  9948. *
  9949. * @param int $status
  9950. * @param array $headers
  9951. * @return \Illuminate\Http\RedirectResponse
  9952. * @static
  9953. */
  9954. public static function refresh($status = 302, $headers = [])
  9955. {
  9956. /** @var \Illuminate\Routing\Redirector $instance */
  9957. return $instance->refresh($status, $headers);
  9958. }
  9959. /**
  9960. * Create a new redirect response, while putting the current URL in the session.
  9961. *
  9962. * @param string $path
  9963. * @param int $status
  9964. * @param array $headers
  9965. * @param bool|null $secure
  9966. * @return \Illuminate\Http\RedirectResponse
  9967. * @static
  9968. */
  9969. public static function guest($path, $status = 302, $headers = [], $secure = null)
  9970. {
  9971. /** @var \Illuminate\Routing\Redirector $instance */
  9972. return $instance->guest($path, $status, $headers, $secure);
  9973. }
  9974. /**
  9975. * Create a new redirect response to the previously intended location.
  9976. *
  9977. * @param mixed $default
  9978. * @param int $status
  9979. * @param array $headers
  9980. * @param bool|null $secure
  9981. * @return \Illuminate\Http\RedirectResponse
  9982. * @static
  9983. */
  9984. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  9985. {
  9986. /** @var \Illuminate\Routing\Redirector $instance */
  9987. return $instance->intended($default, $status, $headers, $secure);
  9988. }
  9989. /**
  9990. * Create a new redirect response to the given path.
  9991. *
  9992. * @param string $path
  9993. * @param int $status
  9994. * @param array $headers
  9995. * @param bool|null $secure
  9996. * @return \Illuminate\Http\RedirectResponse
  9997. * @static
  9998. */
  9999. public static function to($path, $status = 302, $headers = [], $secure = null)
  10000. {
  10001. /** @var \Illuminate\Routing\Redirector $instance */
  10002. return $instance->to($path, $status, $headers, $secure);
  10003. }
  10004. /**
  10005. * Create a new redirect response to an external URL (no validation).
  10006. *
  10007. * @param string $path
  10008. * @param int $status
  10009. * @param array $headers
  10010. * @return \Illuminate\Http\RedirectResponse
  10011. * @static
  10012. */
  10013. public static function away($path, $status = 302, $headers = [])
  10014. {
  10015. /** @var \Illuminate\Routing\Redirector $instance */
  10016. return $instance->away($path, $status, $headers);
  10017. }
  10018. /**
  10019. * Create a new redirect response to the given HTTPS path.
  10020. *
  10021. * @param string $path
  10022. * @param int $status
  10023. * @param array $headers
  10024. * @return \Illuminate\Http\RedirectResponse
  10025. * @static
  10026. */
  10027. public static function secure($path, $status = 302, $headers = [])
  10028. {
  10029. /** @var \Illuminate\Routing\Redirector $instance */
  10030. return $instance->secure($path, $status, $headers);
  10031. }
  10032. /**
  10033. * Create a new redirect response to a named route.
  10034. *
  10035. * @param string $route
  10036. * @param mixed $parameters
  10037. * @param int $status
  10038. * @param array $headers
  10039. * @return \Illuminate\Http\RedirectResponse
  10040. * @static
  10041. */
  10042. public static function route($route, $parameters = [], $status = 302, $headers = [])
  10043. {
  10044. /** @var \Illuminate\Routing\Redirector $instance */
  10045. return $instance->route($route, $parameters, $status, $headers);
  10046. }
  10047. /**
  10048. * Create a new redirect response to a signed named route.
  10049. *
  10050. * @param string $route
  10051. * @param mixed $parameters
  10052. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  10053. * @param int $status
  10054. * @param array $headers
  10055. * @return \Illuminate\Http\RedirectResponse
  10056. * @static
  10057. */
  10058. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  10059. {
  10060. /** @var \Illuminate\Routing\Redirector $instance */
  10061. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  10062. }
  10063. /**
  10064. * Create a new redirect response to a signed named route.
  10065. *
  10066. * @param string $route
  10067. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  10068. * @param mixed $parameters
  10069. * @param int $status
  10070. * @param array $headers
  10071. * @return \Illuminate\Http\RedirectResponse
  10072. * @static
  10073. */
  10074. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  10075. {
  10076. /** @var \Illuminate\Routing\Redirector $instance */
  10077. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  10078. }
  10079. /**
  10080. * Create a new redirect response to a controller action.
  10081. *
  10082. * @param string|array $action
  10083. * @param mixed $parameters
  10084. * @param int $status
  10085. * @param array $headers
  10086. * @return \Illuminate\Http\RedirectResponse
  10087. * @static
  10088. */
  10089. public static function action($action, $parameters = [], $status = 302, $headers = [])
  10090. {
  10091. /** @var \Illuminate\Routing\Redirector $instance */
  10092. return $instance->action($action, $parameters, $status, $headers);
  10093. }
  10094. /**
  10095. * Get the URL generator instance.
  10096. *
  10097. * @return \Illuminate\Routing\UrlGenerator
  10098. * @static
  10099. */
  10100. public static function getUrlGenerator()
  10101. {
  10102. /** @var \Illuminate\Routing\Redirector $instance */
  10103. return $instance->getUrlGenerator();
  10104. }
  10105. /**
  10106. * Set the active session store.
  10107. *
  10108. * @param \Illuminate\Session\Store $session
  10109. * @return void
  10110. * @static
  10111. */
  10112. public static function setSession($session)
  10113. {
  10114. /** @var \Illuminate\Routing\Redirector $instance */
  10115. $instance->setSession($session);
  10116. }
  10117. /**
  10118. * Get the "intended" URL from the session.
  10119. *
  10120. * @return string|null
  10121. * @static
  10122. */
  10123. public static function getIntendedUrl()
  10124. {
  10125. /** @var \Illuminate\Routing\Redirector $instance */
  10126. return $instance->getIntendedUrl();
  10127. }
  10128. /**
  10129. * Set the "intended" URL in the session.
  10130. *
  10131. * @param string $url
  10132. * @return \Illuminate\Routing\Redirector
  10133. * @static
  10134. */
  10135. public static function setIntendedUrl($url)
  10136. {
  10137. /** @var \Illuminate\Routing\Redirector $instance */
  10138. return $instance->setIntendedUrl($url);
  10139. }
  10140. /**
  10141. * Register a custom macro.
  10142. *
  10143. * @param string $name
  10144. * @param object|callable $macro
  10145. * @return void
  10146. * @static
  10147. */
  10148. public static function macro($name, $macro)
  10149. {
  10150. \Illuminate\Routing\Redirector::macro($name, $macro);
  10151. }
  10152. /**
  10153. * Mix another object into the class.
  10154. *
  10155. * @param object $mixin
  10156. * @param bool $replace
  10157. * @return void
  10158. * @throws \ReflectionException
  10159. * @static
  10160. */
  10161. public static function mixin($mixin, $replace = true)
  10162. {
  10163. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  10164. }
  10165. /**
  10166. * Checks if macro is registered.
  10167. *
  10168. * @param string $name
  10169. * @return bool
  10170. * @static
  10171. */
  10172. public static function hasMacro($name)
  10173. {
  10174. return \Illuminate\Routing\Redirector::hasMacro($name);
  10175. }
  10176. /**
  10177. * Flush the existing macros.
  10178. *
  10179. * @return void
  10180. * @static
  10181. */
  10182. public static function flushMacros()
  10183. {
  10184. \Illuminate\Routing\Redirector::flushMacros();
  10185. }
  10186. }
  10187. /**
  10188. *
  10189. *
  10190. * @method static mixed filterFiles(mixed $files)
  10191. * @see \Illuminate\Http\Request
  10192. */
  10193. class Request {
  10194. /**
  10195. * Create a new Illuminate HTTP request from server variables.
  10196. *
  10197. * @return static
  10198. * @static
  10199. */
  10200. public static function capture()
  10201. {
  10202. return \Illuminate\Http\Request::capture();
  10203. }
  10204. /**
  10205. * Return the Request instance.
  10206. *
  10207. * @return \Illuminate\Http\Request
  10208. * @static
  10209. */
  10210. public static function instance()
  10211. {
  10212. /** @var \Illuminate\Http\Request $instance */
  10213. return $instance->instance();
  10214. }
  10215. /**
  10216. * Get the request method.
  10217. *
  10218. * @return string
  10219. * @static
  10220. */
  10221. public static function method()
  10222. {
  10223. /** @var \Illuminate\Http\Request $instance */
  10224. return $instance->method();
  10225. }
  10226. /**
  10227. * Get the root URL for the application.
  10228. *
  10229. * @return string
  10230. * @static
  10231. */
  10232. public static function root()
  10233. {
  10234. /** @var \Illuminate\Http\Request $instance */
  10235. return $instance->root();
  10236. }
  10237. /**
  10238. * Get the URL (no query string) for the request.
  10239. *
  10240. * @return string
  10241. * @static
  10242. */
  10243. public static function url()
  10244. {
  10245. /** @var \Illuminate\Http\Request $instance */
  10246. return $instance->url();
  10247. }
  10248. /**
  10249. * Get the full URL for the request.
  10250. *
  10251. * @return string
  10252. * @static
  10253. */
  10254. public static function fullUrl()
  10255. {
  10256. /** @var \Illuminate\Http\Request $instance */
  10257. return $instance->fullUrl();
  10258. }
  10259. /**
  10260. * Get the full URL for the request with the added query string parameters.
  10261. *
  10262. * @param array $query
  10263. * @return string
  10264. * @static
  10265. */
  10266. public static function fullUrlWithQuery($query)
  10267. {
  10268. /** @var \Illuminate\Http\Request $instance */
  10269. return $instance->fullUrlWithQuery($query);
  10270. }
  10271. /**
  10272. * Get the full URL for the request without the given query string parameters.
  10273. *
  10274. * @param array|string $keys
  10275. * @return string
  10276. * @static
  10277. */
  10278. public static function fullUrlWithoutQuery($keys)
  10279. {
  10280. /** @var \Illuminate\Http\Request $instance */
  10281. return $instance->fullUrlWithoutQuery($keys);
  10282. }
  10283. /**
  10284. * Get the current path info for the request.
  10285. *
  10286. * @return string
  10287. * @static
  10288. */
  10289. public static function path()
  10290. {
  10291. /** @var \Illuminate\Http\Request $instance */
  10292. return $instance->path();
  10293. }
  10294. /**
  10295. * Get the current decoded path info for the request.
  10296. *
  10297. * @return string
  10298. * @static
  10299. */
  10300. public static function decodedPath()
  10301. {
  10302. /** @var \Illuminate\Http\Request $instance */
  10303. return $instance->decodedPath();
  10304. }
  10305. /**
  10306. * Get a segment from the URI (1 based index).
  10307. *
  10308. * @param int $index
  10309. * @param string|null $default
  10310. * @return string|null
  10311. * @static
  10312. */
  10313. public static function segment($index, $default = null)
  10314. {
  10315. /** @var \Illuminate\Http\Request $instance */
  10316. return $instance->segment($index, $default);
  10317. }
  10318. /**
  10319. * Get all of the segments for the request path.
  10320. *
  10321. * @return array
  10322. * @static
  10323. */
  10324. public static function segments()
  10325. {
  10326. /** @var \Illuminate\Http\Request $instance */
  10327. return $instance->segments();
  10328. }
  10329. /**
  10330. * Determine if the current request URI matches a pattern.
  10331. *
  10332. * @param mixed $patterns
  10333. * @return bool
  10334. * @static
  10335. */
  10336. public static function is(...$patterns)
  10337. {
  10338. /** @var \Illuminate\Http\Request $instance */
  10339. return $instance->is(...$patterns);
  10340. }
  10341. /**
  10342. * Determine if the route name matches a given pattern.
  10343. *
  10344. * @param mixed $patterns
  10345. * @return bool
  10346. * @static
  10347. */
  10348. public static function routeIs(...$patterns)
  10349. {
  10350. /** @var \Illuminate\Http\Request $instance */
  10351. return $instance->routeIs(...$patterns);
  10352. }
  10353. /**
  10354. * Determine if the current request URL and query string match a pattern.
  10355. *
  10356. * @param mixed $patterns
  10357. * @return bool
  10358. * @static
  10359. */
  10360. public static function fullUrlIs(...$patterns)
  10361. {
  10362. /** @var \Illuminate\Http\Request $instance */
  10363. return $instance->fullUrlIs(...$patterns);
  10364. }
  10365. /**
  10366. * Get the host name.
  10367. *
  10368. * @return string
  10369. * @static
  10370. */
  10371. public static function host()
  10372. {
  10373. /** @var \Illuminate\Http\Request $instance */
  10374. return $instance->host();
  10375. }
  10376. /**
  10377. * Get the HTTP host being requested.
  10378. *
  10379. * @return string
  10380. * @static
  10381. */
  10382. public static function httpHost()
  10383. {
  10384. /** @var \Illuminate\Http\Request $instance */
  10385. return $instance->httpHost();
  10386. }
  10387. /**
  10388. * Get the scheme and HTTP host.
  10389. *
  10390. * @return string
  10391. * @static
  10392. */
  10393. public static function schemeAndHttpHost()
  10394. {
  10395. /** @var \Illuminate\Http\Request $instance */
  10396. return $instance->schemeAndHttpHost();
  10397. }
  10398. /**
  10399. * Determine if the request is the result of an AJAX call.
  10400. *
  10401. * @return bool
  10402. * @static
  10403. */
  10404. public static function ajax()
  10405. {
  10406. /** @var \Illuminate\Http\Request $instance */
  10407. return $instance->ajax();
  10408. }
  10409. /**
  10410. * Determine if the request is the result of a PJAX call.
  10411. *
  10412. * @return bool
  10413. * @static
  10414. */
  10415. public static function pjax()
  10416. {
  10417. /** @var \Illuminate\Http\Request $instance */
  10418. return $instance->pjax();
  10419. }
  10420. /**
  10421. * Determine if the request is the result of a prefetch call.
  10422. *
  10423. * @return bool
  10424. * @static
  10425. */
  10426. public static function prefetch()
  10427. {
  10428. /** @var \Illuminate\Http\Request $instance */
  10429. return $instance->prefetch();
  10430. }
  10431. /**
  10432. * Determine if the request is over HTTPS.
  10433. *
  10434. * @return bool
  10435. * @static
  10436. */
  10437. public static function secure()
  10438. {
  10439. /** @var \Illuminate\Http\Request $instance */
  10440. return $instance->secure();
  10441. }
  10442. /**
  10443. * Get the client IP address.
  10444. *
  10445. * @return string|null
  10446. * @static
  10447. */
  10448. public static function ip()
  10449. {
  10450. /** @var \Illuminate\Http\Request $instance */
  10451. return $instance->ip();
  10452. }
  10453. /**
  10454. * Get the client IP addresses.
  10455. *
  10456. * @return array
  10457. * @static
  10458. */
  10459. public static function ips()
  10460. {
  10461. /** @var \Illuminate\Http\Request $instance */
  10462. return $instance->ips();
  10463. }
  10464. /**
  10465. * Get the client user agent.
  10466. *
  10467. * @return string|null
  10468. * @static
  10469. */
  10470. public static function userAgent()
  10471. {
  10472. /** @var \Illuminate\Http\Request $instance */
  10473. return $instance->userAgent();
  10474. }
  10475. /**
  10476. * Merge new input into the current request's input array.
  10477. *
  10478. * @param array $input
  10479. * @return \Illuminate\Http\Request
  10480. * @static
  10481. */
  10482. public static function merge($input)
  10483. {
  10484. /** @var \Illuminate\Http\Request $instance */
  10485. return $instance->merge($input);
  10486. }
  10487. /**
  10488. * Merge new input into the request's input, but only when that key is missing from the request.
  10489. *
  10490. * @param array $input
  10491. * @return \Illuminate\Http\Request
  10492. * @static
  10493. */
  10494. public static function mergeIfMissing($input)
  10495. {
  10496. /** @var \Illuminate\Http\Request $instance */
  10497. return $instance->mergeIfMissing($input);
  10498. }
  10499. /**
  10500. * Replace the input for the current request.
  10501. *
  10502. * @param array $input
  10503. * @return \Illuminate\Http\Request
  10504. * @static
  10505. */
  10506. public static function replace($input)
  10507. {
  10508. /** @var \Illuminate\Http\Request $instance */
  10509. return $instance->replace($input);
  10510. }
  10511. /**
  10512. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  10513. *
  10514. * Instead, you may use the "input" method.
  10515. *
  10516. * @param string $key
  10517. * @param mixed $default
  10518. * @return mixed
  10519. * @static
  10520. */
  10521. public static function get($key, $default = null)
  10522. {
  10523. /** @var \Illuminate\Http\Request $instance */
  10524. return $instance->get($key, $default);
  10525. }
  10526. /**
  10527. * Get the JSON payload for the request.
  10528. *
  10529. * @param string|null $key
  10530. * @param mixed $default
  10531. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  10532. * @static
  10533. */
  10534. public static function json($key = null, $default = null)
  10535. {
  10536. /** @var \Illuminate\Http\Request $instance */
  10537. return $instance->json($key, $default);
  10538. }
  10539. /**
  10540. * Create a new request instance from the given Laravel request.
  10541. *
  10542. * @param \Illuminate\Http\Request $from
  10543. * @param \Illuminate\Http\Request|null $to
  10544. * @return static
  10545. * @static
  10546. */
  10547. public static function createFrom($from, $to = null)
  10548. {
  10549. return \Illuminate\Http\Request::createFrom($from, $to);
  10550. }
  10551. /**
  10552. * Create an Illuminate request from a Symfony instance.
  10553. *
  10554. * @param \Symfony\Component\HttpFoundation\Request $request
  10555. * @return static
  10556. * @static
  10557. */
  10558. public static function createFromBase($request)
  10559. {
  10560. return \Illuminate\Http\Request::createFromBase($request);
  10561. }
  10562. /**
  10563. * Clones a request and overrides some of its parameters.
  10564. *
  10565. * @return static
  10566. * @param array $query The GET parameters
  10567. * @param array $request The POST parameters
  10568. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  10569. * @param array $cookies The COOKIE parameters
  10570. * @param array $files The FILES parameters
  10571. * @param array $server The SERVER parameters
  10572. * @static
  10573. */
  10574. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  10575. {
  10576. /** @var \Illuminate\Http\Request $instance */
  10577. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  10578. }
  10579. /**
  10580. * Whether the request contains a Session object.
  10581. *
  10582. * This method does not give any information about the state of the session object,
  10583. * like whether the session is started or not. It is just a way to check if this Request
  10584. * is associated with a Session instance.
  10585. *
  10586. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  10587. * @static
  10588. */
  10589. public static function hasSession($skipIfUninitialized = false)
  10590. {
  10591. /** @var \Illuminate\Http\Request $instance */
  10592. return $instance->hasSession($skipIfUninitialized);
  10593. }
  10594. /**
  10595. * Gets the Session.
  10596. *
  10597. * @static
  10598. */
  10599. public static function getSession()
  10600. {
  10601. /** @var \Illuminate\Http\Request $instance */
  10602. return $instance->getSession();
  10603. }
  10604. /**
  10605. * Get the session associated with the request.
  10606. *
  10607. * @return \Illuminate\Contracts\Session\Session
  10608. * @throws \RuntimeException
  10609. * @static
  10610. */
  10611. public static function session()
  10612. {
  10613. /** @var \Illuminate\Http\Request $instance */
  10614. return $instance->session();
  10615. }
  10616. /**
  10617. * Set the session instance on the request.
  10618. *
  10619. * @param \Illuminate\Contracts\Session\Session $session
  10620. * @return void
  10621. * @static
  10622. */
  10623. public static function setLaravelSession($session)
  10624. {
  10625. /** @var \Illuminate\Http\Request $instance */
  10626. $instance->setLaravelSession($session);
  10627. }
  10628. /**
  10629. * Set the locale for the request instance.
  10630. *
  10631. * @param string $locale
  10632. * @return void
  10633. * @static
  10634. */
  10635. public static function setRequestLocale($locale)
  10636. {
  10637. /** @var \Illuminate\Http\Request $instance */
  10638. $instance->setRequestLocale($locale);
  10639. }
  10640. /**
  10641. * Set the default locale for the request instance.
  10642. *
  10643. * @param string $locale
  10644. * @return void
  10645. * @static
  10646. */
  10647. public static function setDefaultRequestLocale($locale)
  10648. {
  10649. /** @var \Illuminate\Http\Request $instance */
  10650. $instance->setDefaultRequestLocale($locale);
  10651. }
  10652. /**
  10653. * Get the user making the request.
  10654. *
  10655. * @param string|null $guard
  10656. * @return mixed
  10657. * @static
  10658. */
  10659. public static function user($guard = null)
  10660. {
  10661. /** @var \Illuminate\Http\Request $instance */
  10662. return $instance->user($guard);
  10663. }
  10664. /**
  10665. * Get the route handling the request.
  10666. *
  10667. * @param string|null $param
  10668. * @param mixed $default
  10669. * @return \Illuminate\Routing\Route|object|string|null
  10670. * @static
  10671. */
  10672. public static function route($param = null, $default = null)
  10673. {
  10674. /** @var \Illuminate\Http\Request $instance */
  10675. return $instance->route($param, $default);
  10676. }
  10677. /**
  10678. * Get a unique fingerprint for the request / route / IP address.
  10679. *
  10680. * @return string
  10681. * @throws \RuntimeException
  10682. * @static
  10683. */
  10684. public static function fingerprint()
  10685. {
  10686. /** @var \Illuminate\Http\Request $instance */
  10687. return $instance->fingerprint();
  10688. }
  10689. /**
  10690. * Set the JSON payload for the request.
  10691. *
  10692. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  10693. * @return \Illuminate\Http\Request
  10694. * @static
  10695. */
  10696. public static function setJson($json)
  10697. {
  10698. /** @var \Illuminate\Http\Request $instance */
  10699. return $instance->setJson($json);
  10700. }
  10701. /**
  10702. * Get the user resolver callback.
  10703. *
  10704. * @return \Closure
  10705. * @static
  10706. */
  10707. public static function getUserResolver()
  10708. {
  10709. /** @var \Illuminate\Http\Request $instance */
  10710. return $instance->getUserResolver();
  10711. }
  10712. /**
  10713. * Set the user resolver callback.
  10714. *
  10715. * @param \Closure $callback
  10716. * @return \Illuminate\Http\Request
  10717. * @static
  10718. */
  10719. public static function setUserResolver($callback)
  10720. {
  10721. /** @var \Illuminate\Http\Request $instance */
  10722. return $instance->setUserResolver($callback);
  10723. }
  10724. /**
  10725. * Get the route resolver callback.
  10726. *
  10727. * @return \Closure
  10728. * @static
  10729. */
  10730. public static function getRouteResolver()
  10731. {
  10732. /** @var \Illuminate\Http\Request $instance */
  10733. return $instance->getRouteResolver();
  10734. }
  10735. /**
  10736. * Set the route resolver callback.
  10737. *
  10738. * @param \Closure $callback
  10739. * @return \Illuminate\Http\Request
  10740. * @static
  10741. */
  10742. public static function setRouteResolver($callback)
  10743. {
  10744. /** @var \Illuminate\Http\Request $instance */
  10745. return $instance->setRouteResolver($callback);
  10746. }
  10747. /**
  10748. * Get all of the input and files for the request.
  10749. *
  10750. * @return array
  10751. * @static
  10752. */
  10753. public static function toArray()
  10754. {
  10755. /** @var \Illuminate\Http\Request $instance */
  10756. return $instance->toArray();
  10757. }
  10758. /**
  10759. * Determine if the given offset exists.
  10760. *
  10761. * @param string $offset
  10762. * @return bool
  10763. * @static
  10764. */
  10765. public static function offsetExists($offset)
  10766. {
  10767. /** @var \Illuminate\Http\Request $instance */
  10768. return $instance->offsetExists($offset);
  10769. }
  10770. /**
  10771. * Get the value at the given offset.
  10772. *
  10773. * @param string $offset
  10774. * @return mixed
  10775. * @static
  10776. */
  10777. public static function offsetGet($offset)
  10778. {
  10779. /** @var \Illuminate\Http\Request $instance */
  10780. return $instance->offsetGet($offset);
  10781. }
  10782. /**
  10783. * Set the value at the given offset.
  10784. *
  10785. * @param string $offset
  10786. * @param mixed $value
  10787. * @return void
  10788. * @static
  10789. */
  10790. public static function offsetSet($offset, $value)
  10791. {
  10792. /** @var \Illuminate\Http\Request $instance */
  10793. $instance->offsetSet($offset, $value);
  10794. }
  10795. /**
  10796. * Remove the value at the given offset.
  10797. *
  10798. * @param string $offset
  10799. * @return void
  10800. * @static
  10801. */
  10802. public static function offsetUnset($offset)
  10803. {
  10804. /** @var \Illuminate\Http\Request $instance */
  10805. $instance->offsetUnset($offset);
  10806. }
  10807. /**
  10808. * Sets the parameters for this request.
  10809. *
  10810. * This method also re-initializes all properties.
  10811. *
  10812. * @param array $query The GET parameters
  10813. * @param array $request The POST parameters
  10814. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  10815. * @param array $cookies The COOKIE parameters
  10816. * @param array $files The FILES parameters
  10817. * @param array $server The SERVER parameters
  10818. * @param string|resource|null $content The raw body data
  10819. * @static
  10820. */
  10821. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  10822. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10823. /** @var \Illuminate\Http\Request $instance */
  10824. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  10825. }
  10826. /**
  10827. * Creates a new request with values from PHP's super globals.
  10828. *
  10829. * @static
  10830. */
  10831. public static function createFromGlobals()
  10832. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10833. return \Illuminate\Http\Request::createFromGlobals();
  10834. }
  10835. /**
  10836. * Creates a Request based on a given URI and configuration.
  10837. *
  10838. * The information contained in the URI always take precedence
  10839. * over the other information (server and parameters).
  10840. *
  10841. * @param string $uri The URI
  10842. * @param string $method The HTTP method
  10843. * @param array $parameters The query (GET) or request (POST) parameters
  10844. * @param array $cookies The request cookies ($_COOKIE)
  10845. * @param array $files The request files ($_FILES)
  10846. * @param array $server The server parameters ($_SERVER)
  10847. * @param string|resource|null $content The raw body data
  10848. * @static
  10849. */
  10850. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  10851. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10852. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  10853. }
  10854. /**
  10855. * Sets a callable able to create a Request instance.
  10856. *
  10857. * This is mainly useful when you need to override the Request class
  10858. * to keep BC with an existing system. It should not be used for any
  10859. * other purpose.
  10860. *
  10861. * @static
  10862. */
  10863. public static function setFactory($callable)
  10864. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10865. return \Illuminate\Http\Request::setFactory($callable);
  10866. }
  10867. /**
  10868. * Overrides the PHP global variables according to this request instance.
  10869. *
  10870. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  10871. * $_FILES is never overridden, see rfc1867
  10872. *
  10873. * @static
  10874. */
  10875. public static function overrideGlobals()
  10876. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10877. /** @var \Illuminate\Http\Request $instance */
  10878. return $instance->overrideGlobals();
  10879. }
  10880. /**
  10881. * Sets a list of trusted proxies.
  10882. *
  10883. * You should only list the reverse proxies that you manage directly.
  10884. *
  10885. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  10886. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  10887. * @static
  10888. */
  10889. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  10890. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10891. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  10892. }
  10893. /**
  10894. * Gets the list of trusted proxies.
  10895. *
  10896. * @static
  10897. */
  10898. public static function getTrustedProxies()
  10899. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10900. return \Illuminate\Http\Request::getTrustedProxies();
  10901. }
  10902. /**
  10903. * Gets the set of trusted headers from trusted proxies.
  10904. *
  10905. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  10906. * @static
  10907. */
  10908. public static function getTrustedHeaderSet()
  10909. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10910. return \Illuminate\Http\Request::getTrustedHeaderSet();
  10911. }
  10912. /**
  10913. * Sets a list of trusted host patterns.
  10914. *
  10915. * You should only list the hosts you manage using regexs.
  10916. *
  10917. * @param array $hostPatterns A list of trusted host patterns
  10918. * @static
  10919. */
  10920. public static function setTrustedHosts($hostPatterns)
  10921. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10922. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  10923. }
  10924. /**
  10925. * Gets the list of trusted host patterns.
  10926. *
  10927. * @static
  10928. */
  10929. public static function getTrustedHosts()
  10930. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10931. return \Illuminate\Http\Request::getTrustedHosts();
  10932. }
  10933. /**
  10934. * Normalizes a query string.
  10935. *
  10936. * It builds a normalized query string, where keys/value pairs are alphabetized,
  10937. * have consistent escaping and unneeded delimiters are removed.
  10938. *
  10939. * @static
  10940. */
  10941. public static function normalizeQueryString($qs)
  10942. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10943. return \Illuminate\Http\Request::normalizeQueryString($qs);
  10944. }
  10945. /**
  10946. * Enables support for the _method request parameter to determine the intended HTTP method.
  10947. *
  10948. * Be warned that enabling this feature might lead to CSRF issues in your code.
  10949. * Check that you are using CSRF tokens when required.
  10950. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  10951. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  10952. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  10953. *
  10954. * The HTTP method can only be overridden when the real HTTP method is POST.
  10955. *
  10956. * @static
  10957. */
  10958. public static function enableHttpMethodParameterOverride()
  10959. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10960. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  10961. }
  10962. /**
  10963. * Checks whether support for the _method request parameter is enabled.
  10964. *
  10965. * @static
  10966. */
  10967. public static function getHttpMethodParameterOverride()
  10968. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10969. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  10970. }
  10971. /**
  10972. * Whether the request contains a Session which was started in one of the
  10973. * previous requests.
  10974. *
  10975. * @static
  10976. */
  10977. public static function hasPreviousSession()
  10978. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10979. /** @var \Illuminate\Http\Request $instance */
  10980. return $instance->hasPreviousSession();
  10981. }
  10982. /**
  10983. *
  10984. *
  10985. * @static
  10986. */
  10987. public static function setSession($session)
  10988. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10989. /** @var \Illuminate\Http\Request $instance */
  10990. return $instance->setSession($session);
  10991. }
  10992. /**
  10993. *
  10994. *
  10995. * @internal
  10996. * @param \Symfony\Component\HttpFoundation\callable(): SessionInterface $factory
  10997. * @static
  10998. */
  10999. public static function setSessionFactory($factory)
  11000. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11001. /** @var \Illuminate\Http\Request $instance */
  11002. return $instance->setSessionFactory($factory);
  11003. }
  11004. /**
  11005. * Returns the client IP addresses.
  11006. *
  11007. * In the returned array the most trusted IP address is first, and the
  11008. * least trusted one last. The "real" client IP address is the last one,
  11009. * but this is also the least trusted one. Trusted proxies are stripped.
  11010. *
  11011. * Use this method carefully; you should use getClientIp() instead.
  11012. *
  11013. * @see getClientIp()
  11014. * @static
  11015. */
  11016. public static function getClientIps()
  11017. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11018. /** @var \Illuminate\Http\Request $instance */
  11019. return $instance->getClientIps();
  11020. }
  11021. /**
  11022. * Returns the client IP address.
  11023. *
  11024. * This method can read the client IP address from the "X-Forwarded-For" header
  11025. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  11026. * header value is a comma+space separated list of IP addresses, the left-most
  11027. * being the original client, and each successive proxy that passed the request
  11028. * adding the IP address where it received the request from.
  11029. *
  11030. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  11031. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  11032. * argument of the Request::setTrustedProxies() method instead.
  11033. *
  11034. * @see getClientIps()
  11035. * @see https://wikipedia.org/wiki/X-Forwarded-For
  11036. * @static
  11037. */
  11038. public static function getClientIp()
  11039. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11040. /** @var \Illuminate\Http\Request $instance */
  11041. return $instance->getClientIp();
  11042. }
  11043. /**
  11044. * Returns current script name.
  11045. *
  11046. * @static
  11047. */
  11048. public static function getScriptName()
  11049. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11050. /** @var \Illuminate\Http\Request $instance */
  11051. return $instance->getScriptName();
  11052. }
  11053. /**
  11054. * Returns the path being requested relative to the executed script.
  11055. *
  11056. * The path info always starts with a /.
  11057. *
  11058. * Suppose this request is instantiated from /mysite on localhost:
  11059. *
  11060. * * http://localhost/mysite returns an empty string
  11061. * * http://localhost/mysite/about returns '/about'
  11062. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  11063. * * http://localhost/mysite/about?var=1 returns '/about'
  11064. *
  11065. * @return string The raw path (i.e. not urldecoded)
  11066. * @static
  11067. */
  11068. public static function getPathInfo()
  11069. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11070. /** @var \Illuminate\Http\Request $instance */
  11071. return $instance->getPathInfo();
  11072. }
  11073. /**
  11074. * Returns the root path from which this request is executed.
  11075. *
  11076. * Suppose that an index.php file instantiates this request object:
  11077. *
  11078. * * http://localhost/index.php returns an empty string
  11079. * * http://localhost/index.php/page returns an empty string
  11080. * * http://localhost/web/index.php returns '/web'
  11081. * * http://localhost/we%20b/index.php returns '/we%20b'
  11082. *
  11083. * @return string The raw path (i.e. not urldecoded)
  11084. * @static
  11085. */
  11086. public static function getBasePath()
  11087. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11088. /** @var \Illuminate\Http\Request $instance */
  11089. return $instance->getBasePath();
  11090. }
  11091. /**
  11092. * Returns the root URL from which this request is executed.
  11093. *
  11094. * The base URL never ends with a /.
  11095. *
  11096. * This is similar to getBasePath(), except that it also includes the
  11097. * script filename (e.g. index.php) if one exists.
  11098. *
  11099. * @return string The raw URL (i.e. not urldecoded)
  11100. * @static
  11101. */
  11102. public static function getBaseUrl()
  11103. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11104. /** @var \Illuminate\Http\Request $instance */
  11105. return $instance->getBaseUrl();
  11106. }
  11107. /**
  11108. * Gets the request's scheme.
  11109. *
  11110. * @static
  11111. */
  11112. public static function getScheme()
  11113. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11114. /** @var \Illuminate\Http\Request $instance */
  11115. return $instance->getScheme();
  11116. }
  11117. /**
  11118. * Returns the port on which the request is made.
  11119. *
  11120. * This method can read the client port from the "X-Forwarded-Port" header
  11121. * when trusted proxies were set via "setTrustedProxies()".
  11122. *
  11123. * The "X-Forwarded-Port" header must contain the client port.
  11124. *
  11125. * @return int|string|null Can be a string if fetched from the server bag
  11126. * @static
  11127. */
  11128. public static function getPort()
  11129. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11130. /** @var \Illuminate\Http\Request $instance */
  11131. return $instance->getPort();
  11132. }
  11133. /**
  11134. * Returns the user.
  11135. *
  11136. * @static
  11137. */
  11138. public static function getUser()
  11139. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11140. /** @var \Illuminate\Http\Request $instance */
  11141. return $instance->getUser();
  11142. }
  11143. /**
  11144. * Returns the password.
  11145. *
  11146. * @static
  11147. */
  11148. public static function getPassword()
  11149. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11150. /** @var \Illuminate\Http\Request $instance */
  11151. return $instance->getPassword();
  11152. }
  11153. /**
  11154. * Gets the user info.
  11155. *
  11156. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  11157. * @static
  11158. */
  11159. public static function getUserInfo()
  11160. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11161. /** @var \Illuminate\Http\Request $instance */
  11162. return $instance->getUserInfo();
  11163. }
  11164. /**
  11165. * Returns the HTTP host being requested.
  11166. *
  11167. * The port name will be appended to the host if it's non-standard.
  11168. *
  11169. * @static
  11170. */
  11171. public static function getHttpHost()
  11172. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11173. /** @var \Illuminate\Http\Request $instance */
  11174. return $instance->getHttpHost();
  11175. }
  11176. /**
  11177. * Returns the requested URI (path and query string).
  11178. *
  11179. * @return string The raw URI (i.e. not URI decoded)
  11180. * @static
  11181. */
  11182. public static function getRequestUri()
  11183. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11184. /** @var \Illuminate\Http\Request $instance */
  11185. return $instance->getRequestUri();
  11186. }
  11187. /**
  11188. * Gets the scheme and HTTP host.
  11189. *
  11190. * If the URL was called with basic authentication, the user
  11191. * and the password are not added to the generated string.
  11192. *
  11193. * @static
  11194. */
  11195. public static function getSchemeAndHttpHost()
  11196. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11197. /** @var \Illuminate\Http\Request $instance */
  11198. return $instance->getSchemeAndHttpHost();
  11199. }
  11200. /**
  11201. * Generates a normalized URI (URL) for the Request.
  11202. *
  11203. * @see getQueryString()
  11204. * @static
  11205. */
  11206. public static function getUri()
  11207. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11208. /** @var \Illuminate\Http\Request $instance */
  11209. return $instance->getUri();
  11210. }
  11211. /**
  11212. * Generates a normalized URI for the given path.
  11213. *
  11214. * @param string $path A path to use instead of the current one
  11215. * @static
  11216. */
  11217. public static function getUriForPath($path)
  11218. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11219. /** @var \Illuminate\Http\Request $instance */
  11220. return $instance->getUriForPath($path);
  11221. }
  11222. /**
  11223. * Returns the path as relative reference from the current Request path.
  11224. *
  11225. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  11226. * Both paths must be absolute and not contain relative parts.
  11227. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  11228. * Furthermore, they can be used to reduce the link size in documents.
  11229. *
  11230. * Example target paths, given a base path of "/a/b/c/d":
  11231. * - "/a/b/c/d" -> ""
  11232. * - "/a/b/c/" -> "./"
  11233. * - "/a/b/" -> "../"
  11234. * - "/a/b/c/other" -> "other"
  11235. * - "/a/x/y" -> "../../x/y"
  11236. *
  11237. * @static
  11238. */
  11239. public static function getRelativeUriForPath($path)
  11240. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11241. /** @var \Illuminate\Http\Request $instance */
  11242. return $instance->getRelativeUriForPath($path);
  11243. }
  11244. /**
  11245. * Generates the normalized query string for the Request.
  11246. *
  11247. * It builds a normalized query string, where keys/value pairs are alphabetized
  11248. * and have consistent escaping.
  11249. *
  11250. * @static
  11251. */
  11252. public static function getQueryString()
  11253. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11254. /** @var \Illuminate\Http\Request $instance */
  11255. return $instance->getQueryString();
  11256. }
  11257. /**
  11258. * Checks whether the request is secure or not.
  11259. *
  11260. * This method can read the client protocol from the "X-Forwarded-Proto" header
  11261. * when trusted proxies were set via "setTrustedProxies()".
  11262. *
  11263. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  11264. *
  11265. * @static
  11266. */
  11267. public static function isSecure()
  11268. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11269. /** @var \Illuminate\Http\Request $instance */
  11270. return $instance->isSecure();
  11271. }
  11272. /**
  11273. * Returns the host name.
  11274. *
  11275. * This method can read the client host name from the "X-Forwarded-Host" header
  11276. * when trusted proxies were set via "setTrustedProxies()".
  11277. *
  11278. * The "X-Forwarded-Host" header must contain the client host name.
  11279. *
  11280. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  11281. * @static
  11282. */
  11283. public static function getHost()
  11284. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11285. /** @var \Illuminate\Http\Request $instance */
  11286. return $instance->getHost();
  11287. }
  11288. /**
  11289. * Sets the request method.
  11290. *
  11291. * @static
  11292. */
  11293. public static function setMethod($method)
  11294. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11295. /** @var \Illuminate\Http\Request $instance */
  11296. return $instance->setMethod($method);
  11297. }
  11298. /**
  11299. * Gets the request "intended" method.
  11300. *
  11301. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  11302. * then it is used to determine the "real" intended HTTP method.
  11303. *
  11304. * The _method request parameter can also be used to determine the HTTP method,
  11305. * but only if enableHttpMethodParameterOverride() has been called.
  11306. *
  11307. * The method is always an uppercased string.
  11308. *
  11309. * @see getRealMethod()
  11310. * @static
  11311. */
  11312. public static function getMethod()
  11313. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11314. /** @var \Illuminate\Http\Request $instance */
  11315. return $instance->getMethod();
  11316. }
  11317. /**
  11318. * Gets the "real" request method.
  11319. *
  11320. * @see getMethod()
  11321. * @static
  11322. */
  11323. public static function getRealMethod()
  11324. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11325. /** @var \Illuminate\Http\Request $instance */
  11326. return $instance->getRealMethod();
  11327. }
  11328. /**
  11329. * Gets the mime type associated with the format.
  11330. *
  11331. * @static
  11332. */
  11333. public static function getMimeType($format)
  11334. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11335. /** @var \Illuminate\Http\Request $instance */
  11336. return $instance->getMimeType($format);
  11337. }
  11338. /**
  11339. * Gets the mime types associated with the format.
  11340. *
  11341. * @static
  11342. */
  11343. public static function getMimeTypes($format)
  11344. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11345. return \Illuminate\Http\Request::getMimeTypes($format);
  11346. }
  11347. /**
  11348. * Gets the format associated with the mime type.
  11349. *
  11350. * @static
  11351. */
  11352. public static function getFormat($mimeType)
  11353. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11354. /** @var \Illuminate\Http\Request $instance */
  11355. return $instance->getFormat($mimeType);
  11356. }
  11357. /**
  11358. * Associates a format with mime types.
  11359. *
  11360. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  11361. * @static
  11362. */
  11363. public static function setFormat($format, $mimeTypes)
  11364. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11365. /** @var \Illuminate\Http\Request $instance */
  11366. return $instance->setFormat($format, $mimeTypes);
  11367. }
  11368. /**
  11369. * Gets the request format.
  11370. *
  11371. * Here is the process to determine the format:
  11372. *
  11373. * * format defined by the user (with setRequestFormat())
  11374. * * _format request attribute
  11375. * * $default
  11376. *
  11377. * @see getPreferredFormat
  11378. * @static
  11379. */
  11380. public static function getRequestFormat($default = 'html')
  11381. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11382. /** @var \Illuminate\Http\Request $instance */
  11383. return $instance->getRequestFormat($default);
  11384. }
  11385. /**
  11386. * Sets the request format.
  11387. *
  11388. * @static
  11389. */
  11390. public static function setRequestFormat($format)
  11391. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11392. /** @var \Illuminate\Http\Request $instance */
  11393. return $instance->setRequestFormat($format);
  11394. }
  11395. /**
  11396. * Gets the format associated with the request.
  11397. *
  11398. * @static
  11399. */
  11400. public static function getContentType()
  11401. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11402. /** @var \Illuminate\Http\Request $instance */
  11403. return $instance->getContentType();
  11404. }
  11405. /**
  11406. * Sets the default locale.
  11407. *
  11408. * @static
  11409. */
  11410. public static function setDefaultLocale($locale)
  11411. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11412. /** @var \Illuminate\Http\Request $instance */
  11413. return $instance->setDefaultLocale($locale);
  11414. }
  11415. /**
  11416. * Get the default locale.
  11417. *
  11418. * @static
  11419. */
  11420. public static function getDefaultLocale()
  11421. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11422. /** @var \Illuminate\Http\Request $instance */
  11423. return $instance->getDefaultLocale();
  11424. }
  11425. /**
  11426. * Sets the locale.
  11427. *
  11428. * @static
  11429. */
  11430. public static function setLocale($locale)
  11431. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11432. /** @var \Illuminate\Http\Request $instance */
  11433. return $instance->setLocale($locale);
  11434. }
  11435. /**
  11436. * Get the locale.
  11437. *
  11438. * @static
  11439. */
  11440. public static function getLocale()
  11441. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11442. /** @var \Illuminate\Http\Request $instance */
  11443. return $instance->getLocale();
  11444. }
  11445. /**
  11446. * Checks if the request method is of specified type.
  11447. *
  11448. * @param string $method Uppercase request method (GET, POST etc)
  11449. * @static
  11450. */
  11451. public static function isMethod($method)
  11452. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11453. /** @var \Illuminate\Http\Request $instance */
  11454. return $instance->isMethod($method);
  11455. }
  11456. /**
  11457. * Checks whether or not the method is safe.
  11458. *
  11459. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  11460. * @static
  11461. */
  11462. public static function isMethodSafe()
  11463. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11464. /** @var \Illuminate\Http\Request $instance */
  11465. return $instance->isMethodSafe();
  11466. }
  11467. /**
  11468. * Checks whether or not the method is idempotent.
  11469. *
  11470. * @static
  11471. */
  11472. public static function isMethodIdempotent()
  11473. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11474. /** @var \Illuminate\Http\Request $instance */
  11475. return $instance->isMethodIdempotent();
  11476. }
  11477. /**
  11478. * Checks whether the method is cacheable or not.
  11479. *
  11480. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  11481. * @static
  11482. */
  11483. public static function isMethodCacheable()
  11484. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11485. /** @var \Illuminate\Http\Request $instance */
  11486. return $instance->isMethodCacheable();
  11487. }
  11488. /**
  11489. * Returns the protocol version.
  11490. *
  11491. * If the application is behind a proxy, the protocol version used in the
  11492. * requests between the client and the proxy and between the proxy and the
  11493. * server might be different. This returns the former (from the "Via" header)
  11494. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  11495. * the latter (from the "SERVER_PROTOCOL" server parameter).
  11496. *
  11497. * @static
  11498. */
  11499. public static function getProtocolVersion()
  11500. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11501. /** @var \Illuminate\Http\Request $instance */
  11502. return $instance->getProtocolVersion();
  11503. }
  11504. /**
  11505. * Returns the request body content.
  11506. *
  11507. * @param bool $asResource If true, a resource will be returned
  11508. * @return string|resource
  11509. * @static
  11510. */
  11511. public static function getContent($asResource = false)
  11512. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11513. /** @var \Illuminate\Http\Request $instance */
  11514. return $instance->getContent($asResource);
  11515. }
  11516. /**
  11517. * Gets the Etags.
  11518. *
  11519. * @static
  11520. */
  11521. public static function getETags()
  11522. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11523. /** @var \Illuminate\Http\Request $instance */
  11524. return $instance->getETags();
  11525. }
  11526. /**
  11527. *
  11528. *
  11529. * @static
  11530. */
  11531. public static function isNoCache()
  11532. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11533. /** @var \Illuminate\Http\Request $instance */
  11534. return $instance->isNoCache();
  11535. }
  11536. /**
  11537. * Gets the preferred format for the response by inspecting, in the following order:
  11538. * * the request format set using setRequestFormat;
  11539. * * the values of the Accept HTTP header.
  11540. *
  11541. * Note that if you use this method, you should send the "Vary: Accept" header
  11542. * in the response to prevent any issues with intermediary HTTP caches.
  11543. *
  11544. * @static
  11545. */
  11546. public static function getPreferredFormat($default = 'html')
  11547. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11548. /** @var \Illuminate\Http\Request $instance */
  11549. return $instance->getPreferredFormat($default);
  11550. }
  11551. /**
  11552. * Returns the preferred language.
  11553. *
  11554. * @param string[] $locales An array of ordered available locales
  11555. * @static
  11556. */
  11557. public static function getPreferredLanguage($locales = null)
  11558. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11559. /** @var \Illuminate\Http\Request $instance */
  11560. return $instance->getPreferredLanguage($locales);
  11561. }
  11562. /**
  11563. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  11564. *
  11565. * @static
  11566. */
  11567. public static function getLanguages()
  11568. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11569. /** @var \Illuminate\Http\Request $instance */
  11570. return $instance->getLanguages();
  11571. }
  11572. /**
  11573. * Gets a list of charsets acceptable by the client browser in preferable order.
  11574. *
  11575. * @static
  11576. */
  11577. public static function getCharsets()
  11578. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11579. /** @var \Illuminate\Http\Request $instance */
  11580. return $instance->getCharsets();
  11581. }
  11582. /**
  11583. * Gets a list of encodings acceptable by the client browser in preferable order.
  11584. *
  11585. * @static
  11586. */
  11587. public static function getEncodings()
  11588. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11589. /** @var \Illuminate\Http\Request $instance */
  11590. return $instance->getEncodings();
  11591. }
  11592. /**
  11593. * Gets a list of content types acceptable by the client browser in preferable order.
  11594. *
  11595. * @static
  11596. */
  11597. public static function getAcceptableContentTypes()
  11598. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11599. /** @var \Illuminate\Http\Request $instance */
  11600. return $instance->getAcceptableContentTypes();
  11601. }
  11602. /**
  11603. * Returns true if the request is an XMLHttpRequest.
  11604. *
  11605. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  11606. * It is known to work with common JavaScript frameworks:
  11607. *
  11608. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  11609. * @static
  11610. */
  11611. public static function isXmlHttpRequest()
  11612. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11613. /** @var \Illuminate\Http\Request $instance */
  11614. return $instance->isXmlHttpRequest();
  11615. }
  11616. /**
  11617. * Checks whether the client browser prefers safe content or not according to RFC8674.
  11618. *
  11619. * @see https://tools.ietf.org/html/rfc8674
  11620. * @static
  11621. */
  11622. public static function preferSafeContent()
  11623. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11624. /** @var \Illuminate\Http\Request $instance */
  11625. return $instance->preferSafeContent();
  11626. }
  11627. /**
  11628. * Indicates whether this request originated from a trusted proxy.
  11629. *
  11630. * This can be useful to determine whether or not to trust the
  11631. * contents of a proxy-specific header.
  11632. *
  11633. * @static
  11634. */
  11635. public static function isFromTrustedProxy()
  11636. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11637. /** @var \Illuminate\Http\Request $instance */
  11638. return $instance->isFromTrustedProxy();
  11639. }
  11640. /**
  11641. * Filter the given array of rules into an array of rules that are included in precognitive headers.
  11642. *
  11643. * @param array $rules
  11644. * @return array
  11645. * @static
  11646. */
  11647. public static function filterPrecognitiveRules($rules)
  11648. {
  11649. /** @var \Illuminate\Http\Request $instance */
  11650. return $instance->filterPrecognitiveRules($rules);
  11651. }
  11652. /**
  11653. * Determine if the request is attempting to be precognitive.
  11654. *
  11655. * @return bool
  11656. * @static
  11657. */
  11658. public static function isAttemptingPrecognition()
  11659. {
  11660. /** @var \Illuminate\Http\Request $instance */
  11661. return $instance->isAttemptingPrecognition();
  11662. }
  11663. /**
  11664. * Determine if the request is precognitive.
  11665. *
  11666. * @return bool
  11667. * @static
  11668. */
  11669. public static function isPrecognitive()
  11670. {
  11671. /** @var \Illuminate\Http\Request $instance */
  11672. return $instance->isPrecognitive();
  11673. }
  11674. /**
  11675. * Determine if the request is sending JSON.
  11676. *
  11677. * @return bool
  11678. * @static
  11679. */
  11680. public static function isJson()
  11681. {
  11682. /** @var \Illuminate\Http\Request $instance */
  11683. return $instance->isJson();
  11684. }
  11685. /**
  11686. * Determine if the current request probably expects a JSON response.
  11687. *
  11688. * @return bool
  11689. * @static
  11690. */
  11691. public static function expectsJson()
  11692. {
  11693. /** @var \Illuminate\Http\Request $instance */
  11694. return $instance->expectsJson();
  11695. }
  11696. /**
  11697. * Determine if the current request is asking for JSON.
  11698. *
  11699. * @return bool
  11700. * @static
  11701. */
  11702. public static function wantsJson()
  11703. {
  11704. /** @var \Illuminate\Http\Request $instance */
  11705. return $instance->wantsJson();
  11706. }
  11707. /**
  11708. * Determines whether the current requests accepts a given content type.
  11709. *
  11710. * @param string|array $contentTypes
  11711. * @return bool
  11712. * @static
  11713. */
  11714. public static function accepts($contentTypes)
  11715. {
  11716. /** @var \Illuminate\Http\Request $instance */
  11717. return $instance->accepts($contentTypes);
  11718. }
  11719. /**
  11720. * Return the most suitable content type from the given array based on content negotiation.
  11721. *
  11722. * @param string|array $contentTypes
  11723. * @return string|null
  11724. * @static
  11725. */
  11726. public static function prefers($contentTypes)
  11727. {
  11728. /** @var \Illuminate\Http\Request $instance */
  11729. return $instance->prefers($contentTypes);
  11730. }
  11731. /**
  11732. * Determine if the current request accepts any content type.
  11733. *
  11734. * @return bool
  11735. * @static
  11736. */
  11737. public static function acceptsAnyContentType()
  11738. {
  11739. /** @var \Illuminate\Http\Request $instance */
  11740. return $instance->acceptsAnyContentType();
  11741. }
  11742. /**
  11743. * Determines whether a request accepts JSON.
  11744. *
  11745. * @return bool
  11746. * @static
  11747. */
  11748. public static function acceptsJson()
  11749. {
  11750. /** @var \Illuminate\Http\Request $instance */
  11751. return $instance->acceptsJson();
  11752. }
  11753. /**
  11754. * Determines whether a request accepts HTML.
  11755. *
  11756. * @return bool
  11757. * @static
  11758. */
  11759. public static function acceptsHtml()
  11760. {
  11761. /** @var \Illuminate\Http\Request $instance */
  11762. return $instance->acceptsHtml();
  11763. }
  11764. /**
  11765. * Determine if the given content types match.
  11766. *
  11767. * @param string $actual
  11768. * @param string $type
  11769. * @return bool
  11770. * @static
  11771. */
  11772. public static function matchesType($actual, $type)
  11773. {
  11774. return \Illuminate\Http\Request::matchesType($actual, $type);
  11775. }
  11776. /**
  11777. * Get the data format expected in the response.
  11778. *
  11779. * @param string $default
  11780. * @return string
  11781. * @static
  11782. */
  11783. public static function format($default = 'html')
  11784. {
  11785. /** @var \Illuminate\Http\Request $instance */
  11786. return $instance->format($default);
  11787. }
  11788. /**
  11789. * Retrieve an old input item.
  11790. *
  11791. * @param string|null $key
  11792. * @param \Illuminate\Database\Eloquent\Model|string|array|null $default
  11793. * @return string|array|null
  11794. * @static
  11795. */
  11796. public static function old($key = null, $default = null)
  11797. {
  11798. /** @var \Illuminate\Http\Request $instance */
  11799. return $instance->old($key, $default);
  11800. }
  11801. /**
  11802. * Flash the input for the current request to the session.
  11803. *
  11804. * @return void
  11805. * @static
  11806. */
  11807. public static function flash()
  11808. {
  11809. /** @var \Illuminate\Http\Request $instance */
  11810. $instance->flash();
  11811. }
  11812. /**
  11813. * Flash only some of the input to the session.
  11814. *
  11815. * @param array|mixed $keys
  11816. * @return void
  11817. * @static
  11818. */
  11819. public static function flashOnly($keys)
  11820. {
  11821. /** @var \Illuminate\Http\Request $instance */
  11822. $instance->flashOnly($keys);
  11823. }
  11824. /**
  11825. * Flash only some of the input to the session.
  11826. *
  11827. * @param array|mixed $keys
  11828. * @return void
  11829. * @static
  11830. */
  11831. public static function flashExcept($keys)
  11832. {
  11833. /** @var \Illuminate\Http\Request $instance */
  11834. $instance->flashExcept($keys);
  11835. }
  11836. /**
  11837. * Flush all of the old input from the session.
  11838. *
  11839. * @return void
  11840. * @static
  11841. */
  11842. public static function flush()
  11843. {
  11844. /** @var \Illuminate\Http\Request $instance */
  11845. $instance->flush();
  11846. }
  11847. /**
  11848. * Retrieve a server variable from the request.
  11849. *
  11850. * @param string|null $key
  11851. * @param string|array|null $default
  11852. * @return string|array|null
  11853. * @static
  11854. */
  11855. public static function server($key = null, $default = null)
  11856. {
  11857. /** @var \Illuminate\Http\Request $instance */
  11858. return $instance->server($key, $default);
  11859. }
  11860. /**
  11861. * Determine if a header is set on the request.
  11862. *
  11863. * @param string $key
  11864. * @return bool
  11865. * @static
  11866. */
  11867. public static function hasHeader($key)
  11868. {
  11869. /** @var \Illuminate\Http\Request $instance */
  11870. return $instance->hasHeader($key);
  11871. }
  11872. /**
  11873. * Retrieve a header from the request.
  11874. *
  11875. * @param string|null $key
  11876. * @param string|array|null $default
  11877. * @return string|array|null
  11878. * @static
  11879. */
  11880. public static function header($key = null, $default = null)
  11881. {
  11882. /** @var \Illuminate\Http\Request $instance */
  11883. return $instance->header($key, $default);
  11884. }
  11885. /**
  11886. * Get the bearer token from the request headers.
  11887. *
  11888. * @return string|null
  11889. * @static
  11890. */
  11891. public static function bearerToken()
  11892. {
  11893. /** @var \Illuminate\Http\Request $instance */
  11894. return $instance->bearerToken();
  11895. }
  11896. /**
  11897. * Determine if the request contains a given input item key.
  11898. *
  11899. * @param string|array $key
  11900. * @return bool
  11901. * @static
  11902. */
  11903. public static function exists($key)
  11904. {
  11905. /** @var \Illuminate\Http\Request $instance */
  11906. return $instance->exists($key);
  11907. }
  11908. /**
  11909. * Determine if the request contains a given input item key.
  11910. *
  11911. * @param string|array $key
  11912. * @return bool
  11913. * @static
  11914. */
  11915. public static function has($key)
  11916. {
  11917. /** @var \Illuminate\Http\Request $instance */
  11918. return $instance->has($key);
  11919. }
  11920. /**
  11921. * Determine if the request contains any of the given inputs.
  11922. *
  11923. * @param string|array $keys
  11924. * @return bool
  11925. * @static
  11926. */
  11927. public static function hasAny($keys)
  11928. {
  11929. /** @var \Illuminate\Http\Request $instance */
  11930. return $instance->hasAny($keys);
  11931. }
  11932. /**
  11933. * Apply the callback if the request contains the given input item key.
  11934. *
  11935. * @param string $key
  11936. * @param callable $callback
  11937. * @param callable|null $default
  11938. * @return $this|mixed
  11939. * @static
  11940. */
  11941. public static function whenHas($key, $callback, $default = null)
  11942. {
  11943. /** @var \Illuminate\Http\Request $instance */
  11944. return $instance->whenHas($key, $callback, $default);
  11945. }
  11946. /**
  11947. * Determine if the request contains a non-empty value for an input item.
  11948. *
  11949. * @param string|array $key
  11950. * @return bool
  11951. * @static
  11952. */
  11953. public static function filled($key)
  11954. {
  11955. /** @var \Illuminate\Http\Request $instance */
  11956. return $instance->filled($key);
  11957. }
  11958. /**
  11959. * Determine if the request contains an empty value for an input item.
  11960. *
  11961. * @param string|array $key
  11962. * @return bool
  11963. * @static
  11964. */
  11965. public static function isNotFilled($key)
  11966. {
  11967. /** @var \Illuminate\Http\Request $instance */
  11968. return $instance->isNotFilled($key);
  11969. }
  11970. /**
  11971. * Determine if the request contains a non-empty value for any of the given inputs.
  11972. *
  11973. * @param string|array $keys
  11974. * @return bool
  11975. * @static
  11976. */
  11977. public static function anyFilled($keys)
  11978. {
  11979. /** @var \Illuminate\Http\Request $instance */
  11980. return $instance->anyFilled($keys);
  11981. }
  11982. /**
  11983. * Apply the callback if the request contains a non-empty value for the given input item key.
  11984. *
  11985. * @param string $key
  11986. * @param callable $callback
  11987. * @param callable|null $default
  11988. * @return $this|mixed
  11989. * @static
  11990. */
  11991. public static function whenFilled($key, $callback, $default = null)
  11992. {
  11993. /** @var \Illuminate\Http\Request $instance */
  11994. return $instance->whenFilled($key, $callback, $default);
  11995. }
  11996. /**
  11997. * Determine if the request is missing a given input item key.
  11998. *
  11999. * @param string|array $key
  12000. * @return bool
  12001. * @static
  12002. */
  12003. public static function missing($key)
  12004. {
  12005. /** @var \Illuminate\Http\Request $instance */
  12006. return $instance->missing($key);
  12007. }
  12008. /**
  12009. * Get the keys for all of the input and files.
  12010. *
  12011. * @return array
  12012. * @static
  12013. */
  12014. public static function keys()
  12015. {
  12016. /** @var \Illuminate\Http\Request $instance */
  12017. return $instance->keys();
  12018. }
  12019. /**
  12020. * Get all of the input and files for the request.
  12021. *
  12022. * @param array|mixed|null $keys
  12023. * @return array
  12024. * @static
  12025. */
  12026. public static function all($keys = null)
  12027. {
  12028. /** @var \Illuminate\Http\Request $instance */
  12029. return $instance->all($keys);
  12030. }
  12031. /**
  12032. * Retrieve an input item from the request.
  12033. *
  12034. * @param string|null $key
  12035. * @param mixed $default
  12036. * @return mixed
  12037. * @static
  12038. */
  12039. public static function input($key = null, $default = null)
  12040. {
  12041. /** @var \Illuminate\Http\Request $instance */
  12042. return $instance->input($key, $default);
  12043. }
  12044. /**
  12045. * Retrieve input from the request as a Stringable instance.
  12046. *
  12047. * @param string $key
  12048. * @param mixed $default
  12049. * @return \Illuminate\Support\Stringable
  12050. * @static
  12051. */
  12052. public static function str($key, $default = null)
  12053. {
  12054. /** @var \Illuminate\Http\Request $instance */
  12055. return $instance->str($key, $default);
  12056. }
  12057. /**
  12058. * Retrieve input from the request as a Stringable instance.
  12059. *
  12060. * @param string $key
  12061. * @param mixed $default
  12062. * @return \Illuminate\Support\Stringable
  12063. * @static
  12064. */
  12065. public static function string($key, $default = null)
  12066. {
  12067. /** @var \Illuminate\Http\Request $instance */
  12068. return $instance->string($key, $default);
  12069. }
  12070. /**
  12071. * Retrieve input as a boolean value.
  12072. *
  12073. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  12074. *
  12075. * @param string|null $key
  12076. * @param bool $default
  12077. * @return bool
  12078. * @static
  12079. */
  12080. public static function boolean($key = null, $default = false)
  12081. {
  12082. /** @var \Illuminate\Http\Request $instance */
  12083. return $instance->boolean($key, $default);
  12084. }
  12085. /**
  12086. * Retrieve input as an integer value.
  12087. *
  12088. * @param string $key
  12089. * @param int $default
  12090. * @return int
  12091. * @static
  12092. */
  12093. public static function integer($key, $default = 0)
  12094. {
  12095. /** @var \Illuminate\Http\Request $instance */
  12096. return $instance->integer($key, $default);
  12097. }
  12098. /**
  12099. * Retrieve input as a float value.
  12100. *
  12101. * @param string $key
  12102. * @param float $default
  12103. * @return float
  12104. * @static
  12105. */
  12106. public static function float($key, $default = 0.0)
  12107. {
  12108. /** @var \Illuminate\Http\Request $instance */
  12109. return $instance->float($key, $default);
  12110. }
  12111. /**
  12112. * Retrieve input from the request as a Carbon instance.
  12113. *
  12114. * @param string $key
  12115. * @param string|null $format
  12116. * @param string|null $tz
  12117. * @return \Illuminate\Support\Carbon|null
  12118. * @throws \Carbon\Exceptions\InvalidFormatException
  12119. * @static
  12120. */
  12121. public static function date($key, $format = null, $tz = null)
  12122. {
  12123. /** @var \Illuminate\Http\Request $instance */
  12124. return $instance->date($key, $format, $tz);
  12125. }
  12126. /**
  12127. * Retrieve input from the request as an enum.
  12128. *
  12129. * @template TEnum
  12130. * @param string $key
  12131. * @param \Illuminate\Http\class-string<TEnum> $enumClass
  12132. * @return \Illuminate\Http\TEnum|null
  12133. * @static
  12134. */
  12135. public static function enum($key, $enumClass)
  12136. {
  12137. /** @var \Illuminate\Http\Request $instance */
  12138. return $instance->enum($key, $enumClass);
  12139. }
  12140. /**
  12141. * Retrieve input from the request as a collection.
  12142. *
  12143. * @param array|string|null $key
  12144. * @return \Illuminate\Support\Collection
  12145. * @static
  12146. */
  12147. public static function collect($key = null)
  12148. {
  12149. /** @var \Illuminate\Http\Request $instance */
  12150. return $instance->collect($key);
  12151. }
  12152. /**
  12153. * Get a subset containing the provided keys with values from the input data.
  12154. *
  12155. * @param array|mixed $keys
  12156. * @return array
  12157. * @static
  12158. */
  12159. public static function only($keys)
  12160. {
  12161. /** @var \Illuminate\Http\Request $instance */
  12162. return $instance->only($keys);
  12163. }
  12164. /**
  12165. * Get all of the input except for a specified array of items.
  12166. *
  12167. * @param array|mixed $keys
  12168. * @return array
  12169. * @static
  12170. */
  12171. public static function except($keys)
  12172. {
  12173. /** @var \Illuminate\Http\Request $instance */
  12174. return $instance->except($keys);
  12175. }
  12176. /**
  12177. * Retrieve a query string item from the request.
  12178. *
  12179. * @param string|null $key
  12180. * @param string|array|null $default
  12181. * @return string|array|null
  12182. * @static
  12183. */
  12184. public static function query($key = null, $default = null)
  12185. {
  12186. /** @var \Illuminate\Http\Request $instance */
  12187. return $instance->query($key, $default);
  12188. }
  12189. /**
  12190. * Retrieve a request payload item from the request.
  12191. *
  12192. * @param string|null $key
  12193. * @param string|array|null $default
  12194. * @return string|array|null
  12195. * @static
  12196. */
  12197. public static function post($key = null, $default = null)
  12198. {
  12199. /** @var \Illuminate\Http\Request $instance */
  12200. return $instance->post($key, $default);
  12201. }
  12202. /**
  12203. * Determine if a cookie is set on the request.
  12204. *
  12205. * @param string $key
  12206. * @return bool
  12207. * @static
  12208. */
  12209. public static function hasCookie($key)
  12210. {
  12211. /** @var \Illuminate\Http\Request $instance */
  12212. return $instance->hasCookie($key);
  12213. }
  12214. /**
  12215. * Retrieve a cookie from the request.
  12216. *
  12217. * @param string|null $key
  12218. * @param string|array|null $default
  12219. * @return string|array|null
  12220. * @static
  12221. */
  12222. public static function cookie($key = null, $default = null)
  12223. {
  12224. /** @var \Illuminate\Http\Request $instance */
  12225. return $instance->cookie($key, $default);
  12226. }
  12227. /**
  12228. * Get an array of all of the files on the request.
  12229. *
  12230. * @return array
  12231. * @static
  12232. */
  12233. public static function allFiles()
  12234. {
  12235. /** @var \Illuminate\Http\Request $instance */
  12236. return $instance->allFiles();
  12237. }
  12238. /**
  12239. * Determine if the uploaded data contains a file.
  12240. *
  12241. * @param string $key
  12242. * @return bool
  12243. * @static
  12244. */
  12245. public static function hasFile($key)
  12246. {
  12247. /** @var \Illuminate\Http\Request $instance */
  12248. return $instance->hasFile($key);
  12249. }
  12250. /**
  12251. * Retrieve a file from the request.
  12252. *
  12253. * @param string|null $key
  12254. * @param mixed $default
  12255. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  12256. * @static
  12257. */
  12258. public static function file($key = null, $default = null)
  12259. {
  12260. /** @var \Illuminate\Http\Request $instance */
  12261. return $instance->file($key, $default);
  12262. }
  12263. /**
  12264. * Dump the request items and end the script.
  12265. *
  12266. * @param mixed $keys
  12267. * @return \Illuminate\Http\never
  12268. * @static
  12269. */
  12270. public static function dd(...$keys)
  12271. {
  12272. /** @var \Illuminate\Http\Request $instance */
  12273. return $instance->dd(...$keys);
  12274. }
  12275. /**
  12276. * Dump the items.
  12277. *
  12278. * @param mixed $keys
  12279. * @return \Illuminate\Http\Request
  12280. * @static
  12281. */
  12282. public static function dump($keys = [])
  12283. {
  12284. /** @var \Illuminate\Http\Request $instance */
  12285. return $instance->dump($keys);
  12286. }
  12287. /**
  12288. * Register a custom macro.
  12289. *
  12290. * @param string $name
  12291. * @param object|callable $macro
  12292. * @return void
  12293. * @static
  12294. */
  12295. public static function macro($name, $macro)
  12296. {
  12297. \Illuminate\Http\Request::macro($name, $macro);
  12298. }
  12299. /**
  12300. * Mix another object into the class.
  12301. *
  12302. * @param object $mixin
  12303. * @param bool $replace
  12304. * @return void
  12305. * @throws \ReflectionException
  12306. * @static
  12307. */
  12308. public static function mixin($mixin, $replace = true)
  12309. {
  12310. \Illuminate\Http\Request::mixin($mixin, $replace);
  12311. }
  12312. /**
  12313. * Checks if macro is registered.
  12314. *
  12315. * @param string $name
  12316. * @return bool
  12317. * @static
  12318. */
  12319. public static function hasMacro($name)
  12320. {
  12321. return \Illuminate\Http\Request::hasMacro($name);
  12322. }
  12323. /**
  12324. * Flush the existing macros.
  12325. *
  12326. * @return void
  12327. * @static
  12328. */
  12329. public static function flushMacros()
  12330. {
  12331. \Illuminate\Http\Request::flushMacros();
  12332. }
  12333. /**
  12334. *
  12335. *
  12336. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  12337. * @param array $rules
  12338. * @param mixed $params
  12339. * @static
  12340. */
  12341. public static function validate($rules, ...$params)
  12342. {
  12343. return \Illuminate\Http\Request::validate($rules, ...$params);
  12344. }
  12345. /**
  12346. *
  12347. *
  12348. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  12349. * @param string $errorBag
  12350. * @param array $rules
  12351. * @param mixed $params
  12352. * @static
  12353. */
  12354. public static function validateWithBag($errorBag, $rules, ...$params)
  12355. {
  12356. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  12357. }
  12358. /**
  12359. *
  12360. *
  12361. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12362. * @param mixed $absolute
  12363. * @static
  12364. */
  12365. public static function hasValidSignature($absolute = true)
  12366. {
  12367. return \Illuminate\Http\Request::hasValidSignature($absolute);
  12368. }
  12369. /**
  12370. *
  12371. *
  12372. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12373. * @static
  12374. */
  12375. public static function hasValidRelativeSignature()
  12376. {
  12377. return \Illuminate\Http\Request::hasValidRelativeSignature();
  12378. }
  12379. /**
  12380. *
  12381. *
  12382. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12383. * @param mixed $ignoreQuery
  12384. * @param mixed $absolute
  12385. * @static
  12386. */
  12387. public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  12388. {
  12389. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  12390. }
  12391. }
  12392. /**
  12393. *
  12394. *
  12395. * @see \Illuminate\Contracts\Routing\ResponseFactory
  12396. */
  12397. class Response {
  12398. /**
  12399. * Create a new response instance.
  12400. *
  12401. * @param mixed $content
  12402. * @param int $status
  12403. * @param array $headers
  12404. * @return \Illuminate\Http\Response
  12405. * @static
  12406. */
  12407. public static function make($content = '', $status = 200, $headers = [])
  12408. {
  12409. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12410. return $instance->make($content, $status, $headers);
  12411. }
  12412. /**
  12413. * Create a new "no content" response.
  12414. *
  12415. * @param int $status
  12416. * @param array $headers
  12417. * @return \Illuminate\Http\Response
  12418. * @static
  12419. */
  12420. public static function noContent($status = 204, $headers = [])
  12421. {
  12422. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12423. return $instance->noContent($status, $headers);
  12424. }
  12425. /**
  12426. * Create a new response for a given view.
  12427. *
  12428. * @param string|array $view
  12429. * @param array $data
  12430. * @param int $status
  12431. * @param array $headers
  12432. * @return \Illuminate\Http\Response
  12433. * @static
  12434. */
  12435. public static function view($view, $data = [], $status = 200, $headers = [])
  12436. {
  12437. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12438. return $instance->view($view, $data, $status, $headers);
  12439. }
  12440. /**
  12441. * Create a new JSON response instance.
  12442. *
  12443. * @param mixed $data
  12444. * @param int $status
  12445. * @param array $headers
  12446. * @param int $options
  12447. * @return \Illuminate\Http\JsonResponse
  12448. * @static
  12449. */
  12450. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  12451. {
  12452. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12453. return $instance->json($data, $status, $headers, $options);
  12454. }
  12455. /**
  12456. * Create a new JSONP response instance.
  12457. *
  12458. * @param string $callback
  12459. * @param mixed $data
  12460. * @param int $status
  12461. * @param array $headers
  12462. * @param int $options
  12463. * @return \Illuminate\Http\JsonResponse
  12464. * @static
  12465. */
  12466. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  12467. {
  12468. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12469. return $instance->jsonp($callback, $data, $status, $headers, $options);
  12470. }
  12471. /**
  12472. * Create a new streamed response instance.
  12473. *
  12474. * @param \Closure $callback
  12475. * @param int $status
  12476. * @param array $headers
  12477. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12478. * @static
  12479. */
  12480. public static function stream($callback, $status = 200, $headers = [])
  12481. {
  12482. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12483. return $instance->stream($callback, $status, $headers);
  12484. }
  12485. /**
  12486. * Create a new streamed response instance as a file download.
  12487. *
  12488. * @param \Closure $callback
  12489. * @param string|null $name
  12490. * @param array $headers
  12491. * @param string|null $disposition
  12492. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12493. * @static
  12494. */
  12495. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  12496. {
  12497. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12498. return $instance->streamDownload($callback, $name, $headers, $disposition);
  12499. }
  12500. /**
  12501. * Create a new file download response.
  12502. *
  12503. * @param \SplFileInfo|string $file
  12504. * @param string|null $name
  12505. * @param array $headers
  12506. * @param string|null $disposition
  12507. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  12508. * @static
  12509. */
  12510. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  12511. {
  12512. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12513. return $instance->download($file, $name, $headers, $disposition);
  12514. }
  12515. /**
  12516. * Return the raw contents of a binary file.
  12517. *
  12518. * @param \SplFileInfo|string $file
  12519. * @param array $headers
  12520. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  12521. * @static
  12522. */
  12523. public static function file($file, $headers = [])
  12524. {
  12525. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12526. return $instance->file($file, $headers);
  12527. }
  12528. /**
  12529. * Create a new redirect response to the given path.
  12530. *
  12531. * @param string $path
  12532. * @param int $status
  12533. * @param array $headers
  12534. * @param bool|null $secure
  12535. * @return \Illuminate\Http\RedirectResponse
  12536. * @static
  12537. */
  12538. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  12539. {
  12540. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12541. return $instance->redirectTo($path, $status, $headers, $secure);
  12542. }
  12543. /**
  12544. * Create a new redirect response to a named route.
  12545. *
  12546. * @param string $route
  12547. * @param mixed $parameters
  12548. * @param int $status
  12549. * @param array $headers
  12550. * @return \Illuminate\Http\RedirectResponse
  12551. * @static
  12552. */
  12553. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  12554. {
  12555. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12556. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  12557. }
  12558. /**
  12559. * Create a new redirect response to a controller action.
  12560. *
  12561. * @param string $action
  12562. * @param mixed $parameters
  12563. * @param int $status
  12564. * @param array $headers
  12565. * @return \Illuminate\Http\RedirectResponse
  12566. * @static
  12567. */
  12568. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  12569. {
  12570. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12571. return $instance->redirectToAction($action, $parameters, $status, $headers);
  12572. }
  12573. /**
  12574. * Create a new redirect response, while putting the current URL in the session.
  12575. *
  12576. * @param string $path
  12577. * @param int $status
  12578. * @param array $headers
  12579. * @param bool|null $secure
  12580. * @return \Illuminate\Http\RedirectResponse
  12581. * @static
  12582. */
  12583. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  12584. {
  12585. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12586. return $instance->redirectGuest($path, $status, $headers, $secure);
  12587. }
  12588. /**
  12589. * Create a new redirect response to the previously intended location.
  12590. *
  12591. * @param string $default
  12592. * @param int $status
  12593. * @param array $headers
  12594. * @param bool|null $secure
  12595. * @return \Illuminate\Http\RedirectResponse
  12596. * @static
  12597. */
  12598. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  12599. {
  12600. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12601. return $instance->redirectToIntended($default, $status, $headers, $secure);
  12602. }
  12603. /**
  12604. * Register a custom macro.
  12605. *
  12606. * @param string $name
  12607. * @param object|callable $macro
  12608. * @return void
  12609. * @static
  12610. */
  12611. public static function macro($name, $macro)
  12612. {
  12613. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  12614. }
  12615. /**
  12616. * Mix another object into the class.
  12617. *
  12618. * @param object $mixin
  12619. * @param bool $replace
  12620. * @return void
  12621. * @throws \ReflectionException
  12622. * @static
  12623. */
  12624. public static function mixin($mixin, $replace = true)
  12625. {
  12626. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  12627. }
  12628. /**
  12629. * Checks if macro is registered.
  12630. *
  12631. * @param string $name
  12632. * @return bool
  12633. * @static
  12634. */
  12635. public static function hasMacro($name)
  12636. {
  12637. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  12638. }
  12639. /**
  12640. * Flush the existing macros.
  12641. *
  12642. * @return void
  12643. * @static
  12644. */
  12645. public static function flushMacros()
  12646. {
  12647. \Illuminate\Routing\ResponseFactory::flushMacros();
  12648. }
  12649. }
  12650. /**
  12651. *
  12652. *
  12653. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  12654. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  12655. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  12656. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  12657. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  12658. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  12659. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  12660. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  12661. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  12662. * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
  12663. * @see \Illuminate\Routing\Router
  12664. */
  12665. class Route {
  12666. /**
  12667. * Register a new GET route with the router.
  12668. *
  12669. * @param string $uri
  12670. * @param array|string|callable|null $action
  12671. * @return \Illuminate\Routing\Route
  12672. * @static
  12673. */
  12674. public static function get($uri, $action = null)
  12675. {
  12676. /** @var \Illuminate\Routing\Router $instance */
  12677. return $instance->get($uri, $action);
  12678. }
  12679. /**
  12680. * Register a new POST route with the router.
  12681. *
  12682. * @param string $uri
  12683. * @param array|string|callable|null $action
  12684. * @return \Illuminate\Routing\Route
  12685. * @static
  12686. */
  12687. public static function post($uri, $action = null)
  12688. {
  12689. /** @var \Illuminate\Routing\Router $instance */
  12690. return $instance->post($uri, $action);
  12691. }
  12692. /**
  12693. * Register a new PUT route with the router.
  12694. *
  12695. * @param string $uri
  12696. * @param array|string|callable|null $action
  12697. * @return \Illuminate\Routing\Route
  12698. * @static
  12699. */
  12700. public static function put($uri, $action = null)
  12701. {
  12702. /** @var \Illuminate\Routing\Router $instance */
  12703. return $instance->put($uri, $action);
  12704. }
  12705. /**
  12706. * Register a new PATCH route with the router.
  12707. *
  12708. * @param string $uri
  12709. * @param array|string|callable|null $action
  12710. * @return \Illuminate\Routing\Route
  12711. * @static
  12712. */
  12713. public static function patch($uri, $action = null)
  12714. {
  12715. /** @var \Illuminate\Routing\Router $instance */
  12716. return $instance->patch($uri, $action);
  12717. }
  12718. /**
  12719. * Register a new DELETE route with the router.
  12720. *
  12721. * @param string $uri
  12722. * @param array|string|callable|null $action
  12723. * @return \Illuminate\Routing\Route
  12724. * @static
  12725. */
  12726. public static function delete($uri, $action = null)
  12727. {
  12728. /** @var \Illuminate\Routing\Router $instance */
  12729. return $instance->delete($uri, $action);
  12730. }
  12731. /**
  12732. * Register a new OPTIONS route with the router.
  12733. *
  12734. * @param string $uri
  12735. * @param array|string|callable|null $action
  12736. * @return \Illuminate\Routing\Route
  12737. * @static
  12738. */
  12739. public static function options($uri, $action = null)
  12740. {
  12741. /** @var \Illuminate\Routing\Router $instance */
  12742. return $instance->options($uri, $action);
  12743. }
  12744. /**
  12745. * Register a new route responding to all verbs.
  12746. *
  12747. * @param string $uri
  12748. * @param array|string|callable|null $action
  12749. * @return \Illuminate\Routing\Route
  12750. * @static
  12751. */
  12752. public static function any($uri, $action = null)
  12753. {
  12754. /** @var \Illuminate\Routing\Router $instance */
  12755. return $instance->any($uri, $action);
  12756. }
  12757. /**
  12758. * Register a new Fallback route with the router.
  12759. *
  12760. * @param array|string|callable|null $action
  12761. * @return \Illuminate\Routing\Route
  12762. * @static
  12763. */
  12764. public static function fallback($action)
  12765. {
  12766. /** @var \Illuminate\Routing\Router $instance */
  12767. return $instance->fallback($action);
  12768. }
  12769. /**
  12770. * Create a redirect from one URI to another.
  12771. *
  12772. * @param string $uri
  12773. * @param string $destination
  12774. * @param int $status
  12775. * @return \Illuminate\Routing\Route
  12776. * @static
  12777. */
  12778. public static function redirect($uri, $destination, $status = 302)
  12779. {
  12780. /** @var \Illuminate\Routing\Router $instance */
  12781. return $instance->redirect($uri, $destination, $status);
  12782. }
  12783. /**
  12784. * Create a permanent redirect from one URI to another.
  12785. *
  12786. * @param string $uri
  12787. * @param string $destination
  12788. * @return \Illuminate\Routing\Route
  12789. * @static
  12790. */
  12791. public static function permanentRedirect($uri, $destination)
  12792. {
  12793. /** @var \Illuminate\Routing\Router $instance */
  12794. return $instance->permanentRedirect($uri, $destination);
  12795. }
  12796. /**
  12797. * Register a new route that returns a view.
  12798. *
  12799. * @param string $uri
  12800. * @param string $view
  12801. * @param array $data
  12802. * @param int|array $status
  12803. * @param array $headers
  12804. * @return \Illuminate\Routing\Route
  12805. * @static
  12806. */
  12807. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  12808. {
  12809. /** @var \Illuminate\Routing\Router $instance */
  12810. return $instance->view($uri, $view, $data, $status, $headers);
  12811. }
  12812. /**
  12813. * Register a new route with the given verbs.
  12814. *
  12815. * @param array|string $methods
  12816. * @param string $uri
  12817. * @param array|string|callable|null $action
  12818. * @return \Illuminate\Routing\Route
  12819. * @static
  12820. */
  12821. public static function match($methods, $uri, $action = null)
  12822. {
  12823. /** @var \Illuminate\Routing\Router $instance */
  12824. return $instance->match($methods, $uri, $action);
  12825. }
  12826. /**
  12827. * Register an array of resource controllers.
  12828. *
  12829. * @param array $resources
  12830. * @param array $options
  12831. * @return void
  12832. * @static
  12833. */
  12834. public static function resources($resources, $options = [])
  12835. {
  12836. /** @var \Illuminate\Routing\Router $instance */
  12837. $instance->resources($resources, $options);
  12838. }
  12839. /**
  12840. * Route a resource to a controller.
  12841. *
  12842. * @param string $name
  12843. * @param string $controller
  12844. * @param array $options
  12845. * @return \Illuminate\Routing\PendingResourceRegistration
  12846. * @static
  12847. */
  12848. public static function resource($name, $controller, $options = [])
  12849. {
  12850. /** @var \Illuminate\Routing\Router $instance */
  12851. return $instance->resource($name, $controller, $options);
  12852. }
  12853. /**
  12854. * Register an array of API resource controllers.
  12855. *
  12856. * @param array $resources
  12857. * @param array $options
  12858. * @return void
  12859. * @static
  12860. */
  12861. public static function apiResources($resources, $options = [])
  12862. {
  12863. /** @var \Illuminate\Routing\Router $instance */
  12864. $instance->apiResources($resources, $options);
  12865. }
  12866. /**
  12867. * Route an API resource to a controller.
  12868. *
  12869. * @param string $name
  12870. * @param string $controller
  12871. * @param array $options
  12872. * @return \Illuminate\Routing\PendingResourceRegistration
  12873. * @static
  12874. */
  12875. public static function apiResource($name, $controller, $options = [])
  12876. {
  12877. /** @var \Illuminate\Routing\Router $instance */
  12878. return $instance->apiResource($name, $controller, $options);
  12879. }
  12880. /**
  12881. * Create a route group with shared attributes.
  12882. *
  12883. * @param array $attributes
  12884. * @param \Closure|array|string $routes
  12885. * @return void
  12886. * @static
  12887. */
  12888. public static function group($attributes, $routes)
  12889. {
  12890. /** @var \Illuminate\Routing\Router $instance */
  12891. $instance->group($attributes, $routes);
  12892. }
  12893. /**
  12894. * Merge the given array with the last group stack.
  12895. *
  12896. * @param array $new
  12897. * @param bool $prependExistingPrefix
  12898. * @return array
  12899. * @static
  12900. */
  12901. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  12902. {
  12903. /** @var \Illuminate\Routing\Router $instance */
  12904. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  12905. }
  12906. /**
  12907. * Get the prefix from the last group on the stack.
  12908. *
  12909. * @return string
  12910. * @static
  12911. */
  12912. public static function getLastGroupPrefix()
  12913. {
  12914. /** @var \Illuminate\Routing\Router $instance */
  12915. return $instance->getLastGroupPrefix();
  12916. }
  12917. /**
  12918. * Add a route to the underlying route collection.
  12919. *
  12920. * @param array|string $methods
  12921. * @param string $uri
  12922. * @param array|string|callable|null $action
  12923. * @return \Illuminate\Routing\Route
  12924. * @static
  12925. */
  12926. public static function addRoute($methods, $uri, $action)
  12927. {
  12928. /** @var \Illuminate\Routing\Router $instance */
  12929. return $instance->addRoute($methods, $uri, $action);
  12930. }
  12931. /**
  12932. * Create a new Route object.
  12933. *
  12934. * @param array|string $methods
  12935. * @param string $uri
  12936. * @param mixed $action
  12937. * @return \Illuminate\Routing\Route
  12938. * @static
  12939. */
  12940. public static function newRoute($methods, $uri, $action)
  12941. {
  12942. /** @var \Illuminate\Routing\Router $instance */
  12943. return $instance->newRoute($methods, $uri, $action);
  12944. }
  12945. /**
  12946. * Return the response returned by the given route.
  12947. *
  12948. * @param string $name
  12949. * @return \Symfony\Component\HttpFoundation\Response
  12950. * @static
  12951. */
  12952. public static function respondWithRoute($name)
  12953. {
  12954. /** @var \Illuminate\Routing\Router $instance */
  12955. return $instance->respondWithRoute($name);
  12956. }
  12957. /**
  12958. * Dispatch the request to the application.
  12959. *
  12960. * @param \Illuminate\Http\Request $request
  12961. * @return \Symfony\Component\HttpFoundation\Response
  12962. * @static
  12963. */
  12964. public static function dispatch($request)
  12965. {
  12966. /** @var \Illuminate\Routing\Router $instance */
  12967. return $instance->dispatch($request);
  12968. }
  12969. /**
  12970. * Dispatch the request to a route and return the response.
  12971. *
  12972. * @param \Illuminate\Http\Request $request
  12973. * @return \Symfony\Component\HttpFoundation\Response
  12974. * @static
  12975. */
  12976. public static function dispatchToRoute($request)
  12977. {
  12978. /** @var \Illuminate\Routing\Router $instance */
  12979. return $instance->dispatchToRoute($request);
  12980. }
  12981. /**
  12982. * Gather the middleware for the given route with resolved class names.
  12983. *
  12984. * @param \Illuminate\Routing\Route $route
  12985. * @return array
  12986. * @static
  12987. */
  12988. public static function gatherRouteMiddleware($route)
  12989. {
  12990. /** @var \Illuminate\Routing\Router $instance */
  12991. return $instance->gatherRouteMiddleware($route);
  12992. }
  12993. /**
  12994. * Resolve a flat array of middleware classes from the provided array.
  12995. *
  12996. * @param array $middleware
  12997. * @param array $excluded
  12998. * @return array
  12999. * @static
  13000. */
  13001. public static function resolveMiddleware($middleware, $excluded = [])
  13002. {
  13003. /** @var \Illuminate\Routing\Router $instance */
  13004. return $instance->resolveMiddleware($middleware, $excluded);
  13005. }
  13006. /**
  13007. * Create a response instance from the given value.
  13008. *
  13009. * @param \Symfony\Component\HttpFoundation\Request $request
  13010. * @param mixed $response
  13011. * @return \Symfony\Component\HttpFoundation\Response
  13012. * @static
  13013. */
  13014. public static function prepareResponse($request, $response)
  13015. {
  13016. /** @var \Illuminate\Routing\Router $instance */
  13017. return $instance->prepareResponse($request, $response);
  13018. }
  13019. /**
  13020. * Static version of prepareResponse.
  13021. *
  13022. * @param \Symfony\Component\HttpFoundation\Request $request
  13023. * @param mixed $response
  13024. * @return \Symfony\Component\HttpFoundation\Response
  13025. * @static
  13026. */
  13027. public static function toResponse($request, $response)
  13028. {
  13029. return \Illuminate\Routing\Router::toResponse($request, $response);
  13030. }
  13031. /**
  13032. * Substitute the route bindings onto the route.
  13033. *
  13034. * @param \Illuminate\Routing\Route $route
  13035. * @return \Illuminate\Routing\Route
  13036. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  13037. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  13038. * @static
  13039. */
  13040. public static function substituteBindings($route)
  13041. {
  13042. /** @var \Illuminate\Routing\Router $instance */
  13043. return $instance->substituteBindings($route);
  13044. }
  13045. /**
  13046. * Substitute the implicit route bindings for the given route.
  13047. *
  13048. * @param \Illuminate\Routing\Route $route
  13049. * @return void
  13050. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  13051. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  13052. * @static
  13053. */
  13054. public static function substituteImplicitBindings($route)
  13055. {
  13056. /** @var \Illuminate\Routing\Router $instance */
  13057. $instance->substituteImplicitBindings($route);
  13058. }
  13059. /**
  13060. * Register a route matched event listener.
  13061. *
  13062. * @param string|callable $callback
  13063. * @return void
  13064. * @static
  13065. */
  13066. public static function matched($callback)
  13067. {
  13068. /** @var \Illuminate\Routing\Router $instance */
  13069. $instance->matched($callback);
  13070. }
  13071. /**
  13072. * Get all of the defined middleware short-hand names.
  13073. *
  13074. * @return array
  13075. * @static
  13076. */
  13077. public static function getMiddleware()
  13078. {
  13079. /** @var \Illuminate\Routing\Router $instance */
  13080. return $instance->getMiddleware();
  13081. }
  13082. /**
  13083. * Register a short-hand name for a middleware.
  13084. *
  13085. * @param string $name
  13086. * @param string $class
  13087. * @return \Illuminate\Routing\Router
  13088. * @static
  13089. */
  13090. public static function aliasMiddleware($name, $class)
  13091. {
  13092. /** @var \Illuminate\Routing\Router $instance */
  13093. return $instance->aliasMiddleware($name, $class);
  13094. }
  13095. /**
  13096. * Check if a middlewareGroup with the given name exists.
  13097. *
  13098. * @param string $name
  13099. * @return bool
  13100. * @static
  13101. */
  13102. public static function hasMiddlewareGroup($name)
  13103. {
  13104. /** @var \Illuminate\Routing\Router $instance */
  13105. return $instance->hasMiddlewareGroup($name);
  13106. }
  13107. /**
  13108. * Get all of the defined middleware groups.
  13109. *
  13110. * @return array
  13111. * @static
  13112. */
  13113. public static function getMiddlewareGroups()
  13114. {
  13115. /** @var \Illuminate\Routing\Router $instance */
  13116. return $instance->getMiddlewareGroups();
  13117. }
  13118. /**
  13119. * Register a group of middleware.
  13120. *
  13121. * @param string $name
  13122. * @param array $middleware
  13123. * @return \Illuminate\Routing\Router
  13124. * @static
  13125. */
  13126. public static function middlewareGroup($name, $middleware)
  13127. {
  13128. /** @var \Illuminate\Routing\Router $instance */
  13129. return $instance->middlewareGroup($name, $middleware);
  13130. }
  13131. /**
  13132. * Add a middleware to the beginning of a middleware group.
  13133. *
  13134. * If the middleware is already in the group, it will not be added again.
  13135. *
  13136. * @param string $group
  13137. * @param string $middleware
  13138. * @return \Illuminate\Routing\Router
  13139. * @static
  13140. */
  13141. public static function prependMiddlewareToGroup($group, $middleware)
  13142. {
  13143. /** @var \Illuminate\Routing\Router $instance */
  13144. return $instance->prependMiddlewareToGroup($group, $middleware);
  13145. }
  13146. /**
  13147. * Add a middleware to the end of a middleware group.
  13148. *
  13149. * If the middleware is already in the group, it will not be added again.
  13150. *
  13151. * @param string $group
  13152. * @param string $middleware
  13153. * @return \Illuminate\Routing\Router
  13154. * @static
  13155. */
  13156. public static function pushMiddlewareToGroup($group, $middleware)
  13157. {
  13158. /** @var \Illuminate\Routing\Router $instance */
  13159. return $instance->pushMiddlewareToGroup($group, $middleware);
  13160. }
  13161. /**
  13162. * Flush the router's middleware groups.
  13163. *
  13164. * @return \Illuminate\Routing\Router
  13165. * @static
  13166. */
  13167. public static function flushMiddlewareGroups()
  13168. {
  13169. /** @var \Illuminate\Routing\Router $instance */
  13170. return $instance->flushMiddlewareGroups();
  13171. }
  13172. /**
  13173. * Add a new route parameter binder.
  13174. *
  13175. * @param string $key
  13176. * @param string|callable $binder
  13177. * @return void
  13178. * @static
  13179. */
  13180. public static function bind($key, $binder)
  13181. {
  13182. /** @var \Illuminate\Routing\Router $instance */
  13183. $instance->bind($key, $binder);
  13184. }
  13185. /**
  13186. * Register a model binder for a wildcard.
  13187. *
  13188. * @param string $key
  13189. * @param string $class
  13190. * @param \Closure|null $callback
  13191. * @return void
  13192. * @static
  13193. */
  13194. public static function model($key, $class, $callback = null)
  13195. {
  13196. /** @var \Illuminate\Routing\Router $instance */
  13197. $instance->model($key, $class, $callback);
  13198. }
  13199. /**
  13200. * Get the binding callback for a given binding.
  13201. *
  13202. * @param string $key
  13203. * @return \Closure|null
  13204. * @static
  13205. */
  13206. public static function getBindingCallback($key)
  13207. {
  13208. /** @var \Illuminate\Routing\Router $instance */
  13209. return $instance->getBindingCallback($key);
  13210. }
  13211. /**
  13212. * Get the global "where" patterns.
  13213. *
  13214. * @return array
  13215. * @static
  13216. */
  13217. public static function getPatterns()
  13218. {
  13219. /** @var \Illuminate\Routing\Router $instance */
  13220. return $instance->getPatterns();
  13221. }
  13222. /**
  13223. * Set a global where pattern on all routes.
  13224. *
  13225. * @param string $key
  13226. * @param string $pattern
  13227. * @return void
  13228. * @static
  13229. */
  13230. public static function pattern($key, $pattern)
  13231. {
  13232. /** @var \Illuminate\Routing\Router $instance */
  13233. $instance->pattern($key, $pattern);
  13234. }
  13235. /**
  13236. * Set a group of global where patterns on all routes.
  13237. *
  13238. * @param array $patterns
  13239. * @return void
  13240. * @static
  13241. */
  13242. public static function patterns($patterns)
  13243. {
  13244. /** @var \Illuminate\Routing\Router $instance */
  13245. $instance->patterns($patterns);
  13246. }
  13247. /**
  13248. * Determine if the router currently has a group stack.
  13249. *
  13250. * @return bool
  13251. * @static
  13252. */
  13253. public static function hasGroupStack()
  13254. {
  13255. /** @var \Illuminate\Routing\Router $instance */
  13256. return $instance->hasGroupStack();
  13257. }
  13258. /**
  13259. * Get the current group stack for the router.
  13260. *
  13261. * @return array
  13262. * @static
  13263. */
  13264. public static function getGroupStack()
  13265. {
  13266. /** @var \Illuminate\Routing\Router $instance */
  13267. return $instance->getGroupStack();
  13268. }
  13269. /**
  13270. * Get a route parameter for the current route.
  13271. *
  13272. * @param string $key
  13273. * @param string|null $default
  13274. * @return mixed
  13275. * @static
  13276. */
  13277. public static function input($key, $default = null)
  13278. {
  13279. /** @var \Illuminate\Routing\Router $instance */
  13280. return $instance->input($key, $default);
  13281. }
  13282. /**
  13283. * Get the request currently being dispatched.
  13284. *
  13285. * @return \Illuminate\Http\Request
  13286. * @static
  13287. */
  13288. public static function getCurrentRequest()
  13289. {
  13290. /** @var \Illuminate\Routing\Router $instance */
  13291. return $instance->getCurrentRequest();
  13292. }
  13293. /**
  13294. * Get the currently dispatched route instance.
  13295. *
  13296. * @return \Illuminate\Routing\Route|null
  13297. * @static
  13298. */
  13299. public static function getCurrentRoute()
  13300. {
  13301. /** @var \Illuminate\Routing\Router $instance */
  13302. return $instance->getCurrentRoute();
  13303. }
  13304. /**
  13305. * Get the currently dispatched route instance.
  13306. *
  13307. * @return \Illuminate\Routing\Route|null
  13308. * @static
  13309. */
  13310. public static function current()
  13311. {
  13312. /** @var \Illuminate\Routing\Router $instance */
  13313. return $instance->current();
  13314. }
  13315. /**
  13316. * Check if a route with the given name exists.
  13317. *
  13318. * @param string|array $name
  13319. * @return bool
  13320. * @static
  13321. */
  13322. public static function has($name)
  13323. {
  13324. /** @var \Illuminate\Routing\Router $instance */
  13325. return $instance->has($name);
  13326. }
  13327. /**
  13328. * Get the current route name.
  13329. *
  13330. * @return string|null
  13331. * @static
  13332. */
  13333. public static function currentRouteName()
  13334. {
  13335. /** @var \Illuminate\Routing\Router $instance */
  13336. return $instance->currentRouteName();
  13337. }
  13338. /**
  13339. * Alias for the "currentRouteNamed" method.
  13340. *
  13341. * @param mixed $patterns
  13342. * @return bool
  13343. * @static
  13344. */
  13345. public static function is(...$patterns)
  13346. {
  13347. /** @var \Illuminate\Routing\Router $instance */
  13348. return $instance->is(...$patterns);
  13349. }
  13350. /**
  13351. * Determine if the current route matches a pattern.
  13352. *
  13353. * @param mixed $patterns
  13354. * @return bool
  13355. * @static
  13356. */
  13357. public static function currentRouteNamed(...$patterns)
  13358. {
  13359. /** @var \Illuminate\Routing\Router $instance */
  13360. return $instance->currentRouteNamed(...$patterns);
  13361. }
  13362. /**
  13363. * Get the current route action.
  13364. *
  13365. * @return string|null
  13366. * @static
  13367. */
  13368. public static function currentRouteAction()
  13369. {
  13370. /** @var \Illuminate\Routing\Router $instance */
  13371. return $instance->currentRouteAction();
  13372. }
  13373. /**
  13374. * Alias for the "currentRouteUses" method.
  13375. *
  13376. * @param array $patterns
  13377. * @return bool
  13378. * @static
  13379. */
  13380. public static function uses(...$patterns)
  13381. {
  13382. /** @var \Illuminate\Routing\Router $instance */
  13383. return $instance->uses(...$patterns);
  13384. }
  13385. /**
  13386. * Determine if the current route action matches a given action.
  13387. *
  13388. * @param string $action
  13389. * @return bool
  13390. * @static
  13391. */
  13392. public static function currentRouteUses($action)
  13393. {
  13394. /** @var \Illuminate\Routing\Router $instance */
  13395. return $instance->currentRouteUses($action);
  13396. }
  13397. /**
  13398. * Set the unmapped global resource parameters to singular.
  13399. *
  13400. * @param bool $singular
  13401. * @return void
  13402. * @static
  13403. */
  13404. public static function singularResourceParameters($singular = true)
  13405. {
  13406. /** @var \Illuminate\Routing\Router $instance */
  13407. $instance->singularResourceParameters($singular);
  13408. }
  13409. /**
  13410. * Set the global resource parameter mapping.
  13411. *
  13412. * @param array $parameters
  13413. * @return void
  13414. * @static
  13415. */
  13416. public static function resourceParameters($parameters = [])
  13417. {
  13418. /** @var \Illuminate\Routing\Router $instance */
  13419. $instance->resourceParameters($parameters);
  13420. }
  13421. /**
  13422. * Get or set the verbs used in the resource URIs.
  13423. *
  13424. * @param array $verbs
  13425. * @return array|null
  13426. * @static
  13427. */
  13428. public static function resourceVerbs($verbs = [])
  13429. {
  13430. /** @var \Illuminate\Routing\Router $instance */
  13431. return $instance->resourceVerbs($verbs);
  13432. }
  13433. /**
  13434. * Get the underlying route collection.
  13435. *
  13436. * @return \Illuminate\Routing\RouteCollectionInterface
  13437. * @static
  13438. */
  13439. public static function getRoutes()
  13440. {
  13441. /** @var \Illuminate\Routing\Router $instance */
  13442. return $instance->getRoutes();
  13443. }
  13444. /**
  13445. * Set the route collection instance.
  13446. *
  13447. * @param \Illuminate\Routing\RouteCollection $routes
  13448. * @return void
  13449. * @static
  13450. */
  13451. public static function setRoutes($routes)
  13452. {
  13453. /** @var \Illuminate\Routing\Router $instance */
  13454. $instance->setRoutes($routes);
  13455. }
  13456. /**
  13457. * Set the compiled route collection instance.
  13458. *
  13459. * @param array $routes
  13460. * @return void
  13461. * @static
  13462. */
  13463. public static function setCompiledRoutes($routes)
  13464. {
  13465. /** @var \Illuminate\Routing\Router $instance */
  13466. $instance->setCompiledRoutes($routes);
  13467. }
  13468. /**
  13469. * Remove any duplicate middleware from the given array.
  13470. *
  13471. * @param array $middleware
  13472. * @return array
  13473. * @static
  13474. */
  13475. public static function uniqueMiddleware($middleware)
  13476. {
  13477. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  13478. }
  13479. /**
  13480. * Set the container instance used by the router.
  13481. *
  13482. * @param \Illuminate\Container\Container $container
  13483. * @return \Illuminate\Routing\Router
  13484. * @static
  13485. */
  13486. public static function setContainer($container)
  13487. {
  13488. /** @var \Illuminate\Routing\Router $instance */
  13489. return $instance->setContainer($container);
  13490. }
  13491. /**
  13492. * Register a custom macro.
  13493. *
  13494. * @param string $name
  13495. * @param object|callable $macro
  13496. * @return void
  13497. * @static
  13498. */
  13499. public static function macro($name, $macro)
  13500. {
  13501. \Illuminate\Routing\Router::macro($name, $macro);
  13502. }
  13503. /**
  13504. * Mix another object into the class.
  13505. *
  13506. * @param object $mixin
  13507. * @param bool $replace
  13508. * @return void
  13509. * @throws \ReflectionException
  13510. * @static
  13511. */
  13512. public static function mixin($mixin, $replace = true)
  13513. {
  13514. \Illuminate\Routing\Router::mixin($mixin, $replace);
  13515. }
  13516. /**
  13517. * Checks if macro is registered.
  13518. *
  13519. * @param string $name
  13520. * @return bool
  13521. * @static
  13522. */
  13523. public static function hasMacro($name)
  13524. {
  13525. return \Illuminate\Routing\Router::hasMacro($name);
  13526. }
  13527. /**
  13528. * Flush the existing macros.
  13529. *
  13530. * @return void
  13531. * @static
  13532. */
  13533. public static function flushMacros()
  13534. {
  13535. \Illuminate\Routing\Router::flushMacros();
  13536. }
  13537. /**
  13538. * Dynamically handle calls to the class.
  13539. *
  13540. * @param string $method
  13541. * @param array $parameters
  13542. * @return mixed
  13543. * @throws \BadMethodCallException
  13544. * @static
  13545. */
  13546. public static function macroCall($method, $parameters)
  13547. {
  13548. /** @var \Illuminate\Routing\Router $instance */
  13549. return $instance->macroCall($method, $parameters);
  13550. }
  13551. }
  13552. /**
  13553. *
  13554. *
  13555. * @see \Illuminate\Database\Schema\Builder
  13556. */
  13557. class Schema {
  13558. /**
  13559. * Create a database in the schema.
  13560. *
  13561. * @param string $name
  13562. * @return bool
  13563. * @static
  13564. */
  13565. public static function createDatabase($name)
  13566. {
  13567. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13568. return $instance->createDatabase($name);
  13569. }
  13570. /**
  13571. * Drop a database from the schema if the database exists.
  13572. *
  13573. * @param string $name
  13574. * @return bool
  13575. * @static
  13576. */
  13577. public static function dropDatabaseIfExists($name)
  13578. {
  13579. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13580. return $instance->dropDatabaseIfExists($name);
  13581. }
  13582. /**
  13583. * Determine if the given table exists.
  13584. *
  13585. * @param string $table
  13586. * @return bool
  13587. * @static
  13588. */
  13589. public static function hasTable($table)
  13590. {
  13591. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13592. return $instance->hasTable($table);
  13593. }
  13594. /**
  13595. * Get the column listing for a given table.
  13596. *
  13597. * @param string $table
  13598. * @return array
  13599. * @static
  13600. */
  13601. public static function getColumnListing($table)
  13602. {
  13603. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13604. return $instance->getColumnListing($table);
  13605. }
  13606. /**
  13607. * Drop all tables from the database.
  13608. *
  13609. * @return void
  13610. * @static
  13611. */
  13612. public static function dropAllTables()
  13613. {
  13614. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13615. $instance->dropAllTables();
  13616. }
  13617. /**
  13618. * Drop all views from the database.
  13619. *
  13620. * @return void
  13621. * @static
  13622. */
  13623. public static function dropAllViews()
  13624. {
  13625. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13626. $instance->dropAllViews();
  13627. }
  13628. /**
  13629. * Get all of the table names for the database.
  13630. *
  13631. * @return array
  13632. * @static
  13633. */
  13634. public static function getAllTables()
  13635. {
  13636. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13637. return $instance->getAllTables();
  13638. }
  13639. /**
  13640. * Get all of the view names for the database.
  13641. *
  13642. * @return array
  13643. * @static
  13644. */
  13645. public static function getAllViews()
  13646. {
  13647. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13648. return $instance->getAllViews();
  13649. }
  13650. /**
  13651. * Set the default string length for migrations.
  13652. *
  13653. * @param int $length
  13654. * @return void
  13655. * @static
  13656. */
  13657. public static function defaultStringLength($length)
  13658. { //Method inherited from \Illuminate\Database\Schema\Builder
  13659. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  13660. }
  13661. /**
  13662. * Set the default morph key type for migrations.
  13663. *
  13664. * @param string $type
  13665. * @return void
  13666. * @throws \InvalidArgumentException
  13667. * @static
  13668. */
  13669. public static function defaultMorphKeyType($type)
  13670. { //Method inherited from \Illuminate\Database\Schema\Builder
  13671. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  13672. }
  13673. /**
  13674. * Set the default morph key type for migrations to UUIDs.
  13675. *
  13676. * @return void
  13677. * @static
  13678. */
  13679. public static function morphUsingUuids()
  13680. { //Method inherited from \Illuminate\Database\Schema\Builder
  13681. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  13682. }
  13683. /**
  13684. * Set the default morph key type for migrations to ULIDs.
  13685. *
  13686. * @return void
  13687. * @static
  13688. */
  13689. public static function morphUsingUlids()
  13690. { //Method inherited from \Illuminate\Database\Schema\Builder
  13691. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUlids();
  13692. }
  13693. /**
  13694. * Determine if the given table has a given column.
  13695. *
  13696. * @param string $table
  13697. * @param string $column
  13698. * @return bool
  13699. * @static
  13700. */
  13701. public static function hasColumn($table, $column)
  13702. { //Method inherited from \Illuminate\Database\Schema\Builder
  13703. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13704. return $instance->hasColumn($table, $column);
  13705. }
  13706. /**
  13707. * Determine if the given table has given columns.
  13708. *
  13709. * @param string $table
  13710. * @param array $columns
  13711. * @return bool
  13712. * @static
  13713. */
  13714. public static function hasColumns($table, $columns)
  13715. { //Method inherited from \Illuminate\Database\Schema\Builder
  13716. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13717. return $instance->hasColumns($table, $columns);
  13718. }
  13719. /**
  13720. * Execute a table builder callback if the given table has a given column.
  13721. *
  13722. * @param string $table
  13723. * @param string $column
  13724. * @param \Closure $callback
  13725. * @return void
  13726. * @static
  13727. */
  13728. public static function whenTableHasColumn($table, $column, $callback)
  13729. { //Method inherited from \Illuminate\Database\Schema\Builder
  13730. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13731. $instance->whenTableHasColumn($table, $column, $callback);
  13732. }
  13733. /**
  13734. * Execute a table builder callback if the given table doesn't have a given column.
  13735. *
  13736. * @param string $table
  13737. * @param string $column
  13738. * @param \Closure $callback
  13739. * @return void
  13740. * @static
  13741. */
  13742. public static function whenTableDoesntHaveColumn($table, $column, $callback)
  13743. { //Method inherited from \Illuminate\Database\Schema\Builder
  13744. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13745. $instance->whenTableDoesntHaveColumn($table, $column, $callback);
  13746. }
  13747. /**
  13748. * Get the data type for the given column name.
  13749. *
  13750. * @param string $table
  13751. * @param string $column
  13752. * @return string
  13753. * @static
  13754. */
  13755. public static function getColumnType($table, $column)
  13756. { //Method inherited from \Illuminate\Database\Schema\Builder
  13757. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13758. return $instance->getColumnType($table, $column);
  13759. }
  13760. /**
  13761. * Modify a table on the schema.
  13762. *
  13763. * @param string $table
  13764. * @param \Closure $callback
  13765. * @return void
  13766. * @static
  13767. */
  13768. public static function table($table, $callback)
  13769. { //Method inherited from \Illuminate\Database\Schema\Builder
  13770. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13771. $instance->table($table, $callback);
  13772. }
  13773. /**
  13774. * Create a new table on the schema.
  13775. *
  13776. * @param string $table
  13777. * @param \Closure $callback
  13778. * @return void
  13779. * @static
  13780. */
  13781. public static function create($table, $callback)
  13782. { //Method inherited from \Illuminate\Database\Schema\Builder
  13783. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13784. $instance->create($table, $callback);
  13785. }
  13786. /**
  13787. * Drop a table from the schema.
  13788. *
  13789. * @param string $table
  13790. * @return void
  13791. * @static
  13792. */
  13793. public static function drop($table)
  13794. { //Method inherited from \Illuminate\Database\Schema\Builder
  13795. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13796. $instance->drop($table);
  13797. }
  13798. /**
  13799. * Drop a table from the schema if it exists.
  13800. *
  13801. * @param string $table
  13802. * @return void
  13803. * @static
  13804. */
  13805. public static function dropIfExists($table)
  13806. { //Method inherited from \Illuminate\Database\Schema\Builder
  13807. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13808. $instance->dropIfExists($table);
  13809. }
  13810. /**
  13811. * Drop columns from a table schema.
  13812. *
  13813. * @param string $table
  13814. * @param string|array $columns
  13815. * @return void
  13816. * @static
  13817. */
  13818. public static function dropColumns($table, $columns)
  13819. { //Method inherited from \Illuminate\Database\Schema\Builder
  13820. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13821. $instance->dropColumns($table, $columns);
  13822. }
  13823. /**
  13824. * Drop all types from the database.
  13825. *
  13826. * @return void
  13827. * @throws \LogicException
  13828. * @static
  13829. */
  13830. public static function dropAllTypes()
  13831. { //Method inherited from \Illuminate\Database\Schema\Builder
  13832. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13833. $instance->dropAllTypes();
  13834. }
  13835. /**
  13836. * Rename a table on the schema.
  13837. *
  13838. * @param string $from
  13839. * @param string $to
  13840. * @return void
  13841. * @static
  13842. */
  13843. public static function rename($from, $to)
  13844. { //Method inherited from \Illuminate\Database\Schema\Builder
  13845. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13846. $instance->rename($from, $to);
  13847. }
  13848. /**
  13849. * Enable foreign key constraints.
  13850. *
  13851. * @return bool
  13852. * @static
  13853. */
  13854. public static function enableForeignKeyConstraints()
  13855. { //Method inherited from \Illuminate\Database\Schema\Builder
  13856. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13857. return $instance->enableForeignKeyConstraints();
  13858. }
  13859. /**
  13860. * Disable foreign key constraints.
  13861. *
  13862. * @return bool
  13863. * @static
  13864. */
  13865. public static function disableForeignKeyConstraints()
  13866. { //Method inherited from \Illuminate\Database\Schema\Builder
  13867. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13868. return $instance->disableForeignKeyConstraints();
  13869. }
  13870. /**
  13871. * Get the database connection instance.
  13872. *
  13873. * @return \Illuminate\Database\Connection
  13874. * @static
  13875. */
  13876. public static function getConnection()
  13877. { //Method inherited from \Illuminate\Database\Schema\Builder
  13878. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13879. return $instance->getConnection();
  13880. }
  13881. /**
  13882. * Set the database connection instance.
  13883. *
  13884. * @param \Illuminate\Database\Connection $connection
  13885. * @return \Illuminate\Database\Schema\MySqlBuilder
  13886. * @static
  13887. */
  13888. public static function setConnection($connection)
  13889. { //Method inherited from \Illuminate\Database\Schema\Builder
  13890. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13891. return $instance->setConnection($connection);
  13892. }
  13893. /**
  13894. * Set the Schema Blueprint resolver callback.
  13895. *
  13896. * @param \Closure $resolver
  13897. * @return void
  13898. * @static
  13899. */
  13900. public static function blueprintResolver($resolver)
  13901. { //Method inherited from \Illuminate\Database\Schema\Builder
  13902. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13903. $instance->blueprintResolver($resolver);
  13904. }
  13905. }
  13906. /**
  13907. *
  13908. *
  13909. * @see \Illuminate\Session\SessionManager
  13910. * @see \Illuminate\Session\Store
  13911. */
  13912. class Session {
  13913. /**
  13914. * Determine if requests for the same session should wait for each to finish before executing.
  13915. *
  13916. * @return bool
  13917. * @static
  13918. */
  13919. public static function shouldBlock()
  13920. {
  13921. /** @var \Illuminate\Session\SessionManager $instance */
  13922. return $instance->shouldBlock();
  13923. }
  13924. /**
  13925. * Get the name of the cache store / driver that should be used to acquire session locks.
  13926. *
  13927. * @return string|null
  13928. * @static
  13929. */
  13930. public static function blockDriver()
  13931. {
  13932. /** @var \Illuminate\Session\SessionManager $instance */
  13933. return $instance->blockDriver();
  13934. }
  13935. /**
  13936. * Get the session configuration.
  13937. *
  13938. * @return array
  13939. * @static
  13940. */
  13941. public static function getSessionConfig()
  13942. {
  13943. /** @var \Illuminate\Session\SessionManager $instance */
  13944. return $instance->getSessionConfig();
  13945. }
  13946. /**
  13947. * Get the default session driver name.
  13948. *
  13949. * @return string
  13950. * @static
  13951. */
  13952. public static function getDefaultDriver()
  13953. {
  13954. /** @var \Illuminate\Session\SessionManager $instance */
  13955. return $instance->getDefaultDriver();
  13956. }
  13957. /**
  13958. * Set the default session driver name.
  13959. *
  13960. * @param string $name
  13961. * @return void
  13962. * @static
  13963. */
  13964. public static function setDefaultDriver($name)
  13965. {
  13966. /** @var \Illuminate\Session\SessionManager $instance */
  13967. $instance->setDefaultDriver($name);
  13968. }
  13969. /**
  13970. * Get a driver instance.
  13971. *
  13972. * @param string|null $driver
  13973. * @return mixed
  13974. * @throws \InvalidArgumentException
  13975. * @static
  13976. */
  13977. public static function driver($driver = null)
  13978. { //Method inherited from \Illuminate\Support\Manager
  13979. /** @var \Illuminate\Session\SessionManager $instance */
  13980. return $instance->driver($driver);
  13981. }
  13982. /**
  13983. * Register a custom driver creator Closure.
  13984. *
  13985. * @param string $driver
  13986. * @param \Closure $callback
  13987. * @return \Illuminate\Session\SessionManager
  13988. * @static
  13989. */
  13990. public static function extend($driver, $callback)
  13991. { //Method inherited from \Illuminate\Support\Manager
  13992. /** @var \Illuminate\Session\SessionManager $instance */
  13993. return $instance->extend($driver, $callback);
  13994. }
  13995. /**
  13996. * Get all of the created "drivers".
  13997. *
  13998. * @return array
  13999. * @static
  14000. */
  14001. public static function getDrivers()
  14002. { //Method inherited from \Illuminate\Support\Manager
  14003. /** @var \Illuminate\Session\SessionManager $instance */
  14004. return $instance->getDrivers();
  14005. }
  14006. /**
  14007. * Get the container instance used by the manager.
  14008. *
  14009. * @return \Illuminate\Contracts\Container\Container
  14010. * @static
  14011. */
  14012. public static function getContainer()
  14013. { //Method inherited from \Illuminate\Support\Manager
  14014. /** @var \Illuminate\Session\SessionManager $instance */
  14015. return $instance->getContainer();
  14016. }
  14017. /**
  14018. * Set the container instance used by the manager.
  14019. *
  14020. * @param \Illuminate\Contracts\Container\Container $container
  14021. * @return \Illuminate\Session\SessionManager
  14022. * @static
  14023. */
  14024. public static function setContainer($container)
  14025. { //Method inherited from \Illuminate\Support\Manager
  14026. /** @var \Illuminate\Session\SessionManager $instance */
  14027. return $instance->setContainer($container);
  14028. }
  14029. /**
  14030. * Forget all of the resolved driver instances.
  14031. *
  14032. * @return \Illuminate\Session\SessionManager
  14033. * @static
  14034. */
  14035. public static function forgetDrivers()
  14036. { //Method inherited from \Illuminate\Support\Manager
  14037. /** @var \Illuminate\Session\SessionManager $instance */
  14038. return $instance->forgetDrivers();
  14039. }
  14040. /**
  14041. * Start the session, reading the data from a handler.
  14042. *
  14043. * @return bool
  14044. * @static
  14045. */
  14046. public static function start()
  14047. {
  14048. /** @var \Illuminate\Session\Store $instance */
  14049. return $instance->start();
  14050. }
  14051. /**
  14052. * Save the session data to storage.
  14053. *
  14054. * @return void
  14055. * @static
  14056. */
  14057. public static function save()
  14058. {
  14059. /** @var \Illuminate\Session\Store $instance */
  14060. $instance->save();
  14061. }
  14062. /**
  14063. * Age the flash data for the session.
  14064. *
  14065. * @return void
  14066. * @static
  14067. */
  14068. public static function ageFlashData()
  14069. {
  14070. /** @var \Illuminate\Session\Store $instance */
  14071. $instance->ageFlashData();
  14072. }
  14073. /**
  14074. * Get all of the session data.
  14075. *
  14076. * @return array
  14077. * @static
  14078. */
  14079. public static function all()
  14080. {
  14081. /** @var \Illuminate\Session\Store $instance */
  14082. return $instance->all();
  14083. }
  14084. /**
  14085. * Get a subset of the session data.
  14086. *
  14087. * @param array $keys
  14088. * @return array
  14089. * @static
  14090. */
  14091. public static function only($keys)
  14092. {
  14093. /** @var \Illuminate\Session\Store $instance */
  14094. return $instance->only($keys);
  14095. }
  14096. /**
  14097. * Checks if a key exists.
  14098. *
  14099. * @param string|array $key
  14100. * @return bool
  14101. * @static
  14102. */
  14103. public static function exists($key)
  14104. {
  14105. /** @var \Illuminate\Session\Store $instance */
  14106. return $instance->exists($key);
  14107. }
  14108. /**
  14109. * Determine if the given key is missing from the session data.
  14110. *
  14111. * @param string|array $key
  14112. * @return bool
  14113. * @static
  14114. */
  14115. public static function missing($key)
  14116. {
  14117. /** @var \Illuminate\Session\Store $instance */
  14118. return $instance->missing($key);
  14119. }
  14120. /**
  14121. * Checks if a key is present and not null.
  14122. *
  14123. * @param string|array $key
  14124. * @return bool
  14125. * @static
  14126. */
  14127. public static function has($key)
  14128. {
  14129. /** @var \Illuminate\Session\Store $instance */
  14130. return $instance->has($key);
  14131. }
  14132. /**
  14133. * Get an item from the session.
  14134. *
  14135. * @param string $key
  14136. * @param mixed $default
  14137. * @return mixed
  14138. * @static
  14139. */
  14140. public static function get($key, $default = null)
  14141. {
  14142. /** @var \Illuminate\Session\Store $instance */
  14143. return $instance->get($key, $default);
  14144. }
  14145. /**
  14146. * Get the value of a given key and then forget it.
  14147. *
  14148. * @param string $key
  14149. * @param mixed $default
  14150. * @return mixed
  14151. * @static
  14152. */
  14153. public static function pull($key, $default = null)
  14154. {
  14155. /** @var \Illuminate\Session\Store $instance */
  14156. return $instance->pull($key, $default);
  14157. }
  14158. /**
  14159. * Determine if the session contains old input.
  14160. *
  14161. * @param string|null $key
  14162. * @return bool
  14163. * @static
  14164. */
  14165. public static function hasOldInput($key = null)
  14166. {
  14167. /** @var \Illuminate\Session\Store $instance */
  14168. return $instance->hasOldInput($key);
  14169. }
  14170. /**
  14171. * Get the requested item from the flashed input array.
  14172. *
  14173. * @param string|null $key
  14174. * @param mixed $default
  14175. * @return mixed
  14176. * @static
  14177. */
  14178. public static function getOldInput($key = null, $default = null)
  14179. {
  14180. /** @var \Illuminate\Session\Store $instance */
  14181. return $instance->getOldInput($key, $default);
  14182. }
  14183. /**
  14184. * Replace the given session attributes entirely.
  14185. *
  14186. * @param array $attributes
  14187. * @return void
  14188. * @static
  14189. */
  14190. public static function replace($attributes)
  14191. {
  14192. /** @var \Illuminate\Session\Store $instance */
  14193. $instance->replace($attributes);
  14194. }
  14195. /**
  14196. * Put a key / value pair or array of key / value pairs in the session.
  14197. *
  14198. * @param string|array $key
  14199. * @param mixed $value
  14200. * @return void
  14201. * @static
  14202. */
  14203. public static function put($key, $value = null)
  14204. {
  14205. /** @var \Illuminate\Session\Store $instance */
  14206. $instance->put($key, $value);
  14207. }
  14208. /**
  14209. * Get an item from the session, or store the default value.
  14210. *
  14211. * @param string $key
  14212. * @param \Closure $callback
  14213. * @return mixed
  14214. * @static
  14215. */
  14216. public static function remember($key, $callback)
  14217. {
  14218. /** @var \Illuminate\Session\Store $instance */
  14219. return $instance->remember($key, $callback);
  14220. }
  14221. /**
  14222. * Push a value onto a session array.
  14223. *
  14224. * @param string $key
  14225. * @param mixed $value
  14226. * @return void
  14227. * @static
  14228. */
  14229. public static function push($key, $value)
  14230. {
  14231. /** @var \Illuminate\Session\Store $instance */
  14232. $instance->push($key, $value);
  14233. }
  14234. /**
  14235. * Increment the value of an item in the session.
  14236. *
  14237. * @param string $key
  14238. * @param int $amount
  14239. * @return mixed
  14240. * @static
  14241. */
  14242. public static function increment($key, $amount = 1)
  14243. {
  14244. /** @var \Illuminate\Session\Store $instance */
  14245. return $instance->increment($key, $amount);
  14246. }
  14247. /**
  14248. * Decrement the value of an item in the session.
  14249. *
  14250. * @param string $key
  14251. * @param int $amount
  14252. * @return int
  14253. * @static
  14254. */
  14255. public static function decrement($key, $amount = 1)
  14256. {
  14257. /** @var \Illuminate\Session\Store $instance */
  14258. return $instance->decrement($key, $amount);
  14259. }
  14260. /**
  14261. * Flash a key / value pair to the session.
  14262. *
  14263. * @param string $key
  14264. * @param mixed $value
  14265. * @return void
  14266. * @static
  14267. */
  14268. public static function flash($key, $value = true)
  14269. {
  14270. /** @var \Illuminate\Session\Store $instance */
  14271. $instance->flash($key, $value);
  14272. }
  14273. /**
  14274. * Flash a key / value pair to the session for immediate use.
  14275. *
  14276. * @param string $key
  14277. * @param mixed $value
  14278. * @return void
  14279. * @static
  14280. */
  14281. public static function now($key, $value)
  14282. {
  14283. /** @var \Illuminate\Session\Store $instance */
  14284. $instance->now($key, $value);
  14285. }
  14286. /**
  14287. * Reflash all of the session flash data.
  14288. *
  14289. * @return void
  14290. * @static
  14291. */
  14292. public static function reflash()
  14293. {
  14294. /** @var \Illuminate\Session\Store $instance */
  14295. $instance->reflash();
  14296. }
  14297. /**
  14298. * Reflash a subset of the current flash data.
  14299. *
  14300. * @param array|mixed $keys
  14301. * @return void
  14302. * @static
  14303. */
  14304. public static function keep($keys = null)
  14305. {
  14306. /** @var \Illuminate\Session\Store $instance */
  14307. $instance->keep($keys);
  14308. }
  14309. /**
  14310. * Flash an input array to the session.
  14311. *
  14312. * @param array $value
  14313. * @return void
  14314. * @static
  14315. */
  14316. public static function flashInput($value)
  14317. {
  14318. /** @var \Illuminate\Session\Store $instance */
  14319. $instance->flashInput($value);
  14320. }
  14321. /**
  14322. * Remove an item from the session, returning its value.
  14323. *
  14324. * @param string $key
  14325. * @return mixed
  14326. * @static
  14327. */
  14328. public static function remove($key)
  14329. {
  14330. /** @var \Illuminate\Session\Store $instance */
  14331. return $instance->remove($key);
  14332. }
  14333. /**
  14334. * Remove one or many items from the session.
  14335. *
  14336. * @param string|array $keys
  14337. * @return void
  14338. * @static
  14339. */
  14340. public static function forget($keys)
  14341. {
  14342. /** @var \Illuminate\Session\Store $instance */
  14343. $instance->forget($keys);
  14344. }
  14345. /**
  14346. * Remove all of the items from the session.
  14347. *
  14348. * @return void
  14349. * @static
  14350. */
  14351. public static function flush()
  14352. {
  14353. /** @var \Illuminate\Session\Store $instance */
  14354. $instance->flush();
  14355. }
  14356. /**
  14357. * Flush the session data and regenerate the ID.
  14358. *
  14359. * @return bool
  14360. * @static
  14361. */
  14362. public static function invalidate()
  14363. {
  14364. /** @var \Illuminate\Session\Store $instance */
  14365. return $instance->invalidate();
  14366. }
  14367. /**
  14368. * Generate a new session identifier.
  14369. *
  14370. * @param bool $destroy
  14371. * @return bool
  14372. * @static
  14373. */
  14374. public static function regenerate($destroy = false)
  14375. {
  14376. /** @var \Illuminate\Session\Store $instance */
  14377. return $instance->regenerate($destroy);
  14378. }
  14379. /**
  14380. * Generate a new session ID for the session.
  14381. *
  14382. * @param bool $destroy
  14383. * @return bool
  14384. * @static
  14385. */
  14386. public static function migrate($destroy = false)
  14387. {
  14388. /** @var \Illuminate\Session\Store $instance */
  14389. return $instance->migrate($destroy);
  14390. }
  14391. /**
  14392. * Determine if the session has been started.
  14393. *
  14394. * @return bool
  14395. * @static
  14396. */
  14397. public static function isStarted()
  14398. {
  14399. /** @var \Illuminate\Session\Store $instance */
  14400. return $instance->isStarted();
  14401. }
  14402. /**
  14403. * Get the name of the session.
  14404. *
  14405. * @return string
  14406. * @static
  14407. */
  14408. public static function getName()
  14409. {
  14410. /** @var \Illuminate\Session\Store $instance */
  14411. return $instance->getName();
  14412. }
  14413. /**
  14414. * Set the name of the session.
  14415. *
  14416. * @param string $name
  14417. * @return void
  14418. * @static
  14419. */
  14420. public static function setName($name)
  14421. {
  14422. /** @var \Illuminate\Session\Store $instance */
  14423. $instance->setName($name);
  14424. }
  14425. /**
  14426. * Get the current session ID.
  14427. *
  14428. * @return string
  14429. * @static
  14430. */
  14431. public static function getId()
  14432. {
  14433. /** @var \Illuminate\Session\Store $instance */
  14434. return $instance->getId();
  14435. }
  14436. /**
  14437. * Set the session ID.
  14438. *
  14439. * @param string $id
  14440. * @return void
  14441. * @static
  14442. */
  14443. public static function setId($id)
  14444. {
  14445. /** @var \Illuminate\Session\Store $instance */
  14446. $instance->setId($id);
  14447. }
  14448. /**
  14449. * Determine if this is a valid session ID.
  14450. *
  14451. * @param string $id
  14452. * @return bool
  14453. * @static
  14454. */
  14455. public static function isValidId($id)
  14456. {
  14457. /** @var \Illuminate\Session\Store $instance */
  14458. return $instance->isValidId($id);
  14459. }
  14460. /**
  14461. * Set the existence of the session on the handler if applicable.
  14462. *
  14463. * @param bool $value
  14464. * @return void
  14465. * @static
  14466. */
  14467. public static function setExists($value)
  14468. {
  14469. /** @var \Illuminate\Session\Store $instance */
  14470. $instance->setExists($value);
  14471. }
  14472. /**
  14473. * Get the CSRF token value.
  14474. *
  14475. * @return string
  14476. * @static
  14477. */
  14478. public static function token()
  14479. {
  14480. /** @var \Illuminate\Session\Store $instance */
  14481. return $instance->token();
  14482. }
  14483. /**
  14484. * Regenerate the CSRF token value.
  14485. *
  14486. * @return void
  14487. * @static
  14488. */
  14489. public static function regenerateToken()
  14490. {
  14491. /** @var \Illuminate\Session\Store $instance */
  14492. $instance->regenerateToken();
  14493. }
  14494. /**
  14495. * Get the previous URL from the session.
  14496. *
  14497. * @return string|null
  14498. * @static
  14499. */
  14500. public static function previousUrl()
  14501. {
  14502. /** @var \Illuminate\Session\Store $instance */
  14503. return $instance->previousUrl();
  14504. }
  14505. /**
  14506. * Set the "previous" URL in the session.
  14507. *
  14508. * @param string $url
  14509. * @return void
  14510. * @static
  14511. */
  14512. public static function setPreviousUrl($url)
  14513. {
  14514. /** @var \Illuminate\Session\Store $instance */
  14515. $instance->setPreviousUrl($url);
  14516. }
  14517. /**
  14518. * Specify that the user has confirmed their password.
  14519. *
  14520. * @return void
  14521. * @static
  14522. */
  14523. public static function passwordConfirmed()
  14524. {
  14525. /** @var \Illuminate\Session\Store $instance */
  14526. $instance->passwordConfirmed();
  14527. }
  14528. /**
  14529. * Get the underlying session handler implementation.
  14530. *
  14531. * @return \SessionHandlerInterface
  14532. * @static
  14533. */
  14534. public static function getHandler()
  14535. {
  14536. /** @var \Illuminate\Session\Store $instance */
  14537. return $instance->getHandler();
  14538. }
  14539. /**
  14540. * Determine if the session handler needs a request.
  14541. *
  14542. * @return bool
  14543. * @static
  14544. */
  14545. public static function handlerNeedsRequest()
  14546. {
  14547. /** @var \Illuminate\Session\Store $instance */
  14548. return $instance->handlerNeedsRequest();
  14549. }
  14550. /**
  14551. * Set the request on the handler instance.
  14552. *
  14553. * @param \Illuminate\Http\Request $request
  14554. * @return void
  14555. * @static
  14556. */
  14557. public static function setRequestOnHandler($request)
  14558. {
  14559. /** @var \Illuminate\Session\Store $instance */
  14560. $instance->setRequestOnHandler($request);
  14561. }
  14562. }
  14563. /**
  14564. *
  14565. *
  14566. * @see \Illuminate\Filesystem\FilesystemManager
  14567. */
  14568. class Storage {
  14569. /**
  14570. * Get a filesystem instance.
  14571. *
  14572. * @param string|null $name
  14573. * @return \Illuminate\Filesystem\FilesystemAdapter
  14574. * @static
  14575. */
  14576. public static function drive($name = null)
  14577. {
  14578. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14579. return $instance->drive($name);
  14580. }
  14581. /**
  14582. * Get a filesystem instance.
  14583. *
  14584. * @param string|null $name
  14585. * @return \Illuminate\Filesystem\FilesystemAdapter
  14586. * @static
  14587. */
  14588. public static function disk($name = null)
  14589. {
  14590. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14591. return $instance->disk($name);
  14592. }
  14593. /**
  14594. * Get a default cloud filesystem instance.
  14595. *
  14596. * @return \Illuminate\Filesystem\FilesystemAdapter
  14597. * @static
  14598. */
  14599. public static function cloud()
  14600. {
  14601. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14602. return $instance->cloud();
  14603. }
  14604. /**
  14605. * Build an on-demand disk.
  14606. *
  14607. * @param string|array $config
  14608. * @return \Illuminate\Filesystem\FilesystemAdapter
  14609. * @static
  14610. */
  14611. public static function build($config)
  14612. {
  14613. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14614. return $instance->build($config);
  14615. }
  14616. /**
  14617. * Create an instance of the local driver.
  14618. *
  14619. * @param array $config
  14620. * @return \Illuminate\Filesystem\FilesystemAdapter
  14621. * @static
  14622. */
  14623. public static function createLocalDriver($config)
  14624. {
  14625. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14626. return $instance->createLocalDriver($config);
  14627. }
  14628. /**
  14629. * Create an instance of the ftp driver.
  14630. *
  14631. * @param array $config
  14632. * @return \Illuminate\Filesystem\FilesystemAdapter
  14633. * @static
  14634. */
  14635. public static function createFtpDriver($config)
  14636. {
  14637. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14638. return $instance->createFtpDriver($config);
  14639. }
  14640. /**
  14641. * Create an instance of the sftp driver.
  14642. *
  14643. * @param array $config
  14644. * @return \Illuminate\Filesystem\FilesystemAdapter
  14645. * @static
  14646. */
  14647. public static function createSftpDriver($config)
  14648. {
  14649. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14650. return $instance->createSftpDriver($config);
  14651. }
  14652. /**
  14653. * Create an instance of the Amazon S3 driver.
  14654. *
  14655. * @param array $config
  14656. * @return \Illuminate\Contracts\Filesystem\Cloud
  14657. * @static
  14658. */
  14659. public static function createS3Driver($config)
  14660. {
  14661. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14662. return $instance->createS3Driver($config);
  14663. }
  14664. /**
  14665. * Create a scoped driver.
  14666. *
  14667. * @param array $config
  14668. * @return \Illuminate\Filesystem\FilesystemAdapter
  14669. * @static
  14670. */
  14671. public static function createScopedDriver($config)
  14672. {
  14673. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14674. return $instance->createScopedDriver($config);
  14675. }
  14676. /**
  14677. * Set the given disk instance.
  14678. *
  14679. * @param string $name
  14680. * @param mixed $disk
  14681. * @return \Illuminate\Filesystem\FilesystemManager
  14682. * @static
  14683. */
  14684. public static function set($name, $disk)
  14685. {
  14686. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14687. return $instance->set($name, $disk);
  14688. }
  14689. /**
  14690. * Get the default driver name.
  14691. *
  14692. * @return string
  14693. * @static
  14694. */
  14695. public static function getDefaultDriver()
  14696. {
  14697. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14698. return $instance->getDefaultDriver();
  14699. }
  14700. /**
  14701. * Get the default cloud driver name.
  14702. *
  14703. * @return string
  14704. * @static
  14705. */
  14706. public static function getDefaultCloudDriver()
  14707. {
  14708. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14709. return $instance->getDefaultCloudDriver();
  14710. }
  14711. /**
  14712. * Unset the given disk instances.
  14713. *
  14714. * @param array|string $disk
  14715. * @return \Illuminate\Filesystem\FilesystemManager
  14716. * @static
  14717. */
  14718. public static function forgetDisk($disk)
  14719. {
  14720. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14721. return $instance->forgetDisk($disk);
  14722. }
  14723. /**
  14724. * Disconnect the given disk and remove from local cache.
  14725. *
  14726. * @param string|null $name
  14727. * @return void
  14728. * @static
  14729. */
  14730. public static function purge($name = null)
  14731. {
  14732. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14733. $instance->purge($name);
  14734. }
  14735. /**
  14736. * Register a custom driver creator Closure.
  14737. *
  14738. * @param string $driver
  14739. * @param \Closure $callback
  14740. * @return \Illuminate\Filesystem\FilesystemManager
  14741. * @static
  14742. */
  14743. public static function extend($driver, $callback)
  14744. {
  14745. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14746. return $instance->extend($driver, $callback);
  14747. }
  14748. /**
  14749. * Set the application instance used by the manager.
  14750. *
  14751. * @param \Illuminate\Contracts\Foundation\Application $app
  14752. * @return \Illuminate\Filesystem\FilesystemManager
  14753. * @static
  14754. */
  14755. public static function setApplication($app)
  14756. {
  14757. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14758. return $instance->setApplication($app);
  14759. }
  14760. /**
  14761. * Assert that the given file or directory exists.
  14762. *
  14763. * @param string|array $path
  14764. * @param string|null $content
  14765. * @return \Illuminate\Filesystem\FilesystemAdapter
  14766. * @static
  14767. */
  14768. public static function assertExists($path, $content = null)
  14769. {
  14770. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14771. return $instance->assertExists($path, $content);
  14772. }
  14773. /**
  14774. * Assert that the given file or directory does not exist.
  14775. *
  14776. * @param string|array $path
  14777. * @return \Illuminate\Filesystem\FilesystemAdapter
  14778. * @static
  14779. */
  14780. public static function assertMissing($path)
  14781. {
  14782. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14783. return $instance->assertMissing($path);
  14784. }
  14785. /**
  14786. * Assert that the given directory is empty.
  14787. *
  14788. * @param string $path
  14789. * @return \Illuminate\Filesystem\FilesystemAdapter
  14790. * @static
  14791. */
  14792. public static function assertDirectoryEmpty($path)
  14793. {
  14794. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14795. return $instance->assertDirectoryEmpty($path);
  14796. }
  14797. /**
  14798. * Determine if a file or directory exists.
  14799. *
  14800. * @param string $path
  14801. * @return bool
  14802. * @static
  14803. */
  14804. public static function exists($path)
  14805. {
  14806. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14807. return $instance->exists($path);
  14808. }
  14809. /**
  14810. * Determine if a file or directory is missing.
  14811. *
  14812. * @param string $path
  14813. * @return bool
  14814. * @static
  14815. */
  14816. public static function missing($path)
  14817. {
  14818. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14819. return $instance->missing($path);
  14820. }
  14821. /**
  14822. * Determine if a file exists.
  14823. *
  14824. * @param string $path
  14825. * @return bool
  14826. * @static
  14827. */
  14828. public static function fileExists($path)
  14829. {
  14830. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14831. return $instance->fileExists($path);
  14832. }
  14833. /**
  14834. * Determine if a file is missing.
  14835. *
  14836. * @param string $path
  14837. * @return bool
  14838. * @static
  14839. */
  14840. public static function fileMissing($path)
  14841. {
  14842. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14843. return $instance->fileMissing($path);
  14844. }
  14845. /**
  14846. * Determine if a directory exists.
  14847. *
  14848. * @param string $path
  14849. * @return bool
  14850. * @static
  14851. */
  14852. public static function directoryExists($path)
  14853. {
  14854. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14855. return $instance->directoryExists($path);
  14856. }
  14857. /**
  14858. * Determine if a directory is missing.
  14859. *
  14860. * @param string $path
  14861. * @return bool
  14862. * @static
  14863. */
  14864. public static function directoryMissing($path)
  14865. {
  14866. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14867. return $instance->directoryMissing($path);
  14868. }
  14869. /**
  14870. * Get the full path for the file at the given "short" path.
  14871. *
  14872. * @param string $path
  14873. * @return string
  14874. * @static
  14875. */
  14876. public static function path($path)
  14877. {
  14878. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14879. return $instance->path($path);
  14880. }
  14881. /**
  14882. * Get the contents of a file.
  14883. *
  14884. * @param string $path
  14885. * @return string|null
  14886. * @static
  14887. */
  14888. public static function get($path)
  14889. {
  14890. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14891. return $instance->get($path);
  14892. }
  14893. /**
  14894. * Create a streamed response for a given file.
  14895. *
  14896. * @param string $path
  14897. * @param string|null $name
  14898. * @param array $headers
  14899. * @param string|null $disposition
  14900. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  14901. * @static
  14902. */
  14903. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  14904. {
  14905. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14906. return $instance->response($path, $name, $headers, $disposition);
  14907. }
  14908. /**
  14909. * Create a streamed download response for a given file.
  14910. *
  14911. * @param string $path
  14912. * @param string|null $name
  14913. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  14914. * @static
  14915. */
  14916. public static function download($path, $name = null, $headers = [])
  14917. {
  14918. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14919. return $instance->download($path, $name, $headers);
  14920. }
  14921. /**
  14922. * Write the contents of a file.
  14923. *
  14924. * @param string $path
  14925. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  14926. * @param mixed $options
  14927. * @return string|bool
  14928. * @static
  14929. */
  14930. public static function put($path, $contents, $options = [])
  14931. {
  14932. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14933. return $instance->put($path, $contents, $options);
  14934. }
  14935. /**
  14936. * Store the uploaded file on the disk.
  14937. *
  14938. * @param string $path
  14939. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  14940. * @param mixed $options
  14941. * @return string|false
  14942. * @static
  14943. */
  14944. public static function putFile($path, $file, $options = [])
  14945. {
  14946. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14947. return $instance->putFile($path, $file, $options);
  14948. }
  14949. /**
  14950. * Store the uploaded file on the disk with a given name.
  14951. *
  14952. * @param string $path
  14953. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  14954. * @param string $name
  14955. * @param mixed $options
  14956. * @return string|false
  14957. * @static
  14958. */
  14959. public static function putFileAs($path, $file, $name, $options = [])
  14960. {
  14961. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14962. return $instance->putFileAs($path, $file, $name, $options);
  14963. }
  14964. /**
  14965. * Get the visibility for the given path.
  14966. *
  14967. * @param string $path
  14968. * @return string
  14969. * @static
  14970. */
  14971. public static function getVisibility($path)
  14972. {
  14973. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14974. return $instance->getVisibility($path);
  14975. }
  14976. /**
  14977. * Set the visibility for the given path.
  14978. *
  14979. * @param string $path
  14980. * @param string $visibility
  14981. * @return bool
  14982. * @static
  14983. */
  14984. public static function setVisibility($path, $visibility)
  14985. {
  14986. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14987. return $instance->setVisibility($path, $visibility);
  14988. }
  14989. /**
  14990. * Prepend to a file.
  14991. *
  14992. * @param string $path
  14993. * @param string $data
  14994. * @param string $separator
  14995. * @return bool
  14996. * @static
  14997. */
  14998. public static function prepend($path, $data, $separator = '
  14999. ')
  15000. {
  15001. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15002. return $instance->prepend($path, $data, $separator);
  15003. }
  15004. /**
  15005. * Append to a file.
  15006. *
  15007. * @param string $path
  15008. * @param string $data
  15009. * @param string $separator
  15010. * @return bool
  15011. * @static
  15012. */
  15013. public static function append($path, $data, $separator = '
  15014. ')
  15015. {
  15016. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15017. return $instance->append($path, $data, $separator);
  15018. }
  15019. /**
  15020. * Delete the file at a given path.
  15021. *
  15022. * @param string|array $paths
  15023. * @return bool
  15024. * @static
  15025. */
  15026. public static function delete($paths)
  15027. {
  15028. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15029. return $instance->delete($paths);
  15030. }
  15031. /**
  15032. * Copy a file to a new location.
  15033. *
  15034. * @param string $from
  15035. * @param string $to
  15036. * @return bool
  15037. * @static
  15038. */
  15039. public static function copy($from, $to)
  15040. {
  15041. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15042. return $instance->copy($from, $to);
  15043. }
  15044. /**
  15045. * Move a file to a new location.
  15046. *
  15047. * @param string $from
  15048. * @param string $to
  15049. * @return bool
  15050. * @static
  15051. */
  15052. public static function move($from, $to)
  15053. {
  15054. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15055. return $instance->move($from, $to);
  15056. }
  15057. /**
  15058. * Get the file size of a given file.
  15059. *
  15060. * @param string $path
  15061. * @return int
  15062. * @static
  15063. */
  15064. public static function size($path)
  15065. {
  15066. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15067. return $instance->size($path);
  15068. }
  15069. /**
  15070. * Get the mime-type of a given file.
  15071. *
  15072. * @param string $path
  15073. * @return string|false
  15074. * @static
  15075. */
  15076. public static function mimeType($path)
  15077. {
  15078. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15079. return $instance->mimeType($path);
  15080. }
  15081. /**
  15082. * Get the file's last modification time.
  15083. *
  15084. * @param string $path
  15085. * @return int
  15086. * @static
  15087. */
  15088. public static function lastModified($path)
  15089. {
  15090. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15091. return $instance->lastModified($path);
  15092. }
  15093. /**
  15094. * Get a resource to read the file.
  15095. *
  15096. * @param string $path
  15097. * @return resource|null The path resource or null on failure.
  15098. * @static
  15099. */
  15100. public static function readStream($path)
  15101. {
  15102. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15103. return $instance->readStream($path);
  15104. }
  15105. /**
  15106. * Write a new file using a stream.
  15107. *
  15108. * @param string $path
  15109. * @param resource $resource
  15110. * @param array $options
  15111. * @return bool
  15112. * @static
  15113. */
  15114. public static function writeStream($path, $resource, $options = [])
  15115. {
  15116. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15117. return $instance->writeStream($path, $resource, $options);
  15118. }
  15119. /**
  15120. * Get the URL for the file at the given path.
  15121. *
  15122. * @param string $path
  15123. * @return string
  15124. * @throws \RuntimeException
  15125. * @static
  15126. */
  15127. public static function url($path)
  15128. {
  15129. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15130. return $instance->url($path);
  15131. }
  15132. /**
  15133. * Determine if temporary URLs can be generated.
  15134. *
  15135. * @return bool
  15136. * @static
  15137. */
  15138. public static function providesTemporaryUrls()
  15139. {
  15140. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15141. return $instance->providesTemporaryUrls();
  15142. }
  15143. /**
  15144. * Get a temporary URL for the file at the given path.
  15145. *
  15146. * @param string $path
  15147. * @param \DateTimeInterface $expiration
  15148. * @param array $options
  15149. * @return string
  15150. * @throws \RuntimeException
  15151. * @static
  15152. */
  15153. public static function temporaryUrl($path, $expiration, $options = [])
  15154. {
  15155. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15156. return $instance->temporaryUrl($path, $expiration, $options);
  15157. }
  15158. /**
  15159. * Get an array of all files in a directory.
  15160. *
  15161. * @param string|null $directory
  15162. * @param bool $recursive
  15163. * @return array
  15164. * @static
  15165. */
  15166. public static function files($directory = null, $recursive = false)
  15167. {
  15168. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15169. return $instance->files($directory, $recursive);
  15170. }
  15171. /**
  15172. * Get all of the files from the given directory (recursive).
  15173. *
  15174. * @param string|null $directory
  15175. * @return array
  15176. * @static
  15177. */
  15178. public static function allFiles($directory = null)
  15179. {
  15180. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15181. return $instance->allFiles($directory);
  15182. }
  15183. /**
  15184. * Get all of the directories within a given directory.
  15185. *
  15186. * @param string|null $directory
  15187. * @param bool $recursive
  15188. * @return array
  15189. * @static
  15190. */
  15191. public static function directories($directory = null, $recursive = false)
  15192. {
  15193. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15194. return $instance->directories($directory, $recursive);
  15195. }
  15196. /**
  15197. * Get all the directories within a given directory (recursive).
  15198. *
  15199. * @param string|null $directory
  15200. * @return array
  15201. * @static
  15202. */
  15203. public static function allDirectories($directory = null)
  15204. {
  15205. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15206. return $instance->allDirectories($directory);
  15207. }
  15208. /**
  15209. * Create a directory.
  15210. *
  15211. * @param string $path
  15212. * @return bool
  15213. * @static
  15214. */
  15215. public static function makeDirectory($path)
  15216. {
  15217. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15218. return $instance->makeDirectory($path);
  15219. }
  15220. /**
  15221. * Recursively delete a directory.
  15222. *
  15223. * @param string $directory
  15224. * @return bool
  15225. * @static
  15226. */
  15227. public static function deleteDirectory($directory)
  15228. {
  15229. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15230. return $instance->deleteDirectory($directory);
  15231. }
  15232. /**
  15233. * Get the Flysystem driver.
  15234. *
  15235. * @return \League\Flysystem\FilesystemOperator
  15236. * @static
  15237. */
  15238. public static function getDriver()
  15239. {
  15240. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15241. return $instance->getDriver();
  15242. }
  15243. /**
  15244. * Get the Flysystem adapter.
  15245. *
  15246. * @return \League\Flysystem\FilesystemAdapter
  15247. * @static
  15248. */
  15249. public static function getAdapter()
  15250. {
  15251. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15252. return $instance->getAdapter();
  15253. }
  15254. /**
  15255. * Get the configuration values.
  15256. *
  15257. * @return array
  15258. * @static
  15259. */
  15260. public static function getConfig()
  15261. {
  15262. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15263. return $instance->getConfig();
  15264. }
  15265. /**
  15266. * Define a custom temporary URL builder callback.
  15267. *
  15268. * @param \Closure $callback
  15269. * @return void
  15270. * @static
  15271. */
  15272. public static function buildTemporaryUrlsUsing($callback)
  15273. {
  15274. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15275. $instance->buildTemporaryUrlsUsing($callback);
  15276. }
  15277. /**
  15278. * Apply the callback if the given "value" is (or resolves to) truthy.
  15279. *
  15280. * @template TWhenParameter
  15281. * @template TWhenReturnType
  15282. * @param \Illuminate\Filesystem\(\Closure($this): TWhenParameter)|TWhenParameter|null $value
  15283. * @param \Illuminate\Filesystem\(callable($this, TWhenParameter): TWhenReturnType)|null $callback
  15284. * @param \Illuminate\Filesystem\(callable($this, TWhenParameter): TWhenReturnType)|null $default
  15285. * @return $this|\Illuminate\Filesystem\TWhenReturnType
  15286. * @static
  15287. */
  15288. public static function when($value = null, $callback = null, $default = null)
  15289. {
  15290. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15291. return $instance->when($value, $callback, $default);
  15292. }
  15293. /**
  15294. * Apply the callback if the given "value" is (or resolves to) falsy.
  15295. *
  15296. * @template TUnlessParameter
  15297. * @template TUnlessReturnType
  15298. * @param \Illuminate\Filesystem\(\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  15299. * @param \Illuminate\Filesystem\(callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  15300. * @param \Illuminate\Filesystem\(callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  15301. * @return $this|\Illuminate\Filesystem\TUnlessReturnType
  15302. * @static
  15303. */
  15304. public static function unless($value = null, $callback = null, $default = null)
  15305. {
  15306. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15307. return $instance->unless($value, $callback, $default);
  15308. }
  15309. /**
  15310. * Register a custom macro.
  15311. *
  15312. * @param string $name
  15313. * @param object|callable $macro
  15314. * @return void
  15315. * @static
  15316. */
  15317. public static function macro($name, $macro)
  15318. {
  15319. \Illuminate\Filesystem\FilesystemAdapter::macro($name, $macro);
  15320. }
  15321. /**
  15322. * Mix another object into the class.
  15323. *
  15324. * @param object $mixin
  15325. * @param bool $replace
  15326. * @return void
  15327. * @throws \ReflectionException
  15328. * @static
  15329. */
  15330. public static function mixin($mixin, $replace = true)
  15331. {
  15332. \Illuminate\Filesystem\FilesystemAdapter::mixin($mixin, $replace);
  15333. }
  15334. /**
  15335. * Checks if macro is registered.
  15336. *
  15337. * @param string $name
  15338. * @return bool
  15339. * @static
  15340. */
  15341. public static function hasMacro($name)
  15342. {
  15343. return \Illuminate\Filesystem\FilesystemAdapter::hasMacro($name);
  15344. }
  15345. /**
  15346. * Flush the existing macros.
  15347. *
  15348. * @return void
  15349. * @static
  15350. */
  15351. public static function flushMacros()
  15352. {
  15353. \Illuminate\Filesystem\FilesystemAdapter::flushMacros();
  15354. }
  15355. /**
  15356. * Dynamically handle calls to the class.
  15357. *
  15358. * @param string $method
  15359. * @param array $parameters
  15360. * @return mixed
  15361. * @throws \BadMethodCallException
  15362. * @static
  15363. */
  15364. public static function macroCall($method, $parameters)
  15365. {
  15366. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15367. return $instance->macroCall($method, $parameters);
  15368. }
  15369. }
  15370. /**
  15371. *
  15372. *
  15373. * @see \Illuminate\Routing\UrlGenerator
  15374. */
  15375. class URL {
  15376. /**
  15377. * Get the full URL for the current request.
  15378. *
  15379. * @return string
  15380. * @static
  15381. */
  15382. public static function full()
  15383. {
  15384. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15385. return $instance->full();
  15386. }
  15387. /**
  15388. * Get the current URL for the request.
  15389. *
  15390. * @return string
  15391. * @static
  15392. */
  15393. public static function current()
  15394. {
  15395. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15396. return $instance->current();
  15397. }
  15398. /**
  15399. * Get the URL for the previous request.
  15400. *
  15401. * @param mixed $fallback
  15402. * @return string
  15403. * @static
  15404. */
  15405. public static function previous($fallback = false)
  15406. {
  15407. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15408. return $instance->previous($fallback);
  15409. }
  15410. /**
  15411. * Get the previous path info for the request.
  15412. *
  15413. * @param mixed $fallback
  15414. * @return string
  15415. * @static
  15416. */
  15417. public static function previousPath($fallback = false)
  15418. {
  15419. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15420. return $instance->previousPath($fallback);
  15421. }
  15422. /**
  15423. * Generate an absolute URL to the given path.
  15424. *
  15425. * @param string $path
  15426. * @param mixed $extra
  15427. * @param bool|null $secure
  15428. * @return string
  15429. * @static
  15430. */
  15431. public static function to($path, $extra = [], $secure = null)
  15432. {
  15433. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15434. return $instance->to($path, $extra, $secure);
  15435. }
  15436. /**
  15437. * Generate a secure, absolute URL to the given path.
  15438. *
  15439. * @param string $path
  15440. * @param array $parameters
  15441. * @return string
  15442. * @static
  15443. */
  15444. public static function secure($path, $parameters = [])
  15445. {
  15446. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15447. return $instance->secure($path, $parameters);
  15448. }
  15449. /**
  15450. * Generate the URL to an application asset.
  15451. *
  15452. * @param string $path
  15453. * @param bool|null $secure
  15454. * @return string
  15455. * @static
  15456. */
  15457. public static function asset($path, $secure = null)
  15458. {
  15459. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15460. return $instance->asset($path, $secure);
  15461. }
  15462. /**
  15463. * Generate the URL to a secure asset.
  15464. *
  15465. * @param string $path
  15466. * @return string
  15467. * @static
  15468. */
  15469. public static function secureAsset($path)
  15470. {
  15471. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15472. return $instance->secureAsset($path);
  15473. }
  15474. /**
  15475. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  15476. *
  15477. * @param string $root
  15478. * @param string $path
  15479. * @param bool|null $secure
  15480. * @return string
  15481. * @static
  15482. */
  15483. public static function assetFrom($root, $path, $secure = null)
  15484. {
  15485. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15486. return $instance->assetFrom($root, $path, $secure);
  15487. }
  15488. /**
  15489. * Get the default scheme for a raw URL.
  15490. *
  15491. * @param bool|null $secure
  15492. * @return string
  15493. * @static
  15494. */
  15495. public static function formatScheme($secure = null)
  15496. {
  15497. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15498. return $instance->formatScheme($secure);
  15499. }
  15500. /**
  15501. * Create a signed route URL for a named route.
  15502. *
  15503. * @param string $name
  15504. * @param mixed $parameters
  15505. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  15506. * @param bool $absolute
  15507. * @return string
  15508. * @throws \InvalidArgumentException
  15509. * @static
  15510. */
  15511. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  15512. {
  15513. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15514. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  15515. }
  15516. /**
  15517. * Create a temporary signed route URL for a named route.
  15518. *
  15519. * @param string $name
  15520. * @param \DateTimeInterface|\DateInterval|int $expiration
  15521. * @param array $parameters
  15522. * @param bool $absolute
  15523. * @return string
  15524. * @static
  15525. */
  15526. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  15527. {
  15528. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15529. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  15530. }
  15531. /**
  15532. * Determine if the given request has a valid signature.
  15533. *
  15534. * @param \Illuminate\Http\Request $request
  15535. * @param bool $absolute
  15536. * @param array $ignoreQuery
  15537. * @return bool
  15538. * @static
  15539. */
  15540. public static function hasValidSignature($request, $absolute = true, $ignoreQuery = [])
  15541. {
  15542. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15543. return $instance->hasValidSignature($request, $absolute, $ignoreQuery);
  15544. }
  15545. /**
  15546. * Determine if the given request has a valid signature for a relative URL.
  15547. *
  15548. * @param \Illuminate\Http\Request $request
  15549. * @param array $ignoreQuery
  15550. * @return bool
  15551. * @static
  15552. */
  15553. public static function hasValidRelativeSignature($request, $ignoreQuery = [])
  15554. {
  15555. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15556. return $instance->hasValidRelativeSignature($request, $ignoreQuery);
  15557. }
  15558. /**
  15559. * Determine if the signature from the given request matches the URL.
  15560. *
  15561. * @param \Illuminate\Http\Request $request
  15562. * @param bool $absolute
  15563. * @param array $ignoreQuery
  15564. * @return bool
  15565. * @static
  15566. */
  15567. public static function hasCorrectSignature($request, $absolute = true, $ignoreQuery = [])
  15568. {
  15569. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15570. return $instance->hasCorrectSignature($request, $absolute, $ignoreQuery);
  15571. }
  15572. /**
  15573. * Determine if the expires timestamp from the given request is not from the past.
  15574. *
  15575. * @param \Illuminate\Http\Request $request
  15576. * @return bool
  15577. * @static
  15578. */
  15579. public static function signatureHasNotExpired($request)
  15580. {
  15581. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15582. return $instance->signatureHasNotExpired($request);
  15583. }
  15584. /**
  15585. * Get the URL to a named route.
  15586. *
  15587. * @param string $name
  15588. * @param mixed $parameters
  15589. * @param bool $absolute
  15590. * @return string
  15591. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  15592. * @static
  15593. */
  15594. public static function route($name, $parameters = [], $absolute = true)
  15595. {
  15596. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15597. return $instance->route($name, $parameters, $absolute);
  15598. }
  15599. /**
  15600. * Get the URL for a given route instance.
  15601. *
  15602. * @param \Illuminate\Routing\Route $route
  15603. * @param mixed $parameters
  15604. * @param bool $absolute
  15605. * @return string
  15606. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  15607. * @static
  15608. */
  15609. public static function toRoute($route, $parameters, $absolute)
  15610. {
  15611. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15612. return $instance->toRoute($route, $parameters, $absolute);
  15613. }
  15614. /**
  15615. * Get the URL to a controller action.
  15616. *
  15617. * @param string|array $action
  15618. * @param mixed $parameters
  15619. * @param bool $absolute
  15620. * @return string
  15621. * @throws \InvalidArgumentException
  15622. * @static
  15623. */
  15624. public static function action($action, $parameters = [], $absolute = true)
  15625. {
  15626. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15627. return $instance->action($action, $parameters, $absolute);
  15628. }
  15629. /**
  15630. * Format the array of URL parameters.
  15631. *
  15632. * @param mixed|array $parameters
  15633. * @return array
  15634. * @static
  15635. */
  15636. public static function formatParameters($parameters)
  15637. {
  15638. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15639. return $instance->formatParameters($parameters);
  15640. }
  15641. /**
  15642. * Get the base URL for the request.
  15643. *
  15644. * @param string $scheme
  15645. * @param string|null $root
  15646. * @return string
  15647. * @static
  15648. */
  15649. public static function formatRoot($scheme, $root = null)
  15650. {
  15651. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15652. return $instance->formatRoot($scheme, $root);
  15653. }
  15654. /**
  15655. * Format the given URL segments into a single URL.
  15656. *
  15657. * @param string $root
  15658. * @param string $path
  15659. * @param \Illuminate\Routing\Route|null $route
  15660. * @return string
  15661. * @static
  15662. */
  15663. public static function format($root, $path, $route = null)
  15664. {
  15665. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15666. return $instance->format($root, $path, $route);
  15667. }
  15668. /**
  15669. * Determine if the given path is a valid URL.
  15670. *
  15671. * @param string $path
  15672. * @return bool
  15673. * @static
  15674. */
  15675. public static function isValidUrl($path)
  15676. {
  15677. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15678. return $instance->isValidUrl($path);
  15679. }
  15680. /**
  15681. * Set the default named parameters used by the URL generator.
  15682. *
  15683. * @param array $defaults
  15684. * @return void
  15685. * @static
  15686. */
  15687. public static function defaults($defaults)
  15688. {
  15689. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15690. $instance->defaults($defaults);
  15691. }
  15692. /**
  15693. * Get the default named parameters used by the URL generator.
  15694. *
  15695. * @return array
  15696. * @static
  15697. */
  15698. public static function getDefaultParameters()
  15699. {
  15700. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15701. return $instance->getDefaultParameters();
  15702. }
  15703. /**
  15704. * Force the scheme for URLs.
  15705. *
  15706. * @param string|null $scheme
  15707. * @return void
  15708. * @static
  15709. */
  15710. public static function forceScheme($scheme)
  15711. {
  15712. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15713. $instance->forceScheme($scheme);
  15714. }
  15715. /**
  15716. * Set the forced root URL.
  15717. *
  15718. * @param string|null $root
  15719. * @return void
  15720. * @static
  15721. */
  15722. public static function forceRootUrl($root)
  15723. {
  15724. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15725. $instance->forceRootUrl($root);
  15726. }
  15727. /**
  15728. * Set a callback to be used to format the host of generated URLs.
  15729. *
  15730. * @param \Closure $callback
  15731. * @return \Illuminate\Routing\UrlGenerator
  15732. * @static
  15733. */
  15734. public static function formatHostUsing($callback)
  15735. {
  15736. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15737. return $instance->formatHostUsing($callback);
  15738. }
  15739. /**
  15740. * Set a callback to be used to format the path of generated URLs.
  15741. *
  15742. * @param \Closure $callback
  15743. * @return \Illuminate\Routing\UrlGenerator
  15744. * @static
  15745. */
  15746. public static function formatPathUsing($callback)
  15747. {
  15748. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15749. return $instance->formatPathUsing($callback);
  15750. }
  15751. /**
  15752. * Get the path formatter being used by the URL generator.
  15753. *
  15754. * @return \Closure
  15755. * @static
  15756. */
  15757. public static function pathFormatter()
  15758. {
  15759. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15760. return $instance->pathFormatter();
  15761. }
  15762. /**
  15763. * Get the request instance.
  15764. *
  15765. * @return \Illuminate\Http\Request
  15766. * @static
  15767. */
  15768. public static function getRequest()
  15769. {
  15770. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15771. return $instance->getRequest();
  15772. }
  15773. /**
  15774. * Set the current request instance.
  15775. *
  15776. * @param \Illuminate\Http\Request $request
  15777. * @return void
  15778. * @static
  15779. */
  15780. public static function setRequest($request)
  15781. {
  15782. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15783. $instance->setRequest($request);
  15784. }
  15785. /**
  15786. * Set the route collection.
  15787. *
  15788. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  15789. * @return \Illuminate\Routing\UrlGenerator
  15790. * @static
  15791. */
  15792. public static function setRoutes($routes)
  15793. {
  15794. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15795. return $instance->setRoutes($routes);
  15796. }
  15797. /**
  15798. * Set the session resolver for the generator.
  15799. *
  15800. * @param callable $sessionResolver
  15801. * @return \Illuminate\Routing\UrlGenerator
  15802. * @static
  15803. */
  15804. public static function setSessionResolver($sessionResolver)
  15805. {
  15806. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15807. return $instance->setSessionResolver($sessionResolver);
  15808. }
  15809. /**
  15810. * Set the encryption key resolver.
  15811. *
  15812. * @param callable $keyResolver
  15813. * @return \Illuminate\Routing\UrlGenerator
  15814. * @static
  15815. */
  15816. public static function setKeyResolver($keyResolver)
  15817. {
  15818. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15819. return $instance->setKeyResolver($keyResolver);
  15820. }
  15821. /**
  15822. * Clone a new instance of the URL generator with a different encryption key resolver.
  15823. *
  15824. * @param callable $keyResolver
  15825. * @return \Illuminate\Routing\UrlGenerator
  15826. * @static
  15827. */
  15828. public static function withKeyResolver($keyResolver)
  15829. {
  15830. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15831. return $instance->withKeyResolver($keyResolver);
  15832. }
  15833. /**
  15834. * Get the root controller namespace.
  15835. *
  15836. * @return string
  15837. * @static
  15838. */
  15839. public static function getRootControllerNamespace()
  15840. {
  15841. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15842. return $instance->getRootControllerNamespace();
  15843. }
  15844. /**
  15845. * Set the root controller namespace.
  15846. *
  15847. * @param string $rootNamespace
  15848. * @return \Illuminate\Routing\UrlGenerator
  15849. * @static
  15850. */
  15851. public static function setRootControllerNamespace($rootNamespace)
  15852. {
  15853. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15854. return $instance->setRootControllerNamespace($rootNamespace);
  15855. }
  15856. /**
  15857. * Register a custom macro.
  15858. *
  15859. * @param string $name
  15860. * @param object|callable $macro
  15861. * @return void
  15862. * @static
  15863. */
  15864. public static function macro($name, $macro)
  15865. {
  15866. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  15867. }
  15868. /**
  15869. * Mix another object into the class.
  15870. *
  15871. * @param object $mixin
  15872. * @param bool $replace
  15873. * @return void
  15874. * @throws \ReflectionException
  15875. * @static
  15876. */
  15877. public static function mixin($mixin, $replace = true)
  15878. {
  15879. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  15880. }
  15881. /**
  15882. * Checks if macro is registered.
  15883. *
  15884. * @param string $name
  15885. * @return bool
  15886. * @static
  15887. */
  15888. public static function hasMacro($name)
  15889. {
  15890. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  15891. }
  15892. /**
  15893. * Flush the existing macros.
  15894. *
  15895. * @return void
  15896. * @static
  15897. */
  15898. public static function flushMacros()
  15899. {
  15900. \Illuminate\Routing\UrlGenerator::flushMacros();
  15901. }
  15902. }
  15903. /**
  15904. *
  15905. *
  15906. * @see \Illuminate\Validation\Factory
  15907. */
  15908. class Validator {
  15909. /**
  15910. * Create a new Validator instance.
  15911. *
  15912. * @param array $data
  15913. * @param array $rules
  15914. * @param array $messages
  15915. * @param array $customAttributes
  15916. * @return \Illuminate\Validation\Validator
  15917. * @static
  15918. */
  15919. public static function make($data, $rules, $messages = [], $customAttributes = [])
  15920. {
  15921. /** @var \Illuminate\Validation\Factory $instance */
  15922. return $instance->make($data, $rules, $messages, $customAttributes);
  15923. }
  15924. /**
  15925. * Validate the given data against the provided rules.
  15926. *
  15927. * @param array $data
  15928. * @param array $rules
  15929. * @param array $messages
  15930. * @param array $customAttributes
  15931. * @return array
  15932. * @throws \Illuminate\Validation\ValidationException
  15933. * @static
  15934. */
  15935. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  15936. {
  15937. /** @var \Illuminate\Validation\Factory $instance */
  15938. return $instance->validate($data, $rules, $messages, $customAttributes);
  15939. }
  15940. /**
  15941. * Register a custom validator extension.
  15942. *
  15943. * @param string $rule
  15944. * @param \Closure|string $extension
  15945. * @param string|null $message
  15946. * @return void
  15947. * @static
  15948. */
  15949. public static function extend($rule, $extension, $message = null)
  15950. {
  15951. /** @var \Illuminate\Validation\Factory $instance */
  15952. $instance->extend($rule, $extension, $message);
  15953. }
  15954. /**
  15955. * Register a custom implicit validator extension.
  15956. *
  15957. * @param string $rule
  15958. * @param \Closure|string $extension
  15959. * @param string|null $message
  15960. * @return void
  15961. * @static
  15962. */
  15963. public static function extendImplicit($rule, $extension, $message = null)
  15964. {
  15965. /** @var \Illuminate\Validation\Factory $instance */
  15966. $instance->extendImplicit($rule, $extension, $message);
  15967. }
  15968. /**
  15969. * Register a custom dependent validator extension.
  15970. *
  15971. * @param string $rule
  15972. * @param \Closure|string $extension
  15973. * @param string|null $message
  15974. * @return void
  15975. * @static
  15976. */
  15977. public static function extendDependent($rule, $extension, $message = null)
  15978. {
  15979. /** @var \Illuminate\Validation\Factory $instance */
  15980. $instance->extendDependent($rule, $extension, $message);
  15981. }
  15982. /**
  15983. * Register a custom validator message replacer.
  15984. *
  15985. * @param string $rule
  15986. * @param \Closure|string $replacer
  15987. * @return void
  15988. * @static
  15989. */
  15990. public static function replacer($rule, $replacer)
  15991. {
  15992. /** @var \Illuminate\Validation\Factory $instance */
  15993. $instance->replacer($rule, $replacer);
  15994. }
  15995. /**
  15996. * Indicate that unvalidated array keys should be included in validated data when the parent array is validated.
  15997. *
  15998. * @return void
  15999. * @static
  16000. */
  16001. public static function includeUnvalidatedArrayKeys()
  16002. {
  16003. /** @var \Illuminate\Validation\Factory $instance */
  16004. $instance->includeUnvalidatedArrayKeys();
  16005. }
  16006. /**
  16007. * Indicate that unvalidated array keys should be excluded from the validated data, even if the parent array was validated.
  16008. *
  16009. * @return void
  16010. * @static
  16011. */
  16012. public static function excludeUnvalidatedArrayKeys()
  16013. {
  16014. /** @var \Illuminate\Validation\Factory $instance */
  16015. $instance->excludeUnvalidatedArrayKeys();
  16016. }
  16017. /**
  16018. * Set the Validator instance resolver.
  16019. *
  16020. * @param \Closure $resolver
  16021. * @return void
  16022. * @static
  16023. */
  16024. public static function resolver($resolver)
  16025. {
  16026. /** @var \Illuminate\Validation\Factory $instance */
  16027. $instance->resolver($resolver);
  16028. }
  16029. /**
  16030. * Get the Translator implementation.
  16031. *
  16032. * @return \Illuminate\Contracts\Translation\Translator
  16033. * @static
  16034. */
  16035. public static function getTranslator()
  16036. {
  16037. /** @var \Illuminate\Validation\Factory $instance */
  16038. return $instance->getTranslator();
  16039. }
  16040. /**
  16041. * Get the Presence Verifier implementation.
  16042. *
  16043. * @return \Illuminate\Validation\PresenceVerifierInterface
  16044. * @static
  16045. */
  16046. public static function getPresenceVerifier()
  16047. {
  16048. /** @var \Illuminate\Validation\Factory $instance */
  16049. return $instance->getPresenceVerifier();
  16050. }
  16051. /**
  16052. * Set the Presence Verifier implementation.
  16053. *
  16054. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  16055. * @return void
  16056. * @static
  16057. */
  16058. public static function setPresenceVerifier($presenceVerifier)
  16059. {
  16060. /** @var \Illuminate\Validation\Factory $instance */
  16061. $instance->setPresenceVerifier($presenceVerifier);
  16062. }
  16063. /**
  16064. * Get the container instance used by the validation factory.
  16065. *
  16066. * @return \Illuminate\Contracts\Container\Container|null
  16067. * @static
  16068. */
  16069. public static function getContainer()
  16070. {
  16071. /** @var \Illuminate\Validation\Factory $instance */
  16072. return $instance->getContainer();
  16073. }
  16074. /**
  16075. * Set the container instance used by the validation factory.
  16076. *
  16077. * @param \Illuminate\Contracts\Container\Container $container
  16078. * @return \Illuminate\Validation\Factory
  16079. * @static
  16080. */
  16081. public static function setContainer($container)
  16082. {
  16083. /** @var \Illuminate\Validation\Factory $instance */
  16084. return $instance->setContainer($container);
  16085. }
  16086. }
  16087. /**
  16088. *
  16089. *
  16090. * @see \Illuminate\View\Factory
  16091. */
  16092. class View {
  16093. /**
  16094. * Get the evaluated view contents for the given view.
  16095. *
  16096. * @param string $path
  16097. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16098. * @param array $mergeData
  16099. * @return \Illuminate\Contracts\View\View
  16100. * @static
  16101. */
  16102. public static function file($path, $data = [], $mergeData = [])
  16103. {
  16104. /** @var \Illuminate\View\Factory $instance */
  16105. return $instance->file($path, $data, $mergeData);
  16106. }
  16107. /**
  16108. * Get the evaluated view contents for the given view.
  16109. *
  16110. * @param string $view
  16111. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16112. * @param array $mergeData
  16113. * @return \Illuminate\Contracts\View\View
  16114. * @static
  16115. */
  16116. public static function make($view, $data = [], $mergeData = [])
  16117. {
  16118. /** @var \Illuminate\View\Factory $instance */
  16119. return $instance->make($view, $data, $mergeData);
  16120. }
  16121. /**
  16122. * Get the first view that actually exists from the given list.
  16123. *
  16124. * @param array $views
  16125. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16126. * @param array $mergeData
  16127. * @return \Illuminate\Contracts\View\View
  16128. * @throws \InvalidArgumentException
  16129. * @static
  16130. */
  16131. public static function first($views, $data = [], $mergeData = [])
  16132. {
  16133. /** @var \Illuminate\View\Factory $instance */
  16134. return $instance->first($views, $data, $mergeData);
  16135. }
  16136. /**
  16137. * Get the rendered content of the view based on a given condition.
  16138. *
  16139. * @param bool $condition
  16140. * @param string $view
  16141. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16142. * @param array $mergeData
  16143. * @return string
  16144. * @static
  16145. */
  16146. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  16147. {
  16148. /** @var \Illuminate\View\Factory $instance */
  16149. return $instance->renderWhen($condition, $view, $data, $mergeData);
  16150. }
  16151. /**
  16152. * Get the rendered content of the view based on the negation of a given condition.
  16153. *
  16154. * @param bool $condition
  16155. * @param string $view
  16156. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16157. * @param array $mergeData
  16158. * @return string
  16159. * @static
  16160. */
  16161. public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  16162. {
  16163. /** @var \Illuminate\View\Factory $instance */
  16164. return $instance->renderUnless($condition, $view, $data, $mergeData);
  16165. }
  16166. /**
  16167. * Get the rendered contents of a partial from a loop.
  16168. *
  16169. * @param string $view
  16170. * @param array $data
  16171. * @param string $iterator
  16172. * @param string $empty
  16173. * @return string
  16174. * @static
  16175. */
  16176. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  16177. {
  16178. /** @var \Illuminate\View\Factory $instance */
  16179. return $instance->renderEach($view, $data, $iterator, $empty);
  16180. }
  16181. /**
  16182. * Determine if a given view exists.
  16183. *
  16184. * @param string $view
  16185. * @return bool
  16186. * @static
  16187. */
  16188. public static function exists($view)
  16189. {
  16190. /** @var \Illuminate\View\Factory $instance */
  16191. return $instance->exists($view);
  16192. }
  16193. /**
  16194. * Get the appropriate view engine for the given path.
  16195. *
  16196. * @param string $path
  16197. * @return \Illuminate\Contracts\View\Engine
  16198. * @throws \InvalidArgumentException
  16199. * @static
  16200. */
  16201. public static function getEngineFromPath($path)
  16202. {
  16203. /** @var \Illuminate\View\Factory $instance */
  16204. return $instance->getEngineFromPath($path);
  16205. }
  16206. /**
  16207. * Add a piece of shared data to the environment.
  16208. *
  16209. * @param array|string $key
  16210. * @param mixed|null $value
  16211. * @return mixed
  16212. * @static
  16213. */
  16214. public static function share($key, $value = null)
  16215. {
  16216. /** @var \Illuminate\View\Factory $instance */
  16217. return $instance->share($key, $value);
  16218. }
  16219. /**
  16220. * Increment the rendering counter.
  16221. *
  16222. * @return void
  16223. * @static
  16224. */
  16225. public static function incrementRender()
  16226. {
  16227. /** @var \Illuminate\View\Factory $instance */
  16228. $instance->incrementRender();
  16229. }
  16230. /**
  16231. * Decrement the rendering counter.
  16232. *
  16233. * @return void
  16234. * @static
  16235. */
  16236. public static function decrementRender()
  16237. {
  16238. /** @var \Illuminate\View\Factory $instance */
  16239. $instance->decrementRender();
  16240. }
  16241. /**
  16242. * Check if there are no active render operations.
  16243. *
  16244. * @return bool
  16245. * @static
  16246. */
  16247. public static function doneRendering()
  16248. {
  16249. /** @var \Illuminate\View\Factory $instance */
  16250. return $instance->doneRendering();
  16251. }
  16252. /**
  16253. * Determine if the given once token has been rendered.
  16254. *
  16255. * @param string $id
  16256. * @return bool
  16257. * @static
  16258. */
  16259. public static function hasRenderedOnce($id)
  16260. {
  16261. /** @var \Illuminate\View\Factory $instance */
  16262. return $instance->hasRenderedOnce($id);
  16263. }
  16264. /**
  16265. * Mark the given once token as having been rendered.
  16266. *
  16267. * @param string $id
  16268. * @return void
  16269. * @static
  16270. */
  16271. public static function markAsRenderedOnce($id)
  16272. {
  16273. /** @var \Illuminate\View\Factory $instance */
  16274. $instance->markAsRenderedOnce($id);
  16275. }
  16276. /**
  16277. * Add a location to the array of view locations.
  16278. *
  16279. * @param string $location
  16280. * @return void
  16281. * @static
  16282. */
  16283. public static function addLocation($location)
  16284. {
  16285. /** @var \Illuminate\View\Factory $instance */
  16286. $instance->addLocation($location);
  16287. }
  16288. /**
  16289. * Add a new namespace to the loader.
  16290. *
  16291. * @param string $namespace
  16292. * @param string|array $hints
  16293. * @return \Illuminate\View\Factory
  16294. * @static
  16295. */
  16296. public static function addNamespace($namespace, $hints)
  16297. {
  16298. /** @var \Illuminate\View\Factory $instance */
  16299. return $instance->addNamespace($namespace, $hints);
  16300. }
  16301. /**
  16302. * Prepend a new namespace to the loader.
  16303. *
  16304. * @param string $namespace
  16305. * @param string|array $hints
  16306. * @return \Illuminate\View\Factory
  16307. * @static
  16308. */
  16309. public static function prependNamespace($namespace, $hints)
  16310. {
  16311. /** @var \Illuminate\View\Factory $instance */
  16312. return $instance->prependNamespace($namespace, $hints);
  16313. }
  16314. /**
  16315. * Replace the namespace hints for the given namespace.
  16316. *
  16317. * @param string $namespace
  16318. * @param string|array $hints
  16319. * @return \Illuminate\View\Factory
  16320. * @static
  16321. */
  16322. public static function replaceNamespace($namespace, $hints)
  16323. {
  16324. /** @var \Illuminate\View\Factory $instance */
  16325. return $instance->replaceNamespace($namespace, $hints);
  16326. }
  16327. /**
  16328. * Register a valid view extension and its engine.
  16329. *
  16330. * @param string $extension
  16331. * @param string $engine
  16332. * @param \Closure|null $resolver
  16333. * @return void
  16334. * @static
  16335. */
  16336. public static function addExtension($extension, $engine, $resolver = null)
  16337. {
  16338. /** @var \Illuminate\View\Factory $instance */
  16339. $instance->addExtension($extension, $engine, $resolver);
  16340. }
  16341. /**
  16342. * Flush all of the factory state like sections and stacks.
  16343. *
  16344. * @return void
  16345. * @static
  16346. */
  16347. public static function flushState()
  16348. {
  16349. /** @var \Illuminate\View\Factory $instance */
  16350. $instance->flushState();
  16351. }
  16352. /**
  16353. * Flush all of the section contents if done rendering.
  16354. *
  16355. * @return void
  16356. * @static
  16357. */
  16358. public static function flushStateIfDoneRendering()
  16359. {
  16360. /** @var \Illuminate\View\Factory $instance */
  16361. $instance->flushStateIfDoneRendering();
  16362. }
  16363. /**
  16364. * Get the extension to engine bindings.
  16365. *
  16366. * @return array
  16367. * @static
  16368. */
  16369. public static function getExtensions()
  16370. {
  16371. /** @var \Illuminate\View\Factory $instance */
  16372. return $instance->getExtensions();
  16373. }
  16374. /**
  16375. * Get the engine resolver instance.
  16376. *
  16377. * @return \Illuminate\View\Engines\EngineResolver
  16378. * @static
  16379. */
  16380. public static function getEngineResolver()
  16381. {
  16382. /** @var \Illuminate\View\Factory $instance */
  16383. return $instance->getEngineResolver();
  16384. }
  16385. /**
  16386. * Get the view finder instance.
  16387. *
  16388. * @return \Illuminate\View\ViewFinderInterface
  16389. * @static
  16390. */
  16391. public static function getFinder()
  16392. {
  16393. /** @var \Illuminate\View\Factory $instance */
  16394. return $instance->getFinder();
  16395. }
  16396. /**
  16397. * Set the view finder instance.
  16398. *
  16399. * @param \Illuminate\View\ViewFinderInterface $finder
  16400. * @return void
  16401. * @static
  16402. */
  16403. public static function setFinder($finder)
  16404. {
  16405. /** @var \Illuminate\View\Factory $instance */
  16406. $instance->setFinder($finder);
  16407. }
  16408. /**
  16409. * Flush the cache of views located by the finder.
  16410. *
  16411. * @return void
  16412. * @static
  16413. */
  16414. public static function flushFinderCache()
  16415. {
  16416. /** @var \Illuminate\View\Factory $instance */
  16417. $instance->flushFinderCache();
  16418. }
  16419. /**
  16420. * Get the event dispatcher instance.
  16421. *
  16422. * @return \Illuminate\Contracts\Events\Dispatcher
  16423. * @static
  16424. */
  16425. public static function getDispatcher()
  16426. {
  16427. /** @var \Illuminate\View\Factory $instance */
  16428. return $instance->getDispatcher();
  16429. }
  16430. /**
  16431. * Set the event dispatcher instance.
  16432. *
  16433. * @param \Illuminate\Contracts\Events\Dispatcher $events
  16434. * @return void
  16435. * @static
  16436. */
  16437. public static function setDispatcher($events)
  16438. {
  16439. /** @var \Illuminate\View\Factory $instance */
  16440. $instance->setDispatcher($events);
  16441. }
  16442. /**
  16443. * Get the IoC container instance.
  16444. *
  16445. * @return \Illuminate\Contracts\Container\Container
  16446. * @static
  16447. */
  16448. public static function getContainer()
  16449. {
  16450. /** @var \Illuminate\View\Factory $instance */
  16451. return $instance->getContainer();
  16452. }
  16453. /**
  16454. * Set the IoC container instance.
  16455. *
  16456. * @param \Illuminate\Contracts\Container\Container $container
  16457. * @return void
  16458. * @static
  16459. */
  16460. public static function setContainer($container)
  16461. {
  16462. /** @var \Illuminate\View\Factory $instance */
  16463. $instance->setContainer($container);
  16464. }
  16465. /**
  16466. * Get an item from the shared data.
  16467. *
  16468. * @param string $key
  16469. * @param mixed $default
  16470. * @return mixed
  16471. * @static
  16472. */
  16473. public static function shared($key, $default = null)
  16474. {
  16475. /** @var \Illuminate\View\Factory $instance */
  16476. return $instance->shared($key, $default);
  16477. }
  16478. /**
  16479. * Get all of the shared data for the environment.
  16480. *
  16481. * @return array
  16482. * @static
  16483. */
  16484. public static function getShared()
  16485. {
  16486. /** @var \Illuminate\View\Factory $instance */
  16487. return $instance->getShared();
  16488. }
  16489. /**
  16490. * Register a custom macro.
  16491. *
  16492. * @param string $name
  16493. * @param object|callable $macro
  16494. * @return void
  16495. * @static
  16496. */
  16497. public static function macro($name, $macro)
  16498. {
  16499. \Illuminate\View\Factory::macro($name, $macro);
  16500. }
  16501. /**
  16502. * Mix another object into the class.
  16503. *
  16504. * @param object $mixin
  16505. * @param bool $replace
  16506. * @return void
  16507. * @throws \ReflectionException
  16508. * @static
  16509. */
  16510. public static function mixin($mixin, $replace = true)
  16511. {
  16512. \Illuminate\View\Factory::mixin($mixin, $replace);
  16513. }
  16514. /**
  16515. * Checks if macro is registered.
  16516. *
  16517. * @param string $name
  16518. * @return bool
  16519. * @static
  16520. */
  16521. public static function hasMacro($name)
  16522. {
  16523. return \Illuminate\View\Factory::hasMacro($name);
  16524. }
  16525. /**
  16526. * Flush the existing macros.
  16527. *
  16528. * @return void
  16529. * @static
  16530. */
  16531. public static function flushMacros()
  16532. {
  16533. \Illuminate\View\Factory::flushMacros();
  16534. }
  16535. /**
  16536. * Start a component rendering process.
  16537. *
  16538. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  16539. * @param array $data
  16540. * @return void
  16541. * @static
  16542. */
  16543. public static function startComponent($view, $data = [])
  16544. {
  16545. /** @var \Illuminate\View\Factory $instance */
  16546. $instance->startComponent($view, $data);
  16547. }
  16548. /**
  16549. * Get the first view that actually exists from the given list, and start a component.
  16550. *
  16551. * @param array $names
  16552. * @param array $data
  16553. * @return void
  16554. * @static
  16555. */
  16556. public static function startComponentFirst($names, $data = [])
  16557. {
  16558. /** @var \Illuminate\View\Factory $instance */
  16559. $instance->startComponentFirst($names, $data);
  16560. }
  16561. /**
  16562. * Render the current component.
  16563. *
  16564. * @return string
  16565. * @static
  16566. */
  16567. public static function renderComponent()
  16568. {
  16569. /** @var \Illuminate\View\Factory $instance */
  16570. return $instance->renderComponent();
  16571. }
  16572. /**
  16573. * Get an item from the component data that exists above the current component.
  16574. *
  16575. * @param string $key
  16576. * @param mixed $default
  16577. * @return mixed|null
  16578. * @static
  16579. */
  16580. public static function getConsumableComponentData($key, $default = null)
  16581. {
  16582. /** @var \Illuminate\View\Factory $instance */
  16583. return $instance->getConsumableComponentData($key, $default);
  16584. }
  16585. /**
  16586. * Start the slot rendering process.
  16587. *
  16588. * @param string $name
  16589. * @param string|null $content
  16590. * @param array $attributes
  16591. * @return void
  16592. * @static
  16593. */
  16594. public static function slot($name, $content = null, $attributes = [])
  16595. {
  16596. /** @var \Illuminate\View\Factory $instance */
  16597. $instance->slot($name, $content, $attributes);
  16598. }
  16599. /**
  16600. * Save the slot content for rendering.
  16601. *
  16602. * @return void
  16603. * @static
  16604. */
  16605. public static function endSlot()
  16606. {
  16607. /** @var \Illuminate\View\Factory $instance */
  16608. $instance->endSlot();
  16609. }
  16610. /**
  16611. * Register a view creator event.
  16612. *
  16613. * @param array|string $views
  16614. * @param \Closure|string $callback
  16615. * @return array
  16616. * @static
  16617. */
  16618. public static function creator($views, $callback)
  16619. {
  16620. /** @var \Illuminate\View\Factory $instance */
  16621. return $instance->creator($views, $callback);
  16622. }
  16623. /**
  16624. * Register multiple view composers via an array.
  16625. *
  16626. * @param array $composers
  16627. * @return array
  16628. * @static
  16629. */
  16630. public static function composers($composers)
  16631. {
  16632. /** @var \Illuminate\View\Factory $instance */
  16633. return $instance->composers($composers);
  16634. }
  16635. /**
  16636. * Register a view composer event.
  16637. *
  16638. * @param array|string $views
  16639. * @param \Closure|string $callback
  16640. * @return array
  16641. * @static
  16642. */
  16643. public static function composer($views, $callback)
  16644. {
  16645. /** @var \Illuminate\View\Factory $instance */
  16646. return $instance->composer($views, $callback);
  16647. }
  16648. /**
  16649. * Call the composer for a given view.
  16650. *
  16651. * @param \Illuminate\Contracts\View\View $view
  16652. * @return void
  16653. * @static
  16654. */
  16655. public static function callComposer($view)
  16656. {
  16657. /** @var \Illuminate\View\Factory $instance */
  16658. $instance->callComposer($view);
  16659. }
  16660. /**
  16661. * Call the creator for a given view.
  16662. *
  16663. * @param \Illuminate\Contracts\View\View $view
  16664. * @return void
  16665. * @static
  16666. */
  16667. public static function callCreator($view)
  16668. {
  16669. /** @var \Illuminate\View\Factory $instance */
  16670. $instance->callCreator($view);
  16671. }
  16672. /**
  16673. * Start injecting content into a section.
  16674. *
  16675. * @param string $section
  16676. * @param string|null $content
  16677. * @return void
  16678. * @static
  16679. */
  16680. public static function startSection($section, $content = null)
  16681. {
  16682. /** @var \Illuminate\View\Factory $instance */
  16683. $instance->startSection($section, $content);
  16684. }
  16685. /**
  16686. * Inject inline content into a section.
  16687. *
  16688. * @param string $section
  16689. * @param string $content
  16690. * @return void
  16691. * @static
  16692. */
  16693. public static function inject($section, $content)
  16694. {
  16695. /** @var \Illuminate\View\Factory $instance */
  16696. $instance->inject($section, $content);
  16697. }
  16698. /**
  16699. * Stop injecting content into a section and return its contents.
  16700. *
  16701. * @return string
  16702. * @static
  16703. */
  16704. public static function yieldSection()
  16705. {
  16706. /** @var \Illuminate\View\Factory $instance */
  16707. return $instance->yieldSection();
  16708. }
  16709. /**
  16710. * Stop injecting content into a section.
  16711. *
  16712. * @param bool $overwrite
  16713. * @return string
  16714. * @throws \InvalidArgumentException
  16715. * @static
  16716. */
  16717. public static function stopSection($overwrite = false)
  16718. {
  16719. /** @var \Illuminate\View\Factory $instance */
  16720. return $instance->stopSection($overwrite);
  16721. }
  16722. /**
  16723. * Stop injecting content into a section and append it.
  16724. *
  16725. * @return string
  16726. * @throws \InvalidArgumentException
  16727. * @static
  16728. */
  16729. public static function appendSection()
  16730. {
  16731. /** @var \Illuminate\View\Factory $instance */
  16732. return $instance->appendSection();
  16733. }
  16734. /**
  16735. * Get the string contents of a section.
  16736. *
  16737. * @param string $section
  16738. * @param string $default
  16739. * @return string
  16740. * @static
  16741. */
  16742. public static function yieldContent($section, $default = '')
  16743. {
  16744. /** @var \Illuminate\View\Factory $instance */
  16745. return $instance->yieldContent($section, $default);
  16746. }
  16747. /**
  16748. * Get the parent placeholder for the current request.
  16749. *
  16750. * @param string $section
  16751. * @return string
  16752. * @static
  16753. */
  16754. public static function parentPlaceholder($section = '')
  16755. {
  16756. return \Illuminate\View\Factory::parentPlaceholder($section);
  16757. }
  16758. /**
  16759. * Check if section exists.
  16760. *
  16761. * @param string $name
  16762. * @return bool
  16763. * @static
  16764. */
  16765. public static function hasSection($name)
  16766. {
  16767. /** @var \Illuminate\View\Factory $instance */
  16768. return $instance->hasSection($name);
  16769. }
  16770. /**
  16771. * Check if section does not exist.
  16772. *
  16773. * @param string $name
  16774. * @return bool
  16775. * @static
  16776. */
  16777. public static function sectionMissing($name)
  16778. {
  16779. /** @var \Illuminate\View\Factory $instance */
  16780. return $instance->sectionMissing($name);
  16781. }
  16782. /**
  16783. * Get the contents of a section.
  16784. *
  16785. * @param string $name
  16786. * @param string|null $default
  16787. * @return mixed
  16788. * @static
  16789. */
  16790. public static function getSection($name, $default = null)
  16791. {
  16792. /** @var \Illuminate\View\Factory $instance */
  16793. return $instance->getSection($name, $default);
  16794. }
  16795. /**
  16796. * Get the entire array of sections.
  16797. *
  16798. * @return array
  16799. * @static
  16800. */
  16801. public static function getSections()
  16802. {
  16803. /** @var \Illuminate\View\Factory $instance */
  16804. return $instance->getSections();
  16805. }
  16806. /**
  16807. * Flush all of the sections.
  16808. *
  16809. * @return void
  16810. * @static
  16811. */
  16812. public static function flushSections()
  16813. {
  16814. /** @var \Illuminate\View\Factory $instance */
  16815. $instance->flushSections();
  16816. }
  16817. /**
  16818. * Add new loop to the stack.
  16819. *
  16820. * @param \Countable|array $data
  16821. * @return void
  16822. * @static
  16823. */
  16824. public static function addLoop($data)
  16825. {
  16826. /** @var \Illuminate\View\Factory $instance */
  16827. $instance->addLoop($data);
  16828. }
  16829. /**
  16830. * Increment the top loop's indices.
  16831. *
  16832. * @return void
  16833. * @static
  16834. */
  16835. public static function incrementLoopIndices()
  16836. {
  16837. /** @var \Illuminate\View\Factory $instance */
  16838. $instance->incrementLoopIndices();
  16839. }
  16840. /**
  16841. * Pop a loop from the top of the loop stack.
  16842. *
  16843. * @return void
  16844. * @static
  16845. */
  16846. public static function popLoop()
  16847. {
  16848. /** @var \Illuminate\View\Factory $instance */
  16849. $instance->popLoop();
  16850. }
  16851. /**
  16852. * Get an instance of the last loop in the stack.
  16853. *
  16854. * @return \stdClass|null
  16855. * @static
  16856. */
  16857. public static function getLastLoop()
  16858. {
  16859. /** @var \Illuminate\View\Factory $instance */
  16860. return $instance->getLastLoop();
  16861. }
  16862. /**
  16863. * Get the entire loop stack.
  16864. *
  16865. * @return array
  16866. * @static
  16867. */
  16868. public static function getLoopStack()
  16869. {
  16870. /** @var \Illuminate\View\Factory $instance */
  16871. return $instance->getLoopStack();
  16872. }
  16873. /**
  16874. * Start injecting content into a push section.
  16875. *
  16876. * @param string $section
  16877. * @param string $content
  16878. * @return void
  16879. * @static
  16880. */
  16881. public static function startPush($section, $content = '')
  16882. {
  16883. /** @var \Illuminate\View\Factory $instance */
  16884. $instance->startPush($section, $content);
  16885. }
  16886. /**
  16887. * Stop injecting content into a push section.
  16888. *
  16889. * @return string
  16890. * @throws \InvalidArgumentException
  16891. * @static
  16892. */
  16893. public static function stopPush()
  16894. {
  16895. /** @var \Illuminate\View\Factory $instance */
  16896. return $instance->stopPush();
  16897. }
  16898. /**
  16899. * Start prepending content into a push section.
  16900. *
  16901. * @param string $section
  16902. * @param string $content
  16903. * @return void
  16904. * @static
  16905. */
  16906. public static function startPrepend($section, $content = '')
  16907. {
  16908. /** @var \Illuminate\View\Factory $instance */
  16909. $instance->startPrepend($section, $content);
  16910. }
  16911. /**
  16912. * Stop prepending content into a push section.
  16913. *
  16914. * @return string
  16915. * @throws \InvalidArgumentException
  16916. * @static
  16917. */
  16918. public static function stopPrepend()
  16919. {
  16920. /** @var \Illuminate\View\Factory $instance */
  16921. return $instance->stopPrepend();
  16922. }
  16923. /**
  16924. * Get the string contents of a push section.
  16925. *
  16926. * @param string $section
  16927. * @param string $default
  16928. * @return string
  16929. * @static
  16930. */
  16931. public static function yieldPushContent($section, $default = '')
  16932. {
  16933. /** @var \Illuminate\View\Factory $instance */
  16934. return $instance->yieldPushContent($section, $default);
  16935. }
  16936. /**
  16937. * Flush all of the stacks.
  16938. *
  16939. * @return void
  16940. * @static
  16941. */
  16942. public static function flushStacks()
  16943. {
  16944. /** @var \Illuminate\View\Factory $instance */
  16945. $instance->flushStacks();
  16946. }
  16947. /**
  16948. * Start a translation block.
  16949. *
  16950. * @param array $replacements
  16951. * @return void
  16952. * @static
  16953. */
  16954. public static function startTranslation($replacements = [])
  16955. {
  16956. /** @var \Illuminate\View\Factory $instance */
  16957. $instance->startTranslation($replacements);
  16958. }
  16959. /**
  16960. * Render the current translation.
  16961. *
  16962. * @return string
  16963. * @static
  16964. */
  16965. public static function renderTranslation()
  16966. {
  16967. /** @var \Illuminate\View\Factory $instance */
  16968. return $instance->renderTranslation();
  16969. }
  16970. }
  16971. /**
  16972. *
  16973. *
  16974. * @see \Illuminate\Foundation\Vite
  16975. */
  16976. class Vite {
  16977. /**
  16978. * Get the Content Security Policy nonce applied to all generated tags.
  16979. *
  16980. * @return string|null
  16981. * @static
  16982. */
  16983. public static function cspNonce()
  16984. {
  16985. /** @var \Illuminate\Foundation\Vite $instance */
  16986. return $instance->cspNonce();
  16987. }
  16988. /**
  16989. * Generate or set a Content Security Policy nonce to apply to all generated tags.
  16990. *
  16991. * @param \Illuminate\Foundation\?string $nonce
  16992. * @return string
  16993. * @static
  16994. */
  16995. public static function useCspNonce($nonce = null)
  16996. {
  16997. /** @var \Illuminate\Foundation\Vite $instance */
  16998. return $instance->useCspNonce($nonce);
  16999. }
  17000. /**
  17001. * Use the given key to detect integrity hashes in the manifest.
  17002. *
  17003. * @param string|false $key
  17004. * @return \Illuminate\Foundation\Vite
  17005. * @static
  17006. */
  17007. public static function useIntegrityKey($key)
  17008. {
  17009. /** @var \Illuminate\Foundation\Vite $instance */
  17010. return $instance->useIntegrityKey($key);
  17011. }
  17012. /**
  17013. * Set the Vite entry points.
  17014. *
  17015. * @param array $entryPoints
  17016. * @return \Illuminate\Foundation\Vite
  17017. * @static
  17018. */
  17019. public static function withEntryPoints($entryPoints)
  17020. {
  17021. /** @var \Illuminate\Foundation\Vite $instance */
  17022. return $instance->withEntryPoints($entryPoints);
  17023. }
  17024. /**
  17025. * Get the Vite "hot" file path.
  17026. *
  17027. * @return string
  17028. * @static
  17029. */
  17030. public static function hotFile()
  17031. {
  17032. /** @var \Illuminate\Foundation\Vite $instance */
  17033. return $instance->hotFile();
  17034. }
  17035. /**
  17036. * Set the Vite "hot" file path.
  17037. *
  17038. * @param string $path
  17039. * @return \Illuminate\Foundation\Vite
  17040. * @static
  17041. */
  17042. public static function useHotFile($path)
  17043. {
  17044. /** @var \Illuminate\Foundation\Vite $instance */
  17045. return $instance->useHotFile($path);
  17046. }
  17047. /**
  17048. * Set the Vite build directory.
  17049. *
  17050. * @param string $path
  17051. * @return \Illuminate\Foundation\Vite
  17052. * @static
  17053. */
  17054. public static function useBuildDirectory($path)
  17055. {
  17056. /** @var \Illuminate\Foundation\Vite $instance */
  17057. return $instance->useBuildDirectory($path);
  17058. }
  17059. /**
  17060. * Use the given callback to resolve attributes for script tags.
  17061. *
  17062. * @param \Illuminate\Foundation\(callable(string, string, ?array, ?array): array)|array $attributes
  17063. * @return \Illuminate\Foundation\Vite
  17064. * @static
  17065. */
  17066. public static function useScriptTagAttributes($attributes)
  17067. {
  17068. /** @var \Illuminate\Foundation\Vite $instance */
  17069. return $instance->useScriptTagAttributes($attributes);
  17070. }
  17071. /**
  17072. * Use the given callback to resolve attributes for style tags.
  17073. *
  17074. * @param \Illuminate\Foundation\(callable(string, string, ?array, ?array): array)|array $attributes
  17075. * @return \Illuminate\Foundation\Vite
  17076. * @static
  17077. */
  17078. public static function useStyleTagAttributes($attributes)
  17079. {
  17080. /** @var \Illuminate\Foundation\Vite $instance */
  17081. return $instance->useStyleTagAttributes($attributes);
  17082. }
  17083. /**
  17084. * Generate React refresh runtime script.
  17085. *
  17086. * @return \Illuminate\Support\HtmlString|void
  17087. * @static
  17088. */
  17089. public static function reactRefresh()
  17090. {
  17091. /** @var \Illuminate\Foundation\Vite $instance */
  17092. return $instance->reactRefresh();
  17093. }
  17094. /**
  17095. * Get the URL for an asset.
  17096. *
  17097. * @param string $asset
  17098. * @param string|null $buildDirectory
  17099. * @return string
  17100. * @static
  17101. */
  17102. public static function asset($asset, $buildDirectory = null)
  17103. {
  17104. /** @var \Illuminate\Foundation\Vite $instance */
  17105. return $instance->asset($asset, $buildDirectory);
  17106. }
  17107. /**
  17108. * Get a unique hash representing the current manifest, or null if there is no manifest.
  17109. *
  17110. * @return string|null
  17111. * @static
  17112. */
  17113. public static function manifestHash($buildDirectory = null)
  17114. {
  17115. /** @var \Illuminate\Foundation\Vite $instance */
  17116. return $instance->manifestHash($buildDirectory);
  17117. }
  17118. /**
  17119. * Get the Vite tag content as a string of HTML.
  17120. *
  17121. * @return string
  17122. * @static
  17123. */
  17124. public static function toHtml()
  17125. {
  17126. /** @var \Illuminate\Foundation\Vite $instance */
  17127. return $instance->toHtml();
  17128. }
  17129. /**
  17130. * Register a custom macro.
  17131. *
  17132. * @param string $name
  17133. * @param object|callable $macro
  17134. * @return void
  17135. * @static
  17136. */
  17137. public static function macro($name, $macro)
  17138. {
  17139. \Illuminate\Foundation\Vite::macro($name, $macro);
  17140. }
  17141. /**
  17142. * Mix another object into the class.
  17143. *
  17144. * @param object $mixin
  17145. * @param bool $replace
  17146. * @return void
  17147. * @throws \ReflectionException
  17148. * @static
  17149. */
  17150. public static function mixin($mixin, $replace = true)
  17151. {
  17152. \Illuminate\Foundation\Vite::mixin($mixin, $replace);
  17153. }
  17154. /**
  17155. * Checks if macro is registered.
  17156. *
  17157. * @param string $name
  17158. * @return bool
  17159. * @static
  17160. */
  17161. public static function hasMacro($name)
  17162. {
  17163. return \Illuminate\Foundation\Vite::hasMacro($name);
  17164. }
  17165. /**
  17166. * Flush the existing macros.
  17167. *
  17168. * @return void
  17169. * @static
  17170. */
  17171. public static function flushMacros()
  17172. {
  17173. \Illuminate\Foundation\Vite::flushMacros();
  17174. }
  17175. }
  17176. }
  17177. namespace Illuminate\Support {
  17178. /**
  17179. *
  17180. *
  17181. */
  17182. class Arr {
  17183. }
  17184. /**
  17185. *
  17186. *
  17187. */
  17188. class Js {
  17189. }
  17190. /**
  17191. *
  17192. *
  17193. */
  17194. class Str {
  17195. }
  17196. }
  17197. namespace Spatie\LaravelIgnition\Facades {
  17198. /**
  17199. *
  17200. *
  17201. * @see \Spatie\FlareClient\Flare
  17202. */
  17203. class Flare {
  17204. /**
  17205. *
  17206. *
  17207. * @static
  17208. */
  17209. public static function make($apiKey = null, $contextDetector = null)
  17210. {
  17211. return \Spatie\FlareClient\Flare::make($apiKey, $contextDetector);
  17212. }
  17213. /**
  17214. *
  17215. *
  17216. * @static
  17217. */
  17218. public static function setApiToken($apiToken)
  17219. {
  17220. /** @var \Spatie\FlareClient\Flare $instance */
  17221. return $instance->setApiToken($apiToken);
  17222. }
  17223. /**
  17224. *
  17225. *
  17226. * @static
  17227. */
  17228. public static function apiTokenSet()
  17229. {
  17230. /** @var \Spatie\FlareClient\Flare $instance */
  17231. return $instance->apiTokenSet();
  17232. }
  17233. /**
  17234. *
  17235. *
  17236. * @static
  17237. */
  17238. public static function setBaseUrl($baseUrl)
  17239. {
  17240. /** @var \Spatie\FlareClient\Flare $instance */
  17241. return $instance->setBaseUrl($baseUrl);
  17242. }
  17243. /**
  17244. *
  17245. *
  17246. * @static
  17247. */
  17248. public static function setStage($stage)
  17249. {
  17250. /** @var \Spatie\FlareClient\Flare $instance */
  17251. return $instance->setStage($stage);
  17252. }
  17253. /**
  17254. *
  17255. *
  17256. * @static
  17257. */
  17258. public static function sendReportsImmediately()
  17259. {
  17260. /** @var \Spatie\FlareClient\Flare $instance */
  17261. return $instance->sendReportsImmediately();
  17262. }
  17263. /**
  17264. *
  17265. *
  17266. * @static
  17267. */
  17268. public static function determineVersionUsing($determineVersionCallable)
  17269. {
  17270. /** @var \Spatie\FlareClient\Flare $instance */
  17271. return $instance->determineVersionUsing($determineVersionCallable);
  17272. }
  17273. /**
  17274. *
  17275. *
  17276. * @static
  17277. */
  17278. public static function reportErrorLevels($reportErrorLevels)
  17279. {
  17280. /** @var \Spatie\FlareClient\Flare $instance */
  17281. return $instance->reportErrorLevels($reportErrorLevels);
  17282. }
  17283. /**
  17284. *
  17285. *
  17286. * @static
  17287. */
  17288. public static function filterExceptionsUsing($filterExceptionsCallable)
  17289. {
  17290. /** @var \Spatie\FlareClient\Flare $instance */
  17291. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  17292. }
  17293. /**
  17294. *
  17295. *
  17296. * @static
  17297. */
  17298. public static function filterReportsUsing($filterReportsCallable)
  17299. {
  17300. /** @var \Spatie\FlareClient\Flare $instance */
  17301. return $instance->filterReportsUsing($filterReportsCallable);
  17302. }
  17303. /**
  17304. *
  17305. *
  17306. * @static
  17307. */
  17308. public static function version()
  17309. {
  17310. /** @var \Spatie\FlareClient\Flare $instance */
  17311. return $instance->version();
  17312. }
  17313. /**
  17314. *
  17315. *
  17316. * @return array<int, FlareMiddleware|class-string<FlareMiddleware>>
  17317. * @static
  17318. */
  17319. public static function getMiddleware()
  17320. {
  17321. /** @var \Spatie\FlareClient\Flare $instance */
  17322. return $instance->getMiddleware();
  17323. }
  17324. /**
  17325. *
  17326. *
  17327. * @static
  17328. */
  17329. public static function setContextProviderDetector($contextDetector)
  17330. {
  17331. /** @var \Spatie\FlareClient\Flare $instance */
  17332. return $instance->setContextProviderDetector($contextDetector);
  17333. }
  17334. /**
  17335. *
  17336. *
  17337. * @static
  17338. */
  17339. public static function setContainer($container)
  17340. {
  17341. /** @var \Spatie\FlareClient\Flare $instance */
  17342. return $instance->setContainer($container);
  17343. }
  17344. /**
  17345. *
  17346. *
  17347. * @static
  17348. */
  17349. public static function registerFlareHandlers()
  17350. {
  17351. /** @var \Spatie\FlareClient\Flare $instance */
  17352. return $instance->registerFlareHandlers();
  17353. }
  17354. /**
  17355. *
  17356. *
  17357. * @static
  17358. */
  17359. public static function registerExceptionHandler()
  17360. {
  17361. /** @var \Spatie\FlareClient\Flare $instance */
  17362. return $instance->registerExceptionHandler();
  17363. }
  17364. /**
  17365. *
  17366. *
  17367. * @static
  17368. */
  17369. public static function registerErrorHandler()
  17370. {
  17371. /** @var \Spatie\FlareClient\Flare $instance */
  17372. return $instance->registerErrorHandler();
  17373. }
  17374. /**
  17375. *
  17376. *
  17377. * @param \Spatie\FlareClient\FlareMiddleware\FlareMiddleware|array<FlareMiddleware>|\Spatie\FlareClient\class-string<FlareMiddleware> $middleware
  17378. * @return \Spatie\FlareClient\Flare
  17379. * @static
  17380. */
  17381. public static function registerMiddleware($middleware)
  17382. {
  17383. /** @var \Spatie\FlareClient\Flare $instance */
  17384. return $instance->registerMiddleware($middleware);
  17385. }
  17386. /**
  17387. *
  17388. *
  17389. * @return array<int,FlareMiddleware|class-string<FlareMiddleware>>
  17390. * @static
  17391. */
  17392. public static function getMiddlewares()
  17393. {
  17394. /** @var \Spatie\FlareClient\Flare $instance */
  17395. return $instance->getMiddlewares();
  17396. }
  17397. /**
  17398. *
  17399. *
  17400. * @param string $name
  17401. * @param string $messageLevel
  17402. * @param \Spatie\FlareClient\array<int, mixed> $metaData
  17403. * @return \Spatie\FlareClient\Flare
  17404. * @static
  17405. */
  17406. public static function glow($name, $messageLevel = 'info', $metaData = [])
  17407. {
  17408. /** @var \Spatie\FlareClient\Flare $instance */
  17409. return $instance->glow($name, $messageLevel, $metaData);
  17410. }
  17411. /**
  17412. *
  17413. *
  17414. * @static
  17415. */
  17416. public static function handleException($throwable)
  17417. {
  17418. /** @var \Spatie\FlareClient\Flare $instance */
  17419. return $instance->handleException($throwable);
  17420. }
  17421. /**
  17422. *
  17423. *
  17424. * @return mixed
  17425. * @static
  17426. */
  17427. public static function handleError($code, $message, $file = '', $line = 0)
  17428. {
  17429. /** @var \Spatie\FlareClient\Flare $instance */
  17430. return $instance->handleError($code, $message, $file, $line);
  17431. }
  17432. /**
  17433. *
  17434. *
  17435. * @static
  17436. */
  17437. public static function applicationPath($applicationPath)
  17438. {
  17439. /** @var \Spatie\FlareClient\Flare $instance */
  17440. return $instance->applicationPath($applicationPath);
  17441. }
  17442. /**
  17443. *
  17444. *
  17445. * @static
  17446. */
  17447. public static function report($throwable, $callback = null, $report = null)
  17448. {
  17449. /** @var \Spatie\FlareClient\Flare $instance */
  17450. return $instance->report($throwable, $callback, $report);
  17451. }
  17452. /**
  17453. *
  17454. *
  17455. * @static
  17456. */
  17457. public static function reportMessage($message, $logLevel, $callback = null)
  17458. {
  17459. /** @var \Spatie\FlareClient\Flare $instance */
  17460. return $instance->reportMessage($message, $logLevel, $callback);
  17461. }
  17462. /**
  17463. *
  17464. *
  17465. * @static
  17466. */
  17467. public static function sendTestReport($throwable)
  17468. {
  17469. /** @var \Spatie\FlareClient\Flare $instance */
  17470. return $instance->sendTestReport($throwable);
  17471. }
  17472. /**
  17473. *
  17474. *
  17475. * @static
  17476. */
  17477. public static function reset()
  17478. {
  17479. /** @var \Spatie\FlareClient\Flare $instance */
  17480. return $instance->reset();
  17481. }
  17482. /**
  17483. *
  17484. *
  17485. * @static
  17486. */
  17487. public static function anonymizeIp()
  17488. {
  17489. /** @var \Spatie\FlareClient\Flare $instance */
  17490. return $instance->anonymizeIp();
  17491. }
  17492. /**
  17493. *
  17494. *
  17495. * @param \Spatie\FlareClient\array<int, string> $fieldNames
  17496. * @return \Spatie\FlareClient\Flare
  17497. * @static
  17498. */
  17499. public static function censorRequestBodyFields($fieldNames)
  17500. {
  17501. /** @var \Spatie\FlareClient\Flare $instance */
  17502. return $instance->censorRequestBodyFields($fieldNames);
  17503. }
  17504. /**
  17505. *
  17506. *
  17507. * @static
  17508. */
  17509. public static function createReport($throwable)
  17510. {
  17511. /** @var \Spatie\FlareClient\Flare $instance */
  17512. return $instance->createReport($throwable);
  17513. }
  17514. /**
  17515. *
  17516. *
  17517. * @static
  17518. */
  17519. public static function createReportFromMessage($message, $logLevel)
  17520. {
  17521. /** @var \Spatie\FlareClient\Flare $instance */
  17522. return $instance->createReportFromMessage($message, $logLevel);
  17523. }
  17524. /**
  17525. *
  17526. *
  17527. * @static
  17528. */
  17529. public static function stage($stage)
  17530. {
  17531. /** @var \Spatie\FlareClient\Flare $instance */
  17532. return $instance->stage($stage);
  17533. }
  17534. /**
  17535. *
  17536. *
  17537. * @static
  17538. */
  17539. public static function messageLevel($messageLevel)
  17540. {
  17541. /** @var \Spatie\FlareClient\Flare $instance */
  17542. return $instance->messageLevel($messageLevel);
  17543. }
  17544. /**
  17545. *
  17546. *
  17547. * @param string $groupName
  17548. * @param mixed $default
  17549. * @return array<int, mixed>
  17550. * @static
  17551. */
  17552. public static function getGroup($groupName = 'context', $default = [])
  17553. {
  17554. /** @var \Spatie\FlareClient\Flare $instance */
  17555. return $instance->getGroup($groupName, $default);
  17556. }
  17557. /**
  17558. *
  17559. *
  17560. * @static
  17561. */
  17562. public static function context($key, $value)
  17563. {
  17564. /** @var \Spatie\FlareClient\Flare $instance */
  17565. return $instance->context($key, $value);
  17566. }
  17567. /**
  17568. *
  17569. *
  17570. * @param string $groupName
  17571. * @param \Spatie\FlareClient\array<string, mixed> $properties
  17572. * @return \Spatie\FlareClient\Flare
  17573. * @static
  17574. */
  17575. public static function group($groupName, $properties)
  17576. {
  17577. /** @var \Spatie\FlareClient\Flare $instance */
  17578. return $instance->group($groupName, $properties);
  17579. }
  17580. }
  17581. }
  17582. namespace Illuminate\Http {
  17583. /**
  17584. *
  17585. *
  17586. */
  17587. class Request {
  17588. /**
  17589. *
  17590. *
  17591. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  17592. * @param array $rules
  17593. * @param mixed $params
  17594. * @static
  17595. */
  17596. public static function validate($rules, ...$params)
  17597. {
  17598. return \Illuminate\Http\Request::validate($rules, ...$params);
  17599. }
  17600. /**
  17601. *
  17602. *
  17603. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  17604. * @param string $errorBag
  17605. * @param array $rules
  17606. * @param mixed $params
  17607. * @static
  17608. */
  17609. public static function validateWithBag($errorBag, $rules, ...$params)
  17610. {
  17611. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  17612. }
  17613. /**
  17614. *
  17615. *
  17616. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17617. * @param mixed $absolute
  17618. * @static
  17619. */
  17620. public static function hasValidSignature($absolute = true)
  17621. {
  17622. return \Illuminate\Http\Request::hasValidSignature($absolute);
  17623. }
  17624. /**
  17625. *
  17626. *
  17627. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17628. * @static
  17629. */
  17630. public static function hasValidRelativeSignature()
  17631. {
  17632. return \Illuminate\Http\Request::hasValidRelativeSignature();
  17633. }
  17634. /**
  17635. *
  17636. *
  17637. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17638. * @param mixed $ignoreQuery
  17639. * @param mixed $absolute
  17640. * @static
  17641. */
  17642. public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  17643. {
  17644. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  17645. }
  17646. }
  17647. }
  17648. namespace {
  17649. class App extends \Illuminate\Support\Facades\App {}
  17650. class Arr extends \Illuminate\Support\Arr {}
  17651. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  17652. class Auth extends \Illuminate\Support\Facades\Auth {}
  17653. class Blade extends \Illuminate\Support\Facades\Blade {}
  17654. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  17655. class Bus extends \Illuminate\Support\Facades\Bus {}
  17656. class Cache extends \Illuminate\Support\Facades\Cache {}
  17657. class Config extends \Illuminate\Support\Facades\Config {}
  17658. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  17659. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  17660. class Date extends \Illuminate\Support\Facades\Date {}
  17661. class DB extends \Illuminate\Support\Facades\DB {}
  17662. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  17663. /**
  17664. * Create and return an un-saved model instance.
  17665. *
  17666. * @param array $attributes
  17667. * @return \Illuminate\Database\Eloquent\Model|static
  17668. * @static
  17669. */
  17670. public static function make($attributes = [])
  17671. {
  17672. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17673. return $instance->make($attributes);
  17674. }
  17675. /**
  17676. * Register a new global scope.
  17677. *
  17678. * @param string $identifier
  17679. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  17680. * @return \Illuminate\Database\Eloquent\Builder|static
  17681. * @static
  17682. */
  17683. public static function withGlobalScope($identifier, $scope)
  17684. {
  17685. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17686. return $instance->withGlobalScope($identifier, $scope);
  17687. }
  17688. /**
  17689. * Remove a registered global scope.
  17690. *
  17691. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  17692. * @return \Illuminate\Database\Eloquent\Builder|static
  17693. * @static
  17694. */
  17695. public static function withoutGlobalScope($scope)
  17696. {
  17697. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17698. return $instance->withoutGlobalScope($scope);
  17699. }
  17700. /**
  17701. * Remove all or passed registered global scopes.
  17702. *
  17703. * @param array|null $scopes
  17704. * @return \Illuminate\Database\Eloquent\Builder|static
  17705. * @static
  17706. */
  17707. public static function withoutGlobalScopes($scopes = null)
  17708. {
  17709. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17710. return $instance->withoutGlobalScopes($scopes);
  17711. }
  17712. /**
  17713. * Get an array of global scopes that were removed from the query.
  17714. *
  17715. * @return array
  17716. * @static
  17717. */
  17718. public static function removedScopes()
  17719. {
  17720. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17721. return $instance->removedScopes();
  17722. }
  17723. /**
  17724. * Add a where clause on the primary key to the query.
  17725. *
  17726. * @param mixed $id
  17727. * @return \Illuminate\Database\Eloquent\Builder|static
  17728. * @static
  17729. */
  17730. public static function whereKey($id)
  17731. {
  17732. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17733. return $instance->whereKey($id);
  17734. }
  17735. /**
  17736. * Add a where clause on the primary key to the query.
  17737. *
  17738. * @param mixed $id
  17739. * @return \Illuminate\Database\Eloquent\Builder|static
  17740. * @static
  17741. */
  17742. public static function whereKeyNot($id)
  17743. {
  17744. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17745. return $instance->whereKeyNot($id);
  17746. }
  17747. /**
  17748. * Add a basic where clause to the query.
  17749. *
  17750. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17751. * @param mixed $operator
  17752. * @param mixed $value
  17753. * @param string $boolean
  17754. * @return \Illuminate\Database\Eloquent\Builder|static
  17755. * @static
  17756. */
  17757. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  17758. {
  17759. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17760. return $instance->where($column, $operator, $value, $boolean);
  17761. }
  17762. /**
  17763. * Add a basic where clause to the query, and return the first result.
  17764. *
  17765. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17766. * @param mixed $operator
  17767. * @param mixed $value
  17768. * @param string $boolean
  17769. * @return \Illuminate\Database\Eloquent\Model|static|null
  17770. * @static
  17771. */
  17772. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  17773. {
  17774. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17775. return $instance->firstWhere($column, $operator, $value, $boolean);
  17776. }
  17777. /**
  17778. * Add an "or where" clause to the query.
  17779. *
  17780. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  17781. * @param mixed $operator
  17782. * @param mixed $value
  17783. * @return \Illuminate\Database\Eloquent\Builder|static
  17784. * @static
  17785. */
  17786. public static function orWhere($column, $operator = null, $value = null)
  17787. {
  17788. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17789. return $instance->orWhere($column, $operator, $value);
  17790. }
  17791. /**
  17792. * Add a basic "where not" clause to the query.
  17793. *
  17794. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17795. * @param mixed $operator
  17796. * @param mixed $value
  17797. * @param string $boolean
  17798. * @return \Illuminate\Database\Eloquent\Builder|static
  17799. * @static
  17800. */
  17801. public static function whereNot($column, $operator = null, $value = null, $boolean = 'and')
  17802. {
  17803. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17804. return $instance->whereNot($column, $operator, $value, $boolean);
  17805. }
  17806. /**
  17807. * Add an "or where not" clause to the query.
  17808. *
  17809. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  17810. * @param mixed $operator
  17811. * @param mixed $value
  17812. * @return \Illuminate\Database\Eloquent\Builder|static
  17813. * @static
  17814. */
  17815. public static function orWhereNot($column, $operator = null, $value = null)
  17816. {
  17817. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17818. return $instance->orWhereNot($column, $operator, $value);
  17819. }
  17820. /**
  17821. * Add an "order by" clause for a timestamp to the query.
  17822. *
  17823. * @param string|\Illuminate\Database\Query\Expression $column
  17824. * @return \Illuminate\Database\Eloquent\Builder|static
  17825. * @static
  17826. */
  17827. public static function latest($column = null)
  17828. {
  17829. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17830. return $instance->latest($column);
  17831. }
  17832. /**
  17833. * Add an "order by" clause for a timestamp to the query.
  17834. *
  17835. * @param string|\Illuminate\Database\Query\Expression $column
  17836. * @return \Illuminate\Database\Eloquent\Builder|static
  17837. * @static
  17838. */
  17839. public static function oldest($column = null)
  17840. {
  17841. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17842. return $instance->oldest($column);
  17843. }
  17844. /**
  17845. * Create a collection of models from plain arrays.
  17846. *
  17847. * @param array $items
  17848. * @return \Illuminate\Database\Eloquent\Collection
  17849. * @static
  17850. */
  17851. public static function hydrate($items)
  17852. {
  17853. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17854. return $instance->hydrate($items);
  17855. }
  17856. /**
  17857. * Create a collection of models from a raw query.
  17858. *
  17859. * @param string $query
  17860. * @param array $bindings
  17861. * @return \Illuminate\Database\Eloquent\Collection
  17862. * @static
  17863. */
  17864. public static function fromQuery($query, $bindings = [])
  17865. {
  17866. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17867. return $instance->fromQuery($query, $bindings);
  17868. }
  17869. /**
  17870. * Find a model by its primary key.
  17871. *
  17872. * @param mixed $id
  17873. * @param array|string $columns
  17874. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  17875. * @static
  17876. */
  17877. public static function find($id, $columns = [])
  17878. {
  17879. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17880. return $instance->find($id, $columns);
  17881. }
  17882. /**
  17883. * Find multiple models by their primary keys.
  17884. *
  17885. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  17886. * @param array|string $columns
  17887. * @return \Illuminate\Database\Eloquent\Collection
  17888. * @static
  17889. */
  17890. public static function findMany($ids, $columns = [])
  17891. {
  17892. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17893. return $instance->findMany($ids, $columns);
  17894. }
  17895. /**
  17896. * Find a model by its primary key or throw an exception.
  17897. *
  17898. * @param mixed $id
  17899. * @param array|string $columns
  17900. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  17901. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  17902. * @static
  17903. */
  17904. public static function findOrFail($id, $columns = [])
  17905. {
  17906. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17907. return $instance->findOrFail($id, $columns);
  17908. }
  17909. /**
  17910. * Find a model by its primary key or return fresh model instance.
  17911. *
  17912. * @param mixed $id
  17913. * @param array|string $columns
  17914. * @return \Illuminate\Database\Eloquent\Model|static
  17915. * @static
  17916. */
  17917. public static function findOrNew($id, $columns = [])
  17918. {
  17919. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17920. return $instance->findOrNew($id, $columns);
  17921. }
  17922. /**
  17923. * Find a model by its primary key or call a callback.
  17924. *
  17925. * @param mixed $id
  17926. * @param \Closure|array|string $columns
  17927. * @param \Closure|null $callback
  17928. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|mixed
  17929. * @static
  17930. */
  17931. public static function findOr($id, $columns = [], $callback = null)
  17932. {
  17933. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17934. return $instance->findOr($id, $columns, $callback);
  17935. }
  17936. /**
  17937. * Get the first record matching the attributes or instantiate it.
  17938. *
  17939. * @param array $attributes
  17940. * @param array $values
  17941. * @return \Illuminate\Database\Eloquent\Model|static
  17942. * @static
  17943. */
  17944. public static function firstOrNew($attributes = [], $values = [])
  17945. {
  17946. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17947. return $instance->firstOrNew($attributes, $values);
  17948. }
  17949. /**
  17950. * Get the first record matching the attributes or create it.
  17951. *
  17952. * @param array $attributes
  17953. * @param array $values
  17954. * @return \Illuminate\Database\Eloquent\Model|static
  17955. * @static
  17956. */
  17957. public static function firstOrCreate($attributes = [], $values = [])
  17958. {
  17959. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17960. return $instance->firstOrCreate($attributes, $values);
  17961. }
  17962. /**
  17963. * Create or update a record matching the attributes, and fill it with values.
  17964. *
  17965. * @param array $attributes
  17966. * @param array $values
  17967. * @return \Illuminate\Database\Eloquent\Model|static
  17968. * @static
  17969. */
  17970. public static function updateOrCreate($attributes, $values = [])
  17971. {
  17972. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17973. return $instance->updateOrCreate($attributes, $values);
  17974. }
  17975. /**
  17976. * Execute the query and get the first result or throw an exception.
  17977. *
  17978. * @param array|string $columns
  17979. * @return \Illuminate\Database\Eloquent\Model|static
  17980. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  17981. * @static
  17982. */
  17983. public static function firstOrFail($columns = [])
  17984. {
  17985. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17986. return $instance->firstOrFail($columns);
  17987. }
  17988. /**
  17989. * Execute the query and get the first result or call a callback.
  17990. *
  17991. * @param \Closure|array|string $columns
  17992. * @param \Closure|null $callback
  17993. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  17994. * @static
  17995. */
  17996. public static function firstOr($columns = [], $callback = null)
  17997. {
  17998. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17999. return $instance->firstOr($columns, $callback);
  18000. }
  18001. /**
  18002. * Execute the query and get the first result if it's the sole matching record.
  18003. *
  18004. * @param array|string $columns
  18005. * @return \Illuminate\Database\Eloquent\Model
  18006. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  18007. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18008. * @static
  18009. */
  18010. public static function sole($columns = [])
  18011. {
  18012. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18013. return $instance->sole($columns);
  18014. }
  18015. /**
  18016. * Get a single column's value from the first result of a query.
  18017. *
  18018. * @param string|\Illuminate\Database\Query\Expression $column
  18019. * @return mixed
  18020. * @static
  18021. */
  18022. public static function value($column)
  18023. {
  18024. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18025. return $instance->value($column);
  18026. }
  18027. /**
  18028. * Get a single column's value from the first result of a query if it's the sole matching record.
  18029. *
  18030. * @param string|\Illuminate\Database\Query\Expression $column
  18031. * @return mixed
  18032. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  18033. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18034. * @static
  18035. */
  18036. public static function soleValue($column)
  18037. {
  18038. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18039. return $instance->soleValue($column);
  18040. }
  18041. /**
  18042. * Get a single column's value from the first result of the query or throw an exception.
  18043. *
  18044. * @param string|\Illuminate\Database\Query\Expression $column
  18045. * @return mixed
  18046. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  18047. * @static
  18048. */
  18049. public static function valueOrFail($column)
  18050. {
  18051. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18052. return $instance->valueOrFail($column);
  18053. }
  18054. /**
  18055. * Execute the query as a "select" statement.
  18056. *
  18057. * @param array|string $columns
  18058. * @return \Illuminate\Database\Eloquent\Collection|static[]
  18059. * @static
  18060. */
  18061. public static function get($columns = [])
  18062. {
  18063. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18064. return $instance->get($columns);
  18065. }
  18066. /**
  18067. * Get the hydrated models without eager loading.
  18068. *
  18069. * @param array|string $columns
  18070. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  18071. * @static
  18072. */
  18073. public static function getModels($columns = [])
  18074. {
  18075. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18076. return $instance->getModels($columns);
  18077. }
  18078. /**
  18079. * Eager load the relationships for the models.
  18080. *
  18081. * @param array $models
  18082. * @return array
  18083. * @static
  18084. */
  18085. public static function eagerLoadRelations($models)
  18086. {
  18087. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18088. return $instance->eagerLoadRelations($models);
  18089. }
  18090. /**
  18091. * Get a lazy collection for the given query.
  18092. *
  18093. * @return \Illuminate\Support\LazyCollection
  18094. * @static
  18095. */
  18096. public static function cursor()
  18097. {
  18098. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18099. return $instance->cursor();
  18100. }
  18101. /**
  18102. * Get an array with the values of a given column.
  18103. *
  18104. * @param string|\Illuminate\Database\Query\Expression $column
  18105. * @param string|null $key
  18106. * @return \Illuminate\Support\Collection
  18107. * @static
  18108. */
  18109. public static function pluck($column, $key = null)
  18110. {
  18111. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18112. return $instance->pluck($column, $key);
  18113. }
  18114. /**
  18115. * Paginate the given query.
  18116. *
  18117. * @param int|null|\Closure $perPage
  18118. * @param array|string $columns
  18119. * @param string $pageName
  18120. * @param int|null $page
  18121. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  18122. * @throws \InvalidArgumentException
  18123. * @static
  18124. */
  18125. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  18126. {
  18127. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18128. return $instance->paginate($perPage, $columns, $pageName, $page);
  18129. }
  18130. /**
  18131. * Paginate the given query into a simple paginator.
  18132. *
  18133. * @param int|null $perPage
  18134. * @param array|string $columns
  18135. * @param string $pageName
  18136. * @param int|null $page
  18137. * @return \Illuminate\Contracts\Pagination\Paginator
  18138. * @static
  18139. */
  18140. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  18141. {
  18142. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18143. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  18144. }
  18145. /**
  18146. * Paginate the given query into a cursor paginator.
  18147. *
  18148. * @param int|null $perPage
  18149. * @param array|string $columns
  18150. * @param string $cursorName
  18151. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  18152. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  18153. * @static
  18154. */
  18155. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  18156. {
  18157. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18158. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  18159. }
  18160. /**
  18161. * Save a new model and return the instance.
  18162. *
  18163. * @param array $attributes
  18164. * @return \Illuminate\Database\Eloquent\Model|$this
  18165. * @static
  18166. */
  18167. public static function create($attributes = [])
  18168. {
  18169. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18170. return $instance->create($attributes);
  18171. }
  18172. /**
  18173. * Save a new model and return the instance. Allow mass-assignment.
  18174. *
  18175. * @param array $attributes
  18176. * @return \Illuminate\Database\Eloquent\Model|$this
  18177. * @static
  18178. */
  18179. public static function forceCreate($attributes)
  18180. {
  18181. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18182. return $instance->forceCreate($attributes);
  18183. }
  18184. /**
  18185. * Insert new records or update the existing ones.
  18186. *
  18187. * @param array $values
  18188. * @param array|string $uniqueBy
  18189. * @param array|null $update
  18190. * @return int
  18191. * @static
  18192. */
  18193. public static function upsert($values, $uniqueBy, $update = null)
  18194. {
  18195. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18196. return $instance->upsert($values, $uniqueBy, $update);
  18197. }
  18198. /**
  18199. * Register a replacement for the default delete function.
  18200. *
  18201. * @param \Closure $callback
  18202. * @return void
  18203. * @static
  18204. */
  18205. public static function onDelete($callback)
  18206. {
  18207. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18208. $instance->onDelete($callback);
  18209. }
  18210. /**
  18211. * Call the given local model scopes.
  18212. *
  18213. * @param array|string $scopes
  18214. * @return static|mixed
  18215. * @static
  18216. */
  18217. public static function scopes($scopes)
  18218. {
  18219. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18220. return $instance->scopes($scopes);
  18221. }
  18222. /**
  18223. * Apply the scopes to the Eloquent builder instance and return it.
  18224. *
  18225. * @return static
  18226. * @static
  18227. */
  18228. public static function applyScopes()
  18229. {
  18230. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18231. return $instance->applyScopes();
  18232. }
  18233. /**
  18234. * Prevent the specified relations from being eager loaded.
  18235. *
  18236. * @param mixed $relations
  18237. * @return \Illuminate\Database\Eloquent\Builder|static
  18238. * @static
  18239. */
  18240. public static function without($relations)
  18241. {
  18242. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18243. return $instance->without($relations);
  18244. }
  18245. /**
  18246. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  18247. *
  18248. * @param mixed $relations
  18249. * @return \Illuminate\Database\Eloquent\Builder|static
  18250. * @static
  18251. */
  18252. public static function withOnly($relations)
  18253. {
  18254. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18255. return $instance->withOnly($relations);
  18256. }
  18257. /**
  18258. * Create a new instance of the model being queried.
  18259. *
  18260. * @param array $attributes
  18261. * @return \Illuminate\Database\Eloquent\Model|static
  18262. * @static
  18263. */
  18264. public static function newModelInstance($attributes = [])
  18265. {
  18266. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18267. return $instance->newModelInstance($attributes);
  18268. }
  18269. /**
  18270. * Apply query-time casts to the model instance.
  18271. *
  18272. * @param array $casts
  18273. * @return \Illuminate\Database\Eloquent\Builder|static
  18274. * @static
  18275. */
  18276. public static function withCasts($casts)
  18277. {
  18278. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18279. return $instance->withCasts($casts);
  18280. }
  18281. /**
  18282. * Get the underlying query builder instance.
  18283. *
  18284. * @return \Illuminate\Database\Query\Builder
  18285. * @static
  18286. */
  18287. public static function getQuery()
  18288. {
  18289. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18290. return $instance->getQuery();
  18291. }
  18292. /**
  18293. * Set the underlying query builder instance.
  18294. *
  18295. * @param \Illuminate\Database\Query\Builder $query
  18296. * @return \Illuminate\Database\Eloquent\Builder|static
  18297. * @static
  18298. */
  18299. public static function setQuery($query)
  18300. {
  18301. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18302. return $instance->setQuery($query);
  18303. }
  18304. /**
  18305. * Get a base query builder instance.
  18306. *
  18307. * @return \Illuminate\Database\Query\Builder
  18308. * @static
  18309. */
  18310. public static function toBase()
  18311. {
  18312. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18313. return $instance->toBase();
  18314. }
  18315. /**
  18316. * Get the relationships being eagerly loaded.
  18317. *
  18318. * @return array
  18319. * @static
  18320. */
  18321. public static function getEagerLoads()
  18322. {
  18323. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18324. return $instance->getEagerLoads();
  18325. }
  18326. /**
  18327. * Set the relationships being eagerly loaded.
  18328. *
  18329. * @param array $eagerLoad
  18330. * @return \Illuminate\Database\Eloquent\Builder|static
  18331. * @static
  18332. */
  18333. public static function setEagerLoads($eagerLoad)
  18334. {
  18335. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18336. return $instance->setEagerLoads($eagerLoad);
  18337. }
  18338. /**
  18339. * Indicate that the given relationships should not be eagerly loaded.
  18340. *
  18341. * @param array $relations
  18342. * @return \Illuminate\Database\Eloquent\Builder|static
  18343. * @static
  18344. */
  18345. public static function withoutEagerLoad($relations)
  18346. {
  18347. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18348. return $instance->withoutEagerLoad($relations);
  18349. }
  18350. /**
  18351. * Flush the relationships being eagerly loaded.
  18352. *
  18353. * @return \Illuminate\Database\Eloquent\Builder|static
  18354. * @static
  18355. */
  18356. public static function withoutEagerLoads()
  18357. {
  18358. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18359. return $instance->withoutEagerLoads();
  18360. }
  18361. /**
  18362. * Get the model instance being queried.
  18363. *
  18364. * @return \Illuminate\Database\Eloquent\Model|static
  18365. * @static
  18366. */
  18367. public static function getModel()
  18368. {
  18369. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18370. return $instance->getModel();
  18371. }
  18372. /**
  18373. * Set a model instance for the model being queried.
  18374. *
  18375. * @param \Illuminate\Database\Eloquent\Model $model
  18376. * @return \Illuminate\Database\Eloquent\Builder|static
  18377. * @static
  18378. */
  18379. public static function setModel($model)
  18380. {
  18381. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18382. return $instance->setModel($model);
  18383. }
  18384. /**
  18385. * Get the given macro by name.
  18386. *
  18387. * @param string $name
  18388. * @return \Closure
  18389. * @static
  18390. */
  18391. public static function getMacro($name)
  18392. {
  18393. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18394. return $instance->getMacro($name);
  18395. }
  18396. /**
  18397. * Checks if a macro is registered.
  18398. *
  18399. * @param string $name
  18400. * @return bool
  18401. * @static
  18402. */
  18403. public static function hasMacro($name)
  18404. {
  18405. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18406. return $instance->hasMacro($name);
  18407. }
  18408. /**
  18409. * Get the given global macro by name.
  18410. *
  18411. * @param string $name
  18412. * @return \Closure
  18413. * @static
  18414. */
  18415. public static function getGlobalMacro($name)
  18416. {
  18417. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  18418. }
  18419. /**
  18420. * Checks if a global macro is registered.
  18421. *
  18422. * @param string $name
  18423. * @return bool
  18424. * @static
  18425. */
  18426. public static function hasGlobalMacro($name)
  18427. {
  18428. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  18429. }
  18430. /**
  18431. * Clone the Eloquent query builder.
  18432. *
  18433. * @return static
  18434. * @static
  18435. */
  18436. public static function clone()
  18437. {
  18438. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18439. return $instance->clone();
  18440. }
  18441. /**
  18442. * Chunk the results of the query.
  18443. *
  18444. * @param int $count
  18445. * @param callable $callback
  18446. * @return bool
  18447. * @static
  18448. */
  18449. public static function chunk($count, $callback)
  18450. {
  18451. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18452. return $instance->chunk($count, $callback);
  18453. }
  18454. /**
  18455. * Run a map over each item while chunking.
  18456. *
  18457. * @param callable $callback
  18458. * @param int $count
  18459. * @return \Illuminate\Support\Collection
  18460. * @static
  18461. */
  18462. public static function chunkMap($callback, $count = 1000)
  18463. {
  18464. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18465. return $instance->chunkMap($callback, $count);
  18466. }
  18467. /**
  18468. * Execute a callback over each item while chunking.
  18469. *
  18470. * @param callable $callback
  18471. * @param int $count
  18472. * @return bool
  18473. * @throws \RuntimeException
  18474. * @static
  18475. */
  18476. public static function each($callback, $count = 1000)
  18477. {
  18478. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18479. return $instance->each($callback, $count);
  18480. }
  18481. /**
  18482. * Chunk the results of a query by comparing IDs.
  18483. *
  18484. * @param int $count
  18485. * @param callable $callback
  18486. * @param string|null $column
  18487. * @param string|null $alias
  18488. * @return bool
  18489. * @static
  18490. */
  18491. public static function chunkById($count, $callback, $column = null, $alias = null)
  18492. {
  18493. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18494. return $instance->chunkById($count, $callback, $column, $alias);
  18495. }
  18496. /**
  18497. * Execute a callback over each item while chunking by ID.
  18498. *
  18499. * @param callable $callback
  18500. * @param int $count
  18501. * @param string|null $column
  18502. * @param string|null $alias
  18503. * @return bool
  18504. * @static
  18505. */
  18506. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  18507. {
  18508. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18509. return $instance->eachById($callback, $count, $column, $alias);
  18510. }
  18511. /**
  18512. * Query lazily, by chunks of the given size.
  18513. *
  18514. * @param int $chunkSize
  18515. * @return \Illuminate\Support\LazyCollection
  18516. * @throws \InvalidArgumentException
  18517. * @static
  18518. */
  18519. public static function lazy($chunkSize = 1000)
  18520. {
  18521. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18522. return $instance->lazy($chunkSize);
  18523. }
  18524. /**
  18525. * Query lazily, by chunking the results of a query by comparing IDs.
  18526. *
  18527. * @param int $chunkSize
  18528. * @param string|null $column
  18529. * @param string|null $alias
  18530. * @return \Illuminate\Support\LazyCollection
  18531. * @throws \InvalidArgumentException
  18532. * @static
  18533. */
  18534. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  18535. {
  18536. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18537. return $instance->lazyById($chunkSize, $column, $alias);
  18538. }
  18539. /**
  18540. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  18541. *
  18542. * @param int $chunkSize
  18543. * @param string|null $column
  18544. * @param string|null $alias
  18545. * @return \Illuminate\Support\LazyCollection
  18546. * @throws \InvalidArgumentException
  18547. * @static
  18548. */
  18549. public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  18550. {
  18551. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18552. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  18553. }
  18554. /**
  18555. * Execute the query and get the first result.
  18556. *
  18557. * @param array|string $columns
  18558. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  18559. * @static
  18560. */
  18561. public static function first($columns = [])
  18562. {
  18563. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18564. return $instance->first($columns);
  18565. }
  18566. /**
  18567. * Execute the query and get the first result if it's the sole matching record.
  18568. *
  18569. * @param array|string $columns
  18570. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  18571. * @throws \Illuminate\Database\RecordsNotFoundException
  18572. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18573. * @static
  18574. */
  18575. public static function baseSole($columns = [])
  18576. {
  18577. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18578. return $instance->baseSole($columns);
  18579. }
  18580. /**
  18581. * Pass the query to a given callback.
  18582. *
  18583. * @param callable $callback
  18584. * @return \Illuminate\Database\Eloquent\Builder|static
  18585. * @static
  18586. */
  18587. public static function tap($callback)
  18588. {
  18589. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18590. return $instance->tap($callback);
  18591. }
  18592. /**
  18593. * Apply the callback if the given "value" is (or resolves to) truthy.
  18594. *
  18595. * @template TWhenParameter
  18596. * @template TWhenReturnType
  18597. * @param \Illuminate\Database\Eloquent\(\Closure($this): TWhenParameter)|TWhenParameter|null $value
  18598. * @param \Illuminate\Database\Eloquent\(callable($this, TWhenParameter): TWhenReturnType)|null $callback
  18599. * @param \Illuminate\Database\Eloquent\(callable($this, TWhenParameter): TWhenReturnType)|null $default
  18600. * @return $this|\Illuminate\Database\Eloquent\TWhenReturnType
  18601. * @static
  18602. */
  18603. public static function when($value = null, $callback = null, $default = null)
  18604. {
  18605. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18606. return $instance->when($value, $callback, $default);
  18607. }
  18608. /**
  18609. * Apply the callback if the given "value" is (or resolves to) falsy.
  18610. *
  18611. * @template TUnlessParameter
  18612. * @template TUnlessReturnType
  18613. * @param \Illuminate\Database\Eloquent\(\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  18614. * @param \Illuminate\Database\Eloquent\(callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  18615. * @param \Illuminate\Database\Eloquent\(callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  18616. * @return $this|\Illuminate\Database\Eloquent\TUnlessReturnType
  18617. * @static
  18618. */
  18619. public static function unless($value = null, $callback = null, $default = null)
  18620. {
  18621. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18622. return $instance->unless($value, $callback, $default);
  18623. }
  18624. /**
  18625. * Add a relationship count / exists condition to the query.
  18626. *
  18627. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  18628. * @param string $operator
  18629. * @param int $count
  18630. * @param string $boolean
  18631. * @param \Closure|null $callback
  18632. * @return \Illuminate\Database\Eloquent\Builder|static
  18633. * @throws \RuntimeException
  18634. * @static
  18635. */
  18636. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18637. {
  18638. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18639. return $instance->has($relation, $operator, $count, $boolean, $callback);
  18640. }
  18641. /**
  18642. * Add a relationship count / exists condition to the query with an "or".
  18643. *
  18644. * @param string $relation
  18645. * @param string $operator
  18646. * @param int $count
  18647. * @return \Illuminate\Database\Eloquent\Builder|static
  18648. * @static
  18649. */
  18650. public static function orHas($relation, $operator = '>=', $count = 1)
  18651. {
  18652. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18653. return $instance->orHas($relation, $operator, $count);
  18654. }
  18655. /**
  18656. * Add a relationship count / exists condition to the query.
  18657. *
  18658. * @param string $relation
  18659. * @param string $boolean
  18660. * @param \Closure|null $callback
  18661. * @return \Illuminate\Database\Eloquent\Builder|static
  18662. * @static
  18663. */
  18664. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  18665. {
  18666. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18667. return $instance->doesntHave($relation, $boolean, $callback);
  18668. }
  18669. /**
  18670. * Add a relationship count / exists condition to the query with an "or".
  18671. *
  18672. * @param string $relation
  18673. * @return \Illuminate\Database\Eloquent\Builder|static
  18674. * @static
  18675. */
  18676. public static function orDoesntHave($relation)
  18677. {
  18678. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18679. return $instance->orDoesntHave($relation);
  18680. }
  18681. /**
  18682. * Add a relationship count / exists condition to the query with where clauses.
  18683. *
  18684. * @param string $relation
  18685. * @param \Closure|null $callback
  18686. * @param string $operator
  18687. * @param int $count
  18688. * @return \Illuminate\Database\Eloquent\Builder|static
  18689. * @static
  18690. */
  18691. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18692. {
  18693. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18694. return $instance->whereHas($relation, $callback, $operator, $count);
  18695. }
  18696. /**
  18697. * Add a relationship count / exists condition to the query with where clauses.
  18698. *
  18699. * Also load the relationship with same condition.
  18700. *
  18701. * @param string $relation
  18702. * @param \Closure|null $callback
  18703. * @param string $operator
  18704. * @param int $count
  18705. * @return \Illuminate\Database\Eloquent\Builder|static
  18706. * @static
  18707. */
  18708. public static function withWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18709. {
  18710. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18711. return $instance->withWhereHas($relation, $callback, $operator, $count);
  18712. }
  18713. /**
  18714. * Add a relationship count / exists condition to the query with where clauses and an "or".
  18715. *
  18716. * @param string $relation
  18717. * @param \Closure|null $callback
  18718. * @param string $operator
  18719. * @param int $count
  18720. * @return \Illuminate\Database\Eloquent\Builder|static
  18721. * @static
  18722. */
  18723. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18724. {
  18725. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18726. return $instance->orWhereHas($relation, $callback, $operator, $count);
  18727. }
  18728. /**
  18729. * Add a relationship count / exists condition to the query with where clauses.
  18730. *
  18731. * @param string $relation
  18732. * @param \Closure|null $callback
  18733. * @return \Illuminate\Database\Eloquent\Builder|static
  18734. * @static
  18735. */
  18736. public static function whereDoesntHave($relation, $callback = null)
  18737. {
  18738. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18739. return $instance->whereDoesntHave($relation, $callback);
  18740. }
  18741. /**
  18742. * Add a relationship count / exists condition to the query with where clauses and an "or".
  18743. *
  18744. * @param string $relation
  18745. * @param \Closure|null $callback
  18746. * @return \Illuminate\Database\Eloquent\Builder|static
  18747. * @static
  18748. */
  18749. public static function orWhereDoesntHave($relation, $callback = null)
  18750. {
  18751. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18752. return $instance->orWhereDoesntHave($relation, $callback);
  18753. }
  18754. /**
  18755. * Add a polymorphic relationship count / exists condition to the query.
  18756. *
  18757. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18758. * @param string|array $types
  18759. * @param string $operator
  18760. * @param int $count
  18761. * @param string $boolean
  18762. * @param \Closure|null $callback
  18763. * @return \Illuminate\Database\Eloquent\Builder|static
  18764. * @static
  18765. */
  18766. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18767. {
  18768. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18769. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  18770. }
  18771. /**
  18772. * Add a polymorphic relationship count / exists condition to the query with an "or".
  18773. *
  18774. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18775. * @param string|array $types
  18776. * @param string $operator
  18777. * @param int $count
  18778. * @return \Illuminate\Database\Eloquent\Builder|static
  18779. * @static
  18780. */
  18781. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  18782. {
  18783. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18784. return $instance->orHasMorph($relation, $types, $operator, $count);
  18785. }
  18786. /**
  18787. * Add a polymorphic relationship count / exists condition to the query.
  18788. *
  18789. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18790. * @param string|array $types
  18791. * @param string $boolean
  18792. * @param \Closure|null $callback
  18793. * @return \Illuminate\Database\Eloquent\Builder|static
  18794. * @static
  18795. */
  18796. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  18797. {
  18798. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18799. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  18800. }
  18801. /**
  18802. * Add a polymorphic relationship count / exists condition to the query with an "or".
  18803. *
  18804. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18805. * @param string|array $types
  18806. * @return \Illuminate\Database\Eloquent\Builder|static
  18807. * @static
  18808. */
  18809. public static function orDoesntHaveMorph($relation, $types)
  18810. {
  18811. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18812. return $instance->orDoesntHaveMorph($relation, $types);
  18813. }
  18814. /**
  18815. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  18816. *
  18817. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18818. * @param string|array $types
  18819. * @param \Closure|null $callback
  18820. * @param string $operator
  18821. * @param int $count
  18822. * @return \Illuminate\Database\Eloquent\Builder|static
  18823. * @static
  18824. */
  18825. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  18826. {
  18827. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18828. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  18829. }
  18830. /**
  18831. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  18832. *
  18833. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18834. * @param string|array $types
  18835. * @param \Closure|null $callback
  18836. * @param string $operator
  18837. * @param int $count
  18838. * @return \Illuminate\Database\Eloquent\Builder|static
  18839. * @static
  18840. */
  18841. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  18842. {
  18843. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18844. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  18845. }
  18846. /**
  18847. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  18848. *
  18849. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18850. * @param string|array $types
  18851. * @param \Closure|null $callback
  18852. * @return \Illuminate\Database\Eloquent\Builder|static
  18853. * @static
  18854. */
  18855. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  18856. {
  18857. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18858. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  18859. }
  18860. /**
  18861. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  18862. *
  18863. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18864. * @param string|array $types
  18865. * @param \Closure|null $callback
  18866. * @return \Illuminate\Database\Eloquent\Builder|static
  18867. * @static
  18868. */
  18869. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  18870. {
  18871. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18872. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  18873. }
  18874. /**
  18875. * Add a basic where clause to a relationship query.
  18876. *
  18877. * @param string $relation
  18878. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18879. * @param mixed $operator
  18880. * @param mixed $value
  18881. * @return \Illuminate\Database\Eloquent\Builder|static
  18882. * @static
  18883. */
  18884. public static function whereRelation($relation, $column, $operator = null, $value = null)
  18885. {
  18886. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18887. return $instance->whereRelation($relation, $column, $operator, $value);
  18888. }
  18889. /**
  18890. * Add an "or where" clause to a relationship query.
  18891. *
  18892. * @param string $relation
  18893. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18894. * @param mixed $operator
  18895. * @param mixed $value
  18896. * @return \Illuminate\Database\Eloquent\Builder|static
  18897. * @static
  18898. */
  18899. public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  18900. {
  18901. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18902. return $instance->orWhereRelation($relation, $column, $operator, $value);
  18903. }
  18904. /**
  18905. * Add a polymorphic relationship condition to the query with a where clause.
  18906. *
  18907. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18908. * @param string|array $types
  18909. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18910. * @param mixed $operator
  18911. * @param mixed $value
  18912. * @return \Illuminate\Database\Eloquent\Builder|static
  18913. * @static
  18914. */
  18915. public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  18916. {
  18917. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18918. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  18919. }
  18920. /**
  18921. * Add a polymorphic relationship condition to the query with an "or where" clause.
  18922. *
  18923. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18924. * @param string|array $types
  18925. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18926. * @param mixed $operator
  18927. * @param mixed $value
  18928. * @return \Illuminate\Database\Eloquent\Builder|static
  18929. * @static
  18930. */
  18931. public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  18932. {
  18933. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18934. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  18935. }
  18936. /**
  18937. * Add a morph-to relationship condition to the query.
  18938. *
  18939. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18940. * @param \Illuminate\Database\Eloquent\Model|string $model
  18941. * @return \Illuminate\Database\Eloquent\Builder|static
  18942. * @static
  18943. */
  18944. public static function whereMorphedTo($relation, $model, $boolean = 'and')
  18945. {
  18946. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18947. return $instance->whereMorphedTo($relation, $model, $boolean);
  18948. }
  18949. /**
  18950. * Add a not morph-to relationship condition to the query.
  18951. *
  18952. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18953. * @param \Illuminate\Database\Eloquent\Model|string $model
  18954. * @return \Illuminate\Database\Eloquent\Builder|static
  18955. * @static
  18956. */
  18957. public static function whereNotMorphedTo($relation, $model, $boolean = 'and')
  18958. {
  18959. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18960. return $instance->whereNotMorphedTo($relation, $model, $boolean);
  18961. }
  18962. /**
  18963. * Add a morph-to relationship condition to the query with an "or where" clause.
  18964. *
  18965. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18966. * @param \Illuminate\Database\Eloquent\Model|string $model
  18967. * @return \Illuminate\Database\Eloquent\Builder|static
  18968. * @static
  18969. */
  18970. public static function orWhereMorphedTo($relation, $model)
  18971. {
  18972. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18973. return $instance->orWhereMorphedTo($relation, $model);
  18974. }
  18975. /**
  18976. * Add a not morph-to relationship condition to the query with an "or where" clause.
  18977. *
  18978. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18979. * @param \Illuminate\Database\Eloquent\Model|string $model
  18980. * @return \Illuminate\Database\Eloquent\Builder|static
  18981. * @static
  18982. */
  18983. public static function orWhereNotMorphedTo($relation, $model)
  18984. {
  18985. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18986. return $instance->orWhereNotMorphedTo($relation, $model);
  18987. }
  18988. /**
  18989. * Add a "belongs to" relationship where clause to the query.
  18990. *
  18991. * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<\Illuminate\Database\Eloquent\Model> $related
  18992. * @param string|null $relationshipName
  18993. * @param string $boolean
  18994. * @return \Illuminate\Database\Eloquent\Builder|static
  18995. * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
  18996. * @static
  18997. */
  18998. public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  18999. {
  19000. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19001. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  19002. }
  19003. /**
  19004. * Add an "BelongsTo" relationship with an "or where" clause to the query.
  19005. *
  19006. * @param \Illuminate\Database\Eloquent\Model $related
  19007. * @param string|null $relationshipName
  19008. * @return \Illuminate\Database\Eloquent\Builder|static
  19009. * @throws \RuntimeException
  19010. * @static
  19011. */
  19012. public static function orWhereBelongsTo($related, $relationshipName = null)
  19013. {
  19014. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19015. return $instance->orWhereBelongsTo($related, $relationshipName);
  19016. }
  19017. /**
  19018. * Add subselect queries to include an aggregate value for a relationship.
  19019. *
  19020. * @param mixed $relations
  19021. * @param string $column
  19022. * @param string $function
  19023. * @return \Illuminate\Database\Eloquent\Builder|static
  19024. * @static
  19025. */
  19026. public static function withAggregate($relations, $column, $function = null)
  19027. {
  19028. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19029. return $instance->withAggregate($relations, $column, $function);
  19030. }
  19031. /**
  19032. * Add subselect queries to count the relations.
  19033. *
  19034. * @param mixed $relations
  19035. * @return \Illuminate\Database\Eloquent\Builder|static
  19036. * @static
  19037. */
  19038. public static function withCount($relations)
  19039. {
  19040. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19041. return $instance->withCount($relations);
  19042. }
  19043. /**
  19044. * Add subselect queries to include the max of the relation's column.
  19045. *
  19046. * @param string|array $relation
  19047. * @param string $column
  19048. * @return \Illuminate\Database\Eloquent\Builder|static
  19049. * @static
  19050. */
  19051. public static function withMax($relation, $column)
  19052. {
  19053. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19054. return $instance->withMax($relation, $column);
  19055. }
  19056. /**
  19057. * Add subselect queries to include the min of the relation's column.
  19058. *
  19059. * @param string|array $relation
  19060. * @param string $column
  19061. * @return \Illuminate\Database\Eloquent\Builder|static
  19062. * @static
  19063. */
  19064. public static function withMin($relation, $column)
  19065. {
  19066. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19067. return $instance->withMin($relation, $column);
  19068. }
  19069. /**
  19070. * Add subselect queries to include the sum of the relation's column.
  19071. *
  19072. * @param string|array $relation
  19073. * @param string $column
  19074. * @return \Illuminate\Database\Eloquent\Builder|static
  19075. * @static
  19076. */
  19077. public static function withSum($relation, $column)
  19078. {
  19079. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19080. return $instance->withSum($relation, $column);
  19081. }
  19082. /**
  19083. * Add subselect queries to include the average of the relation's column.
  19084. *
  19085. * @param string|array $relation
  19086. * @param string $column
  19087. * @return \Illuminate\Database\Eloquent\Builder|static
  19088. * @static
  19089. */
  19090. public static function withAvg($relation, $column)
  19091. {
  19092. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19093. return $instance->withAvg($relation, $column);
  19094. }
  19095. /**
  19096. * Add subselect queries to include the existence of related models.
  19097. *
  19098. * @param string|array $relation
  19099. * @return \Illuminate\Database\Eloquent\Builder|static
  19100. * @static
  19101. */
  19102. public static function withExists($relation)
  19103. {
  19104. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19105. return $instance->withExists($relation);
  19106. }
  19107. /**
  19108. * Merge the where constraints from another query to the current query.
  19109. *
  19110. * @param \Illuminate\Database\Eloquent\Builder $from
  19111. * @return \Illuminate\Database\Eloquent\Builder|static
  19112. * @static
  19113. */
  19114. public static function mergeConstraintsFrom($from)
  19115. {
  19116. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19117. return $instance->mergeConstraintsFrom($from);
  19118. }
  19119. /**
  19120. * Set the columns to be selected.
  19121. *
  19122. * @param array|mixed $columns
  19123. * @return \Illuminate\Database\Query\Builder
  19124. * @static
  19125. */
  19126. public static function select($columns = [])
  19127. {
  19128. /** @var \Illuminate\Database\Query\Builder $instance */
  19129. return $instance->select($columns);
  19130. }
  19131. /**
  19132. * Add a subselect expression to the query.
  19133. *
  19134. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19135. * @param string $as
  19136. * @return \Illuminate\Database\Query\Builder
  19137. * @throws \InvalidArgumentException
  19138. * @static
  19139. */
  19140. public static function selectSub($query, $as)
  19141. {
  19142. /** @var \Illuminate\Database\Query\Builder $instance */
  19143. return $instance->selectSub($query, $as);
  19144. }
  19145. /**
  19146. * Add a new "raw" select expression to the query.
  19147. *
  19148. * @param string $expression
  19149. * @param array $bindings
  19150. * @return \Illuminate\Database\Query\Builder
  19151. * @static
  19152. */
  19153. public static function selectRaw($expression, $bindings = [])
  19154. {
  19155. /** @var \Illuminate\Database\Query\Builder $instance */
  19156. return $instance->selectRaw($expression, $bindings);
  19157. }
  19158. /**
  19159. * Makes "from" fetch from a subquery.
  19160. *
  19161. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19162. * @param string $as
  19163. * @return \Illuminate\Database\Query\Builder
  19164. * @throws \InvalidArgumentException
  19165. * @static
  19166. */
  19167. public static function fromSub($query, $as)
  19168. {
  19169. /** @var \Illuminate\Database\Query\Builder $instance */
  19170. return $instance->fromSub($query, $as);
  19171. }
  19172. /**
  19173. * Add a raw from clause to the query.
  19174. *
  19175. * @param string $expression
  19176. * @param mixed $bindings
  19177. * @return \Illuminate\Database\Query\Builder
  19178. * @static
  19179. */
  19180. public static function fromRaw($expression, $bindings = [])
  19181. {
  19182. /** @var \Illuminate\Database\Query\Builder $instance */
  19183. return $instance->fromRaw($expression, $bindings);
  19184. }
  19185. /**
  19186. * Add a new select column to the query.
  19187. *
  19188. * @param array|mixed $column
  19189. * @return \Illuminate\Database\Query\Builder
  19190. * @static
  19191. */
  19192. public static function addSelect($column)
  19193. {
  19194. /** @var \Illuminate\Database\Query\Builder $instance */
  19195. return $instance->addSelect($column);
  19196. }
  19197. /**
  19198. * Force the query to only return distinct results.
  19199. *
  19200. * @return \Illuminate\Database\Query\Builder
  19201. * @static
  19202. */
  19203. public static function distinct()
  19204. {
  19205. /** @var \Illuminate\Database\Query\Builder $instance */
  19206. return $instance->distinct();
  19207. }
  19208. /**
  19209. * Set the table which the query is targeting.
  19210. *
  19211. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  19212. * @param string|null $as
  19213. * @return \Illuminate\Database\Query\Builder
  19214. * @static
  19215. */
  19216. public static function from($table, $as = null)
  19217. {
  19218. /** @var \Illuminate\Database\Query\Builder $instance */
  19219. return $instance->from($table, $as);
  19220. }
  19221. /**
  19222. * Add a join clause to the query.
  19223. *
  19224. * @param string $table
  19225. * @param \Closure|string $first
  19226. * @param string|null $operator
  19227. * @param string|null $second
  19228. * @param string $type
  19229. * @param bool $where
  19230. * @return \Illuminate\Database\Query\Builder
  19231. * @static
  19232. */
  19233. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19234. {
  19235. /** @var \Illuminate\Database\Query\Builder $instance */
  19236. return $instance->join($table, $first, $operator, $second, $type, $where);
  19237. }
  19238. /**
  19239. * Add a "join where" clause to the query.
  19240. *
  19241. * @param string $table
  19242. * @param \Closure|string $first
  19243. * @param string $operator
  19244. * @param string $second
  19245. * @param string $type
  19246. * @return \Illuminate\Database\Query\Builder
  19247. * @static
  19248. */
  19249. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  19250. {
  19251. /** @var \Illuminate\Database\Query\Builder $instance */
  19252. return $instance->joinWhere($table, $first, $operator, $second, $type);
  19253. }
  19254. /**
  19255. * Add a subquery join clause to the query.
  19256. *
  19257. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19258. * @param string $as
  19259. * @param \Closure|string $first
  19260. * @param string|null $operator
  19261. * @param string|null $second
  19262. * @param string $type
  19263. * @param bool $where
  19264. * @return \Illuminate\Database\Query\Builder
  19265. * @throws \InvalidArgumentException
  19266. * @static
  19267. */
  19268. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19269. {
  19270. /** @var \Illuminate\Database\Query\Builder $instance */
  19271. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  19272. }
  19273. /**
  19274. * Add a left join to the query.
  19275. *
  19276. * @param string $table
  19277. * @param \Closure|string $first
  19278. * @param string|null $operator
  19279. * @param string|null $second
  19280. * @return \Illuminate\Database\Query\Builder
  19281. * @static
  19282. */
  19283. public static function leftJoin($table, $first, $operator = null, $second = null)
  19284. {
  19285. /** @var \Illuminate\Database\Query\Builder $instance */
  19286. return $instance->leftJoin($table, $first, $operator, $second);
  19287. }
  19288. /**
  19289. * Add a "join where" clause to the query.
  19290. *
  19291. * @param string $table
  19292. * @param \Closure|string $first
  19293. * @param string $operator
  19294. * @param string $second
  19295. * @return \Illuminate\Database\Query\Builder
  19296. * @static
  19297. */
  19298. public static function leftJoinWhere($table, $first, $operator, $second)
  19299. {
  19300. /** @var \Illuminate\Database\Query\Builder $instance */
  19301. return $instance->leftJoinWhere($table, $first, $operator, $second);
  19302. }
  19303. /**
  19304. * Add a subquery left join to the query.
  19305. *
  19306. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19307. * @param string $as
  19308. * @param \Closure|string $first
  19309. * @param string|null $operator
  19310. * @param string|null $second
  19311. * @return \Illuminate\Database\Query\Builder
  19312. * @static
  19313. */
  19314. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  19315. {
  19316. /** @var \Illuminate\Database\Query\Builder $instance */
  19317. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  19318. }
  19319. /**
  19320. * Add a right join to the query.
  19321. *
  19322. * @param string $table
  19323. * @param \Closure|string $first
  19324. * @param string|null $operator
  19325. * @param string|null $second
  19326. * @return \Illuminate\Database\Query\Builder
  19327. * @static
  19328. */
  19329. public static function rightJoin($table, $first, $operator = null, $second = null)
  19330. {
  19331. /** @var \Illuminate\Database\Query\Builder $instance */
  19332. return $instance->rightJoin($table, $first, $operator, $second);
  19333. }
  19334. /**
  19335. * Add a "right join where" clause to the query.
  19336. *
  19337. * @param string $table
  19338. * @param \Closure|string $first
  19339. * @param string $operator
  19340. * @param string $second
  19341. * @return \Illuminate\Database\Query\Builder
  19342. * @static
  19343. */
  19344. public static function rightJoinWhere($table, $first, $operator, $second)
  19345. {
  19346. /** @var \Illuminate\Database\Query\Builder $instance */
  19347. return $instance->rightJoinWhere($table, $first, $operator, $second);
  19348. }
  19349. /**
  19350. * Add a subquery right join to the query.
  19351. *
  19352. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19353. * @param string $as
  19354. * @param \Closure|string $first
  19355. * @param string|null $operator
  19356. * @param string|null $second
  19357. * @return \Illuminate\Database\Query\Builder
  19358. * @static
  19359. */
  19360. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  19361. {
  19362. /** @var \Illuminate\Database\Query\Builder $instance */
  19363. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  19364. }
  19365. /**
  19366. * Add a "cross join" clause to the query.
  19367. *
  19368. * @param string $table
  19369. * @param \Closure|string|null $first
  19370. * @param string|null $operator
  19371. * @param string|null $second
  19372. * @return \Illuminate\Database\Query\Builder
  19373. * @static
  19374. */
  19375. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  19376. {
  19377. /** @var \Illuminate\Database\Query\Builder $instance */
  19378. return $instance->crossJoin($table, $first, $operator, $second);
  19379. }
  19380. /**
  19381. * Add a subquery cross join to the query.
  19382. *
  19383. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19384. * @param string $as
  19385. * @return \Illuminate\Database\Query\Builder
  19386. * @static
  19387. */
  19388. public static function crossJoinSub($query, $as)
  19389. {
  19390. /** @var \Illuminate\Database\Query\Builder $instance */
  19391. return $instance->crossJoinSub($query, $as);
  19392. }
  19393. /**
  19394. * Merge an array of where clauses and bindings.
  19395. *
  19396. * @param array $wheres
  19397. * @param array $bindings
  19398. * @return \Illuminate\Database\Query\Builder
  19399. * @static
  19400. */
  19401. public static function mergeWheres($wheres, $bindings)
  19402. {
  19403. /** @var \Illuminate\Database\Query\Builder $instance */
  19404. return $instance->mergeWheres($wheres, $bindings);
  19405. }
  19406. /**
  19407. * Prepare the value and operator for a where clause.
  19408. *
  19409. * @param string $value
  19410. * @param string $operator
  19411. * @param bool $useDefault
  19412. * @return array
  19413. * @throws \InvalidArgumentException
  19414. * @static
  19415. */
  19416. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  19417. {
  19418. /** @var \Illuminate\Database\Query\Builder $instance */
  19419. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  19420. }
  19421. /**
  19422. * Add a "where" clause comparing two columns to the query.
  19423. *
  19424. * @param string|array $first
  19425. * @param string|null $operator
  19426. * @param string|null $second
  19427. * @param string|null $boolean
  19428. * @return \Illuminate\Database\Query\Builder
  19429. * @static
  19430. */
  19431. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  19432. {
  19433. /** @var \Illuminate\Database\Query\Builder $instance */
  19434. return $instance->whereColumn($first, $operator, $second, $boolean);
  19435. }
  19436. /**
  19437. * Add an "or where" clause comparing two columns to the query.
  19438. *
  19439. * @param string|array $first
  19440. * @param string|null $operator
  19441. * @param string|null $second
  19442. * @return \Illuminate\Database\Query\Builder
  19443. * @static
  19444. */
  19445. public static function orWhereColumn($first, $operator = null, $second = null)
  19446. {
  19447. /** @var \Illuminate\Database\Query\Builder $instance */
  19448. return $instance->orWhereColumn($first, $operator, $second);
  19449. }
  19450. /**
  19451. * Add a raw where clause to the query.
  19452. *
  19453. * @param string $sql
  19454. * @param mixed $bindings
  19455. * @param string $boolean
  19456. * @return \Illuminate\Database\Query\Builder
  19457. * @static
  19458. */
  19459. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  19460. {
  19461. /** @var \Illuminate\Database\Query\Builder $instance */
  19462. return $instance->whereRaw($sql, $bindings, $boolean);
  19463. }
  19464. /**
  19465. * Add a raw or where clause to the query.
  19466. *
  19467. * @param string $sql
  19468. * @param mixed $bindings
  19469. * @return \Illuminate\Database\Query\Builder
  19470. * @static
  19471. */
  19472. public static function orWhereRaw($sql, $bindings = [])
  19473. {
  19474. /** @var \Illuminate\Database\Query\Builder $instance */
  19475. return $instance->orWhereRaw($sql, $bindings);
  19476. }
  19477. /**
  19478. * Add a "where in" clause to the query.
  19479. *
  19480. * @param string $column
  19481. * @param mixed $values
  19482. * @param string $boolean
  19483. * @param bool $not
  19484. * @return \Illuminate\Database\Query\Builder
  19485. * @static
  19486. */
  19487. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  19488. {
  19489. /** @var \Illuminate\Database\Query\Builder $instance */
  19490. return $instance->whereIn($column, $values, $boolean, $not);
  19491. }
  19492. /**
  19493. * Add an "or where in" clause to the query.
  19494. *
  19495. * @param string $column
  19496. * @param mixed $values
  19497. * @return \Illuminate\Database\Query\Builder
  19498. * @static
  19499. */
  19500. public static function orWhereIn($column, $values)
  19501. {
  19502. /** @var \Illuminate\Database\Query\Builder $instance */
  19503. return $instance->orWhereIn($column, $values);
  19504. }
  19505. /**
  19506. * Add a "where not in" clause to the query.
  19507. *
  19508. * @param string $column
  19509. * @param mixed $values
  19510. * @param string $boolean
  19511. * @return \Illuminate\Database\Query\Builder
  19512. * @static
  19513. */
  19514. public static function whereNotIn($column, $values, $boolean = 'and')
  19515. {
  19516. /** @var \Illuminate\Database\Query\Builder $instance */
  19517. return $instance->whereNotIn($column, $values, $boolean);
  19518. }
  19519. /**
  19520. * Add an "or where not in" clause to the query.
  19521. *
  19522. * @param string $column
  19523. * @param mixed $values
  19524. * @return \Illuminate\Database\Query\Builder
  19525. * @static
  19526. */
  19527. public static function orWhereNotIn($column, $values)
  19528. {
  19529. /** @var \Illuminate\Database\Query\Builder $instance */
  19530. return $instance->orWhereNotIn($column, $values);
  19531. }
  19532. /**
  19533. * Add a "where in raw" clause for integer values to the query.
  19534. *
  19535. * @param string $column
  19536. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19537. * @param string $boolean
  19538. * @param bool $not
  19539. * @return \Illuminate\Database\Query\Builder
  19540. * @static
  19541. */
  19542. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  19543. {
  19544. /** @var \Illuminate\Database\Query\Builder $instance */
  19545. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  19546. }
  19547. /**
  19548. * Add an "or where in raw" clause for integer values to the query.
  19549. *
  19550. * @param string $column
  19551. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19552. * @return \Illuminate\Database\Query\Builder
  19553. * @static
  19554. */
  19555. public static function orWhereIntegerInRaw($column, $values)
  19556. {
  19557. /** @var \Illuminate\Database\Query\Builder $instance */
  19558. return $instance->orWhereIntegerInRaw($column, $values);
  19559. }
  19560. /**
  19561. * Add a "where not in raw" clause for integer values to the query.
  19562. *
  19563. * @param string $column
  19564. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19565. * @param string $boolean
  19566. * @return \Illuminate\Database\Query\Builder
  19567. * @static
  19568. */
  19569. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  19570. {
  19571. /** @var \Illuminate\Database\Query\Builder $instance */
  19572. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  19573. }
  19574. /**
  19575. * Add an "or where not in raw" clause for integer values to the query.
  19576. *
  19577. * @param string $column
  19578. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19579. * @return \Illuminate\Database\Query\Builder
  19580. * @static
  19581. */
  19582. public static function orWhereIntegerNotInRaw($column, $values)
  19583. {
  19584. /** @var \Illuminate\Database\Query\Builder $instance */
  19585. return $instance->orWhereIntegerNotInRaw($column, $values);
  19586. }
  19587. /**
  19588. * Add a "where null" clause to the query.
  19589. *
  19590. * @param string|array $columns
  19591. * @param string $boolean
  19592. * @param bool $not
  19593. * @return \Illuminate\Database\Query\Builder
  19594. * @static
  19595. */
  19596. public static function whereNull($columns, $boolean = 'and', $not = false)
  19597. {
  19598. /** @var \Illuminate\Database\Query\Builder $instance */
  19599. return $instance->whereNull($columns, $boolean, $not);
  19600. }
  19601. /**
  19602. * Add an "or where null" clause to the query.
  19603. *
  19604. * @param string|array $column
  19605. * @return \Illuminate\Database\Query\Builder
  19606. * @static
  19607. */
  19608. public static function orWhereNull($column)
  19609. {
  19610. /** @var \Illuminate\Database\Query\Builder $instance */
  19611. return $instance->orWhereNull($column);
  19612. }
  19613. /**
  19614. * Add a "where not null" clause to the query.
  19615. *
  19616. * @param string|array $columns
  19617. * @param string $boolean
  19618. * @return \Illuminate\Database\Query\Builder
  19619. * @static
  19620. */
  19621. public static function whereNotNull($columns, $boolean = 'and')
  19622. {
  19623. /** @var \Illuminate\Database\Query\Builder $instance */
  19624. return $instance->whereNotNull($columns, $boolean);
  19625. }
  19626. /**
  19627. * Add a where between statement to the query.
  19628. *
  19629. * @param string|\Illuminate\Database\Query\Expression $column
  19630. * @param \Illuminate\Database\Query\iterable $values
  19631. * @param string $boolean
  19632. * @param bool $not
  19633. * @return \Illuminate\Database\Query\Builder
  19634. * @static
  19635. */
  19636. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  19637. {
  19638. /** @var \Illuminate\Database\Query\Builder $instance */
  19639. return $instance->whereBetween($column, $values, $boolean, $not);
  19640. }
  19641. /**
  19642. * Add a where between statement using columns to the query.
  19643. *
  19644. * @param string $column
  19645. * @param array $values
  19646. * @param string $boolean
  19647. * @param bool $not
  19648. * @return \Illuminate\Database\Query\Builder
  19649. * @static
  19650. */
  19651. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  19652. {
  19653. /** @var \Illuminate\Database\Query\Builder $instance */
  19654. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  19655. }
  19656. /**
  19657. * Add an or where between statement to the query.
  19658. *
  19659. * @param string $column
  19660. * @param \Illuminate\Database\Query\iterable $values
  19661. * @return \Illuminate\Database\Query\Builder
  19662. * @static
  19663. */
  19664. public static function orWhereBetween($column, $values)
  19665. {
  19666. /** @var \Illuminate\Database\Query\Builder $instance */
  19667. return $instance->orWhereBetween($column, $values);
  19668. }
  19669. /**
  19670. * Add an or where between statement using columns to the query.
  19671. *
  19672. * @param string $column
  19673. * @param array $values
  19674. * @return \Illuminate\Database\Query\Builder
  19675. * @static
  19676. */
  19677. public static function orWhereBetweenColumns($column, $values)
  19678. {
  19679. /** @var \Illuminate\Database\Query\Builder $instance */
  19680. return $instance->orWhereBetweenColumns($column, $values);
  19681. }
  19682. /**
  19683. * Add a where not between statement to the query.
  19684. *
  19685. * @param string $column
  19686. * @param \Illuminate\Database\Query\iterable $values
  19687. * @param string $boolean
  19688. * @return \Illuminate\Database\Query\Builder
  19689. * @static
  19690. */
  19691. public static function whereNotBetween($column, $values, $boolean = 'and')
  19692. {
  19693. /** @var \Illuminate\Database\Query\Builder $instance */
  19694. return $instance->whereNotBetween($column, $values, $boolean);
  19695. }
  19696. /**
  19697. * Add a where not between statement using columns to the query.
  19698. *
  19699. * @param string $column
  19700. * @param array $values
  19701. * @param string $boolean
  19702. * @return \Illuminate\Database\Query\Builder
  19703. * @static
  19704. */
  19705. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  19706. {
  19707. /** @var \Illuminate\Database\Query\Builder $instance */
  19708. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  19709. }
  19710. /**
  19711. * Add an or where not between statement to the query.
  19712. *
  19713. * @param string $column
  19714. * @param \Illuminate\Database\Query\iterable $values
  19715. * @return \Illuminate\Database\Query\Builder
  19716. * @static
  19717. */
  19718. public static function orWhereNotBetween($column, $values)
  19719. {
  19720. /** @var \Illuminate\Database\Query\Builder $instance */
  19721. return $instance->orWhereNotBetween($column, $values);
  19722. }
  19723. /**
  19724. * Add an or where not between statement using columns to the query.
  19725. *
  19726. * @param string $column
  19727. * @param array $values
  19728. * @return \Illuminate\Database\Query\Builder
  19729. * @static
  19730. */
  19731. public static function orWhereNotBetweenColumns($column, $values)
  19732. {
  19733. /** @var \Illuminate\Database\Query\Builder $instance */
  19734. return $instance->orWhereNotBetweenColumns($column, $values);
  19735. }
  19736. /**
  19737. * Add an "or where not null" clause to the query.
  19738. *
  19739. * @param string $column
  19740. * @return \Illuminate\Database\Query\Builder
  19741. * @static
  19742. */
  19743. public static function orWhereNotNull($column)
  19744. {
  19745. /** @var \Illuminate\Database\Query\Builder $instance */
  19746. return $instance->orWhereNotNull($column);
  19747. }
  19748. /**
  19749. * Add a "where date" statement to the query.
  19750. *
  19751. * @param string $column
  19752. * @param string $operator
  19753. * @param \DateTimeInterface|string|null $value
  19754. * @param string $boolean
  19755. * @return \Illuminate\Database\Query\Builder
  19756. * @static
  19757. */
  19758. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  19759. {
  19760. /** @var \Illuminate\Database\Query\Builder $instance */
  19761. return $instance->whereDate($column, $operator, $value, $boolean);
  19762. }
  19763. /**
  19764. * Add an "or where date" statement to the query.
  19765. *
  19766. * @param string $column
  19767. * @param string $operator
  19768. * @param \DateTimeInterface|string|null $value
  19769. * @return \Illuminate\Database\Query\Builder
  19770. * @static
  19771. */
  19772. public static function orWhereDate($column, $operator, $value = null)
  19773. {
  19774. /** @var \Illuminate\Database\Query\Builder $instance */
  19775. return $instance->orWhereDate($column, $operator, $value);
  19776. }
  19777. /**
  19778. * Add a "where time" statement to the query.
  19779. *
  19780. * @param string $column
  19781. * @param string $operator
  19782. * @param \DateTimeInterface|string|null $value
  19783. * @param string $boolean
  19784. * @return \Illuminate\Database\Query\Builder
  19785. * @static
  19786. */
  19787. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  19788. {
  19789. /** @var \Illuminate\Database\Query\Builder $instance */
  19790. return $instance->whereTime($column, $operator, $value, $boolean);
  19791. }
  19792. /**
  19793. * Add an "or where time" statement to the query.
  19794. *
  19795. * @param string $column
  19796. * @param string $operator
  19797. * @param \DateTimeInterface|string|null $value
  19798. * @return \Illuminate\Database\Query\Builder
  19799. * @static
  19800. */
  19801. public static function orWhereTime($column, $operator, $value = null)
  19802. {
  19803. /** @var \Illuminate\Database\Query\Builder $instance */
  19804. return $instance->orWhereTime($column, $operator, $value);
  19805. }
  19806. /**
  19807. * Add a "where day" statement to the query.
  19808. *
  19809. * @param string $column
  19810. * @param string $operator
  19811. * @param \DateTimeInterface|string|int|null $value
  19812. * @param string $boolean
  19813. * @return \Illuminate\Database\Query\Builder
  19814. * @static
  19815. */
  19816. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  19817. {
  19818. /** @var \Illuminate\Database\Query\Builder $instance */
  19819. return $instance->whereDay($column, $operator, $value, $boolean);
  19820. }
  19821. /**
  19822. * Add an "or where day" statement to the query.
  19823. *
  19824. * @param string $column
  19825. * @param string $operator
  19826. * @param \DateTimeInterface|string|int|null $value
  19827. * @return \Illuminate\Database\Query\Builder
  19828. * @static
  19829. */
  19830. public static function orWhereDay($column, $operator, $value = null)
  19831. {
  19832. /** @var \Illuminate\Database\Query\Builder $instance */
  19833. return $instance->orWhereDay($column, $operator, $value);
  19834. }
  19835. /**
  19836. * Add a "where month" statement to the query.
  19837. *
  19838. * @param string $column
  19839. * @param string $operator
  19840. * @param \DateTimeInterface|string|int|null $value
  19841. * @param string $boolean
  19842. * @return \Illuminate\Database\Query\Builder
  19843. * @static
  19844. */
  19845. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  19846. {
  19847. /** @var \Illuminate\Database\Query\Builder $instance */
  19848. return $instance->whereMonth($column, $operator, $value, $boolean);
  19849. }
  19850. /**
  19851. * Add an "or where month" statement to the query.
  19852. *
  19853. * @param string $column
  19854. * @param string $operator
  19855. * @param \DateTimeInterface|string|int|null $value
  19856. * @return \Illuminate\Database\Query\Builder
  19857. * @static
  19858. */
  19859. public static function orWhereMonth($column, $operator, $value = null)
  19860. {
  19861. /** @var \Illuminate\Database\Query\Builder $instance */
  19862. return $instance->orWhereMonth($column, $operator, $value);
  19863. }
  19864. /**
  19865. * Add a "where year" statement to the query.
  19866. *
  19867. * @param string $column
  19868. * @param string $operator
  19869. * @param \DateTimeInterface|string|int|null $value
  19870. * @param string $boolean
  19871. * @return \Illuminate\Database\Query\Builder
  19872. * @static
  19873. */
  19874. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  19875. {
  19876. /** @var \Illuminate\Database\Query\Builder $instance */
  19877. return $instance->whereYear($column, $operator, $value, $boolean);
  19878. }
  19879. /**
  19880. * Add an "or where year" statement to the query.
  19881. *
  19882. * @param string $column
  19883. * @param string $operator
  19884. * @param \DateTimeInterface|string|int|null $value
  19885. * @return \Illuminate\Database\Query\Builder
  19886. * @static
  19887. */
  19888. public static function orWhereYear($column, $operator, $value = null)
  19889. {
  19890. /** @var \Illuminate\Database\Query\Builder $instance */
  19891. return $instance->orWhereYear($column, $operator, $value);
  19892. }
  19893. /**
  19894. * Add a nested where statement to the query.
  19895. *
  19896. * @param \Closure $callback
  19897. * @param string $boolean
  19898. * @return \Illuminate\Database\Query\Builder
  19899. * @static
  19900. */
  19901. public static function whereNested($callback, $boolean = 'and')
  19902. {
  19903. /** @var \Illuminate\Database\Query\Builder $instance */
  19904. return $instance->whereNested($callback, $boolean);
  19905. }
  19906. /**
  19907. * Create a new query instance for nested where condition.
  19908. *
  19909. * @return \Illuminate\Database\Query\Builder
  19910. * @static
  19911. */
  19912. public static function forNestedWhere()
  19913. {
  19914. /** @var \Illuminate\Database\Query\Builder $instance */
  19915. return $instance->forNestedWhere();
  19916. }
  19917. /**
  19918. * Add another query builder as a nested where to the query builder.
  19919. *
  19920. * @param \Illuminate\Database\Query\Builder $query
  19921. * @param string $boolean
  19922. * @return \Illuminate\Database\Query\Builder
  19923. * @static
  19924. */
  19925. public static function addNestedWhereQuery($query, $boolean = 'and')
  19926. {
  19927. /** @var \Illuminate\Database\Query\Builder $instance */
  19928. return $instance->addNestedWhereQuery($query, $boolean);
  19929. }
  19930. /**
  19931. * Add an exists clause to the query.
  19932. *
  19933. * @param \Closure $callback
  19934. * @param string $boolean
  19935. * @param bool $not
  19936. * @return \Illuminate\Database\Query\Builder
  19937. * @static
  19938. */
  19939. public static function whereExists($callback, $boolean = 'and', $not = false)
  19940. {
  19941. /** @var \Illuminate\Database\Query\Builder $instance */
  19942. return $instance->whereExists($callback, $boolean, $not);
  19943. }
  19944. /**
  19945. * Add an or exists clause to the query.
  19946. *
  19947. * @param \Closure $callback
  19948. * @param bool $not
  19949. * @return \Illuminate\Database\Query\Builder
  19950. * @static
  19951. */
  19952. public static function orWhereExists($callback, $not = false)
  19953. {
  19954. /** @var \Illuminate\Database\Query\Builder $instance */
  19955. return $instance->orWhereExists($callback, $not);
  19956. }
  19957. /**
  19958. * Add a where not exists clause to the query.
  19959. *
  19960. * @param \Closure $callback
  19961. * @param string $boolean
  19962. * @return \Illuminate\Database\Query\Builder
  19963. * @static
  19964. */
  19965. public static function whereNotExists($callback, $boolean = 'and')
  19966. {
  19967. /** @var \Illuminate\Database\Query\Builder $instance */
  19968. return $instance->whereNotExists($callback, $boolean);
  19969. }
  19970. /**
  19971. * Add a where not exists clause to the query.
  19972. *
  19973. * @param \Closure $callback
  19974. * @return \Illuminate\Database\Query\Builder
  19975. * @static
  19976. */
  19977. public static function orWhereNotExists($callback)
  19978. {
  19979. /** @var \Illuminate\Database\Query\Builder $instance */
  19980. return $instance->orWhereNotExists($callback);
  19981. }
  19982. /**
  19983. * Add an exists clause to the query.
  19984. *
  19985. * @param \Illuminate\Database\Query\Builder $query
  19986. * @param string $boolean
  19987. * @param bool $not
  19988. * @return \Illuminate\Database\Query\Builder
  19989. * @static
  19990. */
  19991. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  19992. {
  19993. /** @var \Illuminate\Database\Query\Builder $instance */
  19994. return $instance->addWhereExistsQuery($query, $boolean, $not);
  19995. }
  19996. /**
  19997. * Adds a where condition using row values.
  19998. *
  19999. * @param array $columns
  20000. * @param string $operator
  20001. * @param array $values
  20002. * @param string $boolean
  20003. * @return \Illuminate\Database\Query\Builder
  20004. * @throws \InvalidArgumentException
  20005. * @static
  20006. */
  20007. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  20008. {
  20009. /** @var \Illuminate\Database\Query\Builder $instance */
  20010. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  20011. }
  20012. /**
  20013. * Adds an or where condition using row values.
  20014. *
  20015. * @param array $columns
  20016. * @param string $operator
  20017. * @param array $values
  20018. * @return \Illuminate\Database\Query\Builder
  20019. * @static
  20020. */
  20021. public static function orWhereRowValues($columns, $operator, $values)
  20022. {
  20023. /** @var \Illuminate\Database\Query\Builder $instance */
  20024. return $instance->orWhereRowValues($columns, $operator, $values);
  20025. }
  20026. /**
  20027. * Add a "where JSON contains" clause to the query.
  20028. *
  20029. * @param string $column
  20030. * @param mixed $value
  20031. * @param string $boolean
  20032. * @param bool $not
  20033. * @return \Illuminate\Database\Query\Builder
  20034. * @static
  20035. */
  20036. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  20037. {
  20038. /** @var \Illuminate\Database\Query\Builder $instance */
  20039. return $instance->whereJsonContains($column, $value, $boolean, $not);
  20040. }
  20041. /**
  20042. * Add an "or where JSON contains" clause to the query.
  20043. *
  20044. * @param string $column
  20045. * @param mixed $value
  20046. * @return \Illuminate\Database\Query\Builder
  20047. * @static
  20048. */
  20049. public static function orWhereJsonContains($column, $value)
  20050. {
  20051. /** @var \Illuminate\Database\Query\Builder $instance */
  20052. return $instance->orWhereJsonContains($column, $value);
  20053. }
  20054. /**
  20055. * Add a "where JSON not contains" clause to the query.
  20056. *
  20057. * @param string $column
  20058. * @param mixed $value
  20059. * @param string $boolean
  20060. * @return \Illuminate\Database\Query\Builder
  20061. * @static
  20062. */
  20063. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  20064. {
  20065. /** @var \Illuminate\Database\Query\Builder $instance */
  20066. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  20067. }
  20068. /**
  20069. * Add an "or where JSON not contains" clause to the query.
  20070. *
  20071. * @param string $column
  20072. * @param mixed $value
  20073. * @return \Illuminate\Database\Query\Builder
  20074. * @static
  20075. */
  20076. public static function orWhereJsonDoesntContain($column, $value)
  20077. {
  20078. /** @var \Illuminate\Database\Query\Builder $instance */
  20079. return $instance->orWhereJsonDoesntContain($column, $value);
  20080. }
  20081. /**
  20082. * Add a clause that determines if a JSON path exists to the query.
  20083. *
  20084. * @param string $column
  20085. * @param string $boolean
  20086. * @param bool $not
  20087. * @return \Illuminate\Database\Query\Builder
  20088. * @static
  20089. */
  20090. public static function whereJsonContainsKey($column, $boolean = 'and', $not = false)
  20091. {
  20092. /** @var \Illuminate\Database\Query\Builder $instance */
  20093. return $instance->whereJsonContainsKey($column, $boolean, $not);
  20094. }
  20095. /**
  20096. * Add an "or" clause that determines if a JSON path exists to the query.
  20097. *
  20098. * @param string $column
  20099. * @return \Illuminate\Database\Query\Builder
  20100. * @static
  20101. */
  20102. public static function orWhereJsonContainsKey($column)
  20103. {
  20104. /** @var \Illuminate\Database\Query\Builder $instance */
  20105. return $instance->orWhereJsonContainsKey($column);
  20106. }
  20107. /**
  20108. * Add a clause that determines if a JSON path does not exist to the query.
  20109. *
  20110. * @param string $column
  20111. * @param string $boolean
  20112. * @return \Illuminate\Database\Query\Builder
  20113. * @static
  20114. */
  20115. public static function whereJsonDoesntContainKey($column, $boolean = 'and')
  20116. {
  20117. /** @var \Illuminate\Database\Query\Builder $instance */
  20118. return $instance->whereJsonDoesntContainKey($column, $boolean);
  20119. }
  20120. /**
  20121. * Add an "or" clause that determines if a JSON path does not exist to the query.
  20122. *
  20123. * @param string $column
  20124. * @return \Illuminate\Database\Query\Builder
  20125. * @static
  20126. */
  20127. public static function orWhereJsonDoesntContainKey($column)
  20128. {
  20129. /** @var \Illuminate\Database\Query\Builder $instance */
  20130. return $instance->orWhereJsonDoesntContainKey($column);
  20131. }
  20132. /**
  20133. * Add a "where JSON length" clause to the query.
  20134. *
  20135. * @param string $column
  20136. * @param mixed $operator
  20137. * @param mixed $value
  20138. * @param string $boolean
  20139. * @return \Illuminate\Database\Query\Builder
  20140. * @static
  20141. */
  20142. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  20143. {
  20144. /** @var \Illuminate\Database\Query\Builder $instance */
  20145. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  20146. }
  20147. /**
  20148. * Add an "or where JSON length" clause to the query.
  20149. *
  20150. * @param string $column
  20151. * @param mixed $operator
  20152. * @param mixed $value
  20153. * @return \Illuminate\Database\Query\Builder
  20154. * @static
  20155. */
  20156. public static function orWhereJsonLength($column, $operator, $value = null)
  20157. {
  20158. /** @var \Illuminate\Database\Query\Builder $instance */
  20159. return $instance->orWhereJsonLength($column, $operator, $value);
  20160. }
  20161. /**
  20162. * Handles dynamic "where" clauses to the query.
  20163. *
  20164. * @param string $method
  20165. * @param array $parameters
  20166. * @return \Illuminate\Database\Query\Builder
  20167. * @static
  20168. */
  20169. public static function dynamicWhere($method, $parameters)
  20170. {
  20171. /** @var \Illuminate\Database\Query\Builder $instance */
  20172. return $instance->dynamicWhere($method, $parameters);
  20173. }
  20174. /**
  20175. * Add a "where fulltext" clause to the query.
  20176. *
  20177. * @param string|string[] $columns
  20178. * @param string $value
  20179. * @param string $boolean
  20180. * @return \Illuminate\Database\Query\Builder
  20181. * @static
  20182. */
  20183. public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  20184. {
  20185. /** @var \Illuminate\Database\Query\Builder $instance */
  20186. return $instance->whereFullText($columns, $value, $options, $boolean);
  20187. }
  20188. /**
  20189. * Add a "or where fulltext" clause to the query.
  20190. *
  20191. * @param string|string[] $columns
  20192. * @param string $value
  20193. * @return \Illuminate\Database\Query\Builder
  20194. * @static
  20195. */
  20196. public static function orWhereFullText($columns, $value, $options = [])
  20197. {
  20198. /** @var \Illuminate\Database\Query\Builder $instance */
  20199. return $instance->orWhereFullText($columns, $value, $options);
  20200. }
  20201. /**
  20202. * Add a "group by" clause to the query.
  20203. *
  20204. * @param array|string $groups
  20205. * @return \Illuminate\Database\Query\Builder
  20206. * @static
  20207. */
  20208. public static function groupBy(...$groups)
  20209. {
  20210. /** @var \Illuminate\Database\Query\Builder $instance */
  20211. return $instance->groupBy(...$groups);
  20212. }
  20213. /**
  20214. * Add a raw groupBy clause to the query.
  20215. *
  20216. * @param string $sql
  20217. * @param array $bindings
  20218. * @return \Illuminate\Database\Query\Builder
  20219. * @static
  20220. */
  20221. public static function groupByRaw($sql, $bindings = [])
  20222. {
  20223. /** @var \Illuminate\Database\Query\Builder $instance */
  20224. return $instance->groupByRaw($sql, $bindings);
  20225. }
  20226. /**
  20227. * Add a "having" clause to the query.
  20228. *
  20229. * @param \Closure|string $column
  20230. * @param string|int|float|null $operator
  20231. * @param string|int|float|null $value
  20232. * @param string $boolean
  20233. * @return \Illuminate\Database\Query\Builder
  20234. * @static
  20235. */
  20236. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  20237. {
  20238. /** @var \Illuminate\Database\Query\Builder $instance */
  20239. return $instance->having($column, $operator, $value, $boolean);
  20240. }
  20241. /**
  20242. * Add an "or having" clause to the query.
  20243. *
  20244. * @param \Closure|string $column
  20245. * @param string|int|float|null $operator
  20246. * @param string|int|float|null $value
  20247. * @return \Illuminate\Database\Query\Builder
  20248. * @static
  20249. */
  20250. public static function orHaving($column, $operator = null, $value = null)
  20251. {
  20252. /** @var \Illuminate\Database\Query\Builder $instance */
  20253. return $instance->orHaving($column, $operator, $value);
  20254. }
  20255. /**
  20256. * Add a nested having statement to the query.
  20257. *
  20258. * @param \Closure $callback
  20259. * @param string $boolean
  20260. * @return \Illuminate\Database\Query\Builder
  20261. * @static
  20262. */
  20263. public static function havingNested($callback, $boolean = 'and')
  20264. {
  20265. /** @var \Illuminate\Database\Query\Builder $instance */
  20266. return $instance->havingNested($callback, $boolean);
  20267. }
  20268. /**
  20269. * Add another query builder as a nested having to the query builder.
  20270. *
  20271. * @param \Illuminate\Database\Query\Builder $query
  20272. * @param string $boolean
  20273. * @return \Illuminate\Database\Query\Builder
  20274. * @static
  20275. */
  20276. public static function addNestedHavingQuery($query, $boolean = 'and')
  20277. {
  20278. /** @var \Illuminate\Database\Query\Builder $instance */
  20279. return $instance->addNestedHavingQuery($query, $boolean);
  20280. }
  20281. /**
  20282. * Add a "having null" clause to the query.
  20283. *
  20284. * @param string|array $columns
  20285. * @param string $boolean
  20286. * @param bool $not
  20287. * @return \Illuminate\Database\Query\Builder
  20288. * @static
  20289. */
  20290. public static function havingNull($columns, $boolean = 'and', $not = false)
  20291. {
  20292. /** @var \Illuminate\Database\Query\Builder $instance */
  20293. return $instance->havingNull($columns, $boolean, $not);
  20294. }
  20295. /**
  20296. * Add an "or having null" clause to the query.
  20297. *
  20298. * @param string $column
  20299. * @return \Illuminate\Database\Query\Builder
  20300. * @static
  20301. */
  20302. public static function orHavingNull($column)
  20303. {
  20304. /** @var \Illuminate\Database\Query\Builder $instance */
  20305. return $instance->orHavingNull($column);
  20306. }
  20307. /**
  20308. * Add a "having not null" clause to the query.
  20309. *
  20310. * @param string|array $columns
  20311. * @param string $boolean
  20312. * @return \Illuminate\Database\Query\Builder
  20313. * @static
  20314. */
  20315. public static function havingNotNull($columns, $boolean = 'and')
  20316. {
  20317. /** @var \Illuminate\Database\Query\Builder $instance */
  20318. return $instance->havingNotNull($columns, $boolean);
  20319. }
  20320. /**
  20321. * Add an "or having not null" clause to the query.
  20322. *
  20323. * @param string $column
  20324. * @return \Illuminate\Database\Query\Builder
  20325. * @static
  20326. */
  20327. public static function orHavingNotNull($column)
  20328. {
  20329. /** @var \Illuminate\Database\Query\Builder $instance */
  20330. return $instance->orHavingNotNull($column);
  20331. }
  20332. /**
  20333. * Add a "having between " clause to the query.
  20334. *
  20335. * @param string $column
  20336. * @param array $values
  20337. * @param string $boolean
  20338. * @param bool $not
  20339. * @return \Illuminate\Database\Query\Builder
  20340. * @static
  20341. */
  20342. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  20343. {
  20344. /** @var \Illuminate\Database\Query\Builder $instance */
  20345. return $instance->havingBetween($column, $values, $boolean, $not);
  20346. }
  20347. /**
  20348. * Add a raw having clause to the query.
  20349. *
  20350. * @param string $sql
  20351. * @param array $bindings
  20352. * @param string $boolean
  20353. * @return \Illuminate\Database\Query\Builder
  20354. * @static
  20355. */
  20356. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  20357. {
  20358. /** @var \Illuminate\Database\Query\Builder $instance */
  20359. return $instance->havingRaw($sql, $bindings, $boolean);
  20360. }
  20361. /**
  20362. * Add a raw or having clause to the query.
  20363. *
  20364. * @param string $sql
  20365. * @param array $bindings
  20366. * @return \Illuminate\Database\Query\Builder
  20367. * @static
  20368. */
  20369. public static function orHavingRaw($sql, $bindings = [])
  20370. {
  20371. /** @var \Illuminate\Database\Query\Builder $instance */
  20372. return $instance->orHavingRaw($sql, $bindings);
  20373. }
  20374. /**
  20375. * Add an "order by" clause to the query.
  20376. *
  20377. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Expression|string $column
  20378. * @param string $direction
  20379. * @return \Illuminate\Database\Query\Builder
  20380. * @throws \InvalidArgumentException
  20381. * @static
  20382. */
  20383. public static function orderBy($column, $direction = 'asc')
  20384. {
  20385. /** @var \Illuminate\Database\Query\Builder $instance */
  20386. return $instance->orderBy($column, $direction);
  20387. }
  20388. /**
  20389. * Add a descending "order by" clause to the query.
  20390. *
  20391. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Expression|string $column
  20392. * @return \Illuminate\Database\Query\Builder
  20393. * @static
  20394. */
  20395. public static function orderByDesc($column)
  20396. {
  20397. /** @var \Illuminate\Database\Query\Builder $instance */
  20398. return $instance->orderByDesc($column);
  20399. }
  20400. /**
  20401. * Put the query's results in random order.
  20402. *
  20403. * @param string $seed
  20404. * @return \Illuminate\Database\Query\Builder
  20405. * @static
  20406. */
  20407. public static function inRandomOrder($seed = '')
  20408. {
  20409. /** @var \Illuminate\Database\Query\Builder $instance */
  20410. return $instance->inRandomOrder($seed);
  20411. }
  20412. /**
  20413. * Add a raw "order by" clause to the query.
  20414. *
  20415. * @param string $sql
  20416. * @param array $bindings
  20417. * @return \Illuminate\Database\Query\Builder
  20418. * @static
  20419. */
  20420. public static function orderByRaw($sql, $bindings = [])
  20421. {
  20422. /** @var \Illuminate\Database\Query\Builder $instance */
  20423. return $instance->orderByRaw($sql, $bindings);
  20424. }
  20425. /**
  20426. * Alias to set the "offset" value of the query.
  20427. *
  20428. * @param int $value
  20429. * @return \Illuminate\Database\Query\Builder
  20430. * @static
  20431. */
  20432. public static function skip($value)
  20433. {
  20434. /** @var \Illuminate\Database\Query\Builder $instance */
  20435. return $instance->skip($value);
  20436. }
  20437. /**
  20438. * Set the "offset" value of the query.
  20439. *
  20440. * @param int $value
  20441. * @return \Illuminate\Database\Query\Builder
  20442. * @static
  20443. */
  20444. public static function offset($value)
  20445. {
  20446. /** @var \Illuminate\Database\Query\Builder $instance */
  20447. return $instance->offset($value);
  20448. }
  20449. /**
  20450. * Alias to set the "limit" value of the query.
  20451. *
  20452. * @param int $value
  20453. * @return \Illuminate\Database\Query\Builder
  20454. * @static
  20455. */
  20456. public static function take($value)
  20457. {
  20458. /** @var \Illuminate\Database\Query\Builder $instance */
  20459. return $instance->take($value);
  20460. }
  20461. /**
  20462. * Set the "limit" value of the query.
  20463. *
  20464. * @param int $value
  20465. * @return \Illuminate\Database\Query\Builder
  20466. * @static
  20467. */
  20468. public static function limit($value)
  20469. {
  20470. /** @var \Illuminate\Database\Query\Builder $instance */
  20471. return $instance->limit($value);
  20472. }
  20473. /**
  20474. * Set the limit and offset for a given page.
  20475. *
  20476. * @param int $page
  20477. * @param int $perPage
  20478. * @return \Illuminate\Database\Query\Builder
  20479. * @static
  20480. */
  20481. public static function forPage($page, $perPage = 15)
  20482. {
  20483. /** @var \Illuminate\Database\Query\Builder $instance */
  20484. return $instance->forPage($page, $perPage);
  20485. }
  20486. /**
  20487. * Constrain the query to the previous "page" of results before a given ID.
  20488. *
  20489. * @param int $perPage
  20490. * @param int|null $lastId
  20491. * @param string $column
  20492. * @return \Illuminate\Database\Query\Builder
  20493. * @static
  20494. */
  20495. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  20496. {
  20497. /** @var \Illuminate\Database\Query\Builder $instance */
  20498. return $instance->forPageBeforeId($perPage, $lastId, $column);
  20499. }
  20500. /**
  20501. * Constrain the query to the next "page" of results after a given ID.
  20502. *
  20503. * @param int $perPage
  20504. * @param int|null $lastId
  20505. * @param string $column
  20506. * @return \Illuminate\Database\Query\Builder
  20507. * @static
  20508. */
  20509. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  20510. {
  20511. /** @var \Illuminate\Database\Query\Builder $instance */
  20512. return $instance->forPageAfterId($perPage, $lastId, $column);
  20513. }
  20514. /**
  20515. * Remove all existing orders and optionally add a new order.
  20516. *
  20517. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
  20518. * @param string $direction
  20519. * @return \Illuminate\Database\Query\Builder
  20520. * @static
  20521. */
  20522. public static function reorder($column = null, $direction = 'asc')
  20523. {
  20524. /** @var \Illuminate\Database\Query\Builder $instance */
  20525. return $instance->reorder($column, $direction);
  20526. }
  20527. /**
  20528. * Add a union statement to the query.
  20529. *
  20530. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query
  20531. * @param bool $all
  20532. * @return \Illuminate\Database\Query\Builder
  20533. * @static
  20534. */
  20535. public static function union($query, $all = false)
  20536. {
  20537. /** @var \Illuminate\Database\Query\Builder $instance */
  20538. return $instance->union($query, $all);
  20539. }
  20540. /**
  20541. * Add a union all statement to the query.
  20542. *
  20543. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query
  20544. * @return \Illuminate\Database\Query\Builder
  20545. * @static
  20546. */
  20547. public static function unionAll($query)
  20548. {
  20549. /** @var \Illuminate\Database\Query\Builder $instance */
  20550. return $instance->unionAll($query);
  20551. }
  20552. /**
  20553. * Lock the selected rows in the table.
  20554. *
  20555. * @param string|bool $value
  20556. * @return \Illuminate\Database\Query\Builder
  20557. * @static
  20558. */
  20559. public static function lock($value = true)
  20560. {
  20561. /** @var \Illuminate\Database\Query\Builder $instance */
  20562. return $instance->lock($value);
  20563. }
  20564. /**
  20565. * Lock the selected rows in the table for updating.
  20566. *
  20567. * @return \Illuminate\Database\Query\Builder
  20568. * @static
  20569. */
  20570. public static function lockForUpdate()
  20571. {
  20572. /** @var \Illuminate\Database\Query\Builder $instance */
  20573. return $instance->lockForUpdate();
  20574. }
  20575. /**
  20576. * Share lock the selected rows in the table.
  20577. *
  20578. * @return \Illuminate\Database\Query\Builder
  20579. * @static
  20580. */
  20581. public static function sharedLock()
  20582. {
  20583. /** @var \Illuminate\Database\Query\Builder $instance */
  20584. return $instance->sharedLock();
  20585. }
  20586. /**
  20587. * Register a closure to be invoked before the query is executed.
  20588. *
  20589. * @param callable $callback
  20590. * @return \Illuminate\Database\Query\Builder
  20591. * @static
  20592. */
  20593. public static function beforeQuery($callback)
  20594. {
  20595. /** @var \Illuminate\Database\Query\Builder $instance */
  20596. return $instance->beforeQuery($callback);
  20597. }
  20598. /**
  20599. * Invoke the "before query" modification callbacks.
  20600. *
  20601. * @return void
  20602. * @static
  20603. */
  20604. public static function applyBeforeQueryCallbacks()
  20605. {
  20606. /** @var \Illuminate\Database\Query\Builder $instance */
  20607. $instance->applyBeforeQueryCallbacks();
  20608. }
  20609. /**
  20610. * Get the SQL representation of the query.
  20611. *
  20612. * @return string
  20613. * @static
  20614. */
  20615. public static function toSql()
  20616. {
  20617. /** @var \Illuminate\Database\Query\Builder $instance */
  20618. return $instance->toSql();
  20619. }
  20620. /**
  20621. * Get the count of the total records for the paginator.
  20622. *
  20623. * @param array $columns
  20624. * @return int
  20625. * @static
  20626. */
  20627. public static function getCountForPagination($columns = [])
  20628. {
  20629. /** @var \Illuminate\Database\Query\Builder $instance */
  20630. return $instance->getCountForPagination($columns);
  20631. }
  20632. /**
  20633. * Concatenate values of a given column as a string.
  20634. *
  20635. * @param string $column
  20636. * @param string $glue
  20637. * @return string
  20638. * @static
  20639. */
  20640. public static function implode($column, $glue = '')
  20641. {
  20642. /** @var \Illuminate\Database\Query\Builder $instance */
  20643. return $instance->implode($column, $glue);
  20644. }
  20645. /**
  20646. * Determine if any rows exist for the current query.
  20647. *
  20648. * @return bool
  20649. * @static
  20650. */
  20651. public static function exists()
  20652. {
  20653. /** @var \Illuminate\Database\Query\Builder $instance */
  20654. return $instance->exists();
  20655. }
  20656. /**
  20657. * Determine if no rows exist for the current query.
  20658. *
  20659. * @return bool
  20660. * @static
  20661. */
  20662. public static function doesntExist()
  20663. {
  20664. /** @var \Illuminate\Database\Query\Builder $instance */
  20665. return $instance->doesntExist();
  20666. }
  20667. /**
  20668. * Execute the given callback if no rows exist for the current query.
  20669. *
  20670. * @param \Closure $callback
  20671. * @return mixed
  20672. * @static
  20673. */
  20674. public static function existsOr($callback)
  20675. {
  20676. /** @var \Illuminate\Database\Query\Builder $instance */
  20677. return $instance->existsOr($callback);
  20678. }
  20679. /**
  20680. * Execute the given callback if rows exist for the current query.
  20681. *
  20682. * @param \Closure $callback
  20683. * @return mixed
  20684. * @static
  20685. */
  20686. public static function doesntExistOr($callback)
  20687. {
  20688. /** @var \Illuminate\Database\Query\Builder $instance */
  20689. return $instance->doesntExistOr($callback);
  20690. }
  20691. /**
  20692. * Retrieve the "count" result of the query.
  20693. *
  20694. * @param string $columns
  20695. * @return int
  20696. * @static
  20697. */
  20698. public static function count($columns = '*')
  20699. {
  20700. /** @var \Illuminate\Database\Query\Builder $instance */
  20701. return $instance->count($columns);
  20702. }
  20703. /**
  20704. * Retrieve the minimum value of a given column.
  20705. *
  20706. * @param string $column
  20707. * @return mixed
  20708. * @static
  20709. */
  20710. public static function min($column)
  20711. {
  20712. /** @var \Illuminate\Database\Query\Builder $instance */
  20713. return $instance->min($column);
  20714. }
  20715. /**
  20716. * Retrieve the maximum value of a given column.
  20717. *
  20718. * @param string $column
  20719. * @return mixed
  20720. * @static
  20721. */
  20722. public static function max($column)
  20723. {
  20724. /** @var \Illuminate\Database\Query\Builder $instance */
  20725. return $instance->max($column);
  20726. }
  20727. /**
  20728. * Retrieve the sum of the values of a given column.
  20729. *
  20730. * @param string $column
  20731. * @return mixed
  20732. * @static
  20733. */
  20734. public static function sum($column)
  20735. {
  20736. /** @var \Illuminate\Database\Query\Builder $instance */
  20737. return $instance->sum($column);
  20738. }
  20739. /**
  20740. * Retrieve the average of the values of a given column.
  20741. *
  20742. * @param string $column
  20743. * @return mixed
  20744. * @static
  20745. */
  20746. public static function avg($column)
  20747. {
  20748. /** @var \Illuminate\Database\Query\Builder $instance */
  20749. return $instance->avg($column);
  20750. }
  20751. /**
  20752. * Alias for the "avg" method.
  20753. *
  20754. * @param string $column
  20755. * @return mixed
  20756. * @static
  20757. */
  20758. public static function average($column)
  20759. {
  20760. /** @var \Illuminate\Database\Query\Builder $instance */
  20761. return $instance->average($column);
  20762. }
  20763. /**
  20764. * Execute an aggregate function on the database.
  20765. *
  20766. * @param string $function
  20767. * @param array $columns
  20768. * @return mixed
  20769. * @static
  20770. */
  20771. public static function aggregate($function, $columns = [])
  20772. {
  20773. /** @var \Illuminate\Database\Query\Builder $instance */
  20774. return $instance->aggregate($function, $columns);
  20775. }
  20776. /**
  20777. * Execute a numeric aggregate function on the database.
  20778. *
  20779. * @param string $function
  20780. * @param array $columns
  20781. * @return float|int
  20782. * @static
  20783. */
  20784. public static function numericAggregate($function, $columns = [])
  20785. {
  20786. /** @var \Illuminate\Database\Query\Builder $instance */
  20787. return $instance->numericAggregate($function, $columns);
  20788. }
  20789. /**
  20790. * Insert new records into the database.
  20791. *
  20792. * @param array $values
  20793. * @return bool
  20794. * @static
  20795. */
  20796. public static function insert($values)
  20797. {
  20798. /** @var \Illuminate\Database\Query\Builder $instance */
  20799. return $instance->insert($values);
  20800. }
  20801. /**
  20802. * Insert new records into the database while ignoring errors.
  20803. *
  20804. * @param array $values
  20805. * @return int
  20806. * @static
  20807. */
  20808. public static function insertOrIgnore($values)
  20809. {
  20810. /** @var \Illuminate\Database\Query\Builder $instance */
  20811. return $instance->insertOrIgnore($values);
  20812. }
  20813. /**
  20814. * Insert a new record and get the value of the primary key.
  20815. *
  20816. * @param array $values
  20817. * @param string|null $sequence
  20818. * @return int
  20819. * @static
  20820. */
  20821. public static function insertGetId($values, $sequence = null)
  20822. {
  20823. /** @var \Illuminate\Database\Query\Builder $instance */
  20824. return $instance->insertGetId($values, $sequence);
  20825. }
  20826. /**
  20827. * Insert new records into the table using a subquery.
  20828. *
  20829. * @param array $columns
  20830. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20831. * @return int
  20832. * @static
  20833. */
  20834. public static function insertUsing($columns, $query)
  20835. {
  20836. /** @var \Illuminate\Database\Query\Builder $instance */
  20837. return $instance->insertUsing($columns, $query);
  20838. }
  20839. /**
  20840. * Update records in a PostgreSQL database using the update from syntax.
  20841. *
  20842. * @param array $values
  20843. * @return int
  20844. * @static
  20845. */
  20846. public static function updateFrom($values)
  20847. {
  20848. /** @var \Illuminate\Database\Query\Builder $instance */
  20849. return $instance->updateFrom($values);
  20850. }
  20851. /**
  20852. * Insert or update a record matching the attributes, and fill it with values.
  20853. *
  20854. * @param array $attributes
  20855. * @param array $values
  20856. * @return bool
  20857. * @static
  20858. */
  20859. public static function updateOrInsert($attributes, $values = [])
  20860. {
  20861. /** @var \Illuminate\Database\Query\Builder $instance */
  20862. return $instance->updateOrInsert($attributes, $values);
  20863. }
  20864. /**
  20865. * Run a truncate statement on the table.
  20866. *
  20867. * @return void
  20868. * @static
  20869. */
  20870. public static function truncate()
  20871. {
  20872. /** @var \Illuminate\Database\Query\Builder $instance */
  20873. $instance->truncate();
  20874. }
  20875. /**
  20876. * Create a raw database expression.
  20877. *
  20878. * @param mixed $value
  20879. * @return \Illuminate\Database\Query\Expression
  20880. * @static
  20881. */
  20882. public static function raw($value)
  20883. {
  20884. /** @var \Illuminate\Database\Query\Builder $instance */
  20885. return $instance->raw($value);
  20886. }
  20887. /**
  20888. * Get the current query value bindings in a flattened array.
  20889. *
  20890. * @return array
  20891. * @static
  20892. */
  20893. public static function getBindings()
  20894. {
  20895. /** @var \Illuminate\Database\Query\Builder $instance */
  20896. return $instance->getBindings();
  20897. }
  20898. /**
  20899. * Get the raw array of bindings.
  20900. *
  20901. * @return array
  20902. * @static
  20903. */
  20904. public static function getRawBindings()
  20905. {
  20906. /** @var \Illuminate\Database\Query\Builder $instance */
  20907. return $instance->getRawBindings();
  20908. }
  20909. /**
  20910. * Set the bindings on the query builder.
  20911. *
  20912. * @param array $bindings
  20913. * @param string $type
  20914. * @return \Illuminate\Database\Query\Builder
  20915. * @throws \InvalidArgumentException
  20916. * @static
  20917. */
  20918. public static function setBindings($bindings, $type = 'where')
  20919. {
  20920. /** @var \Illuminate\Database\Query\Builder $instance */
  20921. return $instance->setBindings($bindings, $type);
  20922. }
  20923. /**
  20924. * Add a binding to the query.
  20925. *
  20926. * @param mixed $value
  20927. * @param string $type
  20928. * @return \Illuminate\Database\Query\Builder
  20929. * @throws \InvalidArgumentException
  20930. * @static
  20931. */
  20932. public static function addBinding($value, $type = 'where')
  20933. {
  20934. /** @var \Illuminate\Database\Query\Builder $instance */
  20935. return $instance->addBinding($value, $type);
  20936. }
  20937. /**
  20938. * Cast the given binding value.
  20939. *
  20940. * @param mixed $value
  20941. * @return mixed
  20942. * @static
  20943. */
  20944. public static function castBinding($value)
  20945. {
  20946. /** @var \Illuminate\Database\Query\Builder $instance */
  20947. return $instance->castBinding($value);
  20948. }
  20949. /**
  20950. * Merge an array of bindings into our bindings.
  20951. *
  20952. * @param \Illuminate\Database\Query\Builder $query
  20953. * @return \Illuminate\Database\Query\Builder
  20954. * @static
  20955. */
  20956. public static function mergeBindings($query)
  20957. {
  20958. /** @var \Illuminate\Database\Query\Builder $instance */
  20959. return $instance->mergeBindings($query);
  20960. }
  20961. /**
  20962. * Remove all of the expressions from a list of bindings.
  20963. *
  20964. * @param array $bindings
  20965. * @return array
  20966. * @static
  20967. */
  20968. public static function cleanBindings($bindings)
  20969. {
  20970. /** @var \Illuminate\Database\Query\Builder $instance */
  20971. return $instance->cleanBindings($bindings);
  20972. }
  20973. /**
  20974. * Get the database query processor instance.
  20975. *
  20976. * @return \Illuminate\Database\Query\Processors\Processor
  20977. * @static
  20978. */
  20979. public static function getProcessor()
  20980. {
  20981. /** @var \Illuminate\Database\Query\Builder $instance */
  20982. return $instance->getProcessor();
  20983. }
  20984. /**
  20985. * Get the query grammar instance.
  20986. *
  20987. * @return \Illuminate\Database\Query\Grammars\Grammar
  20988. * @static
  20989. */
  20990. public static function getGrammar()
  20991. {
  20992. /** @var \Illuminate\Database\Query\Builder $instance */
  20993. return $instance->getGrammar();
  20994. }
  20995. /**
  20996. * Use the "write" PDO connection when executing the query.
  20997. *
  20998. * @return \Illuminate\Database\Query\Builder
  20999. * @static
  21000. */
  21001. public static function useWritePdo()
  21002. {
  21003. /** @var \Illuminate\Database\Query\Builder $instance */
  21004. return $instance->useWritePdo();
  21005. }
  21006. /**
  21007. * Clone the query without the given properties.
  21008. *
  21009. * @param array $properties
  21010. * @return static
  21011. * @static
  21012. */
  21013. public static function cloneWithout($properties)
  21014. {
  21015. /** @var \Illuminate\Database\Query\Builder $instance */
  21016. return $instance->cloneWithout($properties);
  21017. }
  21018. /**
  21019. * Clone the query without the given bindings.
  21020. *
  21021. * @param array $except
  21022. * @return static
  21023. * @static
  21024. */
  21025. public static function cloneWithoutBindings($except)
  21026. {
  21027. /** @var \Illuminate\Database\Query\Builder $instance */
  21028. return $instance->cloneWithoutBindings($except);
  21029. }
  21030. /**
  21031. * Dump the current SQL and bindings.
  21032. *
  21033. * @return \Illuminate\Database\Query\Builder
  21034. * @static
  21035. */
  21036. public static function dump()
  21037. {
  21038. /** @var \Illuminate\Database\Query\Builder $instance */
  21039. return $instance->dump();
  21040. }
  21041. /**
  21042. * Die and dump the current SQL and bindings.
  21043. *
  21044. * @return \Illuminate\Database\Query\never
  21045. * @static
  21046. */
  21047. public static function dd()
  21048. {
  21049. /** @var \Illuminate\Database\Query\Builder $instance */
  21050. return $instance->dd();
  21051. }
  21052. /**
  21053. * Explains the query.
  21054. *
  21055. * @return \Illuminate\Support\Collection
  21056. * @static
  21057. */
  21058. public static function explain()
  21059. {
  21060. /** @var \Illuminate\Database\Query\Builder $instance */
  21061. return $instance->explain();
  21062. }
  21063. /**
  21064. * Register a custom macro.
  21065. *
  21066. * @param string $name
  21067. * @param object|callable $macro
  21068. * @return void
  21069. * @static
  21070. */
  21071. public static function macro($name, $macro)
  21072. {
  21073. \Illuminate\Database\Query\Builder::macro($name, $macro);
  21074. }
  21075. /**
  21076. * Mix another object into the class.
  21077. *
  21078. * @param object $mixin
  21079. * @param bool $replace
  21080. * @return void
  21081. * @throws \ReflectionException
  21082. * @static
  21083. */
  21084. public static function mixin($mixin, $replace = true)
  21085. {
  21086. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  21087. }
  21088. /**
  21089. * Flush the existing macros.
  21090. *
  21091. * @return void
  21092. * @static
  21093. */
  21094. public static function flushMacros()
  21095. {
  21096. \Illuminate\Database\Query\Builder::flushMacros();
  21097. }
  21098. /**
  21099. * Dynamically handle calls to the class.
  21100. *
  21101. * @param string $method
  21102. * @param array $parameters
  21103. * @return mixed
  21104. * @throws \BadMethodCallException
  21105. * @static
  21106. */
  21107. public static function macroCall($method, $parameters)
  21108. {
  21109. /** @var \Illuminate\Database\Query\Builder $instance */
  21110. return $instance->macroCall($method, $parameters);
  21111. }
  21112. }
  21113. class Event extends \Illuminate\Support\Facades\Event {}
  21114. class File extends \Illuminate\Support\Facades\File {}
  21115. class Gate extends \Illuminate\Support\Facades\Gate {}
  21116. class Hash extends \Illuminate\Support\Facades\Hash {}
  21117. class Http extends \Illuminate\Support\Facades\Http {}
  21118. class Js extends \Illuminate\Support\Js {}
  21119. class Lang extends \Illuminate\Support\Facades\Lang {}
  21120. class Log extends \Illuminate\Support\Facades\Log {}
  21121. class Mail extends \Illuminate\Support\Facades\Mail {}
  21122. class Notification extends \Illuminate\Support\Facades\Notification {}
  21123. class Password extends \Illuminate\Support\Facades\Password {}
  21124. class Queue extends \Illuminate\Support\Facades\Queue {}
  21125. class RateLimiter extends \Illuminate\Support\Facades\RateLimiter {}
  21126. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  21127. class Request extends \Illuminate\Support\Facades\Request {}
  21128. class Response extends \Illuminate\Support\Facades\Response {}
  21129. class Route extends \Illuminate\Support\Facades\Route {}
  21130. class Schema extends \Illuminate\Support\Facades\Schema {}
  21131. class Session extends \Illuminate\Support\Facades\Session {}
  21132. class Storage extends \Illuminate\Support\Facades\Storage {}
  21133. class Str extends \Illuminate\Support\Str {}
  21134. class URL extends \Illuminate\Support\Facades\URL {}
  21135. class Validator extends \Illuminate\Support\Facades\Validator {}
  21136. class View extends \Illuminate\Support\Facades\View {}
  21137. class Vite extends \Illuminate\Support\Facades\Vite {}
  21138. class Flare extends \Spatie\LaravelIgnition\Facades\Flare {}
  21139. }