_ide_helper.php 701 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466
  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 8.83.29.
  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. * @see \Illuminate\Contracts\Foundation\Application
  16. */
  17. class App {
  18. /**
  19. * Get the version number of the application.
  20. *
  21. * @return string
  22. * @static
  23. */
  24. public static function version()
  25. {
  26. /** @var \Illuminate\Foundation\Application $instance */
  27. return $instance->version();
  28. }
  29. /**
  30. * Run the given array of bootstrap classes.
  31. *
  32. * @param string[] $bootstrappers
  33. * @return void
  34. * @static
  35. */
  36. public static function bootstrapWith($bootstrappers)
  37. {
  38. /** @var \Illuminate\Foundation\Application $instance */
  39. $instance->bootstrapWith($bootstrappers);
  40. }
  41. /**
  42. * Register a callback to run after loading the environment.
  43. *
  44. * @param \Closure $callback
  45. * @return void
  46. * @static
  47. */
  48. public static function afterLoadingEnvironment($callback)
  49. {
  50. /** @var \Illuminate\Foundation\Application $instance */
  51. $instance->afterLoadingEnvironment($callback);
  52. }
  53. /**
  54. * Register a callback to run before a bootstrapper.
  55. *
  56. * @param string $bootstrapper
  57. * @param \Closure $callback
  58. * @return void
  59. * @static
  60. */
  61. public static function beforeBootstrapping($bootstrapper, $callback)
  62. {
  63. /** @var \Illuminate\Foundation\Application $instance */
  64. $instance->beforeBootstrapping($bootstrapper, $callback);
  65. }
  66. /**
  67. * Register a callback to run after a bootstrapper.
  68. *
  69. * @param string $bootstrapper
  70. * @param \Closure $callback
  71. * @return void
  72. * @static
  73. */
  74. public static function afterBootstrapping($bootstrapper, $callback)
  75. {
  76. /** @var \Illuminate\Foundation\Application $instance */
  77. $instance->afterBootstrapping($bootstrapper, $callback);
  78. }
  79. /**
  80. * Determine if the application has been bootstrapped before.
  81. *
  82. * @return bool
  83. * @static
  84. */
  85. public static function hasBeenBootstrapped()
  86. {
  87. /** @var \Illuminate\Foundation\Application $instance */
  88. return $instance->hasBeenBootstrapped();
  89. }
  90. /**
  91. * Set the base path for the application.
  92. *
  93. * @param string $basePath
  94. * @return \Illuminate\Foundation\Application
  95. * @static
  96. */
  97. public static function setBasePath($basePath)
  98. {
  99. /** @var \Illuminate\Foundation\Application $instance */
  100. return $instance->setBasePath($basePath);
  101. }
  102. /**
  103. * Get the path to the application "app" directory.
  104. *
  105. * @param string $path
  106. * @return string
  107. * @static
  108. */
  109. public static function path($path = '')
  110. {
  111. /** @var \Illuminate\Foundation\Application $instance */
  112. return $instance->path($path);
  113. }
  114. /**
  115. * Set the application directory.
  116. *
  117. * @param string $path
  118. * @return \Illuminate\Foundation\Application
  119. * @static
  120. */
  121. public static function useAppPath($path)
  122. {
  123. /** @var \Illuminate\Foundation\Application $instance */
  124. return $instance->useAppPath($path);
  125. }
  126. /**
  127. * Get the base path of the Laravel installation.
  128. *
  129. * @param string $path
  130. * @return string
  131. * @static
  132. */
  133. public static function basePath($path = '')
  134. {
  135. /** @var \Illuminate\Foundation\Application $instance */
  136. return $instance->basePath($path);
  137. }
  138. /**
  139. * Get the path to the bootstrap directory.
  140. *
  141. * @param string $path
  142. * @return string
  143. * @static
  144. */
  145. public static function bootstrapPath($path = '')
  146. {
  147. /** @var \Illuminate\Foundation\Application $instance */
  148. return $instance->bootstrapPath($path);
  149. }
  150. /**
  151. * Get the path to the application configuration files.
  152. *
  153. * @param string $path
  154. * @return string
  155. * @static
  156. */
  157. public static function configPath($path = '')
  158. {
  159. /** @var \Illuminate\Foundation\Application $instance */
  160. return $instance->configPath($path);
  161. }
  162. /**
  163. * Get the path to the database directory.
  164. *
  165. * @param string $path
  166. * @return string
  167. * @static
  168. */
  169. public static function databasePath($path = '')
  170. {
  171. /** @var \Illuminate\Foundation\Application $instance */
  172. return $instance->databasePath($path);
  173. }
  174. /**
  175. * Set the database directory.
  176. *
  177. * @param string $path
  178. * @return \Illuminate\Foundation\Application
  179. * @static
  180. */
  181. public static function useDatabasePath($path)
  182. {
  183. /** @var \Illuminate\Foundation\Application $instance */
  184. return $instance->useDatabasePath($path);
  185. }
  186. /**
  187. * Get the path to the language files.
  188. *
  189. * @return string
  190. * @static
  191. */
  192. public static function langPath()
  193. {
  194. /** @var \Illuminate\Foundation\Application $instance */
  195. return $instance->langPath();
  196. }
  197. /**
  198. * Set the language file directory.
  199. *
  200. * @param string $path
  201. * @return \Illuminate\Foundation\Application
  202. * @static
  203. */
  204. public static function useLangPath($path)
  205. {
  206. /** @var \Illuminate\Foundation\Application $instance */
  207. return $instance->useLangPath($path);
  208. }
  209. /**
  210. * Get the path to the public / web directory.
  211. *
  212. * @return string
  213. * @static
  214. */
  215. public static function publicPath()
  216. {
  217. /** @var \Illuminate\Foundation\Application $instance */
  218. return $instance->publicPath();
  219. }
  220. /**
  221. * Get the path to the storage directory.
  222. *
  223. * @return string
  224. * @static
  225. */
  226. public static function storagePath()
  227. {
  228. /** @var \Illuminate\Foundation\Application $instance */
  229. return $instance->storagePath();
  230. }
  231. /**
  232. * Set the storage directory.
  233. *
  234. * @param string $path
  235. * @return \Illuminate\Foundation\Application
  236. * @static
  237. */
  238. public static function useStoragePath($path)
  239. {
  240. /** @var \Illuminate\Foundation\Application $instance */
  241. return $instance->useStoragePath($path);
  242. }
  243. /**
  244. * Get the path to the resources directory.
  245. *
  246. * @param string $path
  247. * @return string
  248. * @static
  249. */
  250. public static function resourcePath($path = '')
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->resourcePath($path);
  254. }
  255. /**
  256. * Get the path to the views directory.
  257. *
  258. * This method returns the first configured path in the array of view paths.
  259. *
  260. * @param string $path
  261. * @return string
  262. * @static
  263. */
  264. public static function viewPath($path = '')
  265. {
  266. /** @var \Illuminate\Foundation\Application $instance */
  267. return $instance->viewPath($path);
  268. }
  269. /**
  270. * Get the path to the environment file directory.
  271. *
  272. * @return string
  273. * @static
  274. */
  275. public static function environmentPath()
  276. {
  277. /** @var \Illuminate\Foundation\Application $instance */
  278. return $instance->environmentPath();
  279. }
  280. /**
  281. * Set the directory for the environment file.
  282. *
  283. * @param string $path
  284. * @return \Illuminate\Foundation\Application
  285. * @static
  286. */
  287. public static function useEnvironmentPath($path)
  288. {
  289. /** @var \Illuminate\Foundation\Application $instance */
  290. return $instance->useEnvironmentPath($path);
  291. }
  292. /**
  293. * Set the environment file to be loaded during bootstrapping.
  294. *
  295. * @param string $file
  296. * @return \Illuminate\Foundation\Application
  297. * @static
  298. */
  299. public static function loadEnvironmentFrom($file)
  300. {
  301. /** @var \Illuminate\Foundation\Application $instance */
  302. return $instance->loadEnvironmentFrom($file);
  303. }
  304. /**
  305. * Get the environment file the application is using.
  306. *
  307. * @return string
  308. * @static
  309. */
  310. public static function environmentFile()
  311. {
  312. /** @var \Illuminate\Foundation\Application $instance */
  313. return $instance->environmentFile();
  314. }
  315. /**
  316. * Get the fully qualified path to the environment file.
  317. *
  318. * @return string
  319. * @static
  320. */
  321. public static function environmentFilePath()
  322. {
  323. /** @var \Illuminate\Foundation\Application $instance */
  324. return $instance->environmentFilePath();
  325. }
  326. /**
  327. * Get or check the current application environment.
  328. *
  329. * @param string|array $environments
  330. * @return string|bool
  331. * @static
  332. */
  333. public static function environment(...$environments)
  334. {
  335. /** @var \Illuminate\Foundation\Application $instance */
  336. return $instance->environment(...$environments);
  337. }
  338. /**
  339. * Determine if the application is in the local environment.
  340. *
  341. * @return bool
  342. * @static
  343. */
  344. public static function isLocal()
  345. {
  346. /** @var \Illuminate\Foundation\Application $instance */
  347. return $instance->isLocal();
  348. }
  349. /**
  350. * Determine if the application is in the production environment.
  351. *
  352. * @return bool
  353. * @static
  354. */
  355. public static function isProduction()
  356. {
  357. /** @var \Illuminate\Foundation\Application $instance */
  358. return $instance->isProduction();
  359. }
  360. /**
  361. * Detect the application's current environment.
  362. *
  363. * @param \Closure $callback
  364. * @return string
  365. * @static
  366. */
  367. public static function detectEnvironment($callback)
  368. {
  369. /** @var \Illuminate\Foundation\Application $instance */
  370. return $instance->detectEnvironment($callback);
  371. }
  372. /**
  373. * Determine if the application is running in the console.
  374. *
  375. * @return bool
  376. * @static
  377. */
  378. public static function runningInConsole()
  379. {
  380. /** @var \Illuminate\Foundation\Application $instance */
  381. return $instance->runningInConsole();
  382. }
  383. /**
  384. * Determine if the application is running unit tests.
  385. *
  386. * @return bool
  387. * @static
  388. */
  389. public static function runningUnitTests()
  390. {
  391. /** @var \Illuminate\Foundation\Application $instance */
  392. return $instance->runningUnitTests();
  393. }
  394. /**
  395. * Determine if the application is running with debug mode enabled.
  396. *
  397. * @return bool
  398. * @static
  399. */
  400. public static function hasDebugModeEnabled()
  401. {
  402. /** @var \Illuminate\Foundation\Application $instance */
  403. return $instance->hasDebugModeEnabled();
  404. }
  405. /**
  406. * Register all of the configured providers.
  407. *
  408. * @return void
  409. * @static
  410. */
  411. public static function registerConfiguredProviders()
  412. {
  413. /** @var \Illuminate\Foundation\Application $instance */
  414. $instance->registerConfiguredProviders();
  415. }
  416. /**
  417. * Register a service provider with the application.
  418. *
  419. * @param \Illuminate\Support\ServiceProvider|string $provider
  420. * @param bool $force
  421. * @return \Illuminate\Support\ServiceProvider
  422. * @static
  423. */
  424. public static function register($provider, $force = false)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. return $instance->register($provider, $force);
  428. }
  429. /**
  430. * Get the registered service provider instance if it exists.
  431. *
  432. * @param \Illuminate\Support\ServiceProvider|string $provider
  433. * @return \Illuminate\Support\ServiceProvider|null
  434. * @static
  435. */
  436. public static function getProvider($provider)
  437. {
  438. /** @var \Illuminate\Foundation\Application $instance */
  439. return $instance->getProvider($provider);
  440. }
  441. /**
  442. * Get the registered service provider instances if any exist.
  443. *
  444. * @param \Illuminate\Support\ServiceProvider|string $provider
  445. * @return array
  446. * @static
  447. */
  448. public static function getProviders($provider)
  449. {
  450. /** @var \Illuminate\Foundation\Application $instance */
  451. return $instance->getProviders($provider);
  452. }
  453. /**
  454. * Resolve a service provider instance from the class name.
  455. *
  456. * @param string $provider
  457. * @return \Illuminate\Support\ServiceProvider
  458. * @static
  459. */
  460. public static function resolveProvider($provider)
  461. {
  462. /** @var \Illuminate\Foundation\Application $instance */
  463. return $instance->resolveProvider($provider);
  464. }
  465. /**
  466. * Load and boot all of the remaining deferred providers.
  467. *
  468. * @return void
  469. * @static
  470. */
  471. public static function loadDeferredProviders()
  472. {
  473. /** @var \Illuminate\Foundation\Application $instance */
  474. $instance->loadDeferredProviders();
  475. }
  476. /**
  477. * Load the provider for a deferred service.
  478. *
  479. * @param string $service
  480. * @return void
  481. * @static
  482. */
  483. public static function loadDeferredProvider($service)
  484. {
  485. /** @var \Illuminate\Foundation\Application $instance */
  486. $instance->loadDeferredProvider($service);
  487. }
  488. /**
  489. * Register a deferred provider and service.
  490. *
  491. * @param string $provider
  492. * @param string|null $service
  493. * @return void
  494. * @static
  495. */
  496. public static function registerDeferredProvider($provider, $service = null)
  497. {
  498. /** @var \Illuminate\Foundation\Application $instance */
  499. $instance->registerDeferredProvider($provider, $service);
  500. }
  501. /**
  502. * Resolve the given type from the container.
  503. *
  504. * @param string $abstract
  505. * @param array $parameters
  506. * @return mixed
  507. * @static
  508. */
  509. public static function make($abstract, $parameters = [])
  510. {
  511. /** @var \Illuminate\Foundation\Application $instance */
  512. return $instance->make($abstract, $parameters);
  513. }
  514. /**
  515. * Determine if the given abstract type has been bound.
  516. *
  517. * @param string $abstract
  518. * @return bool
  519. * @static
  520. */
  521. public static function bound($abstract)
  522. {
  523. /** @var \Illuminate\Foundation\Application $instance */
  524. return $instance->bound($abstract);
  525. }
  526. /**
  527. * Determine if the application has booted.
  528. *
  529. * @return bool
  530. * @static
  531. */
  532. public static function isBooted()
  533. {
  534. /** @var \Illuminate\Foundation\Application $instance */
  535. return $instance->isBooted();
  536. }
  537. /**
  538. * Boot the application's service providers.
  539. *
  540. * @return void
  541. * @static
  542. */
  543. public static function boot()
  544. {
  545. /** @var \Illuminate\Foundation\Application $instance */
  546. $instance->boot();
  547. }
  548. /**
  549. * Register a new boot listener.
  550. *
  551. * @param callable $callback
  552. * @return void
  553. * @static
  554. */
  555. public static function booting($callback)
  556. {
  557. /** @var \Illuminate\Foundation\Application $instance */
  558. $instance->booting($callback);
  559. }
  560. /**
  561. * Register a new "booted" listener.
  562. *
  563. * @param callable $callback
  564. * @return void
  565. * @static
  566. */
  567. public static function booted($callback)
  568. {
  569. /** @var \Illuminate\Foundation\Application $instance */
  570. $instance->booted($callback);
  571. }
  572. /**
  573. * {@inheritdoc}
  574. *
  575. * @return \Symfony\Component\HttpFoundation\Response
  576. * @static
  577. */
  578. public static function handle($request, $type = 1, $catch = true)
  579. {
  580. /** @var \Illuminate\Foundation\Application $instance */
  581. return $instance->handle($request, $type, $catch);
  582. }
  583. /**
  584. * Determine if middleware has been disabled for the application.
  585. *
  586. * @return bool
  587. * @static
  588. */
  589. public static function shouldSkipMiddleware()
  590. {
  591. /** @var \Illuminate\Foundation\Application $instance */
  592. return $instance->shouldSkipMiddleware();
  593. }
  594. /**
  595. * Get the path to the cached services.php file.
  596. *
  597. * @return string
  598. * @static
  599. */
  600. public static function getCachedServicesPath()
  601. {
  602. /** @var \Illuminate\Foundation\Application $instance */
  603. return $instance->getCachedServicesPath();
  604. }
  605. /**
  606. * Get the path to the cached packages.php file.
  607. *
  608. * @return string
  609. * @static
  610. */
  611. public static function getCachedPackagesPath()
  612. {
  613. /** @var \Illuminate\Foundation\Application $instance */
  614. return $instance->getCachedPackagesPath();
  615. }
  616. /**
  617. * Determine if the application configuration is cached.
  618. *
  619. * @return bool
  620. * @static
  621. */
  622. public static function configurationIsCached()
  623. {
  624. /** @var \Illuminate\Foundation\Application $instance */
  625. return $instance->configurationIsCached();
  626. }
  627. /**
  628. * Get the path to the configuration cache file.
  629. *
  630. * @return string
  631. * @static
  632. */
  633. public static function getCachedConfigPath()
  634. {
  635. /** @var \Illuminate\Foundation\Application $instance */
  636. return $instance->getCachedConfigPath();
  637. }
  638. /**
  639. * Determine if the application routes are cached.
  640. *
  641. * @return bool
  642. * @static
  643. */
  644. public static function routesAreCached()
  645. {
  646. /** @var \Illuminate\Foundation\Application $instance */
  647. return $instance->routesAreCached();
  648. }
  649. /**
  650. * Get the path to the routes cache file.
  651. *
  652. * @return string
  653. * @static
  654. */
  655. public static function getCachedRoutesPath()
  656. {
  657. /** @var \Illuminate\Foundation\Application $instance */
  658. return $instance->getCachedRoutesPath();
  659. }
  660. /**
  661. * Determine if the application events are cached.
  662. *
  663. * @return bool
  664. * @static
  665. */
  666. public static function eventsAreCached()
  667. {
  668. /** @var \Illuminate\Foundation\Application $instance */
  669. return $instance->eventsAreCached();
  670. }
  671. /**
  672. * Get the path to the events cache file.
  673. *
  674. * @return string
  675. * @static
  676. */
  677. public static function getCachedEventsPath()
  678. {
  679. /** @var \Illuminate\Foundation\Application $instance */
  680. return $instance->getCachedEventsPath();
  681. }
  682. /**
  683. * Add new prefix to list of absolute path prefixes.
  684. *
  685. * @param string $prefix
  686. * @return \Illuminate\Foundation\Application
  687. * @static
  688. */
  689. public static function addAbsoluteCachePathPrefix($prefix)
  690. {
  691. /** @var \Illuminate\Foundation\Application $instance */
  692. return $instance->addAbsoluteCachePathPrefix($prefix);
  693. }
  694. /**
  695. * Determine if the application is currently down for maintenance.
  696. *
  697. * @return bool
  698. * @static
  699. */
  700. public static function isDownForMaintenance()
  701. {
  702. /** @var \Illuminate\Foundation\Application $instance */
  703. return $instance->isDownForMaintenance();
  704. }
  705. /**
  706. * Throw an HttpException with the given data.
  707. *
  708. * @param int $code
  709. * @param string $message
  710. * @param array $headers
  711. * @return never
  712. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  713. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  714. * @static
  715. */
  716. public static function abort($code, $message = '', $headers = [])
  717. {
  718. /** @var \Illuminate\Foundation\Application $instance */
  719. return $instance->abort($code, $message, $headers);
  720. }
  721. /**
  722. * Register a terminating callback with the application.
  723. *
  724. * @param callable|string $callback
  725. * @return \Illuminate\Foundation\Application
  726. * @static
  727. */
  728. public static function terminating($callback)
  729. {
  730. /** @var \Illuminate\Foundation\Application $instance */
  731. return $instance->terminating($callback);
  732. }
  733. /**
  734. * Terminate the application.
  735. *
  736. * @return void
  737. * @static
  738. */
  739. public static function terminate()
  740. {
  741. /** @var \Illuminate\Foundation\Application $instance */
  742. $instance->terminate();
  743. }
  744. /**
  745. * Get the service providers that have been loaded.
  746. *
  747. * @return array
  748. * @static
  749. */
  750. public static function getLoadedProviders()
  751. {
  752. /** @var \Illuminate\Foundation\Application $instance */
  753. return $instance->getLoadedProviders();
  754. }
  755. /**
  756. * Determine if the given service provider is loaded.
  757. *
  758. * @param string $provider
  759. * @return bool
  760. * @static
  761. */
  762. public static function providerIsLoaded($provider)
  763. {
  764. /** @var \Illuminate\Foundation\Application $instance */
  765. return $instance->providerIsLoaded($provider);
  766. }
  767. /**
  768. * Get the application's deferred services.
  769. *
  770. * @return array
  771. * @static
  772. */
  773. public static function getDeferredServices()
  774. {
  775. /** @var \Illuminate\Foundation\Application $instance */
  776. return $instance->getDeferredServices();
  777. }
  778. /**
  779. * Set the application's deferred services.
  780. *
  781. * @param array $services
  782. * @return void
  783. * @static
  784. */
  785. public static function setDeferredServices($services)
  786. {
  787. /** @var \Illuminate\Foundation\Application $instance */
  788. $instance->setDeferredServices($services);
  789. }
  790. /**
  791. * Add an array of services to the application's deferred services.
  792. *
  793. * @param array $services
  794. * @return void
  795. * @static
  796. */
  797. public static function addDeferredServices($services)
  798. {
  799. /** @var \Illuminate\Foundation\Application $instance */
  800. $instance->addDeferredServices($services);
  801. }
  802. /**
  803. * Determine if the given service is a deferred service.
  804. *
  805. * @param string $service
  806. * @return bool
  807. * @static
  808. */
  809. public static function isDeferredService($service)
  810. {
  811. /** @var \Illuminate\Foundation\Application $instance */
  812. return $instance->isDeferredService($service);
  813. }
  814. /**
  815. * Configure the real-time facade namespace.
  816. *
  817. * @param string $namespace
  818. * @return void
  819. * @static
  820. */
  821. public static function provideFacades($namespace)
  822. {
  823. /** @var \Illuminate\Foundation\Application $instance */
  824. $instance->provideFacades($namespace);
  825. }
  826. /**
  827. * Get the current application locale.
  828. *
  829. * @return string
  830. * @static
  831. */
  832. public static function getLocale()
  833. {
  834. /** @var \Illuminate\Foundation\Application $instance */
  835. return $instance->getLocale();
  836. }
  837. /**
  838. * Get the current application locale.
  839. *
  840. * @return string
  841. * @static
  842. */
  843. public static function currentLocale()
  844. {
  845. /** @var \Illuminate\Foundation\Application $instance */
  846. return $instance->currentLocale();
  847. }
  848. /**
  849. * Get the current application fallback locale.
  850. *
  851. * @return string
  852. * @static
  853. */
  854. public static function getFallbackLocale()
  855. {
  856. /** @var \Illuminate\Foundation\Application $instance */
  857. return $instance->getFallbackLocale();
  858. }
  859. /**
  860. * Set the current application locale.
  861. *
  862. * @param string $locale
  863. * @return void
  864. * @static
  865. */
  866. public static function setLocale($locale)
  867. {
  868. /** @var \Illuminate\Foundation\Application $instance */
  869. $instance->setLocale($locale);
  870. }
  871. /**
  872. * Set the current application fallback locale.
  873. *
  874. * @param string $fallbackLocale
  875. * @return void
  876. * @static
  877. */
  878. public static function setFallbackLocale($fallbackLocale)
  879. {
  880. /** @var \Illuminate\Foundation\Application $instance */
  881. $instance->setFallbackLocale($fallbackLocale);
  882. }
  883. /**
  884. * Determine if the application locale is the given locale.
  885. *
  886. * @param string $locale
  887. * @return bool
  888. * @static
  889. */
  890. public static function isLocale($locale)
  891. {
  892. /** @var \Illuminate\Foundation\Application $instance */
  893. return $instance->isLocale($locale);
  894. }
  895. /**
  896. * Register the core class aliases in the container.
  897. *
  898. * @return void
  899. * @static
  900. */
  901. public static function registerCoreContainerAliases()
  902. {
  903. /** @var \Illuminate\Foundation\Application $instance */
  904. $instance->registerCoreContainerAliases();
  905. }
  906. /**
  907. * Flush the container of all bindings and resolved instances.
  908. *
  909. * @return void
  910. * @static
  911. */
  912. public static function flush()
  913. {
  914. /** @var \Illuminate\Foundation\Application $instance */
  915. $instance->flush();
  916. }
  917. /**
  918. * Get the application namespace.
  919. *
  920. * @return string
  921. * @throws \RuntimeException
  922. * @static
  923. */
  924. public static function getNamespace()
  925. {
  926. /** @var \Illuminate\Foundation\Application $instance */
  927. return $instance->getNamespace();
  928. }
  929. /**
  930. * Define a contextual binding.
  931. *
  932. * @param array|string $concrete
  933. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  934. * @static
  935. */
  936. public static function when($concrete)
  937. { //Method inherited from \Illuminate\Container\Container
  938. /** @var \Illuminate\Foundation\Application $instance */
  939. return $instance->when($concrete);
  940. }
  941. /**
  942. * Returns true if the container can return an entry for the given identifier.
  943. *
  944. * Returns false otherwise.
  945. *
  946. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  947. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  948. *
  949. * @return bool
  950. * @param string $id Identifier of the entry to look for.
  951. * @return bool
  952. * @static
  953. */
  954. public static function has($id)
  955. { //Method inherited from \Illuminate\Container\Container
  956. /** @var \Illuminate\Foundation\Application $instance */
  957. return $instance->has($id);
  958. }
  959. /**
  960. * Determine if the given abstract type has been resolved.
  961. *
  962. * @param string $abstract
  963. * @return bool
  964. * @static
  965. */
  966. public static function resolved($abstract)
  967. { //Method inherited from \Illuminate\Container\Container
  968. /** @var \Illuminate\Foundation\Application $instance */
  969. return $instance->resolved($abstract);
  970. }
  971. /**
  972. * Determine if a given type is shared.
  973. *
  974. * @param string $abstract
  975. * @return bool
  976. * @static
  977. */
  978. public static function isShared($abstract)
  979. { //Method inherited from \Illuminate\Container\Container
  980. /** @var \Illuminate\Foundation\Application $instance */
  981. return $instance->isShared($abstract);
  982. }
  983. /**
  984. * Determine if a given string is an alias.
  985. *
  986. * @param string $name
  987. * @return bool
  988. * @static
  989. */
  990. public static function isAlias($name)
  991. { //Method inherited from \Illuminate\Container\Container
  992. /** @var \Illuminate\Foundation\Application $instance */
  993. return $instance->isAlias($name);
  994. }
  995. /**
  996. * Register a binding with the container.
  997. *
  998. * @param string $abstract
  999. * @param \Closure|string|null $concrete
  1000. * @param bool $shared
  1001. * @return void
  1002. * @throws \TypeError
  1003. * @static
  1004. */
  1005. public static function bind($abstract, $concrete = null, $shared = false)
  1006. { //Method inherited from \Illuminate\Container\Container
  1007. /** @var \Illuminate\Foundation\Application $instance */
  1008. $instance->bind($abstract, $concrete, $shared);
  1009. }
  1010. /**
  1011. * Determine if the container has a method binding.
  1012. *
  1013. * @param string $method
  1014. * @return bool
  1015. * @static
  1016. */
  1017. public static function hasMethodBinding($method)
  1018. { //Method inherited from \Illuminate\Container\Container
  1019. /** @var \Illuminate\Foundation\Application $instance */
  1020. return $instance->hasMethodBinding($method);
  1021. }
  1022. /**
  1023. * Bind a callback to resolve with Container::call.
  1024. *
  1025. * @param array|string $method
  1026. * @param \Closure $callback
  1027. * @return void
  1028. * @static
  1029. */
  1030. public static function bindMethod($method, $callback)
  1031. { //Method inherited from \Illuminate\Container\Container
  1032. /** @var \Illuminate\Foundation\Application $instance */
  1033. $instance->bindMethod($method, $callback);
  1034. }
  1035. /**
  1036. * Get the method binding for the given method.
  1037. *
  1038. * @param string $method
  1039. * @param mixed $instance
  1040. * @return mixed
  1041. * @static
  1042. */
  1043. public static function callMethodBinding($method, $instance)
  1044. { //Method inherited from \Illuminate\Container\Container
  1045. /** @var \Illuminate\Foundation\Application $instance */
  1046. return $instance->callMethodBinding($method, $instance);
  1047. }
  1048. /**
  1049. * Add a contextual binding to the container.
  1050. *
  1051. * @param string $concrete
  1052. * @param string $abstract
  1053. * @param \Closure|string $implementation
  1054. * @return void
  1055. * @static
  1056. */
  1057. public static function addContextualBinding($concrete, $abstract, $implementation)
  1058. { //Method inherited from \Illuminate\Container\Container
  1059. /** @var \Illuminate\Foundation\Application $instance */
  1060. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1061. }
  1062. /**
  1063. * Register a binding if it hasn't already been registered.
  1064. *
  1065. * @param string $abstract
  1066. * @param \Closure|string|null $concrete
  1067. * @param bool $shared
  1068. * @return void
  1069. * @static
  1070. */
  1071. public static function bindIf($abstract, $concrete = null, $shared = false)
  1072. { //Method inherited from \Illuminate\Container\Container
  1073. /** @var \Illuminate\Foundation\Application $instance */
  1074. $instance->bindIf($abstract, $concrete, $shared);
  1075. }
  1076. /**
  1077. * Register a shared binding in the container.
  1078. *
  1079. * @param string $abstract
  1080. * @param \Closure|string|null $concrete
  1081. * @return void
  1082. * @static
  1083. */
  1084. public static function singleton($abstract, $concrete = null)
  1085. { //Method inherited from \Illuminate\Container\Container
  1086. /** @var \Illuminate\Foundation\Application $instance */
  1087. $instance->singleton($abstract, $concrete);
  1088. }
  1089. /**
  1090. * Register a shared binding if it hasn't already been registered.
  1091. *
  1092. * @param string $abstract
  1093. * @param \Closure|string|null $concrete
  1094. * @return void
  1095. * @static
  1096. */
  1097. public static function singletonIf($abstract, $concrete = null)
  1098. { //Method inherited from \Illuminate\Container\Container
  1099. /** @var \Illuminate\Foundation\Application $instance */
  1100. $instance->singletonIf($abstract, $concrete);
  1101. }
  1102. /**
  1103. * Register a scoped binding in the container.
  1104. *
  1105. * @param string $abstract
  1106. * @param \Closure|string|null $concrete
  1107. * @return void
  1108. * @static
  1109. */
  1110. public static function scoped($abstract, $concrete = null)
  1111. { //Method inherited from \Illuminate\Container\Container
  1112. /** @var \Illuminate\Foundation\Application $instance */
  1113. $instance->scoped($abstract, $concrete);
  1114. }
  1115. /**
  1116. * Register a scoped binding if it hasn't already been registered.
  1117. *
  1118. * @param string $abstract
  1119. * @param \Closure|string|null $concrete
  1120. * @return void
  1121. * @static
  1122. */
  1123. public static function scopedIf($abstract, $concrete = null)
  1124. { //Method inherited from \Illuminate\Container\Container
  1125. /** @var \Illuminate\Foundation\Application $instance */
  1126. $instance->scopedIf($abstract, $concrete);
  1127. }
  1128. /**
  1129. * "Extend" an abstract type in the container.
  1130. *
  1131. * @param string $abstract
  1132. * @param \Closure $closure
  1133. * @return void
  1134. * @throws \InvalidArgumentException
  1135. * @static
  1136. */
  1137. public static function extend($abstract, $closure)
  1138. { //Method inherited from \Illuminate\Container\Container
  1139. /** @var \Illuminate\Foundation\Application $instance */
  1140. $instance->extend($abstract, $closure);
  1141. }
  1142. /**
  1143. * Register an existing instance as shared in the container.
  1144. *
  1145. * @param string $abstract
  1146. * @param mixed $instance
  1147. * @return mixed
  1148. * @static
  1149. */
  1150. public static function instance($abstract, $instance)
  1151. { //Method inherited from \Illuminate\Container\Container
  1152. /** @var \Illuminate\Foundation\Application $instance */
  1153. return $instance->instance($abstract, $instance);
  1154. }
  1155. /**
  1156. * Assign a set of tags to a given binding.
  1157. *
  1158. * @param array|string $abstracts
  1159. * @param array|mixed $tags
  1160. * @return void
  1161. * @static
  1162. */
  1163. public static function tag($abstracts, $tags)
  1164. { //Method inherited from \Illuminate\Container\Container
  1165. /** @var \Illuminate\Foundation\Application $instance */
  1166. $instance->tag($abstracts, $tags);
  1167. }
  1168. /**
  1169. * Resolve all of the bindings for a given tag.
  1170. *
  1171. * @param string $tag
  1172. * @return iterable
  1173. * @static
  1174. */
  1175. public static function tagged($tag)
  1176. { //Method inherited from \Illuminate\Container\Container
  1177. /** @var \Illuminate\Foundation\Application $instance */
  1178. return $instance->tagged($tag);
  1179. }
  1180. /**
  1181. * Alias a type to a different name.
  1182. *
  1183. * @param string $abstract
  1184. * @param string $alias
  1185. * @return void
  1186. * @throws \LogicException
  1187. * @static
  1188. */
  1189. public static function alias($abstract, $alias)
  1190. { //Method inherited from \Illuminate\Container\Container
  1191. /** @var \Illuminate\Foundation\Application $instance */
  1192. $instance->alias($abstract, $alias);
  1193. }
  1194. /**
  1195. * Bind a new callback to an abstract's rebind event.
  1196. *
  1197. * @param string $abstract
  1198. * @param \Closure $callback
  1199. * @return mixed
  1200. * @static
  1201. */
  1202. public static function rebinding($abstract, $callback)
  1203. { //Method inherited from \Illuminate\Container\Container
  1204. /** @var \Illuminate\Foundation\Application $instance */
  1205. return $instance->rebinding($abstract, $callback);
  1206. }
  1207. /**
  1208. * Refresh an instance on the given target and method.
  1209. *
  1210. * @param string $abstract
  1211. * @param mixed $target
  1212. * @param string $method
  1213. * @return mixed
  1214. * @static
  1215. */
  1216. public static function refresh($abstract, $target, $method)
  1217. { //Method inherited from \Illuminate\Container\Container
  1218. /** @var \Illuminate\Foundation\Application $instance */
  1219. return $instance->refresh($abstract, $target, $method);
  1220. }
  1221. /**
  1222. * Wrap the given closure such that its dependencies will be injected when executed.
  1223. *
  1224. * @param \Closure $callback
  1225. * @param array $parameters
  1226. * @return \Closure
  1227. * @static
  1228. */
  1229. public static function wrap($callback, $parameters = [])
  1230. { //Method inherited from \Illuminate\Container\Container
  1231. /** @var \Illuminate\Foundation\Application $instance */
  1232. return $instance->wrap($callback, $parameters);
  1233. }
  1234. /**
  1235. * Call the given Closure / class@method and inject its dependencies.
  1236. *
  1237. * @param callable|string $callback
  1238. * @param array<string, mixed> $parameters
  1239. * @param string|null $defaultMethod
  1240. * @return mixed
  1241. * @throws \InvalidArgumentException
  1242. * @static
  1243. */
  1244. public static function call($callback, $parameters = [], $defaultMethod = null)
  1245. { //Method inherited from \Illuminate\Container\Container
  1246. /** @var \Illuminate\Foundation\Application $instance */
  1247. return $instance->call($callback, $parameters, $defaultMethod);
  1248. }
  1249. /**
  1250. * Get a closure to resolve the given type from the container.
  1251. *
  1252. * @param string $abstract
  1253. * @return \Closure
  1254. * @static
  1255. */
  1256. public static function factory($abstract)
  1257. { //Method inherited from \Illuminate\Container\Container
  1258. /** @var \Illuminate\Foundation\Application $instance */
  1259. return $instance->factory($abstract);
  1260. }
  1261. /**
  1262. * An alias function name for make().
  1263. *
  1264. * @param string|callable $abstract
  1265. * @param array $parameters
  1266. * @return mixed
  1267. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1268. * @static
  1269. */
  1270. public static function makeWith($abstract, $parameters = [])
  1271. { //Method inherited from \Illuminate\Container\Container
  1272. /** @var \Illuminate\Foundation\Application $instance */
  1273. return $instance->makeWith($abstract, $parameters);
  1274. }
  1275. /**
  1276. * Finds an entry of the container by its identifier and returns it.
  1277. *
  1278. * @return mixed
  1279. * @param string $id Identifier of the entry to look for.
  1280. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1281. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1282. * @return mixed Entry.
  1283. * @static
  1284. */
  1285. public static function get($id)
  1286. { //Method inherited from \Illuminate\Container\Container
  1287. /** @var \Illuminate\Foundation\Application $instance */
  1288. return $instance->get($id);
  1289. }
  1290. /**
  1291. * Instantiate a concrete instance of the given type.
  1292. *
  1293. * @param \Closure|string $concrete
  1294. * @return mixed
  1295. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1296. * @throws \Illuminate\Contracts\Container\CircularDependencyException
  1297. * @static
  1298. */
  1299. public static function build($concrete)
  1300. { //Method inherited from \Illuminate\Container\Container
  1301. /** @var \Illuminate\Foundation\Application $instance */
  1302. return $instance->build($concrete);
  1303. }
  1304. /**
  1305. * Register a new before resolving callback for all types.
  1306. *
  1307. * @param \Closure|string $abstract
  1308. * @param \Closure|null $callback
  1309. * @return void
  1310. * @static
  1311. */
  1312. public static function beforeResolving($abstract, $callback = null)
  1313. { //Method inherited from \Illuminate\Container\Container
  1314. /** @var \Illuminate\Foundation\Application $instance */
  1315. $instance->beforeResolving($abstract, $callback);
  1316. }
  1317. /**
  1318. * Register a new resolving callback.
  1319. *
  1320. * @param \Closure|string $abstract
  1321. * @param \Closure|null $callback
  1322. * @return void
  1323. * @static
  1324. */
  1325. public static function resolving($abstract, $callback = null)
  1326. { //Method inherited from \Illuminate\Container\Container
  1327. /** @var \Illuminate\Foundation\Application $instance */
  1328. $instance->resolving($abstract, $callback);
  1329. }
  1330. /**
  1331. * Register a new after resolving callback for all types.
  1332. *
  1333. * @param \Closure|string $abstract
  1334. * @param \Closure|null $callback
  1335. * @return void
  1336. * @static
  1337. */
  1338. public static function afterResolving($abstract, $callback = null)
  1339. { //Method inherited from \Illuminate\Container\Container
  1340. /** @var \Illuminate\Foundation\Application $instance */
  1341. $instance->afterResolving($abstract, $callback);
  1342. }
  1343. /**
  1344. * Get the container's bindings.
  1345. *
  1346. * @return array
  1347. * @static
  1348. */
  1349. public static function getBindings()
  1350. { //Method inherited from \Illuminate\Container\Container
  1351. /** @var \Illuminate\Foundation\Application $instance */
  1352. return $instance->getBindings();
  1353. }
  1354. /**
  1355. * Get the alias for an abstract if available.
  1356. *
  1357. * @param string $abstract
  1358. * @return string
  1359. * @static
  1360. */
  1361. public static function getAlias($abstract)
  1362. { //Method inherited from \Illuminate\Container\Container
  1363. /** @var \Illuminate\Foundation\Application $instance */
  1364. return $instance->getAlias($abstract);
  1365. }
  1366. /**
  1367. * Remove all of the extender callbacks for a given type.
  1368. *
  1369. * @param string $abstract
  1370. * @return void
  1371. * @static
  1372. */
  1373. public static function forgetExtenders($abstract)
  1374. { //Method inherited from \Illuminate\Container\Container
  1375. /** @var \Illuminate\Foundation\Application $instance */
  1376. $instance->forgetExtenders($abstract);
  1377. }
  1378. /**
  1379. * Remove a resolved instance from the instance cache.
  1380. *
  1381. * @param string $abstract
  1382. * @return void
  1383. * @static
  1384. */
  1385. public static function forgetInstance($abstract)
  1386. { //Method inherited from \Illuminate\Container\Container
  1387. /** @var \Illuminate\Foundation\Application $instance */
  1388. $instance->forgetInstance($abstract);
  1389. }
  1390. /**
  1391. * Clear all of the instances from the container.
  1392. *
  1393. * @return void
  1394. * @static
  1395. */
  1396. public static function forgetInstances()
  1397. { //Method inherited from \Illuminate\Container\Container
  1398. /** @var \Illuminate\Foundation\Application $instance */
  1399. $instance->forgetInstances();
  1400. }
  1401. /**
  1402. * Clear all of the scoped instances from the container.
  1403. *
  1404. * @return void
  1405. * @static
  1406. */
  1407. public static function forgetScopedInstances()
  1408. { //Method inherited from \Illuminate\Container\Container
  1409. /** @var \Illuminate\Foundation\Application $instance */
  1410. $instance->forgetScopedInstances();
  1411. }
  1412. /**
  1413. * Get the globally available instance of the container.
  1414. *
  1415. * @return static
  1416. * @static
  1417. */
  1418. public static function getInstance()
  1419. { //Method inherited from \Illuminate\Container\Container
  1420. return \Illuminate\Foundation\Application::getInstance();
  1421. }
  1422. /**
  1423. * Set the shared instance of the container.
  1424. *
  1425. * @param \Illuminate\Contracts\Container\Container|null $container
  1426. * @return \Illuminate\Contracts\Container\Container|static
  1427. * @static
  1428. */
  1429. public static function setInstance($container = null)
  1430. { //Method inherited from \Illuminate\Container\Container
  1431. return \Illuminate\Foundation\Application::setInstance($container);
  1432. }
  1433. /**
  1434. * Determine if a given offset exists.
  1435. *
  1436. * @param string $key
  1437. * @return bool
  1438. * @static
  1439. */
  1440. public static function offsetExists($key)
  1441. { //Method inherited from \Illuminate\Container\Container
  1442. /** @var \Illuminate\Foundation\Application $instance */
  1443. return $instance->offsetExists($key);
  1444. }
  1445. /**
  1446. * Get the value at a given offset.
  1447. *
  1448. * @param string $key
  1449. * @return mixed
  1450. * @static
  1451. */
  1452. public static function offsetGet($key)
  1453. { //Method inherited from \Illuminate\Container\Container
  1454. /** @var \Illuminate\Foundation\Application $instance */
  1455. return $instance->offsetGet($key);
  1456. }
  1457. /**
  1458. * Set the value at a given offset.
  1459. *
  1460. * @param string $key
  1461. * @param mixed $value
  1462. * @return void
  1463. * @static
  1464. */
  1465. public static function offsetSet($key, $value)
  1466. { //Method inherited from \Illuminate\Container\Container
  1467. /** @var \Illuminate\Foundation\Application $instance */
  1468. $instance->offsetSet($key, $value);
  1469. }
  1470. /**
  1471. * Unset the value at a given offset.
  1472. *
  1473. * @param string $key
  1474. * @return void
  1475. * @static
  1476. */
  1477. public static function offsetUnset($key)
  1478. { //Method inherited from \Illuminate\Container\Container
  1479. /** @var \Illuminate\Foundation\Application $instance */
  1480. $instance->offsetUnset($key);
  1481. }
  1482. }
  1483. /**
  1484. * @see \Illuminate\Contracts\Console\Kernel
  1485. */
  1486. class Artisan {
  1487. /**
  1488. * Run the console application.
  1489. *
  1490. * @param \Symfony\Component\Console\Input\InputInterface $input
  1491. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1492. * @return int
  1493. * @static
  1494. */
  1495. public static function handle($input, $output = null)
  1496. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1497. /** @var \App\Console\Kernel $instance */
  1498. return $instance->handle($input, $output);
  1499. }
  1500. /**
  1501. * Terminate the application.
  1502. *
  1503. * @param \Symfony\Component\Console\Input\InputInterface $input
  1504. * @param int $status
  1505. * @return void
  1506. * @static
  1507. */
  1508. public static function terminate($input, $status)
  1509. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1510. /** @var \App\Console\Kernel $instance */
  1511. $instance->terminate($input, $status);
  1512. }
  1513. /**
  1514. * Register a Closure based command with the application.
  1515. *
  1516. * @param string $signature
  1517. * @param \Closure $callback
  1518. * @return \Illuminate\Foundation\Console\ClosureCommand
  1519. * @static
  1520. */
  1521. public static function command($signature, $callback)
  1522. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1523. /** @var \App\Console\Kernel $instance */
  1524. return $instance->command($signature, $callback);
  1525. }
  1526. /**
  1527. * Register the given command with the console application.
  1528. *
  1529. * @param \Symfony\Component\Console\Command\Command $command
  1530. * @return void
  1531. * @static
  1532. */
  1533. public static function registerCommand($command)
  1534. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1535. /** @var \App\Console\Kernel $instance */
  1536. $instance->registerCommand($command);
  1537. }
  1538. /**
  1539. * Run an Artisan console command by name.
  1540. *
  1541. * @param string $command
  1542. * @param array $parameters
  1543. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1544. * @return int
  1545. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1546. * @static
  1547. */
  1548. public static function call($command, $parameters = [], $outputBuffer = null)
  1549. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1550. /** @var \App\Console\Kernel $instance */
  1551. return $instance->call($command, $parameters, $outputBuffer);
  1552. }
  1553. /**
  1554. * Queue the given console command.
  1555. *
  1556. * @param string $command
  1557. * @param array $parameters
  1558. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1559. * @static
  1560. */
  1561. public static function queue($command, $parameters = [])
  1562. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1563. /** @var \App\Console\Kernel $instance */
  1564. return $instance->queue($command, $parameters);
  1565. }
  1566. /**
  1567. * Get all of the commands registered with the console.
  1568. *
  1569. * @return array
  1570. * @static
  1571. */
  1572. public static function all()
  1573. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1574. /** @var \App\Console\Kernel $instance */
  1575. return $instance->all();
  1576. }
  1577. /**
  1578. * Get the output for the last run command.
  1579. *
  1580. * @return string
  1581. * @static
  1582. */
  1583. public static function output()
  1584. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1585. /** @var \App\Console\Kernel $instance */
  1586. return $instance->output();
  1587. }
  1588. /**
  1589. * Bootstrap the application for artisan commands.
  1590. *
  1591. * @return void
  1592. * @static
  1593. */
  1594. public static function bootstrap()
  1595. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1596. /** @var \App\Console\Kernel $instance */
  1597. $instance->bootstrap();
  1598. }
  1599. /**
  1600. * Set the Artisan application instance.
  1601. *
  1602. * @param \Illuminate\Console\Application $artisan
  1603. * @return void
  1604. * @static
  1605. */
  1606. public static function setArtisan($artisan)
  1607. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1608. /** @var \App\Console\Kernel $instance */
  1609. $instance->setArtisan($artisan);
  1610. }
  1611. }
  1612. /**
  1613. * @see \Illuminate\Auth\AuthManager
  1614. * @see \Illuminate\Contracts\Auth\Factory
  1615. * @see \Illuminate\Contracts\Auth\Guard
  1616. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1617. */
  1618. class Auth {
  1619. /**
  1620. * Attempt to get the guard from the local cache.
  1621. *
  1622. * @param string|null $name
  1623. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1624. * @static
  1625. */
  1626. public static function guard($name = null)
  1627. {
  1628. /** @var \Illuminate\Auth\AuthManager $instance */
  1629. return $instance->guard($name);
  1630. }
  1631. /**
  1632. * Create a session based authentication guard.
  1633. *
  1634. * @param string $name
  1635. * @param array $config
  1636. * @return \Illuminate\Auth\SessionGuard
  1637. * @static
  1638. */
  1639. public static function createSessionDriver($name, $config)
  1640. {
  1641. /** @var \Illuminate\Auth\AuthManager $instance */
  1642. return $instance->createSessionDriver($name, $config);
  1643. }
  1644. /**
  1645. * Create a token based authentication guard.
  1646. *
  1647. * @param string $name
  1648. * @param array $config
  1649. * @return \Illuminate\Auth\TokenGuard
  1650. * @static
  1651. */
  1652. public static function createTokenDriver($name, $config)
  1653. {
  1654. /** @var \Illuminate\Auth\AuthManager $instance */
  1655. return $instance->createTokenDriver($name, $config);
  1656. }
  1657. /**
  1658. * Get the default authentication driver name.
  1659. *
  1660. * @return string
  1661. * @static
  1662. */
  1663. public static function getDefaultDriver()
  1664. {
  1665. /** @var \Illuminate\Auth\AuthManager $instance */
  1666. return $instance->getDefaultDriver();
  1667. }
  1668. /**
  1669. * Set the default guard driver the factory should serve.
  1670. *
  1671. * @param string $name
  1672. * @return void
  1673. * @static
  1674. */
  1675. public static function shouldUse($name)
  1676. {
  1677. /** @var \Illuminate\Auth\AuthManager $instance */
  1678. $instance->shouldUse($name);
  1679. }
  1680. /**
  1681. * Set the default authentication driver name.
  1682. *
  1683. * @param string $name
  1684. * @return void
  1685. * @static
  1686. */
  1687. public static function setDefaultDriver($name)
  1688. {
  1689. /** @var \Illuminate\Auth\AuthManager $instance */
  1690. $instance->setDefaultDriver($name);
  1691. }
  1692. /**
  1693. * Register a new callback based request guard.
  1694. *
  1695. * @param string $driver
  1696. * @param callable $callback
  1697. * @return \Illuminate\Auth\AuthManager
  1698. * @static
  1699. */
  1700. public static function viaRequest($driver, $callback)
  1701. {
  1702. /** @var \Illuminate\Auth\AuthManager $instance */
  1703. return $instance->viaRequest($driver, $callback);
  1704. }
  1705. /**
  1706. * Get the user resolver callback.
  1707. *
  1708. * @return \Closure
  1709. * @static
  1710. */
  1711. public static function userResolver()
  1712. {
  1713. /** @var \Illuminate\Auth\AuthManager $instance */
  1714. return $instance->userResolver();
  1715. }
  1716. /**
  1717. * Set the callback to be used to resolve users.
  1718. *
  1719. * @param \Closure $userResolver
  1720. * @return \Illuminate\Auth\AuthManager
  1721. * @static
  1722. */
  1723. public static function resolveUsersUsing($userResolver)
  1724. {
  1725. /** @var \Illuminate\Auth\AuthManager $instance */
  1726. return $instance->resolveUsersUsing($userResolver);
  1727. }
  1728. /**
  1729. * Register a custom driver creator Closure.
  1730. *
  1731. * @param string $driver
  1732. * @param \Closure $callback
  1733. * @return \Illuminate\Auth\AuthManager
  1734. * @static
  1735. */
  1736. public static function extend($driver, $callback)
  1737. {
  1738. /** @var \Illuminate\Auth\AuthManager $instance */
  1739. return $instance->extend($driver, $callback);
  1740. }
  1741. /**
  1742. * Register a custom provider creator Closure.
  1743. *
  1744. * @param string $name
  1745. * @param \Closure $callback
  1746. * @return \Illuminate\Auth\AuthManager
  1747. * @static
  1748. */
  1749. public static function provider($name, $callback)
  1750. {
  1751. /** @var \Illuminate\Auth\AuthManager $instance */
  1752. return $instance->provider($name, $callback);
  1753. }
  1754. /**
  1755. * Determines if any guards have already been resolved.
  1756. *
  1757. * @return bool
  1758. * @static
  1759. */
  1760. public static function hasResolvedGuards()
  1761. {
  1762. /** @var \Illuminate\Auth\AuthManager $instance */
  1763. return $instance->hasResolvedGuards();
  1764. }
  1765. /**
  1766. * Forget all of the resolved guard instances.
  1767. *
  1768. * @return \Illuminate\Auth\AuthManager
  1769. * @static
  1770. */
  1771. public static function forgetGuards()
  1772. {
  1773. /** @var \Illuminate\Auth\AuthManager $instance */
  1774. return $instance->forgetGuards();
  1775. }
  1776. /**
  1777. * Set the application instance used by the manager.
  1778. *
  1779. * @param \Illuminate\Contracts\Foundation\Application $app
  1780. * @return \Illuminate\Auth\AuthManager
  1781. * @static
  1782. */
  1783. public static function setApplication($app)
  1784. {
  1785. /** @var \Illuminate\Auth\AuthManager $instance */
  1786. return $instance->setApplication($app);
  1787. }
  1788. /**
  1789. * Create the user provider implementation for the driver.
  1790. *
  1791. * @param string|null $provider
  1792. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1793. * @throws \InvalidArgumentException
  1794. * @static
  1795. */
  1796. public static function createUserProvider($provider = null)
  1797. {
  1798. /** @var \Illuminate\Auth\AuthManager $instance */
  1799. return $instance->createUserProvider($provider);
  1800. }
  1801. /**
  1802. * Get the default user provider name.
  1803. *
  1804. * @return string
  1805. * @static
  1806. */
  1807. public static function getDefaultUserProvider()
  1808. {
  1809. /** @var \Illuminate\Auth\AuthManager $instance */
  1810. return $instance->getDefaultUserProvider();
  1811. }
  1812. /**
  1813. * Get the currently authenticated user.
  1814. *
  1815. * @return \App\Models\User|null
  1816. * @static
  1817. */
  1818. public static function user()
  1819. {
  1820. /** @var \Illuminate\Auth\SessionGuard $instance */
  1821. return $instance->user();
  1822. }
  1823. /**
  1824. * Get the ID for the currently authenticated user.
  1825. *
  1826. * @return int|string|null
  1827. * @static
  1828. */
  1829. public static function id()
  1830. {
  1831. /** @var \Illuminate\Auth\SessionGuard $instance */
  1832. return $instance->id();
  1833. }
  1834. /**
  1835. * Log a user into the application without sessions or cookies.
  1836. *
  1837. * @param array $credentials
  1838. * @return bool
  1839. * @static
  1840. */
  1841. public static function once($credentials = [])
  1842. {
  1843. /** @var \Illuminate\Auth\SessionGuard $instance */
  1844. return $instance->once($credentials);
  1845. }
  1846. /**
  1847. * Log the given user ID into the application without sessions or cookies.
  1848. *
  1849. * @param mixed $id
  1850. * @return \App\Models\User|false
  1851. * @static
  1852. */
  1853. public static function onceUsingId($id)
  1854. {
  1855. /** @var \Illuminate\Auth\SessionGuard $instance */
  1856. return $instance->onceUsingId($id);
  1857. }
  1858. /**
  1859. * Validate a user's credentials.
  1860. *
  1861. * @param array $credentials
  1862. * @return bool
  1863. * @static
  1864. */
  1865. public static function validate($credentials = [])
  1866. {
  1867. /** @var \Illuminate\Auth\SessionGuard $instance */
  1868. return $instance->validate($credentials);
  1869. }
  1870. /**
  1871. * Attempt to authenticate using HTTP Basic Auth.
  1872. *
  1873. * @param string $field
  1874. * @param array $extraConditions
  1875. * @return \Symfony\Component\HttpFoundation\Response|null
  1876. * @static
  1877. */
  1878. public static function basic($field = 'email', $extraConditions = [])
  1879. {
  1880. /** @var \Illuminate\Auth\SessionGuard $instance */
  1881. return $instance->basic($field, $extraConditions);
  1882. }
  1883. /**
  1884. * Perform a stateless HTTP Basic login attempt.
  1885. *
  1886. * @param string $field
  1887. * @param array $extraConditions
  1888. * @return \Symfony\Component\HttpFoundation\Response|null
  1889. * @static
  1890. */
  1891. public static function onceBasic($field = 'email', $extraConditions = [])
  1892. {
  1893. /** @var \Illuminate\Auth\SessionGuard $instance */
  1894. return $instance->onceBasic($field, $extraConditions);
  1895. }
  1896. /**
  1897. * Attempt to authenticate a user using the given credentials.
  1898. *
  1899. * @param array $credentials
  1900. * @param bool $remember
  1901. * @return bool
  1902. * @static
  1903. */
  1904. public static function attempt($credentials = [], $remember = false)
  1905. {
  1906. /** @var \Illuminate\Auth\SessionGuard $instance */
  1907. return $instance->attempt($credentials, $remember);
  1908. }
  1909. /**
  1910. * Attempt to authenticate a user with credentials and additional callbacks.
  1911. *
  1912. * @param array $credentials
  1913. * @param array|callable $callbacks
  1914. * @param false $remember
  1915. * @return bool
  1916. * @static
  1917. */
  1918. public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
  1919. {
  1920. /** @var \Illuminate\Auth\SessionGuard $instance */
  1921. return $instance->attemptWhen($credentials, $callbacks, $remember);
  1922. }
  1923. /**
  1924. * Log the given user ID into the application.
  1925. *
  1926. * @param mixed $id
  1927. * @param bool $remember
  1928. * @return \App\Models\User|false
  1929. * @static
  1930. */
  1931. public static function loginUsingId($id, $remember = false)
  1932. {
  1933. /** @var \Illuminate\Auth\SessionGuard $instance */
  1934. return $instance->loginUsingId($id, $remember);
  1935. }
  1936. /**
  1937. * Log a user into the application.
  1938. *
  1939. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1940. * @param bool $remember
  1941. * @return void
  1942. * @static
  1943. */
  1944. public static function login($user, $remember = false)
  1945. {
  1946. /** @var \Illuminate\Auth\SessionGuard $instance */
  1947. $instance->login($user, $remember);
  1948. }
  1949. /**
  1950. * Log the user out of the application.
  1951. *
  1952. * @return void
  1953. * @static
  1954. */
  1955. public static function logout()
  1956. {
  1957. /** @var \Illuminate\Auth\SessionGuard $instance */
  1958. $instance->logout();
  1959. }
  1960. /**
  1961. * Log the user out of the application on their current device only.
  1962. *
  1963. * This method does not cycle the "remember" token.
  1964. *
  1965. * @return void
  1966. * @static
  1967. */
  1968. public static function logoutCurrentDevice()
  1969. {
  1970. /** @var \Illuminate\Auth\SessionGuard $instance */
  1971. $instance->logoutCurrentDevice();
  1972. }
  1973. /**
  1974. * Invalidate other sessions for the current user.
  1975. *
  1976. * The application must be using the AuthenticateSession middleware.
  1977. *
  1978. * @param string $password
  1979. * @param string $attribute
  1980. * @return \App\Models\User|null
  1981. * @throws \Illuminate\Auth\AuthenticationException
  1982. * @static
  1983. */
  1984. public static function logoutOtherDevices($password, $attribute = 'password')
  1985. {
  1986. /** @var \Illuminate\Auth\SessionGuard $instance */
  1987. return $instance->logoutOtherDevices($password, $attribute);
  1988. }
  1989. /**
  1990. * Register an authentication attempt event listener.
  1991. *
  1992. * @param mixed $callback
  1993. * @return void
  1994. * @static
  1995. */
  1996. public static function attempting($callback)
  1997. {
  1998. /** @var \Illuminate\Auth\SessionGuard $instance */
  1999. $instance->attempting($callback);
  2000. }
  2001. /**
  2002. * Get the last user we attempted to authenticate.
  2003. *
  2004. * @return \App\Models\User
  2005. * @static
  2006. */
  2007. public static function getLastAttempted()
  2008. {
  2009. /** @var \Illuminate\Auth\SessionGuard $instance */
  2010. return $instance->getLastAttempted();
  2011. }
  2012. /**
  2013. * Get a unique identifier for the auth session value.
  2014. *
  2015. * @return string
  2016. * @static
  2017. */
  2018. public static function getName()
  2019. {
  2020. /** @var \Illuminate\Auth\SessionGuard $instance */
  2021. return $instance->getName();
  2022. }
  2023. /**
  2024. * Get the name of the cookie used to store the "recaller".
  2025. *
  2026. * @return string
  2027. * @static
  2028. */
  2029. public static function getRecallerName()
  2030. {
  2031. /** @var \Illuminate\Auth\SessionGuard $instance */
  2032. return $instance->getRecallerName();
  2033. }
  2034. /**
  2035. * Determine if the user was authenticated via "remember me" cookie.
  2036. *
  2037. * @return bool
  2038. * @static
  2039. */
  2040. public static function viaRemember()
  2041. {
  2042. /** @var \Illuminate\Auth\SessionGuard $instance */
  2043. return $instance->viaRemember();
  2044. }
  2045. /**
  2046. * Set the number of minutes the remember me cookie should be valid for.
  2047. *
  2048. * @param int $minutes
  2049. * @return \Illuminate\Auth\SessionGuard
  2050. * @static
  2051. */
  2052. public static function setRememberDuration($minutes)
  2053. {
  2054. /** @var \Illuminate\Auth\SessionGuard $instance */
  2055. return $instance->setRememberDuration($minutes);
  2056. }
  2057. /**
  2058. * Get the cookie creator instance used by the guard.
  2059. *
  2060. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  2061. * @throws \RuntimeException
  2062. * @static
  2063. */
  2064. public static function getCookieJar()
  2065. {
  2066. /** @var \Illuminate\Auth\SessionGuard $instance */
  2067. return $instance->getCookieJar();
  2068. }
  2069. /**
  2070. * Set the cookie creator instance used by the guard.
  2071. *
  2072. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  2073. * @return void
  2074. * @static
  2075. */
  2076. public static function setCookieJar($cookie)
  2077. {
  2078. /** @var \Illuminate\Auth\SessionGuard $instance */
  2079. $instance->setCookieJar($cookie);
  2080. }
  2081. /**
  2082. * Get the event dispatcher instance.
  2083. *
  2084. * @return \Illuminate\Contracts\Events\Dispatcher
  2085. * @static
  2086. */
  2087. public static function getDispatcher()
  2088. {
  2089. /** @var \Illuminate\Auth\SessionGuard $instance */
  2090. return $instance->getDispatcher();
  2091. }
  2092. /**
  2093. * Set the event dispatcher instance.
  2094. *
  2095. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2096. * @return void
  2097. * @static
  2098. */
  2099. public static function setDispatcher($events)
  2100. {
  2101. /** @var \Illuminate\Auth\SessionGuard $instance */
  2102. $instance->setDispatcher($events);
  2103. }
  2104. /**
  2105. * Get the session store used by the guard.
  2106. *
  2107. * @return \Illuminate\Contracts\Session\Session
  2108. * @static
  2109. */
  2110. public static function getSession()
  2111. {
  2112. /** @var \Illuminate\Auth\SessionGuard $instance */
  2113. return $instance->getSession();
  2114. }
  2115. /**
  2116. * Return the currently cached user.
  2117. *
  2118. * @return \App\Models\User|null
  2119. * @static
  2120. */
  2121. public static function getUser()
  2122. {
  2123. /** @var \Illuminate\Auth\SessionGuard $instance */
  2124. return $instance->getUser();
  2125. }
  2126. /**
  2127. * Set the current user.
  2128. *
  2129. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2130. * @return \Illuminate\Auth\SessionGuard
  2131. * @static
  2132. */
  2133. public static function setUser($user)
  2134. {
  2135. /** @var \Illuminate\Auth\SessionGuard $instance */
  2136. return $instance->setUser($user);
  2137. }
  2138. /**
  2139. * Get the current request instance.
  2140. *
  2141. * @return \Symfony\Component\HttpFoundation\Request
  2142. * @static
  2143. */
  2144. public static function getRequest()
  2145. {
  2146. /** @var \Illuminate\Auth\SessionGuard $instance */
  2147. return $instance->getRequest();
  2148. }
  2149. /**
  2150. * Set the current request instance.
  2151. *
  2152. * @param \Symfony\Component\HttpFoundation\Request $request
  2153. * @return \Illuminate\Auth\SessionGuard
  2154. * @static
  2155. */
  2156. public static function setRequest($request)
  2157. {
  2158. /** @var \Illuminate\Auth\SessionGuard $instance */
  2159. return $instance->setRequest($request);
  2160. }
  2161. /**
  2162. * Get the timebox instance used by the guard.
  2163. *
  2164. * @return \Illuminate\Support\Timebox
  2165. * @static
  2166. */
  2167. public static function getTimebox()
  2168. {
  2169. /** @var \Illuminate\Auth\SessionGuard $instance */
  2170. return $instance->getTimebox();
  2171. }
  2172. /**
  2173. * Determine if the current user is authenticated. If not, throw an exception.
  2174. *
  2175. * @return \App\Models\User
  2176. * @throws \Illuminate\Auth\AuthenticationException
  2177. * @static
  2178. */
  2179. public static function authenticate()
  2180. {
  2181. /** @var \Illuminate\Auth\SessionGuard $instance */
  2182. return $instance->authenticate();
  2183. }
  2184. /**
  2185. * Determine if the guard has a user instance.
  2186. *
  2187. * @return bool
  2188. * @static
  2189. */
  2190. public static function hasUser()
  2191. {
  2192. /** @var \Illuminate\Auth\SessionGuard $instance */
  2193. return $instance->hasUser();
  2194. }
  2195. /**
  2196. * Determine if the current user is authenticated.
  2197. *
  2198. * @return bool
  2199. * @static
  2200. */
  2201. public static function check()
  2202. {
  2203. /** @var \Illuminate\Auth\SessionGuard $instance */
  2204. return $instance->check();
  2205. }
  2206. /**
  2207. * Determine if the current user is a guest.
  2208. *
  2209. * @return bool
  2210. * @static
  2211. */
  2212. public static function guest()
  2213. {
  2214. /** @var \Illuminate\Auth\SessionGuard $instance */
  2215. return $instance->guest();
  2216. }
  2217. /**
  2218. * Get the user provider used by the guard.
  2219. *
  2220. * @return \Illuminate\Contracts\Auth\UserProvider
  2221. * @static
  2222. */
  2223. public static function getProvider()
  2224. {
  2225. /** @var \Illuminate\Auth\SessionGuard $instance */
  2226. return $instance->getProvider();
  2227. }
  2228. /**
  2229. * Set the user provider used by the guard.
  2230. *
  2231. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2232. * @return void
  2233. * @static
  2234. */
  2235. public static function setProvider($provider)
  2236. {
  2237. /** @var \Illuminate\Auth\SessionGuard $instance */
  2238. $instance->setProvider($provider);
  2239. }
  2240. /**
  2241. * Register a custom macro.
  2242. *
  2243. * @param string $name
  2244. * @param object|callable $macro
  2245. * @return void
  2246. * @static
  2247. */
  2248. public static function macro($name, $macro)
  2249. {
  2250. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2251. }
  2252. /**
  2253. * Mix another object into the class.
  2254. *
  2255. * @param object $mixin
  2256. * @param bool $replace
  2257. * @return void
  2258. * @throws \ReflectionException
  2259. * @static
  2260. */
  2261. public static function mixin($mixin, $replace = true)
  2262. {
  2263. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2264. }
  2265. /**
  2266. * Checks if macro is registered.
  2267. *
  2268. * @param string $name
  2269. * @return bool
  2270. * @static
  2271. */
  2272. public static function hasMacro($name)
  2273. {
  2274. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2275. }
  2276. /**
  2277. * Flush the existing macros.
  2278. *
  2279. * @return void
  2280. * @static
  2281. */
  2282. public static function flushMacros()
  2283. {
  2284. \Illuminate\Auth\SessionGuard::flushMacros();
  2285. }
  2286. }
  2287. /**
  2288. * @see \Illuminate\View\Compilers\BladeCompiler
  2289. */
  2290. class Blade {
  2291. /**
  2292. * Compile the view at the given path.
  2293. *
  2294. * @param string|null $path
  2295. * @return void
  2296. * @static
  2297. */
  2298. public static function compile($path = null)
  2299. {
  2300. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2301. $instance->compile($path);
  2302. }
  2303. /**
  2304. * Get the path currently being compiled.
  2305. *
  2306. * @return string
  2307. * @static
  2308. */
  2309. public static function getPath()
  2310. {
  2311. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2312. return $instance->getPath();
  2313. }
  2314. /**
  2315. * Set the path currently being compiled.
  2316. *
  2317. * @param string $path
  2318. * @return void
  2319. * @static
  2320. */
  2321. public static function setPath($path)
  2322. {
  2323. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2324. $instance->setPath($path);
  2325. }
  2326. /**
  2327. * Compile the given Blade template contents.
  2328. *
  2329. * @param string $value
  2330. * @return string
  2331. * @static
  2332. */
  2333. public static function compileString($value)
  2334. {
  2335. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2336. return $instance->compileString($value);
  2337. }
  2338. /**
  2339. * Evaluate and render a Blade string to HTML.
  2340. *
  2341. * @param string $string
  2342. * @param array $data
  2343. * @param bool $deleteCachedView
  2344. * @return string
  2345. * @static
  2346. */
  2347. public static function render($string, $data = [], $deleteCachedView = false)
  2348. {
  2349. return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
  2350. }
  2351. /**
  2352. * Render a component instance to HTML.
  2353. *
  2354. * @param \Illuminate\View\Component $component
  2355. * @return string
  2356. * @static
  2357. */
  2358. public static function renderComponent($component)
  2359. {
  2360. return \Illuminate\View\Compilers\BladeCompiler::renderComponent($component);
  2361. }
  2362. /**
  2363. * Strip the parentheses from the given expression.
  2364. *
  2365. * @param string $expression
  2366. * @return string
  2367. * @static
  2368. */
  2369. public static function stripParentheses($expression)
  2370. {
  2371. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2372. return $instance->stripParentheses($expression);
  2373. }
  2374. /**
  2375. * Register a custom Blade compiler.
  2376. *
  2377. * @param callable $compiler
  2378. * @return void
  2379. * @static
  2380. */
  2381. public static function extend($compiler)
  2382. {
  2383. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2384. $instance->extend($compiler);
  2385. }
  2386. /**
  2387. * Get the extensions used by the compiler.
  2388. *
  2389. * @return array
  2390. * @static
  2391. */
  2392. public static function getExtensions()
  2393. {
  2394. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2395. return $instance->getExtensions();
  2396. }
  2397. /**
  2398. * Register an "if" statement directive.
  2399. *
  2400. * @param string $name
  2401. * @param callable $callback
  2402. * @return void
  2403. * @static
  2404. */
  2405. public static function if($name, $callback)
  2406. {
  2407. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2408. $instance->if($name, $callback);
  2409. }
  2410. /**
  2411. * Check the result of a condition.
  2412. *
  2413. * @param string $name
  2414. * @param array $parameters
  2415. * @return bool
  2416. * @static
  2417. */
  2418. public static function check($name, ...$parameters)
  2419. {
  2420. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2421. return $instance->check($name, ...$parameters);
  2422. }
  2423. /**
  2424. * Register a class-based component alias directive.
  2425. *
  2426. * @param string $class
  2427. * @param string|null $alias
  2428. * @param string $prefix
  2429. * @return void
  2430. * @static
  2431. */
  2432. public static function component($class, $alias = null, $prefix = '')
  2433. {
  2434. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2435. $instance->component($class, $alias, $prefix);
  2436. }
  2437. /**
  2438. * Register an array of class-based components.
  2439. *
  2440. * @param array $components
  2441. * @param string $prefix
  2442. * @return void
  2443. * @static
  2444. */
  2445. public static function components($components, $prefix = '')
  2446. {
  2447. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2448. $instance->components($components, $prefix);
  2449. }
  2450. /**
  2451. * Get the registered class component aliases.
  2452. *
  2453. * @return array
  2454. * @static
  2455. */
  2456. public static function getClassComponentAliases()
  2457. {
  2458. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2459. return $instance->getClassComponentAliases();
  2460. }
  2461. /**
  2462. * Register a class-based component namespace.
  2463. *
  2464. * @param string $namespace
  2465. * @param string $prefix
  2466. * @return void
  2467. * @static
  2468. */
  2469. public static function componentNamespace($namespace, $prefix)
  2470. {
  2471. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2472. $instance->componentNamespace($namespace, $prefix);
  2473. }
  2474. /**
  2475. * Get the registered class component namespaces.
  2476. *
  2477. * @return array
  2478. * @static
  2479. */
  2480. public static function getClassComponentNamespaces()
  2481. {
  2482. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2483. return $instance->getClassComponentNamespaces();
  2484. }
  2485. /**
  2486. * Register a component alias directive.
  2487. *
  2488. * @param string $path
  2489. * @param string|null $alias
  2490. * @return void
  2491. * @static
  2492. */
  2493. public static function aliasComponent($path, $alias = null)
  2494. {
  2495. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2496. $instance->aliasComponent($path, $alias);
  2497. }
  2498. /**
  2499. * Register an include alias directive.
  2500. *
  2501. * @param string $path
  2502. * @param string|null $alias
  2503. * @return void
  2504. * @static
  2505. */
  2506. public static function include($path, $alias = null)
  2507. {
  2508. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2509. $instance->include($path, $alias);
  2510. }
  2511. /**
  2512. * Register an include alias directive.
  2513. *
  2514. * @param string $path
  2515. * @param string|null $alias
  2516. * @return void
  2517. * @static
  2518. */
  2519. public static function aliasInclude($path, $alias = null)
  2520. {
  2521. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2522. $instance->aliasInclude($path, $alias);
  2523. }
  2524. /**
  2525. * Register a handler for custom directives.
  2526. *
  2527. * @param string $name
  2528. * @param callable $handler
  2529. * @return void
  2530. * @throws \InvalidArgumentException
  2531. * @static
  2532. */
  2533. public static function directive($name, $handler)
  2534. {
  2535. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2536. $instance->directive($name, $handler);
  2537. }
  2538. /**
  2539. * Get the list of custom directives.
  2540. *
  2541. * @return array
  2542. * @static
  2543. */
  2544. public static function getCustomDirectives()
  2545. {
  2546. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2547. return $instance->getCustomDirectives();
  2548. }
  2549. /**
  2550. * Register a new precompiler.
  2551. *
  2552. * @param callable $precompiler
  2553. * @return void
  2554. * @static
  2555. */
  2556. public static function precompiler($precompiler)
  2557. {
  2558. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2559. $instance->precompiler($precompiler);
  2560. }
  2561. /**
  2562. * Set the echo format to be used by the compiler.
  2563. *
  2564. * @param string $format
  2565. * @return void
  2566. * @static
  2567. */
  2568. public static function setEchoFormat($format)
  2569. {
  2570. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2571. $instance->setEchoFormat($format);
  2572. }
  2573. /**
  2574. * Set the "echo" format to double encode entities.
  2575. *
  2576. * @return void
  2577. * @static
  2578. */
  2579. public static function withDoubleEncoding()
  2580. {
  2581. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2582. $instance->withDoubleEncoding();
  2583. }
  2584. /**
  2585. * Set the "echo" format to not double encode entities.
  2586. *
  2587. * @return void
  2588. * @static
  2589. */
  2590. public static function withoutDoubleEncoding()
  2591. {
  2592. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2593. $instance->withoutDoubleEncoding();
  2594. }
  2595. /**
  2596. * Indicate that component tags should not be compiled.
  2597. *
  2598. * @return void
  2599. * @static
  2600. */
  2601. public static function withoutComponentTags()
  2602. {
  2603. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2604. $instance->withoutComponentTags();
  2605. }
  2606. /**
  2607. * Get the path to the compiled version of a view.
  2608. *
  2609. * @param string $path
  2610. * @return string
  2611. * @static
  2612. */
  2613. public static function getCompiledPath($path)
  2614. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2615. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2616. return $instance->getCompiledPath($path);
  2617. }
  2618. /**
  2619. * Determine if the view at the given path is expired.
  2620. *
  2621. * @param string $path
  2622. * @return bool
  2623. * @static
  2624. */
  2625. public static function isExpired($path)
  2626. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2627. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2628. return $instance->isExpired($path);
  2629. }
  2630. /**
  2631. * Get a new component hash for a component name.
  2632. *
  2633. * @param string $component
  2634. * @return string
  2635. * @static
  2636. */
  2637. public static function newComponentHash($component)
  2638. {
  2639. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2640. }
  2641. /**
  2642. * Compile a class component opening.
  2643. *
  2644. * @param string $component
  2645. * @param string $alias
  2646. * @param string $data
  2647. * @param string $hash
  2648. * @return string
  2649. * @static
  2650. */
  2651. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2652. {
  2653. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2654. }
  2655. /**
  2656. * Compile the end-component statements into valid PHP.
  2657. *
  2658. * @return string
  2659. * @static
  2660. */
  2661. public static function compileEndComponentClass()
  2662. {
  2663. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2664. return $instance->compileEndComponentClass();
  2665. }
  2666. /**
  2667. * Sanitize the given component attribute value.
  2668. *
  2669. * @param mixed $value
  2670. * @return mixed
  2671. * @static
  2672. */
  2673. public static function sanitizeComponentAttribute($value)
  2674. {
  2675. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2676. }
  2677. /**
  2678. * Compile an end-once block into valid PHP.
  2679. *
  2680. * @return string
  2681. * @static
  2682. */
  2683. public static function compileEndOnce()
  2684. {
  2685. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2686. return $instance->compileEndOnce();
  2687. }
  2688. /**
  2689. * Add a handler to be executed before echoing a given class.
  2690. *
  2691. * @param string|callable $class
  2692. * @param callable|null $handler
  2693. * @return void
  2694. * @static
  2695. */
  2696. public static function stringable($class, $handler = null)
  2697. {
  2698. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2699. $instance->stringable($class, $handler);
  2700. }
  2701. /**
  2702. * Compile Blade echos into valid PHP.
  2703. *
  2704. * @param string $value
  2705. * @return string
  2706. * @static
  2707. */
  2708. public static function compileEchos($value)
  2709. {
  2710. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2711. return $instance->compileEchos($value);
  2712. }
  2713. /**
  2714. * Apply the echo handler for the value if it exists.
  2715. *
  2716. * @param string $value
  2717. * @return string
  2718. * @static
  2719. */
  2720. public static function applyEchoHandler($value)
  2721. {
  2722. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2723. return $instance->applyEchoHandler($value);
  2724. }
  2725. }
  2726. /**
  2727. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2728. * @method static mixed auth(\Illuminate\Http\Request $request)
  2729. * @see \Illuminate\Contracts\Broadcasting\Factory
  2730. */
  2731. class Broadcast {
  2732. /**
  2733. * Register the routes for handling broadcast authentication and sockets.
  2734. *
  2735. * @param array|null $attributes
  2736. * @return void
  2737. * @static
  2738. */
  2739. public static function routes($attributes = null)
  2740. {
  2741. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2742. $instance->routes($attributes);
  2743. }
  2744. /**
  2745. * Get the socket ID for the given request.
  2746. *
  2747. * @param \Illuminate\Http\Request|null $request
  2748. * @return string|null
  2749. * @static
  2750. */
  2751. public static function socket($request = null)
  2752. {
  2753. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2754. return $instance->socket($request);
  2755. }
  2756. /**
  2757. * Begin broadcasting an event.
  2758. *
  2759. * @param mixed|null $event
  2760. * @return \Illuminate\Broadcasting\PendingBroadcast
  2761. * @static
  2762. */
  2763. public static function event($event = null)
  2764. {
  2765. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2766. return $instance->event($event);
  2767. }
  2768. /**
  2769. * Queue the given event for broadcast.
  2770. *
  2771. * @param mixed $event
  2772. * @return void
  2773. * @static
  2774. */
  2775. public static function queue($event)
  2776. {
  2777. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2778. $instance->queue($event);
  2779. }
  2780. /**
  2781. * Get a driver instance.
  2782. *
  2783. * @param string|null $driver
  2784. * @return mixed
  2785. * @static
  2786. */
  2787. public static function connection($driver = null)
  2788. {
  2789. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2790. return $instance->connection($driver);
  2791. }
  2792. /**
  2793. * Get a driver instance.
  2794. *
  2795. * @param string|null $name
  2796. * @return mixed
  2797. * @static
  2798. */
  2799. public static function driver($name = null)
  2800. {
  2801. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2802. return $instance->driver($name);
  2803. }
  2804. /**
  2805. * Get the default driver name.
  2806. *
  2807. * @return string
  2808. * @static
  2809. */
  2810. public static function getDefaultDriver()
  2811. {
  2812. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2813. return $instance->getDefaultDriver();
  2814. }
  2815. /**
  2816. * Set the default driver name.
  2817. *
  2818. * @param string $name
  2819. * @return void
  2820. * @static
  2821. */
  2822. public static function setDefaultDriver($name)
  2823. {
  2824. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2825. $instance->setDefaultDriver($name);
  2826. }
  2827. /**
  2828. * Disconnect the given disk and remove from local cache.
  2829. *
  2830. * @param string|null $name
  2831. * @return void
  2832. * @static
  2833. */
  2834. public static function purge($name = null)
  2835. {
  2836. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2837. $instance->purge($name);
  2838. }
  2839. /**
  2840. * Register a custom driver creator Closure.
  2841. *
  2842. * @param string $driver
  2843. * @param \Closure $callback
  2844. * @return \Illuminate\Broadcasting\BroadcastManager
  2845. * @static
  2846. */
  2847. public static function extend($driver, $callback)
  2848. {
  2849. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2850. return $instance->extend($driver, $callback);
  2851. }
  2852. /**
  2853. * Get the application instance used by the manager.
  2854. *
  2855. * @return \Illuminate\Contracts\Foundation\Application
  2856. * @static
  2857. */
  2858. public static function getApplication()
  2859. {
  2860. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2861. return $instance->getApplication();
  2862. }
  2863. /**
  2864. * Set the application instance used by the manager.
  2865. *
  2866. * @param \Illuminate\Contracts\Foundation\Application $app
  2867. * @return \Illuminate\Broadcasting\BroadcastManager
  2868. * @static
  2869. */
  2870. public static function setApplication($app)
  2871. {
  2872. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2873. return $instance->setApplication($app);
  2874. }
  2875. /**
  2876. * Forget all of the resolved driver instances.
  2877. *
  2878. * @return \Illuminate\Broadcasting\BroadcastManager
  2879. * @static
  2880. */
  2881. public static function forgetDrivers()
  2882. {
  2883. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2884. return $instance->forgetDrivers();
  2885. }
  2886. }
  2887. /**
  2888. * @see \Illuminate\Contracts\Bus\Dispatcher
  2889. */
  2890. class Bus {
  2891. /**
  2892. * Dispatch a command to its appropriate handler.
  2893. *
  2894. * @param mixed $command
  2895. * @return mixed
  2896. * @static
  2897. */
  2898. public static function dispatch($command)
  2899. {
  2900. /** @var \Illuminate\Bus\Dispatcher $instance */
  2901. return $instance->dispatch($command);
  2902. }
  2903. /**
  2904. * Dispatch a command to its appropriate handler in the current process.
  2905. *
  2906. * Queueable jobs will be dispatched to the "sync" queue.
  2907. *
  2908. * @param mixed $command
  2909. * @param mixed $handler
  2910. * @return mixed
  2911. * @static
  2912. */
  2913. public static function dispatchSync($command, $handler = null)
  2914. {
  2915. /** @var \Illuminate\Bus\Dispatcher $instance */
  2916. return $instance->dispatchSync($command, $handler);
  2917. }
  2918. /**
  2919. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  2920. *
  2921. * @param mixed $command
  2922. * @param mixed $handler
  2923. * @return mixed
  2924. * @static
  2925. */
  2926. public static function dispatchNow($command, $handler = null)
  2927. {
  2928. /** @var \Illuminate\Bus\Dispatcher $instance */
  2929. return $instance->dispatchNow($command, $handler);
  2930. }
  2931. /**
  2932. * Attempt to find the batch with the given ID.
  2933. *
  2934. * @param string $batchId
  2935. * @return \Illuminate\Bus\Batch|null
  2936. * @static
  2937. */
  2938. public static function findBatch($batchId)
  2939. {
  2940. /** @var \Illuminate\Bus\Dispatcher $instance */
  2941. return $instance->findBatch($batchId);
  2942. }
  2943. /**
  2944. * Create a new batch of queueable jobs.
  2945. *
  2946. * @param \Illuminate\Support\Collection|array|mixed $jobs
  2947. * @return \Illuminate\Bus\PendingBatch
  2948. * @static
  2949. */
  2950. public static function batch($jobs)
  2951. {
  2952. /** @var \Illuminate\Bus\Dispatcher $instance */
  2953. return $instance->batch($jobs);
  2954. }
  2955. /**
  2956. * Create a new chain of queueable jobs.
  2957. *
  2958. * @param \Illuminate\Support\Collection|array $jobs
  2959. * @return \Illuminate\Foundation\Bus\PendingChain
  2960. * @static
  2961. */
  2962. public static function chain($jobs)
  2963. {
  2964. /** @var \Illuminate\Bus\Dispatcher $instance */
  2965. return $instance->chain($jobs);
  2966. }
  2967. /**
  2968. * Determine if the given command has a handler.
  2969. *
  2970. * @param mixed $command
  2971. * @return bool
  2972. * @static
  2973. */
  2974. public static function hasCommandHandler($command)
  2975. {
  2976. /** @var \Illuminate\Bus\Dispatcher $instance */
  2977. return $instance->hasCommandHandler($command);
  2978. }
  2979. /**
  2980. * Retrieve the handler for a command.
  2981. *
  2982. * @param mixed $command
  2983. * @return bool|mixed
  2984. * @static
  2985. */
  2986. public static function getCommandHandler($command)
  2987. {
  2988. /** @var \Illuminate\Bus\Dispatcher $instance */
  2989. return $instance->getCommandHandler($command);
  2990. }
  2991. /**
  2992. * Dispatch a command to its appropriate handler behind a queue.
  2993. *
  2994. * @param mixed $command
  2995. * @return mixed
  2996. * @throws \RuntimeException
  2997. * @static
  2998. */
  2999. public static function dispatchToQueue($command)
  3000. {
  3001. /** @var \Illuminate\Bus\Dispatcher $instance */
  3002. return $instance->dispatchToQueue($command);
  3003. }
  3004. /**
  3005. * Dispatch a command to its appropriate handler after the current process.
  3006. *
  3007. * @param mixed $command
  3008. * @param mixed $handler
  3009. * @return void
  3010. * @static
  3011. */
  3012. public static function dispatchAfterResponse($command, $handler = null)
  3013. {
  3014. /** @var \Illuminate\Bus\Dispatcher $instance */
  3015. $instance->dispatchAfterResponse($command, $handler);
  3016. }
  3017. /**
  3018. * Set the pipes through which commands should be piped before dispatching.
  3019. *
  3020. * @param array $pipes
  3021. * @return \Illuminate\Bus\Dispatcher
  3022. * @static
  3023. */
  3024. public static function pipeThrough($pipes)
  3025. {
  3026. /** @var \Illuminate\Bus\Dispatcher $instance */
  3027. return $instance->pipeThrough($pipes);
  3028. }
  3029. /**
  3030. * Map a command to a handler.
  3031. *
  3032. * @param array $map
  3033. * @return \Illuminate\Bus\Dispatcher
  3034. * @static
  3035. */
  3036. public static function map($map)
  3037. {
  3038. /** @var \Illuminate\Bus\Dispatcher $instance */
  3039. return $instance->map($map);
  3040. }
  3041. /**
  3042. * Assert if a job was dispatched based on a truth-test callback.
  3043. *
  3044. * @param string|\Closure $command
  3045. * @param callable|int|null $callback
  3046. * @return void
  3047. * @static
  3048. */
  3049. public static function assertDispatched($command, $callback = null)
  3050. {
  3051. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3052. $instance->assertDispatched($command, $callback);
  3053. }
  3054. /**
  3055. * Assert if a job was pushed a number of times.
  3056. *
  3057. * @param string $command
  3058. * @param int $times
  3059. * @return void
  3060. * @static
  3061. */
  3062. public static function assertDispatchedTimes($command, $times = 1)
  3063. {
  3064. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3065. $instance->assertDispatchedTimes($command, $times);
  3066. }
  3067. /**
  3068. * Determine if a job was dispatched based on a truth-test callback.
  3069. *
  3070. * @param string|\Closure $command
  3071. * @param callable|null $callback
  3072. * @return void
  3073. * @static
  3074. */
  3075. public static function assertNotDispatched($command, $callback = null)
  3076. {
  3077. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3078. $instance->assertNotDispatched($command, $callback);
  3079. }
  3080. /**
  3081. * Assert that no jobs were dispatched.
  3082. *
  3083. * @return void
  3084. * @static
  3085. */
  3086. public static function assertNothingDispatched()
  3087. {
  3088. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3089. $instance->assertNothingDispatched();
  3090. }
  3091. /**
  3092. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3093. *
  3094. * @param string|\Closure $command
  3095. * @param callable|int|null $callback
  3096. * @return void
  3097. * @static
  3098. */
  3099. public static function assertDispatchedSync($command, $callback = null)
  3100. {
  3101. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3102. $instance->assertDispatchedSync($command, $callback);
  3103. }
  3104. /**
  3105. * Assert if a job was pushed synchronously a number of times.
  3106. *
  3107. * @param string $command
  3108. * @param int $times
  3109. * @return void
  3110. * @static
  3111. */
  3112. public static function assertDispatchedSyncTimes($command, $times = 1)
  3113. {
  3114. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3115. $instance->assertDispatchedSyncTimes($command, $times);
  3116. }
  3117. /**
  3118. * Determine if a job was dispatched based on a truth-test callback.
  3119. *
  3120. * @param string|\Closure $command
  3121. * @param callable|null $callback
  3122. * @return void
  3123. * @static
  3124. */
  3125. public static function assertNotDispatchedSync($command, $callback = null)
  3126. {
  3127. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3128. $instance->assertNotDispatchedSync($command, $callback);
  3129. }
  3130. /**
  3131. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3132. *
  3133. * @param string|\Closure $command
  3134. * @param callable|int|null $callback
  3135. * @return void
  3136. * @static
  3137. */
  3138. public static function assertDispatchedAfterResponse($command, $callback = null)
  3139. {
  3140. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3141. $instance->assertDispatchedAfterResponse($command, $callback);
  3142. }
  3143. /**
  3144. * Assert if a job was pushed after the response was sent a number of times.
  3145. *
  3146. * @param string $command
  3147. * @param int $times
  3148. * @return void
  3149. * @static
  3150. */
  3151. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3152. {
  3153. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3154. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3155. }
  3156. /**
  3157. * Determine if a job was dispatched based on a truth-test callback.
  3158. *
  3159. * @param string|\Closure $command
  3160. * @param callable|null $callback
  3161. * @return void
  3162. * @static
  3163. */
  3164. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3165. {
  3166. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3167. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3168. }
  3169. /**
  3170. * Assert if a chain of jobs was dispatched.
  3171. *
  3172. * @param array $expectedChain
  3173. * @return void
  3174. * @static
  3175. */
  3176. public static function assertChained($expectedChain)
  3177. {
  3178. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3179. $instance->assertChained($expectedChain);
  3180. }
  3181. /**
  3182. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3183. *
  3184. * @param string|\Closure $command
  3185. * @param callable|null $callback
  3186. * @return void
  3187. * @static
  3188. */
  3189. public static function assertDispatchedWithoutChain($command, $callback = null)
  3190. {
  3191. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3192. $instance->assertDispatchedWithoutChain($command, $callback);
  3193. }
  3194. /**
  3195. * Assert if a batch was dispatched based on a truth-test callback.
  3196. *
  3197. * @param callable $callback
  3198. * @return void
  3199. * @static
  3200. */
  3201. public static function assertBatched($callback)
  3202. {
  3203. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3204. $instance->assertBatched($callback);
  3205. }
  3206. /**
  3207. * Assert the number of batches that have been dispatched.
  3208. *
  3209. * @param int $count
  3210. * @return void
  3211. * @static
  3212. */
  3213. public static function assertBatchCount($count)
  3214. {
  3215. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3216. $instance->assertBatchCount($count);
  3217. }
  3218. /**
  3219. * Get all of the jobs matching a truth-test callback.
  3220. *
  3221. * @param string $command
  3222. * @param callable|null $callback
  3223. * @return \Illuminate\Support\Collection
  3224. * @static
  3225. */
  3226. public static function dispatched($command, $callback = null)
  3227. {
  3228. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3229. return $instance->dispatched($command, $callback);
  3230. }
  3231. /**
  3232. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3233. *
  3234. * @param string $command
  3235. * @param callable|null $callback
  3236. * @return \Illuminate\Support\Collection
  3237. * @static
  3238. */
  3239. public static function dispatchedSync($command, $callback = null)
  3240. {
  3241. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3242. return $instance->dispatchedSync($command, $callback);
  3243. }
  3244. /**
  3245. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3246. *
  3247. * @param string $command
  3248. * @param callable|null $callback
  3249. * @return \Illuminate\Support\Collection
  3250. * @static
  3251. */
  3252. public static function dispatchedAfterResponse($command, $callback = null)
  3253. {
  3254. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3255. return $instance->dispatchedAfterResponse($command, $callback);
  3256. }
  3257. /**
  3258. * Get all of the pending batches matching a truth-test callback.
  3259. *
  3260. * @param callable $callback
  3261. * @return \Illuminate\Support\Collection
  3262. * @static
  3263. */
  3264. public static function batched($callback)
  3265. {
  3266. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3267. return $instance->batched($callback);
  3268. }
  3269. /**
  3270. * Determine if there are any stored commands for a given class.
  3271. *
  3272. * @param string $command
  3273. * @return bool
  3274. * @static
  3275. */
  3276. public static function hasDispatched($command)
  3277. {
  3278. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3279. return $instance->hasDispatched($command);
  3280. }
  3281. /**
  3282. * Determine if there are any stored commands for a given class.
  3283. *
  3284. * @param string $command
  3285. * @return bool
  3286. * @static
  3287. */
  3288. public static function hasDispatchedSync($command)
  3289. {
  3290. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3291. return $instance->hasDispatchedSync($command);
  3292. }
  3293. /**
  3294. * Determine if there are any stored commands for a given class.
  3295. *
  3296. * @param string $command
  3297. * @return bool
  3298. * @static
  3299. */
  3300. public static function hasDispatchedAfterResponse($command)
  3301. {
  3302. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3303. return $instance->hasDispatchedAfterResponse($command);
  3304. }
  3305. /**
  3306. * Record the fake pending batch dispatch.
  3307. *
  3308. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  3309. * @return \Illuminate\Bus\Batch
  3310. * @static
  3311. */
  3312. public static function recordPendingBatch($pendingBatch)
  3313. {
  3314. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3315. return $instance->recordPendingBatch($pendingBatch);
  3316. }
  3317. }
  3318. /**
  3319. * @see \Illuminate\Cache\CacheManager
  3320. * @see \Illuminate\Cache\Repository
  3321. */
  3322. class Cache {
  3323. /**
  3324. * Get a cache store instance by name, wrapped in a repository.
  3325. *
  3326. * @param string|null $name
  3327. * @return \Illuminate\Contracts\Cache\Repository
  3328. * @static
  3329. */
  3330. public static function store($name = null)
  3331. {
  3332. /** @var \Illuminate\Cache\CacheManager $instance */
  3333. return $instance->store($name);
  3334. }
  3335. /**
  3336. * Get a cache driver instance.
  3337. *
  3338. * @param string|null $driver
  3339. * @return \Illuminate\Contracts\Cache\Repository
  3340. * @static
  3341. */
  3342. public static function driver($driver = null)
  3343. {
  3344. /** @var \Illuminate\Cache\CacheManager $instance */
  3345. return $instance->driver($driver);
  3346. }
  3347. /**
  3348. * Create a new cache repository with the given implementation.
  3349. *
  3350. * @param \Illuminate\Contracts\Cache\Store $store
  3351. * @return \Illuminate\Cache\Repository
  3352. * @static
  3353. */
  3354. public static function repository($store)
  3355. {
  3356. /** @var \Illuminate\Cache\CacheManager $instance */
  3357. return $instance->repository($store);
  3358. }
  3359. /**
  3360. * Re-set the event dispatcher on all resolved cache repositories.
  3361. *
  3362. * @return void
  3363. * @static
  3364. */
  3365. public static function refreshEventDispatcher()
  3366. {
  3367. /** @var \Illuminate\Cache\CacheManager $instance */
  3368. $instance->refreshEventDispatcher();
  3369. }
  3370. /**
  3371. * Get the default cache driver name.
  3372. *
  3373. * @return string
  3374. * @static
  3375. */
  3376. public static function getDefaultDriver()
  3377. {
  3378. /** @var \Illuminate\Cache\CacheManager $instance */
  3379. return $instance->getDefaultDriver();
  3380. }
  3381. /**
  3382. * Set the default cache driver name.
  3383. *
  3384. * @param string $name
  3385. * @return void
  3386. * @static
  3387. */
  3388. public static function setDefaultDriver($name)
  3389. {
  3390. /** @var \Illuminate\Cache\CacheManager $instance */
  3391. $instance->setDefaultDriver($name);
  3392. }
  3393. /**
  3394. * Unset the given driver instances.
  3395. *
  3396. * @param array|string|null $name
  3397. * @return \Illuminate\Cache\CacheManager
  3398. * @static
  3399. */
  3400. public static function forgetDriver($name = null)
  3401. {
  3402. /** @var \Illuminate\Cache\CacheManager $instance */
  3403. return $instance->forgetDriver($name);
  3404. }
  3405. /**
  3406. * Disconnect the given driver and remove from local cache.
  3407. *
  3408. * @param string|null $name
  3409. * @return void
  3410. * @static
  3411. */
  3412. public static function purge($name = null)
  3413. {
  3414. /** @var \Illuminate\Cache\CacheManager $instance */
  3415. $instance->purge($name);
  3416. }
  3417. /**
  3418. * Register a custom driver creator Closure.
  3419. *
  3420. * @param string $driver
  3421. * @param \Closure $callback
  3422. * @return \Illuminate\Cache\CacheManager
  3423. * @static
  3424. */
  3425. public static function extend($driver, $callback)
  3426. {
  3427. /** @var \Illuminate\Cache\CacheManager $instance */
  3428. return $instance->extend($driver, $callback);
  3429. }
  3430. /**
  3431. * Determine if an item exists in the cache.
  3432. *
  3433. * @param string $key
  3434. * @return bool
  3435. * @static
  3436. */
  3437. public static function has($key)
  3438. {
  3439. /** @var \Illuminate\Cache\Repository $instance */
  3440. return $instance->has($key);
  3441. }
  3442. /**
  3443. * Determine if an item doesn't exist in the cache.
  3444. *
  3445. * @param string $key
  3446. * @return bool
  3447. * @static
  3448. */
  3449. public static function missing($key)
  3450. {
  3451. /** @var \Illuminate\Cache\Repository $instance */
  3452. return $instance->missing($key);
  3453. }
  3454. /**
  3455. * Retrieve an item from the cache by key.
  3456. *
  3457. * @param string $key
  3458. * @param mixed $default
  3459. * @return mixed
  3460. * @static
  3461. */
  3462. public static function get($key, $default = null)
  3463. {
  3464. /** @var \Illuminate\Cache\Repository $instance */
  3465. return $instance->get($key, $default);
  3466. }
  3467. /**
  3468. * Retrieve multiple items from the cache by key.
  3469. *
  3470. * Items not found in the cache will have a null value.
  3471. *
  3472. * @param array $keys
  3473. * @return array
  3474. * @static
  3475. */
  3476. public static function many($keys)
  3477. {
  3478. /** @var \Illuminate\Cache\Repository $instance */
  3479. return $instance->many($keys);
  3480. }
  3481. /**
  3482. * Obtains multiple cache items by their unique keys.
  3483. *
  3484. * @return iterable
  3485. * @param iterable $keys A list of keys that can obtained in a single operation.
  3486. * @param mixed $default Default value to return for keys that do not exist.
  3487. * @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  3488. * @throws \Psr\SimpleCache\InvalidArgumentException
  3489. * MUST be thrown if $keys is neither an array nor a Traversable,
  3490. * or if any of the $keys are not a legal value.
  3491. * @static
  3492. */
  3493. public static function getMultiple($keys, $default = null)
  3494. {
  3495. /** @var \Illuminate\Cache\Repository $instance */
  3496. return $instance->getMultiple($keys, $default);
  3497. }
  3498. /**
  3499. * Retrieve an item from the cache and delete it.
  3500. *
  3501. * @param string $key
  3502. * @param mixed $default
  3503. * @return mixed
  3504. * @static
  3505. */
  3506. public static function pull($key, $default = null)
  3507. {
  3508. /** @var \Illuminate\Cache\Repository $instance */
  3509. return $instance->pull($key, $default);
  3510. }
  3511. /**
  3512. * Store an item in the cache.
  3513. *
  3514. * @param string $key
  3515. * @param mixed $value
  3516. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3517. * @return bool
  3518. * @static
  3519. */
  3520. public static function put($key, $value, $ttl = null)
  3521. {
  3522. /** @var \Illuminate\Cache\Repository $instance */
  3523. return $instance->put($key, $value, $ttl);
  3524. }
  3525. /**
  3526. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3527. *
  3528. * @return bool
  3529. * @param string $key The key of the item to store.
  3530. * @param mixed $value The value of the item to store, must be serializable.
  3531. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3532. * the driver supports TTL then the library may set a default value
  3533. * for it or let the driver take care of that.
  3534. * @return bool True on success and false on failure.
  3535. * @throws \Psr\SimpleCache\InvalidArgumentException
  3536. * MUST be thrown if the $key string is not a legal value.
  3537. * @static
  3538. */
  3539. public static function set($key, $value, $ttl = null)
  3540. {
  3541. /** @var \Illuminate\Cache\Repository $instance */
  3542. return $instance->set($key, $value, $ttl);
  3543. }
  3544. /**
  3545. * Store multiple items in the cache for a given number of seconds.
  3546. *
  3547. * @param array $values
  3548. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3549. * @return bool
  3550. * @static
  3551. */
  3552. public static function putMany($values, $ttl = null)
  3553. {
  3554. /** @var \Illuminate\Cache\Repository $instance */
  3555. return $instance->putMany($values, $ttl);
  3556. }
  3557. /**
  3558. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3559. *
  3560. * @return bool
  3561. * @param iterable $values A list of key => value pairs for a multiple-set operation.
  3562. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3563. * the driver supports TTL then the library may set a default value
  3564. * for it or let the driver take care of that.
  3565. * @return bool True on success and false on failure.
  3566. * @throws \Psr\SimpleCache\InvalidArgumentException
  3567. * MUST be thrown if $values is neither an array nor a Traversable,
  3568. * or if any of the $values are not a legal value.
  3569. * @static
  3570. */
  3571. public static function setMultiple($values, $ttl = null)
  3572. {
  3573. /** @var \Illuminate\Cache\Repository $instance */
  3574. return $instance->setMultiple($values, $ttl);
  3575. }
  3576. /**
  3577. * Store an item in the cache if the key does not exist.
  3578. *
  3579. * @param string $key
  3580. * @param mixed $value
  3581. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3582. * @return bool
  3583. * @static
  3584. */
  3585. public static function add($key, $value, $ttl = null)
  3586. {
  3587. /** @var \Illuminate\Cache\Repository $instance */
  3588. return $instance->add($key, $value, $ttl);
  3589. }
  3590. /**
  3591. * Increment the value of an item in the cache.
  3592. *
  3593. * @param string $key
  3594. * @param mixed $value
  3595. * @return int|bool
  3596. * @static
  3597. */
  3598. public static function increment($key, $value = 1)
  3599. {
  3600. /** @var \Illuminate\Cache\Repository $instance */
  3601. return $instance->increment($key, $value);
  3602. }
  3603. /**
  3604. * Decrement the value of an item in the cache.
  3605. *
  3606. * @param string $key
  3607. * @param mixed $value
  3608. * @return int|bool
  3609. * @static
  3610. */
  3611. public static function decrement($key, $value = 1)
  3612. {
  3613. /** @var \Illuminate\Cache\Repository $instance */
  3614. return $instance->decrement($key, $value);
  3615. }
  3616. /**
  3617. * Store an item in the cache indefinitely.
  3618. *
  3619. * @param string $key
  3620. * @param mixed $value
  3621. * @return bool
  3622. * @static
  3623. */
  3624. public static function forever($key, $value)
  3625. {
  3626. /** @var \Illuminate\Cache\Repository $instance */
  3627. return $instance->forever($key, $value);
  3628. }
  3629. /**
  3630. * Get an item from the cache, or execute the given Closure and store the result.
  3631. *
  3632. * @param string $key
  3633. * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
  3634. * @param \Closure $callback
  3635. * @return mixed
  3636. * @static
  3637. */
  3638. public static function remember($key, $ttl, $callback)
  3639. {
  3640. /** @var \Illuminate\Cache\Repository $instance */
  3641. return $instance->remember($key, $ttl, $callback);
  3642. }
  3643. /**
  3644. * Get an item from the cache, or execute the given Closure and store the result forever.
  3645. *
  3646. * @param string $key
  3647. * @param \Closure $callback
  3648. * @return mixed
  3649. * @static
  3650. */
  3651. public static function sear($key, $callback)
  3652. {
  3653. /** @var \Illuminate\Cache\Repository $instance */
  3654. return $instance->sear($key, $callback);
  3655. }
  3656. /**
  3657. * Get an item from the cache, or execute the given Closure and store the result forever.
  3658. *
  3659. * @param string $key
  3660. * @param \Closure $callback
  3661. * @return mixed
  3662. * @static
  3663. */
  3664. public static function rememberForever($key, $callback)
  3665. {
  3666. /** @var \Illuminate\Cache\Repository $instance */
  3667. return $instance->rememberForever($key, $callback);
  3668. }
  3669. /**
  3670. * Remove an item from the cache.
  3671. *
  3672. * @param string $key
  3673. * @return bool
  3674. * @static
  3675. */
  3676. public static function forget($key)
  3677. {
  3678. /** @var \Illuminate\Cache\Repository $instance */
  3679. return $instance->forget($key);
  3680. }
  3681. /**
  3682. * Delete an item from the cache by its unique key.
  3683. *
  3684. * @return bool
  3685. * @param string $key The unique cache key of the item to delete.
  3686. * @return bool True if the item was successfully removed. False if there was an error.
  3687. * @throws \Psr\SimpleCache\InvalidArgumentException
  3688. * MUST be thrown if the $key string is not a legal value.
  3689. * @static
  3690. */
  3691. public static function delete($key)
  3692. {
  3693. /** @var \Illuminate\Cache\Repository $instance */
  3694. return $instance->delete($key);
  3695. }
  3696. /**
  3697. * Deletes multiple cache items in a single operation.
  3698. *
  3699. * @return bool
  3700. * @param iterable $keys A list of string-based keys to be deleted.
  3701. * @return bool True if the items were successfully removed. False if there was an error.
  3702. * @throws \Psr\SimpleCache\InvalidArgumentException
  3703. * MUST be thrown if $keys is neither an array nor a Traversable,
  3704. * or if any of the $keys are not a legal value.
  3705. * @static
  3706. */
  3707. public static function deleteMultiple($keys)
  3708. {
  3709. /** @var \Illuminate\Cache\Repository $instance */
  3710. return $instance->deleteMultiple($keys);
  3711. }
  3712. /**
  3713. * Wipes clean the entire cache's keys.
  3714. *
  3715. * @return bool
  3716. * @return bool True on success and false on failure.
  3717. * @static
  3718. */
  3719. public static function clear()
  3720. {
  3721. /** @var \Illuminate\Cache\Repository $instance */
  3722. return $instance->clear();
  3723. }
  3724. /**
  3725. * Begin executing a new tags operation if the store supports it.
  3726. *
  3727. * @param array|mixed $names
  3728. * @return \Illuminate\Cache\TaggedCache
  3729. * @throws \BadMethodCallException
  3730. * @static
  3731. */
  3732. public static function tags($names)
  3733. {
  3734. /** @var \Illuminate\Cache\Repository $instance */
  3735. return $instance->tags($names);
  3736. }
  3737. /**
  3738. * Determine if the current store supports tags.
  3739. *
  3740. * @return bool
  3741. * @static
  3742. */
  3743. public static function supportsTags()
  3744. {
  3745. /** @var \Illuminate\Cache\Repository $instance */
  3746. return $instance->supportsTags();
  3747. }
  3748. /**
  3749. * Get the default cache time.
  3750. *
  3751. * @return int|null
  3752. * @static
  3753. */
  3754. public static function getDefaultCacheTime()
  3755. {
  3756. /** @var \Illuminate\Cache\Repository $instance */
  3757. return $instance->getDefaultCacheTime();
  3758. }
  3759. /**
  3760. * Set the default cache time in seconds.
  3761. *
  3762. * @param int|null $seconds
  3763. * @return \Illuminate\Cache\Repository
  3764. * @static
  3765. */
  3766. public static function setDefaultCacheTime($seconds)
  3767. {
  3768. /** @var \Illuminate\Cache\Repository $instance */
  3769. return $instance->setDefaultCacheTime($seconds);
  3770. }
  3771. /**
  3772. * Get the cache store implementation.
  3773. *
  3774. * @return \Illuminate\Contracts\Cache\Store
  3775. * @static
  3776. */
  3777. public static function getStore()
  3778. {
  3779. /** @var \Illuminate\Cache\Repository $instance */
  3780. return $instance->getStore();
  3781. }
  3782. /**
  3783. * Get the event dispatcher instance.
  3784. *
  3785. * @return \Illuminate\Contracts\Events\Dispatcher
  3786. * @static
  3787. */
  3788. public static function getEventDispatcher()
  3789. {
  3790. /** @var \Illuminate\Cache\Repository $instance */
  3791. return $instance->getEventDispatcher();
  3792. }
  3793. /**
  3794. * Set the event dispatcher instance.
  3795. *
  3796. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3797. * @return void
  3798. * @static
  3799. */
  3800. public static function setEventDispatcher($events)
  3801. {
  3802. /** @var \Illuminate\Cache\Repository $instance */
  3803. $instance->setEventDispatcher($events);
  3804. }
  3805. /**
  3806. * Determine if a cached value exists.
  3807. *
  3808. * @param string $key
  3809. * @return bool
  3810. * @static
  3811. */
  3812. public static function offsetExists($key)
  3813. {
  3814. /** @var \Illuminate\Cache\Repository $instance */
  3815. return $instance->offsetExists($key);
  3816. }
  3817. /**
  3818. * Retrieve an item from the cache by key.
  3819. *
  3820. * @param string $key
  3821. * @return mixed
  3822. * @static
  3823. */
  3824. public static function offsetGet($key)
  3825. {
  3826. /** @var \Illuminate\Cache\Repository $instance */
  3827. return $instance->offsetGet($key);
  3828. }
  3829. /**
  3830. * Store an item in the cache for the default time.
  3831. *
  3832. * @param string $key
  3833. * @param mixed $value
  3834. * @return void
  3835. * @static
  3836. */
  3837. public static function offsetSet($key, $value)
  3838. {
  3839. /** @var \Illuminate\Cache\Repository $instance */
  3840. $instance->offsetSet($key, $value);
  3841. }
  3842. /**
  3843. * Remove an item from the cache.
  3844. *
  3845. * @param string $key
  3846. * @return void
  3847. * @static
  3848. */
  3849. public static function offsetUnset($key)
  3850. {
  3851. /** @var \Illuminate\Cache\Repository $instance */
  3852. $instance->offsetUnset($key);
  3853. }
  3854. /**
  3855. * Register a custom macro.
  3856. *
  3857. * @param string $name
  3858. * @param object|callable $macro
  3859. * @return void
  3860. * @static
  3861. */
  3862. public static function macro($name, $macro)
  3863. {
  3864. \Illuminate\Cache\Repository::macro($name, $macro);
  3865. }
  3866. /**
  3867. * Mix another object into the class.
  3868. *
  3869. * @param object $mixin
  3870. * @param bool $replace
  3871. * @return void
  3872. * @throws \ReflectionException
  3873. * @static
  3874. */
  3875. public static function mixin($mixin, $replace = true)
  3876. {
  3877. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3878. }
  3879. /**
  3880. * Checks if macro is registered.
  3881. *
  3882. * @param string $name
  3883. * @return bool
  3884. * @static
  3885. */
  3886. public static function hasMacro($name)
  3887. {
  3888. return \Illuminate\Cache\Repository::hasMacro($name);
  3889. }
  3890. /**
  3891. * Flush the existing macros.
  3892. *
  3893. * @return void
  3894. * @static
  3895. */
  3896. public static function flushMacros()
  3897. {
  3898. \Illuminate\Cache\Repository::flushMacros();
  3899. }
  3900. /**
  3901. * Dynamically handle calls to the class.
  3902. *
  3903. * @param string $method
  3904. * @param array $parameters
  3905. * @return mixed
  3906. * @throws \BadMethodCallException
  3907. * @static
  3908. */
  3909. public static function macroCall($method, $parameters)
  3910. {
  3911. /** @var \Illuminate\Cache\Repository $instance */
  3912. return $instance->macroCall($method, $parameters);
  3913. }
  3914. /**
  3915. * Remove all items from the cache.
  3916. *
  3917. * @return bool
  3918. * @static
  3919. */
  3920. public static function flush()
  3921. {
  3922. /** @var \Illuminate\Cache\FileStore $instance */
  3923. return $instance->flush();
  3924. }
  3925. /**
  3926. * Get the Filesystem instance.
  3927. *
  3928. * @return \Illuminate\Filesystem\Filesystem
  3929. * @static
  3930. */
  3931. public static function getFilesystem()
  3932. {
  3933. /** @var \Illuminate\Cache\FileStore $instance */
  3934. return $instance->getFilesystem();
  3935. }
  3936. /**
  3937. * Get the working directory of the cache.
  3938. *
  3939. * @return string
  3940. * @static
  3941. */
  3942. public static function getDirectory()
  3943. {
  3944. /** @var \Illuminate\Cache\FileStore $instance */
  3945. return $instance->getDirectory();
  3946. }
  3947. /**
  3948. * Get the cache key prefix.
  3949. *
  3950. * @return string
  3951. * @static
  3952. */
  3953. public static function getPrefix()
  3954. {
  3955. /** @var \Illuminate\Cache\FileStore $instance */
  3956. return $instance->getPrefix();
  3957. }
  3958. /**
  3959. * Get a lock instance.
  3960. *
  3961. * @param string $name
  3962. * @param int $seconds
  3963. * @param string|null $owner
  3964. * @return \Illuminate\Contracts\Cache\Lock
  3965. * @static
  3966. */
  3967. public static function lock($name, $seconds = 0, $owner = null)
  3968. {
  3969. /** @var \Illuminate\Cache\FileStore $instance */
  3970. return $instance->lock($name, $seconds, $owner);
  3971. }
  3972. /**
  3973. * Restore a lock instance using the owner identifier.
  3974. *
  3975. * @param string $name
  3976. * @param string $owner
  3977. * @return \Illuminate\Contracts\Cache\Lock
  3978. * @static
  3979. */
  3980. public static function restoreLock($name, $owner)
  3981. {
  3982. /** @var \Illuminate\Cache\FileStore $instance */
  3983. return $instance->restoreLock($name, $owner);
  3984. }
  3985. }
  3986. /**
  3987. * @see \Illuminate\Config\Repository
  3988. */
  3989. class Config {
  3990. /**
  3991. * Determine if the given configuration value exists.
  3992. *
  3993. * @param string $key
  3994. * @return bool
  3995. * @static
  3996. */
  3997. public static function has($key)
  3998. {
  3999. /** @var \Illuminate\Config\Repository $instance */
  4000. return $instance->has($key);
  4001. }
  4002. /**
  4003. * Get the specified configuration value.
  4004. *
  4005. * @param array|string $key
  4006. * @param mixed $default
  4007. * @return mixed
  4008. * @static
  4009. */
  4010. public static function get($key, $default = null)
  4011. {
  4012. /** @var \Illuminate\Config\Repository $instance */
  4013. return $instance->get($key, $default);
  4014. }
  4015. /**
  4016. * Get many configuration values.
  4017. *
  4018. * @param array $keys
  4019. * @return array
  4020. * @static
  4021. */
  4022. public static function getMany($keys)
  4023. {
  4024. /** @var \Illuminate\Config\Repository $instance */
  4025. return $instance->getMany($keys);
  4026. }
  4027. /**
  4028. * Set a given configuration value.
  4029. *
  4030. * @param array|string $key
  4031. * @param mixed $value
  4032. * @return void
  4033. * @static
  4034. */
  4035. public static function set($key, $value = null)
  4036. {
  4037. /** @var \Illuminate\Config\Repository $instance */
  4038. $instance->set($key, $value);
  4039. }
  4040. /**
  4041. * Prepend a value onto an array configuration value.
  4042. *
  4043. * @param string $key
  4044. * @param mixed $value
  4045. * @return void
  4046. * @static
  4047. */
  4048. public static function prepend($key, $value)
  4049. {
  4050. /** @var \Illuminate\Config\Repository $instance */
  4051. $instance->prepend($key, $value);
  4052. }
  4053. /**
  4054. * Push a value onto an array configuration value.
  4055. *
  4056. * @param string $key
  4057. * @param mixed $value
  4058. * @return void
  4059. * @static
  4060. */
  4061. public static function push($key, $value)
  4062. {
  4063. /** @var \Illuminate\Config\Repository $instance */
  4064. $instance->push($key, $value);
  4065. }
  4066. /**
  4067. * Get all of the configuration items for the application.
  4068. *
  4069. * @return array
  4070. * @static
  4071. */
  4072. public static function all()
  4073. {
  4074. /** @var \Illuminate\Config\Repository $instance */
  4075. return $instance->all();
  4076. }
  4077. /**
  4078. * Determine if the given configuration option exists.
  4079. *
  4080. * @param string $key
  4081. * @return bool
  4082. * @static
  4083. */
  4084. public static function offsetExists($key)
  4085. {
  4086. /** @var \Illuminate\Config\Repository $instance */
  4087. return $instance->offsetExists($key);
  4088. }
  4089. /**
  4090. * Get a configuration option.
  4091. *
  4092. * @param string $key
  4093. * @return mixed
  4094. * @static
  4095. */
  4096. public static function offsetGet($key)
  4097. {
  4098. /** @var \Illuminate\Config\Repository $instance */
  4099. return $instance->offsetGet($key);
  4100. }
  4101. /**
  4102. * Set a configuration option.
  4103. *
  4104. * @param string $key
  4105. * @param mixed $value
  4106. * @return void
  4107. * @static
  4108. */
  4109. public static function offsetSet($key, $value)
  4110. {
  4111. /** @var \Illuminate\Config\Repository $instance */
  4112. $instance->offsetSet($key, $value);
  4113. }
  4114. /**
  4115. * Unset a configuration option.
  4116. *
  4117. * @param string $key
  4118. * @return void
  4119. * @static
  4120. */
  4121. public static function offsetUnset($key)
  4122. {
  4123. /** @var \Illuminate\Config\Repository $instance */
  4124. $instance->offsetUnset($key);
  4125. }
  4126. }
  4127. /**
  4128. * @see \Illuminate\Cookie\CookieJar
  4129. */
  4130. class Cookie {
  4131. /**
  4132. * Create a new cookie instance.
  4133. *
  4134. * @param string $name
  4135. * @param string $value
  4136. * @param int $minutes
  4137. * @param string|null $path
  4138. * @param string|null $domain
  4139. * @param bool|null $secure
  4140. * @param bool $httpOnly
  4141. * @param bool $raw
  4142. * @param string|null $sameSite
  4143. * @return \Symfony\Component\HttpFoundation\Cookie
  4144. * @static
  4145. */
  4146. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4147. {
  4148. /** @var \Illuminate\Cookie\CookieJar $instance */
  4149. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4150. }
  4151. /**
  4152. * Create a cookie that lasts "forever" (five years).
  4153. *
  4154. * @param string $name
  4155. * @param string $value
  4156. * @param string|null $path
  4157. * @param string|null $domain
  4158. * @param bool|null $secure
  4159. * @param bool $httpOnly
  4160. * @param bool $raw
  4161. * @param string|null $sameSite
  4162. * @return \Symfony\Component\HttpFoundation\Cookie
  4163. * @static
  4164. */
  4165. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4166. {
  4167. /** @var \Illuminate\Cookie\CookieJar $instance */
  4168. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4169. }
  4170. /**
  4171. * Expire the given cookie.
  4172. *
  4173. * @param string $name
  4174. * @param string|null $path
  4175. * @param string|null $domain
  4176. * @return \Symfony\Component\HttpFoundation\Cookie
  4177. * @static
  4178. */
  4179. public static function forget($name, $path = null, $domain = null)
  4180. {
  4181. /** @var \Illuminate\Cookie\CookieJar $instance */
  4182. return $instance->forget($name, $path, $domain);
  4183. }
  4184. /**
  4185. * Determine if a cookie has been queued.
  4186. *
  4187. * @param string $key
  4188. * @param string|null $path
  4189. * @return bool
  4190. * @static
  4191. */
  4192. public static function hasQueued($key, $path = null)
  4193. {
  4194. /** @var \Illuminate\Cookie\CookieJar $instance */
  4195. return $instance->hasQueued($key, $path);
  4196. }
  4197. /**
  4198. * Get a queued cookie instance.
  4199. *
  4200. * @param string $key
  4201. * @param mixed $default
  4202. * @param string|null $path
  4203. * @return \Symfony\Component\HttpFoundation\Cookie|null
  4204. * @static
  4205. */
  4206. public static function queued($key, $default = null, $path = null)
  4207. {
  4208. /** @var \Illuminate\Cookie\CookieJar $instance */
  4209. return $instance->queued($key, $default, $path);
  4210. }
  4211. /**
  4212. * Queue a cookie to send with the next response.
  4213. *
  4214. * @param array $parameters
  4215. * @return void
  4216. * @static
  4217. */
  4218. public static function queue(...$parameters)
  4219. {
  4220. /** @var \Illuminate\Cookie\CookieJar $instance */
  4221. $instance->queue(...$parameters);
  4222. }
  4223. /**
  4224. * Queue a cookie to expire with the next response.
  4225. *
  4226. * @param string $name
  4227. * @param string|null $path
  4228. * @param string|null $domain
  4229. * @return void
  4230. * @static
  4231. */
  4232. public static function expire($name, $path = null, $domain = null)
  4233. {
  4234. /** @var \Illuminate\Cookie\CookieJar $instance */
  4235. $instance->expire($name, $path, $domain);
  4236. }
  4237. /**
  4238. * Remove a cookie from the queue.
  4239. *
  4240. * @param string $name
  4241. * @param string|null $path
  4242. * @return void
  4243. * @static
  4244. */
  4245. public static function unqueue($name, $path = null)
  4246. {
  4247. /** @var \Illuminate\Cookie\CookieJar $instance */
  4248. $instance->unqueue($name, $path);
  4249. }
  4250. /**
  4251. * Set the default path and domain for the jar.
  4252. *
  4253. * @param string $path
  4254. * @param string $domain
  4255. * @param bool $secure
  4256. * @param string|null $sameSite
  4257. * @return \Illuminate\Cookie\CookieJar
  4258. * @static
  4259. */
  4260. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  4261. {
  4262. /** @var \Illuminate\Cookie\CookieJar $instance */
  4263. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  4264. }
  4265. /**
  4266. * Get the cookies which have been queued for the next request.
  4267. *
  4268. * @return \Symfony\Component\HttpFoundation\Cookie[]
  4269. * @static
  4270. */
  4271. public static function getQueuedCookies()
  4272. {
  4273. /** @var \Illuminate\Cookie\CookieJar $instance */
  4274. return $instance->getQueuedCookies();
  4275. }
  4276. /**
  4277. * Flush the cookies which have been queued for the next request.
  4278. *
  4279. * @return \Illuminate\Cookie\CookieJar
  4280. * @static
  4281. */
  4282. public static function flushQueuedCookies()
  4283. {
  4284. /** @var \Illuminate\Cookie\CookieJar $instance */
  4285. return $instance->flushQueuedCookies();
  4286. }
  4287. /**
  4288. * Register a custom macro.
  4289. *
  4290. * @param string $name
  4291. * @param object|callable $macro
  4292. * @return void
  4293. * @static
  4294. */
  4295. public static function macro($name, $macro)
  4296. {
  4297. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  4298. }
  4299. /**
  4300. * Mix another object into the class.
  4301. *
  4302. * @param object $mixin
  4303. * @param bool $replace
  4304. * @return void
  4305. * @throws \ReflectionException
  4306. * @static
  4307. */
  4308. public static function mixin($mixin, $replace = true)
  4309. {
  4310. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  4311. }
  4312. /**
  4313. * Checks if macro is registered.
  4314. *
  4315. * @param string $name
  4316. * @return bool
  4317. * @static
  4318. */
  4319. public static function hasMacro($name)
  4320. {
  4321. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  4322. }
  4323. /**
  4324. * Flush the existing macros.
  4325. *
  4326. * @return void
  4327. * @static
  4328. */
  4329. public static function flushMacros()
  4330. {
  4331. \Illuminate\Cookie\CookieJar::flushMacros();
  4332. }
  4333. }
  4334. /**
  4335. * @see \Illuminate\Encryption\Encrypter
  4336. */
  4337. class Crypt {
  4338. /**
  4339. * Determine if the given key and cipher combination is valid.
  4340. *
  4341. * @param string $key
  4342. * @param string $cipher
  4343. * @return bool
  4344. * @static
  4345. */
  4346. public static function supported($key, $cipher)
  4347. {
  4348. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  4349. }
  4350. /**
  4351. * Create a new encryption key for the given cipher.
  4352. *
  4353. * @param string $cipher
  4354. * @return string
  4355. * @static
  4356. */
  4357. public static function generateKey($cipher)
  4358. {
  4359. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  4360. }
  4361. /**
  4362. * Encrypt the given value.
  4363. *
  4364. * @param mixed $value
  4365. * @param bool $serialize
  4366. * @return string
  4367. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4368. * @static
  4369. */
  4370. public static function encrypt($value, $serialize = true)
  4371. {
  4372. /** @var \Illuminate\Encryption\Encrypter $instance */
  4373. return $instance->encrypt($value, $serialize);
  4374. }
  4375. /**
  4376. * Encrypt a string without serialization.
  4377. *
  4378. * @param string $value
  4379. * @return string
  4380. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4381. * @static
  4382. */
  4383. public static function encryptString($value)
  4384. {
  4385. /** @var \Illuminate\Encryption\Encrypter $instance */
  4386. return $instance->encryptString($value);
  4387. }
  4388. /**
  4389. * Decrypt the given value.
  4390. *
  4391. * @param string $payload
  4392. * @param bool $unserialize
  4393. * @return mixed
  4394. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4395. * @static
  4396. */
  4397. public static function decrypt($payload, $unserialize = true)
  4398. {
  4399. /** @var \Illuminate\Encryption\Encrypter $instance */
  4400. return $instance->decrypt($payload, $unserialize);
  4401. }
  4402. /**
  4403. * Decrypt the given string without unserialization.
  4404. *
  4405. * @param string $payload
  4406. * @return string
  4407. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4408. * @static
  4409. */
  4410. public static function decryptString($payload)
  4411. {
  4412. /** @var \Illuminate\Encryption\Encrypter $instance */
  4413. return $instance->decryptString($payload);
  4414. }
  4415. /**
  4416. * Get the encryption key.
  4417. *
  4418. * @return string
  4419. * @static
  4420. */
  4421. public static function getKey()
  4422. {
  4423. /** @var \Illuminate\Encryption\Encrypter $instance */
  4424. return $instance->getKey();
  4425. }
  4426. }
  4427. /**
  4428. * @see \Illuminate\Database\DatabaseManager
  4429. * @see \Illuminate\Database\Connection
  4430. */
  4431. class DB {
  4432. /**
  4433. * Get a database connection instance.
  4434. *
  4435. * @param string|null $name
  4436. * @return \Illuminate\Database\Connection
  4437. * @static
  4438. */
  4439. public static function connection($name = null)
  4440. {
  4441. /** @var \Illuminate\Database\DatabaseManager $instance */
  4442. return $instance->connection($name);
  4443. }
  4444. /**
  4445. * Register a custom Doctrine type.
  4446. *
  4447. * @param string $class
  4448. * @param string $name
  4449. * @param string $type
  4450. * @return void
  4451. * @throws \Doctrine\DBAL\DBALException
  4452. * @throws \RuntimeException
  4453. * @static
  4454. */
  4455. public static function registerDoctrineType($class, $name, $type)
  4456. {
  4457. /** @var \Illuminate\Database\DatabaseManager $instance */
  4458. $instance->registerDoctrineType($class, $name, $type);
  4459. }
  4460. /**
  4461. * Disconnect from the given database and remove from local cache.
  4462. *
  4463. * @param string|null $name
  4464. * @return void
  4465. * @static
  4466. */
  4467. public static function purge($name = null)
  4468. {
  4469. /** @var \Illuminate\Database\DatabaseManager $instance */
  4470. $instance->purge($name);
  4471. }
  4472. /**
  4473. * Disconnect from the given database.
  4474. *
  4475. * @param string|null $name
  4476. * @return void
  4477. * @static
  4478. */
  4479. public static function disconnect($name = null)
  4480. {
  4481. /** @var \Illuminate\Database\DatabaseManager $instance */
  4482. $instance->disconnect($name);
  4483. }
  4484. /**
  4485. * Reconnect to the given database.
  4486. *
  4487. * @param string|null $name
  4488. * @return \Illuminate\Database\Connection
  4489. * @static
  4490. */
  4491. public static function reconnect($name = null)
  4492. {
  4493. /** @var \Illuminate\Database\DatabaseManager $instance */
  4494. return $instance->reconnect($name);
  4495. }
  4496. /**
  4497. * Set the default database connection for the callback execution.
  4498. *
  4499. * @param string $name
  4500. * @param callable $callback
  4501. * @return mixed
  4502. * @static
  4503. */
  4504. public static function usingConnection($name, $callback)
  4505. {
  4506. /** @var \Illuminate\Database\DatabaseManager $instance */
  4507. return $instance->usingConnection($name, $callback);
  4508. }
  4509. /**
  4510. * Get the default connection name.
  4511. *
  4512. * @return string
  4513. * @static
  4514. */
  4515. public static function getDefaultConnection()
  4516. {
  4517. /** @var \Illuminate\Database\DatabaseManager $instance */
  4518. return $instance->getDefaultConnection();
  4519. }
  4520. /**
  4521. * Set the default connection name.
  4522. *
  4523. * @param string $name
  4524. * @return void
  4525. * @static
  4526. */
  4527. public static function setDefaultConnection($name)
  4528. {
  4529. /** @var \Illuminate\Database\DatabaseManager $instance */
  4530. $instance->setDefaultConnection($name);
  4531. }
  4532. /**
  4533. * Get all of the support drivers.
  4534. *
  4535. * @return array
  4536. * @static
  4537. */
  4538. public static function supportedDrivers()
  4539. {
  4540. /** @var \Illuminate\Database\DatabaseManager $instance */
  4541. return $instance->supportedDrivers();
  4542. }
  4543. /**
  4544. * Get all of the drivers that are actually available.
  4545. *
  4546. * @return array
  4547. * @static
  4548. */
  4549. public static function availableDrivers()
  4550. {
  4551. /** @var \Illuminate\Database\DatabaseManager $instance */
  4552. return $instance->availableDrivers();
  4553. }
  4554. /**
  4555. * Register an extension connection resolver.
  4556. *
  4557. * @param string $name
  4558. * @param callable $resolver
  4559. * @return void
  4560. * @static
  4561. */
  4562. public static function extend($name, $resolver)
  4563. {
  4564. /** @var \Illuminate\Database\DatabaseManager $instance */
  4565. $instance->extend($name, $resolver);
  4566. }
  4567. /**
  4568. * Return all of the created connections.
  4569. *
  4570. * @return array
  4571. * @static
  4572. */
  4573. public static function getConnections()
  4574. {
  4575. /** @var \Illuminate\Database\DatabaseManager $instance */
  4576. return $instance->getConnections();
  4577. }
  4578. /**
  4579. * Set the database reconnector callback.
  4580. *
  4581. * @param callable $reconnector
  4582. * @return void
  4583. * @static
  4584. */
  4585. public static function setReconnector($reconnector)
  4586. {
  4587. /** @var \Illuminate\Database\DatabaseManager $instance */
  4588. $instance->setReconnector($reconnector);
  4589. }
  4590. /**
  4591. * Set the application instance used by the manager.
  4592. *
  4593. * @param \Illuminate\Contracts\Foundation\Application $app
  4594. * @return \Illuminate\Database\DatabaseManager
  4595. * @static
  4596. */
  4597. public static function setApplication($app)
  4598. {
  4599. /** @var \Illuminate\Database\DatabaseManager $instance */
  4600. return $instance->setApplication($app);
  4601. }
  4602. /**
  4603. * Determine if the connected database is a MariaDB database.
  4604. *
  4605. * @return bool
  4606. * @static
  4607. */
  4608. public static function isMaria()
  4609. {
  4610. /** @var \Illuminate\Database\MySqlConnection $instance */
  4611. return $instance->isMaria();
  4612. }
  4613. /**
  4614. * Get a schema builder instance for the connection.
  4615. *
  4616. * @return \Illuminate\Database\Schema\MySqlBuilder
  4617. * @static
  4618. */
  4619. public static function getSchemaBuilder()
  4620. {
  4621. /** @var \Illuminate\Database\MySqlConnection $instance */
  4622. return $instance->getSchemaBuilder();
  4623. }
  4624. /**
  4625. * Get the schema state for the connection.
  4626. *
  4627. * @param \Illuminate\Filesystem\Filesystem|null $files
  4628. * @param callable|null $processFactory
  4629. * @return \Illuminate\Database\Schema\MySqlSchemaState
  4630. * @static
  4631. */
  4632. public static function getSchemaState($files = null, $processFactory = null)
  4633. {
  4634. /** @var \Illuminate\Database\MySqlConnection $instance */
  4635. return $instance->getSchemaState($files, $processFactory);
  4636. }
  4637. /**
  4638. * Set the query grammar to the default implementation.
  4639. *
  4640. * @return void
  4641. * @static
  4642. */
  4643. public static function useDefaultQueryGrammar()
  4644. { //Method inherited from \Illuminate\Database\Connection
  4645. /** @var \Illuminate\Database\MySqlConnection $instance */
  4646. $instance->useDefaultQueryGrammar();
  4647. }
  4648. /**
  4649. * Set the schema grammar to the default implementation.
  4650. *
  4651. * @return void
  4652. * @static
  4653. */
  4654. public static function useDefaultSchemaGrammar()
  4655. { //Method inherited from \Illuminate\Database\Connection
  4656. /** @var \Illuminate\Database\MySqlConnection $instance */
  4657. $instance->useDefaultSchemaGrammar();
  4658. }
  4659. /**
  4660. * Set the query post processor to the default implementation.
  4661. *
  4662. * @return void
  4663. * @static
  4664. */
  4665. public static function useDefaultPostProcessor()
  4666. { //Method inherited from \Illuminate\Database\Connection
  4667. /** @var \Illuminate\Database\MySqlConnection $instance */
  4668. $instance->useDefaultPostProcessor();
  4669. }
  4670. /**
  4671. * Begin a fluent query against a database table.
  4672. *
  4673. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  4674. * @param string|null $as
  4675. * @return \Illuminate\Database\Query\Builder
  4676. * @static
  4677. */
  4678. public static function table($table, $as = null)
  4679. { //Method inherited from \Illuminate\Database\Connection
  4680. /** @var \Illuminate\Database\MySqlConnection $instance */
  4681. return $instance->table($table, $as);
  4682. }
  4683. /**
  4684. * Get a new query builder instance.
  4685. *
  4686. * @return \Illuminate\Database\Query\Builder
  4687. * @static
  4688. */
  4689. public static function query()
  4690. { //Method inherited from \Illuminate\Database\Connection
  4691. /** @var \Illuminate\Database\MySqlConnection $instance */
  4692. return $instance->query();
  4693. }
  4694. /**
  4695. * Run a select statement and return a single result.
  4696. *
  4697. * @param string $query
  4698. * @param array $bindings
  4699. * @param bool $useReadPdo
  4700. * @return mixed
  4701. * @static
  4702. */
  4703. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  4704. { //Method inherited from \Illuminate\Database\Connection
  4705. /** @var \Illuminate\Database\MySqlConnection $instance */
  4706. return $instance->selectOne($query, $bindings, $useReadPdo);
  4707. }
  4708. /**
  4709. * Run a select statement against the database.
  4710. *
  4711. * @param string $query
  4712. * @param array $bindings
  4713. * @return array
  4714. * @static
  4715. */
  4716. public static function selectFromWriteConnection($query, $bindings = [])
  4717. { //Method inherited from \Illuminate\Database\Connection
  4718. /** @var \Illuminate\Database\MySqlConnection $instance */
  4719. return $instance->selectFromWriteConnection($query, $bindings);
  4720. }
  4721. /**
  4722. * Run a select statement against the database.
  4723. *
  4724. * @param string $query
  4725. * @param array $bindings
  4726. * @param bool $useReadPdo
  4727. * @return array
  4728. * @static
  4729. */
  4730. public static function select($query, $bindings = [], $useReadPdo = true)
  4731. { //Method inherited from \Illuminate\Database\Connection
  4732. /** @var \Illuminate\Database\MySqlConnection $instance */
  4733. return $instance->select($query, $bindings, $useReadPdo);
  4734. }
  4735. /**
  4736. * Run a select statement against the database and returns a generator.
  4737. *
  4738. * @param string $query
  4739. * @param array $bindings
  4740. * @param bool $useReadPdo
  4741. * @return \Generator
  4742. * @static
  4743. */
  4744. public static function cursor($query, $bindings = [], $useReadPdo = true)
  4745. { //Method inherited from \Illuminate\Database\Connection
  4746. /** @var \Illuminate\Database\MySqlConnection $instance */
  4747. return $instance->cursor($query, $bindings, $useReadPdo);
  4748. }
  4749. /**
  4750. * Run an insert statement against the database.
  4751. *
  4752. * @param string $query
  4753. * @param array $bindings
  4754. * @return bool
  4755. * @static
  4756. */
  4757. public static function insert($query, $bindings = [])
  4758. { //Method inherited from \Illuminate\Database\Connection
  4759. /** @var \Illuminate\Database\MySqlConnection $instance */
  4760. return $instance->insert($query, $bindings);
  4761. }
  4762. /**
  4763. * Run an update statement against the database.
  4764. *
  4765. * @param string $query
  4766. * @param array $bindings
  4767. * @return int
  4768. * @static
  4769. */
  4770. public static function update($query, $bindings = [])
  4771. { //Method inherited from \Illuminate\Database\Connection
  4772. /** @var \Illuminate\Database\MySqlConnection $instance */
  4773. return $instance->update($query, $bindings);
  4774. }
  4775. /**
  4776. * Run a delete statement against the database.
  4777. *
  4778. * @param string $query
  4779. * @param array $bindings
  4780. * @return int
  4781. * @static
  4782. */
  4783. public static function delete($query, $bindings = [])
  4784. { //Method inherited from \Illuminate\Database\Connection
  4785. /** @var \Illuminate\Database\MySqlConnection $instance */
  4786. return $instance->delete($query, $bindings);
  4787. }
  4788. /**
  4789. * Execute an SQL statement and return the boolean result.
  4790. *
  4791. * @param string $query
  4792. * @param array $bindings
  4793. * @return bool
  4794. * @static
  4795. */
  4796. public static function statement($query, $bindings = [])
  4797. { //Method inherited from \Illuminate\Database\Connection
  4798. /** @var \Illuminate\Database\MySqlConnection $instance */
  4799. return $instance->statement($query, $bindings);
  4800. }
  4801. /**
  4802. * Run an SQL statement and get the number of rows affected.
  4803. *
  4804. * @param string $query
  4805. * @param array $bindings
  4806. * @return int
  4807. * @static
  4808. */
  4809. public static function affectingStatement($query, $bindings = [])
  4810. { //Method inherited from \Illuminate\Database\Connection
  4811. /** @var \Illuminate\Database\MySqlConnection $instance */
  4812. return $instance->affectingStatement($query, $bindings);
  4813. }
  4814. /**
  4815. * Run a raw, unprepared query against the PDO connection.
  4816. *
  4817. * @param string $query
  4818. * @return bool
  4819. * @static
  4820. */
  4821. public static function unprepared($query)
  4822. { //Method inherited from \Illuminate\Database\Connection
  4823. /** @var \Illuminate\Database\MySqlConnection $instance */
  4824. return $instance->unprepared($query);
  4825. }
  4826. /**
  4827. * Execute the given callback in "dry run" mode.
  4828. *
  4829. * @param \Closure $callback
  4830. * @return array
  4831. * @static
  4832. */
  4833. public static function pretend($callback)
  4834. { //Method inherited from \Illuminate\Database\Connection
  4835. /** @var \Illuminate\Database\MySqlConnection $instance */
  4836. return $instance->pretend($callback);
  4837. }
  4838. /**
  4839. * Bind values to their parameters in the given statement.
  4840. *
  4841. * @param \PDOStatement $statement
  4842. * @param array $bindings
  4843. * @return void
  4844. * @static
  4845. */
  4846. public static function bindValues($statement, $bindings)
  4847. { //Method inherited from \Illuminate\Database\Connection
  4848. /** @var \Illuminate\Database\MySqlConnection $instance */
  4849. $instance->bindValues($statement, $bindings);
  4850. }
  4851. /**
  4852. * Prepare the query bindings for execution.
  4853. *
  4854. * @param array $bindings
  4855. * @return array
  4856. * @static
  4857. */
  4858. public static function prepareBindings($bindings)
  4859. { //Method inherited from \Illuminate\Database\Connection
  4860. /** @var \Illuminate\Database\MySqlConnection $instance */
  4861. return $instance->prepareBindings($bindings);
  4862. }
  4863. /**
  4864. * Log a query in the connection's query log.
  4865. *
  4866. * @param string $query
  4867. * @param array $bindings
  4868. * @param float|null $time
  4869. * @return void
  4870. * @static
  4871. */
  4872. public static function logQuery($query, $bindings, $time = null)
  4873. { //Method inherited from \Illuminate\Database\Connection
  4874. /** @var \Illuminate\Database\MySqlConnection $instance */
  4875. $instance->logQuery($query, $bindings, $time);
  4876. }
  4877. /**
  4878. * Register a hook to be run just before a database query is executed.
  4879. *
  4880. * @param \Closure $callback
  4881. * @return \Illuminate\Database\MySqlConnection
  4882. * @static
  4883. */
  4884. public static function beforeExecuting($callback)
  4885. { //Method inherited from \Illuminate\Database\Connection
  4886. /** @var \Illuminate\Database\MySqlConnection $instance */
  4887. return $instance->beforeExecuting($callback);
  4888. }
  4889. /**
  4890. * Register a database query listener with the connection.
  4891. *
  4892. * @param \Closure $callback
  4893. * @return void
  4894. * @static
  4895. */
  4896. public static function listen($callback)
  4897. { //Method inherited from \Illuminate\Database\Connection
  4898. /** @var \Illuminate\Database\MySqlConnection $instance */
  4899. $instance->listen($callback);
  4900. }
  4901. /**
  4902. * Get a new raw query expression.
  4903. *
  4904. * @param mixed $value
  4905. * @return \Illuminate\Database\Query\Expression
  4906. * @static
  4907. */
  4908. public static function raw($value)
  4909. { //Method inherited from \Illuminate\Database\Connection
  4910. /** @var \Illuminate\Database\MySqlConnection $instance */
  4911. return $instance->raw($value);
  4912. }
  4913. /**
  4914. * Determine if the database connection has modified any database records.
  4915. *
  4916. * @return bool
  4917. * @static
  4918. */
  4919. public static function hasModifiedRecords()
  4920. { //Method inherited from \Illuminate\Database\Connection
  4921. /** @var \Illuminate\Database\MySqlConnection $instance */
  4922. return $instance->hasModifiedRecords();
  4923. }
  4924. /**
  4925. * Indicate if any records have been modified.
  4926. *
  4927. * @param bool $value
  4928. * @return void
  4929. * @static
  4930. */
  4931. public static function recordsHaveBeenModified($value = true)
  4932. { //Method inherited from \Illuminate\Database\Connection
  4933. /** @var \Illuminate\Database\MySqlConnection $instance */
  4934. $instance->recordsHaveBeenModified($value);
  4935. }
  4936. /**
  4937. * Set the record modification state.
  4938. *
  4939. * @param bool $value
  4940. * @return \Illuminate\Database\MySqlConnection
  4941. * @static
  4942. */
  4943. public static function setRecordModificationState($value)
  4944. { //Method inherited from \Illuminate\Database\Connection
  4945. /** @var \Illuminate\Database\MySqlConnection $instance */
  4946. return $instance->setRecordModificationState($value);
  4947. }
  4948. /**
  4949. * Reset the record modification state.
  4950. *
  4951. * @return void
  4952. * @static
  4953. */
  4954. public static function forgetRecordModificationState()
  4955. { //Method inherited from \Illuminate\Database\Connection
  4956. /** @var \Illuminate\Database\MySqlConnection $instance */
  4957. $instance->forgetRecordModificationState();
  4958. }
  4959. /**
  4960. * Indicate that the connection should use the write PDO connection for reads.
  4961. *
  4962. * @param bool $value
  4963. * @return \Illuminate\Database\MySqlConnection
  4964. * @static
  4965. */
  4966. public static function useWriteConnectionWhenReading($value = true)
  4967. { //Method inherited from \Illuminate\Database\Connection
  4968. /** @var \Illuminate\Database\MySqlConnection $instance */
  4969. return $instance->useWriteConnectionWhenReading($value);
  4970. }
  4971. /**
  4972. * Is Doctrine available?
  4973. *
  4974. * @return bool
  4975. * @static
  4976. */
  4977. public static function isDoctrineAvailable()
  4978. { //Method inherited from \Illuminate\Database\Connection
  4979. /** @var \Illuminate\Database\MySqlConnection $instance */
  4980. return $instance->isDoctrineAvailable();
  4981. }
  4982. /**
  4983. * Get a Doctrine Schema Column instance.
  4984. *
  4985. * @param string $table
  4986. * @param string $column
  4987. * @return \Doctrine\DBAL\Schema\Column
  4988. * @static
  4989. */
  4990. public static function getDoctrineColumn($table, $column)
  4991. { //Method inherited from \Illuminate\Database\Connection
  4992. /** @var \Illuminate\Database\MySqlConnection $instance */
  4993. return $instance->getDoctrineColumn($table, $column);
  4994. }
  4995. /**
  4996. * Get the Doctrine DBAL schema manager for the connection.
  4997. *
  4998. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  4999. * @static
  5000. */
  5001. public static function getDoctrineSchemaManager()
  5002. { //Method inherited from \Illuminate\Database\Connection
  5003. /** @var \Illuminate\Database\MySqlConnection $instance */
  5004. return $instance->getDoctrineSchemaManager();
  5005. }
  5006. /**
  5007. * Get the Doctrine DBAL database connection instance.
  5008. *
  5009. * @return \Doctrine\DBAL\Connection
  5010. * @static
  5011. */
  5012. public static function getDoctrineConnection()
  5013. { //Method inherited from \Illuminate\Database\Connection
  5014. /** @var \Illuminate\Database\MySqlConnection $instance */
  5015. return $instance->getDoctrineConnection();
  5016. }
  5017. /**
  5018. * Get the current PDO connection.
  5019. *
  5020. * @return \PDO
  5021. * @static
  5022. */
  5023. public static function getPdo()
  5024. { //Method inherited from \Illuminate\Database\Connection
  5025. /** @var \Illuminate\Database\MySqlConnection $instance */
  5026. return $instance->getPdo();
  5027. }
  5028. /**
  5029. * Get the current PDO connection parameter without executing any reconnect logic.
  5030. *
  5031. * @return \PDO|\Closure|null
  5032. * @static
  5033. */
  5034. public static function getRawPdo()
  5035. { //Method inherited from \Illuminate\Database\Connection
  5036. /** @var \Illuminate\Database\MySqlConnection $instance */
  5037. return $instance->getRawPdo();
  5038. }
  5039. /**
  5040. * Get the current PDO connection used for reading.
  5041. *
  5042. * @return \PDO
  5043. * @static
  5044. */
  5045. public static function getReadPdo()
  5046. { //Method inherited from \Illuminate\Database\Connection
  5047. /** @var \Illuminate\Database\MySqlConnection $instance */
  5048. return $instance->getReadPdo();
  5049. }
  5050. /**
  5051. * Get the current read PDO connection parameter without executing any reconnect logic.
  5052. *
  5053. * @return \PDO|\Closure|null
  5054. * @static
  5055. */
  5056. public static function getRawReadPdo()
  5057. { //Method inherited from \Illuminate\Database\Connection
  5058. /** @var \Illuminate\Database\MySqlConnection $instance */
  5059. return $instance->getRawReadPdo();
  5060. }
  5061. /**
  5062. * Set the PDO connection.
  5063. *
  5064. * @param \PDO|\Closure|null $pdo
  5065. * @return \Illuminate\Database\MySqlConnection
  5066. * @static
  5067. */
  5068. public static function setPdo($pdo)
  5069. { //Method inherited from \Illuminate\Database\Connection
  5070. /** @var \Illuminate\Database\MySqlConnection $instance */
  5071. return $instance->setPdo($pdo);
  5072. }
  5073. /**
  5074. * Set the PDO connection used for reading.
  5075. *
  5076. * @param \PDO|\Closure|null $pdo
  5077. * @return \Illuminate\Database\MySqlConnection
  5078. * @static
  5079. */
  5080. public static function setReadPdo($pdo)
  5081. { //Method inherited from \Illuminate\Database\Connection
  5082. /** @var \Illuminate\Database\MySqlConnection $instance */
  5083. return $instance->setReadPdo($pdo);
  5084. }
  5085. /**
  5086. * Get the database connection name.
  5087. *
  5088. * @return string|null
  5089. * @static
  5090. */
  5091. public static function getName()
  5092. { //Method inherited from \Illuminate\Database\Connection
  5093. /** @var \Illuminate\Database\MySqlConnection $instance */
  5094. return $instance->getName();
  5095. }
  5096. /**
  5097. * Get the database connection full name.
  5098. *
  5099. * @return string|null
  5100. * @static
  5101. */
  5102. public static function getNameWithReadWriteType()
  5103. { //Method inherited from \Illuminate\Database\Connection
  5104. /** @var \Illuminate\Database\MySqlConnection $instance */
  5105. return $instance->getNameWithReadWriteType();
  5106. }
  5107. /**
  5108. * Get an option from the configuration options.
  5109. *
  5110. * @param string|null $option
  5111. * @return mixed
  5112. * @static
  5113. */
  5114. public static function getConfig($option = null)
  5115. { //Method inherited from \Illuminate\Database\Connection
  5116. /** @var \Illuminate\Database\MySqlConnection $instance */
  5117. return $instance->getConfig($option);
  5118. }
  5119. /**
  5120. * Get the PDO driver name.
  5121. *
  5122. * @return string
  5123. * @static
  5124. */
  5125. public static function getDriverName()
  5126. { //Method inherited from \Illuminate\Database\Connection
  5127. /** @var \Illuminate\Database\MySqlConnection $instance */
  5128. return $instance->getDriverName();
  5129. }
  5130. /**
  5131. * Get the query grammar used by the connection.
  5132. *
  5133. * @return \Illuminate\Database\Query\Grammars\Grammar
  5134. * @static
  5135. */
  5136. public static function getQueryGrammar()
  5137. { //Method inherited from \Illuminate\Database\Connection
  5138. /** @var \Illuminate\Database\MySqlConnection $instance */
  5139. return $instance->getQueryGrammar();
  5140. }
  5141. /**
  5142. * Set the query grammar used by the connection.
  5143. *
  5144. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  5145. * @return \Illuminate\Database\MySqlConnection
  5146. * @static
  5147. */
  5148. public static function setQueryGrammar($grammar)
  5149. { //Method inherited from \Illuminate\Database\Connection
  5150. /** @var \Illuminate\Database\MySqlConnection $instance */
  5151. return $instance->setQueryGrammar($grammar);
  5152. }
  5153. /**
  5154. * Get the schema grammar used by the connection.
  5155. *
  5156. * @return \Illuminate\Database\Schema\Grammars\Grammar
  5157. * @static
  5158. */
  5159. public static function getSchemaGrammar()
  5160. { //Method inherited from \Illuminate\Database\Connection
  5161. /** @var \Illuminate\Database\MySqlConnection $instance */
  5162. return $instance->getSchemaGrammar();
  5163. }
  5164. /**
  5165. * Set the schema grammar used by the connection.
  5166. *
  5167. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  5168. * @return \Illuminate\Database\MySqlConnection
  5169. * @static
  5170. */
  5171. public static function setSchemaGrammar($grammar)
  5172. { //Method inherited from \Illuminate\Database\Connection
  5173. /** @var \Illuminate\Database\MySqlConnection $instance */
  5174. return $instance->setSchemaGrammar($grammar);
  5175. }
  5176. /**
  5177. * Get the query post processor used by the connection.
  5178. *
  5179. * @return \Illuminate\Database\Query\Processors\Processor
  5180. * @static
  5181. */
  5182. public static function getPostProcessor()
  5183. { //Method inherited from \Illuminate\Database\Connection
  5184. /** @var \Illuminate\Database\MySqlConnection $instance */
  5185. return $instance->getPostProcessor();
  5186. }
  5187. /**
  5188. * Set the query post processor used by the connection.
  5189. *
  5190. * @param \Illuminate\Database\Query\Processors\Processor $processor
  5191. * @return \Illuminate\Database\MySqlConnection
  5192. * @static
  5193. */
  5194. public static function setPostProcessor($processor)
  5195. { //Method inherited from \Illuminate\Database\Connection
  5196. /** @var \Illuminate\Database\MySqlConnection $instance */
  5197. return $instance->setPostProcessor($processor);
  5198. }
  5199. /**
  5200. * Get the event dispatcher used by the connection.
  5201. *
  5202. * @return \Illuminate\Contracts\Events\Dispatcher
  5203. * @static
  5204. */
  5205. public static function getEventDispatcher()
  5206. { //Method inherited from \Illuminate\Database\Connection
  5207. /** @var \Illuminate\Database\MySqlConnection $instance */
  5208. return $instance->getEventDispatcher();
  5209. }
  5210. /**
  5211. * Set the event dispatcher instance on the connection.
  5212. *
  5213. * @param \Illuminate\Contracts\Events\Dispatcher $events
  5214. * @return \Illuminate\Database\MySqlConnection
  5215. * @static
  5216. */
  5217. public static function setEventDispatcher($events)
  5218. { //Method inherited from \Illuminate\Database\Connection
  5219. /** @var \Illuminate\Database\MySqlConnection $instance */
  5220. return $instance->setEventDispatcher($events);
  5221. }
  5222. /**
  5223. * Unset the event dispatcher for this connection.
  5224. *
  5225. * @return void
  5226. * @static
  5227. */
  5228. public static function unsetEventDispatcher()
  5229. { //Method inherited from \Illuminate\Database\Connection
  5230. /** @var \Illuminate\Database\MySqlConnection $instance */
  5231. $instance->unsetEventDispatcher();
  5232. }
  5233. /**
  5234. * Set the transaction manager instance on the connection.
  5235. *
  5236. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  5237. * @return \Illuminate\Database\MySqlConnection
  5238. * @static
  5239. */
  5240. public static function setTransactionManager($manager)
  5241. { //Method inherited from \Illuminate\Database\Connection
  5242. /** @var \Illuminate\Database\MySqlConnection $instance */
  5243. return $instance->setTransactionManager($manager);
  5244. }
  5245. /**
  5246. * Unset the transaction manager for this connection.
  5247. *
  5248. * @return void
  5249. * @static
  5250. */
  5251. public static function unsetTransactionManager()
  5252. { //Method inherited from \Illuminate\Database\Connection
  5253. /** @var \Illuminate\Database\MySqlConnection $instance */
  5254. $instance->unsetTransactionManager();
  5255. }
  5256. /**
  5257. * Determine if the connection is in a "dry run".
  5258. *
  5259. * @return bool
  5260. * @static
  5261. */
  5262. public static function pretending()
  5263. { //Method inherited from \Illuminate\Database\Connection
  5264. /** @var \Illuminate\Database\MySqlConnection $instance */
  5265. return $instance->pretending();
  5266. }
  5267. /**
  5268. * Get the connection query log.
  5269. *
  5270. * @return array
  5271. * @static
  5272. */
  5273. public static function getQueryLog()
  5274. { //Method inherited from \Illuminate\Database\Connection
  5275. /** @var \Illuminate\Database\MySqlConnection $instance */
  5276. return $instance->getQueryLog();
  5277. }
  5278. /**
  5279. * Clear the query log.
  5280. *
  5281. * @return void
  5282. * @static
  5283. */
  5284. public static function flushQueryLog()
  5285. { //Method inherited from \Illuminate\Database\Connection
  5286. /** @var \Illuminate\Database\MySqlConnection $instance */
  5287. $instance->flushQueryLog();
  5288. }
  5289. /**
  5290. * Enable the query log on the connection.
  5291. *
  5292. * @return void
  5293. * @static
  5294. */
  5295. public static function enableQueryLog()
  5296. { //Method inherited from \Illuminate\Database\Connection
  5297. /** @var \Illuminate\Database\MySqlConnection $instance */
  5298. $instance->enableQueryLog();
  5299. }
  5300. /**
  5301. * Disable the query log on the connection.
  5302. *
  5303. * @return void
  5304. * @static
  5305. */
  5306. public static function disableQueryLog()
  5307. { //Method inherited from \Illuminate\Database\Connection
  5308. /** @var \Illuminate\Database\MySqlConnection $instance */
  5309. $instance->disableQueryLog();
  5310. }
  5311. /**
  5312. * Determine whether we're logging queries.
  5313. *
  5314. * @return bool
  5315. * @static
  5316. */
  5317. public static function logging()
  5318. { //Method inherited from \Illuminate\Database\Connection
  5319. /** @var \Illuminate\Database\MySqlConnection $instance */
  5320. return $instance->logging();
  5321. }
  5322. /**
  5323. * Get the name of the connected database.
  5324. *
  5325. * @return string
  5326. * @static
  5327. */
  5328. public static function getDatabaseName()
  5329. { //Method inherited from \Illuminate\Database\Connection
  5330. /** @var \Illuminate\Database\MySqlConnection $instance */
  5331. return $instance->getDatabaseName();
  5332. }
  5333. /**
  5334. * Set the name of the connected database.
  5335. *
  5336. * @param string $database
  5337. * @return \Illuminate\Database\MySqlConnection
  5338. * @static
  5339. */
  5340. public static function setDatabaseName($database)
  5341. { //Method inherited from \Illuminate\Database\Connection
  5342. /** @var \Illuminate\Database\MySqlConnection $instance */
  5343. return $instance->setDatabaseName($database);
  5344. }
  5345. /**
  5346. * Set the read / write type of the connection.
  5347. *
  5348. * @param string|null $readWriteType
  5349. * @return \Illuminate\Database\MySqlConnection
  5350. * @static
  5351. */
  5352. public static function setReadWriteType($readWriteType)
  5353. { //Method inherited from \Illuminate\Database\Connection
  5354. /** @var \Illuminate\Database\MySqlConnection $instance */
  5355. return $instance->setReadWriteType($readWriteType);
  5356. }
  5357. /**
  5358. * Get the table prefix for the connection.
  5359. *
  5360. * @return string
  5361. * @static
  5362. */
  5363. public static function getTablePrefix()
  5364. { //Method inherited from \Illuminate\Database\Connection
  5365. /** @var \Illuminate\Database\MySqlConnection $instance */
  5366. return $instance->getTablePrefix();
  5367. }
  5368. /**
  5369. * Set the table prefix in use by the connection.
  5370. *
  5371. * @param string $prefix
  5372. * @return \Illuminate\Database\MySqlConnection
  5373. * @static
  5374. */
  5375. public static function setTablePrefix($prefix)
  5376. { //Method inherited from \Illuminate\Database\Connection
  5377. /** @var \Illuminate\Database\MySqlConnection $instance */
  5378. return $instance->setTablePrefix($prefix);
  5379. }
  5380. /**
  5381. * Set the table prefix and return the grammar.
  5382. *
  5383. * @param \Illuminate\Database\Grammar $grammar
  5384. * @return \Illuminate\Database\Grammar
  5385. * @static
  5386. */
  5387. public static function withTablePrefix($grammar)
  5388. { //Method inherited from \Illuminate\Database\Connection
  5389. /** @var \Illuminate\Database\MySqlConnection $instance */
  5390. return $instance->withTablePrefix($grammar);
  5391. }
  5392. /**
  5393. * Register a connection resolver.
  5394. *
  5395. * @param string $driver
  5396. * @param \Closure $callback
  5397. * @return void
  5398. * @static
  5399. */
  5400. public static function resolverFor($driver, $callback)
  5401. { //Method inherited from \Illuminate\Database\Connection
  5402. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  5403. }
  5404. /**
  5405. * Get the connection resolver for the given driver.
  5406. *
  5407. * @param string $driver
  5408. * @return mixed
  5409. * @static
  5410. */
  5411. public static function getResolver($driver)
  5412. { //Method inherited from \Illuminate\Database\Connection
  5413. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  5414. }
  5415. /**
  5416. * Execute a Closure within a transaction.
  5417. *
  5418. * @param \Closure $callback
  5419. * @param int $attempts
  5420. * @return mixed
  5421. * @throws \Throwable
  5422. * @static
  5423. */
  5424. public static function transaction($callback, $attempts = 1)
  5425. { //Method inherited from \Illuminate\Database\Connection
  5426. /** @var \Illuminate\Database\MySqlConnection $instance */
  5427. return $instance->transaction($callback, $attempts);
  5428. }
  5429. /**
  5430. * Start a new database transaction.
  5431. *
  5432. * @return void
  5433. * @throws \Throwable
  5434. * @static
  5435. */
  5436. public static function beginTransaction()
  5437. { //Method inherited from \Illuminate\Database\Connection
  5438. /** @var \Illuminate\Database\MySqlConnection $instance */
  5439. $instance->beginTransaction();
  5440. }
  5441. /**
  5442. * Commit the active database transaction.
  5443. *
  5444. * @return void
  5445. * @throws \Throwable
  5446. * @static
  5447. */
  5448. public static function commit()
  5449. { //Method inherited from \Illuminate\Database\Connection
  5450. /** @var \Illuminate\Database\MySqlConnection $instance */
  5451. $instance->commit();
  5452. }
  5453. /**
  5454. * Rollback the active database transaction.
  5455. *
  5456. * @param int|null $toLevel
  5457. * @return void
  5458. * @throws \Throwable
  5459. * @static
  5460. */
  5461. public static function rollBack($toLevel = null)
  5462. { //Method inherited from \Illuminate\Database\Connection
  5463. /** @var \Illuminate\Database\MySqlConnection $instance */
  5464. $instance->rollBack($toLevel);
  5465. }
  5466. /**
  5467. * Get the number of active transactions.
  5468. *
  5469. * @return int
  5470. * @static
  5471. */
  5472. public static function transactionLevel()
  5473. { //Method inherited from \Illuminate\Database\Connection
  5474. /** @var \Illuminate\Database\MySqlConnection $instance */
  5475. return $instance->transactionLevel();
  5476. }
  5477. /**
  5478. * Execute the callback after a transaction commits.
  5479. *
  5480. * @param callable $callback
  5481. * @return void
  5482. * @throws \RuntimeException
  5483. * @static
  5484. */
  5485. public static function afterCommit($callback)
  5486. { //Method inherited from \Illuminate\Database\Connection
  5487. /** @var \Illuminate\Database\MySqlConnection $instance */
  5488. $instance->afterCommit($callback);
  5489. }
  5490. }
  5491. /**
  5492. * @see \Illuminate\Events\Dispatcher
  5493. */
  5494. class Event {
  5495. /**
  5496. * Register an event listener with the dispatcher.
  5497. *
  5498. * @param \Closure|string|array $events
  5499. * @param \Closure|string|array|null $listener
  5500. * @return void
  5501. * @static
  5502. */
  5503. public static function listen($events, $listener = null)
  5504. {
  5505. /** @var \Illuminate\Events\Dispatcher $instance */
  5506. $instance->listen($events, $listener);
  5507. }
  5508. /**
  5509. * Determine if a given event has listeners.
  5510. *
  5511. * @param string $eventName
  5512. * @return bool
  5513. * @static
  5514. */
  5515. public static function hasListeners($eventName)
  5516. {
  5517. /** @var \Illuminate\Events\Dispatcher $instance */
  5518. return $instance->hasListeners($eventName);
  5519. }
  5520. /**
  5521. * Determine if the given event has any wildcard listeners.
  5522. *
  5523. * @param string $eventName
  5524. * @return bool
  5525. * @static
  5526. */
  5527. public static function hasWildcardListeners($eventName)
  5528. {
  5529. /** @var \Illuminate\Events\Dispatcher $instance */
  5530. return $instance->hasWildcardListeners($eventName);
  5531. }
  5532. /**
  5533. * Register an event and payload to be fired later.
  5534. *
  5535. * @param string $event
  5536. * @param array $payload
  5537. * @return void
  5538. * @static
  5539. */
  5540. public static function push($event, $payload = [])
  5541. {
  5542. /** @var \Illuminate\Events\Dispatcher $instance */
  5543. $instance->push($event, $payload);
  5544. }
  5545. /**
  5546. * Flush a set of pushed events.
  5547. *
  5548. * @param string $event
  5549. * @return void
  5550. * @static
  5551. */
  5552. public static function flush($event)
  5553. {
  5554. /** @var \Illuminate\Events\Dispatcher $instance */
  5555. $instance->flush($event);
  5556. }
  5557. /**
  5558. * Register an event subscriber with the dispatcher.
  5559. *
  5560. * @param object|string $subscriber
  5561. * @return void
  5562. * @static
  5563. */
  5564. public static function subscribe($subscriber)
  5565. {
  5566. /** @var \Illuminate\Events\Dispatcher $instance */
  5567. $instance->subscribe($subscriber);
  5568. }
  5569. /**
  5570. * Fire an event until the first non-null response is returned.
  5571. *
  5572. * @param string|object $event
  5573. * @param mixed $payload
  5574. * @return array|null
  5575. * @static
  5576. */
  5577. public static function until($event, $payload = [])
  5578. {
  5579. /** @var \Illuminate\Events\Dispatcher $instance */
  5580. return $instance->until($event, $payload);
  5581. }
  5582. /**
  5583. * Fire an event and call the listeners.
  5584. *
  5585. * @param string|object $event
  5586. * @param mixed $payload
  5587. * @param bool $halt
  5588. * @return array|null
  5589. * @static
  5590. */
  5591. public static function dispatch($event, $payload = [], $halt = false)
  5592. {
  5593. /** @var \Illuminate\Events\Dispatcher $instance */
  5594. return $instance->dispatch($event, $payload, $halt);
  5595. }
  5596. /**
  5597. * Get all of the listeners for a given event name.
  5598. *
  5599. * @param string $eventName
  5600. * @return array
  5601. * @static
  5602. */
  5603. public static function getListeners($eventName)
  5604. {
  5605. /** @var \Illuminate\Events\Dispatcher $instance */
  5606. return $instance->getListeners($eventName);
  5607. }
  5608. /**
  5609. * Register an event listener with the dispatcher.
  5610. *
  5611. * @param \Closure|string|array $listener
  5612. * @param bool $wildcard
  5613. * @return \Closure
  5614. * @static
  5615. */
  5616. public static function makeListener($listener, $wildcard = false)
  5617. {
  5618. /** @var \Illuminate\Events\Dispatcher $instance */
  5619. return $instance->makeListener($listener, $wildcard);
  5620. }
  5621. /**
  5622. * Create a class based listener using the IoC container.
  5623. *
  5624. * @param string $listener
  5625. * @param bool $wildcard
  5626. * @return \Closure
  5627. * @static
  5628. */
  5629. public static function createClassListener($listener, $wildcard = false)
  5630. {
  5631. /** @var \Illuminate\Events\Dispatcher $instance */
  5632. return $instance->createClassListener($listener, $wildcard);
  5633. }
  5634. /**
  5635. * Remove a set of listeners from the dispatcher.
  5636. *
  5637. * @param string $event
  5638. * @return void
  5639. * @static
  5640. */
  5641. public static function forget($event)
  5642. {
  5643. /** @var \Illuminate\Events\Dispatcher $instance */
  5644. $instance->forget($event);
  5645. }
  5646. /**
  5647. * Forget all of the pushed listeners.
  5648. *
  5649. * @return void
  5650. * @static
  5651. */
  5652. public static function forgetPushed()
  5653. {
  5654. /** @var \Illuminate\Events\Dispatcher $instance */
  5655. $instance->forgetPushed();
  5656. }
  5657. /**
  5658. * Set the queue resolver implementation.
  5659. *
  5660. * @param callable $resolver
  5661. * @return \Illuminate\Events\Dispatcher
  5662. * @static
  5663. */
  5664. public static function setQueueResolver($resolver)
  5665. {
  5666. /** @var \Illuminate\Events\Dispatcher $instance */
  5667. return $instance->setQueueResolver($resolver);
  5668. }
  5669. /**
  5670. * Register a custom macro.
  5671. *
  5672. * @param string $name
  5673. * @param object|callable $macro
  5674. * @return void
  5675. * @static
  5676. */
  5677. public static function macro($name, $macro)
  5678. {
  5679. \Illuminate\Events\Dispatcher::macro($name, $macro);
  5680. }
  5681. /**
  5682. * Mix another object into the class.
  5683. *
  5684. * @param object $mixin
  5685. * @param bool $replace
  5686. * @return void
  5687. * @throws \ReflectionException
  5688. * @static
  5689. */
  5690. public static function mixin($mixin, $replace = true)
  5691. {
  5692. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  5693. }
  5694. /**
  5695. * Checks if macro is registered.
  5696. *
  5697. * @param string $name
  5698. * @return bool
  5699. * @static
  5700. */
  5701. public static function hasMacro($name)
  5702. {
  5703. return \Illuminate\Events\Dispatcher::hasMacro($name);
  5704. }
  5705. /**
  5706. * Flush the existing macros.
  5707. *
  5708. * @return void
  5709. * @static
  5710. */
  5711. public static function flushMacros()
  5712. {
  5713. \Illuminate\Events\Dispatcher::flushMacros();
  5714. }
  5715. /**
  5716. * Assert if an event has a listener attached to it.
  5717. *
  5718. * @param string $expectedEvent
  5719. * @param string $expectedListener
  5720. * @return void
  5721. * @static
  5722. */
  5723. public static function assertListening($expectedEvent, $expectedListener)
  5724. {
  5725. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5726. $instance->assertListening($expectedEvent, $expectedListener);
  5727. }
  5728. /**
  5729. * Assert if an event was dispatched based on a truth-test callback.
  5730. *
  5731. * @param string|\Closure $event
  5732. * @param callable|int|null $callback
  5733. * @return void
  5734. * @static
  5735. */
  5736. public static function assertDispatched($event, $callback = null)
  5737. {
  5738. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5739. $instance->assertDispatched($event, $callback);
  5740. }
  5741. /**
  5742. * Assert if an event was dispatched a number of times.
  5743. *
  5744. * @param string $event
  5745. * @param int $times
  5746. * @return void
  5747. * @static
  5748. */
  5749. public static function assertDispatchedTimes($event, $times = 1)
  5750. {
  5751. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5752. $instance->assertDispatchedTimes($event, $times);
  5753. }
  5754. /**
  5755. * Determine if an event was dispatched based on a truth-test callback.
  5756. *
  5757. * @param string|\Closure $event
  5758. * @param callable|null $callback
  5759. * @return void
  5760. * @static
  5761. */
  5762. public static function assertNotDispatched($event, $callback = null)
  5763. {
  5764. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5765. $instance->assertNotDispatched($event, $callback);
  5766. }
  5767. /**
  5768. * Assert that no events were dispatched.
  5769. *
  5770. * @return void
  5771. * @static
  5772. */
  5773. public static function assertNothingDispatched()
  5774. {
  5775. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5776. $instance->assertNothingDispatched();
  5777. }
  5778. /**
  5779. * Get all of the events matching a truth-test callback.
  5780. *
  5781. * @param string $event
  5782. * @param callable|null $callback
  5783. * @return \Illuminate\Support\Collection
  5784. * @static
  5785. */
  5786. public static function dispatched($event, $callback = null)
  5787. {
  5788. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5789. return $instance->dispatched($event, $callback);
  5790. }
  5791. /**
  5792. * Determine if the given event has been dispatched.
  5793. *
  5794. * @param string $event
  5795. * @return bool
  5796. * @static
  5797. */
  5798. public static function hasDispatched($event)
  5799. {
  5800. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5801. return $instance->hasDispatched($event);
  5802. }
  5803. }
  5804. /**
  5805. * @see \Illuminate\Filesystem\Filesystem
  5806. */
  5807. class File {
  5808. /**
  5809. * Determine if a file or directory exists.
  5810. *
  5811. * @param string $path
  5812. * @return bool
  5813. * @static
  5814. */
  5815. public static function exists($path)
  5816. {
  5817. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5818. return $instance->exists($path);
  5819. }
  5820. /**
  5821. * Determine if a file or directory is missing.
  5822. *
  5823. * @param string $path
  5824. * @return bool
  5825. * @static
  5826. */
  5827. public static function missing($path)
  5828. {
  5829. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5830. return $instance->missing($path);
  5831. }
  5832. /**
  5833. * Get the contents of a file.
  5834. *
  5835. * @param string $path
  5836. * @param bool $lock
  5837. * @return string
  5838. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5839. * @static
  5840. */
  5841. public static function get($path, $lock = false)
  5842. {
  5843. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5844. return $instance->get($path, $lock);
  5845. }
  5846. /**
  5847. * Get contents of a file with shared access.
  5848. *
  5849. * @param string $path
  5850. * @return string
  5851. * @static
  5852. */
  5853. public static function sharedGet($path)
  5854. {
  5855. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5856. return $instance->sharedGet($path);
  5857. }
  5858. /**
  5859. * Get the returned value of a file.
  5860. *
  5861. * @param string $path
  5862. * @param array $data
  5863. * @return mixed
  5864. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5865. * @static
  5866. */
  5867. public static function getRequire($path, $data = [])
  5868. {
  5869. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5870. return $instance->getRequire($path, $data);
  5871. }
  5872. /**
  5873. * Require the given file once.
  5874. *
  5875. * @param string $path
  5876. * @param array $data
  5877. * @return mixed
  5878. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5879. * @static
  5880. */
  5881. public static function requireOnce($path, $data = [])
  5882. {
  5883. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5884. return $instance->requireOnce($path, $data);
  5885. }
  5886. /**
  5887. * Get the contents of a file one line at a time.
  5888. *
  5889. * @param string $path
  5890. * @return \Illuminate\Support\LazyCollection
  5891. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5892. * @static
  5893. */
  5894. public static function lines($path)
  5895. {
  5896. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5897. return $instance->lines($path);
  5898. }
  5899. /**
  5900. * Get the MD5 hash of the file at the given path.
  5901. *
  5902. * @param string $path
  5903. * @return string
  5904. * @static
  5905. */
  5906. public static function hash($path)
  5907. {
  5908. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5909. return $instance->hash($path);
  5910. }
  5911. /**
  5912. * Write the contents of a file.
  5913. *
  5914. * @param string $path
  5915. * @param string $contents
  5916. * @param bool $lock
  5917. * @return int|bool
  5918. * @static
  5919. */
  5920. public static function put($path, $contents, $lock = false)
  5921. {
  5922. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5923. return $instance->put($path, $contents, $lock);
  5924. }
  5925. /**
  5926. * Write the contents of a file, replacing it atomically if it already exists.
  5927. *
  5928. * @param string $path
  5929. * @param string $content
  5930. * @return void
  5931. * @static
  5932. */
  5933. public static function replace($path, $content)
  5934. {
  5935. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5936. $instance->replace($path, $content);
  5937. }
  5938. /**
  5939. * Replace a given string within a given file.
  5940. *
  5941. * @param array|string $search
  5942. * @param array|string $replace
  5943. * @param string $path
  5944. * @return void
  5945. * @static
  5946. */
  5947. public static function replaceInFile($search, $replace, $path)
  5948. {
  5949. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5950. $instance->replaceInFile($search, $replace, $path);
  5951. }
  5952. /**
  5953. * Prepend to a file.
  5954. *
  5955. * @param string $path
  5956. * @param string $data
  5957. * @return int
  5958. * @static
  5959. */
  5960. public static function prepend($path, $data)
  5961. {
  5962. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5963. return $instance->prepend($path, $data);
  5964. }
  5965. /**
  5966. * Append to a file.
  5967. *
  5968. * @param string $path
  5969. * @param string $data
  5970. * @return int
  5971. * @static
  5972. */
  5973. public static function append($path, $data)
  5974. {
  5975. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5976. return $instance->append($path, $data);
  5977. }
  5978. /**
  5979. * Get or set UNIX mode of a file or directory.
  5980. *
  5981. * @param string $path
  5982. * @param int|null $mode
  5983. * @return mixed
  5984. * @static
  5985. */
  5986. public static function chmod($path, $mode = null)
  5987. {
  5988. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5989. return $instance->chmod($path, $mode);
  5990. }
  5991. /**
  5992. * Delete the file at a given path.
  5993. *
  5994. * @param string|array $paths
  5995. * @return bool
  5996. * @static
  5997. */
  5998. public static function delete($paths)
  5999. {
  6000. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6001. return $instance->delete($paths);
  6002. }
  6003. /**
  6004. * Move a file to a new location.
  6005. *
  6006. * @param string $path
  6007. * @param string $target
  6008. * @return bool
  6009. * @static
  6010. */
  6011. public static function move($path, $target)
  6012. {
  6013. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6014. return $instance->move($path, $target);
  6015. }
  6016. /**
  6017. * Copy a file to a new location.
  6018. *
  6019. * @param string $path
  6020. * @param string $target
  6021. * @return bool
  6022. * @static
  6023. */
  6024. public static function copy($path, $target)
  6025. {
  6026. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6027. return $instance->copy($path, $target);
  6028. }
  6029. /**
  6030. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  6031. *
  6032. * @param string $target
  6033. * @param string $link
  6034. * @return void
  6035. * @static
  6036. */
  6037. public static function link($target, $link)
  6038. {
  6039. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6040. $instance->link($target, $link);
  6041. }
  6042. /**
  6043. * Create a relative symlink to the target file or directory.
  6044. *
  6045. * @param string $target
  6046. * @param string $link
  6047. * @return void
  6048. * @throws \RuntimeException
  6049. * @static
  6050. */
  6051. public static function relativeLink($target, $link)
  6052. {
  6053. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6054. $instance->relativeLink($target, $link);
  6055. }
  6056. /**
  6057. * Extract the file name from a file path.
  6058. *
  6059. * @param string $path
  6060. * @return string
  6061. * @static
  6062. */
  6063. public static function name($path)
  6064. {
  6065. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6066. return $instance->name($path);
  6067. }
  6068. /**
  6069. * Extract the trailing name component from a file path.
  6070. *
  6071. * @param string $path
  6072. * @return string
  6073. * @static
  6074. */
  6075. public static function basename($path)
  6076. {
  6077. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6078. return $instance->basename($path);
  6079. }
  6080. /**
  6081. * Extract the parent directory from a file path.
  6082. *
  6083. * @param string $path
  6084. * @return string
  6085. * @static
  6086. */
  6087. public static function dirname($path)
  6088. {
  6089. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6090. return $instance->dirname($path);
  6091. }
  6092. /**
  6093. * Extract the file extension from a file path.
  6094. *
  6095. * @param string $path
  6096. * @return string
  6097. * @static
  6098. */
  6099. public static function extension($path)
  6100. {
  6101. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6102. return $instance->extension($path);
  6103. }
  6104. /**
  6105. * Guess the file extension from the mime-type of a given file.
  6106. *
  6107. * @param string $path
  6108. * @return string|null
  6109. * @throws \RuntimeException
  6110. * @static
  6111. */
  6112. public static function guessExtension($path)
  6113. {
  6114. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6115. return $instance->guessExtension($path);
  6116. }
  6117. /**
  6118. * Get the file type of a given file.
  6119. *
  6120. * @param string $path
  6121. * @return string
  6122. * @static
  6123. */
  6124. public static function type($path)
  6125. {
  6126. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6127. return $instance->type($path);
  6128. }
  6129. /**
  6130. * Get the mime-type of a given file.
  6131. *
  6132. * @param string $path
  6133. * @return string|false
  6134. * @static
  6135. */
  6136. public static function mimeType($path)
  6137. {
  6138. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6139. return $instance->mimeType($path);
  6140. }
  6141. /**
  6142. * Get the file size of a given file.
  6143. *
  6144. * @param string $path
  6145. * @return int
  6146. * @static
  6147. */
  6148. public static function size($path)
  6149. {
  6150. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6151. return $instance->size($path);
  6152. }
  6153. /**
  6154. * Get the file's last modification time.
  6155. *
  6156. * @param string $path
  6157. * @return int
  6158. * @static
  6159. */
  6160. public static function lastModified($path)
  6161. {
  6162. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6163. return $instance->lastModified($path);
  6164. }
  6165. /**
  6166. * Determine if the given path is a directory.
  6167. *
  6168. * @param string $directory
  6169. * @return bool
  6170. * @static
  6171. */
  6172. public static function isDirectory($directory)
  6173. {
  6174. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6175. return $instance->isDirectory($directory);
  6176. }
  6177. /**
  6178. * Determine if the given path is readable.
  6179. *
  6180. * @param string $path
  6181. * @return bool
  6182. * @static
  6183. */
  6184. public static function isReadable($path)
  6185. {
  6186. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6187. return $instance->isReadable($path);
  6188. }
  6189. /**
  6190. * Determine if the given path is writable.
  6191. *
  6192. * @param string $path
  6193. * @return bool
  6194. * @static
  6195. */
  6196. public static function isWritable($path)
  6197. {
  6198. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6199. return $instance->isWritable($path);
  6200. }
  6201. /**
  6202. * Determine if the given path is a file.
  6203. *
  6204. * @param string $file
  6205. * @return bool
  6206. * @static
  6207. */
  6208. public static function isFile($file)
  6209. {
  6210. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6211. return $instance->isFile($file);
  6212. }
  6213. /**
  6214. * Find path names matching a given pattern.
  6215. *
  6216. * @param string $pattern
  6217. * @param int $flags
  6218. * @return array
  6219. * @static
  6220. */
  6221. public static function glob($pattern, $flags = 0)
  6222. {
  6223. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6224. return $instance->glob($pattern, $flags);
  6225. }
  6226. /**
  6227. * Get an array of all files in a directory.
  6228. *
  6229. * @param string $directory
  6230. * @param bool $hidden
  6231. * @return \Symfony\Component\Finder\SplFileInfo[]
  6232. * @static
  6233. */
  6234. public static function files($directory, $hidden = false)
  6235. {
  6236. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6237. return $instance->files($directory, $hidden);
  6238. }
  6239. /**
  6240. * Get all of the files from the given directory (recursive).
  6241. *
  6242. * @param string $directory
  6243. * @param bool $hidden
  6244. * @return \Symfony\Component\Finder\SplFileInfo[]
  6245. * @static
  6246. */
  6247. public static function allFiles($directory, $hidden = false)
  6248. {
  6249. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6250. return $instance->allFiles($directory, $hidden);
  6251. }
  6252. /**
  6253. * Get all of the directories within a given directory.
  6254. *
  6255. * @param string $directory
  6256. * @return array
  6257. * @static
  6258. */
  6259. public static function directories($directory)
  6260. {
  6261. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6262. return $instance->directories($directory);
  6263. }
  6264. /**
  6265. * Ensure a directory exists.
  6266. *
  6267. * @param string $path
  6268. * @param int $mode
  6269. * @param bool $recursive
  6270. * @return void
  6271. * @static
  6272. */
  6273. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  6274. {
  6275. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6276. $instance->ensureDirectoryExists($path, $mode, $recursive);
  6277. }
  6278. /**
  6279. * Create a directory.
  6280. *
  6281. * @param string $path
  6282. * @param int $mode
  6283. * @param bool $recursive
  6284. * @param bool $force
  6285. * @return bool
  6286. * @static
  6287. */
  6288. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  6289. {
  6290. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6291. return $instance->makeDirectory($path, $mode, $recursive, $force);
  6292. }
  6293. /**
  6294. * Move a directory.
  6295. *
  6296. * @param string $from
  6297. * @param string $to
  6298. * @param bool $overwrite
  6299. * @return bool
  6300. * @static
  6301. */
  6302. public static function moveDirectory($from, $to, $overwrite = false)
  6303. {
  6304. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6305. return $instance->moveDirectory($from, $to, $overwrite);
  6306. }
  6307. /**
  6308. * Copy a directory from one location to another.
  6309. *
  6310. * @param string $directory
  6311. * @param string $destination
  6312. * @param int|null $options
  6313. * @return bool
  6314. * @static
  6315. */
  6316. public static function copyDirectory($directory, $destination, $options = null)
  6317. {
  6318. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6319. return $instance->copyDirectory($directory, $destination, $options);
  6320. }
  6321. /**
  6322. * Recursively delete a directory.
  6323. *
  6324. * The directory itself may be optionally preserved.
  6325. *
  6326. * @param string $directory
  6327. * @param bool $preserve
  6328. * @return bool
  6329. * @static
  6330. */
  6331. public static function deleteDirectory($directory, $preserve = false)
  6332. {
  6333. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6334. return $instance->deleteDirectory($directory, $preserve);
  6335. }
  6336. /**
  6337. * Remove all of the directories within a given directory.
  6338. *
  6339. * @param string $directory
  6340. * @return bool
  6341. * @static
  6342. */
  6343. public static function deleteDirectories($directory)
  6344. {
  6345. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6346. return $instance->deleteDirectories($directory);
  6347. }
  6348. /**
  6349. * Empty the specified directory of all files and folders.
  6350. *
  6351. * @param string $directory
  6352. * @return bool
  6353. * @static
  6354. */
  6355. public static function cleanDirectory($directory)
  6356. {
  6357. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6358. return $instance->cleanDirectory($directory);
  6359. }
  6360. /**
  6361. * Register a custom macro.
  6362. *
  6363. * @param string $name
  6364. * @param object|callable $macro
  6365. * @return void
  6366. * @static
  6367. */
  6368. public static function macro($name, $macro)
  6369. {
  6370. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  6371. }
  6372. /**
  6373. * Mix another object into the class.
  6374. *
  6375. * @param object $mixin
  6376. * @param bool $replace
  6377. * @return void
  6378. * @throws \ReflectionException
  6379. * @static
  6380. */
  6381. public static function mixin($mixin, $replace = true)
  6382. {
  6383. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  6384. }
  6385. /**
  6386. * Checks if macro is registered.
  6387. *
  6388. * @param string $name
  6389. * @return bool
  6390. * @static
  6391. */
  6392. public static function hasMacro($name)
  6393. {
  6394. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  6395. }
  6396. /**
  6397. * Flush the existing macros.
  6398. *
  6399. * @return void
  6400. * @static
  6401. */
  6402. public static function flushMacros()
  6403. {
  6404. \Illuminate\Filesystem\Filesystem::flushMacros();
  6405. }
  6406. }
  6407. /**
  6408. * @see \Illuminate\Contracts\Auth\Access\Gate
  6409. */
  6410. class Gate {
  6411. /**
  6412. * Determine if a given ability has been defined.
  6413. *
  6414. * @param string|array $ability
  6415. * @return bool
  6416. * @static
  6417. */
  6418. public static function has($ability)
  6419. {
  6420. /** @var \Illuminate\Auth\Access\Gate $instance */
  6421. return $instance->has($ability);
  6422. }
  6423. /**
  6424. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
  6425. *
  6426. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  6427. * @param string|null $message
  6428. * @param string|null $code
  6429. * @return \Illuminate\Auth\Access\Response
  6430. * @throws \Illuminate\Auth\Access\AuthorizationException
  6431. * @static
  6432. */
  6433. public static function allowIf($condition, $message = null, $code = null)
  6434. {
  6435. /** @var \Illuminate\Auth\Access\Gate $instance */
  6436. return $instance->allowIf($condition, $message, $code);
  6437. }
  6438. /**
  6439. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
  6440. *
  6441. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  6442. * @param string|null $message
  6443. * @param string|null $code
  6444. * @return \Illuminate\Auth\Access\Response
  6445. * @throws \Illuminate\Auth\Access\AuthorizationException
  6446. * @static
  6447. */
  6448. public static function denyIf($condition, $message = null, $code = null)
  6449. {
  6450. /** @var \Illuminate\Auth\Access\Gate $instance */
  6451. return $instance->denyIf($condition, $message, $code);
  6452. }
  6453. /**
  6454. * Define a new ability.
  6455. *
  6456. * @param string $ability
  6457. * @param callable|string $callback
  6458. * @return \Illuminate\Auth\Access\Gate
  6459. * @throws \InvalidArgumentException
  6460. * @static
  6461. */
  6462. public static function define($ability, $callback)
  6463. {
  6464. /** @var \Illuminate\Auth\Access\Gate $instance */
  6465. return $instance->define($ability, $callback);
  6466. }
  6467. /**
  6468. * Define abilities for a resource.
  6469. *
  6470. * @param string $name
  6471. * @param string $class
  6472. * @param array|null $abilities
  6473. * @return \Illuminate\Auth\Access\Gate
  6474. * @static
  6475. */
  6476. public static function resource($name, $class, $abilities = null)
  6477. {
  6478. /** @var \Illuminate\Auth\Access\Gate $instance */
  6479. return $instance->resource($name, $class, $abilities);
  6480. }
  6481. /**
  6482. * Define a policy class for a given class type.
  6483. *
  6484. * @param string $class
  6485. * @param string $policy
  6486. * @return \Illuminate\Auth\Access\Gate
  6487. * @static
  6488. */
  6489. public static function policy($class, $policy)
  6490. {
  6491. /** @var \Illuminate\Auth\Access\Gate $instance */
  6492. return $instance->policy($class, $policy);
  6493. }
  6494. /**
  6495. * Register a callback to run before all Gate checks.
  6496. *
  6497. * @param callable $callback
  6498. * @return \Illuminate\Auth\Access\Gate
  6499. * @static
  6500. */
  6501. public static function before($callback)
  6502. {
  6503. /** @var \Illuminate\Auth\Access\Gate $instance */
  6504. return $instance->before($callback);
  6505. }
  6506. /**
  6507. * Register a callback to run after all Gate checks.
  6508. *
  6509. * @param callable $callback
  6510. * @return \Illuminate\Auth\Access\Gate
  6511. * @static
  6512. */
  6513. public static function after($callback)
  6514. {
  6515. /** @var \Illuminate\Auth\Access\Gate $instance */
  6516. return $instance->after($callback);
  6517. }
  6518. /**
  6519. * Determine if the given ability should be granted for the current user.
  6520. *
  6521. * @param string $ability
  6522. * @param array|mixed $arguments
  6523. * @return bool
  6524. * @static
  6525. */
  6526. public static function allows($ability, $arguments = [])
  6527. {
  6528. /** @var \Illuminate\Auth\Access\Gate $instance */
  6529. return $instance->allows($ability, $arguments);
  6530. }
  6531. /**
  6532. * Determine if the given ability should be denied for the current user.
  6533. *
  6534. * @param string $ability
  6535. * @param array|mixed $arguments
  6536. * @return bool
  6537. * @static
  6538. */
  6539. public static function denies($ability, $arguments = [])
  6540. {
  6541. /** @var \Illuminate\Auth\Access\Gate $instance */
  6542. return $instance->denies($ability, $arguments);
  6543. }
  6544. /**
  6545. * Determine if all of the given abilities should be granted for the current user.
  6546. *
  6547. * @param iterable|string $abilities
  6548. * @param array|mixed $arguments
  6549. * @return bool
  6550. * @static
  6551. */
  6552. public static function check($abilities, $arguments = [])
  6553. {
  6554. /** @var \Illuminate\Auth\Access\Gate $instance */
  6555. return $instance->check($abilities, $arguments);
  6556. }
  6557. /**
  6558. * Determine if any one of the given abilities should be granted for the current user.
  6559. *
  6560. * @param iterable|string $abilities
  6561. * @param array|mixed $arguments
  6562. * @return bool
  6563. * @static
  6564. */
  6565. public static function any($abilities, $arguments = [])
  6566. {
  6567. /** @var \Illuminate\Auth\Access\Gate $instance */
  6568. return $instance->any($abilities, $arguments);
  6569. }
  6570. /**
  6571. * Determine if all of the given abilities should be denied for the current user.
  6572. *
  6573. * @param iterable|string $abilities
  6574. * @param array|mixed $arguments
  6575. * @return bool
  6576. * @static
  6577. */
  6578. public static function none($abilities, $arguments = [])
  6579. {
  6580. /** @var \Illuminate\Auth\Access\Gate $instance */
  6581. return $instance->none($abilities, $arguments);
  6582. }
  6583. /**
  6584. * Determine if the given ability should be granted for the current user.
  6585. *
  6586. * @param string $ability
  6587. * @param array|mixed $arguments
  6588. * @return \Illuminate\Auth\Access\Response
  6589. * @throws \Illuminate\Auth\Access\AuthorizationException
  6590. * @static
  6591. */
  6592. public static function authorize($ability, $arguments = [])
  6593. {
  6594. /** @var \Illuminate\Auth\Access\Gate $instance */
  6595. return $instance->authorize($ability, $arguments);
  6596. }
  6597. /**
  6598. * Inspect the user for the given ability.
  6599. *
  6600. * @param string $ability
  6601. * @param array|mixed $arguments
  6602. * @return \Illuminate\Auth\Access\Response
  6603. * @static
  6604. */
  6605. public static function inspect($ability, $arguments = [])
  6606. {
  6607. /** @var \Illuminate\Auth\Access\Gate $instance */
  6608. return $instance->inspect($ability, $arguments);
  6609. }
  6610. /**
  6611. * Get the raw result from the authorization callback.
  6612. *
  6613. * @param string $ability
  6614. * @param array|mixed $arguments
  6615. * @return mixed
  6616. * @throws \Illuminate\Auth\Access\AuthorizationException
  6617. * @static
  6618. */
  6619. public static function raw($ability, $arguments = [])
  6620. {
  6621. /** @var \Illuminate\Auth\Access\Gate $instance */
  6622. return $instance->raw($ability, $arguments);
  6623. }
  6624. /**
  6625. * Get a policy instance for a given class.
  6626. *
  6627. * @param object|string $class
  6628. * @return mixed
  6629. * @static
  6630. */
  6631. public static function getPolicyFor($class)
  6632. {
  6633. /** @var \Illuminate\Auth\Access\Gate $instance */
  6634. return $instance->getPolicyFor($class);
  6635. }
  6636. /**
  6637. * Specify a callback to be used to guess policy names.
  6638. *
  6639. * @param callable $callback
  6640. * @return \Illuminate\Auth\Access\Gate
  6641. * @static
  6642. */
  6643. public static function guessPolicyNamesUsing($callback)
  6644. {
  6645. /** @var \Illuminate\Auth\Access\Gate $instance */
  6646. return $instance->guessPolicyNamesUsing($callback);
  6647. }
  6648. /**
  6649. * Build a policy class instance of the given type.
  6650. *
  6651. * @param object|string $class
  6652. * @return mixed
  6653. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  6654. * @static
  6655. */
  6656. public static function resolvePolicy($class)
  6657. {
  6658. /** @var \Illuminate\Auth\Access\Gate $instance */
  6659. return $instance->resolvePolicy($class);
  6660. }
  6661. /**
  6662. * Get a gate instance for the given user.
  6663. *
  6664. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  6665. * @return static
  6666. * @static
  6667. */
  6668. public static function forUser($user)
  6669. {
  6670. /** @var \Illuminate\Auth\Access\Gate $instance */
  6671. return $instance->forUser($user);
  6672. }
  6673. /**
  6674. * Get all of the defined abilities.
  6675. *
  6676. * @return array
  6677. * @static
  6678. */
  6679. public static function abilities()
  6680. {
  6681. /** @var \Illuminate\Auth\Access\Gate $instance */
  6682. return $instance->abilities();
  6683. }
  6684. /**
  6685. * Get all of the defined policies.
  6686. *
  6687. * @return array
  6688. * @static
  6689. */
  6690. public static function policies()
  6691. {
  6692. /** @var \Illuminate\Auth\Access\Gate $instance */
  6693. return $instance->policies();
  6694. }
  6695. /**
  6696. * Set the container instance used by the gate.
  6697. *
  6698. * @param \Illuminate\Contracts\Container\Container $container
  6699. * @return \Illuminate\Auth\Access\Gate
  6700. * @static
  6701. */
  6702. public static function setContainer($container)
  6703. {
  6704. /** @var \Illuminate\Auth\Access\Gate $instance */
  6705. return $instance->setContainer($container);
  6706. }
  6707. }
  6708. /**
  6709. * @see \Illuminate\Hashing\HashManager
  6710. */
  6711. class Hash {
  6712. /**
  6713. * Create an instance of the Bcrypt hash Driver.
  6714. *
  6715. * @return \Illuminate\Hashing\BcryptHasher
  6716. * @static
  6717. */
  6718. public static function createBcryptDriver()
  6719. {
  6720. /** @var \Illuminate\Hashing\HashManager $instance */
  6721. return $instance->createBcryptDriver();
  6722. }
  6723. /**
  6724. * Create an instance of the Argon2i hash Driver.
  6725. *
  6726. * @return \Illuminate\Hashing\ArgonHasher
  6727. * @static
  6728. */
  6729. public static function createArgonDriver()
  6730. {
  6731. /** @var \Illuminate\Hashing\HashManager $instance */
  6732. return $instance->createArgonDriver();
  6733. }
  6734. /**
  6735. * Create an instance of the Argon2id hash Driver.
  6736. *
  6737. * @return \Illuminate\Hashing\Argon2IdHasher
  6738. * @static
  6739. */
  6740. public static function createArgon2idDriver()
  6741. {
  6742. /** @var \Illuminate\Hashing\HashManager $instance */
  6743. return $instance->createArgon2idDriver();
  6744. }
  6745. /**
  6746. * Get information about the given hashed value.
  6747. *
  6748. * @param string $hashedValue
  6749. * @return array
  6750. * @static
  6751. */
  6752. public static function info($hashedValue)
  6753. {
  6754. /** @var \Illuminate\Hashing\HashManager $instance */
  6755. return $instance->info($hashedValue);
  6756. }
  6757. /**
  6758. * Hash the given value.
  6759. *
  6760. * @param string $value
  6761. * @param array $options
  6762. * @return string
  6763. * @static
  6764. */
  6765. public static function make($value, $options = [])
  6766. {
  6767. /** @var \Illuminate\Hashing\HashManager $instance */
  6768. return $instance->make($value, $options);
  6769. }
  6770. /**
  6771. * Check the given plain value against a hash.
  6772. *
  6773. * @param string $value
  6774. * @param string $hashedValue
  6775. * @param array $options
  6776. * @return bool
  6777. * @static
  6778. */
  6779. public static function check($value, $hashedValue, $options = [])
  6780. {
  6781. /** @var \Illuminate\Hashing\HashManager $instance */
  6782. return $instance->check($value, $hashedValue, $options);
  6783. }
  6784. /**
  6785. * Check if the given hash has been hashed using the given options.
  6786. *
  6787. * @param string $hashedValue
  6788. * @param array $options
  6789. * @return bool
  6790. * @static
  6791. */
  6792. public static function needsRehash($hashedValue, $options = [])
  6793. {
  6794. /** @var \Illuminate\Hashing\HashManager $instance */
  6795. return $instance->needsRehash($hashedValue, $options);
  6796. }
  6797. /**
  6798. * Get the default driver name.
  6799. *
  6800. * @return string
  6801. * @static
  6802. */
  6803. public static function getDefaultDriver()
  6804. {
  6805. /** @var \Illuminate\Hashing\HashManager $instance */
  6806. return $instance->getDefaultDriver();
  6807. }
  6808. /**
  6809. * Get a driver instance.
  6810. *
  6811. * @param string|null $driver
  6812. * @return mixed
  6813. * @throws \InvalidArgumentException
  6814. * @static
  6815. */
  6816. public static function driver($driver = null)
  6817. { //Method inherited from \Illuminate\Support\Manager
  6818. /** @var \Illuminate\Hashing\HashManager $instance */
  6819. return $instance->driver($driver);
  6820. }
  6821. /**
  6822. * Register a custom driver creator Closure.
  6823. *
  6824. * @param string $driver
  6825. * @param \Closure $callback
  6826. * @return \Illuminate\Hashing\HashManager
  6827. * @static
  6828. */
  6829. public static function extend($driver, $callback)
  6830. { //Method inherited from \Illuminate\Support\Manager
  6831. /** @var \Illuminate\Hashing\HashManager $instance */
  6832. return $instance->extend($driver, $callback);
  6833. }
  6834. /**
  6835. * Get all of the created "drivers".
  6836. *
  6837. * @return array
  6838. * @static
  6839. */
  6840. public static function getDrivers()
  6841. { //Method inherited from \Illuminate\Support\Manager
  6842. /** @var \Illuminate\Hashing\HashManager $instance */
  6843. return $instance->getDrivers();
  6844. }
  6845. /**
  6846. * Get the container instance used by the manager.
  6847. *
  6848. * @return \Illuminate\Contracts\Container\Container
  6849. * @static
  6850. */
  6851. public static function getContainer()
  6852. { //Method inherited from \Illuminate\Support\Manager
  6853. /** @var \Illuminate\Hashing\HashManager $instance */
  6854. return $instance->getContainer();
  6855. }
  6856. /**
  6857. * Set the container instance used by the manager.
  6858. *
  6859. * @param \Illuminate\Contracts\Container\Container $container
  6860. * @return \Illuminate\Hashing\HashManager
  6861. * @static
  6862. */
  6863. public static function setContainer($container)
  6864. { //Method inherited from \Illuminate\Support\Manager
  6865. /** @var \Illuminate\Hashing\HashManager $instance */
  6866. return $instance->setContainer($container);
  6867. }
  6868. /**
  6869. * Forget all of the resolved driver instances.
  6870. *
  6871. * @return \Illuminate\Hashing\HashManager
  6872. * @static
  6873. */
  6874. public static function forgetDrivers()
  6875. { //Method inherited from \Illuminate\Support\Manager
  6876. /** @var \Illuminate\Hashing\HashManager $instance */
  6877. return $instance->forgetDrivers();
  6878. }
  6879. }
  6880. /**
  6881. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  6882. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  6883. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  6884. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  6885. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  6886. * @method static \Illuminate\Http\Client\PendingRequest async()
  6887. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string $contents = '', string|null $filename = null, array $headers = [])
  6888. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  6889. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  6890. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  6891. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  6892. * @method static \Illuminate\Http\Client\PendingRequest dd()
  6893. * @method static \Illuminate\Http\Client\PendingRequest dump()
  6894. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleep = 0, ?callable $when = null)
  6895. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  6896. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  6897. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  6898. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  6899. * @method static \Illuminate\Http\Client\PendingRequest withBody(resource|string $content, string $contentType)
  6900. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  6901. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  6902. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  6903. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  6904. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  6905. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  6906. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string $userAgent)
  6907. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  6908. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  6909. * @method static array pool(callable $callback)
  6910. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  6911. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  6912. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  6913. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  6914. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  6915. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  6916. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  6917. * @see \Illuminate\Http\Client\Factory
  6918. */
  6919. class Http {
  6920. /**
  6921. * Create a new response instance for use during stubbing.
  6922. *
  6923. * @param array|string $body
  6924. * @param int $status
  6925. * @param array $headers
  6926. * @return \GuzzleHttp\Promise\PromiseInterface
  6927. * @static
  6928. */
  6929. public static function response($body = null, $status = 200, $headers = [])
  6930. {
  6931. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  6932. }
  6933. /**
  6934. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  6935. *
  6936. * @param array $responses
  6937. * @return \Illuminate\Http\Client\ResponseSequence
  6938. * @static
  6939. */
  6940. public static function sequence($responses = [])
  6941. {
  6942. /** @var \Illuminate\Http\Client\Factory $instance */
  6943. return $instance->sequence($responses);
  6944. }
  6945. /**
  6946. * Register a stub callable that will intercept requests and be able to return stub responses.
  6947. *
  6948. * @param callable|array $callback
  6949. * @return \Illuminate\Http\Client\Factory
  6950. * @static
  6951. */
  6952. public static function fake($callback = null)
  6953. {
  6954. /** @var \Illuminate\Http\Client\Factory $instance */
  6955. return $instance->fake($callback);
  6956. }
  6957. /**
  6958. * Register a response sequence for the given URL pattern.
  6959. *
  6960. * @param string $url
  6961. * @return \Illuminate\Http\Client\ResponseSequence
  6962. * @static
  6963. */
  6964. public static function fakeSequence($url = '*')
  6965. {
  6966. /** @var \Illuminate\Http\Client\Factory $instance */
  6967. return $instance->fakeSequence($url);
  6968. }
  6969. /**
  6970. * Stub the given URL using the given callback.
  6971. *
  6972. * @param string $url
  6973. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  6974. * @return \Illuminate\Http\Client\Factory
  6975. * @static
  6976. */
  6977. public static function stubUrl($url, $callback)
  6978. {
  6979. /** @var \Illuminate\Http\Client\Factory $instance */
  6980. return $instance->stubUrl($url, $callback);
  6981. }
  6982. /**
  6983. * Record a request response pair.
  6984. *
  6985. * @param \Illuminate\Http\Client\Request $request
  6986. * @param \Illuminate\Http\Client\Response $response
  6987. * @return void
  6988. * @static
  6989. */
  6990. public static function recordRequestResponsePair($request, $response)
  6991. {
  6992. /** @var \Illuminate\Http\Client\Factory $instance */
  6993. $instance->recordRequestResponsePair($request, $response);
  6994. }
  6995. /**
  6996. * Assert that a request / response pair was recorded matching a given truth test.
  6997. *
  6998. * @param callable $callback
  6999. * @return void
  7000. * @static
  7001. */
  7002. public static function assertSent($callback)
  7003. {
  7004. /** @var \Illuminate\Http\Client\Factory $instance */
  7005. $instance->assertSent($callback);
  7006. }
  7007. /**
  7008. * Assert that the given request was sent in the given order.
  7009. *
  7010. * @param array $callbacks
  7011. * @return void
  7012. * @static
  7013. */
  7014. public static function assertSentInOrder($callbacks)
  7015. {
  7016. /** @var \Illuminate\Http\Client\Factory $instance */
  7017. $instance->assertSentInOrder($callbacks);
  7018. }
  7019. /**
  7020. * Assert that a request / response pair was not recorded matching a given truth test.
  7021. *
  7022. * @param callable $callback
  7023. * @return void
  7024. * @static
  7025. */
  7026. public static function assertNotSent($callback)
  7027. {
  7028. /** @var \Illuminate\Http\Client\Factory $instance */
  7029. $instance->assertNotSent($callback);
  7030. }
  7031. /**
  7032. * Assert that no request / response pair was recorded.
  7033. *
  7034. * @return void
  7035. * @static
  7036. */
  7037. public static function assertNothingSent()
  7038. {
  7039. /** @var \Illuminate\Http\Client\Factory $instance */
  7040. $instance->assertNothingSent();
  7041. }
  7042. /**
  7043. * Assert how many requests have been recorded.
  7044. *
  7045. * @param int $count
  7046. * @return void
  7047. * @static
  7048. */
  7049. public static function assertSentCount($count)
  7050. {
  7051. /** @var \Illuminate\Http\Client\Factory $instance */
  7052. $instance->assertSentCount($count);
  7053. }
  7054. /**
  7055. * Assert that every created response sequence is empty.
  7056. *
  7057. * @return void
  7058. * @static
  7059. */
  7060. public static function assertSequencesAreEmpty()
  7061. {
  7062. /** @var \Illuminate\Http\Client\Factory $instance */
  7063. $instance->assertSequencesAreEmpty();
  7064. }
  7065. /**
  7066. * Get a collection of the request / response pairs matching the given truth test.
  7067. *
  7068. * @param callable $callback
  7069. * @return \Illuminate\Support\Collection
  7070. * @static
  7071. */
  7072. public static function recorded($callback = null)
  7073. {
  7074. /** @var \Illuminate\Http\Client\Factory $instance */
  7075. return $instance->recorded($callback);
  7076. }
  7077. /**
  7078. * Get the current event dispatcher implementation.
  7079. *
  7080. * @return \Illuminate\Contracts\Events\Dispatcher|null
  7081. * @static
  7082. */
  7083. public static function getDispatcher()
  7084. {
  7085. /** @var \Illuminate\Http\Client\Factory $instance */
  7086. return $instance->getDispatcher();
  7087. }
  7088. /**
  7089. * Register a custom macro.
  7090. *
  7091. * @param string $name
  7092. * @param object|callable $macro
  7093. * @return void
  7094. * @static
  7095. */
  7096. public static function macro($name, $macro)
  7097. {
  7098. \Illuminate\Http\Client\Factory::macro($name, $macro);
  7099. }
  7100. /**
  7101. * Mix another object into the class.
  7102. *
  7103. * @param object $mixin
  7104. * @param bool $replace
  7105. * @return void
  7106. * @throws \ReflectionException
  7107. * @static
  7108. */
  7109. public static function mixin($mixin, $replace = true)
  7110. {
  7111. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  7112. }
  7113. /**
  7114. * Checks if macro is registered.
  7115. *
  7116. * @param string $name
  7117. * @return bool
  7118. * @static
  7119. */
  7120. public static function hasMacro($name)
  7121. {
  7122. return \Illuminate\Http\Client\Factory::hasMacro($name);
  7123. }
  7124. /**
  7125. * Flush the existing macros.
  7126. *
  7127. * @return void
  7128. * @static
  7129. */
  7130. public static function flushMacros()
  7131. {
  7132. \Illuminate\Http\Client\Factory::flushMacros();
  7133. }
  7134. /**
  7135. * Dynamically handle calls to the class.
  7136. *
  7137. * @param string $method
  7138. * @param array $parameters
  7139. * @return mixed
  7140. * @throws \BadMethodCallException
  7141. * @static
  7142. */
  7143. public static function macroCall($method, $parameters)
  7144. {
  7145. /** @var \Illuminate\Http\Client\Factory $instance */
  7146. return $instance->macroCall($method, $parameters);
  7147. }
  7148. }
  7149. /**
  7150. * @see \Illuminate\Translation\Translator
  7151. */
  7152. class Lang {
  7153. /**
  7154. * Determine if a translation exists for a given locale.
  7155. *
  7156. * @param string $key
  7157. * @param string|null $locale
  7158. * @return bool
  7159. * @static
  7160. */
  7161. public static function hasForLocale($key, $locale = null)
  7162. {
  7163. /** @var \Illuminate\Translation\Translator $instance */
  7164. return $instance->hasForLocale($key, $locale);
  7165. }
  7166. /**
  7167. * Determine if a translation exists.
  7168. *
  7169. * @param string $key
  7170. * @param string|null $locale
  7171. * @param bool $fallback
  7172. * @return bool
  7173. * @static
  7174. */
  7175. public static function has($key, $locale = null, $fallback = true)
  7176. {
  7177. /** @var \Illuminate\Translation\Translator $instance */
  7178. return $instance->has($key, $locale, $fallback);
  7179. }
  7180. /**
  7181. * Get the translation for the given key.
  7182. *
  7183. * @param string $key
  7184. * @param array $replace
  7185. * @param string|null $locale
  7186. * @param bool $fallback
  7187. * @return string|array
  7188. * @static
  7189. */
  7190. public static function get($key, $replace = [], $locale = null, $fallback = true)
  7191. {
  7192. /** @var \Illuminate\Translation\Translator $instance */
  7193. return $instance->get($key, $replace, $locale, $fallback);
  7194. }
  7195. /**
  7196. * Get a translation according to an integer value.
  7197. *
  7198. * @param string $key
  7199. * @param \Countable|int|array $number
  7200. * @param array $replace
  7201. * @param string|null $locale
  7202. * @return string
  7203. * @static
  7204. */
  7205. public static function choice($key, $number, $replace = [], $locale = null)
  7206. {
  7207. /** @var \Illuminate\Translation\Translator $instance */
  7208. return $instance->choice($key, $number, $replace, $locale);
  7209. }
  7210. /**
  7211. * Add translation lines to the given locale.
  7212. *
  7213. * @param array $lines
  7214. * @param string $locale
  7215. * @param string $namespace
  7216. * @return void
  7217. * @static
  7218. */
  7219. public static function addLines($lines, $locale, $namespace = '*')
  7220. {
  7221. /** @var \Illuminate\Translation\Translator $instance */
  7222. $instance->addLines($lines, $locale, $namespace);
  7223. }
  7224. /**
  7225. * Load the specified language group.
  7226. *
  7227. * @param string $namespace
  7228. * @param string $group
  7229. * @param string $locale
  7230. * @return void
  7231. * @static
  7232. */
  7233. public static function load($namespace, $group, $locale)
  7234. {
  7235. /** @var \Illuminate\Translation\Translator $instance */
  7236. $instance->load($namespace, $group, $locale);
  7237. }
  7238. /**
  7239. * Add a new namespace to the loader.
  7240. *
  7241. * @param string $namespace
  7242. * @param string $hint
  7243. * @return void
  7244. * @static
  7245. */
  7246. public static function addNamespace($namespace, $hint)
  7247. {
  7248. /** @var \Illuminate\Translation\Translator $instance */
  7249. $instance->addNamespace($namespace, $hint);
  7250. }
  7251. /**
  7252. * Add a new JSON path to the loader.
  7253. *
  7254. * @param string $path
  7255. * @return void
  7256. * @static
  7257. */
  7258. public static function addJsonPath($path)
  7259. {
  7260. /** @var \Illuminate\Translation\Translator $instance */
  7261. $instance->addJsonPath($path);
  7262. }
  7263. /**
  7264. * Parse a key into namespace, group, and item.
  7265. *
  7266. * @param string $key
  7267. * @return array
  7268. * @static
  7269. */
  7270. public static function parseKey($key)
  7271. {
  7272. /** @var \Illuminate\Translation\Translator $instance */
  7273. return $instance->parseKey($key);
  7274. }
  7275. /**
  7276. * Get the message selector instance.
  7277. *
  7278. * @return \Illuminate\Translation\MessageSelector
  7279. * @static
  7280. */
  7281. public static function getSelector()
  7282. {
  7283. /** @var \Illuminate\Translation\Translator $instance */
  7284. return $instance->getSelector();
  7285. }
  7286. /**
  7287. * Set the message selector instance.
  7288. *
  7289. * @param \Illuminate\Translation\MessageSelector $selector
  7290. * @return void
  7291. * @static
  7292. */
  7293. public static function setSelector($selector)
  7294. {
  7295. /** @var \Illuminate\Translation\Translator $instance */
  7296. $instance->setSelector($selector);
  7297. }
  7298. /**
  7299. * Get the language line loader implementation.
  7300. *
  7301. * @return \Illuminate\Contracts\Translation\Loader
  7302. * @static
  7303. */
  7304. public static function getLoader()
  7305. {
  7306. /** @var \Illuminate\Translation\Translator $instance */
  7307. return $instance->getLoader();
  7308. }
  7309. /**
  7310. * Get the default locale being used.
  7311. *
  7312. * @return string
  7313. * @static
  7314. */
  7315. public static function locale()
  7316. {
  7317. /** @var \Illuminate\Translation\Translator $instance */
  7318. return $instance->locale();
  7319. }
  7320. /**
  7321. * Get the default locale being used.
  7322. *
  7323. * @return string
  7324. * @static
  7325. */
  7326. public static function getLocale()
  7327. {
  7328. /** @var \Illuminate\Translation\Translator $instance */
  7329. return $instance->getLocale();
  7330. }
  7331. /**
  7332. * Set the default locale.
  7333. *
  7334. * @param string $locale
  7335. * @return void
  7336. * @throws \InvalidArgumentException
  7337. * @static
  7338. */
  7339. public static function setLocale($locale)
  7340. {
  7341. /** @var \Illuminate\Translation\Translator $instance */
  7342. $instance->setLocale($locale);
  7343. }
  7344. /**
  7345. * Get the fallback locale being used.
  7346. *
  7347. * @return string
  7348. * @static
  7349. */
  7350. public static function getFallback()
  7351. {
  7352. /** @var \Illuminate\Translation\Translator $instance */
  7353. return $instance->getFallback();
  7354. }
  7355. /**
  7356. * Set the fallback locale being used.
  7357. *
  7358. * @param string $fallback
  7359. * @return void
  7360. * @static
  7361. */
  7362. public static function setFallback($fallback)
  7363. {
  7364. /** @var \Illuminate\Translation\Translator $instance */
  7365. $instance->setFallback($fallback);
  7366. }
  7367. /**
  7368. * Set the loaded translation groups.
  7369. *
  7370. * @param array $loaded
  7371. * @return void
  7372. * @static
  7373. */
  7374. public static function setLoaded($loaded)
  7375. {
  7376. /** @var \Illuminate\Translation\Translator $instance */
  7377. $instance->setLoaded($loaded);
  7378. }
  7379. /**
  7380. * Set the parsed value of a key.
  7381. *
  7382. * @param string $key
  7383. * @param array $parsed
  7384. * @return void
  7385. * @static
  7386. */
  7387. public static function setParsedKey($key, $parsed)
  7388. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7389. /** @var \Illuminate\Translation\Translator $instance */
  7390. $instance->setParsedKey($key, $parsed);
  7391. }
  7392. /**
  7393. * Flush the cache of parsed keys.
  7394. *
  7395. * @return void
  7396. * @static
  7397. */
  7398. public static function flushParsedKeys()
  7399. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7400. /** @var \Illuminate\Translation\Translator $instance */
  7401. $instance->flushParsedKeys();
  7402. }
  7403. /**
  7404. * Register a custom macro.
  7405. *
  7406. * @param string $name
  7407. * @param object|callable $macro
  7408. * @return void
  7409. * @static
  7410. */
  7411. public static function macro($name, $macro)
  7412. {
  7413. \Illuminate\Translation\Translator::macro($name, $macro);
  7414. }
  7415. /**
  7416. * Mix another object into the class.
  7417. *
  7418. * @param object $mixin
  7419. * @param bool $replace
  7420. * @return void
  7421. * @throws \ReflectionException
  7422. * @static
  7423. */
  7424. public static function mixin($mixin, $replace = true)
  7425. {
  7426. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  7427. }
  7428. /**
  7429. * Checks if macro is registered.
  7430. *
  7431. * @param string $name
  7432. * @return bool
  7433. * @static
  7434. */
  7435. public static function hasMacro($name)
  7436. {
  7437. return \Illuminate\Translation\Translator::hasMacro($name);
  7438. }
  7439. /**
  7440. * Flush the existing macros.
  7441. *
  7442. * @return void
  7443. * @static
  7444. */
  7445. public static function flushMacros()
  7446. {
  7447. \Illuminate\Translation\Translator::flushMacros();
  7448. }
  7449. }
  7450. /**
  7451. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  7452. * @method static \Illuminate\Log\Logger withoutContext()
  7453. * @method static void write(string $level, string $message, array $context = [])
  7454. * @method static void listen(\Closure $callback)
  7455. * @see \Illuminate\Log\Logger
  7456. */
  7457. class Log {
  7458. /**
  7459. * Build an on-demand log channel.
  7460. *
  7461. * @param array $config
  7462. * @return \Psr\Log\LoggerInterface
  7463. * @static
  7464. */
  7465. public static function build($config)
  7466. {
  7467. /** @var \Illuminate\Log\LogManager $instance */
  7468. return $instance->build($config);
  7469. }
  7470. /**
  7471. * Create a new, on-demand aggregate logger instance.
  7472. *
  7473. * @param array $channels
  7474. * @param string|null $channel
  7475. * @return \Psr\Log\LoggerInterface
  7476. * @static
  7477. */
  7478. public static function stack($channels, $channel = null)
  7479. {
  7480. /** @var \Illuminate\Log\LogManager $instance */
  7481. return $instance->stack($channels, $channel);
  7482. }
  7483. /**
  7484. * Get a log channel instance.
  7485. *
  7486. * @param string|null $channel
  7487. * @return \Psr\Log\LoggerInterface
  7488. * @static
  7489. */
  7490. public static function channel($channel = null)
  7491. {
  7492. /** @var \Illuminate\Log\LogManager $instance */
  7493. return $instance->channel($channel);
  7494. }
  7495. /**
  7496. * Get a log driver instance.
  7497. *
  7498. * @param string|null $driver
  7499. * @return \Psr\Log\LoggerInterface
  7500. * @static
  7501. */
  7502. public static function driver($driver = null)
  7503. {
  7504. /** @var \Illuminate\Log\LogManager $instance */
  7505. return $instance->driver($driver);
  7506. }
  7507. /**
  7508. * Get the default log driver name.
  7509. *
  7510. * @return string|null
  7511. * @static
  7512. */
  7513. public static function getDefaultDriver()
  7514. {
  7515. /** @var \Illuminate\Log\LogManager $instance */
  7516. return $instance->getDefaultDriver();
  7517. }
  7518. /**
  7519. * Set the default log driver name.
  7520. *
  7521. * @param string $name
  7522. * @return void
  7523. * @static
  7524. */
  7525. public static function setDefaultDriver($name)
  7526. {
  7527. /** @var \Illuminate\Log\LogManager $instance */
  7528. $instance->setDefaultDriver($name);
  7529. }
  7530. /**
  7531. * Register a custom driver creator Closure.
  7532. *
  7533. * @param string $driver
  7534. * @param \Closure $callback
  7535. * @return \Illuminate\Log\LogManager
  7536. * @static
  7537. */
  7538. public static function extend($driver, $callback)
  7539. {
  7540. /** @var \Illuminate\Log\LogManager $instance */
  7541. return $instance->extend($driver, $callback);
  7542. }
  7543. /**
  7544. * Unset the given channel instance.
  7545. *
  7546. * @param string|null $driver
  7547. * @return \Illuminate\Log\LogManager
  7548. * @static
  7549. */
  7550. public static function forgetChannel($driver = null)
  7551. {
  7552. /** @var \Illuminate\Log\LogManager $instance */
  7553. return $instance->forgetChannel($driver);
  7554. }
  7555. /**
  7556. * Get all of the resolved log channels.
  7557. *
  7558. * @return array
  7559. * @static
  7560. */
  7561. public static function getChannels()
  7562. {
  7563. /** @var \Illuminate\Log\LogManager $instance */
  7564. return $instance->getChannels();
  7565. }
  7566. /**
  7567. * System is unusable.
  7568. *
  7569. * @param string $message
  7570. * @param array $context
  7571. * @return void
  7572. * @static
  7573. */
  7574. public static function emergency($message, $context = [])
  7575. {
  7576. /** @var \Illuminate\Log\LogManager $instance */
  7577. $instance->emergency($message, $context);
  7578. }
  7579. /**
  7580. * Action must be taken immediately.
  7581. *
  7582. * Example: Entire website down, database unavailable, etc. This should
  7583. * trigger the SMS alerts and wake you up.
  7584. *
  7585. * @param string $message
  7586. * @param array $context
  7587. * @return void
  7588. * @static
  7589. */
  7590. public static function alert($message, $context = [])
  7591. {
  7592. /** @var \Illuminate\Log\LogManager $instance */
  7593. $instance->alert($message, $context);
  7594. }
  7595. /**
  7596. * Critical conditions.
  7597. *
  7598. * Example: Application component unavailable, unexpected exception.
  7599. *
  7600. * @param string $message
  7601. * @param array $context
  7602. * @return void
  7603. * @static
  7604. */
  7605. public static function critical($message, $context = [])
  7606. {
  7607. /** @var \Illuminate\Log\LogManager $instance */
  7608. $instance->critical($message, $context);
  7609. }
  7610. /**
  7611. * Runtime errors that do not require immediate action but should typically
  7612. * be logged and monitored.
  7613. *
  7614. * @param string $message
  7615. * @param array $context
  7616. * @return void
  7617. * @static
  7618. */
  7619. public static function error($message, $context = [])
  7620. {
  7621. /** @var \Illuminate\Log\LogManager $instance */
  7622. $instance->error($message, $context);
  7623. }
  7624. /**
  7625. * Exceptional occurrences that are not errors.
  7626. *
  7627. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  7628. * that are not necessarily wrong.
  7629. *
  7630. * @param string $message
  7631. * @param array $context
  7632. * @return void
  7633. * @static
  7634. */
  7635. public static function warning($message, $context = [])
  7636. {
  7637. /** @var \Illuminate\Log\LogManager $instance */
  7638. $instance->warning($message, $context);
  7639. }
  7640. /**
  7641. * Normal but significant events.
  7642. *
  7643. * @param string $message
  7644. * @param array $context
  7645. * @return void
  7646. * @static
  7647. */
  7648. public static function notice($message, $context = [])
  7649. {
  7650. /** @var \Illuminate\Log\LogManager $instance */
  7651. $instance->notice($message, $context);
  7652. }
  7653. /**
  7654. * Interesting events.
  7655. *
  7656. * Example: User logs in, SQL logs.
  7657. *
  7658. * @param string $message
  7659. * @param array $context
  7660. * @return void
  7661. * @static
  7662. */
  7663. public static function info($message, $context = [])
  7664. {
  7665. /** @var \Illuminate\Log\LogManager $instance */
  7666. $instance->info($message, $context);
  7667. }
  7668. /**
  7669. * Detailed debug information.
  7670. *
  7671. * @param string $message
  7672. * @param array $context
  7673. * @return void
  7674. * @static
  7675. */
  7676. public static function debug($message, $context = [])
  7677. {
  7678. /** @var \Illuminate\Log\LogManager $instance */
  7679. $instance->debug($message, $context);
  7680. }
  7681. /**
  7682. * Logs with an arbitrary level.
  7683. *
  7684. * @param mixed $level
  7685. * @param string $message
  7686. * @param array $context
  7687. * @return void
  7688. * @static
  7689. */
  7690. public static function log($level, $message, $context = [])
  7691. {
  7692. /** @var \Illuminate\Log\LogManager $instance */
  7693. $instance->log($level, $message, $context);
  7694. }
  7695. }
  7696. /**
  7697. * @method static void alwaysFrom(string $address, string|null $name = null)
  7698. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  7699. * @method static void alwaysReturnPath(string $address)
  7700. * @method static void alwaysTo(string $address, string|null $name = null)
  7701. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7702. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7703. * @method static void plain(string $view, array $data, $callback)
  7704. * @method static void html(string $html, $callback)
  7705. * @see \Illuminate\Mail\Mailer
  7706. * @see \Illuminate\Support\Testing\Fakes\MailFake
  7707. */
  7708. class Mail {
  7709. /**
  7710. * Get a mailer instance by name.
  7711. *
  7712. * @param string|null $name
  7713. * @return \Illuminate\Contracts\Mail\Mailer
  7714. * @static
  7715. */
  7716. public static function mailer($name = null)
  7717. {
  7718. /** @var \Illuminate\Mail\MailManager $instance */
  7719. return $instance->mailer($name);
  7720. }
  7721. /**
  7722. * Get a mailer driver instance.
  7723. *
  7724. * @param string|null $driver
  7725. * @return \Illuminate\Mail\Mailer
  7726. * @static
  7727. */
  7728. public static function driver($driver = null)
  7729. {
  7730. /** @var \Illuminate\Mail\MailManager $instance */
  7731. return $instance->driver($driver);
  7732. }
  7733. /**
  7734. * Create a new transport instance.
  7735. *
  7736. * @param array $config
  7737. * @return \Swift_Transport
  7738. * @throws \InvalidArgumentException
  7739. * @static
  7740. */
  7741. public static function createTransport($config)
  7742. {
  7743. /** @var \Illuminate\Mail\MailManager $instance */
  7744. return $instance->createTransport($config);
  7745. }
  7746. /**
  7747. * Get the default mail driver name.
  7748. *
  7749. * @return string
  7750. * @static
  7751. */
  7752. public static function getDefaultDriver()
  7753. {
  7754. /** @var \Illuminate\Mail\MailManager $instance */
  7755. return $instance->getDefaultDriver();
  7756. }
  7757. /**
  7758. * Set the default mail driver name.
  7759. *
  7760. * @param string $name
  7761. * @return void
  7762. * @static
  7763. */
  7764. public static function setDefaultDriver($name)
  7765. {
  7766. /** @var \Illuminate\Mail\MailManager $instance */
  7767. $instance->setDefaultDriver($name);
  7768. }
  7769. /**
  7770. * Disconnect the given mailer and remove from local cache.
  7771. *
  7772. * @param string|null $name
  7773. * @return void
  7774. * @static
  7775. */
  7776. public static function purge($name = null)
  7777. {
  7778. /** @var \Illuminate\Mail\MailManager $instance */
  7779. $instance->purge($name);
  7780. }
  7781. /**
  7782. * Register a custom transport creator Closure.
  7783. *
  7784. * @param string $driver
  7785. * @param \Closure $callback
  7786. * @return \Illuminate\Mail\MailManager
  7787. * @static
  7788. */
  7789. public static function extend($driver, $callback)
  7790. {
  7791. /** @var \Illuminate\Mail\MailManager $instance */
  7792. return $instance->extend($driver, $callback);
  7793. }
  7794. /**
  7795. * Get the application instance used by the manager.
  7796. *
  7797. * @return \Illuminate\Contracts\Foundation\Application
  7798. * @static
  7799. */
  7800. public static function getApplication()
  7801. {
  7802. /** @var \Illuminate\Mail\MailManager $instance */
  7803. return $instance->getApplication();
  7804. }
  7805. /**
  7806. * Set the application instance used by the manager.
  7807. *
  7808. * @param \Illuminate\Contracts\Foundation\Application $app
  7809. * @return \Illuminate\Mail\MailManager
  7810. * @static
  7811. */
  7812. public static function setApplication($app)
  7813. {
  7814. /** @var \Illuminate\Mail\MailManager $instance */
  7815. return $instance->setApplication($app);
  7816. }
  7817. /**
  7818. * Forget all of the resolved mailer instances.
  7819. *
  7820. * @return \Illuminate\Mail\MailManager
  7821. * @static
  7822. */
  7823. public static function forgetMailers()
  7824. {
  7825. /** @var \Illuminate\Mail\MailManager $instance */
  7826. return $instance->forgetMailers();
  7827. }
  7828. /**
  7829. * Assert if a mailable was sent based on a truth-test callback.
  7830. *
  7831. * @param string|\Closure $mailable
  7832. * @param callable|int|null $callback
  7833. * @return void
  7834. * @static
  7835. */
  7836. public static function assertSent($mailable, $callback = null)
  7837. {
  7838. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7839. $instance->assertSent($mailable, $callback);
  7840. }
  7841. /**
  7842. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  7843. *
  7844. * @param string|\Closure $mailable
  7845. * @param callable|null $callback
  7846. * @return void
  7847. * @static
  7848. */
  7849. public static function assertNotOutgoing($mailable, $callback = null)
  7850. {
  7851. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7852. $instance->assertNotOutgoing($mailable, $callback);
  7853. }
  7854. /**
  7855. * Determine if a mailable was not sent based on a truth-test callback.
  7856. *
  7857. * @param string|\Closure $mailable
  7858. * @param callable|null $callback
  7859. * @return void
  7860. * @static
  7861. */
  7862. public static function assertNotSent($mailable, $callback = null)
  7863. {
  7864. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7865. $instance->assertNotSent($mailable, $callback);
  7866. }
  7867. /**
  7868. * Assert that no mailables were sent or queued to be sent.
  7869. *
  7870. * @return void
  7871. * @static
  7872. */
  7873. public static function assertNothingOutgoing()
  7874. {
  7875. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7876. $instance->assertNothingOutgoing();
  7877. }
  7878. /**
  7879. * Assert that no mailables were sent.
  7880. *
  7881. * @return void
  7882. * @static
  7883. */
  7884. public static function assertNothingSent()
  7885. {
  7886. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7887. $instance->assertNothingSent();
  7888. }
  7889. /**
  7890. * Assert if a mailable was queued based on a truth-test callback.
  7891. *
  7892. * @param string|\Closure $mailable
  7893. * @param callable|int|null $callback
  7894. * @return void
  7895. * @static
  7896. */
  7897. public static function assertQueued($mailable, $callback = null)
  7898. {
  7899. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7900. $instance->assertQueued($mailable, $callback);
  7901. }
  7902. /**
  7903. * Determine if a mailable was not queued based on a truth-test callback.
  7904. *
  7905. * @param string|\Closure $mailable
  7906. * @param callable|null $callback
  7907. * @return void
  7908. * @static
  7909. */
  7910. public static function assertNotQueued($mailable, $callback = null)
  7911. {
  7912. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7913. $instance->assertNotQueued($mailable, $callback);
  7914. }
  7915. /**
  7916. * Assert that no mailables were queued.
  7917. *
  7918. * @return void
  7919. * @static
  7920. */
  7921. public static function assertNothingQueued()
  7922. {
  7923. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7924. $instance->assertNothingQueued();
  7925. }
  7926. /**
  7927. * Get all of the mailables matching a truth-test callback.
  7928. *
  7929. * @param string|\Closure $mailable
  7930. * @param callable|null $callback
  7931. * @return \Illuminate\Support\Collection
  7932. * @static
  7933. */
  7934. public static function sent($mailable, $callback = null)
  7935. {
  7936. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7937. return $instance->sent($mailable, $callback);
  7938. }
  7939. /**
  7940. * Determine if the given mailable has been sent.
  7941. *
  7942. * @param string $mailable
  7943. * @return bool
  7944. * @static
  7945. */
  7946. public static function hasSent($mailable)
  7947. {
  7948. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7949. return $instance->hasSent($mailable);
  7950. }
  7951. /**
  7952. * Get all of the queued mailables matching a truth-test callback.
  7953. *
  7954. * @param string|\Closure $mailable
  7955. * @param callable|null $callback
  7956. * @return \Illuminate\Support\Collection
  7957. * @static
  7958. */
  7959. public static function queued($mailable, $callback = null)
  7960. {
  7961. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7962. return $instance->queued($mailable, $callback);
  7963. }
  7964. /**
  7965. * Determine if the given mailable has been queued.
  7966. *
  7967. * @param string $mailable
  7968. * @return bool
  7969. * @static
  7970. */
  7971. public static function hasQueued($mailable)
  7972. {
  7973. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7974. return $instance->hasQueued($mailable);
  7975. }
  7976. /**
  7977. * Begin the process of mailing a mailable class instance.
  7978. *
  7979. * @param mixed $users
  7980. * @return \Illuminate\Mail\PendingMail
  7981. * @static
  7982. */
  7983. public static function to($users)
  7984. {
  7985. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7986. return $instance->to($users);
  7987. }
  7988. /**
  7989. * Begin the process of mailing a mailable class instance.
  7990. *
  7991. * @param mixed $users
  7992. * @return \Illuminate\Mail\PendingMail
  7993. * @static
  7994. */
  7995. public static function bcc($users)
  7996. {
  7997. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7998. return $instance->bcc($users);
  7999. }
  8000. /**
  8001. * Send a new message with only a raw text part.
  8002. *
  8003. * @param string $text
  8004. * @param \Closure|string $callback
  8005. * @return void
  8006. * @static
  8007. */
  8008. public static function raw($text, $callback)
  8009. {
  8010. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8011. $instance->raw($text, $callback);
  8012. }
  8013. /**
  8014. * Send a new message using a view.
  8015. *
  8016. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8017. * @param array $data
  8018. * @param \Closure|string|null $callback
  8019. * @return void
  8020. * @static
  8021. */
  8022. public static function send($view, $data = [], $callback = null)
  8023. {
  8024. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8025. $instance->send($view, $data, $callback);
  8026. }
  8027. /**
  8028. * Queue a new e-mail message for sending.
  8029. *
  8030. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8031. * @param string|null $queue
  8032. * @return mixed
  8033. * @static
  8034. */
  8035. public static function queue($view, $queue = null)
  8036. {
  8037. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8038. return $instance->queue($view, $queue);
  8039. }
  8040. /**
  8041. * Queue a new e-mail message for sending after (n) seconds.
  8042. *
  8043. * @param \DateTimeInterface|\DateInterval|int $delay
  8044. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8045. * @param string|null $queue
  8046. * @return mixed
  8047. * @static
  8048. */
  8049. public static function later($delay, $view, $queue = null)
  8050. {
  8051. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8052. return $instance->later($delay, $view, $queue);
  8053. }
  8054. /**
  8055. * Get the array of failed recipients.
  8056. *
  8057. * @return array
  8058. * @static
  8059. */
  8060. public static function failures()
  8061. {
  8062. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8063. return $instance->failures();
  8064. }
  8065. }
  8066. /**
  8067. * @see \Illuminate\Notifications\ChannelManager
  8068. */
  8069. class Notification {
  8070. /**
  8071. * Send the given notification to the given notifiable entities.
  8072. *
  8073. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8074. * @param mixed $notification
  8075. * @return void
  8076. * @static
  8077. */
  8078. public static function send($notifiables, $notification)
  8079. {
  8080. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8081. $instance->send($notifiables, $notification);
  8082. }
  8083. /**
  8084. * Send the given notification immediately.
  8085. *
  8086. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8087. * @param mixed $notification
  8088. * @param array|null $channels
  8089. * @return void
  8090. * @static
  8091. */
  8092. public static function sendNow($notifiables, $notification, $channels = null)
  8093. {
  8094. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8095. $instance->sendNow($notifiables, $notification, $channels);
  8096. }
  8097. /**
  8098. * Get a channel instance.
  8099. *
  8100. * @param string|null $name
  8101. * @return mixed
  8102. * @static
  8103. */
  8104. public static function channel($name = null)
  8105. {
  8106. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8107. return $instance->channel($name);
  8108. }
  8109. /**
  8110. * Get the default channel driver name.
  8111. *
  8112. * @return string
  8113. * @static
  8114. */
  8115. public static function getDefaultDriver()
  8116. {
  8117. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8118. return $instance->getDefaultDriver();
  8119. }
  8120. /**
  8121. * Get the default channel driver name.
  8122. *
  8123. * @return string
  8124. * @static
  8125. */
  8126. public static function deliversVia()
  8127. {
  8128. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8129. return $instance->deliversVia();
  8130. }
  8131. /**
  8132. * Set the default channel driver name.
  8133. *
  8134. * @param string $channel
  8135. * @return void
  8136. * @static
  8137. */
  8138. public static function deliverVia($channel)
  8139. {
  8140. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8141. $instance->deliverVia($channel);
  8142. }
  8143. /**
  8144. * Set the locale of notifications.
  8145. *
  8146. * @param string $locale
  8147. * @return \Illuminate\Notifications\ChannelManager
  8148. * @static
  8149. */
  8150. public static function locale($locale)
  8151. {
  8152. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8153. return $instance->locale($locale);
  8154. }
  8155. /**
  8156. * Get a driver instance.
  8157. *
  8158. * @param string|null $driver
  8159. * @return mixed
  8160. * @throws \InvalidArgumentException
  8161. * @static
  8162. */
  8163. public static function driver($driver = null)
  8164. { //Method inherited from \Illuminate\Support\Manager
  8165. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8166. return $instance->driver($driver);
  8167. }
  8168. /**
  8169. * Register a custom driver creator Closure.
  8170. *
  8171. * @param string $driver
  8172. * @param \Closure $callback
  8173. * @return \Illuminate\Notifications\ChannelManager
  8174. * @static
  8175. */
  8176. public static function extend($driver, $callback)
  8177. { //Method inherited from \Illuminate\Support\Manager
  8178. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8179. return $instance->extend($driver, $callback);
  8180. }
  8181. /**
  8182. * Get all of the created "drivers".
  8183. *
  8184. * @return array
  8185. * @static
  8186. */
  8187. public static function getDrivers()
  8188. { //Method inherited from \Illuminate\Support\Manager
  8189. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8190. return $instance->getDrivers();
  8191. }
  8192. /**
  8193. * Get the container instance used by the manager.
  8194. *
  8195. * @return \Illuminate\Contracts\Container\Container
  8196. * @static
  8197. */
  8198. public static function getContainer()
  8199. { //Method inherited from \Illuminate\Support\Manager
  8200. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8201. return $instance->getContainer();
  8202. }
  8203. /**
  8204. * Set the container instance used by the manager.
  8205. *
  8206. * @param \Illuminate\Contracts\Container\Container $container
  8207. * @return \Illuminate\Notifications\ChannelManager
  8208. * @static
  8209. */
  8210. public static function setContainer($container)
  8211. { //Method inherited from \Illuminate\Support\Manager
  8212. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8213. return $instance->setContainer($container);
  8214. }
  8215. /**
  8216. * Forget all of the resolved driver instances.
  8217. *
  8218. * @return \Illuminate\Notifications\ChannelManager
  8219. * @static
  8220. */
  8221. public static function forgetDrivers()
  8222. { //Method inherited from \Illuminate\Support\Manager
  8223. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8224. return $instance->forgetDrivers();
  8225. }
  8226. /**
  8227. * Assert if a notification was sent on-demand based on a truth-test callback.
  8228. *
  8229. * @param string|\Closure $notification
  8230. * @param callable|null $callback
  8231. * @return void
  8232. * @throws \Exception
  8233. * @static
  8234. */
  8235. public static function assertSentOnDemand($notification, $callback = null)
  8236. {
  8237. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8238. $instance->assertSentOnDemand($notification, $callback);
  8239. }
  8240. /**
  8241. * Assert if a notification was sent based on a truth-test callback.
  8242. *
  8243. * @param mixed $notifiable
  8244. * @param string|\Closure $notification
  8245. * @param callable|null $callback
  8246. * @return void
  8247. * @throws \Exception
  8248. * @static
  8249. */
  8250. public static function assertSentTo($notifiable, $notification, $callback = null)
  8251. {
  8252. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8253. $instance->assertSentTo($notifiable, $notification, $callback);
  8254. }
  8255. /**
  8256. * Assert if a notification was sent on-demand a number of times.
  8257. *
  8258. * @param string $notification
  8259. * @param int $times
  8260. * @return void
  8261. * @static
  8262. */
  8263. public static function assertSentOnDemandTimes($notification, $times = 1)
  8264. {
  8265. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8266. $instance->assertSentOnDemandTimes($notification, $times);
  8267. }
  8268. /**
  8269. * Assert if a notification was sent a number of times.
  8270. *
  8271. * @param mixed $notifiable
  8272. * @param string $notification
  8273. * @param int $times
  8274. * @return void
  8275. * @static
  8276. */
  8277. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  8278. {
  8279. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8280. $instance->assertSentToTimes($notifiable, $notification, $times);
  8281. }
  8282. /**
  8283. * Determine if a notification was sent based on a truth-test callback.
  8284. *
  8285. * @param mixed $notifiable
  8286. * @param string|\Closure $notification
  8287. * @param callable|null $callback
  8288. * @return void
  8289. * @throws \Exception
  8290. * @static
  8291. */
  8292. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  8293. {
  8294. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8295. $instance->assertNotSentTo($notifiable, $notification, $callback);
  8296. }
  8297. /**
  8298. * Assert that no notifications were sent.
  8299. *
  8300. * @return void
  8301. * @static
  8302. */
  8303. public static function assertNothingSent()
  8304. {
  8305. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8306. $instance->assertNothingSent();
  8307. }
  8308. /**
  8309. * Assert the total amount of times a notification was sent.
  8310. *
  8311. * @param string $notification
  8312. * @param int $expectedCount
  8313. * @return void
  8314. * @static
  8315. */
  8316. public static function assertSentTimes($notification, $expectedCount)
  8317. {
  8318. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8319. $instance->assertSentTimes($notification, $expectedCount);
  8320. }
  8321. /**
  8322. * Assert the total amount of times a notification was sent.
  8323. *
  8324. * @param int $expectedCount
  8325. * @param string $notification
  8326. * @return void
  8327. * @deprecated Use the assertSentTimes method instead
  8328. * @static
  8329. */
  8330. public static function assertTimesSent($expectedCount, $notification)
  8331. {
  8332. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8333. $instance->assertTimesSent($expectedCount, $notification);
  8334. }
  8335. /**
  8336. * Get all of the notifications matching a truth-test callback.
  8337. *
  8338. * @param mixed $notifiable
  8339. * @param string $notification
  8340. * @param callable|null $callback
  8341. * @return \Illuminate\Support\Collection
  8342. * @static
  8343. */
  8344. public static function sent($notifiable, $notification, $callback = null)
  8345. {
  8346. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8347. return $instance->sent($notifiable, $notification, $callback);
  8348. }
  8349. /**
  8350. * Determine if there are more notifications left to inspect.
  8351. *
  8352. * @param mixed $notifiable
  8353. * @param string $notification
  8354. * @return bool
  8355. * @static
  8356. */
  8357. public static function hasSent($notifiable, $notification)
  8358. {
  8359. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8360. return $instance->hasSent($notifiable, $notification);
  8361. }
  8362. /**
  8363. * Register a custom macro.
  8364. *
  8365. * @param string $name
  8366. * @param object|callable $macro
  8367. * @return void
  8368. * @static
  8369. */
  8370. public static function macro($name, $macro)
  8371. {
  8372. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  8373. }
  8374. /**
  8375. * Mix another object into the class.
  8376. *
  8377. * @param object $mixin
  8378. * @param bool $replace
  8379. * @return void
  8380. * @throws \ReflectionException
  8381. * @static
  8382. */
  8383. public static function mixin($mixin, $replace = true)
  8384. {
  8385. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  8386. }
  8387. /**
  8388. * Checks if macro is registered.
  8389. *
  8390. * @param string $name
  8391. * @return bool
  8392. * @static
  8393. */
  8394. public static function hasMacro($name)
  8395. {
  8396. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  8397. }
  8398. /**
  8399. * Flush the existing macros.
  8400. *
  8401. * @return void
  8402. * @static
  8403. */
  8404. public static function flushMacros()
  8405. {
  8406. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  8407. }
  8408. }
  8409. /**
  8410. * @method static mixed reset(array $credentials, \Closure $callback)
  8411. * @method static string sendResetLink(array $credentials, \Closure $callback = null)
  8412. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  8413. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8414. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8415. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  8416. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  8417. * @see \Illuminate\Auth\Passwords\PasswordBroker
  8418. */
  8419. class Password {
  8420. /**
  8421. * Attempt to get the broker from the local cache.
  8422. *
  8423. * @param string|null $name
  8424. * @return \Illuminate\Contracts\Auth\PasswordBroker
  8425. * @static
  8426. */
  8427. public static function broker($name = null)
  8428. {
  8429. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8430. return $instance->broker($name);
  8431. }
  8432. /**
  8433. * Get the default password broker name.
  8434. *
  8435. * @return string
  8436. * @static
  8437. */
  8438. public static function getDefaultDriver()
  8439. {
  8440. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8441. return $instance->getDefaultDriver();
  8442. }
  8443. /**
  8444. * Set the default password broker name.
  8445. *
  8446. * @param string $name
  8447. * @return void
  8448. * @static
  8449. */
  8450. public static function setDefaultDriver($name)
  8451. {
  8452. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8453. $instance->setDefaultDriver($name);
  8454. }
  8455. }
  8456. /**
  8457. * @see \Illuminate\Queue\QueueManager
  8458. * @see \Illuminate\Queue\Queue
  8459. */
  8460. class Queue {
  8461. /**
  8462. * Register an event listener for the before job event.
  8463. *
  8464. * @param mixed $callback
  8465. * @return void
  8466. * @static
  8467. */
  8468. public static function before($callback)
  8469. {
  8470. /** @var \Illuminate\Queue\QueueManager $instance */
  8471. $instance->before($callback);
  8472. }
  8473. /**
  8474. * Register an event listener for the after job event.
  8475. *
  8476. * @param mixed $callback
  8477. * @return void
  8478. * @static
  8479. */
  8480. public static function after($callback)
  8481. {
  8482. /** @var \Illuminate\Queue\QueueManager $instance */
  8483. $instance->after($callback);
  8484. }
  8485. /**
  8486. * Register an event listener for the exception occurred job event.
  8487. *
  8488. * @param mixed $callback
  8489. * @return void
  8490. * @static
  8491. */
  8492. public static function exceptionOccurred($callback)
  8493. {
  8494. /** @var \Illuminate\Queue\QueueManager $instance */
  8495. $instance->exceptionOccurred($callback);
  8496. }
  8497. /**
  8498. * Register an event listener for the daemon queue loop.
  8499. *
  8500. * @param mixed $callback
  8501. * @return void
  8502. * @static
  8503. */
  8504. public static function looping($callback)
  8505. {
  8506. /** @var \Illuminate\Queue\QueueManager $instance */
  8507. $instance->looping($callback);
  8508. }
  8509. /**
  8510. * Register an event listener for the failed job event.
  8511. *
  8512. * @param mixed $callback
  8513. * @return void
  8514. * @static
  8515. */
  8516. public static function failing($callback)
  8517. {
  8518. /** @var \Illuminate\Queue\QueueManager $instance */
  8519. $instance->failing($callback);
  8520. }
  8521. /**
  8522. * Register an event listener for the daemon queue stopping.
  8523. *
  8524. * @param mixed $callback
  8525. * @return void
  8526. * @static
  8527. */
  8528. public static function stopping($callback)
  8529. {
  8530. /** @var \Illuminate\Queue\QueueManager $instance */
  8531. $instance->stopping($callback);
  8532. }
  8533. /**
  8534. * Determine if the driver is connected.
  8535. *
  8536. * @param string|null $name
  8537. * @return bool
  8538. * @static
  8539. */
  8540. public static function connected($name = null)
  8541. {
  8542. /** @var \Illuminate\Queue\QueueManager $instance */
  8543. return $instance->connected($name);
  8544. }
  8545. /**
  8546. * Resolve a queue connection instance.
  8547. *
  8548. * @param string|null $name
  8549. * @return \Illuminate\Contracts\Queue\Queue
  8550. * @static
  8551. */
  8552. public static function connection($name = null)
  8553. {
  8554. /** @var \Illuminate\Queue\QueueManager $instance */
  8555. return $instance->connection($name);
  8556. }
  8557. /**
  8558. * Add a queue connection resolver.
  8559. *
  8560. * @param string $driver
  8561. * @param \Closure $resolver
  8562. * @return void
  8563. * @static
  8564. */
  8565. public static function extend($driver, $resolver)
  8566. {
  8567. /** @var \Illuminate\Queue\QueueManager $instance */
  8568. $instance->extend($driver, $resolver);
  8569. }
  8570. /**
  8571. * Add a queue connection resolver.
  8572. *
  8573. * @param string $driver
  8574. * @param \Closure $resolver
  8575. * @return void
  8576. * @static
  8577. */
  8578. public static function addConnector($driver, $resolver)
  8579. {
  8580. /** @var \Illuminate\Queue\QueueManager $instance */
  8581. $instance->addConnector($driver, $resolver);
  8582. }
  8583. /**
  8584. * Get the name of the default queue connection.
  8585. *
  8586. * @return string
  8587. * @static
  8588. */
  8589. public static function getDefaultDriver()
  8590. {
  8591. /** @var \Illuminate\Queue\QueueManager $instance */
  8592. return $instance->getDefaultDriver();
  8593. }
  8594. /**
  8595. * Set the name of the default queue connection.
  8596. *
  8597. * @param string $name
  8598. * @return void
  8599. * @static
  8600. */
  8601. public static function setDefaultDriver($name)
  8602. {
  8603. /** @var \Illuminate\Queue\QueueManager $instance */
  8604. $instance->setDefaultDriver($name);
  8605. }
  8606. /**
  8607. * Get the full name for the given connection.
  8608. *
  8609. * @param string|null $connection
  8610. * @return string
  8611. * @static
  8612. */
  8613. public static function getName($connection = null)
  8614. {
  8615. /** @var \Illuminate\Queue\QueueManager $instance */
  8616. return $instance->getName($connection);
  8617. }
  8618. /**
  8619. * Get the application instance used by the manager.
  8620. *
  8621. * @return \Illuminate\Contracts\Foundation\Application
  8622. * @static
  8623. */
  8624. public static function getApplication()
  8625. {
  8626. /** @var \Illuminate\Queue\QueueManager $instance */
  8627. return $instance->getApplication();
  8628. }
  8629. /**
  8630. * Set the application instance used by the manager.
  8631. *
  8632. * @param \Illuminate\Contracts\Foundation\Application $app
  8633. * @return \Illuminate\Queue\QueueManager
  8634. * @static
  8635. */
  8636. public static function setApplication($app)
  8637. {
  8638. /** @var \Illuminate\Queue\QueueManager $instance */
  8639. return $instance->setApplication($app);
  8640. }
  8641. /**
  8642. * Assert if a job was pushed based on a truth-test callback.
  8643. *
  8644. * @param string|\Closure $job
  8645. * @param callable|int|null $callback
  8646. * @return void
  8647. * @static
  8648. */
  8649. public static function assertPushed($job, $callback = null)
  8650. {
  8651. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8652. $instance->assertPushed($job, $callback);
  8653. }
  8654. /**
  8655. * Assert if a job was pushed based on a truth-test callback.
  8656. *
  8657. * @param string $queue
  8658. * @param string|\Closure $job
  8659. * @param callable|null $callback
  8660. * @return void
  8661. * @static
  8662. */
  8663. public static function assertPushedOn($queue, $job, $callback = null)
  8664. {
  8665. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8666. $instance->assertPushedOn($queue, $job, $callback);
  8667. }
  8668. /**
  8669. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  8670. *
  8671. * @param string $job
  8672. * @param array $expectedChain
  8673. * @param callable|null $callback
  8674. * @return void
  8675. * @static
  8676. */
  8677. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  8678. {
  8679. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8680. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  8681. }
  8682. /**
  8683. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  8684. *
  8685. * @param string $job
  8686. * @param callable|null $callback
  8687. * @return void
  8688. * @static
  8689. */
  8690. public static function assertPushedWithoutChain($job, $callback = null)
  8691. {
  8692. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8693. $instance->assertPushedWithoutChain($job, $callback);
  8694. }
  8695. /**
  8696. * Determine if a job was pushed based on a truth-test callback.
  8697. *
  8698. * @param string|\Closure $job
  8699. * @param callable|null $callback
  8700. * @return void
  8701. * @static
  8702. */
  8703. public static function assertNotPushed($job, $callback = null)
  8704. {
  8705. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8706. $instance->assertNotPushed($job, $callback);
  8707. }
  8708. /**
  8709. * Assert that no jobs were pushed.
  8710. *
  8711. * @return void
  8712. * @static
  8713. */
  8714. public static function assertNothingPushed()
  8715. {
  8716. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8717. $instance->assertNothingPushed();
  8718. }
  8719. /**
  8720. * Get all of the jobs matching a truth-test callback.
  8721. *
  8722. * @param string $job
  8723. * @param callable|null $callback
  8724. * @return \Illuminate\Support\Collection
  8725. * @static
  8726. */
  8727. public static function pushed($job, $callback = null)
  8728. {
  8729. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8730. return $instance->pushed($job, $callback);
  8731. }
  8732. /**
  8733. * Determine if there are any stored jobs for a given class.
  8734. *
  8735. * @param string $job
  8736. * @return bool
  8737. * @static
  8738. */
  8739. public static function hasPushed($job)
  8740. {
  8741. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8742. return $instance->hasPushed($job);
  8743. }
  8744. /**
  8745. * Get the size of the queue.
  8746. *
  8747. * @param string|null $queue
  8748. * @return int
  8749. * @static
  8750. */
  8751. public static function size($queue = null)
  8752. {
  8753. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8754. return $instance->size($queue);
  8755. }
  8756. /**
  8757. * Push a new job onto the queue.
  8758. *
  8759. * @param string|object $job
  8760. * @param mixed $data
  8761. * @param string|null $queue
  8762. * @return mixed
  8763. * @static
  8764. */
  8765. public static function push($job, $data = '', $queue = null)
  8766. {
  8767. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8768. return $instance->push($job, $data, $queue);
  8769. }
  8770. /**
  8771. * Push a raw payload onto the queue.
  8772. *
  8773. * @param string $payload
  8774. * @param string|null $queue
  8775. * @param array $options
  8776. * @return mixed
  8777. * @static
  8778. */
  8779. public static function pushRaw($payload, $queue = null, $options = [])
  8780. {
  8781. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8782. return $instance->pushRaw($payload, $queue, $options);
  8783. }
  8784. /**
  8785. * Push a new job onto the queue after a delay.
  8786. *
  8787. * @param \DateTimeInterface|\DateInterval|int $delay
  8788. * @param string|object $job
  8789. * @param mixed $data
  8790. * @param string|null $queue
  8791. * @return mixed
  8792. * @static
  8793. */
  8794. public static function later($delay, $job, $data = '', $queue = null)
  8795. {
  8796. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8797. return $instance->later($delay, $job, $data, $queue);
  8798. }
  8799. /**
  8800. * Push a new job onto the queue.
  8801. *
  8802. * @param string $queue
  8803. * @param string|object $job
  8804. * @param mixed $data
  8805. * @return mixed
  8806. * @static
  8807. */
  8808. public static function pushOn($queue, $job, $data = '')
  8809. {
  8810. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8811. return $instance->pushOn($queue, $job, $data);
  8812. }
  8813. /**
  8814. * Push a new job onto the queue after a delay.
  8815. *
  8816. * @param string $queue
  8817. * @param \DateTimeInterface|\DateInterval|int $delay
  8818. * @param string|object $job
  8819. * @param mixed $data
  8820. * @return mixed
  8821. * @static
  8822. */
  8823. public static function laterOn($queue, $delay, $job, $data = '')
  8824. {
  8825. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8826. return $instance->laterOn($queue, $delay, $job, $data);
  8827. }
  8828. /**
  8829. * Pop the next job off of the queue.
  8830. *
  8831. * @param string|null $queue
  8832. * @return \Illuminate\Contracts\Queue\Job|null
  8833. * @static
  8834. */
  8835. public static function pop($queue = null)
  8836. {
  8837. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8838. return $instance->pop($queue);
  8839. }
  8840. /**
  8841. * Push an array of jobs onto the queue.
  8842. *
  8843. * @param array $jobs
  8844. * @param mixed $data
  8845. * @param string|null $queue
  8846. * @return mixed
  8847. * @static
  8848. */
  8849. public static function bulk($jobs, $data = '', $queue = null)
  8850. {
  8851. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8852. return $instance->bulk($jobs, $data, $queue);
  8853. }
  8854. /**
  8855. * Get the jobs that have been pushed.
  8856. *
  8857. * @return array
  8858. * @static
  8859. */
  8860. public static function pushedJobs()
  8861. {
  8862. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8863. return $instance->pushedJobs();
  8864. }
  8865. /**
  8866. * Get the connection name for the queue.
  8867. *
  8868. * @return string
  8869. * @static
  8870. */
  8871. public static function getConnectionName()
  8872. {
  8873. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8874. return $instance->getConnectionName();
  8875. }
  8876. /**
  8877. * Set the connection name for the queue.
  8878. *
  8879. * @param string $name
  8880. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  8881. * @static
  8882. */
  8883. public static function setConnectionName($name)
  8884. {
  8885. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8886. return $instance->setConnectionName($name);
  8887. }
  8888. /**
  8889. * Get the backoff for an object-based queue handler.
  8890. *
  8891. * @param mixed $job
  8892. * @return mixed
  8893. * @static
  8894. */
  8895. public static function getJobBackoff($job)
  8896. { //Method inherited from \Illuminate\Queue\Queue
  8897. /** @var \Illuminate\Queue\SyncQueue $instance */
  8898. return $instance->getJobBackoff($job);
  8899. }
  8900. /**
  8901. * Get the expiration timestamp for an object-based queue handler.
  8902. *
  8903. * @param mixed $job
  8904. * @return mixed
  8905. * @static
  8906. */
  8907. public static function getJobExpiration($job)
  8908. { //Method inherited from \Illuminate\Queue\Queue
  8909. /** @var \Illuminate\Queue\SyncQueue $instance */
  8910. return $instance->getJobExpiration($job);
  8911. }
  8912. /**
  8913. * Register a callback to be executed when creating job payloads.
  8914. *
  8915. * @param callable|null $callback
  8916. * @return void
  8917. * @static
  8918. */
  8919. public static function createPayloadUsing($callback)
  8920. { //Method inherited from \Illuminate\Queue\Queue
  8921. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  8922. }
  8923. /**
  8924. * Get the container instance being used by the connection.
  8925. *
  8926. * @return \Illuminate\Container\Container
  8927. * @static
  8928. */
  8929. public static function getContainer()
  8930. { //Method inherited from \Illuminate\Queue\Queue
  8931. /** @var \Illuminate\Queue\SyncQueue $instance */
  8932. return $instance->getContainer();
  8933. }
  8934. /**
  8935. * Set the IoC container instance.
  8936. *
  8937. * @param \Illuminate\Container\Container $container
  8938. * @return void
  8939. * @static
  8940. */
  8941. public static function setContainer($container)
  8942. { //Method inherited from \Illuminate\Queue\Queue
  8943. /** @var \Illuminate\Queue\SyncQueue $instance */
  8944. $instance->setContainer($container);
  8945. }
  8946. }
  8947. /**
  8948. * @see \Illuminate\Routing\Redirector
  8949. */
  8950. class Redirect {
  8951. /**
  8952. * Create a new redirect response to the "home" route.
  8953. *
  8954. * @param int $status
  8955. * @return \Illuminate\Http\RedirectResponse
  8956. * @static
  8957. */
  8958. public static function home($status = 302)
  8959. {
  8960. /** @var \Illuminate\Routing\Redirector $instance */
  8961. return $instance->home($status);
  8962. }
  8963. /**
  8964. * Create a new redirect response to the previous location.
  8965. *
  8966. * @param int $status
  8967. * @param array $headers
  8968. * @param mixed $fallback
  8969. * @return \Illuminate\Http\RedirectResponse
  8970. * @static
  8971. */
  8972. public static function back($status = 302, $headers = [], $fallback = false)
  8973. {
  8974. /** @var \Illuminate\Routing\Redirector $instance */
  8975. return $instance->back($status, $headers, $fallback);
  8976. }
  8977. /**
  8978. * Create a new redirect response to the current URI.
  8979. *
  8980. * @param int $status
  8981. * @param array $headers
  8982. * @return \Illuminate\Http\RedirectResponse
  8983. * @static
  8984. */
  8985. public static function refresh($status = 302, $headers = [])
  8986. {
  8987. /** @var \Illuminate\Routing\Redirector $instance */
  8988. return $instance->refresh($status, $headers);
  8989. }
  8990. /**
  8991. * Create a new redirect response, while putting the current URL in the session.
  8992. *
  8993. * @param string $path
  8994. * @param int $status
  8995. * @param array $headers
  8996. * @param bool|null $secure
  8997. * @return \Illuminate\Http\RedirectResponse
  8998. * @static
  8999. */
  9000. public static function guest($path, $status = 302, $headers = [], $secure = null)
  9001. {
  9002. /** @var \Illuminate\Routing\Redirector $instance */
  9003. return $instance->guest($path, $status, $headers, $secure);
  9004. }
  9005. /**
  9006. * Create a new redirect response to the previously intended location.
  9007. *
  9008. * @param string $default
  9009. * @param int $status
  9010. * @param array $headers
  9011. * @param bool|null $secure
  9012. * @return \Illuminate\Http\RedirectResponse
  9013. * @static
  9014. */
  9015. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  9016. {
  9017. /** @var \Illuminate\Routing\Redirector $instance */
  9018. return $instance->intended($default, $status, $headers, $secure);
  9019. }
  9020. /**
  9021. * Set the intended url.
  9022. *
  9023. * @param string $url
  9024. * @return void
  9025. * @static
  9026. */
  9027. public static function setIntendedUrl($url)
  9028. {
  9029. /** @var \Illuminate\Routing\Redirector $instance */
  9030. $instance->setIntendedUrl($url);
  9031. }
  9032. /**
  9033. * Create a new redirect response to the given path.
  9034. *
  9035. * @param string $path
  9036. * @param int $status
  9037. * @param array $headers
  9038. * @param bool|null $secure
  9039. * @return \Illuminate\Http\RedirectResponse
  9040. * @static
  9041. */
  9042. public static function to($path, $status = 302, $headers = [], $secure = null)
  9043. {
  9044. /** @var \Illuminate\Routing\Redirector $instance */
  9045. return $instance->to($path, $status, $headers, $secure);
  9046. }
  9047. /**
  9048. * Create a new redirect response to an external URL (no validation).
  9049. *
  9050. * @param string $path
  9051. * @param int $status
  9052. * @param array $headers
  9053. * @return \Illuminate\Http\RedirectResponse
  9054. * @static
  9055. */
  9056. public static function away($path, $status = 302, $headers = [])
  9057. {
  9058. /** @var \Illuminate\Routing\Redirector $instance */
  9059. return $instance->away($path, $status, $headers);
  9060. }
  9061. /**
  9062. * Create a new redirect response to the given HTTPS path.
  9063. *
  9064. * @param string $path
  9065. * @param int $status
  9066. * @param array $headers
  9067. * @return \Illuminate\Http\RedirectResponse
  9068. * @static
  9069. */
  9070. public static function secure($path, $status = 302, $headers = [])
  9071. {
  9072. /** @var \Illuminate\Routing\Redirector $instance */
  9073. return $instance->secure($path, $status, $headers);
  9074. }
  9075. /**
  9076. * Create a new redirect response to a named route.
  9077. *
  9078. * @param string $route
  9079. * @param mixed $parameters
  9080. * @param int $status
  9081. * @param array $headers
  9082. * @return \Illuminate\Http\RedirectResponse
  9083. * @static
  9084. */
  9085. public static function route($route, $parameters = [], $status = 302, $headers = [])
  9086. {
  9087. /** @var \Illuminate\Routing\Redirector $instance */
  9088. return $instance->route($route, $parameters, $status, $headers);
  9089. }
  9090. /**
  9091. * Create a new redirect response to a signed named route.
  9092. *
  9093. * @param string $route
  9094. * @param mixed $parameters
  9095. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9096. * @param int $status
  9097. * @param array $headers
  9098. * @return \Illuminate\Http\RedirectResponse
  9099. * @static
  9100. */
  9101. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  9102. {
  9103. /** @var \Illuminate\Routing\Redirector $instance */
  9104. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  9105. }
  9106. /**
  9107. * Create a new redirect response to a signed named route.
  9108. *
  9109. * @param string $route
  9110. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9111. * @param mixed $parameters
  9112. * @param int $status
  9113. * @param array $headers
  9114. * @return \Illuminate\Http\RedirectResponse
  9115. * @static
  9116. */
  9117. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  9118. {
  9119. /** @var \Illuminate\Routing\Redirector $instance */
  9120. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  9121. }
  9122. /**
  9123. * Create a new redirect response to a controller action.
  9124. *
  9125. * @param string|array $action
  9126. * @param mixed $parameters
  9127. * @param int $status
  9128. * @param array $headers
  9129. * @return \Illuminate\Http\RedirectResponse
  9130. * @static
  9131. */
  9132. public static function action($action, $parameters = [], $status = 302, $headers = [])
  9133. {
  9134. /** @var \Illuminate\Routing\Redirector $instance */
  9135. return $instance->action($action, $parameters, $status, $headers);
  9136. }
  9137. /**
  9138. * Get the URL generator instance.
  9139. *
  9140. * @return \Illuminate\Routing\UrlGenerator
  9141. * @static
  9142. */
  9143. public static function getUrlGenerator()
  9144. {
  9145. /** @var \Illuminate\Routing\Redirector $instance */
  9146. return $instance->getUrlGenerator();
  9147. }
  9148. /**
  9149. * Set the active session store.
  9150. *
  9151. * @param \Illuminate\Session\Store $session
  9152. * @return void
  9153. * @static
  9154. */
  9155. public static function setSession($session)
  9156. {
  9157. /** @var \Illuminate\Routing\Redirector $instance */
  9158. $instance->setSession($session);
  9159. }
  9160. /**
  9161. * Register a custom macro.
  9162. *
  9163. * @param string $name
  9164. * @param object|callable $macro
  9165. * @return void
  9166. * @static
  9167. */
  9168. public static function macro($name, $macro)
  9169. {
  9170. \Illuminate\Routing\Redirector::macro($name, $macro);
  9171. }
  9172. /**
  9173. * Mix another object into the class.
  9174. *
  9175. * @param object $mixin
  9176. * @param bool $replace
  9177. * @return void
  9178. * @throws \ReflectionException
  9179. * @static
  9180. */
  9181. public static function mixin($mixin, $replace = true)
  9182. {
  9183. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  9184. }
  9185. /**
  9186. * Checks if macro is registered.
  9187. *
  9188. * @param string $name
  9189. * @return bool
  9190. * @static
  9191. */
  9192. public static function hasMacro($name)
  9193. {
  9194. return \Illuminate\Routing\Redirector::hasMacro($name);
  9195. }
  9196. /**
  9197. * Flush the existing macros.
  9198. *
  9199. * @return void
  9200. * @static
  9201. */
  9202. public static function flushMacros()
  9203. {
  9204. \Illuminate\Routing\Redirector::flushMacros();
  9205. }
  9206. }
  9207. /**
  9208. * @method static mixed filterFiles(mixed $files)
  9209. * @see \Illuminate\Http\Request
  9210. */
  9211. class Request {
  9212. /**
  9213. * Create a new Illuminate HTTP request from server variables.
  9214. *
  9215. * @return static
  9216. * @static
  9217. */
  9218. public static function capture()
  9219. {
  9220. return \Illuminate\Http\Request::capture();
  9221. }
  9222. /**
  9223. * Return the Request instance.
  9224. *
  9225. * @return \Illuminate\Http\Request
  9226. * @static
  9227. */
  9228. public static function instance()
  9229. {
  9230. /** @var \Illuminate\Http\Request $instance */
  9231. return $instance->instance();
  9232. }
  9233. /**
  9234. * Get the request method.
  9235. *
  9236. * @return string
  9237. * @static
  9238. */
  9239. public static function method()
  9240. {
  9241. /** @var \Illuminate\Http\Request $instance */
  9242. return $instance->method();
  9243. }
  9244. /**
  9245. * Get the root URL for the application.
  9246. *
  9247. * @return string
  9248. * @static
  9249. */
  9250. public static function root()
  9251. {
  9252. /** @var \Illuminate\Http\Request $instance */
  9253. return $instance->root();
  9254. }
  9255. /**
  9256. * Get the URL (no query string) for the request.
  9257. *
  9258. * @return string
  9259. * @static
  9260. */
  9261. public static function url()
  9262. {
  9263. /** @var \Illuminate\Http\Request $instance */
  9264. return $instance->url();
  9265. }
  9266. /**
  9267. * Get the full URL for the request.
  9268. *
  9269. * @return string
  9270. * @static
  9271. */
  9272. public static function fullUrl()
  9273. {
  9274. /** @var \Illuminate\Http\Request $instance */
  9275. return $instance->fullUrl();
  9276. }
  9277. /**
  9278. * Get the full URL for the request with the added query string parameters.
  9279. *
  9280. * @param array $query
  9281. * @return string
  9282. * @static
  9283. */
  9284. public static function fullUrlWithQuery($query)
  9285. {
  9286. /** @var \Illuminate\Http\Request $instance */
  9287. return $instance->fullUrlWithQuery($query);
  9288. }
  9289. /**
  9290. * Get the full URL for the request without the given query string parameters.
  9291. *
  9292. * @param array|string $query
  9293. * @return string
  9294. * @static
  9295. */
  9296. public static function fullUrlWithoutQuery($keys)
  9297. {
  9298. /** @var \Illuminate\Http\Request $instance */
  9299. return $instance->fullUrlWithoutQuery($keys);
  9300. }
  9301. /**
  9302. * Get the current path info for the request.
  9303. *
  9304. * @return string
  9305. * @static
  9306. */
  9307. public static function path()
  9308. {
  9309. /** @var \Illuminate\Http\Request $instance */
  9310. return $instance->path();
  9311. }
  9312. /**
  9313. * Get the current decoded path info for the request.
  9314. *
  9315. * @return string
  9316. * @static
  9317. */
  9318. public static function decodedPath()
  9319. {
  9320. /** @var \Illuminate\Http\Request $instance */
  9321. return $instance->decodedPath();
  9322. }
  9323. /**
  9324. * Get a segment from the URI (1 based index).
  9325. *
  9326. * @param int $index
  9327. * @param string|null $default
  9328. * @return string|null
  9329. * @static
  9330. */
  9331. public static function segment($index, $default = null)
  9332. {
  9333. /** @var \Illuminate\Http\Request $instance */
  9334. return $instance->segment($index, $default);
  9335. }
  9336. /**
  9337. * Get all of the segments for the request path.
  9338. *
  9339. * @return array
  9340. * @static
  9341. */
  9342. public static function segments()
  9343. {
  9344. /** @var \Illuminate\Http\Request $instance */
  9345. return $instance->segments();
  9346. }
  9347. /**
  9348. * Determine if the current request URI matches a pattern.
  9349. *
  9350. * @param mixed $patterns
  9351. * @return bool
  9352. * @static
  9353. */
  9354. public static function is(...$patterns)
  9355. {
  9356. /** @var \Illuminate\Http\Request $instance */
  9357. return $instance->is(...$patterns);
  9358. }
  9359. /**
  9360. * Determine if the route name matches a given pattern.
  9361. *
  9362. * @param mixed $patterns
  9363. * @return bool
  9364. * @static
  9365. */
  9366. public static function routeIs(...$patterns)
  9367. {
  9368. /** @var \Illuminate\Http\Request $instance */
  9369. return $instance->routeIs(...$patterns);
  9370. }
  9371. /**
  9372. * Determine if the current request URL and query string match a pattern.
  9373. *
  9374. * @param mixed $patterns
  9375. * @return bool
  9376. * @static
  9377. */
  9378. public static function fullUrlIs(...$patterns)
  9379. {
  9380. /** @var \Illuminate\Http\Request $instance */
  9381. return $instance->fullUrlIs(...$patterns);
  9382. }
  9383. /**
  9384. * Determine if the request is the result of an AJAX call.
  9385. *
  9386. * @return bool
  9387. * @static
  9388. */
  9389. public static function ajax()
  9390. {
  9391. /** @var \Illuminate\Http\Request $instance */
  9392. return $instance->ajax();
  9393. }
  9394. /**
  9395. * Determine if the request is the result of a PJAX call.
  9396. *
  9397. * @return bool
  9398. * @static
  9399. */
  9400. public static function pjax()
  9401. {
  9402. /** @var \Illuminate\Http\Request $instance */
  9403. return $instance->pjax();
  9404. }
  9405. /**
  9406. * Determine if the request is the result of a prefetch call.
  9407. *
  9408. * @return bool
  9409. * @static
  9410. */
  9411. public static function prefetch()
  9412. {
  9413. /** @var \Illuminate\Http\Request $instance */
  9414. return $instance->prefetch();
  9415. }
  9416. /**
  9417. * Determine if the request is over HTTPS.
  9418. *
  9419. * @return bool
  9420. * @static
  9421. */
  9422. public static function secure()
  9423. {
  9424. /** @var \Illuminate\Http\Request $instance */
  9425. return $instance->secure();
  9426. }
  9427. /**
  9428. * Get the client IP address.
  9429. *
  9430. * @return string|null
  9431. * @static
  9432. */
  9433. public static function ip()
  9434. {
  9435. /** @var \Illuminate\Http\Request $instance */
  9436. return $instance->ip();
  9437. }
  9438. /**
  9439. * Get the client IP addresses.
  9440. *
  9441. * @return array
  9442. * @static
  9443. */
  9444. public static function ips()
  9445. {
  9446. /** @var \Illuminate\Http\Request $instance */
  9447. return $instance->ips();
  9448. }
  9449. /**
  9450. * Get the client user agent.
  9451. *
  9452. * @return string|null
  9453. * @static
  9454. */
  9455. public static function userAgent()
  9456. {
  9457. /** @var \Illuminate\Http\Request $instance */
  9458. return $instance->userAgent();
  9459. }
  9460. /**
  9461. * Merge new input into the current request's input array.
  9462. *
  9463. * @param array $input
  9464. * @return \Illuminate\Http\Request
  9465. * @static
  9466. */
  9467. public static function merge($input)
  9468. {
  9469. /** @var \Illuminate\Http\Request $instance */
  9470. return $instance->merge($input);
  9471. }
  9472. /**
  9473. * Merge new input into the request's input, but only when that key is missing from the request.
  9474. *
  9475. * @param array $input
  9476. * @return \Illuminate\Http\Request
  9477. * @static
  9478. */
  9479. public static function mergeIfMissing($input)
  9480. {
  9481. /** @var \Illuminate\Http\Request $instance */
  9482. return $instance->mergeIfMissing($input);
  9483. }
  9484. /**
  9485. * Replace the input for the current request.
  9486. *
  9487. * @param array $input
  9488. * @return \Illuminate\Http\Request
  9489. * @static
  9490. */
  9491. public static function replace($input)
  9492. {
  9493. /** @var \Illuminate\Http\Request $instance */
  9494. return $instance->replace($input);
  9495. }
  9496. /**
  9497. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  9498. *
  9499. * Instead, you may use the "input" method.
  9500. *
  9501. * @param string $key
  9502. * @param mixed $default
  9503. * @return mixed
  9504. * @static
  9505. */
  9506. public static function get($key, $default = null)
  9507. {
  9508. /** @var \Illuminate\Http\Request $instance */
  9509. return $instance->get($key, $default);
  9510. }
  9511. /**
  9512. * Get the JSON payload for the request.
  9513. *
  9514. * @param string|null $key
  9515. * @param mixed $default
  9516. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  9517. * @static
  9518. */
  9519. public static function json($key = null, $default = null)
  9520. {
  9521. /** @var \Illuminate\Http\Request $instance */
  9522. return $instance->json($key, $default);
  9523. }
  9524. /**
  9525. * Create a new request instance from the given Laravel request.
  9526. *
  9527. * @param \Illuminate\Http\Request $from
  9528. * @param \Illuminate\Http\Request|null $to
  9529. * @return static
  9530. * @static
  9531. */
  9532. public static function createFrom($from, $to = null)
  9533. {
  9534. return \Illuminate\Http\Request::createFrom($from, $to);
  9535. }
  9536. /**
  9537. * Create an Illuminate request from a Symfony instance.
  9538. *
  9539. * @param \Symfony\Component\HttpFoundation\Request $request
  9540. * @return static
  9541. * @static
  9542. */
  9543. public static function createFromBase($request)
  9544. {
  9545. return \Illuminate\Http\Request::createFromBase($request);
  9546. }
  9547. /**
  9548. * Clones a request and overrides some of its parameters.
  9549. *
  9550. * @return static
  9551. * @param array|null $query The GET parameters
  9552. * @param array|null $request The POST parameters
  9553. * @param array|null $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9554. * @param array|null $cookies The COOKIE parameters
  9555. * @param array|null $files The FILES parameters
  9556. * @param array|null $server The SERVER parameters
  9557. * @return static
  9558. * @static
  9559. */
  9560. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  9561. {
  9562. /** @var \Illuminate\Http\Request $instance */
  9563. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  9564. }
  9565. /**
  9566. * Get the session associated with the request.
  9567. *
  9568. * @return \Illuminate\Session\Store
  9569. * @throws \RuntimeException
  9570. * @static
  9571. */
  9572. public static function session()
  9573. {
  9574. /** @var \Illuminate\Http\Request $instance */
  9575. return $instance->session();
  9576. }
  9577. /**
  9578. * Get the session associated with the request.
  9579. *
  9580. * @return \Illuminate\Session\Store|null
  9581. * @static
  9582. */
  9583. public static function getSession()
  9584. {
  9585. /** @var \Illuminate\Http\Request $instance */
  9586. return $instance->getSession();
  9587. }
  9588. /**
  9589. * Set the session instance on the request.
  9590. *
  9591. * @param \Illuminate\Contracts\Session\Session $session
  9592. * @return void
  9593. * @static
  9594. */
  9595. public static function setLaravelSession($session)
  9596. {
  9597. /** @var \Illuminate\Http\Request $instance */
  9598. $instance->setLaravelSession($session);
  9599. }
  9600. /**
  9601. * Get the user making the request.
  9602. *
  9603. * @param string|null $guard
  9604. * @return mixed
  9605. * @static
  9606. */
  9607. public static function user($guard = null)
  9608. {
  9609. /** @var \Illuminate\Http\Request $instance */
  9610. return $instance->user($guard);
  9611. }
  9612. /**
  9613. * Get the route handling the request.
  9614. *
  9615. * @param string|null $param
  9616. * @param mixed $default
  9617. * @return \Illuminate\Routing\Route|object|string|null
  9618. * @static
  9619. */
  9620. public static function route($param = null, $default = null)
  9621. {
  9622. /** @var \Illuminate\Http\Request $instance */
  9623. return $instance->route($param, $default);
  9624. }
  9625. /**
  9626. * Get a unique fingerprint for the request / route / IP address.
  9627. *
  9628. * @return string
  9629. * @throws \RuntimeException
  9630. * @static
  9631. */
  9632. public static function fingerprint()
  9633. {
  9634. /** @var \Illuminate\Http\Request $instance */
  9635. return $instance->fingerprint();
  9636. }
  9637. /**
  9638. * Set the JSON payload for the request.
  9639. *
  9640. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  9641. * @return \Illuminate\Http\Request
  9642. * @static
  9643. */
  9644. public static function setJson($json)
  9645. {
  9646. /** @var \Illuminate\Http\Request $instance */
  9647. return $instance->setJson($json);
  9648. }
  9649. /**
  9650. * Get the user resolver callback.
  9651. *
  9652. * @return \Closure
  9653. * @static
  9654. */
  9655. public static function getUserResolver()
  9656. {
  9657. /** @var \Illuminate\Http\Request $instance */
  9658. return $instance->getUserResolver();
  9659. }
  9660. /**
  9661. * Set the user resolver callback.
  9662. *
  9663. * @param \Closure $callback
  9664. * @return \Illuminate\Http\Request
  9665. * @static
  9666. */
  9667. public static function setUserResolver($callback)
  9668. {
  9669. /** @var \Illuminate\Http\Request $instance */
  9670. return $instance->setUserResolver($callback);
  9671. }
  9672. /**
  9673. * Get the route resolver callback.
  9674. *
  9675. * @return \Closure
  9676. * @static
  9677. */
  9678. public static function getRouteResolver()
  9679. {
  9680. /** @var \Illuminate\Http\Request $instance */
  9681. return $instance->getRouteResolver();
  9682. }
  9683. /**
  9684. * Set the route resolver callback.
  9685. *
  9686. * @param \Closure $callback
  9687. * @return \Illuminate\Http\Request
  9688. * @static
  9689. */
  9690. public static function setRouteResolver($callback)
  9691. {
  9692. /** @var \Illuminate\Http\Request $instance */
  9693. return $instance->setRouteResolver($callback);
  9694. }
  9695. /**
  9696. * Get all of the input and files for the request.
  9697. *
  9698. * @return array
  9699. * @static
  9700. */
  9701. public static function toArray()
  9702. {
  9703. /** @var \Illuminate\Http\Request $instance */
  9704. return $instance->toArray();
  9705. }
  9706. /**
  9707. * Determine if the given offset exists.
  9708. *
  9709. * @param string $offset
  9710. * @return bool
  9711. * @static
  9712. */
  9713. public static function offsetExists($offset)
  9714. {
  9715. /** @var \Illuminate\Http\Request $instance */
  9716. return $instance->offsetExists($offset);
  9717. }
  9718. /**
  9719. * Get the value at the given offset.
  9720. *
  9721. * @param string $offset
  9722. * @return mixed
  9723. * @static
  9724. */
  9725. public static function offsetGet($offset)
  9726. {
  9727. /** @var \Illuminate\Http\Request $instance */
  9728. return $instance->offsetGet($offset);
  9729. }
  9730. /**
  9731. * Set the value at the given offset.
  9732. *
  9733. * @param string $offset
  9734. * @param mixed $value
  9735. * @return void
  9736. * @static
  9737. */
  9738. public static function offsetSet($offset, $value)
  9739. {
  9740. /** @var \Illuminate\Http\Request $instance */
  9741. $instance->offsetSet($offset, $value);
  9742. }
  9743. /**
  9744. * Remove the value at the given offset.
  9745. *
  9746. * @param string $offset
  9747. * @return void
  9748. * @static
  9749. */
  9750. public static function offsetUnset($offset)
  9751. {
  9752. /** @var \Illuminate\Http\Request $instance */
  9753. $instance->offsetUnset($offset);
  9754. }
  9755. /**
  9756. * Sets the parameters for this request.
  9757. *
  9758. * This method also re-initializes all properties.
  9759. *
  9760. * @param array $query The GET parameters
  9761. * @param array $request The POST parameters
  9762. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9763. * @param array $cookies The COOKIE parameters
  9764. * @param array $files The FILES parameters
  9765. * @param array $server The SERVER parameters
  9766. * @param string|resource|null $content The raw body data
  9767. * @static
  9768. */
  9769. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  9770. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9771. /** @var \Illuminate\Http\Request $instance */
  9772. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  9773. }
  9774. /**
  9775. * Creates a new request with values from PHP's super globals.
  9776. *
  9777. * @return static
  9778. * @static
  9779. */
  9780. public static function createFromGlobals()
  9781. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9782. return \Illuminate\Http\Request::createFromGlobals();
  9783. }
  9784. /**
  9785. * Creates a Request based on a given URI and configuration.
  9786. *
  9787. * The information contained in the URI always take precedence
  9788. * over the other information (server and parameters).
  9789. *
  9790. * @param string $uri The URI
  9791. * @param string $method The HTTP method
  9792. * @param array $parameters The query (GET) or request (POST) parameters
  9793. * @param array $cookies The request cookies ($_COOKIE)
  9794. * @param array $files The request files ($_FILES)
  9795. * @param array $server The server parameters ($_SERVER)
  9796. * @param string|resource|null $content The raw body data
  9797. * @return static
  9798. * @throws BadRequestException When the URI is invalid
  9799. * @static
  9800. */
  9801. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  9802. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9803. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  9804. }
  9805. /**
  9806. * Sets a callable able to create a Request instance.
  9807. *
  9808. * This is mainly useful when you need to override the Request class
  9809. * to keep BC with an existing system. It should not be used for any
  9810. * other purpose.
  9811. *
  9812. * @static
  9813. */
  9814. public static function setFactory($callable)
  9815. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9816. return \Illuminate\Http\Request::setFactory($callable);
  9817. }
  9818. /**
  9819. * Overrides the PHP global variables according to this request instance.
  9820. *
  9821. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  9822. * $_FILES is never overridden, see rfc1867
  9823. *
  9824. * @static
  9825. */
  9826. public static function overrideGlobals()
  9827. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9828. /** @var \Illuminate\Http\Request $instance */
  9829. return $instance->overrideGlobals();
  9830. }
  9831. /**
  9832. * Sets a list of trusted proxies.
  9833. *
  9834. * You should only list the reverse proxies that you manage directly.
  9835. *
  9836. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  9837. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  9838. * @static
  9839. */
  9840. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  9841. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9842. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  9843. }
  9844. /**
  9845. * Gets the list of trusted proxies.
  9846. *
  9847. * @return array
  9848. * @static
  9849. */
  9850. public static function getTrustedProxies()
  9851. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9852. return \Illuminate\Http\Request::getTrustedProxies();
  9853. }
  9854. /**
  9855. * Gets the set of trusted headers from trusted proxies.
  9856. *
  9857. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  9858. * @static
  9859. */
  9860. public static function getTrustedHeaderSet()
  9861. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9862. return \Illuminate\Http\Request::getTrustedHeaderSet();
  9863. }
  9864. /**
  9865. * Sets a list of trusted host patterns.
  9866. *
  9867. * You should only list the hosts you manage using regexs.
  9868. *
  9869. * @param array $hostPatterns A list of trusted host patterns
  9870. * @static
  9871. */
  9872. public static function setTrustedHosts($hostPatterns)
  9873. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9874. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  9875. }
  9876. /**
  9877. * Gets the list of trusted host patterns.
  9878. *
  9879. * @return array
  9880. * @static
  9881. */
  9882. public static function getTrustedHosts()
  9883. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9884. return \Illuminate\Http\Request::getTrustedHosts();
  9885. }
  9886. /**
  9887. * Normalizes a query string.
  9888. *
  9889. * It builds a normalized query string, where keys/value pairs are alphabetized,
  9890. * have consistent escaping and unneeded delimiters are removed.
  9891. *
  9892. * @return string
  9893. * @static
  9894. */
  9895. public static function normalizeQueryString($qs)
  9896. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9897. return \Illuminate\Http\Request::normalizeQueryString($qs);
  9898. }
  9899. /**
  9900. * Enables support for the _method request parameter to determine the intended HTTP method.
  9901. *
  9902. * Be warned that enabling this feature might lead to CSRF issues in your code.
  9903. * Check that you are using CSRF tokens when required.
  9904. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  9905. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  9906. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  9907. *
  9908. * The HTTP method can only be overridden when the real HTTP method is POST.
  9909. *
  9910. * @static
  9911. */
  9912. public static function enableHttpMethodParameterOverride()
  9913. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9914. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  9915. }
  9916. /**
  9917. * Checks whether support for the _method request parameter is enabled.
  9918. *
  9919. * @return bool
  9920. * @static
  9921. */
  9922. public static function getHttpMethodParameterOverride()
  9923. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9924. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  9925. }
  9926. /**
  9927. * Whether the request contains a Session which was started in one of the
  9928. * previous requests.
  9929. *
  9930. * @return bool
  9931. * @static
  9932. */
  9933. public static function hasPreviousSession()
  9934. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9935. /** @var \Illuminate\Http\Request $instance */
  9936. return $instance->hasPreviousSession();
  9937. }
  9938. /**
  9939. * Whether the request contains a Session object.
  9940. *
  9941. * This method does not give any information about the state of the session object,
  9942. * like whether the session is started or not. It is just a way to check if this Request
  9943. * is associated with a Session instance.
  9944. *
  9945. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  9946. * @return bool
  9947. * @static
  9948. */
  9949. public static function hasSession()
  9950. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9951. /** @var \Illuminate\Http\Request $instance */
  9952. return $instance->hasSession();
  9953. }
  9954. /**
  9955. * @static
  9956. */
  9957. public static function setSession($session)
  9958. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9959. /** @var \Illuminate\Http\Request $instance */
  9960. return $instance->setSession($session);
  9961. }
  9962. /**
  9963. * @internal
  9964. * @param callable(): SessionInterface $factory
  9965. * @static
  9966. */
  9967. public static function setSessionFactory($factory)
  9968. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9969. /** @var \Illuminate\Http\Request $instance */
  9970. return $instance->setSessionFactory($factory);
  9971. }
  9972. /**
  9973. * Returns the client IP addresses.
  9974. *
  9975. * In the returned array the most trusted IP address is first, and the
  9976. * least trusted one last. The "real" client IP address is the last one,
  9977. * but this is also the least trusted one. Trusted proxies are stripped.
  9978. *
  9979. * Use this method carefully; you should use getClientIp() instead.
  9980. *
  9981. * @return array
  9982. * @see getClientIp()
  9983. * @static
  9984. */
  9985. public static function getClientIps()
  9986. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9987. /** @var \Illuminate\Http\Request $instance */
  9988. return $instance->getClientIps();
  9989. }
  9990. /**
  9991. * Returns the client IP address.
  9992. *
  9993. * This method can read the client IP address from the "X-Forwarded-For" header
  9994. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  9995. * header value is a comma+space separated list of IP addresses, the left-most
  9996. * being the original client, and each successive proxy that passed the request
  9997. * adding the IP address where it received the request from.
  9998. *
  9999. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  10000. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  10001. * argument of the Request::setTrustedProxies() method instead.
  10002. *
  10003. * @return string|null
  10004. * @see getClientIps()
  10005. * @see https://wikipedia.org/wiki/X-Forwarded-For
  10006. * @static
  10007. */
  10008. public static function getClientIp()
  10009. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10010. /** @var \Illuminate\Http\Request $instance */
  10011. return $instance->getClientIp();
  10012. }
  10013. /**
  10014. * Returns current script name.
  10015. *
  10016. * @return string
  10017. * @static
  10018. */
  10019. public static function getScriptName()
  10020. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10021. /** @var \Illuminate\Http\Request $instance */
  10022. return $instance->getScriptName();
  10023. }
  10024. /**
  10025. * Returns the path being requested relative to the executed script.
  10026. *
  10027. * The path info always starts with a /.
  10028. *
  10029. * Suppose this request is instantiated from /mysite on localhost:
  10030. *
  10031. * * http://localhost/mysite returns an empty string
  10032. * * http://localhost/mysite/about returns '/about'
  10033. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  10034. * * http://localhost/mysite/about?var=1 returns '/about'
  10035. *
  10036. * @return string The raw path (i.e. not urldecoded)
  10037. * @static
  10038. */
  10039. public static function getPathInfo()
  10040. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10041. /** @var \Illuminate\Http\Request $instance */
  10042. return $instance->getPathInfo();
  10043. }
  10044. /**
  10045. * Returns the root path from which this request is executed.
  10046. *
  10047. * Suppose that an index.php file instantiates this request object:
  10048. *
  10049. * * http://localhost/index.php returns an empty string
  10050. * * http://localhost/index.php/page returns an empty string
  10051. * * http://localhost/web/index.php returns '/web'
  10052. * * http://localhost/we%20b/index.php returns '/we%20b'
  10053. *
  10054. * @return string The raw path (i.e. not urldecoded)
  10055. * @static
  10056. */
  10057. public static function getBasePath()
  10058. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10059. /** @var \Illuminate\Http\Request $instance */
  10060. return $instance->getBasePath();
  10061. }
  10062. /**
  10063. * Returns the root URL from which this request is executed.
  10064. *
  10065. * The base URL never ends with a /.
  10066. *
  10067. * This is similar to getBasePath(), except that it also includes the
  10068. * script filename (e.g. index.php) if one exists.
  10069. *
  10070. * @return string The raw URL (i.e. not urldecoded)
  10071. * @static
  10072. */
  10073. public static function getBaseUrl()
  10074. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10075. /** @var \Illuminate\Http\Request $instance */
  10076. return $instance->getBaseUrl();
  10077. }
  10078. /**
  10079. * Gets the request's scheme.
  10080. *
  10081. * @return string
  10082. * @static
  10083. */
  10084. public static function getScheme()
  10085. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10086. /** @var \Illuminate\Http\Request $instance */
  10087. return $instance->getScheme();
  10088. }
  10089. /**
  10090. * Returns the port on which the request is made.
  10091. *
  10092. * This method can read the client port from the "X-Forwarded-Port" header
  10093. * when trusted proxies were set via "setTrustedProxies()".
  10094. *
  10095. * The "X-Forwarded-Port" header must contain the client port.
  10096. *
  10097. * @return int|string|null Can be a string if fetched from the server bag
  10098. * @static
  10099. */
  10100. public static function getPort()
  10101. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10102. /** @var \Illuminate\Http\Request $instance */
  10103. return $instance->getPort();
  10104. }
  10105. /**
  10106. * Returns the user.
  10107. *
  10108. * @return string|null
  10109. * @static
  10110. */
  10111. public static function getUser()
  10112. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10113. /** @var \Illuminate\Http\Request $instance */
  10114. return $instance->getUser();
  10115. }
  10116. /**
  10117. * Returns the password.
  10118. *
  10119. * @return string|null
  10120. * @static
  10121. */
  10122. public static function getPassword()
  10123. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10124. /** @var \Illuminate\Http\Request $instance */
  10125. return $instance->getPassword();
  10126. }
  10127. /**
  10128. * Gets the user info.
  10129. *
  10130. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  10131. * @static
  10132. */
  10133. public static function getUserInfo()
  10134. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10135. /** @var \Illuminate\Http\Request $instance */
  10136. return $instance->getUserInfo();
  10137. }
  10138. /**
  10139. * Returns the HTTP host being requested.
  10140. *
  10141. * The port name will be appended to the host if it's non-standard.
  10142. *
  10143. * @return string
  10144. * @static
  10145. */
  10146. public static function getHttpHost()
  10147. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10148. /** @var \Illuminate\Http\Request $instance */
  10149. return $instance->getHttpHost();
  10150. }
  10151. /**
  10152. * Returns the requested URI (path and query string).
  10153. *
  10154. * @return string The raw URI (i.e. not URI decoded)
  10155. * @static
  10156. */
  10157. public static function getRequestUri()
  10158. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10159. /** @var \Illuminate\Http\Request $instance */
  10160. return $instance->getRequestUri();
  10161. }
  10162. /**
  10163. * Gets the scheme and HTTP host.
  10164. *
  10165. * If the URL was called with basic authentication, the user
  10166. * and the password are not added to the generated string.
  10167. *
  10168. * @return string
  10169. * @static
  10170. */
  10171. public static function getSchemeAndHttpHost()
  10172. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10173. /** @var \Illuminate\Http\Request $instance */
  10174. return $instance->getSchemeAndHttpHost();
  10175. }
  10176. /**
  10177. * Generates a normalized URI (URL) for the Request.
  10178. *
  10179. * @return string
  10180. * @see getQueryString()
  10181. * @static
  10182. */
  10183. public static function getUri()
  10184. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10185. /** @var \Illuminate\Http\Request $instance */
  10186. return $instance->getUri();
  10187. }
  10188. /**
  10189. * Generates a normalized URI for the given path.
  10190. *
  10191. * @param string $path A path to use instead of the current one
  10192. * @return string
  10193. * @static
  10194. */
  10195. public static function getUriForPath($path)
  10196. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10197. /** @var \Illuminate\Http\Request $instance */
  10198. return $instance->getUriForPath($path);
  10199. }
  10200. /**
  10201. * Returns the path as relative reference from the current Request path.
  10202. *
  10203. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  10204. * Both paths must be absolute and not contain relative parts.
  10205. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  10206. * Furthermore, they can be used to reduce the link size in documents.
  10207. *
  10208. * Example target paths, given a base path of "/a/b/c/d":
  10209. * - "/a/b/c/d" -> ""
  10210. * - "/a/b/c/" -> "./"
  10211. * - "/a/b/" -> "../"
  10212. * - "/a/b/c/other" -> "other"
  10213. * - "/a/x/y" -> "../../x/y"
  10214. *
  10215. * @return string
  10216. * @static
  10217. */
  10218. public static function getRelativeUriForPath($path)
  10219. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10220. /** @var \Illuminate\Http\Request $instance */
  10221. return $instance->getRelativeUriForPath($path);
  10222. }
  10223. /**
  10224. * Generates the normalized query string for the Request.
  10225. *
  10226. * It builds a normalized query string, where keys/value pairs are alphabetized
  10227. * and have consistent escaping.
  10228. *
  10229. * @return string|null
  10230. * @static
  10231. */
  10232. public static function getQueryString()
  10233. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10234. /** @var \Illuminate\Http\Request $instance */
  10235. return $instance->getQueryString();
  10236. }
  10237. /**
  10238. * Checks whether the request is secure or not.
  10239. *
  10240. * This method can read the client protocol from the "X-Forwarded-Proto" header
  10241. * when trusted proxies were set via "setTrustedProxies()".
  10242. *
  10243. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  10244. *
  10245. * @return bool
  10246. * @static
  10247. */
  10248. public static function isSecure()
  10249. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10250. /** @var \Illuminate\Http\Request $instance */
  10251. return $instance->isSecure();
  10252. }
  10253. /**
  10254. * Returns the host name.
  10255. *
  10256. * This method can read the client host name from the "X-Forwarded-Host" header
  10257. * when trusted proxies were set via "setTrustedProxies()".
  10258. *
  10259. * The "X-Forwarded-Host" header must contain the client host name.
  10260. *
  10261. * @return string
  10262. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  10263. * @static
  10264. */
  10265. public static function getHost()
  10266. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10267. /** @var \Illuminate\Http\Request $instance */
  10268. return $instance->getHost();
  10269. }
  10270. /**
  10271. * Sets the request method.
  10272. *
  10273. * @static
  10274. */
  10275. public static function setMethod($method)
  10276. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10277. /** @var \Illuminate\Http\Request $instance */
  10278. return $instance->setMethod($method);
  10279. }
  10280. /**
  10281. * Gets the request "intended" method.
  10282. *
  10283. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  10284. * then it is used to determine the "real" intended HTTP method.
  10285. *
  10286. * The _method request parameter can also be used to determine the HTTP method,
  10287. * but only if enableHttpMethodParameterOverride() has been called.
  10288. *
  10289. * The method is always an uppercased string.
  10290. *
  10291. * @return string
  10292. * @see getRealMethod()
  10293. * @static
  10294. */
  10295. public static function getMethod()
  10296. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10297. /** @var \Illuminate\Http\Request $instance */
  10298. return $instance->getMethod();
  10299. }
  10300. /**
  10301. * Gets the "real" request method.
  10302. *
  10303. * @return string
  10304. * @see getMethod()
  10305. * @static
  10306. */
  10307. public static function getRealMethod()
  10308. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10309. /** @var \Illuminate\Http\Request $instance */
  10310. return $instance->getRealMethod();
  10311. }
  10312. /**
  10313. * Gets the mime type associated with the format.
  10314. *
  10315. * @return string|null
  10316. * @static
  10317. */
  10318. public static function getMimeType($format)
  10319. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10320. /** @var \Illuminate\Http\Request $instance */
  10321. return $instance->getMimeType($format);
  10322. }
  10323. /**
  10324. * Gets the mime types associated with the format.
  10325. *
  10326. * @return array
  10327. * @static
  10328. */
  10329. public static function getMimeTypes($format)
  10330. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10331. return \Illuminate\Http\Request::getMimeTypes($format);
  10332. }
  10333. /**
  10334. * Gets the format associated with the mime type.
  10335. *
  10336. * @return string|null
  10337. * @static
  10338. */
  10339. public static function getFormat($mimeType)
  10340. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10341. /** @var \Illuminate\Http\Request $instance */
  10342. return $instance->getFormat($mimeType);
  10343. }
  10344. /**
  10345. * Associates a format with mime types.
  10346. *
  10347. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  10348. * @static
  10349. */
  10350. public static function setFormat($format, $mimeTypes)
  10351. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10352. /** @var \Illuminate\Http\Request $instance */
  10353. return $instance->setFormat($format, $mimeTypes);
  10354. }
  10355. /**
  10356. * Gets the request format.
  10357. *
  10358. * Here is the process to determine the format:
  10359. *
  10360. * * format defined by the user (with setRequestFormat())
  10361. * * _format request attribute
  10362. * * $default
  10363. *
  10364. * @see getPreferredFormat
  10365. * @return string|null
  10366. * @static
  10367. */
  10368. public static function getRequestFormat($default = 'html')
  10369. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10370. /** @var \Illuminate\Http\Request $instance */
  10371. return $instance->getRequestFormat($default);
  10372. }
  10373. /**
  10374. * Sets the request format.
  10375. *
  10376. * @static
  10377. */
  10378. public static function setRequestFormat($format)
  10379. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10380. /** @var \Illuminate\Http\Request $instance */
  10381. return $instance->setRequestFormat($format);
  10382. }
  10383. /**
  10384. * Gets the format associated with the request.
  10385. *
  10386. * @return string|null
  10387. * @static
  10388. */
  10389. public static function getContentType()
  10390. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10391. /** @var \Illuminate\Http\Request $instance */
  10392. return $instance->getContentType();
  10393. }
  10394. /**
  10395. * Sets the default locale.
  10396. *
  10397. * @static
  10398. */
  10399. public static function setDefaultLocale($locale)
  10400. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10401. /** @var \Illuminate\Http\Request $instance */
  10402. return $instance->setDefaultLocale($locale);
  10403. }
  10404. /**
  10405. * Get the default locale.
  10406. *
  10407. * @return string
  10408. * @static
  10409. */
  10410. public static function getDefaultLocale()
  10411. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10412. /** @var \Illuminate\Http\Request $instance */
  10413. return $instance->getDefaultLocale();
  10414. }
  10415. /**
  10416. * Sets the locale.
  10417. *
  10418. * @static
  10419. */
  10420. public static function setLocale($locale)
  10421. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10422. /** @var \Illuminate\Http\Request $instance */
  10423. return $instance->setLocale($locale);
  10424. }
  10425. /**
  10426. * Get the locale.
  10427. *
  10428. * @return string
  10429. * @static
  10430. */
  10431. public static function getLocale()
  10432. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10433. /** @var \Illuminate\Http\Request $instance */
  10434. return $instance->getLocale();
  10435. }
  10436. /**
  10437. * Checks if the request method is of specified type.
  10438. *
  10439. * @param string $method Uppercase request method (GET, POST etc)
  10440. * @return bool
  10441. * @static
  10442. */
  10443. public static function isMethod($method)
  10444. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10445. /** @var \Illuminate\Http\Request $instance */
  10446. return $instance->isMethod($method);
  10447. }
  10448. /**
  10449. * Checks whether or not the method is safe.
  10450. *
  10451. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  10452. * @return bool
  10453. * @static
  10454. */
  10455. public static function isMethodSafe()
  10456. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10457. /** @var \Illuminate\Http\Request $instance */
  10458. return $instance->isMethodSafe();
  10459. }
  10460. /**
  10461. * Checks whether or not the method is idempotent.
  10462. *
  10463. * @return bool
  10464. * @static
  10465. */
  10466. public static function isMethodIdempotent()
  10467. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10468. /** @var \Illuminate\Http\Request $instance */
  10469. return $instance->isMethodIdempotent();
  10470. }
  10471. /**
  10472. * Checks whether the method is cacheable or not.
  10473. *
  10474. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  10475. * @return bool
  10476. * @static
  10477. */
  10478. public static function isMethodCacheable()
  10479. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10480. /** @var \Illuminate\Http\Request $instance */
  10481. return $instance->isMethodCacheable();
  10482. }
  10483. /**
  10484. * Returns the protocol version.
  10485. *
  10486. * If the application is behind a proxy, the protocol version used in the
  10487. * requests between the client and the proxy and between the proxy and the
  10488. * server might be different. This returns the former (from the "Via" header)
  10489. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  10490. * the latter (from the "SERVER_PROTOCOL" server parameter).
  10491. *
  10492. * @return string|null
  10493. * @static
  10494. */
  10495. public static function getProtocolVersion()
  10496. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10497. /** @var \Illuminate\Http\Request $instance */
  10498. return $instance->getProtocolVersion();
  10499. }
  10500. /**
  10501. * Returns the request body content.
  10502. *
  10503. * @param bool $asResource If true, a resource will be returned
  10504. * @return string|resource
  10505. * @static
  10506. */
  10507. public static function getContent($asResource = false)
  10508. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10509. /** @var \Illuminate\Http\Request $instance */
  10510. return $instance->getContent($asResource);
  10511. }
  10512. /**
  10513. * Gets the Etags.
  10514. *
  10515. * @return array
  10516. * @static
  10517. */
  10518. public static function getETags()
  10519. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10520. /** @var \Illuminate\Http\Request $instance */
  10521. return $instance->getETags();
  10522. }
  10523. /**
  10524. * @return bool
  10525. * @static
  10526. */
  10527. public static function isNoCache()
  10528. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10529. /** @var \Illuminate\Http\Request $instance */
  10530. return $instance->isNoCache();
  10531. }
  10532. /**
  10533. * Gets the preferred format for the response by inspecting, in the following order:
  10534. * * the request format set using setRequestFormat;
  10535. * * the values of the Accept HTTP header.
  10536. *
  10537. * Note that if you use this method, you should send the "Vary: Accept" header
  10538. * in the response to prevent any issues with intermediary HTTP caches.
  10539. *
  10540. * @static
  10541. */
  10542. public static function getPreferredFormat($default = 'html')
  10543. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10544. /** @var \Illuminate\Http\Request $instance */
  10545. return $instance->getPreferredFormat($default);
  10546. }
  10547. /**
  10548. * Returns the preferred language.
  10549. *
  10550. * @param string[] $locales An array of ordered available locales
  10551. * @return string|null
  10552. * @static
  10553. */
  10554. public static function getPreferredLanguage($locales = null)
  10555. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10556. /** @var \Illuminate\Http\Request $instance */
  10557. return $instance->getPreferredLanguage($locales);
  10558. }
  10559. /**
  10560. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  10561. *
  10562. * @return array
  10563. * @static
  10564. */
  10565. public static function getLanguages()
  10566. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10567. /** @var \Illuminate\Http\Request $instance */
  10568. return $instance->getLanguages();
  10569. }
  10570. /**
  10571. * Gets a list of charsets acceptable by the client browser in preferable order.
  10572. *
  10573. * @return array
  10574. * @static
  10575. */
  10576. public static function getCharsets()
  10577. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10578. /** @var \Illuminate\Http\Request $instance */
  10579. return $instance->getCharsets();
  10580. }
  10581. /**
  10582. * Gets a list of encodings acceptable by the client browser in preferable order.
  10583. *
  10584. * @return array
  10585. * @static
  10586. */
  10587. public static function getEncodings()
  10588. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10589. /** @var \Illuminate\Http\Request $instance */
  10590. return $instance->getEncodings();
  10591. }
  10592. /**
  10593. * Gets a list of content types acceptable by the client browser in preferable order.
  10594. *
  10595. * @return array
  10596. * @static
  10597. */
  10598. public static function getAcceptableContentTypes()
  10599. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10600. /** @var \Illuminate\Http\Request $instance */
  10601. return $instance->getAcceptableContentTypes();
  10602. }
  10603. /**
  10604. * Returns true if the request is an XMLHttpRequest.
  10605. *
  10606. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  10607. * It is known to work with common JavaScript frameworks:
  10608. *
  10609. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  10610. * @return bool
  10611. * @static
  10612. */
  10613. public static function isXmlHttpRequest()
  10614. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10615. /** @var \Illuminate\Http\Request $instance */
  10616. return $instance->isXmlHttpRequest();
  10617. }
  10618. /**
  10619. * Checks whether the client browser prefers safe content or not according to RFC8674.
  10620. *
  10621. * @see https://tools.ietf.org/html/rfc8674
  10622. * @static
  10623. */
  10624. public static function preferSafeContent()
  10625. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10626. /** @var \Illuminate\Http\Request $instance */
  10627. return $instance->preferSafeContent();
  10628. }
  10629. /**
  10630. * Indicates whether this request originated from a trusted proxy.
  10631. *
  10632. * This can be useful to determine whether or not to trust the
  10633. * contents of a proxy-specific header.
  10634. *
  10635. * @return bool
  10636. * @static
  10637. */
  10638. public static function isFromTrustedProxy()
  10639. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10640. /** @var \Illuminate\Http\Request $instance */
  10641. return $instance->isFromTrustedProxy();
  10642. }
  10643. /**
  10644. * Determine if the request is sending JSON.
  10645. *
  10646. * @return bool
  10647. * @static
  10648. */
  10649. public static function isJson()
  10650. {
  10651. /** @var \Illuminate\Http\Request $instance */
  10652. return $instance->isJson();
  10653. }
  10654. /**
  10655. * Determine if the current request probably expects a JSON response.
  10656. *
  10657. * @return bool
  10658. * @static
  10659. */
  10660. public static function expectsJson()
  10661. {
  10662. /** @var \Illuminate\Http\Request $instance */
  10663. return $instance->expectsJson();
  10664. }
  10665. /**
  10666. * Determine if the current request is asking for JSON.
  10667. *
  10668. * @return bool
  10669. * @static
  10670. */
  10671. public static function wantsJson()
  10672. {
  10673. /** @var \Illuminate\Http\Request $instance */
  10674. return $instance->wantsJson();
  10675. }
  10676. /**
  10677. * Determines whether the current requests accepts a given content type.
  10678. *
  10679. * @param string|array $contentTypes
  10680. * @return bool
  10681. * @static
  10682. */
  10683. public static function accepts($contentTypes)
  10684. {
  10685. /** @var \Illuminate\Http\Request $instance */
  10686. return $instance->accepts($contentTypes);
  10687. }
  10688. /**
  10689. * Return the most suitable content type from the given array based on content negotiation.
  10690. *
  10691. * @param string|array $contentTypes
  10692. * @return string|null
  10693. * @static
  10694. */
  10695. public static function prefers($contentTypes)
  10696. {
  10697. /** @var \Illuminate\Http\Request $instance */
  10698. return $instance->prefers($contentTypes);
  10699. }
  10700. /**
  10701. * Determine if the current request accepts any content type.
  10702. *
  10703. * @return bool
  10704. * @static
  10705. */
  10706. public static function acceptsAnyContentType()
  10707. {
  10708. /** @var \Illuminate\Http\Request $instance */
  10709. return $instance->acceptsAnyContentType();
  10710. }
  10711. /**
  10712. * Determines whether a request accepts JSON.
  10713. *
  10714. * @return bool
  10715. * @static
  10716. */
  10717. public static function acceptsJson()
  10718. {
  10719. /** @var \Illuminate\Http\Request $instance */
  10720. return $instance->acceptsJson();
  10721. }
  10722. /**
  10723. * Determines whether a request accepts HTML.
  10724. *
  10725. * @return bool
  10726. * @static
  10727. */
  10728. public static function acceptsHtml()
  10729. {
  10730. /** @var \Illuminate\Http\Request $instance */
  10731. return $instance->acceptsHtml();
  10732. }
  10733. /**
  10734. * Determine if the given content types match.
  10735. *
  10736. * @param string $actual
  10737. * @param string $type
  10738. * @return bool
  10739. * @static
  10740. */
  10741. public static function matchesType($actual, $type)
  10742. {
  10743. return \Illuminate\Http\Request::matchesType($actual, $type);
  10744. }
  10745. /**
  10746. * Get the data format expected in the response.
  10747. *
  10748. * @param string $default
  10749. * @return string
  10750. * @static
  10751. */
  10752. public static function format($default = 'html')
  10753. {
  10754. /** @var \Illuminate\Http\Request $instance */
  10755. return $instance->format($default);
  10756. }
  10757. /**
  10758. * Retrieve an old input item.
  10759. *
  10760. * @param string|null $key
  10761. * @param string|array|null $default
  10762. * @return string|array|null
  10763. * @static
  10764. */
  10765. public static function old($key = null, $default = null)
  10766. {
  10767. /** @var \Illuminate\Http\Request $instance */
  10768. return $instance->old($key, $default);
  10769. }
  10770. /**
  10771. * Flash the input for the current request to the session.
  10772. *
  10773. * @return void
  10774. * @static
  10775. */
  10776. public static function flash()
  10777. {
  10778. /** @var \Illuminate\Http\Request $instance */
  10779. $instance->flash();
  10780. }
  10781. /**
  10782. * Flash only some of the input to the session.
  10783. *
  10784. * @param array|mixed $keys
  10785. * @return void
  10786. * @static
  10787. */
  10788. public static function flashOnly($keys)
  10789. {
  10790. /** @var \Illuminate\Http\Request $instance */
  10791. $instance->flashOnly($keys);
  10792. }
  10793. /**
  10794. * Flash only some of the input to the session.
  10795. *
  10796. * @param array|mixed $keys
  10797. * @return void
  10798. * @static
  10799. */
  10800. public static function flashExcept($keys)
  10801. {
  10802. /** @var \Illuminate\Http\Request $instance */
  10803. $instance->flashExcept($keys);
  10804. }
  10805. /**
  10806. * Flush all of the old input from the session.
  10807. *
  10808. * @return void
  10809. * @static
  10810. */
  10811. public static function flush()
  10812. {
  10813. /** @var \Illuminate\Http\Request $instance */
  10814. $instance->flush();
  10815. }
  10816. /**
  10817. * Retrieve a server variable from the request.
  10818. *
  10819. * @param string|null $key
  10820. * @param string|array|null $default
  10821. * @return string|array|null
  10822. * @static
  10823. */
  10824. public static function server($key = null, $default = null)
  10825. {
  10826. /** @var \Illuminate\Http\Request $instance */
  10827. return $instance->server($key, $default);
  10828. }
  10829. /**
  10830. * Determine if a header is set on the request.
  10831. *
  10832. * @param string $key
  10833. * @return bool
  10834. * @static
  10835. */
  10836. public static function hasHeader($key)
  10837. {
  10838. /** @var \Illuminate\Http\Request $instance */
  10839. return $instance->hasHeader($key);
  10840. }
  10841. /**
  10842. * Retrieve a header from the request.
  10843. *
  10844. * @param string|null $key
  10845. * @param string|array|null $default
  10846. * @return string|array|null
  10847. * @static
  10848. */
  10849. public static function header($key = null, $default = null)
  10850. {
  10851. /** @var \Illuminate\Http\Request $instance */
  10852. return $instance->header($key, $default);
  10853. }
  10854. /**
  10855. * Get the bearer token from the request headers.
  10856. *
  10857. * @return string|null
  10858. * @static
  10859. */
  10860. public static function bearerToken()
  10861. {
  10862. /** @var \Illuminate\Http\Request $instance */
  10863. return $instance->bearerToken();
  10864. }
  10865. /**
  10866. * Determine if the request contains a given input item key.
  10867. *
  10868. * @param string|array $key
  10869. * @return bool
  10870. * @static
  10871. */
  10872. public static function exists($key)
  10873. {
  10874. /** @var \Illuminate\Http\Request $instance */
  10875. return $instance->exists($key);
  10876. }
  10877. /**
  10878. * Determine if the request contains a given input item key.
  10879. *
  10880. * @param string|array $key
  10881. * @return bool
  10882. * @static
  10883. */
  10884. public static function has($key)
  10885. {
  10886. /** @var \Illuminate\Http\Request $instance */
  10887. return $instance->has($key);
  10888. }
  10889. /**
  10890. * Determine if the request contains any of the given inputs.
  10891. *
  10892. * @param string|array $keys
  10893. * @return bool
  10894. * @static
  10895. */
  10896. public static function hasAny($keys)
  10897. {
  10898. /** @var \Illuminate\Http\Request $instance */
  10899. return $instance->hasAny($keys);
  10900. }
  10901. /**
  10902. * Apply the callback if the request contains the given input item key.
  10903. *
  10904. * @param string $key
  10905. * @param callable $callback
  10906. * @param callable|null $default
  10907. * @return $this|mixed
  10908. * @static
  10909. */
  10910. public static function whenHas($key, $callback, $default = null)
  10911. {
  10912. /** @var \Illuminate\Http\Request $instance */
  10913. return $instance->whenHas($key, $callback, $default);
  10914. }
  10915. /**
  10916. * Determine if the request contains a non-empty value for an input item.
  10917. *
  10918. * @param string|array $key
  10919. * @return bool
  10920. * @static
  10921. */
  10922. public static function filled($key)
  10923. {
  10924. /** @var \Illuminate\Http\Request $instance */
  10925. return $instance->filled($key);
  10926. }
  10927. /**
  10928. * Determine if the request contains an empty value for an input item.
  10929. *
  10930. * @param string|array $key
  10931. * @return bool
  10932. * @static
  10933. */
  10934. public static function isNotFilled($key)
  10935. {
  10936. /** @var \Illuminate\Http\Request $instance */
  10937. return $instance->isNotFilled($key);
  10938. }
  10939. /**
  10940. * Determine if the request contains a non-empty value for any of the given inputs.
  10941. *
  10942. * @param string|array $keys
  10943. * @return bool
  10944. * @static
  10945. */
  10946. public static function anyFilled($keys)
  10947. {
  10948. /** @var \Illuminate\Http\Request $instance */
  10949. return $instance->anyFilled($keys);
  10950. }
  10951. /**
  10952. * Apply the callback if the request contains a non-empty value for the given input item key.
  10953. *
  10954. * @param string $key
  10955. * @param callable $callback
  10956. * @param callable|null $default
  10957. * @return $this|mixed
  10958. * @static
  10959. */
  10960. public static function whenFilled($key, $callback, $default = null)
  10961. {
  10962. /** @var \Illuminate\Http\Request $instance */
  10963. return $instance->whenFilled($key, $callback, $default);
  10964. }
  10965. /**
  10966. * Determine if the request is missing a given input item key.
  10967. *
  10968. * @param string|array $key
  10969. * @return bool
  10970. * @static
  10971. */
  10972. public static function missing($key)
  10973. {
  10974. /** @var \Illuminate\Http\Request $instance */
  10975. return $instance->missing($key);
  10976. }
  10977. /**
  10978. * Get the keys for all of the input and files.
  10979. *
  10980. * @return array
  10981. * @static
  10982. */
  10983. public static function keys()
  10984. {
  10985. /** @var \Illuminate\Http\Request $instance */
  10986. return $instance->keys();
  10987. }
  10988. /**
  10989. * Get all of the input and files for the request.
  10990. *
  10991. * @param array|mixed|null $keys
  10992. * @return array
  10993. * @static
  10994. */
  10995. public static function all($keys = null)
  10996. {
  10997. /** @var \Illuminate\Http\Request $instance */
  10998. return $instance->all($keys);
  10999. }
  11000. /**
  11001. * Retrieve an input item from the request.
  11002. *
  11003. * @param string|null $key
  11004. * @param mixed $default
  11005. * @return mixed
  11006. * @static
  11007. */
  11008. public static function input($key = null, $default = null)
  11009. {
  11010. /** @var \Illuminate\Http\Request $instance */
  11011. return $instance->input($key, $default);
  11012. }
  11013. /**
  11014. * Retrieve input as a boolean value.
  11015. *
  11016. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  11017. *
  11018. * @param string|null $key
  11019. * @param bool $default
  11020. * @return bool
  11021. * @static
  11022. */
  11023. public static function boolean($key = null, $default = false)
  11024. {
  11025. /** @var \Illuminate\Http\Request $instance */
  11026. return $instance->boolean($key, $default);
  11027. }
  11028. /**
  11029. * Retrieve input from the request as a Carbon instance.
  11030. *
  11031. * @param string $key
  11032. * @param string|null $format
  11033. * @param string|null $tz
  11034. * @return \Illuminate\Support\Carbon|null
  11035. * @static
  11036. */
  11037. public static function date($key, $format = null, $tz = null)
  11038. {
  11039. /** @var \Illuminate\Http\Request $instance */
  11040. return $instance->date($key, $format, $tz);
  11041. }
  11042. /**
  11043. * Retrieve input from the request as a collection.
  11044. *
  11045. * @param array|string|null $key
  11046. * @return \Illuminate\Support\Collection
  11047. * @static
  11048. */
  11049. public static function collect($key = null)
  11050. {
  11051. /** @var \Illuminate\Http\Request $instance */
  11052. return $instance->collect($key);
  11053. }
  11054. /**
  11055. * Get a subset containing the provided keys with values from the input data.
  11056. *
  11057. * @param array|mixed $keys
  11058. * @return array
  11059. * @static
  11060. */
  11061. public static function only($keys)
  11062. {
  11063. /** @var \Illuminate\Http\Request $instance */
  11064. return $instance->only($keys);
  11065. }
  11066. /**
  11067. * Get all of the input except for a specified array of items.
  11068. *
  11069. * @param array|mixed $keys
  11070. * @return array
  11071. * @static
  11072. */
  11073. public static function except($keys)
  11074. {
  11075. /** @var \Illuminate\Http\Request $instance */
  11076. return $instance->except($keys);
  11077. }
  11078. /**
  11079. * Retrieve a query string item from the request.
  11080. *
  11081. * @param string|null $key
  11082. * @param string|array|null $default
  11083. * @return string|array|null
  11084. * @static
  11085. */
  11086. public static function query($key = null, $default = null)
  11087. {
  11088. /** @var \Illuminate\Http\Request $instance */
  11089. return $instance->query($key, $default);
  11090. }
  11091. /**
  11092. * Retrieve a request payload item from the request.
  11093. *
  11094. * @param string|null $key
  11095. * @param string|array|null $default
  11096. * @return string|array|null
  11097. * @static
  11098. */
  11099. public static function post($key = null, $default = null)
  11100. {
  11101. /** @var \Illuminate\Http\Request $instance */
  11102. return $instance->post($key, $default);
  11103. }
  11104. /**
  11105. * Determine if a cookie is set on the request.
  11106. *
  11107. * @param string $key
  11108. * @return bool
  11109. * @static
  11110. */
  11111. public static function hasCookie($key)
  11112. {
  11113. /** @var \Illuminate\Http\Request $instance */
  11114. return $instance->hasCookie($key);
  11115. }
  11116. /**
  11117. * Retrieve a cookie from the request.
  11118. *
  11119. * @param string|null $key
  11120. * @param string|array|null $default
  11121. * @return string|array|null
  11122. * @static
  11123. */
  11124. public static function cookie($key = null, $default = null)
  11125. {
  11126. /** @var \Illuminate\Http\Request $instance */
  11127. return $instance->cookie($key, $default);
  11128. }
  11129. /**
  11130. * Get an array of all of the files on the request.
  11131. *
  11132. * @return array
  11133. * @static
  11134. */
  11135. public static function allFiles()
  11136. {
  11137. /** @var \Illuminate\Http\Request $instance */
  11138. return $instance->allFiles();
  11139. }
  11140. /**
  11141. * Determine if the uploaded data contains a file.
  11142. *
  11143. * @param string $key
  11144. * @return bool
  11145. * @static
  11146. */
  11147. public static function hasFile($key)
  11148. {
  11149. /** @var \Illuminate\Http\Request $instance */
  11150. return $instance->hasFile($key);
  11151. }
  11152. /**
  11153. * Retrieve a file from the request.
  11154. *
  11155. * @param string|null $key
  11156. * @param mixed $default
  11157. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  11158. * @static
  11159. */
  11160. public static function file($key = null, $default = null)
  11161. {
  11162. /** @var \Illuminate\Http\Request $instance */
  11163. return $instance->file($key, $default);
  11164. }
  11165. /**
  11166. * Dump the request items and end the script.
  11167. *
  11168. * @param mixed $keys
  11169. * @return void
  11170. * @static
  11171. */
  11172. public static function dd(...$keys)
  11173. {
  11174. /** @var \Illuminate\Http\Request $instance */
  11175. $instance->dd(...$keys);
  11176. }
  11177. /**
  11178. * Dump the items.
  11179. *
  11180. * @param mixed $keys
  11181. * @return \Illuminate\Http\Request
  11182. * @static
  11183. */
  11184. public static function dump($keys = [])
  11185. {
  11186. /** @var \Illuminate\Http\Request $instance */
  11187. return $instance->dump($keys);
  11188. }
  11189. /**
  11190. * Register a custom macro.
  11191. *
  11192. * @param string $name
  11193. * @param object|callable $macro
  11194. * @return void
  11195. * @static
  11196. */
  11197. public static function macro($name, $macro)
  11198. {
  11199. \Illuminate\Http\Request::macro($name, $macro);
  11200. }
  11201. /**
  11202. * Mix another object into the class.
  11203. *
  11204. * @param object $mixin
  11205. * @param bool $replace
  11206. * @return void
  11207. * @throws \ReflectionException
  11208. * @static
  11209. */
  11210. public static function mixin($mixin, $replace = true)
  11211. {
  11212. \Illuminate\Http\Request::mixin($mixin, $replace);
  11213. }
  11214. /**
  11215. * Checks if macro is registered.
  11216. *
  11217. * @param string $name
  11218. * @return bool
  11219. * @static
  11220. */
  11221. public static function hasMacro($name)
  11222. {
  11223. return \Illuminate\Http\Request::hasMacro($name);
  11224. }
  11225. /**
  11226. * Flush the existing macros.
  11227. *
  11228. * @return void
  11229. * @static
  11230. */
  11231. public static function flushMacros()
  11232. {
  11233. \Illuminate\Http\Request::flushMacros();
  11234. }
  11235. /**
  11236. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11237. * @param array $rules
  11238. * @param mixed $params
  11239. * @static
  11240. */
  11241. public static function validate($rules, ...$params)
  11242. {
  11243. return \Illuminate\Http\Request::validate($rules, ...$params);
  11244. }
  11245. /**
  11246. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11247. * @param string $errorBag
  11248. * @param array $rules
  11249. * @param mixed $params
  11250. * @static
  11251. */
  11252. public static function validateWithBag($errorBag, $rules, ...$params)
  11253. {
  11254. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  11255. }
  11256. /**
  11257. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11258. * @param mixed $absolute
  11259. * @static
  11260. */
  11261. public static function hasValidSignature($absolute = true)
  11262. {
  11263. return \Illuminate\Http\Request::hasValidSignature($absolute);
  11264. }
  11265. /**
  11266. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11267. * @static
  11268. */
  11269. public static function hasValidRelativeSignature()
  11270. {
  11271. return \Illuminate\Http\Request::hasValidRelativeSignature();
  11272. }
  11273. }
  11274. /**
  11275. * @see \Illuminate\Contracts\Routing\ResponseFactory
  11276. */
  11277. class Response {
  11278. /**
  11279. * Create a new response instance.
  11280. *
  11281. * @param mixed $content
  11282. * @param int $status
  11283. * @param array $headers
  11284. * @return \Illuminate\Http\Response
  11285. * @static
  11286. */
  11287. public static function make($content = '', $status = 200, $headers = [])
  11288. {
  11289. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11290. return $instance->make($content, $status, $headers);
  11291. }
  11292. /**
  11293. * Create a new "no content" response.
  11294. *
  11295. * @param int $status
  11296. * @param array $headers
  11297. * @return \Illuminate\Http\Response
  11298. * @static
  11299. */
  11300. public static function noContent($status = 204, $headers = [])
  11301. {
  11302. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11303. return $instance->noContent($status, $headers);
  11304. }
  11305. /**
  11306. * Create a new response for a given view.
  11307. *
  11308. * @param string|array $view
  11309. * @param array $data
  11310. * @param int $status
  11311. * @param array $headers
  11312. * @return \Illuminate\Http\Response
  11313. * @static
  11314. */
  11315. public static function view($view, $data = [], $status = 200, $headers = [])
  11316. {
  11317. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11318. return $instance->view($view, $data, $status, $headers);
  11319. }
  11320. /**
  11321. * Create a new JSON response instance.
  11322. *
  11323. * @param mixed $data
  11324. * @param int $status
  11325. * @param array $headers
  11326. * @param int $options
  11327. * @return \Illuminate\Http\JsonResponse
  11328. * @static
  11329. */
  11330. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  11331. {
  11332. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11333. return $instance->json($data, $status, $headers, $options);
  11334. }
  11335. /**
  11336. * Create a new JSONP response instance.
  11337. *
  11338. * @param string $callback
  11339. * @param mixed $data
  11340. * @param int $status
  11341. * @param array $headers
  11342. * @param int $options
  11343. * @return \Illuminate\Http\JsonResponse
  11344. * @static
  11345. */
  11346. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  11347. {
  11348. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11349. return $instance->jsonp($callback, $data, $status, $headers, $options);
  11350. }
  11351. /**
  11352. * Create a new streamed response instance.
  11353. *
  11354. * @param \Closure $callback
  11355. * @param int $status
  11356. * @param array $headers
  11357. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11358. * @static
  11359. */
  11360. public static function stream($callback, $status = 200, $headers = [])
  11361. {
  11362. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11363. return $instance->stream($callback, $status, $headers);
  11364. }
  11365. /**
  11366. * Create a new streamed response instance as a file download.
  11367. *
  11368. * @param \Closure $callback
  11369. * @param string|null $name
  11370. * @param array $headers
  11371. * @param string|null $disposition
  11372. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11373. * @static
  11374. */
  11375. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  11376. {
  11377. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11378. return $instance->streamDownload($callback, $name, $headers, $disposition);
  11379. }
  11380. /**
  11381. * Create a new file download response.
  11382. *
  11383. * @param \SplFileInfo|string $file
  11384. * @param string|null $name
  11385. * @param array $headers
  11386. * @param string|null $disposition
  11387. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11388. * @static
  11389. */
  11390. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  11391. {
  11392. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11393. return $instance->download($file, $name, $headers, $disposition);
  11394. }
  11395. /**
  11396. * Return the raw contents of a binary file.
  11397. *
  11398. * @param \SplFileInfo|string $file
  11399. * @param array $headers
  11400. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11401. * @static
  11402. */
  11403. public static function file($file, $headers = [])
  11404. {
  11405. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11406. return $instance->file($file, $headers);
  11407. }
  11408. /**
  11409. * Create a new redirect response to the given path.
  11410. *
  11411. * @param string $path
  11412. * @param int $status
  11413. * @param array $headers
  11414. * @param bool|null $secure
  11415. * @return \Illuminate\Http\RedirectResponse
  11416. * @static
  11417. */
  11418. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  11419. {
  11420. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11421. return $instance->redirectTo($path, $status, $headers, $secure);
  11422. }
  11423. /**
  11424. * Create a new redirect response to a named route.
  11425. *
  11426. * @param string $route
  11427. * @param mixed $parameters
  11428. * @param int $status
  11429. * @param array $headers
  11430. * @return \Illuminate\Http\RedirectResponse
  11431. * @static
  11432. */
  11433. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  11434. {
  11435. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11436. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  11437. }
  11438. /**
  11439. * Create a new redirect response to a controller action.
  11440. *
  11441. * @param string $action
  11442. * @param mixed $parameters
  11443. * @param int $status
  11444. * @param array $headers
  11445. * @return \Illuminate\Http\RedirectResponse
  11446. * @static
  11447. */
  11448. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  11449. {
  11450. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11451. return $instance->redirectToAction($action, $parameters, $status, $headers);
  11452. }
  11453. /**
  11454. * Create a new redirect response, while putting the current URL in the session.
  11455. *
  11456. * @param string $path
  11457. * @param int $status
  11458. * @param array $headers
  11459. * @param bool|null $secure
  11460. * @return \Illuminate\Http\RedirectResponse
  11461. * @static
  11462. */
  11463. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  11464. {
  11465. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11466. return $instance->redirectGuest($path, $status, $headers, $secure);
  11467. }
  11468. /**
  11469. * Create a new redirect response to the previously intended location.
  11470. *
  11471. * @param string $default
  11472. * @param int $status
  11473. * @param array $headers
  11474. * @param bool|null $secure
  11475. * @return \Illuminate\Http\RedirectResponse
  11476. * @static
  11477. */
  11478. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  11479. {
  11480. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11481. return $instance->redirectToIntended($default, $status, $headers, $secure);
  11482. }
  11483. /**
  11484. * Register a custom macro.
  11485. *
  11486. * @param string $name
  11487. * @param object|callable $macro
  11488. * @return void
  11489. * @static
  11490. */
  11491. public static function macro($name, $macro)
  11492. {
  11493. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  11494. }
  11495. /**
  11496. * Mix another object into the class.
  11497. *
  11498. * @param object $mixin
  11499. * @param bool $replace
  11500. * @return void
  11501. * @throws \ReflectionException
  11502. * @static
  11503. */
  11504. public static function mixin($mixin, $replace = true)
  11505. {
  11506. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  11507. }
  11508. /**
  11509. * Checks if macro is registered.
  11510. *
  11511. * @param string $name
  11512. * @return bool
  11513. * @static
  11514. */
  11515. public static function hasMacro($name)
  11516. {
  11517. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  11518. }
  11519. /**
  11520. * Flush the existing macros.
  11521. *
  11522. * @return void
  11523. * @static
  11524. */
  11525. public static function flushMacros()
  11526. {
  11527. \Illuminate\Routing\ResponseFactory::flushMacros();
  11528. }
  11529. }
  11530. /**
  11531. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  11532. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  11533. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  11534. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  11535. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  11536. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  11537. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  11538. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  11539. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  11540. * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
  11541. * @see \Illuminate\Routing\Router
  11542. */
  11543. class Route {
  11544. /**
  11545. * Register a new GET route with the router.
  11546. *
  11547. * @param string $uri
  11548. * @param array|string|callable|null $action
  11549. * @return \Illuminate\Routing\Route
  11550. * @static
  11551. */
  11552. public static function get($uri, $action = null)
  11553. {
  11554. /** @var \Illuminate\Routing\Router $instance */
  11555. return $instance->get($uri, $action);
  11556. }
  11557. /**
  11558. * Register a new POST route with the router.
  11559. *
  11560. * @param string $uri
  11561. * @param array|string|callable|null $action
  11562. * @return \Illuminate\Routing\Route
  11563. * @static
  11564. */
  11565. public static function post($uri, $action = null)
  11566. {
  11567. /** @var \Illuminate\Routing\Router $instance */
  11568. return $instance->post($uri, $action);
  11569. }
  11570. /**
  11571. * Register a new PUT route with the router.
  11572. *
  11573. * @param string $uri
  11574. * @param array|string|callable|null $action
  11575. * @return \Illuminate\Routing\Route
  11576. * @static
  11577. */
  11578. public static function put($uri, $action = null)
  11579. {
  11580. /** @var \Illuminate\Routing\Router $instance */
  11581. return $instance->put($uri, $action);
  11582. }
  11583. /**
  11584. * Register a new PATCH route with the router.
  11585. *
  11586. * @param string $uri
  11587. * @param array|string|callable|null $action
  11588. * @return \Illuminate\Routing\Route
  11589. * @static
  11590. */
  11591. public static function patch($uri, $action = null)
  11592. {
  11593. /** @var \Illuminate\Routing\Router $instance */
  11594. return $instance->patch($uri, $action);
  11595. }
  11596. /**
  11597. * Register a new DELETE route with the router.
  11598. *
  11599. * @param string $uri
  11600. * @param array|string|callable|null $action
  11601. * @return \Illuminate\Routing\Route
  11602. * @static
  11603. */
  11604. public static function delete($uri, $action = null)
  11605. {
  11606. /** @var \Illuminate\Routing\Router $instance */
  11607. return $instance->delete($uri, $action);
  11608. }
  11609. /**
  11610. * Register a new OPTIONS route with the router.
  11611. *
  11612. * @param string $uri
  11613. * @param array|string|callable|null $action
  11614. * @return \Illuminate\Routing\Route
  11615. * @static
  11616. */
  11617. public static function options($uri, $action = null)
  11618. {
  11619. /** @var \Illuminate\Routing\Router $instance */
  11620. return $instance->options($uri, $action);
  11621. }
  11622. /**
  11623. * Register a new route responding to all verbs.
  11624. *
  11625. * @param string $uri
  11626. * @param array|string|callable|null $action
  11627. * @return \Illuminate\Routing\Route
  11628. * @static
  11629. */
  11630. public static function any($uri, $action = null)
  11631. {
  11632. /** @var \Illuminate\Routing\Router $instance */
  11633. return $instance->any($uri, $action);
  11634. }
  11635. /**
  11636. * Register a new Fallback route with the router.
  11637. *
  11638. * @param array|string|callable|null $action
  11639. * @return \Illuminate\Routing\Route
  11640. * @static
  11641. */
  11642. public static function fallback($action)
  11643. {
  11644. /** @var \Illuminate\Routing\Router $instance */
  11645. return $instance->fallback($action);
  11646. }
  11647. /**
  11648. * Create a redirect from one URI to another.
  11649. *
  11650. * @param string $uri
  11651. * @param string $destination
  11652. * @param int $status
  11653. * @return \Illuminate\Routing\Route
  11654. * @static
  11655. */
  11656. public static function redirect($uri, $destination, $status = 302)
  11657. {
  11658. /** @var \Illuminate\Routing\Router $instance */
  11659. return $instance->redirect($uri, $destination, $status);
  11660. }
  11661. /**
  11662. * Create a permanent redirect from one URI to another.
  11663. *
  11664. * @param string $uri
  11665. * @param string $destination
  11666. * @return \Illuminate\Routing\Route
  11667. * @static
  11668. */
  11669. public static function permanentRedirect($uri, $destination)
  11670. {
  11671. /** @var \Illuminate\Routing\Router $instance */
  11672. return $instance->permanentRedirect($uri, $destination);
  11673. }
  11674. /**
  11675. * Register a new route that returns a view.
  11676. *
  11677. * @param string $uri
  11678. * @param string $view
  11679. * @param array $data
  11680. * @param int|array $status
  11681. * @param array $headers
  11682. * @return \Illuminate\Routing\Route
  11683. * @static
  11684. */
  11685. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  11686. {
  11687. /** @var \Illuminate\Routing\Router $instance */
  11688. return $instance->view($uri, $view, $data, $status, $headers);
  11689. }
  11690. /**
  11691. * Register a new route with the given verbs.
  11692. *
  11693. * @param array|string $methods
  11694. * @param string $uri
  11695. * @param array|string|callable|null $action
  11696. * @return \Illuminate\Routing\Route
  11697. * @static
  11698. */
  11699. public static function match($methods, $uri, $action = null)
  11700. {
  11701. /** @var \Illuminate\Routing\Router $instance */
  11702. return $instance->match($methods, $uri, $action);
  11703. }
  11704. /**
  11705. * Register an array of resource controllers.
  11706. *
  11707. * @param array $resources
  11708. * @param array $options
  11709. * @return void
  11710. * @static
  11711. */
  11712. public static function resources($resources, $options = [])
  11713. {
  11714. /** @var \Illuminate\Routing\Router $instance */
  11715. $instance->resources($resources, $options);
  11716. }
  11717. /**
  11718. * Route a resource to a controller.
  11719. *
  11720. * @param string $name
  11721. * @param string $controller
  11722. * @param array $options
  11723. * @return \Illuminate\Routing\PendingResourceRegistration
  11724. * @static
  11725. */
  11726. public static function resource($name, $controller, $options = [])
  11727. {
  11728. /** @var \Illuminate\Routing\Router $instance */
  11729. return $instance->resource($name, $controller, $options);
  11730. }
  11731. /**
  11732. * Register an array of API resource controllers.
  11733. *
  11734. * @param array $resources
  11735. * @param array $options
  11736. * @return void
  11737. * @static
  11738. */
  11739. public static function apiResources($resources, $options = [])
  11740. {
  11741. /** @var \Illuminate\Routing\Router $instance */
  11742. $instance->apiResources($resources, $options);
  11743. }
  11744. /**
  11745. * Route an API resource to a controller.
  11746. *
  11747. * @param string $name
  11748. * @param string $controller
  11749. * @param array $options
  11750. * @return \Illuminate\Routing\PendingResourceRegistration
  11751. * @static
  11752. */
  11753. public static function apiResource($name, $controller, $options = [])
  11754. {
  11755. /** @var \Illuminate\Routing\Router $instance */
  11756. return $instance->apiResource($name, $controller, $options);
  11757. }
  11758. /**
  11759. * Create a route group with shared attributes.
  11760. *
  11761. * @param array $attributes
  11762. * @param \Closure|string $routes
  11763. * @return void
  11764. * @static
  11765. */
  11766. public static function group($attributes, $routes)
  11767. {
  11768. /** @var \Illuminate\Routing\Router $instance */
  11769. $instance->group($attributes, $routes);
  11770. }
  11771. /**
  11772. * Merge the given array with the last group stack.
  11773. *
  11774. * @param array $new
  11775. * @param bool $prependExistingPrefix
  11776. * @return array
  11777. * @static
  11778. */
  11779. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  11780. {
  11781. /** @var \Illuminate\Routing\Router $instance */
  11782. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  11783. }
  11784. /**
  11785. * Get the prefix from the last group on the stack.
  11786. *
  11787. * @return string
  11788. * @static
  11789. */
  11790. public static function getLastGroupPrefix()
  11791. {
  11792. /** @var \Illuminate\Routing\Router $instance */
  11793. return $instance->getLastGroupPrefix();
  11794. }
  11795. /**
  11796. * Add a route to the underlying route collection.
  11797. *
  11798. * @param array|string $methods
  11799. * @param string $uri
  11800. * @param array|string|callable|null $action
  11801. * @return \Illuminate\Routing\Route
  11802. * @static
  11803. */
  11804. public static function addRoute($methods, $uri, $action)
  11805. {
  11806. /** @var \Illuminate\Routing\Router $instance */
  11807. return $instance->addRoute($methods, $uri, $action);
  11808. }
  11809. /**
  11810. * Create a new Route object.
  11811. *
  11812. * @param array|string $methods
  11813. * @param string $uri
  11814. * @param mixed $action
  11815. * @return \Illuminate\Routing\Route
  11816. * @static
  11817. */
  11818. public static function newRoute($methods, $uri, $action)
  11819. {
  11820. /** @var \Illuminate\Routing\Router $instance */
  11821. return $instance->newRoute($methods, $uri, $action);
  11822. }
  11823. /**
  11824. * Return the response returned by the given route.
  11825. *
  11826. * @param string $name
  11827. * @return \Symfony\Component\HttpFoundation\Response
  11828. * @static
  11829. */
  11830. public static function respondWithRoute($name)
  11831. {
  11832. /** @var \Illuminate\Routing\Router $instance */
  11833. return $instance->respondWithRoute($name);
  11834. }
  11835. /**
  11836. * Dispatch the request to the application.
  11837. *
  11838. * @param \Illuminate\Http\Request $request
  11839. * @return \Symfony\Component\HttpFoundation\Response
  11840. * @static
  11841. */
  11842. public static function dispatch($request)
  11843. {
  11844. /** @var \Illuminate\Routing\Router $instance */
  11845. return $instance->dispatch($request);
  11846. }
  11847. /**
  11848. * Dispatch the request to a route and return the response.
  11849. *
  11850. * @param \Illuminate\Http\Request $request
  11851. * @return \Symfony\Component\HttpFoundation\Response
  11852. * @static
  11853. */
  11854. public static function dispatchToRoute($request)
  11855. {
  11856. /** @var \Illuminate\Routing\Router $instance */
  11857. return $instance->dispatchToRoute($request);
  11858. }
  11859. /**
  11860. * Gather the middleware for the given route with resolved class names.
  11861. *
  11862. * @param \Illuminate\Routing\Route $route
  11863. * @return array
  11864. * @static
  11865. */
  11866. public static function gatherRouteMiddleware($route)
  11867. {
  11868. /** @var \Illuminate\Routing\Router $instance */
  11869. return $instance->gatherRouteMiddleware($route);
  11870. }
  11871. /**
  11872. * Create a response instance from the given value.
  11873. *
  11874. * @param \Symfony\Component\HttpFoundation\Request $request
  11875. * @param mixed $response
  11876. * @return \Symfony\Component\HttpFoundation\Response
  11877. * @static
  11878. */
  11879. public static function prepareResponse($request, $response)
  11880. {
  11881. /** @var \Illuminate\Routing\Router $instance */
  11882. return $instance->prepareResponse($request, $response);
  11883. }
  11884. /**
  11885. * Static version of prepareResponse.
  11886. *
  11887. * @param \Symfony\Component\HttpFoundation\Request $request
  11888. * @param mixed $response
  11889. * @return \Symfony\Component\HttpFoundation\Response
  11890. * @static
  11891. */
  11892. public static function toResponse($request, $response)
  11893. {
  11894. return \Illuminate\Routing\Router::toResponse($request, $response);
  11895. }
  11896. /**
  11897. * Substitute the route bindings onto the route.
  11898. *
  11899. * @param \Illuminate\Routing\Route $route
  11900. * @return \Illuminate\Routing\Route
  11901. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11902. * @static
  11903. */
  11904. public static function substituteBindings($route)
  11905. {
  11906. /** @var \Illuminate\Routing\Router $instance */
  11907. return $instance->substituteBindings($route);
  11908. }
  11909. /**
  11910. * Substitute the implicit Eloquent model bindings for the route.
  11911. *
  11912. * @param \Illuminate\Routing\Route $route
  11913. * @return void
  11914. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11915. * @static
  11916. */
  11917. public static function substituteImplicitBindings($route)
  11918. {
  11919. /** @var \Illuminate\Routing\Router $instance */
  11920. $instance->substituteImplicitBindings($route);
  11921. }
  11922. /**
  11923. * Register a route matched event listener.
  11924. *
  11925. * @param string|callable $callback
  11926. * @return void
  11927. * @static
  11928. */
  11929. public static function matched($callback)
  11930. {
  11931. /** @var \Illuminate\Routing\Router $instance */
  11932. $instance->matched($callback);
  11933. }
  11934. /**
  11935. * Get all of the defined middleware short-hand names.
  11936. *
  11937. * @return array
  11938. * @static
  11939. */
  11940. public static function getMiddleware()
  11941. {
  11942. /** @var \Illuminate\Routing\Router $instance */
  11943. return $instance->getMiddleware();
  11944. }
  11945. /**
  11946. * Register a short-hand name for a middleware.
  11947. *
  11948. * @param string $name
  11949. * @param string $class
  11950. * @return \Illuminate\Routing\Router
  11951. * @static
  11952. */
  11953. public static function aliasMiddleware($name, $class)
  11954. {
  11955. /** @var \Illuminate\Routing\Router $instance */
  11956. return $instance->aliasMiddleware($name, $class);
  11957. }
  11958. /**
  11959. * Check if a middlewareGroup with the given name exists.
  11960. *
  11961. * @param string $name
  11962. * @return bool
  11963. * @static
  11964. */
  11965. public static function hasMiddlewareGroup($name)
  11966. {
  11967. /** @var \Illuminate\Routing\Router $instance */
  11968. return $instance->hasMiddlewareGroup($name);
  11969. }
  11970. /**
  11971. * Get all of the defined middleware groups.
  11972. *
  11973. * @return array
  11974. * @static
  11975. */
  11976. public static function getMiddlewareGroups()
  11977. {
  11978. /** @var \Illuminate\Routing\Router $instance */
  11979. return $instance->getMiddlewareGroups();
  11980. }
  11981. /**
  11982. * Register a group of middleware.
  11983. *
  11984. * @param string $name
  11985. * @param array $middleware
  11986. * @return \Illuminate\Routing\Router
  11987. * @static
  11988. */
  11989. public static function middlewareGroup($name, $middleware)
  11990. {
  11991. /** @var \Illuminate\Routing\Router $instance */
  11992. return $instance->middlewareGroup($name, $middleware);
  11993. }
  11994. /**
  11995. * Add a middleware to the beginning of a middleware group.
  11996. *
  11997. * If the middleware is already in the group, it will not be added again.
  11998. *
  11999. * @param string $group
  12000. * @param string $middleware
  12001. * @return \Illuminate\Routing\Router
  12002. * @static
  12003. */
  12004. public static function prependMiddlewareToGroup($group, $middleware)
  12005. {
  12006. /** @var \Illuminate\Routing\Router $instance */
  12007. return $instance->prependMiddlewareToGroup($group, $middleware);
  12008. }
  12009. /**
  12010. * Add a middleware to the end of a middleware group.
  12011. *
  12012. * If the middleware is already in the group, it will not be added again.
  12013. *
  12014. * @param string $group
  12015. * @param string $middleware
  12016. * @return \Illuminate\Routing\Router
  12017. * @static
  12018. */
  12019. public static function pushMiddlewareToGroup($group, $middleware)
  12020. {
  12021. /** @var \Illuminate\Routing\Router $instance */
  12022. return $instance->pushMiddlewareToGroup($group, $middleware);
  12023. }
  12024. /**
  12025. * Flush the router's middleware groups.
  12026. *
  12027. * @return \Illuminate\Routing\Router
  12028. * @static
  12029. */
  12030. public static function flushMiddlewareGroups()
  12031. {
  12032. /** @var \Illuminate\Routing\Router $instance */
  12033. return $instance->flushMiddlewareGroups();
  12034. }
  12035. /**
  12036. * Add a new route parameter binder.
  12037. *
  12038. * @param string $key
  12039. * @param string|callable $binder
  12040. * @return void
  12041. * @static
  12042. */
  12043. public static function bind($key, $binder)
  12044. {
  12045. /** @var \Illuminate\Routing\Router $instance */
  12046. $instance->bind($key, $binder);
  12047. }
  12048. /**
  12049. * Register a model binder for a wildcard.
  12050. *
  12051. * @param string $key
  12052. * @param string $class
  12053. * @param \Closure|null $callback
  12054. * @return void
  12055. * @static
  12056. */
  12057. public static function model($key, $class, $callback = null)
  12058. {
  12059. /** @var \Illuminate\Routing\Router $instance */
  12060. $instance->model($key, $class, $callback);
  12061. }
  12062. /**
  12063. * Get the binding callback for a given binding.
  12064. *
  12065. * @param string $key
  12066. * @return \Closure|null
  12067. * @static
  12068. */
  12069. public static function getBindingCallback($key)
  12070. {
  12071. /** @var \Illuminate\Routing\Router $instance */
  12072. return $instance->getBindingCallback($key);
  12073. }
  12074. /**
  12075. * Get the global "where" patterns.
  12076. *
  12077. * @return array
  12078. * @static
  12079. */
  12080. public static function getPatterns()
  12081. {
  12082. /** @var \Illuminate\Routing\Router $instance */
  12083. return $instance->getPatterns();
  12084. }
  12085. /**
  12086. * Set a global where pattern on all routes.
  12087. *
  12088. * @param string $key
  12089. * @param string $pattern
  12090. * @return void
  12091. * @static
  12092. */
  12093. public static function pattern($key, $pattern)
  12094. {
  12095. /** @var \Illuminate\Routing\Router $instance */
  12096. $instance->pattern($key, $pattern);
  12097. }
  12098. /**
  12099. * Set a group of global where patterns on all routes.
  12100. *
  12101. * @param array $patterns
  12102. * @return void
  12103. * @static
  12104. */
  12105. public static function patterns($patterns)
  12106. {
  12107. /** @var \Illuminate\Routing\Router $instance */
  12108. $instance->patterns($patterns);
  12109. }
  12110. /**
  12111. * Determine if the router currently has a group stack.
  12112. *
  12113. * @return bool
  12114. * @static
  12115. */
  12116. public static function hasGroupStack()
  12117. {
  12118. /** @var \Illuminate\Routing\Router $instance */
  12119. return $instance->hasGroupStack();
  12120. }
  12121. /**
  12122. * Get the current group stack for the router.
  12123. *
  12124. * @return array
  12125. * @static
  12126. */
  12127. public static function getGroupStack()
  12128. {
  12129. /** @var \Illuminate\Routing\Router $instance */
  12130. return $instance->getGroupStack();
  12131. }
  12132. /**
  12133. * Get a route parameter for the current route.
  12134. *
  12135. * @param string $key
  12136. * @param string|null $default
  12137. * @return mixed
  12138. * @static
  12139. */
  12140. public static function input($key, $default = null)
  12141. {
  12142. /** @var \Illuminate\Routing\Router $instance */
  12143. return $instance->input($key, $default);
  12144. }
  12145. /**
  12146. * Get the request currently being dispatched.
  12147. *
  12148. * @return \Illuminate\Http\Request
  12149. * @static
  12150. */
  12151. public static function getCurrentRequest()
  12152. {
  12153. /** @var \Illuminate\Routing\Router $instance */
  12154. return $instance->getCurrentRequest();
  12155. }
  12156. /**
  12157. * Get the currently dispatched route instance.
  12158. *
  12159. * @return \Illuminate\Routing\Route|null
  12160. * @static
  12161. */
  12162. public static function getCurrentRoute()
  12163. {
  12164. /** @var \Illuminate\Routing\Router $instance */
  12165. return $instance->getCurrentRoute();
  12166. }
  12167. /**
  12168. * Get the currently dispatched route instance.
  12169. *
  12170. * @return \Illuminate\Routing\Route|null
  12171. * @static
  12172. */
  12173. public static function current()
  12174. {
  12175. /** @var \Illuminate\Routing\Router $instance */
  12176. return $instance->current();
  12177. }
  12178. /**
  12179. * Check if a route with the given name exists.
  12180. *
  12181. * @param string $name
  12182. * @return bool
  12183. * @static
  12184. */
  12185. public static function has($name)
  12186. {
  12187. /** @var \Illuminate\Routing\Router $instance */
  12188. return $instance->has($name);
  12189. }
  12190. /**
  12191. * Get the current route name.
  12192. *
  12193. * @return string|null
  12194. * @static
  12195. */
  12196. public static function currentRouteName()
  12197. {
  12198. /** @var \Illuminate\Routing\Router $instance */
  12199. return $instance->currentRouteName();
  12200. }
  12201. /**
  12202. * Alias for the "currentRouteNamed" method.
  12203. *
  12204. * @param mixed $patterns
  12205. * @return bool
  12206. * @static
  12207. */
  12208. public static function is(...$patterns)
  12209. {
  12210. /** @var \Illuminate\Routing\Router $instance */
  12211. return $instance->is(...$patterns);
  12212. }
  12213. /**
  12214. * Determine if the current route matches a pattern.
  12215. *
  12216. * @param mixed $patterns
  12217. * @return bool
  12218. * @static
  12219. */
  12220. public static function currentRouteNamed(...$patterns)
  12221. {
  12222. /** @var \Illuminate\Routing\Router $instance */
  12223. return $instance->currentRouteNamed(...$patterns);
  12224. }
  12225. /**
  12226. * Get the current route action.
  12227. *
  12228. * @return string|null
  12229. * @static
  12230. */
  12231. public static function currentRouteAction()
  12232. {
  12233. /** @var \Illuminate\Routing\Router $instance */
  12234. return $instance->currentRouteAction();
  12235. }
  12236. /**
  12237. * Alias for the "currentRouteUses" method.
  12238. *
  12239. * @param array $patterns
  12240. * @return bool
  12241. * @static
  12242. */
  12243. public static function uses(...$patterns)
  12244. {
  12245. /** @var \Illuminate\Routing\Router $instance */
  12246. return $instance->uses(...$patterns);
  12247. }
  12248. /**
  12249. * Determine if the current route action matches a given action.
  12250. *
  12251. * @param string $action
  12252. * @return bool
  12253. * @static
  12254. */
  12255. public static function currentRouteUses($action)
  12256. {
  12257. /** @var \Illuminate\Routing\Router $instance */
  12258. return $instance->currentRouteUses($action);
  12259. }
  12260. /**
  12261. * Set the unmapped global resource parameters to singular.
  12262. *
  12263. * @param bool $singular
  12264. * @return void
  12265. * @static
  12266. */
  12267. public static function singularResourceParameters($singular = true)
  12268. {
  12269. /** @var \Illuminate\Routing\Router $instance */
  12270. $instance->singularResourceParameters($singular);
  12271. }
  12272. /**
  12273. * Set the global resource parameter mapping.
  12274. *
  12275. * @param array $parameters
  12276. * @return void
  12277. * @static
  12278. */
  12279. public static function resourceParameters($parameters = [])
  12280. {
  12281. /** @var \Illuminate\Routing\Router $instance */
  12282. $instance->resourceParameters($parameters);
  12283. }
  12284. /**
  12285. * Get or set the verbs used in the resource URIs.
  12286. *
  12287. * @param array $verbs
  12288. * @return array|null
  12289. * @static
  12290. */
  12291. public static function resourceVerbs($verbs = [])
  12292. {
  12293. /** @var \Illuminate\Routing\Router $instance */
  12294. return $instance->resourceVerbs($verbs);
  12295. }
  12296. /**
  12297. * Get the underlying route collection.
  12298. *
  12299. * @return \Illuminate\Routing\RouteCollectionInterface
  12300. * @static
  12301. */
  12302. public static function getRoutes()
  12303. {
  12304. /** @var \Illuminate\Routing\Router $instance */
  12305. return $instance->getRoutes();
  12306. }
  12307. /**
  12308. * Set the route collection instance.
  12309. *
  12310. * @param \Illuminate\Routing\RouteCollection $routes
  12311. * @return void
  12312. * @static
  12313. */
  12314. public static function setRoutes($routes)
  12315. {
  12316. /** @var \Illuminate\Routing\Router $instance */
  12317. $instance->setRoutes($routes);
  12318. }
  12319. /**
  12320. * Set the compiled route collection instance.
  12321. *
  12322. * @param array $routes
  12323. * @return void
  12324. * @static
  12325. */
  12326. public static function setCompiledRoutes($routes)
  12327. {
  12328. /** @var \Illuminate\Routing\Router $instance */
  12329. $instance->setCompiledRoutes($routes);
  12330. }
  12331. /**
  12332. * Remove any duplicate middleware from the given array.
  12333. *
  12334. * @param array $middleware
  12335. * @return array
  12336. * @static
  12337. */
  12338. public static function uniqueMiddleware($middleware)
  12339. {
  12340. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  12341. }
  12342. /**
  12343. * Set the container instance used by the router.
  12344. *
  12345. * @param \Illuminate\Container\Container $container
  12346. * @return \Illuminate\Routing\Router
  12347. * @static
  12348. */
  12349. public static function setContainer($container)
  12350. {
  12351. /** @var \Illuminate\Routing\Router $instance */
  12352. return $instance->setContainer($container);
  12353. }
  12354. /**
  12355. * Register a custom macro.
  12356. *
  12357. * @param string $name
  12358. * @param object|callable $macro
  12359. * @return void
  12360. * @static
  12361. */
  12362. public static function macro($name, $macro)
  12363. {
  12364. \Illuminate\Routing\Router::macro($name, $macro);
  12365. }
  12366. /**
  12367. * Mix another object into the class.
  12368. *
  12369. * @param object $mixin
  12370. * @param bool $replace
  12371. * @return void
  12372. * @throws \ReflectionException
  12373. * @static
  12374. */
  12375. public static function mixin($mixin, $replace = true)
  12376. {
  12377. \Illuminate\Routing\Router::mixin($mixin, $replace);
  12378. }
  12379. /**
  12380. * Checks if macro is registered.
  12381. *
  12382. * @param string $name
  12383. * @return bool
  12384. * @static
  12385. */
  12386. public static function hasMacro($name)
  12387. {
  12388. return \Illuminate\Routing\Router::hasMacro($name);
  12389. }
  12390. /**
  12391. * Flush the existing macros.
  12392. *
  12393. * @return void
  12394. * @static
  12395. */
  12396. public static function flushMacros()
  12397. {
  12398. \Illuminate\Routing\Router::flushMacros();
  12399. }
  12400. /**
  12401. * Dynamically handle calls to the class.
  12402. *
  12403. * @param string $method
  12404. * @param array $parameters
  12405. * @return mixed
  12406. * @throws \BadMethodCallException
  12407. * @static
  12408. */
  12409. public static function macroCall($method, $parameters)
  12410. {
  12411. /** @var \Illuminate\Routing\Router $instance */
  12412. return $instance->macroCall($method, $parameters);
  12413. }
  12414. }
  12415. /**
  12416. * @see \Illuminate\Database\Schema\Builder
  12417. */
  12418. class Schema {
  12419. /**
  12420. * Create a database in the schema.
  12421. *
  12422. * @param string $name
  12423. * @return bool
  12424. * @static
  12425. */
  12426. public static function createDatabase($name)
  12427. {
  12428. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12429. return $instance->createDatabase($name);
  12430. }
  12431. /**
  12432. * Drop a database from the schema if the database exists.
  12433. *
  12434. * @param string $name
  12435. * @return bool
  12436. * @static
  12437. */
  12438. public static function dropDatabaseIfExists($name)
  12439. {
  12440. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12441. return $instance->dropDatabaseIfExists($name);
  12442. }
  12443. /**
  12444. * Determine if the given table exists.
  12445. *
  12446. * @param string $table
  12447. * @return bool
  12448. * @static
  12449. */
  12450. public static function hasTable($table)
  12451. {
  12452. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12453. return $instance->hasTable($table);
  12454. }
  12455. /**
  12456. * Get the column listing for a given table.
  12457. *
  12458. * @param string $table
  12459. * @return array
  12460. * @static
  12461. */
  12462. public static function getColumnListing($table)
  12463. {
  12464. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12465. return $instance->getColumnListing($table);
  12466. }
  12467. /**
  12468. * Drop all tables from the database.
  12469. *
  12470. * @return void
  12471. * @static
  12472. */
  12473. public static function dropAllTables()
  12474. {
  12475. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12476. $instance->dropAllTables();
  12477. }
  12478. /**
  12479. * Drop all views from the database.
  12480. *
  12481. * @return void
  12482. * @static
  12483. */
  12484. public static function dropAllViews()
  12485. {
  12486. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12487. $instance->dropAllViews();
  12488. }
  12489. /**
  12490. * Get all of the table names for the database.
  12491. *
  12492. * @return array
  12493. * @static
  12494. */
  12495. public static function getAllTables()
  12496. {
  12497. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12498. return $instance->getAllTables();
  12499. }
  12500. /**
  12501. * Get all of the view names for the database.
  12502. *
  12503. * @return array
  12504. * @static
  12505. */
  12506. public static function getAllViews()
  12507. {
  12508. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12509. return $instance->getAllViews();
  12510. }
  12511. /**
  12512. * Set the default string length for migrations.
  12513. *
  12514. * @param int $length
  12515. * @return void
  12516. * @static
  12517. */
  12518. public static function defaultStringLength($length)
  12519. { //Method inherited from \Illuminate\Database\Schema\Builder
  12520. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  12521. }
  12522. /**
  12523. * Set the default morph key type for migrations.
  12524. *
  12525. * @param string $type
  12526. * @return void
  12527. * @throws \InvalidArgumentException
  12528. * @static
  12529. */
  12530. public static function defaultMorphKeyType($type)
  12531. { //Method inherited from \Illuminate\Database\Schema\Builder
  12532. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  12533. }
  12534. /**
  12535. * Set the default morph key type for migrations to UUIDs.
  12536. *
  12537. * @return void
  12538. * @static
  12539. */
  12540. public static function morphUsingUuids()
  12541. { //Method inherited from \Illuminate\Database\Schema\Builder
  12542. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  12543. }
  12544. /**
  12545. * Determine if the given table has a given column.
  12546. *
  12547. * @param string $table
  12548. * @param string $column
  12549. * @return bool
  12550. * @static
  12551. */
  12552. public static function hasColumn($table, $column)
  12553. { //Method inherited from \Illuminate\Database\Schema\Builder
  12554. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12555. return $instance->hasColumn($table, $column);
  12556. }
  12557. /**
  12558. * Determine if the given table has given columns.
  12559. *
  12560. * @param string $table
  12561. * @param array $columns
  12562. * @return bool
  12563. * @static
  12564. */
  12565. public static function hasColumns($table, $columns)
  12566. { //Method inherited from \Illuminate\Database\Schema\Builder
  12567. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12568. return $instance->hasColumns($table, $columns);
  12569. }
  12570. /**
  12571. * Get the data type for the given column name.
  12572. *
  12573. * @param string $table
  12574. * @param string $column
  12575. * @return string
  12576. * @static
  12577. */
  12578. public static function getColumnType($table, $column)
  12579. { //Method inherited from \Illuminate\Database\Schema\Builder
  12580. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12581. return $instance->getColumnType($table, $column);
  12582. }
  12583. /**
  12584. * Modify a table on the schema.
  12585. *
  12586. * @param string $table
  12587. * @param \Closure $callback
  12588. * @return void
  12589. * @static
  12590. */
  12591. public static function table($table, $callback)
  12592. { //Method inherited from \Illuminate\Database\Schema\Builder
  12593. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12594. $instance->table($table, $callback);
  12595. }
  12596. /**
  12597. * Create a new table on the schema.
  12598. *
  12599. * @param string $table
  12600. * @param \Closure $callback
  12601. * @return void
  12602. * @static
  12603. */
  12604. public static function create($table, $callback)
  12605. { //Method inherited from \Illuminate\Database\Schema\Builder
  12606. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12607. $instance->create($table, $callback);
  12608. }
  12609. /**
  12610. * Drop a table from the schema.
  12611. *
  12612. * @param string $table
  12613. * @return void
  12614. * @static
  12615. */
  12616. public static function drop($table)
  12617. { //Method inherited from \Illuminate\Database\Schema\Builder
  12618. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12619. $instance->drop($table);
  12620. }
  12621. /**
  12622. * Drop a table from the schema if it exists.
  12623. *
  12624. * @param string $table
  12625. * @return void
  12626. * @static
  12627. */
  12628. public static function dropIfExists($table)
  12629. { //Method inherited from \Illuminate\Database\Schema\Builder
  12630. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12631. $instance->dropIfExists($table);
  12632. }
  12633. /**
  12634. * Drop columns from a table schema.
  12635. *
  12636. * @param string $table
  12637. * @param string|array $columns
  12638. * @return void
  12639. * @static
  12640. */
  12641. public static function dropColumns($table, $columns)
  12642. { //Method inherited from \Illuminate\Database\Schema\Builder
  12643. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12644. $instance->dropColumns($table, $columns);
  12645. }
  12646. /**
  12647. * Drop all types from the database.
  12648. *
  12649. * @return void
  12650. * @throws \LogicException
  12651. * @static
  12652. */
  12653. public static function dropAllTypes()
  12654. { //Method inherited from \Illuminate\Database\Schema\Builder
  12655. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12656. $instance->dropAllTypes();
  12657. }
  12658. /**
  12659. * Rename a table on the schema.
  12660. *
  12661. * @param string $from
  12662. * @param string $to
  12663. * @return void
  12664. * @static
  12665. */
  12666. public static function rename($from, $to)
  12667. { //Method inherited from \Illuminate\Database\Schema\Builder
  12668. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12669. $instance->rename($from, $to);
  12670. }
  12671. /**
  12672. * Enable foreign key constraints.
  12673. *
  12674. * @return bool
  12675. * @static
  12676. */
  12677. public static function enableForeignKeyConstraints()
  12678. { //Method inherited from \Illuminate\Database\Schema\Builder
  12679. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12680. return $instance->enableForeignKeyConstraints();
  12681. }
  12682. /**
  12683. * Disable foreign key constraints.
  12684. *
  12685. * @return bool
  12686. * @static
  12687. */
  12688. public static function disableForeignKeyConstraints()
  12689. { //Method inherited from \Illuminate\Database\Schema\Builder
  12690. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12691. return $instance->disableForeignKeyConstraints();
  12692. }
  12693. /**
  12694. * Register a custom Doctrine mapping type.
  12695. *
  12696. * @param string $class
  12697. * @param string $name
  12698. * @param string $type
  12699. * @return void
  12700. * @static
  12701. */
  12702. public static function registerCustomDoctrineType($class, $name, $type)
  12703. { //Method inherited from \Illuminate\Database\Schema\Builder
  12704. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12705. $instance->registerCustomDoctrineType($class, $name, $type);
  12706. }
  12707. /**
  12708. * Get the database connection instance.
  12709. *
  12710. * @return \Illuminate\Database\Connection
  12711. * @static
  12712. */
  12713. public static function getConnection()
  12714. { //Method inherited from \Illuminate\Database\Schema\Builder
  12715. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12716. return $instance->getConnection();
  12717. }
  12718. /**
  12719. * Set the database connection instance.
  12720. *
  12721. * @param \Illuminate\Database\Connection $connection
  12722. * @return \Illuminate\Database\Schema\MySqlBuilder
  12723. * @static
  12724. */
  12725. public static function setConnection($connection)
  12726. { //Method inherited from \Illuminate\Database\Schema\Builder
  12727. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12728. return $instance->setConnection($connection);
  12729. }
  12730. /**
  12731. * Set the Schema Blueprint resolver callback.
  12732. *
  12733. * @param \Closure $resolver
  12734. * @return void
  12735. * @static
  12736. */
  12737. public static function blueprintResolver($resolver)
  12738. { //Method inherited from \Illuminate\Database\Schema\Builder
  12739. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12740. $instance->blueprintResolver($resolver);
  12741. }
  12742. }
  12743. /**
  12744. * @see \Illuminate\Session\SessionManager
  12745. * @see \Illuminate\Session\Store
  12746. */
  12747. class Session {
  12748. /**
  12749. * Determine if requests for the same session should wait for each to finish before executing.
  12750. *
  12751. * @return bool
  12752. * @static
  12753. */
  12754. public static function shouldBlock()
  12755. {
  12756. /** @var \Illuminate\Session\SessionManager $instance */
  12757. return $instance->shouldBlock();
  12758. }
  12759. /**
  12760. * Get the name of the cache store / driver that should be used to acquire session locks.
  12761. *
  12762. * @return string|null
  12763. * @static
  12764. */
  12765. public static function blockDriver()
  12766. {
  12767. /** @var \Illuminate\Session\SessionManager $instance */
  12768. return $instance->blockDriver();
  12769. }
  12770. /**
  12771. * Get the session configuration.
  12772. *
  12773. * @return array
  12774. * @static
  12775. */
  12776. public static function getSessionConfig()
  12777. {
  12778. /** @var \Illuminate\Session\SessionManager $instance */
  12779. return $instance->getSessionConfig();
  12780. }
  12781. /**
  12782. * Get the default session driver name.
  12783. *
  12784. * @return string
  12785. * @static
  12786. */
  12787. public static function getDefaultDriver()
  12788. {
  12789. /** @var \Illuminate\Session\SessionManager $instance */
  12790. return $instance->getDefaultDriver();
  12791. }
  12792. /**
  12793. * Set the default session driver name.
  12794. *
  12795. * @param string $name
  12796. * @return void
  12797. * @static
  12798. */
  12799. public static function setDefaultDriver($name)
  12800. {
  12801. /** @var \Illuminate\Session\SessionManager $instance */
  12802. $instance->setDefaultDriver($name);
  12803. }
  12804. /**
  12805. * Get a driver instance.
  12806. *
  12807. * @param string|null $driver
  12808. * @return mixed
  12809. * @throws \InvalidArgumentException
  12810. * @static
  12811. */
  12812. public static function driver($driver = null)
  12813. { //Method inherited from \Illuminate\Support\Manager
  12814. /** @var \Illuminate\Session\SessionManager $instance */
  12815. return $instance->driver($driver);
  12816. }
  12817. /**
  12818. * Register a custom driver creator Closure.
  12819. *
  12820. * @param string $driver
  12821. * @param \Closure $callback
  12822. * @return \Illuminate\Session\SessionManager
  12823. * @static
  12824. */
  12825. public static function extend($driver, $callback)
  12826. { //Method inherited from \Illuminate\Support\Manager
  12827. /** @var \Illuminate\Session\SessionManager $instance */
  12828. return $instance->extend($driver, $callback);
  12829. }
  12830. /**
  12831. * Get all of the created "drivers".
  12832. *
  12833. * @return array
  12834. * @static
  12835. */
  12836. public static function getDrivers()
  12837. { //Method inherited from \Illuminate\Support\Manager
  12838. /** @var \Illuminate\Session\SessionManager $instance */
  12839. return $instance->getDrivers();
  12840. }
  12841. /**
  12842. * Get the container instance used by the manager.
  12843. *
  12844. * @return \Illuminate\Contracts\Container\Container
  12845. * @static
  12846. */
  12847. public static function getContainer()
  12848. { //Method inherited from \Illuminate\Support\Manager
  12849. /** @var \Illuminate\Session\SessionManager $instance */
  12850. return $instance->getContainer();
  12851. }
  12852. /**
  12853. * Set the container instance used by the manager.
  12854. *
  12855. * @param \Illuminate\Contracts\Container\Container $container
  12856. * @return \Illuminate\Session\SessionManager
  12857. * @static
  12858. */
  12859. public static function setContainer($container)
  12860. { //Method inherited from \Illuminate\Support\Manager
  12861. /** @var \Illuminate\Session\SessionManager $instance */
  12862. return $instance->setContainer($container);
  12863. }
  12864. /**
  12865. * Forget all of the resolved driver instances.
  12866. *
  12867. * @return \Illuminate\Session\SessionManager
  12868. * @static
  12869. */
  12870. public static function forgetDrivers()
  12871. { //Method inherited from \Illuminate\Support\Manager
  12872. /** @var \Illuminate\Session\SessionManager $instance */
  12873. return $instance->forgetDrivers();
  12874. }
  12875. /**
  12876. * Start the session, reading the data from a handler.
  12877. *
  12878. * @return bool
  12879. * @static
  12880. */
  12881. public static function start()
  12882. {
  12883. /** @var \Illuminate\Session\Store $instance */
  12884. return $instance->start();
  12885. }
  12886. /**
  12887. * Save the session data to storage.
  12888. *
  12889. * @return void
  12890. * @static
  12891. */
  12892. public static function save()
  12893. {
  12894. /** @var \Illuminate\Session\Store $instance */
  12895. $instance->save();
  12896. }
  12897. /**
  12898. * Age the flash data for the session.
  12899. *
  12900. * @return void
  12901. * @static
  12902. */
  12903. public static function ageFlashData()
  12904. {
  12905. /** @var \Illuminate\Session\Store $instance */
  12906. $instance->ageFlashData();
  12907. }
  12908. /**
  12909. * Get all of the session data.
  12910. *
  12911. * @return array
  12912. * @static
  12913. */
  12914. public static function all()
  12915. {
  12916. /** @var \Illuminate\Session\Store $instance */
  12917. return $instance->all();
  12918. }
  12919. /**
  12920. * Get a subset of the session data.
  12921. *
  12922. * @param array $keys
  12923. * @return array
  12924. * @static
  12925. */
  12926. public static function only($keys)
  12927. {
  12928. /** @var \Illuminate\Session\Store $instance */
  12929. return $instance->only($keys);
  12930. }
  12931. /**
  12932. * Checks if a key exists.
  12933. *
  12934. * @param string|array $key
  12935. * @return bool
  12936. * @static
  12937. */
  12938. public static function exists($key)
  12939. {
  12940. /** @var \Illuminate\Session\Store $instance */
  12941. return $instance->exists($key);
  12942. }
  12943. /**
  12944. * Determine if the given key is missing from the session data.
  12945. *
  12946. * @param string|array $key
  12947. * @return bool
  12948. * @static
  12949. */
  12950. public static function missing($key)
  12951. {
  12952. /** @var \Illuminate\Session\Store $instance */
  12953. return $instance->missing($key);
  12954. }
  12955. /**
  12956. * Checks if a key is present and not null.
  12957. *
  12958. * @param string|array $key
  12959. * @return bool
  12960. * @static
  12961. */
  12962. public static function has($key)
  12963. {
  12964. /** @var \Illuminate\Session\Store $instance */
  12965. return $instance->has($key);
  12966. }
  12967. /**
  12968. * Get an item from the session.
  12969. *
  12970. * @param string $key
  12971. * @param mixed $default
  12972. * @return mixed
  12973. * @static
  12974. */
  12975. public static function get($key, $default = null)
  12976. {
  12977. /** @var \Illuminate\Session\Store $instance */
  12978. return $instance->get($key, $default);
  12979. }
  12980. /**
  12981. * Get the value of a given key and then forget it.
  12982. *
  12983. * @param string $key
  12984. * @param mixed $default
  12985. * @return mixed
  12986. * @static
  12987. */
  12988. public static function pull($key, $default = null)
  12989. {
  12990. /** @var \Illuminate\Session\Store $instance */
  12991. return $instance->pull($key, $default);
  12992. }
  12993. /**
  12994. * Determine if the session contains old input.
  12995. *
  12996. * @param string|null $key
  12997. * @return bool
  12998. * @static
  12999. */
  13000. public static function hasOldInput($key = null)
  13001. {
  13002. /** @var \Illuminate\Session\Store $instance */
  13003. return $instance->hasOldInput($key);
  13004. }
  13005. /**
  13006. * Get the requested item from the flashed input array.
  13007. *
  13008. * @param string|null $key
  13009. * @param mixed $default
  13010. * @return mixed
  13011. * @static
  13012. */
  13013. public static function getOldInput($key = null, $default = null)
  13014. {
  13015. /** @var \Illuminate\Session\Store $instance */
  13016. return $instance->getOldInput($key, $default);
  13017. }
  13018. /**
  13019. * Replace the given session attributes entirely.
  13020. *
  13021. * @param array $attributes
  13022. * @return void
  13023. * @static
  13024. */
  13025. public static function replace($attributes)
  13026. {
  13027. /** @var \Illuminate\Session\Store $instance */
  13028. $instance->replace($attributes);
  13029. }
  13030. /**
  13031. * Put a key / value pair or array of key / value pairs in the session.
  13032. *
  13033. * @param string|array $key
  13034. * @param mixed $value
  13035. * @return void
  13036. * @static
  13037. */
  13038. public static function put($key, $value = null)
  13039. {
  13040. /** @var \Illuminate\Session\Store $instance */
  13041. $instance->put($key, $value);
  13042. }
  13043. /**
  13044. * Get an item from the session, or store the default value.
  13045. *
  13046. * @param string $key
  13047. * @param \Closure $callback
  13048. * @return mixed
  13049. * @static
  13050. */
  13051. public static function remember($key, $callback)
  13052. {
  13053. /** @var \Illuminate\Session\Store $instance */
  13054. return $instance->remember($key, $callback);
  13055. }
  13056. /**
  13057. * Push a value onto a session array.
  13058. *
  13059. * @param string $key
  13060. * @param mixed $value
  13061. * @return void
  13062. * @static
  13063. */
  13064. public static function push($key, $value)
  13065. {
  13066. /** @var \Illuminate\Session\Store $instance */
  13067. $instance->push($key, $value);
  13068. }
  13069. /**
  13070. * Increment the value of an item in the session.
  13071. *
  13072. * @param string $key
  13073. * @param int $amount
  13074. * @return mixed
  13075. * @static
  13076. */
  13077. public static function increment($key, $amount = 1)
  13078. {
  13079. /** @var \Illuminate\Session\Store $instance */
  13080. return $instance->increment($key, $amount);
  13081. }
  13082. /**
  13083. * Decrement the value of an item in the session.
  13084. *
  13085. * @param string $key
  13086. * @param int $amount
  13087. * @return int
  13088. * @static
  13089. */
  13090. public static function decrement($key, $amount = 1)
  13091. {
  13092. /** @var \Illuminate\Session\Store $instance */
  13093. return $instance->decrement($key, $amount);
  13094. }
  13095. /**
  13096. * Flash a key / value pair to the session.
  13097. *
  13098. * @param string $key
  13099. * @param mixed $value
  13100. * @return void
  13101. * @static
  13102. */
  13103. public static function flash($key, $value = true)
  13104. {
  13105. /** @var \Illuminate\Session\Store $instance */
  13106. $instance->flash($key, $value);
  13107. }
  13108. /**
  13109. * Flash a key / value pair to the session for immediate use.
  13110. *
  13111. * @param string $key
  13112. * @param mixed $value
  13113. * @return void
  13114. * @static
  13115. */
  13116. public static function now($key, $value)
  13117. {
  13118. /** @var \Illuminate\Session\Store $instance */
  13119. $instance->now($key, $value);
  13120. }
  13121. /**
  13122. * Reflash all of the session flash data.
  13123. *
  13124. * @return void
  13125. * @static
  13126. */
  13127. public static function reflash()
  13128. {
  13129. /** @var \Illuminate\Session\Store $instance */
  13130. $instance->reflash();
  13131. }
  13132. /**
  13133. * Reflash a subset of the current flash data.
  13134. *
  13135. * @param array|mixed $keys
  13136. * @return void
  13137. * @static
  13138. */
  13139. public static function keep($keys = null)
  13140. {
  13141. /** @var \Illuminate\Session\Store $instance */
  13142. $instance->keep($keys);
  13143. }
  13144. /**
  13145. * Flash an input array to the session.
  13146. *
  13147. * @param array $value
  13148. * @return void
  13149. * @static
  13150. */
  13151. public static function flashInput($value)
  13152. {
  13153. /** @var \Illuminate\Session\Store $instance */
  13154. $instance->flashInput($value);
  13155. }
  13156. /**
  13157. * Remove an item from the session, returning its value.
  13158. *
  13159. * @param string $key
  13160. * @return mixed
  13161. * @static
  13162. */
  13163. public static function remove($key)
  13164. {
  13165. /** @var \Illuminate\Session\Store $instance */
  13166. return $instance->remove($key);
  13167. }
  13168. /**
  13169. * Remove one or many items from the session.
  13170. *
  13171. * @param string|array $keys
  13172. * @return void
  13173. * @static
  13174. */
  13175. public static function forget($keys)
  13176. {
  13177. /** @var \Illuminate\Session\Store $instance */
  13178. $instance->forget($keys);
  13179. }
  13180. /**
  13181. * Remove all of the items from the session.
  13182. *
  13183. * @return void
  13184. * @static
  13185. */
  13186. public static function flush()
  13187. {
  13188. /** @var \Illuminate\Session\Store $instance */
  13189. $instance->flush();
  13190. }
  13191. /**
  13192. * Flush the session data and regenerate the ID.
  13193. *
  13194. * @return bool
  13195. * @static
  13196. */
  13197. public static function invalidate()
  13198. {
  13199. /** @var \Illuminate\Session\Store $instance */
  13200. return $instance->invalidate();
  13201. }
  13202. /**
  13203. * Generate a new session identifier.
  13204. *
  13205. * @param bool $destroy
  13206. * @return bool
  13207. * @static
  13208. */
  13209. public static function regenerate($destroy = false)
  13210. {
  13211. /** @var \Illuminate\Session\Store $instance */
  13212. return $instance->regenerate($destroy);
  13213. }
  13214. /**
  13215. * Generate a new session ID for the session.
  13216. *
  13217. * @param bool $destroy
  13218. * @return bool
  13219. * @static
  13220. */
  13221. public static function migrate($destroy = false)
  13222. {
  13223. /** @var \Illuminate\Session\Store $instance */
  13224. return $instance->migrate($destroy);
  13225. }
  13226. /**
  13227. * Determine if the session has been started.
  13228. *
  13229. * @return bool
  13230. * @static
  13231. */
  13232. public static function isStarted()
  13233. {
  13234. /** @var \Illuminate\Session\Store $instance */
  13235. return $instance->isStarted();
  13236. }
  13237. /**
  13238. * Get the name of the session.
  13239. *
  13240. * @return string
  13241. * @static
  13242. */
  13243. public static function getName()
  13244. {
  13245. /** @var \Illuminate\Session\Store $instance */
  13246. return $instance->getName();
  13247. }
  13248. /**
  13249. * Set the name of the session.
  13250. *
  13251. * @param string $name
  13252. * @return void
  13253. * @static
  13254. */
  13255. public static function setName($name)
  13256. {
  13257. /** @var \Illuminate\Session\Store $instance */
  13258. $instance->setName($name);
  13259. }
  13260. /**
  13261. * Get the current session ID.
  13262. *
  13263. * @return string
  13264. * @static
  13265. */
  13266. public static function getId()
  13267. {
  13268. /** @var \Illuminate\Session\Store $instance */
  13269. return $instance->getId();
  13270. }
  13271. /**
  13272. * Set the session ID.
  13273. *
  13274. * @param string $id
  13275. * @return void
  13276. * @static
  13277. */
  13278. public static function setId($id)
  13279. {
  13280. /** @var \Illuminate\Session\Store $instance */
  13281. $instance->setId($id);
  13282. }
  13283. /**
  13284. * Determine if this is a valid session ID.
  13285. *
  13286. * @param string $id
  13287. * @return bool
  13288. * @static
  13289. */
  13290. public static function isValidId($id)
  13291. {
  13292. /** @var \Illuminate\Session\Store $instance */
  13293. return $instance->isValidId($id);
  13294. }
  13295. /**
  13296. * Set the existence of the session on the handler if applicable.
  13297. *
  13298. * @param bool $value
  13299. * @return void
  13300. * @static
  13301. */
  13302. public static function setExists($value)
  13303. {
  13304. /** @var \Illuminate\Session\Store $instance */
  13305. $instance->setExists($value);
  13306. }
  13307. /**
  13308. * Get the CSRF token value.
  13309. *
  13310. * @return string
  13311. * @static
  13312. */
  13313. public static function token()
  13314. {
  13315. /** @var \Illuminate\Session\Store $instance */
  13316. return $instance->token();
  13317. }
  13318. /**
  13319. * Regenerate the CSRF token value.
  13320. *
  13321. * @return void
  13322. * @static
  13323. */
  13324. public static function regenerateToken()
  13325. {
  13326. /** @var \Illuminate\Session\Store $instance */
  13327. $instance->regenerateToken();
  13328. }
  13329. /**
  13330. * Get the previous URL from the session.
  13331. *
  13332. * @return string|null
  13333. * @static
  13334. */
  13335. public static function previousUrl()
  13336. {
  13337. /** @var \Illuminate\Session\Store $instance */
  13338. return $instance->previousUrl();
  13339. }
  13340. /**
  13341. * Set the "previous" URL in the session.
  13342. *
  13343. * @param string $url
  13344. * @return void
  13345. * @static
  13346. */
  13347. public static function setPreviousUrl($url)
  13348. {
  13349. /** @var \Illuminate\Session\Store $instance */
  13350. $instance->setPreviousUrl($url);
  13351. }
  13352. /**
  13353. * Specify that the user has confirmed their password.
  13354. *
  13355. * @return void
  13356. * @static
  13357. */
  13358. public static function passwordConfirmed()
  13359. {
  13360. /** @var \Illuminate\Session\Store $instance */
  13361. $instance->passwordConfirmed();
  13362. }
  13363. /**
  13364. * Get the underlying session handler implementation.
  13365. *
  13366. * @return \SessionHandlerInterface
  13367. * @static
  13368. */
  13369. public static function getHandler()
  13370. {
  13371. /** @var \Illuminate\Session\Store $instance */
  13372. return $instance->getHandler();
  13373. }
  13374. /**
  13375. * Determine if the session handler needs a request.
  13376. *
  13377. * @return bool
  13378. * @static
  13379. */
  13380. public static function handlerNeedsRequest()
  13381. {
  13382. /** @var \Illuminate\Session\Store $instance */
  13383. return $instance->handlerNeedsRequest();
  13384. }
  13385. /**
  13386. * Set the request on the handler instance.
  13387. *
  13388. * @param \Illuminate\Http\Request $request
  13389. * @return void
  13390. * @static
  13391. */
  13392. public static function setRequestOnHandler($request)
  13393. {
  13394. /** @var \Illuminate\Session\Store $instance */
  13395. $instance->setRequestOnHandler($request);
  13396. }
  13397. }
  13398. /**
  13399. * @see \Illuminate\Filesystem\FilesystemManager
  13400. */
  13401. class Storage {
  13402. /**
  13403. * Get a filesystem instance.
  13404. *
  13405. * @param string|null $name
  13406. * @return \Illuminate\Filesystem\FilesystemAdapter
  13407. * @static
  13408. */
  13409. public static function drive($name = null)
  13410. {
  13411. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13412. return $instance->drive($name);
  13413. }
  13414. /**
  13415. * Get a filesystem instance.
  13416. *
  13417. * @param string|null $name
  13418. * @return \Illuminate\Filesystem\FilesystemAdapter
  13419. * @static
  13420. */
  13421. public static function disk($name = null)
  13422. {
  13423. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13424. return $instance->disk($name);
  13425. }
  13426. /**
  13427. * Get a default cloud filesystem instance.
  13428. *
  13429. * @return \Illuminate\Filesystem\FilesystemAdapter
  13430. * @static
  13431. */
  13432. public static function cloud()
  13433. {
  13434. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13435. return $instance->cloud();
  13436. }
  13437. /**
  13438. * Build an on-demand disk.
  13439. *
  13440. * @param string|array $config
  13441. * @return \Illuminate\Filesystem\FilesystemAdapter
  13442. * @static
  13443. */
  13444. public static function build($config)
  13445. {
  13446. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13447. return $instance->build($config);
  13448. }
  13449. /**
  13450. * Create an instance of the local driver.
  13451. *
  13452. * @param array $config
  13453. * @return \Illuminate\Filesystem\FilesystemAdapter
  13454. * @static
  13455. */
  13456. public static function createLocalDriver($config)
  13457. {
  13458. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13459. return $instance->createLocalDriver($config);
  13460. }
  13461. /**
  13462. * Create an instance of the ftp driver.
  13463. *
  13464. * @param array $config
  13465. * @return \Illuminate\Filesystem\FilesystemAdapter
  13466. * @static
  13467. */
  13468. public static function createFtpDriver($config)
  13469. {
  13470. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13471. return $instance->createFtpDriver($config);
  13472. }
  13473. /**
  13474. * Create an instance of the sftp driver.
  13475. *
  13476. * @param array $config
  13477. * @return \Illuminate\Filesystem\FilesystemAdapter
  13478. * @static
  13479. */
  13480. public static function createSftpDriver($config)
  13481. {
  13482. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13483. return $instance->createSftpDriver($config);
  13484. }
  13485. /**
  13486. * Create an instance of the Amazon S3 driver.
  13487. *
  13488. * @param array $config
  13489. * @return \Illuminate\Contracts\Filesystem\Cloud
  13490. * @static
  13491. */
  13492. public static function createS3Driver($config)
  13493. {
  13494. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13495. return $instance->createS3Driver($config);
  13496. }
  13497. /**
  13498. * Set the given disk instance.
  13499. *
  13500. * @param string $name
  13501. * @param mixed $disk
  13502. * @return \Illuminate\Filesystem\FilesystemManager
  13503. * @static
  13504. */
  13505. public static function set($name, $disk)
  13506. {
  13507. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13508. return $instance->set($name, $disk);
  13509. }
  13510. /**
  13511. * Get the default driver name.
  13512. *
  13513. * @return string
  13514. * @static
  13515. */
  13516. public static function getDefaultDriver()
  13517. {
  13518. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13519. return $instance->getDefaultDriver();
  13520. }
  13521. /**
  13522. * Get the default cloud driver name.
  13523. *
  13524. * @return string
  13525. * @static
  13526. */
  13527. public static function getDefaultCloudDriver()
  13528. {
  13529. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13530. return $instance->getDefaultCloudDriver();
  13531. }
  13532. /**
  13533. * Unset the given disk instances.
  13534. *
  13535. * @param array|string $disk
  13536. * @return \Illuminate\Filesystem\FilesystemManager
  13537. * @static
  13538. */
  13539. public static function forgetDisk($disk)
  13540. {
  13541. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13542. return $instance->forgetDisk($disk);
  13543. }
  13544. /**
  13545. * Disconnect the given disk and remove from local cache.
  13546. *
  13547. * @param string|null $name
  13548. * @return void
  13549. * @static
  13550. */
  13551. public static function purge($name = null)
  13552. {
  13553. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13554. $instance->purge($name);
  13555. }
  13556. /**
  13557. * Register a custom driver creator Closure.
  13558. *
  13559. * @param string $driver
  13560. * @param \Closure $callback
  13561. * @return \Illuminate\Filesystem\FilesystemManager
  13562. * @static
  13563. */
  13564. public static function extend($driver, $callback)
  13565. {
  13566. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13567. return $instance->extend($driver, $callback);
  13568. }
  13569. /**
  13570. * Set the application instance used by the manager.
  13571. *
  13572. * @param \Illuminate\Contracts\Foundation\Application $app
  13573. * @return \Illuminate\Filesystem\FilesystemManager
  13574. * @static
  13575. */
  13576. public static function setApplication($app)
  13577. {
  13578. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13579. return $instance->setApplication($app);
  13580. }
  13581. /**
  13582. * Assert that the given file exists.
  13583. *
  13584. * @param string|array $path
  13585. * @param string|null $content
  13586. * @return \Illuminate\Filesystem\FilesystemAdapter
  13587. * @static
  13588. */
  13589. public static function assertExists($path, $content = null)
  13590. {
  13591. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13592. return $instance->assertExists($path, $content);
  13593. }
  13594. /**
  13595. * Assert that the given file does not exist.
  13596. *
  13597. * @param string|array $path
  13598. * @return \Illuminate\Filesystem\FilesystemAdapter
  13599. * @static
  13600. */
  13601. public static function assertMissing($path)
  13602. {
  13603. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13604. return $instance->assertMissing($path);
  13605. }
  13606. /**
  13607. * Determine if a file exists.
  13608. *
  13609. * @param string $path
  13610. * @return bool
  13611. * @static
  13612. */
  13613. public static function exists($path)
  13614. {
  13615. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13616. return $instance->exists($path);
  13617. }
  13618. /**
  13619. * Determine if a file or directory is missing.
  13620. *
  13621. * @param string $path
  13622. * @return bool
  13623. * @static
  13624. */
  13625. public static function missing($path)
  13626. {
  13627. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13628. return $instance->missing($path);
  13629. }
  13630. /**
  13631. * Get the full path for the file at the given "short" path.
  13632. *
  13633. * @param string $path
  13634. * @return string
  13635. * @static
  13636. */
  13637. public static function path($path)
  13638. {
  13639. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13640. return $instance->path($path);
  13641. }
  13642. /**
  13643. * Get the contents of a file.
  13644. *
  13645. * @param string $path
  13646. * @return string
  13647. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13648. * @static
  13649. */
  13650. public static function get($path)
  13651. {
  13652. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13653. return $instance->get($path);
  13654. }
  13655. /**
  13656. * Create a streamed response for a given file.
  13657. *
  13658. * @param string $path
  13659. * @param string|null $name
  13660. * @param array|null $headers
  13661. * @param string|null $disposition
  13662. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13663. * @static
  13664. */
  13665. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  13666. {
  13667. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13668. return $instance->response($path, $name, $headers, $disposition);
  13669. }
  13670. /**
  13671. * Create a streamed download response for a given file.
  13672. *
  13673. * @param string $path
  13674. * @param string|null $name
  13675. * @param array|null $headers
  13676. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13677. * @static
  13678. */
  13679. public static function download($path, $name = null, $headers = [])
  13680. {
  13681. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13682. return $instance->download($path, $name, $headers);
  13683. }
  13684. /**
  13685. * Write the contents of a file.
  13686. *
  13687. * @param string $path
  13688. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  13689. * @param mixed $options
  13690. * @return bool
  13691. * @static
  13692. */
  13693. public static function put($path, $contents, $options = [])
  13694. {
  13695. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13696. return $instance->put($path, $contents, $options);
  13697. }
  13698. /**
  13699. * Store the uploaded file on the disk.
  13700. *
  13701. * @param string $path
  13702. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13703. * @param mixed $options
  13704. * @return string|false
  13705. * @static
  13706. */
  13707. public static function putFile($path, $file, $options = [])
  13708. {
  13709. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13710. return $instance->putFile($path, $file, $options);
  13711. }
  13712. /**
  13713. * Store the uploaded file on the disk with a given name.
  13714. *
  13715. * @param string $path
  13716. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13717. * @param string $name
  13718. * @param mixed $options
  13719. * @return string|false
  13720. * @static
  13721. */
  13722. public static function putFileAs($path, $file, $name, $options = [])
  13723. {
  13724. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13725. return $instance->putFileAs($path, $file, $name, $options);
  13726. }
  13727. /**
  13728. * Get the visibility for the given path.
  13729. *
  13730. * @param string $path
  13731. * @return string
  13732. * @static
  13733. */
  13734. public static function getVisibility($path)
  13735. {
  13736. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13737. return $instance->getVisibility($path);
  13738. }
  13739. /**
  13740. * Set the visibility for the given path.
  13741. *
  13742. * @param string $path
  13743. * @param string $visibility
  13744. * @return bool
  13745. * @static
  13746. */
  13747. public static function setVisibility($path, $visibility)
  13748. {
  13749. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13750. return $instance->setVisibility($path, $visibility);
  13751. }
  13752. /**
  13753. * Prepend to a file.
  13754. *
  13755. * @param string $path
  13756. * @param string $data
  13757. * @param string $separator
  13758. * @return bool
  13759. * @static
  13760. */
  13761. public static function prepend($path, $data, $separator = '
  13762. ')
  13763. {
  13764. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13765. return $instance->prepend($path, $data, $separator);
  13766. }
  13767. /**
  13768. * Append to a file.
  13769. *
  13770. * @param string $path
  13771. * @param string $data
  13772. * @param string $separator
  13773. * @return bool
  13774. * @static
  13775. */
  13776. public static function append($path, $data, $separator = '
  13777. ')
  13778. {
  13779. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13780. return $instance->append($path, $data, $separator);
  13781. }
  13782. /**
  13783. * Delete the file at a given path.
  13784. *
  13785. * @param string|array $paths
  13786. * @return bool
  13787. * @static
  13788. */
  13789. public static function delete($paths)
  13790. {
  13791. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13792. return $instance->delete($paths);
  13793. }
  13794. /**
  13795. * Copy a file to a new location.
  13796. *
  13797. * @param string $from
  13798. * @param string $to
  13799. * @return bool
  13800. * @static
  13801. */
  13802. public static function copy($from, $to)
  13803. {
  13804. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13805. return $instance->copy($from, $to);
  13806. }
  13807. /**
  13808. * Move a file to a new location.
  13809. *
  13810. * @param string $from
  13811. * @param string $to
  13812. * @return bool
  13813. * @static
  13814. */
  13815. public static function move($from, $to)
  13816. {
  13817. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13818. return $instance->move($from, $to);
  13819. }
  13820. /**
  13821. * Get the file size of a given file.
  13822. *
  13823. * @param string $path
  13824. * @return int
  13825. * @static
  13826. */
  13827. public static function size($path)
  13828. {
  13829. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13830. return $instance->size($path);
  13831. }
  13832. /**
  13833. * Get the mime-type of a given file.
  13834. *
  13835. * @param string $path
  13836. * @return string|false
  13837. * @static
  13838. */
  13839. public static function mimeType($path)
  13840. {
  13841. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13842. return $instance->mimeType($path);
  13843. }
  13844. /**
  13845. * Get the file's last modification time.
  13846. *
  13847. * @param string $path
  13848. * @return int
  13849. * @static
  13850. */
  13851. public static function lastModified($path)
  13852. {
  13853. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13854. return $instance->lastModified($path);
  13855. }
  13856. /**
  13857. * Get the URL for the file at the given path.
  13858. *
  13859. * @param string $path
  13860. * @return string
  13861. * @throws \RuntimeException
  13862. * @static
  13863. */
  13864. public static function url($path)
  13865. {
  13866. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13867. return $instance->url($path);
  13868. }
  13869. /**
  13870. * Get a resource to read the file.
  13871. *
  13872. * @param string $path
  13873. * @return resource|null The path resource or null on failure.
  13874. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13875. * @static
  13876. */
  13877. public static function readStream($path)
  13878. {
  13879. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13880. return $instance->readStream($path);
  13881. }
  13882. /**
  13883. * Write a new file using a stream.
  13884. *
  13885. * @param string $path
  13886. * @param resource $resource
  13887. * @param array $options
  13888. * @return bool
  13889. * @throws \InvalidArgumentException If $resource is not a file handle.
  13890. * @throws \Illuminate\Contracts\Filesystem\FileExistsException
  13891. * @static
  13892. */
  13893. public static function writeStream($path, $resource, $options = [])
  13894. {
  13895. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13896. return $instance->writeStream($path, $resource, $options);
  13897. }
  13898. /**
  13899. * Get a temporary URL for the file at the given path.
  13900. *
  13901. * @param string $path
  13902. * @param \DateTimeInterface $expiration
  13903. * @param array $options
  13904. * @return string
  13905. * @throws \RuntimeException
  13906. * @static
  13907. */
  13908. public static function temporaryUrl($path, $expiration, $options = [])
  13909. {
  13910. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13911. return $instance->temporaryUrl($path, $expiration, $options);
  13912. }
  13913. /**
  13914. * Get a temporary URL for the file at the given path.
  13915. *
  13916. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  13917. * @param string $path
  13918. * @param \DateTimeInterface $expiration
  13919. * @param array $options
  13920. * @return string
  13921. * @static
  13922. */
  13923. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  13924. {
  13925. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13926. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  13927. }
  13928. /**
  13929. * Get an array of all files in a directory.
  13930. *
  13931. * @param string|null $directory
  13932. * @param bool $recursive
  13933. * @return array
  13934. * @static
  13935. */
  13936. public static function files($directory = null, $recursive = false)
  13937. {
  13938. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13939. return $instance->files($directory, $recursive);
  13940. }
  13941. /**
  13942. * Get all of the files from the given directory (recursive).
  13943. *
  13944. * @param string|null $directory
  13945. * @return array
  13946. * @static
  13947. */
  13948. public static function allFiles($directory = null)
  13949. {
  13950. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13951. return $instance->allFiles($directory);
  13952. }
  13953. /**
  13954. * Get all of the directories within a given directory.
  13955. *
  13956. * @param string|null $directory
  13957. * @param bool $recursive
  13958. * @return array
  13959. * @static
  13960. */
  13961. public static function directories($directory = null, $recursive = false)
  13962. {
  13963. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13964. return $instance->directories($directory, $recursive);
  13965. }
  13966. /**
  13967. * Get all (recursive) of the directories within a given directory.
  13968. *
  13969. * @param string|null $directory
  13970. * @return array
  13971. * @static
  13972. */
  13973. public static function allDirectories($directory = null)
  13974. {
  13975. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13976. return $instance->allDirectories($directory);
  13977. }
  13978. /**
  13979. * Create a directory.
  13980. *
  13981. * @param string $path
  13982. * @return bool
  13983. * @static
  13984. */
  13985. public static function makeDirectory($path)
  13986. {
  13987. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13988. return $instance->makeDirectory($path);
  13989. }
  13990. /**
  13991. * Recursively delete a directory.
  13992. *
  13993. * @param string $directory
  13994. * @return bool
  13995. * @static
  13996. */
  13997. public static function deleteDirectory($directory)
  13998. {
  13999. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14000. return $instance->deleteDirectory($directory);
  14001. }
  14002. /**
  14003. * Flush the Flysystem cache.
  14004. *
  14005. * @return void
  14006. * @static
  14007. */
  14008. public static function flushCache()
  14009. {
  14010. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14011. $instance->flushCache();
  14012. }
  14013. /**
  14014. * Get the Flysystem driver.
  14015. *
  14016. * @return \League\Flysystem\FilesystemInterface
  14017. * @static
  14018. */
  14019. public static function getDriver()
  14020. {
  14021. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14022. return $instance->getDriver();
  14023. }
  14024. /**
  14025. * Define a custom temporary URL builder callback.
  14026. *
  14027. * @param \Closure $callback
  14028. * @return void
  14029. * @static
  14030. */
  14031. public static function buildTemporaryUrlsUsing($callback)
  14032. {
  14033. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14034. $instance->buildTemporaryUrlsUsing($callback);
  14035. }
  14036. /**
  14037. * Register a custom macro.
  14038. *
  14039. * @param string $name
  14040. * @param object|callable $macro
  14041. * @return void
  14042. * @static
  14043. */
  14044. public static function macro($name, $macro)
  14045. {
  14046. \Illuminate\Filesystem\FilesystemAdapter::macro($name, $macro);
  14047. }
  14048. /**
  14049. * Mix another object into the class.
  14050. *
  14051. * @param object $mixin
  14052. * @param bool $replace
  14053. * @return void
  14054. * @throws \ReflectionException
  14055. * @static
  14056. */
  14057. public static function mixin($mixin, $replace = true)
  14058. {
  14059. \Illuminate\Filesystem\FilesystemAdapter::mixin($mixin, $replace);
  14060. }
  14061. /**
  14062. * Checks if macro is registered.
  14063. *
  14064. * @param string $name
  14065. * @return bool
  14066. * @static
  14067. */
  14068. public static function hasMacro($name)
  14069. {
  14070. return \Illuminate\Filesystem\FilesystemAdapter::hasMacro($name);
  14071. }
  14072. /**
  14073. * Flush the existing macros.
  14074. *
  14075. * @return void
  14076. * @static
  14077. */
  14078. public static function flushMacros()
  14079. {
  14080. \Illuminate\Filesystem\FilesystemAdapter::flushMacros();
  14081. }
  14082. /**
  14083. * Dynamically handle calls to the class.
  14084. *
  14085. * @param string $method
  14086. * @param array $parameters
  14087. * @return mixed
  14088. * @throws \BadMethodCallException
  14089. * @static
  14090. */
  14091. public static function macroCall($method, $parameters)
  14092. {
  14093. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14094. return $instance->macroCall($method, $parameters);
  14095. }
  14096. }
  14097. /**
  14098. * @see \Illuminate\Routing\UrlGenerator
  14099. */
  14100. class URL {
  14101. /**
  14102. * Get the full URL for the current request.
  14103. *
  14104. * @return string
  14105. * @static
  14106. */
  14107. public static function full()
  14108. {
  14109. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14110. return $instance->full();
  14111. }
  14112. /**
  14113. * Get the current URL for the request.
  14114. *
  14115. * @return string
  14116. * @static
  14117. */
  14118. public static function current()
  14119. {
  14120. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14121. return $instance->current();
  14122. }
  14123. /**
  14124. * Get the URL for the previous request.
  14125. *
  14126. * @param mixed $fallback
  14127. * @return string
  14128. * @static
  14129. */
  14130. public static function previous($fallback = false)
  14131. {
  14132. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14133. return $instance->previous($fallback);
  14134. }
  14135. /**
  14136. * Generate an absolute URL to the given path.
  14137. *
  14138. * @param string $path
  14139. * @param mixed $extra
  14140. * @param bool|null $secure
  14141. * @return string
  14142. * @static
  14143. */
  14144. public static function to($path, $extra = [], $secure = null)
  14145. {
  14146. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14147. return $instance->to($path, $extra, $secure);
  14148. }
  14149. /**
  14150. * Generate a secure, absolute URL to the given path.
  14151. *
  14152. * @param string $path
  14153. * @param array $parameters
  14154. * @return string
  14155. * @static
  14156. */
  14157. public static function secure($path, $parameters = [])
  14158. {
  14159. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14160. return $instance->secure($path, $parameters);
  14161. }
  14162. /**
  14163. * Generate the URL to an application asset.
  14164. *
  14165. * @param string $path
  14166. * @param bool|null $secure
  14167. * @return string
  14168. * @static
  14169. */
  14170. public static function asset($path, $secure = null)
  14171. {
  14172. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14173. return $instance->asset($path, $secure);
  14174. }
  14175. /**
  14176. * Generate the URL to a secure asset.
  14177. *
  14178. * @param string $path
  14179. * @return string
  14180. * @static
  14181. */
  14182. public static function secureAsset($path)
  14183. {
  14184. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14185. return $instance->secureAsset($path);
  14186. }
  14187. /**
  14188. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  14189. *
  14190. * @param string $root
  14191. * @param string $path
  14192. * @param bool|null $secure
  14193. * @return string
  14194. * @static
  14195. */
  14196. public static function assetFrom($root, $path, $secure = null)
  14197. {
  14198. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14199. return $instance->assetFrom($root, $path, $secure);
  14200. }
  14201. /**
  14202. * Get the default scheme for a raw URL.
  14203. *
  14204. * @param bool|null $secure
  14205. * @return string
  14206. * @static
  14207. */
  14208. public static function formatScheme($secure = null)
  14209. {
  14210. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14211. return $instance->formatScheme($secure);
  14212. }
  14213. /**
  14214. * Create a signed route URL for a named route.
  14215. *
  14216. * @param string $name
  14217. * @param mixed $parameters
  14218. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  14219. * @param bool $absolute
  14220. * @return string
  14221. * @throws \InvalidArgumentException
  14222. * @static
  14223. */
  14224. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  14225. {
  14226. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14227. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  14228. }
  14229. /**
  14230. * Create a temporary signed route URL for a named route.
  14231. *
  14232. * @param string $name
  14233. * @param \DateTimeInterface|\DateInterval|int $expiration
  14234. * @param array $parameters
  14235. * @param bool $absolute
  14236. * @return string
  14237. * @static
  14238. */
  14239. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  14240. {
  14241. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14242. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  14243. }
  14244. /**
  14245. * Determine if the given request has a valid signature.
  14246. *
  14247. * @param \Illuminate\Http\Request $request
  14248. * @param bool $absolute
  14249. * @return bool
  14250. * @static
  14251. */
  14252. public static function hasValidSignature($request, $absolute = true)
  14253. {
  14254. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14255. return $instance->hasValidSignature($request, $absolute);
  14256. }
  14257. /**
  14258. * Determine if the given request has a valid signature for a relative URL.
  14259. *
  14260. * @param \Illuminate\Http\Request $request
  14261. * @return bool
  14262. * @static
  14263. */
  14264. public static function hasValidRelativeSignature($request)
  14265. {
  14266. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14267. return $instance->hasValidRelativeSignature($request);
  14268. }
  14269. /**
  14270. * Determine if the signature from the given request matches the URL.
  14271. *
  14272. * @param \Illuminate\Http\Request $request
  14273. * @param bool $absolute
  14274. * @return bool
  14275. * @static
  14276. */
  14277. public static function hasCorrectSignature($request, $absolute = true)
  14278. {
  14279. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14280. return $instance->hasCorrectSignature($request, $absolute);
  14281. }
  14282. /**
  14283. * Determine if the expires timestamp from the given request is not from the past.
  14284. *
  14285. * @param \Illuminate\Http\Request $request
  14286. * @return bool
  14287. * @static
  14288. */
  14289. public static function signatureHasNotExpired($request)
  14290. {
  14291. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14292. return $instance->signatureHasNotExpired($request);
  14293. }
  14294. /**
  14295. * Get the URL to a named route.
  14296. *
  14297. * @param string $name
  14298. * @param mixed $parameters
  14299. * @param bool $absolute
  14300. * @return string
  14301. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  14302. * @static
  14303. */
  14304. public static function route($name, $parameters = [], $absolute = true)
  14305. {
  14306. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14307. return $instance->route($name, $parameters, $absolute);
  14308. }
  14309. /**
  14310. * Get the URL for a given route instance.
  14311. *
  14312. * @param \Illuminate\Routing\Route $route
  14313. * @param mixed $parameters
  14314. * @param bool $absolute
  14315. * @return string
  14316. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  14317. * @static
  14318. */
  14319. public static function toRoute($route, $parameters, $absolute)
  14320. {
  14321. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14322. return $instance->toRoute($route, $parameters, $absolute);
  14323. }
  14324. /**
  14325. * Get the URL to a controller action.
  14326. *
  14327. * @param string|array $action
  14328. * @param mixed $parameters
  14329. * @param bool $absolute
  14330. * @return string
  14331. * @throws \InvalidArgumentException
  14332. * @static
  14333. */
  14334. public static function action($action, $parameters = [], $absolute = true)
  14335. {
  14336. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14337. return $instance->action($action, $parameters, $absolute);
  14338. }
  14339. /**
  14340. * Format the array of URL parameters.
  14341. *
  14342. * @param mixed|array $parameters
  14343. * @return array
  14344. * @static
  14345. */
  14346. public static function formatParameters($parameters)
  14347. {
  14348. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14349. return $instance->formatParameters($parameters);
  14350. }
  14351. /**
  14352. * Get the base URL for the request.
  14353. *
  14354. * @param string $scheme
  14355. * @param string|null $root
  14356. * @return string
  14357. * @static
  14358. */
  14359. public static function formatRoot($scheme, $root = null)
  14360. {
  14361. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14362. return $instance->formatRoot($scheme, $root);
  14363. }
  14364. /**
  14365. * Format the given URL segments into a single URL.
  14366. *
  14367. * @param string $root
  14368. * @param string $path
  14369. * @param \Illuminate\Routing\Route|null $route
  14370. * @return string
  14371. * @static
  14372. */
  14373. public static function format($root, $path, $route = null)
  14374. {
  14375. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14376. return $instance->format($root, $path, $route);
  14377. }
  14378. /**
  14379. * Determine if the given path is a valid URL.
  14380. *
  14381. * @param string $path
  14382. * @return bool
  14383. * @static
  14384. */
  14385. public static function isValidUrl($path)
  14386. {
  14387. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14388. return $instance->isValidUrl($path);
  14389. }
  14390. /**
  14391. * Set the default named parameters used by the URL generator.
  14392. *
  14393. * @param array $defaults
  14394. * @return void
  14395. * @static
  14396. */
  14397. public static function defaults($defaults)
  14398. {
  14399. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14400. $instance->defaults($defaults);
  14401. }
  14402. /**
  14403. * Get the default named parameters used by the URL generator.
  14404. *
  14405. * @return array
  14406. * @static
  14407. */
  14408. public static function getDefaultParameters()
  14409. {
  14410. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14411. return $instance->getDefaultParameters();
  14412. }
  14413. /**
  14414. * Force the scheme for URLs.
  14415. *
  14416. * @param string|null $scheme
  14417. * @return void
  14418. * @static
  14419. */
  14420. public static function forceScheme($scheme)
  14421. {
  14422. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14423. $instance->forceScheme($scheme);
  14424. }
  14425. /**
  14426. * Set the forced root URL.
  14427. *
  14428. * @param string|null $root
  14429. * @return void
  14430. * @static
  14431. */
  14432. public static function forceRootUrl($root)
  14433. {
  14434. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14435. $instance->forceRootUrl($root);
  14436. }
  14437. /**
  14438. * Set a callback to be used to format the host of generated URLs.
  14439. *
  14440. * @param \Closure $callback
  14441. * @return \Illuminate\Routing\UrlGenerator
  14442. * @static
  14443. */
  14444. public static function formatHostUsing($callback)
  14445. {
  14446. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14447. return $instance->formatHostUsing($callback);
  14448. }
  14449. /**
  14450. * Set a callback to be used to format the path of generated URLs.
  14451. *
  14452. * @param \Closure $callback
  14453. * @return \Illuminate\Routing\UrlGenerator
  14454. * @static
  14455. */
  14456. public static function formatPathUsing($callback)
  14457. {
  14458. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14459. return $instance->formatPathUsing($callback);
  14460. }
  14461. /**
  14462. * Get the path formatter being used by the URL generator.
  14463. *
  14464. * @return \Closure
  14465. * @static
  14466. */
  14467. public static function pathFormatter()
  14468. {
  14469. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14470. return $instance->pathFormatter();
  14471. }
  14472. /**
  14473. * Get the request instance.
  14474. *
  14475. * @return \Illuminate\Http\Request
  14476. * @static
  14477. */
  14478. public static function getRequest()
  14479. {
  14480. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14481. return $instance->getRequest();
  14482. }
  14483. /**
  14484. * Set the current request instance.
  14485. *
  14486. * @param \Illuminate\Http\Request $request
  14487. * @return void
  14488. * @static
  14489. */
  14490. public static function setRequest($request)
  14491. {
  14492. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14493. $instance->setRequest($request);
  14494. }
  14495. /**
  14496. * Set the route collection.
  14497. *
  14498. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  14499. * @return \Illuminate\Routing\UrlGenerator
  14500. * @static
  14501. */
  14502. public static function setRoutes($routes)
  14503. {
  14504. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14505. return $instance->setRoutes($routes);
  14506. }
  14507. /**
  14508. * Set the session resolver for the generator.
  14509. *
  14510. * @param callable $sessionResolver
  14511. * @return \Illuminate\Routing\UrlGenerator
  14512. * @static
  14513. */
  14514. public static function setSessionResolver($sessionResolver)
  14515. {
  14516. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14517. return $instance->setSessionResolver($sessionResolver);
  14518. }
  14519. /**
  14520. * Set the encryption key resolver.
  14521. *
  14522. * @param callable $keyResolver
  14523. * @return \Illuminate\Routing\UrlGenerator
  14524. * @static
  14525. */
  14526. public static function setKeyResolver($keyResolver)
  14527. {
  14528. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14529. return $instance->setKeyResolver($keyResolver);
  14530. }
  14531. /**
  14532. * Set the root controller namespace.
  14533. *
  14534. * @param string $rootNamespace
  14535. * @return \Illuminate\Routing\UrlGenerator
  14536. * @static
  14537. */
  14538. public static function setRootControllerNamespace($rootNamespace)
  14539. {
  14540. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14541. return $instance->setRootControllerNamespace($rootNamespace);
  14542. }
  14543. /**
  14544. * Register a custom macro.
  14545. *
  14546. * @param string $name
  14547. * @param object|callable $macro
  14548. * @return void
  14549. * @static
  14550. */
  14551. public static function macro($name, $macro)
  14552. {
  14553. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  14554. }
  14555. /**
  14556. * Mix another object into the class.
  14557. *
  14558. * @param object $mixin
  14559. * @param bool $replace
  14560. * @return void
  14561. * @throws \ReflectionException
  14562. * @static
  14563. */
  14564. public static function mixin($mixin, $replace = true)
  14565. {
  14566. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  14567. }
  14568. /**
  14569. * Checks if macro is registered.
  14570. *
  14571. * @param string $name
  14572. * @return bool
  14573. * @static
  14574. */
  14575. public static function hasMacro($name)
  14576. {
  14577. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  14578. }
  14579. /**
  14580. * Flush the existing macros.
  14581. *
  14582. * @return void
  14583. * @static
  14584. */
  14585. public static function flushMacros()
  14586. {
  14587. \Illuminate\Routing\UrlGenerator::flushMacros();
  14588. }
  14589. }
  14590. /**
  14591. * @see \Illuminate\Validation\Factory
  14592. */
  14593. class Validator {
  14594. /**
  14595. * Create a new Validator instance.
  14596. *
  14597. * @param array $data
  14598. * @param array $rules
  14599. * @param array $messages
  14600. * @param array $customAttributes
  14601. * @return \Illuminate\Validation\Validator
  14602. * @static
  14603. */
  14604. public static function make($data, $rules, $messages = [], $customAttributes = [])
  14605. {
  14606. /** @var \Illuminate\Validation\Factory $instance */
  14607. return $instance->make($data, $rules, $messages, $customAttributes);
  14608. }
  14609. /**
  14610. * Validate the given data against the provided rules.
  14611. *
  14612. * @param array $data
  14613. * @param array $rules
  14614. * @param array $messages
  14615. * @param array $customAttributes
  14616. * @return array
  14617. * @throws \Illuminate\Validation\ValidationException
  14618. * @static
  14619. */
  14620. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  14621. {
  14622. /** @var \Illuminate\Validation\Factory $instance */
  14623. return $instance->validate($data, $rules, $messages, $customAttributes);
  14624. }
  14625. /**
  14626. * Register a custom validator extension.
  14627. *
  14628. * @param string $rule
  14629. * @param \Closure|string $extension
  14630. * @param string|null $message
  14631. * @return void
  14632. * @static
  14633. */
  14634. public static function extend($rule, $extension, $message = null)
  14635. {
  14636. /** @var \Illuminate\Validation\Factory $instance */
  14637. $instance->extend($rule, $extension, $message);
  14638. }
  14639. /**
  14640. * Register a custom implicit validator extension.
  14641. *
  14642. * @param string $rule
  14643. * @param \Closure|string $extension
  14644. * @param string|null $message
  14645. * @return void
  14646. * @static
  14647. */
  14648. public static function extendImplicit($rule, $extension, $message = null)
  14649. {
  14650. /** @var \Illuminate\Validation\Factory $instance */
  14651. $instance->extendImplicit($rule, $extension, $message);
  14652. }
  14653. /**
  14654. * Register a custom dependent validator extension.
  14655. *
  14656. * @param string $rule
  14657. * @param \Closure|string $extension
  14658. * @param string|null $message
  14659. * @return void
  14660. * @static
  14661. */
  14662. public static function extendDependent($rule, $extension, $message = null)
  14663. {
  14664. /** @var \Illuminate\Validation\Factory $instance */
  14665. $instance->extendDependent($rule, $extension, $message);
  14666. }
  14667. /**
  14668. * Register a custom validator message replacer.
  14669. *
  14670. * @param string $rule
  14671. * @param \Closure|string $replacer
  14672. * @return void
  14673. * @static
  14674. */
  14675. public static function replacer($rule, $replacer)
  14676. {
  14677. /** @var \Illuminate\Validation\Factory $instance */
  14678. $instance->replacer($rule, $replacer);
  14679. }
  14680. /**
  14681. * Indicate that unvalidated array keys should be excluded, even if the parent array was validated.
  14682. *
  14683. * @return void
  14684. * @static
  14685. */
  14686. public static function excludeUnvalidatedArrayKeys()
  14687. {
  14688. /** @var \Illuminate\Validation\Factory $instance */
  14689. $instance->excludeUnvalidatedArrayKeys();
  14690. }
  14691. /**
  14692. * Set the Validator instance resolver.
  14693. *
  14694. * @param \Closure $resolver
  14695. * @return void
  14696. * @static
  14697. */
  14698. public static function resolver($resolver)
  14699. {
  14700. /** @var \Illuminate\Validation\Factory $instance */
  14701. $instance->resolver($resolver);
  14702. }
  14703. /**
  14704. * Get the Translator implementation.
  14705. *
  14706. * @return \Illuminate\Contracts\Translation\Translator
  14707. * @static
  14708. */
  14709. public static function getTranslator()
  14710. {
  14711. /** @var \Illuminate\Validation\Factory $instance */
  14712. return $instance->getTranslator();
  14713. }
  14714. /**
  14715. * Get the Presence Verifier implementation.
  14716. *
  14717. * @return \Illuminate\Validation\PresenceVerifierInterface
  14718. * @static
  14719. */
  14720. public static function getPresenceVerifier()
  14721. {
  14722. /** @var \Illuminate\Validation\Factory $instance */
  14723. return $instance->getPresenceVerifier();
  14724. }
  14725. /**
  14726. * Set the Presence Verifier implementation.
  14727. *
  14728. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  14729. * @return void
  14730. * @static
  14731. */
  14732. public static function setPresenceVerifier($presenceVerifier)
  14733. {
  14734. /** @var \Illuminate\Validation\Factory $instance */
  14735. $instance->setPresenceVerifier($presenceVerifier);
  14736. }
  14737. /**
  14738. * Get the container instance used by the validation factory.
  14739. *
  14740. * @return \Illuminate\Contracts\Container\Container
  14741. * @static
  14742. */
  14743. public static function getContainer()
  14744. {
  14745. /** @var \Illuminate\Validation\Factory $instance */
  14746. return $instance->getContainer();
  14747. }
  14748. /**
  14749. * Set the container instance used by the validation factory.
  14750. *
  14751. * @param \Illuminate\Contracts\Container\Container $container
  14752. * @return \Illuminate\Validation\Factory
  14753. * @static
  14754. */
  14755. public static function setContainer($container)
  14756. {
  14757. /** @var \Illuminate\Validation\Factory $instance */
  14758. return $instance->setContainer($container);
  14759. }
  14760. }
  14761. /**
  14762. * @see \Illuminate\View\Factory
  14763. */
  14764. class View {
  14765. /**
  14766. * Get the evaluated view contents for the given view.
  14767. *
  14768. * @param string $path
  14769. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14770. * @param array $mergeData
  14771. * @return \Illuminate\Contracts\View\View
  14772. * @static
  14773. */
  14774. public static function file($path, $data = [], $mergeData = [])
  14775. {
  14776. /** @var \Illuminate\View\Factory $instance */
  14777. return $instance->file($path, $data, $mergeData);
  14778. }
  14779. /**
  14780. * Get the evaluated view contents for the given view.
  14781. *
  14782. * @param string $view
  14783. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14784. * @param array $mergeData
  14785. * @return \Illuminate\Contracts\View\View
  14786. * @static
  14787. */
  14788. public static function make($view, $data = [], $mergeData = [])
  14789. {
  14790. /** @var \Illuminate\View\Factory $instance */
  14791. return $instance->make($view, $data, $mergeData);
  14792. }
  14793. /**
  14794. * Get the first view that actually exists from the given list.
  14795. *
  14796. * @param array $views
  14797. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14798. * @param array $mergeData
  14799. * @return \Illuminate\Contracts\View\View
  14800. * @throws \InvalidArgumentException
  14801. * @static
  14802. */
  14803. public static function first($views, $data = [], $mergeData = [])
  14804. {
  14805. /** @var \Illuminate\View\Factory $instance */
  14806. return $instance->first($views, $data, $mergeData);
  14807. }
  14808. /**
  14809. * Get the rendered content of the view based on a given condition.
  14810. *
  14811. * @param bool $condition
  14812. * @param string $view
  14813. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14814. * @param array $mergeData
  14815. * @return string
  14816. * @static
  14817. */
  14818. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  14819. {
  14820. /** @var \Illuminate\View\Factory $instance */
  14821. return $instance->renderWhen($condition, $view, $data, $mergeData);
  14822. }
  14823. /**
  14824. * Get the rendered content of the view based on the negation of a given condition.
  14825. *
  14826. * @param bool $condition
  14827. * @param string $view
  14828. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14829. * @param array $mergeData
  14830. * @return string
  14831. * @static
  14832. */
  14833. public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  14834. {
  14835. /** @var \Illuminate\View\Factory $instance */
  14836. return $instance->renderUnless($condition, $view, $data, $mergeData);
  14837. }
  14838. /**
  14839. * Get the rendered contents of a partial from a loop.
  14840. *
  14841. * @param string $view
  14842. * @param array $data
  14843. * @param string $iterator
  14844. * @param string $empty
  14845. * @return string
  14846. * @static
  14847. */
  14848. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  14849. {
  14850. /** @var \Illuminate\View\Factory $instance */
  14851. return $instance->renderEach($view, $data, $iterator, $empty);
  14852. }
  14853. /**
  14854. * Determine if a given view exists.
  14855. *
  14856. * @param string $view
  14857. * @return bool
  14858. * @static
  14859. */
  14860. public static function exists($view)
  14861. {
  14862. /** @var \Illuminate\View\Factory $instance */
  14863. return $instance->exists($view);
  14864. }
  14865. /**
  14866. * Get the appropriate view engine for the given path.
  14867. *
  14868. * @param string $path
  14869. * @return \Illuminate\Contracts\View\Engine
  14870. * @throws \InvalidArgumentException
  14871. * @static
  14872. */
  14873. public static function getEngineFromPath($path)
  14874. {
  14875. /** @var \Illuminate\View\Factory $instance */
  14876. return $instance->getEngineFromPath($path);
  14877. }
  14878. /**
  14879. * Add a piece of shared data to the environment.
  14880. *
  14881. * @param array|string $key
  14882. * @param mixed|null $value
  14883. * @return mixed
  14884. * @static
  14885. */
  14886. public static function share($key, $value = null)
  14887. {
  14888. /** @var \Illuminate\View\Factory $instance */
  14889. return $instance->share($key, $value);
  14890. }
  14891. /**
  14892. * Increment the rendering counter.
  14893. *
  14894. * @return void
  14895. * @static
  14896. */
  14897. public static function incrementRender()
  14898. {
  14899. /** @var \Illuminate\View\Factory $instance */
  14900. $instance->incrementRender();
  14901. }
  14902. /**
  14903. * Decrement the rendering counter.
  14904. *
  14905. * @return void
  14906. * @static
  14907. */
  14908. public static function decrementRender()
  14909. {
  14910. /** @var \Illuminate\View\Factory $instance */
  14911. $instance->decrementRender();
  14912. }
  14913. /**
  14914. * Check if there are no active render operations.
  14915. *
  14916. * @return bool
  14917. * @static
  14918. */
  14919. public static function doneRendering()
  14920. {
  14921. /** @var \Illuminate\View\Factory $instance */
  14922. return $instance->doneRendering();
  14923. }
  14924. /**
  14925. * Determine if the given once token has been rendered.
  14926. *
  14927. * @param string $id
  14928. * @return bool
  14929. * @static
  14930. */
  14931. public static function hasRenderedOnce($id)
  14932. {
  14933. /** @var \Illuminate\View\Factory $instance */
  14934. return $instance->hasRenderedOnce($id);
  14935. }
  14936. /**
  14937. * Mark the given once token as having been rendered.
  14938. *
  14939. * @param string $id
  14940. * @return void
  14941. * @static
  14942. */
  14943. public static function markAsRenderedOnce($id)
  14944. {
  14945. /** @var \Illuminate\View\Factory $instance */
  14946. $instance->markAsRenderedOnce($id);
  14947. }
  14948. /**
  14949. * Add a location to the array of view locations.
  14950. *
  14951. * @param string $location
  14952. * @return void
  14953. * @static
  14954. */
  14955. public static function addLocation($location)
  14956. {
  14957. /** @var \Illuminate\View\Factory $instance */
  14958. $instance->addLocation($location);
  14959. }
  14960. /**
  14961. * Add a new namespace to the loader.
  14962. *
  14963. * @param string $namespace
  14964. * @param string|array $hints
  14965. * @return \Illuminate\View\Factory
  14966. * @static
  14967. */
  14968. public static function addNamespace($namespace, $hints)
  14969. {
  14970. /** @var \Illuminate\View\Factory $instance */
  14971. return $instance->addNamespace($namespace, $hints);
  14972. }
  14973. /**
  14974. * Prepend a new namespace to the loader.
  14975. *
  14976. * @param string $namespace
  14977. * @param string|array $hints
  14978. * @return \Illuminate\View\Factory
  14979. * @static
  14980. */
  14981. public static function prependNamespace($namespace, $hints)
  14982. {
  14983. /** @var \Illuminate\View\Factory $instance */
  14984. return $instance->prependNamespace($namespace, $hints);
  14985. }
  14986. /**
  14987. * Replace the namespace hints for the given namespace.
  14988. *
  14989. * @param string $namespace
  14990. * @param string|array $hints
  14991. * @return \Illuminate\View\Factory
  14992. * @static
  14993. */
  14994. public static function replaceNamespace($namespace, $hints)
  14995. {
  14996. /** @var \Illuminate\View\Factory $instance */
  14997. return $instance->replaceNamespace($namespace, $hints);
  14998. }
  14999. /**
  15000. * Register a valid view extension and its engine.
  15001. *
  15002. * @param string $extension
  15003. * @param string $engine
  15004. * @param \Closure|null $resolver
  15005. * @return void
  15006. * @static
  15007. */
  15008. public static function addExtension($extension, $engine, $resolver = null)
  15009. {
  15010. /** @var \Illuminate\View\Factory $instance */
  15011. $instance->addExtension($extension, $engine, $resolver);
  15012. }
  15013. /**
  15014. * Flush all of the factory state like sections and stacks.
  15015. *
  15016. * @return void
  15017. * @static
  15018. */
  15019. public static function flushState()
  15020. {
  15021. /** @var \Illuminate\View\Factory $instance */
  15022. $instance->flushState();
  15023. }
  15024. /**
  15025. * Flush all of the section contents if done rendering.
  15026. *
  15027. * @return void
  15028. * @static
  15029. */
  15030. public static function flushStateIfDoneRendering()
  15031. {
  15032. /** @var \Illuminate\View\Factory $instance */
  15033. $instance->flushStateIfDoneRendering();
  15034. }
  15035. /**
  15036. * Get the extension to engine bindings.
  15037. *
  15038. * @return array
  15039. * @static
  15040. */
  15041. public static function getExtensions()
  15042. {
  15043. /** @var \Illuminate\View\Factory $instance */
  15044. return $instance->getExtensions();
  15045. }
  15046. /**
  15047. * Get the engine resolver instance.
  15048. *
  15049. * @return \Illuminate\View\Engines\EngineResolver
  15050. * @static
  15051. */
  15052. public static function getEngineResolver()
  15053. {
  15054. /** @var \Illuminate\View\Factory $instance */
  15055. return $instance->getEngineResolver();
  15056. }
  15057. /**
  15058. * Get the view finder instance.
  15059. *
  15060. * @return \Illuminate\View\ViewFinderInterface
  15061. * @static
  15062. */
  15063. public static function getFinder()
  15064. {
  15065. /** @var \Illuminate\View\Factory $instance */
  15066. return $instance->getFinder();
  15067. }
  15068. /**
  15069. * Set the view finder instance.
  15070. *
  15071. * @param \Illuminate\View\ViewFinderInterface $finder
  15072. * @return void
  15073. * @static
  15074. */
  15075. public static function setFinder($finder)
  15076. {
  15077. /** @var \Illuminate\View\Factory $instance */
  15078. $instance->setFinder($finder);
  15079. }
  15080. /**
  15081. * Flush the cache of views located by the finder.
  15082. *
  15083. * @return void
  15084. * @static
  15085. */
  15086. public static function flushFinderCache()
  15087. {
  15088. /** @var \Illuminate\View\Factory $instance */
  15089. $instance->flushFinderCache();
  15090. }
  15091. /**
  15092. * Get the event dispatcher instance.
  15093. *
  15094. * @return \Illuminate\Contracts\Events\Dispatcher
  15095. * @static
  15096. */
  15097. public static function getDispatcher()
  15098. {
  15099. /** @var \Illuminate\View\Factory $instance */
  15100. return $instance->getDispatcher();
  15101. }
  15102. /**
  15103. * Set the event dispatcher instance.
  15104. *
  15105. * @param \Illuminate\Contracts\Events\Dispatcher $events
  15106. * @return void
  15107. * @static
  15108. */
  15109. public static function setDispatcher($events)
  15110. {
  15111. /** @var \Illuminate\View\Factory $instance */
  15112. $instance->setDispatcher($events);
  15113. }
  15114. /**
  15115. * Get the IoC container instance.
  15116. *
  15117. * @return \Illuminate\Contracts\Container\Container
  15118. * @static
  15119. */
  15120. public static function getContainer()
  15121. {
  15122. /** @var \Illuminate\View\Factory $instance */
  15123. return $instance->getContainer();
  15124. }
  15125. /**
  15126. * Set the IoC container instance.
  15127. *
  15128. * @param \Illuminate\Contracts\Container\Container $container
  15129. * @return void
  15130. * @static
  15131. */
  15132. public static function setContainer($container)
  15133. {
  15134. /** @var \Illuminate\View\Factory $instance */
  15135. $instance->setContainer($container);
  15136. }
  15137. /**
  15138. * Get an item from the shared data.
  15139. *
  15140. * @param string $key
  15141. * @param mixed $default
  15142. * @return mixed
  15143. * @static
  15144. */
  15145. public static function shared($key, $default = null)
  15146. {
  15147. /** @var \Illuminate\View\Factory $instance */
  15148. return $instance->shared($key, $default);
  15149. }
  15150. /**
  15151. * Get all of the shared data for the environment.
  15152. *
  15153. * @return array
  15154. * @static
  15155. */
  15156. public static function getShared()
  15157. {
  15158. /** @var \Illuminate\View\Factory $instance */
  15159. return $instance->getShared();
  15160. }
  15161. /**
  15162. * Register a custom macro.
  15163. *
  15164. * @param string $name
  15165. * @param object|callable $macro
  15166. * @return void
  15167. * @static
  15168. */
  15169. public static function macro($name, $macro)
  15170. {
  15171. \Illuminate\View\Factory::macro($name, $macro);
  15172. }
  15173. /**
  15174. * Mix another object into the class.
  15175. *
  15176. * @param object $mixin
  15177. * @param bool $replace
  15178. * @return void
  15179. * @throws \ReflectionException
  15180. * @static
  15181. */
  15182. public static function mixin($mixin, $replace = true)
  15183. {
  15184. \Illuminate\View\Factory::mixin($mixin, $replace);
  15185. }
  15186. /**
  15187. * Checks if macro is registered.
  15188. *
  15189. * @param string $name
  15190. * @return bool
  15191. * @static
  15192. */
  15193. public static function hasMacro($name)
  15194. {
  15195. return \Illuminate\View\Factory::hasMacro($name);
  15196. }
  15197. /**
  15198. * Flush the existing macros.
  15199. *
  15200. * @return void
  15201. * @static
  15202. */
  15203. public static function flushMacros()
  15204. {
  15205. \Illuminate\View\Factory::flushMacros();
  15206. }
  15207. /**
  15208. * Start a component rendering process.
  15209. *
  15210. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  15211. * @param array $data
  15212. * @return void
  15213. * @static
  15214. */
  15215. public static function startComponent($view, $data = [])
  15216. {
  15217. /** @var \Illuminate\View\Factory $instance */
  15218. $instance->startComponent($view, $data);
  15219. }
  15220. /**
  15221. * Get the first view that actually exists from the given list, and start a component.
  15222. *
  15223. * @param array $names
  15224. * @param array $data
  15225. * @return void
  15226. * @static
  15227. */
  15228. public static function startComponentFirst($names, $data = [])
  15229. {
  15230. /** @var \Illuminate\View\Factory $instance */
  15231. $instance->startComponentFirst($names, $data);
  15232. }
  15233. /**
  15234. * Render the current component.
  15235. *
  15236. * @return string
  15237. * @static
  15238. */
  15239. public static function renderComponent()
  15240. {
  15241. /** @var \Illuminate\View\Factory $instance */
  15242. return $instance->renderComponent();
  15243. }
  15244. /**
  15245. * Get an item from the component data that exists above the current component.
  15246. *
  15247. * @param string $key
  15248. * @param mixed $default
  15249. * @return mixed|null
  15250. * @static
  15251. */
  15252. public static function getConsumableComponentData($key, $default = null)
  15253. {
  15254. /** @var \Illuminate\View\Factory $instance */
  15255. return $instance->getConsumableComponentData($key, $default);
  15256. }
  15257. /**
  15258. * Start the slot rendering process.
  15259. *
  15260. * @param string $name
  15261. * @param string|null $content
  15262. * @param array $attributes
  15263. * @return void
  15264. * @static
  15265. */
  15266. public static function slot($name, $content = null, $attributes = [])
  15267. {
  15268. /** @var \Illuminate\View\Factory $instance */
  15269. $instance->slot($name, $content, $attributes);
  15270. }
  15271. /**
  15272. * Save the slot content for rendering.
  15273. *
  15274. * @return void
  15275. * @static
  15276. */
  15277. public static function endSlot()
  15278. {
  15279. /** @var \Illuminate\View\Factory $instance */
  15280. $instance->endSlot();
  15281. }
  15282. /**
  15283. * Register a view creator event.
  15284. *
  15285. * @param array|string $views
  15286. * @param \Closure|string $callback
  15287. * @return array
  15288. * @static
  15289. */
  15290. public static function creator($views, $callback)
  15291. {
  15292. /** @var \Illuminate\View\Factory $instance */
  15293. return $instance->creator($views, $callback);
  15294. }
  15295. /**
  15296. * Register multiple view composers via an array.
  15297. *
  15298. * @param array $composers
  15299. * @return array
  15300. * @static
  15301. */
  15302. public static function composers($composers)
  15303. {
  15304. /** @var \Illuminate\View\Factory $instance */
  15305. return $instance->composers($composers);
  15306. }
  15307. /**
  15308. * Register a view composer event.
  15309. *
  15310. * @param array|string $views
  15311. * @param \Closure|string $callback
  15312. * @return array
  15313. * @static
  15314. */
  15315. public static function composer($views, $callback)
  15316. {
  15317. /** @var \Illuminate\View\Factory $instance */
  15318. return $instance->composer($views, $callback);
  15319. }
  15320. /**
  15321. * Call the composer for a given view.
  15322. *
  15323. * @param \Illuminate\Contracts\View\View $view
  15324. * @return void
  15325. * @static
  15326. */
  15327. public static function callComposer($view)
  15328. {
  15329. /** @var \Illuminate\View\Factory $instance */
  15330. $instance->callComposer($view);
  15331. }
  15332. /**
  15333. * Call the creator for a given view.
  15334. *
  15335. * @param \Illuminate\Contracts\View\View $view
  15336. * @return void
  15337. * @static
  15338. */
  15339. public static function callCreator($view)
  15340. {
  15341. /** @var \Illuminate\View\Factory $instance */
  15342. $instance->callCreator($view);
  15343. }
  15344. /**
  15345. * Start injecting content into a section.
  15346. *
  15347. * @param string $section
  15348. * @param string|null $content
  15349. * @return void
  15350. * @static
  15351. */
  15352. public static function startSection($section, $content = null)
  15353. {
  15354. /** @var \Illuminate\View\Factory $instance */
  15355. $instance->startSection($section, $content);
  15356. }
  15357. /**
  15358. * Inject inline content into a section.
  15359. *
  15360. * @param string $section
  15361. * @param string $content
  15362. * @return void
  15363. * @static
  15364. */
  15365. public static function inject($section, $content)
  15366. {
  15367. /** @var \Illuminate\View\Factory $instance */
  15368. $instance->inject($section, $content);
  15369. }
  15370. /**
  15371. * Stop injecting content into a section and return its contents.
  15372. *
  15373. * @return string
  15374. * @static
  15375. */
  15376. public static function yieldSection()
  15377. {
  15378. /** @var \Illuminate\View\Factory $instance */
  15379. return $instance->yieldSection();
  15380. }
  15381. /**
  15382. * Stop injecting content into a section.
  15383. *
  15384. * @param bool $overwrite
  15385. * @return string
  15386. * @throws \InvalidArgumentException
  15387. * @static
  15388. */
  15389. public static function stopSection($overwrite = false)
  15390. {
  15391. /** @var \Illuminate\View\Factory $instance */
  15392. return $instance->stopSection($overwrite);
  15393. }
  15394. /**
  15395. * Stop injecting content into a section and append it.
  15396. *
  15397. * @return string
  15398. * @throws \InvalidArgumentException
  15399. * @static
  15400. */
  15401. public static function appendSection()
  15402. {
  15403. /** @var \Illuminate\View\Factory $instance */
  15404. return $instance->appendSection();
  15405. }
  15406. /**
  15407. * Get the string contents of a section.
  15408. *
  15409. * @param string $section
  15410. * @param string $default
  15411. * @return string
  15412. * @static
  15413. */
  15414. public static function yieldContent($section, $default = '')
  15415. {
  15416. /** @var \Illuminate\View\Factory $instance */
  15417. return $instance->yieldContent($section, $default);
  15418. }
  15419. /**
  15420. * Get the parent placeholder for the current request.
  15421. *
  15422. * @param string $section
  15423. * @return string
  15424. * @static
  15425. */
  15426. public static function parentPlaceholder($section = '')
  15427. {
  15428. return \Illuminate\View\Factory::parentPlaceholder($section);
  15429. }
  15430. /**
  15431. * Check if section exists.
  15432. *
  15433. * @param string $name
  15434. * @return bool
  15435. * @static
  15436. */
  15437. public static function hasSection($name)
  15438. {
  15439. /** @var \Illuminate\View\Factory $instance */
  15440. return $instance->hasSection($name);
  15441. }
  15442. /**
  15443. * Check if section does not exist.
  15444. *
  15445. * @param string $name
  15446. * @return bool
  15447. * @static
  15448. */
  15449. public static function sectionMissing($name)
  15450. {
  15451. /** @var \Illuminate\View\Factory $instance */
  15452. return $instance->sectionMissing($name);
  15453. }
  15454. /**
  15455. * Get the contents of a section.
  15456. *
  15457. * @param string $name
  15458. * @param string|null $default
  15459. * @return mixed
  15460. * @static
  15461. */
  15462. public static function getSection($name, $default = null)
  15463. {
  15464. /** @var \Illuminate\View\Factory $instance */
  15465. return $instance->getSection($name, $default);
  15466. }
  15467. /**
  15468. * Get the entire array of sections.
  15469. *
  15470. * @return array
  15471. * @static
  15472. */
  15473. public static function getSections()
  15474. {
  15475. /** @var \Illuminate\View\Factory $instance */
  15476. return $instance->getSections();
  15477. }
  15478. /**
  15479. * Flush all of the sections.
  15480. *
  15481. * @return void
  15482. * @static
  15483. */
  15484. public static function flushSections()
  15485. {
  15486. /** @var \Illuminate\View\Factory $instance */
  15487. $instance->flushSections();
  15488. }
  15489. /**
  15490. * Add new loop to the stack.
  15491. *
  15492. * @param \Countable|array $data
  15493. * @return void
  15494. * @static
  15495. */
  15496. public static function addLoop($data)
  15497. {
  15498. /** @var \Illuminate\View\Factory $instance */
  15499. $instance->addLoop($data);
  15500. }
  15501. /**
  15502. * Increment the top loop's indices.
  15503. *
  15504. * @return void
  15505. * @static
  15506. */
  15507. public static function incrementLoopIndices()
  15508. {
  15509. /** @var \Illuminate\View\Factory $instance */
  15510. $instance->incrementLoopIndices();
  15511. }
  15512. /**
  15513. * Pop a loop from the top of the loop stack.
  15514. *
  15515. * @return void
  15516. * @static
  15517. */
  15518. public static function popLoop()
  15519. {
  15520. /** @var \Illuminate\View\Factory $instance */
  15521. $instance->popLoop();
  15522. }
  15523. /**
  15524. * Get an instance of the last loop in the stack.
  15525. *
  15526. * @return \stdClass|null
  15527. * @static
  15528. */
  15529. public static function getLastLoop()
  15530. {
  15531. /** @var \Illuminate\View\Factory $instance */
  15532. return $instance->getLastLoop();
  15533. }
  15534. /**
  15535. * Get the entire loop stack.
  15536. *
  15537. * @return array
  15538. * @static
  15539. */
  15540. public static function getLoopStack()
  15541. {
  15542. /** @var \Illuminate\View\Factory $instance */
  15543. return $instance->getLoopStack();
  15544. }
  15545. /**
  15546. * Start injecting content into a push section.
  15547. *
  15548. * @param string $section
  15549. * @param string $content
  15550. * @return void
  15551. * @static
  15552. */
  15553. public static function startPush($section, $content = '')
  15554. {
  15555. /** @var \Illuminate\View\Factory $instance */
  15556. $instance->startPush($section, $content);
  15557. }
  15558. /**
  15559. * Stop injecting content into a push section.
  15560. *
  15561. * @return string
  15562. * @throws \InvalidArgumentException
  15563. * @static
  15564. */
  15565. public static function stopPush()
  15566. {
  15567. /** @var \Illuminate\View\Factory $instance */
  15568. return $instance->stopPush();
  15569. }
  15570. /**
  15571. * Start prepending content into a push section.
  15572. *
  15573. * @param string $section
  15574. * @param string $content
  15575. * @return void
  15576. * @static
  15577. */
  15578. public static function startPrepend($section, $content = '')
  15579. {
  15580. /** @var \Illuminate\View\Factory $instance */
  15581. $instance->startPrepend($section, $content);
  15582. }
  15583. /**
  15584. * Stop prepending content into a push section.
  15585. *
  15586. * @return string
  15587. * @throws \InvalidArgumentException
  15588. * @static
  15589. */
  15590. public static function stopPrepend()
  15591. {
  15592. /** @var \Illuminate\View\Factory $instance */
  15593. return $instance->stopPrepend();
  15594. }
  15595. /**
  15596. * Get the string contents of a push section.
  15597. *
  15598. * @param string $section
  15599. * @param string $default
  15600. * @return string
  15601. * @static
  15602. */
  15603. public static function yieldPushContent($section, $default = '')
  15604. {
  15605. /** @var \Illuminate\View\Factory $instance */
  15606. return $instance->yieldPushContent($section, $default);
  15607. }
  15608. /**
  15609. * Flush all of the stacks.
  15610. *
  15611. * @return void
  15612. * @static
  15613. */
  15614. public static function flushStacks()
  15615. {
  15616. /** @var \Illuminate\View\Factory $instance */
  15617. $instance->flushStacks();
  15618. }
  15619. /**
  15620. * Start a translation block.
  15621. *
  15622. * @param array $replacements
  15623. * @return void
  15624. * @static
  15625. */
  15626. public static function startTranslation($replacements = [])
  15627. {
  15628. /** @var \Illuminate\View\Factory $instance */
  15629. $instance->startTranslation($replacements);
  15630. }
  15631. /**
  15632. * Render the current translation.
  15633. *
  15634. * @return string
  15635. * @static
  15636. */
  15637. public static function renderTranslation()
  15638. {
  15639. /** @var \Illuminate\View\Factory $instance */
  15640. return $instance->renderTranslation();
  15641. }
  15642. }
  15643. }
  15644. namespace Illuminate\Support {
  15645. /**
  15646. */
  15647. class Arr {
  15648. }
  15649. /**
  15650. */
  15651. class Str {
  15652. }
  15653. }
  15654. namespace Facade\Ignition\Facades {
  15655. /**
  15656. * Class Flare.
  15657. *
  15658. * @see \Facade\FlareClient\Flare
  15659. */
  15660. class Flare {
  15661. /**
  15662. * @static
  15663. */
  15664. public static function register($apiKey, $apiSecret = null, $contextDetector = null, $container = null)
  15665. {
  15666. return \Facade\FlareClient\Flare::register($apiKey, $apiSecret, $contextDetector, $container);
  15667. }
  15668. /**
  15669. * @static
  15670. */
  15671. public static function determineVersionUsing($determineVersionCallable)
  15672. {
  15673. /** @var \Facade\FlareClient\Flare $instance */
  15674. return $instance->determineVersionUsing($determineVersionCallable);
  15675. }
  15676. /**
  15677. * @static
  15678. */
  15679. public static function reportErrorLevels($reportErrorLevels)
  15680. {
  15681. /** @var \Facade\FlareClient\Flare $instance */
  15682. return $instance->reportErrorLevels($reportErrorLevels);
  15683. }
  15684. /**
  15685. * @static
  15686. */
  15687. public static function filterExceptionsUsing($filterExceptionsCallable)
  15688. {
  15689. /** @var \Facade\FlareClient\Flare $instance */
  15690. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  15691. }
  15692. /**
  15693. * @static
  15694. */
  15695. public static function filterReportsUsing($filterReportsCallable)
  15696. {
  15697. /** @var \Facade\FlareClient\Flare $instance */
  15698. return $instance->filterReportsUsing($filterReportsCallable);
  15699. }
  15700. /**
  15701. * @return null|string
  15702. * @static
  15703. */
  15704. public static function version()
  15705. {
  15706. /** @var \Facade\FlareClient\Flare $instance */
  15707. return $instance->version();
  15708. }
  15709. /**
  15710. * @static
  15711. */
  15712. public static function getMiddleware()
  15713. {
  15714. /** @var \Facade\FlareClient\Flare $instance */
  15715. return $instance->getMiddleware();
  15716. }
  15717. /**
  15718. * @static
  15719. */
  15720. public static function registerFlareHandlers()
  15721. {
  15722. /** @var \Facade\FlareClient\Flare $instance */
  15723. return $instance->registerFlareHandlers();
  15724. }
  15725. /**
  15726. * @static
  15727. */
  15728. public static function registerExceptionHandler()
  15729. {
  15730. /** @var \Facade\FlareClient\Flare $instance */
  15731. return $instance->registerExceptionHandler();
  15732. }
  15733. /**
  15734. * @static
  15735. */
  15736. public static function registerErrorHandler()
  15737. {
  15738. /** @var \Facade\FlareClient\Flare $instance */
  15739. return $instance->registerErrorHandler();
  15740. }
  15741. /**
  15742. * @static
  15743. */
  15744. public static function registerMiddleware($callable)
  15745. {
  15746. /** @var \Facade\FlareClient\Flare $instance */
  15747. return $instance->registerMiddleware($callable);
  15748. }
  15749. /**
  15750. * @static
  15751. */
  15752. public static function getMiddlewares()
  15753. {
  15754. /** @var \Facade\FlareClient\Flare $instance */
  15755. return $instance->getMiddlewares();
  15756. }
  15757. /**
  15758. * @static
  15759. */
  15760. public static function glow($name, $messageLevel = 'info', $metaData = [])
  15761. {
  15762. /** @var \Facade\FlareClient\Flare $instance */
  15763. return $instance->glow($name, $messageLevel, $metaData);
  15764. }
  15765. /**
  15766. * @static
  15767. */
  15768. public static function handleException($throwable)
  15769. {
  15770. /** @var \Facade\FlareClient\Flare $instance */
  15771. return $instance->handleException($throwable);
  15772. }
  15773. /**
  15774. * @static
  15775. */
  15776. public static function handleError($code, $message, $file = '', $line = 0)
  15777. {
  15778. /** @var \Facade\FlareClient\Flare $instance */
  15779. return $instance->handleError($code, $message, $file, $line);
  15780. }
  15781. /**
  15782. * @static
  15783. */
  15784. public static function applicationPath($applicationPath)
  15785. {
  15786. /** @var \Facade\FlareClient\Flare $instance */
  15787. return $instance->applicationPath($applicationPath);
  15788. }
  15789. /**
  15790. * @static
  15791. */
  15792. public static function report($throwable, $callback = null)
  15793. {
  15794. /** @var \Facade\FlareClient\Flare $instance */
  15795. return $instance->report($throwable, $callback);
  15796. }
  15797. /**
  15798. * @static
  15799. */
  15800. public static function reportMessage($message, $logLevel, $callback = null)
  15801. {
  15802. /** @var \Facade\FlareClient\Flare $instance */
  15803. return $instance->reportMessage($message, $logLevel, $callback);
  15804. }
  15805. /**
  15806. * @static
  15807. */
  15808. public static function sendTestReport($throwable)
  15809. {
  15810. /** @var \Facade\FlareClient\Flare $instance */
  15811. return $instance->sendTestReport($throwable);
  15812. }
  15813. /**
  15814. * @static
  15815. */
  15816. public static function reset()
  15817. {
  15818. /** @var \Facade\FlareClient\Flare $instance */
  15819. return $instance->reset();
  15820. }
  15821. /**
  15822. * @static
  15823. */
  15824. public static function anonymizeIp()
  15825. {
  15826. /** @var \Facade\FlareClient\Flare $instance */
  15827. return $instance->anonymizeIp();
  15828. }
  15829. /**
  15830. * @static
  15831. */
  15832. public static function censorRequestBodyFields($fieldNames)
  15833. {
  15834. /** @var \Facade\FlareClient\Flare $instance */
  15835. return $instance->censorRequestBodyFields($fieldNames);
  15836. }
  15837. /**
  15838. * @static
  15839. */
  15840. public static function createReport($throwable)
  15841. {
  15842. /** @var \Facade\FlareClient\Flare $instance */
  15843. return $instance->createReport($throwable);
  15844. }
  15845. /**
  15846. * @static
  15847. */
  15848. public static function createReportFromMessage($message, $logLevel)
  15849. {
  15850. /** @var \Facade\FlareClient\Flare $instance */
  15851. return $instance->createReportFromMessage($message, $logLevel);
  15852. }
  15853. /**
  15854. * @static
  15855. */
  15856. public static function stage($stage)
  15857. {
  15858. /** @var \Facade\FlareClient\Flare $instance */
  15859. return $instance->stage($stage);
  15860. }
  15861. /**
  15862. * @static
  15863. */
  15864. public static function messageLevel($messageLevel)
  15865. {
  15866. /** @var \Facade\FlareClient\Flare $instance */
  15867. return $instance->messageLevel($messageLevel);
  15868. }
  15869. /**
  15870. * @static
  15871. */
  15872. public static function getGroup($groupName = 'context', $default = [])
  15873. {
  15874. /** @var \Facade\FlareClient\Flare $instance */
  15875. return $instance->getGroup($groupName, $default);
  15876. }
  15877. /**
  15878. * @static
  15879. */
  15880. public static function context($key, $value)
  15881. {
  15882. /** @var \Facade\FlareClient\Flare $instance */
  15883. return $instance->context($key, $value);
  15884. }
  15885. /**
  15886. * @static
  15887. */
  15888. public static function group($groupName, $properties)
  15889. {
  15890. /** @var \Facade\FlareClient\Flare $instance */
  15891. return $instance->group($groupName, $properties);
  15892. }
  15893. }
  15894. }
  15895. namespace Illuminate\Http {
  15896. /**
  15897. */
  15898. class Request {
  15899. /**
  15900. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  15901. * @param array $rules
  15902. * @param mixed $params
  15903. * @static
  15904. */
  15905. public static function validate($rules, ...$params)
  15906. {
  15907. return \Illuminate\Http\Request::validate($rules, ...$params);
  15908. }
  15909. /**
  15910. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  15911. * @param string $errorBag
  15912. * @param array $rules
  15913. * @param mixed $params
  15914. * @static
  15915. */
  15916. public static function validateWithBag($errorBag, $rules, ...$params)
  15917. {
  15918. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  15919. }
  15920. /**
  15921. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  15922. * @param mixed $absolute
  15923. * @static
  15924. */
  15925. public static function hasValidSignature($absolute = true)
  15926. {
  15927. return \Illuminate\Http\Request::hasValidSignature($absolute);
  15928. }
  15929. /**
  15930. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  15931. * @static
  15932. */
  15933. public static function hasValidRelativeSignature()
  15934. {
  15935. return \Illuminate\Http\Request::hasValidRelativeSignature();
  15936. }
  15937. }
  15938. }
  15939. namespace {
  15940. class App extends \Illuminate\Support\Facades\App {}
  15941. class Arr extends \Illuminate\Support\Arr {}
  15942. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  15943. class Auth extends \Illuminate\Support\Facades\Auth {}
  15944. class Blade extends \Illuminate\Support\Facades\Blade {}
  15945. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  15946. class Bus extends \Illuminate\Support\Facades\Bus {}
  15947. class Cache extends \Illuminate\Support\Facades\Cache {}
  15948. class Config extends \Illuminate\Support\Facades\Config {}
  15949. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  15950. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  15951. class DB extends \Illuminate\Support\Facades\DB {}
  15952. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  15953. /**
  15954. * Create and return an un-saved model instance.
  15955. *
  15956. * @param array $attributes
  15957. * @return \Illuminate\Database\Eloquent\Model|static
  15958. * @static
  15959. */
  15960. public static function make($attributes = [])
  15961. {
  15962. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15963. return $instance->make($attributes);
  15964. }
  15965. /**
  15966. * Register a new global scope.
  15967. *
  15968. * @param string $identifier
  15969. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  15970. * @return \Illuminate\Database\Eloquent\Builder|static
  15971. * @static
  15972. */
  15973. public static function withGlobalScope($identifier, $scope)
  15974. {
  15975. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15976. return $instance->withGlobalScope($identifier, $scope);
  15977. }
  15978. /**
  15979. * Remove a registered global scope.
  15980. *
  15981. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  15982. * @return \Illuminate\Database\Eloquent\Builder|static
  15983. * @static
  15984. */
  15985. public static function withoutGlobalScope($scope)
  15986. {
  15987. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15988. return $instance->withoutGlobalScope($scope);
  15989. }
  15990. /**
  15991. * Remove all or passed registered global scopes.
  15992. *
  15993. * @param array|null $scopes
  15994. * @return \Illuminate\Database\Eloquent\Builder|static
  15995. * @static
  15996. */
  15997. public static function withoutGlobalScopes($scopes = null)
  15998. {
  15999. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16000. return $instance->withoutGlobalScopes($scopes);
  16001. }
  16002. /**
  16003. * Get an array of global scopes that were removed from the query.
  16004. *
  16005. * @return array
  16006. * @static
  16007. */
  16008. public static function removedScopes()
  16009. {
  16010. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16011. return $instance->removedScopes();
  16012. }
  16013. /**
  16014. * Add a where clause on the primary key to the query.
  16015. *
  16016. * @param mixed $id
  16017. * @return \Illuminate\Database\Eloquent\Builder|static
  16018. * @static
  16019. */
  16020. public static function whereKey($id)
  16021. {
  16022. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16023. return $instance->whereKey($id);
  16024. }
  16025. /**
  16026. * Add a where clause on the primary key to the query.
  16027. *
  16028. * @param mixed $id
  16029. * @return \Illuminate\Database\Eloquent\Builder|static
  16030. * @static
  16031. */
  16032. public static function whereKeyNot($id)
  16033. {
  16034. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16035. return $instance->whereKeyNot($id);
  16036. }
  16037. /**
  16038. * Add a basic where clause to the query.
  16039. *
  16040. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16041. * @param mixed $operator
  16042. * @param mixed $value
  16043. * @param string $boolean
  16044. * @return \Illuminate\Database\Eloquent\Builder|static
  16045. * @static
  16046. */
  16047. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  16048. {
  16049. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16050. return $instance->where($column, $operator, $value, $boolean);
  16051. }
  16052. /**
  16053. * Add a basic where clause to the query, and return the first result.
  16054. *
  16055. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16056. * @param mixed $operator
  16057. * @param mixed $value
  16058. * @param string $boolean
  16059. * @return \Illuminate\Database\Eloquent\Model|static|null
  16060. * @static
  16061. */
  16062. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  16063. {
  16064. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16065. return $instance->firstWhere($column, $operator, $value, $boolean);
  16066. }
  16067. /**
  16068. * Add an "or where" clause to the query.
  16069. *
  16070. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  16071. * @param mixed $operator
  16072. * @param mixed $value
  16073. * @return \Illuminate\Database\Eloquent\Builder|static
  16074. * @static
  16075. */
  16076. public static function orWhere($column, $operator = null, $value = null)
  16077. {
  16078. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16079. return $instance->orWhere($column, $operator, $value);
  16080. }
  16081. /**
  16082. * Add an "order by" clause for a timestamp to the query.
  16083. *
  16084. * @param string|\Illuminate\Database\Query\Expression $column
  16085. * @return \Illuminate\Database\Eloquent\Builder|static
  16086. * @static
  16087. */
  16088. public static function latest($column = null)
  16089. {
  16090. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16091. return $instance->latest($column);
  16092. }
  16093. /**
  16094. * Add an "order by" clause for a timestamp to the query.
  16095. *
  16096. * @param string|\Illuminate\Database\Query\Expression $column
  16097. * @return \Illuminate\Database\Eloquent\Builder|static
  16098. * @static
  16099. */
  16100. public static function oldest($column = null)
  16101. {
  16102. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16103. return $instance->oldest($column);
  16104. }
  16105. /**
  16106. * Create a collection of models from plain arrays.
  16107. *
  16108. * @param array $items
  16109. * @return \Illuminate\Database\Eloquent\Collection
  16110. * @static
  16111. */
  16112. public static function hydrate($items)
  16113. {
  16114. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16115. return $instance->hydrate($items);
  16116. }
  16117. /**
  16118. * Create a collection of models from a raw query.
  16119. *
  16120. * @param string $query
  16121. * @param array $bindings
  16122. * @return \Illuminate\Database\Eloquent\Collection
  16123. * @static
  16124. */
  16125. public static function fromQuery($query, $bindings = [])
  16126. {
  16127. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16128. return $instance->fromQuery($query, $bindings);
  16129. }
  16130. /**
  16131. * Find a model by its primary key.
  16132. *
  16133. * @param mixed $id
  16134. * @param array $columns
  16135. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  16136. * @static
  16137. */
  16138. public static function find($id, $columns = [])
  16139. {
  16140. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16141. return $instance->find($id, $columns);
  16142. }
  16143. /**
  16144. * Find multiple models by their primary keys.
  16145. *
  16146. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  16147. * @param array $columns
  16148. * @return \Illuminate\Database\Eloquent\Collection
  16149. * @static
  16150. */
  16151. public static function findMany($ids, $columns = [])
  16152. {
  16153. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16154. return $instance->findMany($ids, $columns);
  16155. }
  16156. /**
  16157. * Find a model by its primary key or throw an exception.
  16158. *
  16159. * @param mixed $id
  16160. * @param array $columns
  16161. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  16162. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16163. * @static
  16164. */
  16165. public static function findOrFail($id, $columns = [])
  16166. {
  16167. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16168. return $instance->findOrFail($id, $columns);
  16169. }
  16170. /**
  16171. * Find a model by its primary key or return fresh model instance.
  16172. *
  16173. * @param mixed $id
  16174. * @param array $columns
  16175. * @return \Illuminate\Database\Eloquent\Model|static
  16176. * @static
  16177. */
  16178. public static function findOrNew($id, $columns = [])
  16179. {
  16180. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16181. return $instance->findOrNew($id, $columns);
  16182. }
  16183. /**
  16184. * Get the first record matching the attributes or instantiate it.
  16185. *
  16186. * @param array $attributes
  16187. * @param array $values
  16188. * @return \Illuminate\Database\Eloquent\Model|static
  16189. * @static
  16190. */
  16191. public static function firstOrNew($attributes = [], $values = [])
  16192. {
  16193. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16194. return $instance->firstOrNew($attributes, $values);
  16195. }
  16196. /**
  16197. * Get the first record matching the attributes or create it.
  16198. *
  16199. * @param array $attributes
  16200. * @param array $values
  16201. * @return \Illuminate\Database\Eloquent\Model|static
  16202. * @static
  16203. */
  16204. public static function firstOrCreate($attributes = [], $values = [])
  16205. {
  16206. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16207. return $instance->firstOrCreate($attributes, $values);
  16208. }
  16209. /**
  16210. * Create or update a record matching the attributes, and fill it with values.
  16211. *
  16212. * @param array $attributes
  16213. * @param array $values
  16214. * @return \Illuminate\Database\Eloquent\Model|static
  16215. * @static
  16216. */
  16217. public static function updateOrCreate($attributes, $values = [])
  16218. {
  16219. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16220. return $instance->updateOrCreate($attributes, $values);
  16221. }
  16222. /**
  16223. * Execute the query and get the first result or throw an exception.
  16224. *
  16225. * @param array $columns
  16226. * @return \Illuminate\Database\Eloquent\Model|static
  16227. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16228. * @static
  16229. */
  16230. public static function firstOrFail($columns = [])
  16231. {
  16232. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16233. return $instance->firstOrFail($columns);
  16234. }
  16235. /**
  16236. * Execute the query and get the first result or call a callback.
  16237. *
  16238. * @param \Closure|array $columns
  16239. * @param \Closure|null $callback
  16240. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  16241. * @static
  16242. */
  16243. public static function firstOr($columns = [], $callback = null)
  16244. {
  16245. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16246. return $instance->firstOr($columns, $callback);
  16247. }
  16248. /**
  16249. * Execute the query and get the first result if it's the sole matching record.
  16250. *
  16251. * @param array|string $columns
  16252. * @return \Illuminate\Database\Eloquent\Model
  16253. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16254. * @throws \Illuminate\Database\MultipleRecordsFoundException
  16255. * @static
  16256. */
  16257. public static function sole($columns = [])
  16258. {
  16259. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16260. return $instance->sole($columns);
  16261. }
  16262. /**
  16263. * Get a single column's value from the first result of a query.
  16264. *
  16265. * @param string|\Illuminate\Database\Query\Expression $column
  16266. * @return mixed
  16267. * @static
  16268. */
  16269. public static function value($column)
  16270. {
  16271. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16272. return $instance->value($column);
  16273. }
  16274. /**
  16275. * Get a single column's value from the first result of the query or throw an exception.
  16276. *
  16277. * @param string|\Illuminate\Database\Query\Expression $column
  16278. * @return mixed
  16279. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16280. * @static
  16281. */
  16282. public static function valueOrFail($column)
  16283. {
  16284. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16285. return $instance->valueOrFail($column);
  16286. }
  16287. /**
  16288. * Execute the query as a "select" statement.
  16289. *
  16290. * @param array|string $columns
  16291. * @return \Illuminate\Database\Eloquent\Collection|static[]
  16292. * @static
  16293. */
  16294. public static function get($columns = [])
  16295. {
  16296. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16297. return $instance->get($columns);
  16298. }
  16299. /**
  16300. * Get the hydrated models without eager loading.
  16301. *
  16302. * @param array|string $columns
  16303. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  16304. * @static
  16305. */
  16306. public static function getModels($columns = [])
  16307. {
  16308. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16309. return $instance->getModels($columns);
  16310. }
  16311. /**
  16312. * Eager load the relationships for the models.
  16313. *
  16314. * @param array $models
  16315. * @return array
  16316. * @static
  16317. */
  16318. public static function eagerLoadRelations($models)
  16319. {
  16320. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16321. return $instance->eagerLoadRelations($models);
  16322. }
  16323. /**
  16324. * Get a lazy collection for the given query.
  16325. *
  16326. * @return \Illuminate\Support\LazyCollection
  16327. * @static
  16328. */
  16329. public static function cursor()
  16330. {
  16331. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16332. return $instance->cursor();
  16333. }
  16334. /**
  16335. * Get an array with the values of a given column.
  16336. *
  16337. * @param string|\Illuminate\Database\Query\Expression $column
  16338. * @param string|null $key
  16339. * @return \Illuminate\Support\Collection
  16340. * @static
  16341. */
  16342. public static function pluck($column, $key = null)
  16343. {
  16344. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16345. return $instance->pluck($column, $key);
  16346. }
  16347. /**
  16348. * Paginate the given query.
  16349. *
  16350. * @param int|null $perPage
  16351. * @param array $columns
  16352. * @param string $pageName
  16353. * @param int|null $page
  16354. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  16355. * @throws \InvalidArgumentException
  16356. * @static
  16357. */
  16358. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  16359. {
  16360. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16361. return $instance->paginate($perPage, $columns, $pageName, $page);
  16362. }
  16363. /**
  16364. * Paginate the given query into a simple paginator.
  16365. *
  16366. * @param int|null $perPage
  16367. * @param array $columns
  16368. * @param string $pageName
  16369. * @param int|null $page
  16370. * @return \Illuminate\Contracts\Pagination\Paginator
  16371. * @static
  16372. */
  16373. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  16374. {
  16375. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16376. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  16377. }
  16378. /**
  16379. * Paginate the given query into a cursor paginator.
  16380. *
  16381. * @param int|null $perPage
  16382. * @param array $columns
  16383. * @param string $cursorName
  16384. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  16385. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  16386. * @static
  16387. */
  16388. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  16389. {
  16390. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16391. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  16392. }
  16393. /**
  16394. * Save a new model and return the instance.
  16395. *
  16396. * @param array $attributes
  16397. * @return \Illuminate\Database\Eloquent\Model|$this
  16398. * @static
  16399. */
  16400. public static function create($attributes = [])
  16401. {
  16402. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16403. return $instance->create($attributes);
  16404. }
  16405. /**
  16406. * Save a new model and return the instance. Allow mass-assignment.
  16407. *
  16408. * @param array $attributes
  16409. * @return \Illuminate\Database\Eloquent\Model|$this
  16410. * @static
  16411. */
  16412. public static function forceCreate($attributes)
  16413. {
  16414. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16415. return $instance->forceCreate($attributes);
  16416. }
  16417. /**
  16418. * Insert new records or update the existing ones.
  16419. *
  16420. * @param array $values
  16421. * @param array|string $uniqueBy
  16422. * @param array|null $update
  16423. * @return int
  16424. * @static
  16425. */
  16426. public static function upsert($values, $uniqueBy, $update = null)
  16427. {
  16428. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16429. return $instance->upsert($values, $uniqueBy, $update);
  16430. }
  16431. /**
  16432. * Register a replacement for the default delete function.
  16433. *
  16434. * @param \Closure $callback
  16435. * @return void
  16436. * @static
  16437. */
  16438. public static function onDelete($callback)
  16439. {
  16440. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16441. $instance->onDelete($callback);
  16442. }
  16443. /**
  16444. * Call the given local model scopes.
  16445. *
  16446. * @param array|string $scopes
  16447. * @return static|mixed
  16448. * @static
  16449. */
  16450. public static function scopes($scopes)
  16451. {
  16452. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16453. return $instance->scopes($scopes);
  16454. }
  16455. /**
  16456. * Apply the scopes to the Eloquent builder instance and return it.
  16457. *
  16458. * @return static
  16459. * @static
  16460. */
  16461. public static function applyScopes()
  16462. {
  16463. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16464. return $instance->applyScopes();
  16465. }
  16466. /**
  16467. * Prevent the specified relations from being eager loaded.
  16468. *
  16469. * @param mixed $relations
  16470. * @return \Illuminate\Database\Eloquent\Builder|static
  16471. * @static
  16472. */
  16473. public static function without($relations)
  16474. {
  16475. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16476. return $instance->without($relations);
  16477. }
  16478. /**
  16479. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  16480. *
  16481. * @param mixed $relations
  16482. * @return \Illuminate\Database\Eloquent\Builder|static
  16483. * @static
  16484. */
  16485. public static function withOnly($relations)
  16486. {
  16487. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16488. return $instance->withOnly($relations);
  16489. }
  16490. /**
  16491. * Create a new instance of the model being queried.
  16492. *
  16493. * @param array $attributes
  16494. * @return \Illuminate\Database\Eloquent\Model|static
  16495. * @static
  16496. */
  16497. public static function newModelInstance($attributes = [])
  16498. {
  16499. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16500. return $instance->newModelInstance($attributes);
  16501. }
  16502. /**
  16503. * Apply query-time casts to the model instance.
  16504. *
  16505. * @param array $casts
  16506. * @return \Illuminate\Database\Eloquent\Builder|static
  16507. * @static
  16508. */
  16509. public static function withCasts($casts)
  16510. {
  16511. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16512. return $instance->withCasts($casts);
  16513. }
  16514. /**
  16515. * Get the underlying query builder instance.
  16516. *
  16517. * @return \Illuminate\Database\Query\Builder
  16518. * @static
  16519. */
  16520. public static function getQuery()
  16521. {
  16522. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16523. return $instance->getQuery();
  16524. }
  16525. /**
  16526. * Set the underlying query builder instance.
  16527. *
  16528. * @param \Illuminate\Database\Query\Builder $query
  16529. * @return \Illuminate\Database\Eloquent\Builder|static
  16530. * @static
  16531. */
  16532. public static function setQuery($query)
  16533. {
  16534. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16535. return $instance->setQuery($query);
  16536. }
  16537. /**
  16538. * Get a base query builder instance.
  16539. *
  16540. * @return \Illuminate\Database\Query\Builder
  16541. * @static
  16542. */
  16543. public static function toBase()
  16544. {
  16545. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16546. return $instance->toBase();
  16547. }
  16548. /**
  16549. * Get the relationships being eagerly loaded.
  16550. *
  16551. * @return array
  16552. * @static
  16553. */
  16554. public static function getEagerLoads()
  16555. {
  16556. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16557. return $instance->getEagerLoads();
  16558. }
  16559. /**
  16560. * Set the relationships being eagerly loaded.
  16561. *
  16562. * @param array $eagerLoad
  16563. * @return \Illuminate\Database\Eloquent\Builder|static
  16564. * @static
  16565. */
  16566. public static function setEagerLoads($eagerLoad)
  16567. {
  16568. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16569. return $instance->setEagerLoads($eagerLoad);
  16570. }
  16571. /**
  16572. * Get the model instance being queried.
  16573. *
  16574. * @return \Illuminate\Database\Eloquent\Model|static
  16575. * @static
  16576. */
  16577. public static function getModel()
  16578. {
  16579. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16580. return $instance->getModel();
  16581. }
  16582. /**
  16583. * Set a model instance for the model being queried.
  16584. *
  16585. * @param \Illuminate\Database\Eloquent\Model $model
  16586. * @return \Illuminate\Database\Eloquent\Builder|static
  16587. * @static
  16588. */
  16589. public static function setModel($model)
  16590. {
  16591. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16592. return $instance->setModel($model);
  16593. }
  16594. /**
  16595. * Get the given macro by name.
  16596. *
  16597. * @param string $name
  16598. * @return \Closure
  16599. * @static
  16600. */
  16601. public static function getMacro($name)
  16602. {
  16603. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16604. return $instance->getMacro($name);
  16605. }
  16606. /**
  16607. * Checks if a macro is registered.
  16608. *
  16609. * @param string $name
  16610. * @return bool
  16611. * @static
  16612. */
  16613. public static function hasMacro($name)
  16614. {
  16615. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16616. return $instance->hasMacro($name);
  16617. }
  16618. /**
  16619. * Get the given global macro by name.
  16620. *
  16621. * @param string $name
  16622. * @return \Closure
  16623. * @static
  16624. */
  16625. public static function getGlobalMacro($name)
  16626. {
  16627. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  16628. }
  16629. /**
  16630. * Checks if a global macro is registered.
  16631. *
  16632. * @param string $name
  16633. * @return bool
  16634. * @static
  16635. */
  16636. public static function hasGlobalMacro($name)
  16637. {
  16638. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  16639. }
  16640. /**
  16641. * Clone the Eloquent query builder.
  16642. *
  16643. * @return static
  16644. * @static
  16645. */
  16646. public static function clone()
  16647. {
  16648. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16649. return $instance->clone();
  16650. }
  16651. /**
  16652. * Add a relationship count / exists condition to the query.
  16653. *
  16654. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  16655. * @param string $operator
  16656. * @param int $count
  16657. * @param string $boolean
  16658. * @param \Closure|null $callback
  16659. * @return \Illuminate\Database\Eloquent\Builder|static
  16660. * @throws \RuntimeException
  16661. * @static
  16662. */
  16663. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  16664. {
  16665. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16666. return $instance->has($relation, $operator, $count, $boolean, $callback);
  16667. }
  16668. /**
  16669. * Add a relationship count / exists condition to the query with an "or".
  16670. *
  16671. * @param string $relation
  16672. * @param string $operator
  16673. * @param int $count
  16674. * @return \Illuminate\Database\Eloquent\Builder|static
  16675. * @static
  16676. */
  16677. public static function orHas($relation, $operator = '>=', $count = 1)
  16678. {
  16679. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16680. return $instance->orHas($relation, $operator, $count);
  16681. }
  16682. /**
  16683. * Add a relationship count / exists condition to the query.
  16684. *
  16685. * @param string $relation
  16686. * @param string $boolean
  16687. * @param \Closure|null $callback
  16688. * @return \Illuminate\Database\Eloquent\Builder|static
  16689. * @static
  16690. */
  16691. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  16692. {
  16693. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16694. return $instance->doesntHave($relation, $boolean, $callback);
  16695. }
  16696. /**
  16697. * Add a relationship count / exists condition to the query with an "or".
  16698. *
  16699. * @param string $relation
  16700. * @return \Illuminate\Database\Eloquent\Builder|static
  16701. * @static
  16702. */
  16703. public static function orDoesntHave($relation)
  16704. {
  16705. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16706. return $instance->orDoesntHave($relation);
  16707. }
  16708. /**
  16709. * Add a relationship count / exists condition to the query with where clauses.
  16710. *
  16711. * @param string $relation
  16712. * @param \Closure|null $callback
  16713. * @param string $operator
  16714. * @param int $count
  16715. * @return \Illuminate\Database\Eloquent\Builder|static
  16716. * @static
  16717. */
  16718. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  16719. {
  16720. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16721. return $instance->whereHas($relation, $callback, $operator, $count);
  16722. }
  16723. /**
  16724. * Add a relationship count / exists condition to the query with where clauses and an "or".
  16725. *
  16726. * @param string $relation
  16727. * @param \Closure|null $callback
  16728. * @param string $operator
  16729. * @param int $count
  16730. * @return \Illuminate\Database\Eloquent\Builder|static
  16731. * @static
  16732. */
  16733. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  16734. {
  16735. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16736. return $instance->orWhereHas($relation, $callback, $operator, $count);
  16737. }
  16738. /**
  16739. * Add a relationship count / exists condition to the query with where clauses.
  16740. *
  16741. * @param string $relation
  16742. * @param \Closure|null $callback
  16743. * @return \Illuminate\Database\Eloquent\Builder|static
  16744. * @static
  16745. */
  16746. public static function whereDoesntHave($relation, $callback = null)
  16747. {
  16748. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16749. return $instance->whereDoesntHave($relation, $callback);
  16750. }
  16751. /**
  16752. * Add a relationship count / exists condition to the query with where clauses and an "or".
  16753. *
  16754. * @param string $relation
  16755. * @param \Closure|null $callback
  16756. * @return \Illuminate\Database\Eloquent\Builder|static
  16757. * @static
  16758. */
  16759. public static function orWhereDoesntHave($relation, $callback = null)
  16760. {
  16761. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16762. return $instance->orWhereDoesntHave($relation, $callback);
  16763. }
  16764. /**
  16765. * Add a polymorphic relationship count / exists condition to the query.
  16766. *
  16767. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16768. * @param string|array $types
  16769. * @param string $operator
  16770. * @param int $count
  16771. * @param string $boolean
  16772. * @param \Closure|null $callback
  16773. * @return \Illuminate\Database\Eloquent\Builder|static
  16774. * @static
  16775. */
  16776. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  16777. {
  16778. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16779. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  16780. }
  16781. /**
  16782. * Add a polymorphic relationship count / exists condition to the query with an "or".
  16783. *
  16784. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16785. * @param string|array $types
  16786. * @param string $operator
  16787. * @param int $count
  16788. * @return \Illuminate\Database\Eloquent\Builder|static
  16789. * @static
  16790. */
  16791. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  16792. {
  16793. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16794. return $instance->orHasMorph($relation, $types, $operator, $count);
  16795. }
  16796. /**
  16797. * Add a polymorphic relationship count / exists condition to the query.
  16798. *
  16799. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16800. * @param string|array $types
  16801. * @param string $boolean
  16802. * @param \Closure|null $callback
  16803. * @return \Illuminate\Database\Eloquent\Builder|static
  16804. * @static
  16805. */
  16806. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  16807. {
  16808. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16809. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  16810. }
  16811. /**
  16812. * Add a polymorphic relationship count / exists condition to the query with an "or".
  16813. *
  16814. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16815. * @param string|array $types
  16816. * @return \Illuminate\Database\Eloquent\Builder|static
  16817. * @static
  16818. */
  16819. public static function orDoesntHaveMorph($relation, $types)
  16820. {
  16821. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16822. return $instance->orDoesntHaveMorph($relation, $types);
  16823. }
  16824. /**
  16825. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  16826. *
  16827. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16828. * @param string|array $types
  16829. * @param \Closure|null $callback
  16830. * @param string $operator
  16831. * @param int $count
  16832. * @return \Illuminate\Database\Eloquent\Builder|static
  16833. * @static
  16834. */
  16835. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  16836. {
  16837. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16838. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  16839. }
  16840. /**
  16841. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  16842. *
  16843. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16844. * @param string|array $types
  16845. * @param \Closure|null $callback
  16846. * @param string $operator
  16847. * @param int $count
  16848. * @return \Illuminate\Database\Eloquent\Builder|static
  16849. * @static
  16850. */
  16851. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  16852. {
  16853. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16854. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  16855. }
  16856. /**
  16857. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  16858. *
  16859. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16860. * @param string|array $types
  16861. * @param \Closure|null $callback
  16862. * @return \Illuminate\Database\Eloquent\Builder|static
  16863. * @static
  16864. */
  16865. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  16866. {
  16867. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16868. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  16869. }
  16870. /**
  16871. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  16872. *
  16873. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16874. * @param string|array $types
  16875. * @param \Closure|null $callback
  16876. * @return \Illuminate\Database\Eloquent\Builder|static
  16877. * @static
  16878. */
  16879. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  16880. {
  16881. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16882. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  16883. }
  16884. /**
  16885. * Add a basic where clause to a relationship query.
  16886. *
  16887. * @param string $relation
  16888. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16889. * @param mixed $operator
  16890. * @param mixed $value
  16891. * @return \Illuminate\Database\Eloquent\Builder|static
  16892. * @static
  16893. */
  16894. public static function whereRelation($relation, $column, $operator = null, $value = null)
  16895. {
  16896. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16897. return $instance->whereRelation($relation, $column, $operator, $value);
  16898. }
  16899. /**
  16900. * Add an "or where" clause to a relationship query.
  16901. *
  16902. * @param string $relation
  16903. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16904. * @param mixed $operator
  16905. * @param mixed $value
  16906. * @return \Illuminate\Database\Eloquent\Builder|static
  16907. * @static
  16908. */
  16909. public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  16910. {
  16911. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16912. return $instance->orWhereRelation($relation, $column, $operator, $value);
  16913. }
  16914. /**
  16915. * Add a polymorphic relationship condition to the query with a where clause.
  16916. *
  16917. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16918. * @param string|array $types
  16919. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16920. * @param mixed $operator
  16921. * @param mixed $value
  16922. * @return \Illuminate\Database\Eloquent\Builder|static
  16923. * @static
  16924. */
  16925. public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  16926. {
  16927. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16928. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  16929. }
  16930. /**
  16931. * Add a polymorphic relationship condition to the query with an "or where" clause.
  16932. *
  16933. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16934. * @param string|array $types
  16935. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16936. * @param mixed $operator
  16937. * @param mixed $value
  16938. * @return \Illuminate\Database\Eloquent\Builder|static
  16939. * @static
  16940. */
  16941. public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  16942. {
  16943. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16944. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  16945. }
  16946. /**
  16947. * Add a morph-to relationship condition to the query.
  16948. *
  16949. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16950. * @param \Illuminate\Database\Eloquent\Model|string $model
  16951. * @return \Illuminate\Database\Eloquent\Builder|static
  16952. * @static
  16953. */
  16954. public static function whereMorphedTo($relation, $model, $boolean = 'and')
  16955. {
  16956. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16957. return $instance->whereMorphedTo($relation, $model, $boolean);
  16958. }
  16959. /**
  16960. * Add a morph-to relationship condition to the query with an "or where" clause.
  16961. *
  16962. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16963. * @param \Illuminate\Database\Eloquent\Model|string $model
  16964. * @return \Illuminate\Database\Eloquent\Builder|static
  16965. * @static
  16966. */
  16967. public static function orWhereMorphedTo($relation, $model)
  16968. {
  16969. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16970. return $instance->orWhereMorphedTo($relation, $model);
  16971. }
  16972. /**
  16973. * Add a "belongs to" relationship where clause to the query.
  16974. *
  16975. * @param \Illuminate\Database\Eloquent\Model $related
  16976. * @param string $relationship
  16977. * @param string $boolean
  16978. * @return \Illuminate\Database\Eloquent\Builder|static
  16979. * @throws \RuntimeException
  16980. * @static
  16981. */
  16982. public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  16983. {
  16984. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16985. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  16986. }
  16987. /**
  16988. * Add an "BelongsTo" relationship with an "or where" clause to the query.
  16989. *
  16990. * @param \Illuminate\Database\Eloquent\Model $related
  16991. * @param string $relationship
  16992. * @return \Illuminate\Database\Eloquent\Builder|static
  16993. * @throws \RuntimeException
  16994. * @static
  16995. */
  16996. public static function orWhereBelongsTo($related, $relationshipName = null)
  16997. {
  16998. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16999. return $instance->orWhereBelongsTo($related, $relationshipName);
  17000. }
  17001. /**
  17002. * Add subselect queries to include an aggregate value for a relationship.
  17003. *
  17004. * @param mixed $relations
  17005. * @param string $column
  17006. * @param string $function
  17007. * @return \Illuminate\Database\Eloquent\Builder|static
  17008. * @static
  17009. */
  17010. public static function withAggregate($relations, $column, $function = null)
  17011. {
  17012. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17013. return $instance->withAggregate($relations, $column, $function);
  17014. }
  17015. /**
  17016. * Add subselect queries to count the relations.
  17017. *
  17018. * @param mixed $relations
  17019. * @return \Illuminate\Database\Eloquent\Builder|static
  17020. * @static
  17021. */
  17022. public static function withCount($relations)
  17023. {
  17024. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17025. return $instance->withCount($relations);
  17026. }
  17027. /**
  17028. * Add subselect queries to include the max of the relation's column.
  17029. *
  17030. * @param string|array $relation
  17031. * @param string $column
  17032. * @return \Illuminate\Database\Eloquent\Builder|static
  17033. * @static
  17034. */
  17035. public static function withMax($relation, $column)
  17036. {
  17037. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17038. return $instance->withMax($relation, $column);
  17039. }
  17040. /**
  17041. * Add subselect queries to include the min of the relation's column.
  17042. *
  17043. * @param string|array $relation
  17044. * @param string $column
  17045. * @return \Illuminate\Database\Eloquent\Builder|static
  17046. * @static
  17047. */
  17048. public static function withMin($relation, $column)
  17049. {
  17050. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17051. return $instance->withMin($relation, $column);
  17052. }
  17053. /**
  17054. * Add subselect queries to include the sum of the relation's column.
  17055. *
  17056. * @param string|array $relation
  17057. * @param string $column
  17058. * @return \Illuminate\Database\Eloquent\Builder|static
  17059. * @static
  17060. */
  17061. public static function withSum($relation, $column)
  17062. {
  17063. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17064. return $instance->withSum($relation, $column);
  17065. }
  17066. /**
  17067. * Add subselect queries to include the average of the relation's column.
  17068. *
  17069. * @param string|array $relation
  17070. * @param string $column
  17071. * @return \Illuminate\Database\Eloquent\Builder|static
  17072. * @static
  17073. */
  17074. public static function withAvg($relation, $column)
  17075. {
  17076. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17077. return $instance->withAvg($relation, $column);
  17078. }
  17079. /**
  17080. * Add subselect queries to include the existence of related models.
  17081. *
  17082. * @param string|array $relation
  17083. * @return \Illuminate\Database\Eloquent\Builder|static
  17084. * @static
  17085. */
  17086. public static function withExists($relation)
  17087. {
  17088. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17089. return $instance->withExists($relation);
  17090. }
  17091. /**
  17092. * Merge the where constraints from another query to the current query.
  17093. *
  17094. * @param \Illuminate\Database\Eloquent\Builder $from
  17095. * @return \Illuminate\Database\Eloquent\Builder|static
  17096. * @static
  17097. */
  17098. public static function mergeConstraintsFrom($from)
  17099. {
  17100. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17101. return $instance->mergeConstraintsFrom($from);
  17102. }
  17103. /**
  17104. * Chunk the results of the query.
  17105. *
  17106. * @param int $count
  17107. * @param callable $callback
  17108. * @return bool
  17109. * @static
  17110. */
  17111. public static function chunk($count, $callback)
  17112. {
  17113. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17114. return $instance->chunk($count, $callback);
  17115. }
  17116. /**
  17117. * Run a map over each item while chunking.
  17118. *
  17119. * @param callable $callback
  17120. * @param int $count
  17121. * @return \Illuminate\Support\Collection
  17122. * @static
  17123. */
  17124. public static function chunkMap($callback, $count = 1000)
  17125. {
  17126. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17127. return $instance->chunkMap($callback, $count);
  17128. }
  17129. /**
  17130. * Execute a callback over each item while chunking.
  17131. *
  17132. * @param callable $callback
  17133. * @param int $count
  17134. * @return bool
  17135. * @throws \RuntimeException
  17136. * @static
  17137. */
  17138. public static function each($callback, $count = 1000)
  17139. {
  17140. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17141. return $instance->each($callback, $count);
  17142. }
  17143. /**
  17144. * Chunk the results of a query by comparing IDs.
  17145. *
  17146. * @param int $count
  17147. * @param callable $callback
  17148. * @param string|null $column
  17149. * @param string|null $alias
  17150. * @return bool
  17151. * @static
  17152. */
  17153. public static function chunkById($count, $callback, $column = null, $alias = null)
  17154. {
  17155. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17156. return $instance->chunkById($count, $callback, $column, $alias);
  17157. }
  17158. /**
  17159. * Execute a callback over each item while chunking by ID.
  17160. *
  17161. * @param callable $callback
  17162. * @param int $count
  17163. * @param string|null $column
  17164. * @param string|null $alias
  17165. * @return bool
  17166. * @static
  17167. */
  17168. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  17169. {
  17170. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17171. return $instance->eachById($callback, $count, $column, $alias);
  17172. }
  17173. /**
  17174. * Query lazily, by chunks of the given size.
  17175. *
  17176. * @param int $chunkSize
  17177. * @return \Illuminate\Support\LazyCollection
  17178. * @throws \InvalidArgumentException
  17179. * @static
  17180. */
  17181. public static function lazy($chunkSize = 1000)
  17182. {
  17183. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17184. return $instance->lazy($chunkSize);
  17185. }
  17186. /**
  17187. * Query lazily, by chunking the results of a query by comparing IDs.
  17188. *
  17189. * @param int $chunkSize
  17190. * @param string|null $column
  17191. * @param string|null $alias
  17192. * @return \Illuminate\Support\LazyCollection
  17193. * @throws \InvalidArgumentException
  17194. * @static
  17195. */
  17196. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  17197. {
  17198. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17199. return $instance->lazyById($chunkSize, $column, $alias);
  17200. }
  17201. /**
  17202. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  17203. *
  17204. * @param int $chunkSize
  17205. * @param string|null $column
  17206. * @param string|null $alias
  17207. * @return \Illuminate\Support\LazyCollection
  17208. * @throws \InvalidArgumentException
  17209. * @static
  17210. */
  17211. public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  17212. {
  17213. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17214. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  17215. }
  17216. /**
  17217. * Execute the query and get the first result.
  17218. *
  17219. * @param array|string $columns
  17220. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  17221. * @static
  17222. */
  17223. public static function first($columns = [])
  17224. {
  17225. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17226. return $instance->first($columns);
  17227. }
  17228. /**
  17229. * Execute the query and get the first result if it's the sole matching record.
  17230. *
  17231. * @param array|string $columns
  17232. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  17233. * @throws \Illuminate\Database\RecordsNotFoundException
  17234. * @throws \Illuminate\Database\MultipleRecordsFoundException
  17235. * @static
  17236. */
  17237. public static function baseSole($columns = [])
  17238. {
  17239. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17240. return $instance->baseSole($columns);
  17241. }
  17242. /**
  17243. * Pass the query to a given callback.
  17244. *
  17245. * @param callable $callback
  17246. * @return $this|mixed
  17247. * @static
  17248. */
  17249. public static function tap($callback)
  17250. {
  17251. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17252. return $instance->tap($callback);
  17253. }
  17254. /**
  17255. * Apply the callback if the given "value" is truthy.
  17256. *
  17257. * @param mixed $value
  17258. * @param callable $callback
  17259. * @param callable|null $default
  17260. * @return $this|mixed
  17261. * @static
  17262. */
  17263. public static function when($value, $callback, $default = null)
  17264. {
  17265. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17266. return $instance->when($value, $callback, $default);
  17267. }
  17268. /**
  17269. * Apply the callback if the given "value" is falsy.
  17270. *
  17271. * @param mixed $value
  17272. * @param callable $callback
  17273. * @param callable|null $default
  17274. * @return $this|mixed
  17275. * @static
  17276. */
  17277. public static function unless($value, $callback, $default = null)
  17278. {
  17279. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17280. return $instance->unless($value, $callback, $default);
  17281. }
  17282. /**
  17283. * Set the columns to be selected.
  17284. *
  17285. * @param array|mixed $columns
  17286. * @return \Illuminate\Database\Query\Builder
  17287. * @static
  17288. */
  17289. public static function select($columns = [])
  17290. {
  17291. /** @var \Illuminate\Database\Query\Builder $instance */
  17292. return $instance->select($columns);
  17293. }
  17294. /**
  17295. * Add a subselect expression to the query.
  17296. *
  17297. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17298. * @param string $as
  17299. * @return \Illuminate\Database\Query\Builder
  17300. * @throws \InvalidArgumentException
  17301. * @static
  17302. */
  17303. public static function selectSub($query, $as)
  17304. {
  17305. /** @var \Illuminate\Database\Query\Builder $instance */
  17306. return $instance->selectSub($query, $as);
  17307. }
  17308. /**
  17309. * Add a new "raw" select expression to the query.
  17310. *
  17311. * @param string $expression
  17312. * @param array $bindings
  17313. * @return \Illuminate\Database\Query\Builder
  17314. * @static
  17315. */
  17316. public static function selectRaw($expression, $bindings = [])
  17317. {
  17318. /** @var \Illuminate\Database\Query\Builder $instance */
  17319. return $instance->selectRaw($expression, $bindings);
  17320. }
  17321. /**
  17322. * Makes "from" fetch from a subquery.
  17323. *
  17324. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17325. * @param string $as
  17326. * @return \Illuminate\Database\Query\Builder
  17327. * @throws \InvalidArgumentException
  17328. * @static
  17329. */
  17330. public static function fromSub($query, $as)
  17331. {
  17332. /** @var \Illuminate\Database\Query\Builder $instance */
  17333. return $instance->fromSub($query, $as);
  17334. }
  17335. /**
  17336. * Add a raw from clause to the query.
  17337. *
  17338. * @param string $expression
  17339. * @param mixed $bindings
  17340. * @return \Illuminate\Database\Query\Builder
  17341. * @static
  17342. */
  17343. public static function fromRaw($expression, $bindings = [])
  17344. {
  17345. /** @var \Illuminate\Database\Query\Builder $instance */
  17346. return $instance->fromRaw($expression, $bindings);
  17347. }
  17348. /**
  17349. * Add a new select column to the query.
  17350. *
  17351. * @param array|mixed $column
  17352. * @return \Illuminate\Database\Query\Builder
  17353. * @static
  17354. */
  17355. public static function addSelect($column)
  17356. {
  17357. /** @var \Illuminate\Database\Query\Builder $instance */
  17358. return $instance->addSelect($column);
  17359. }
  17360. /**
  17361. * Force the query to only return distinct results.
  17362. *
  17363. * @param mixed $distinct
  17364. * @return \Illuminate\Database\Query\Builder
  17365. * @static
  17366. */
  17367. public static function distinct()
  17368. {
  17369. /** @var \Illuminate\Database\Query\Builder $instance */
  17370. return $instance->distinct();
  17371. }
  17372. /**
  17373. * Set the table which the query is targeting.
  17374. *
  17375. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  17376. * @param string|null $as
  17377. * @return \Illuminate\Database\Query\Builder
  17378. * @static
  17379. */
  17380. public static function from($table, $as = null)
  17381. {
  17382. /** @var \Illuminate\Database\Query\Builder $instance */
  17383. return $instance->from($table, $as);
  17384. }
  17385. /**
  17386. * Add a join clause to the query.
  17387. *
  17388. * @param string $table
  17389. * @param \Closure|string $first
  17390. * @param string|null $operator
  17391. * @param string|null $second
  17392. * @param string $type
  17393. * @param bool $where
  17394. * @return \Illuminate\Database\Query\Builder
  17395. * @static
  17396. */
  17397. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  17398. {
  17399. /** @var \Illuminate\Database\Query\Builder $instance */
  17400. return $instance->join($table, $first, $operator, $second, $type, $where);
  17401. }
  17402. /**
  17403. * Add a "join where" clause to the query.
  17404. *
  17405. * @param string $table
  17406. * @param \Closure|string $first
  17407. * @param string $operator
  17408. * @param string $second
  17409. * @param string $type
  17410. * @return \Illuminate\Database\Query\Builder
  17411. * @static
  17412. */
  17413. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  17414. {
  17415. /** @var \Illuminate\Database\Query\Builder $instance */
  17416. return $instance->joinWhere($table, $first, $operator, $second, $type);
  17417. }
  17418. /**
  17419. * Add a subquery join clause to the query.
  17420. *
  17421. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17422. * @param string $as
  17423. * @param \Closure|string $first
  17424. * @param string|null $operator
  17425. * @param string|null $second
  17426. * @param string $type
  17427. * @param bool $where
  17428. * @return \Illuminate\Database\Query\Builder
  17429. * @throws \InvalidArgumentException
  17430. * @static
  17431. */
  17432. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  17433. {
  17434. /** @var \Illuminate\Database\Query\Builder $instance */
  17435. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  17436. }
  17437. /**
  17438. * Add a left join to the query.
  17439. *
  17440. * @param string $table
  17441. * @param \Closure|string $first
  17442. * @param string|null $operator
  17443. * @param string|null $second
  17444. * @return \Illuminate\Database\Query\Builder
  17445. * @static
  17446. */
  17447. public static function leftJoin($table, $first, $operator = null, $second = null)
  17448. {
  17449. /** @var \Illuminate\Database\Query\Builder $instance */
  17450. return $instance->leftJoin($table, $first, $operator, $second);
  17451. }
  17452. /**
  17453. * Add a "join where" clause to the query.
  17454. *
  17455. * @param string $table
  17456. * @param \Closure|string $first
  17457. * @param string $operator
  17458. * @param string $second
  17459. * @return \Illuminate\Database\Query\Builder
  17460. * @static
  17461. */
  17462. public static function leftJoinWhere($table, $first, $operator, $second)
  17463. {
  17464. /** @var \Illuminate\Database\Query\Builder $instance */
  17465. return $instance->leftJoinWhere($table, $first, $operator, $second);
  17466. }
  17467. /**
  17468. * Add a subquery left join to the query.
  17469. *
  17470. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17471. * @param string $as
  17472. * @param \Closure|string $first
  17473. * @param string|null $operator
  17474. * @param string|null $second
  17475. * @return \Illuminate\Database\Query\Builder
  17476. * @static
  17477. */
  17478. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  17479. {
  17480. /** @var \Illuminate\Database\Query\Builder $instance */
  17481. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  17482. }
  17483. /**
  17484. * Add a right join to the query.
  17485. *
  17486. * @param string $table
  17487. * @param \Closure|string $first
  17488. * @param string|null $operator
  17489. * @param string|null $second
  17490. * @return \Illuminate\Database\Query\Builder
  17491. * @static
  17492. */
  17493. public static function rightJoin($table, $first, $operator = null, $second = null)
  17494. {
  17495. /** @var \Illuminate\Database\Query\Builder $instance */
  17496. return $instance->rightJoin($table, $first, $operator, $second);
  17497. }
  17498. /**
  17499. * Add a "right join where" clause to the query.
  17500. *
  17501. * @param string $table
  17502. * @param \Closure|string $first
  17503. * @param string $operator
  17504. * @param string $second
  17505. * @return \Illuminate\Database\Query\Builder
  17506. * @static
  17507. */
  17508. public static function rightJoinWhere($table, $first, $operator, $second)
  17509. {
  17510. /** @var \Illuminate\Database\Query\Builder $instance */
  17511. return $instance->rightJoinWhere($table, $first, $operator, $second);
  17512. }
  17513. /**
  17514. * Add a subquery right join to the query.
  17515. *
  17516. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17517. * @param string $as
  17518. * @param \Closure|string $first
  17519. * @param string|null $operator
  17520. * @param string|null $second
  17521. * @return \Illuminate\Database\Query\Builder
  17522. * @static
  17523. */
  17524. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  17525. {
  17526. /** @var \Illuminate\Database\Query\Builder $instance */
  17527. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  17528. }
  17529. /**
  17530. * Add a "cross join" clause to the query.
  17531. *
  17532. * @param string $table
  17533. * @param \Closure|string|null $first
  17534. * @param string|null $operator
  17535. * @param string|null $second
  17536. * @return \Illuminate\Database\Query\Builder
  17537. * @static
  17538. */
  17539. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  17540. {
  17541. /** @var \Illuminate\Database\Query\Builder $instance */
  17542. return $instance->crossJoin($table, $first, $operator, $second);
  17543. }
  17544. /**
  17545. * Add a subquery cross join to the query.
  17546. *
  17547. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17548. * @param string $as
  17549. * @return \Illuminate\Database\Query\Builder
  17550. * @static
  17551. */
  17552. public static function crossJoinSub($query, $as)
  17553. {
  17554. /** @var \Illuminate\Database\Query\Builder $instance */
  17555. return $instance->crossJoinSub($query, $as);
  17556. }
  17557. /**
  17558. * Merge an array of where clauses and bindings.
  17559. *
  17560. * @param array $wheres
  17561. * @param array $bindings
  17562. * @return void
  17563. * @static
  17564. */
  17565. public static function mergeWheres($wheres, $bindings)
  17566. {
  17567. /** @var \Illuminate\Database\Query\Builder $instance */
  17568. $instance->mergeWheres($wheres, $bindings);
  17569. }
  17570. /**
  17571. * Prepare the value and operator for a where clause.
  17572. *
  17573. * @param string $value
  17574. * @param string $operator
  17575. * @param bool $useDefault
  17576. * @return array
  17577. * @throws \InvalidArgumentException
  17578. * @static
  17579. */
  17580. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  17581. {
  17582. /** @var \Illuminate\Database\Query\Builder $instance */
  17583. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  17584. }
  17585. /**
  17586. * Add a "where" clause comparing two columns to the query.
  17587. *
  17588. * @param string|array $first
  17589. * @param string|null $operator
  17590. * @param string|null $second
  17591. * @param string|null $boolean
  17592. * @return \Illuminate\Database\Query\Builder
  17593. * @static
  17594. */
  17595. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  17596. {
  17597. /** @var \Illuminate\Database\Query\Builder $instance */
  17598. return $instance->whereColumn($first, $operator, $second, $boolean);
  17599. }
  17600. /**
  17601. * Add an "or where" clause comparing two columns to the query.
  17602. *
  17603. * @param string|array $first
  17604. * @param string|null $operator
  17605. * @param string|null $second
  17606. * @return \Illuminate\Database\Query\Builder
  17607. * @static
  17608. */
  17609. public static function orWhereColumn($first, $operator = null, $second = null)
  17610. {
  17611. /** @var \Illuminate\Database\Query\Builder $instance */
  17612. return $instance->orWhereColumn($first, $operator, $second);
  17613. }
  17614. /**
  17615. * Add a raw where clause to the query.
  17616. *
  17617. * @param string $sql
  17618. * @param mixed $bindings
  17619. * @param string $boolean
  17620. * @return \Illuminate\Database\Query\Builder
  17621. * @static
  17622. */
  17623. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  17624. {
  17625. /** @var \Illuminate\Database\Query\Builder $instance */
  17626. return $instance->whereRaw($sql, $bindings, $boolean);
  17627. }
  17628. /**
  17629. * Add a raw or where clause to the query.
  17630. *
  17631. * @param string $sql
  17632. * @param mixed $bindings
  17633. * @return \Illuminate\Database\Query\Builder
  17634. * @static
  17635. */
  17636. public static function orWhereRaw($sql, $bindings = [])
  17637. {
  17638. /** @var \Illuminate\Database\Query\Builder $instance */
  17639. return $instance->orWhereRaw($sql, $bindings);
  17640. }
  17641. /**
  17642. * Add a "where in" clause to the query.
  17643. *
  17644. * @param string $column
  17645. * @param mixed $values
  17646. * @param string $boolean
  17647. * @param bool $not
  17648. * @return \Illuminate\Database\Query\Builder
  17649. * @static
  17650. */
  17651. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  17652. {
  17653. /** @var \Illuminate\Database\Query\Builder $instance */
  17654. return $instance->whereIn($column, $values, $boolean, $not);
  17655. }
  17656. /**
  17657. * Add an "or where in" clause to the query.
  17658. *
  17659. * @param string $column
  17660. * @param mixed $values
  17661. * @return \Illuminate\Database\Query\Builder
  17662. * @static
  17663. */
  17664. public static function orWhereIn($column, $values)
  17665. {
  17666. /** @var \Illuminate\Database\Query\Builder $instance */
  17667. return $instance->orWhereIn($column, $values);
  17668. }
  17669. /**
  17670. * Add a "where not in" clause to the query.
  17671. *
  17672. * @param string $column
  17673. * @param mixed $values
  17674. * @param string $boolean
  17675. * @return \Illuminate\Database\Query\Builder
  17676. * @static
  17677. */
  17678. public static function whereNotIn($column, $values, $boolean = 'and')
  17679. {
  17680. /** @var \Illuminate\Database\Query\Builder $instance */
  17681. return $instance->whereNotIn($column, $values, $boolean);
  17682. }
  17683. /**
  17684. * Add an "or where not in" clause to the query.
  17685. *
  17686. * @param string $column
  17687. * @param mixed $values
  17688. * @return \Illuminate\Database\Query\Builder
  17689. * @static
  17690. */
  17691. public static function orWhereNotIn($column, $values)
  17692. {
  17693. /** @var \Illuminate\Database\Query\Builder $instance */
  17694. return $instance->orWhereNotIn($column, $values);
  17695. }
  17696. /**
  17697. * Add a "where in raw" clause for integer values to the query.
  17698. *
  17699. * @param string $column
  17700. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  17701. * @param string $boolean
  17702. * @param bool $not
  17703. * @return \Illuminate\Database\Query\Builder
  17704. * @static
  17705. */
  17706. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  17707. {
  17708. /** @var \Illuminate\Database\Query\Builder $instance */
  17709. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  17710. }
  17711. /**
  17712. * Add an "or where in raw" clause for integer values to the query.
  17713. *
  17714. * @param string $column
  17715. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  17716. * @return \Illuminate\Database\Query\Builder
  17717. * @static
  17718. */
  17719. public static function orWhereIntegerInRaw($column, $values)
  17720. {
  17721. /** @var \Illuminate\Database\Query\Builder $instance */
  17722. return $instance->orWhereIntegerInRaw($column, $values);
  17723. }
  17724. /**
  17725. * Add a "where not in raw" clause for integer values to the query.
  17726. *
  17727. * @param string $column
  17728. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  17729. * @param string $boolean
  17730. * @return \Illuminate\Database\Query\Builder
  17731. * @static
  17732. */
  17733. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  17734. {
  17735. /** @var \Illuminate\Database\Query\Builder $instance */
  17736. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  17737. }
  17738. /**
  17739. * Add an "or where not in raw" clause for integer values to the query.
  17740. *
  17741. * @param string $column
  17742. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  17743. * @return \Illuminate\Database\Query\Builder
  17744. * @static
  17745. */
  17746. public static function orWhereIntegerNotInRaw($column, $values)
  17747. {
  17748. /** @var \Illuminate\Database\Query\Builder $instance */
  17749. return $instance->orWhereIntegerNotInRaw($column, $values);
  17750. }
  17751. /**
  17752. * Add a "where null" clause to the query.
  17753. *
  17754. * @param string|array $columns
  17755. * @param string $boolean
  17756. * @param bool $not
  17757. * @return \Illuminate\Database\Query\Builder
  17758. * @static
  17759. */
  17760. public static function whereNull($columns, $boolean = 'and', $not = false)
  17761. {
  17762. /** @var \Illuminate\Database\Query\Builder $instance */
  17763. return $instance->whereNull($columns, $boolean, $not);
  17764. }
  17765. /**
  17766. * Add an "or where null" clause to the query.
  17767. *
  17768. * @param string|array $column
  17769. * @return \Illuminate\Database\Query\Builder
  17770. * @static
  17771. */
  17772. public static function orWhereNull($column)
  17773. {
  17774. /** @var \Illuminate\Database\Query\Builder $instance */
  17775. return $instance->orWhereNull($column);
  17776. }
  17777. /**
  17778. * Add a "where not null" clause to the query.
  17779. *
  17780. * @param string|array $columns
  17781. * @param string $boolean
  17782. * @return \Illuminate\Database\Query\Builder
  17783. * @static
  17784. */
  17785. public static function whereNotNull($columns, $boolean = 'and')
  17786. {
  17787. /** @var \Illuminate\Database\Query\Builder $instance */
  17788. return $instance->whereNotNull($columns, $boolean);
  17789. }
  17790. /**
  17791. * Add a where between statement to the query.
  17792. *
  17793. * @param string|\Illuminate\Database\Query\Expression $column
  17794. * @param array $values
  17795. * @param string $boolean
  17796. * @param bool $not
  17797. * @return \Illuminate\Database\Query\Builder
  17798. * @static
  17799. */
  17800. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  17801. {
  17802. /** @var \Illuminate\Database\Query\Builder $instance */
  17803. return $instance->whereBetween($column, $values, $boolean, $not);
  17804. }
  17805. /**
  17806. * Add a where between statement using columns to the query.
  17807. *
  17808. * @param string $column
  17809. * @param array $values
  17810. * @param string $boolean
  17811. * @param bool $not
  17812. * @return \Illuminate\Database\Query\Builder
  17813. * @static
  17814. */
  17815. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  17816. {
  17817. /** @var \Illuminate\Database\Query\Builder $instance */
  17818. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  17819. }
  17820. /**
  17821. * Add an or where between statement to the query.
  17822. *
  17823. * @param string $column
  17824. * @param array $values
  17825. * @return \Illuminate\Database\Query\Builder
  17826. * @static
  17827. */
  17828. public static function orWhereBetween($column, $values)
  17829. {
  17830. /** @var \Illuminate\Database\Query\Builder $instance */
  17831. return $instance->orWhereBetween($column, $values);
  17832. }
  17833. /**
  17834. * Add an or where between statement using columns to the query.
  17835. *
  17836. * @param string $column
  17837. * @param array $values
  17838. * @return \Illuminate\Database\Query\Builder
  17839. * @static
  17840. */
  17841. public static function orWhereBetweenColumns($column, $values)
  17842. {
  17843. /** @var \Illuminate\Database\Query\Builder $instance */
  17844. return $instance->orWhereBetweenColumns($column, $values);
  17845. }
  17846. /**
  17847. * Add a where not between statement to the query.
  17848. *
  17849. * @param string $column
  17850. * @param array $values
  17851. * @param string $boolean
  17852. * @return \Illuminate\Database\Query\Builder
  17853. * @static
  17854. */
  17855. public static function whereNotBetween($column, $values, $boolean = 'and')
  17856. {
  17857. /** @var \Illuminate\Database\Query\Builder $instance */
  17858. return $instance->whereNotBetween($column, $values, $boolean);
  17859. }
  17860. /**
  17861. * Add a where not between statement using columns to the query.
  17862. *
  17863. * @param string $column
  17864. * @param array $values
  17865. * @param string $boolean
  17866. * @return \Illuminate\Database\Query\Builder
  17867. * @static
  17868. */
  17869. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  17870. {
  17871. /** @var \Illuminate\Database\Query\Builder $instance */
  17872. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  17873. }
  17874. /**
  17875. * Add an or where not between statement to the query.
  17876. *
  17877. * @param string $column
  17878. * @param array $values
  17879. * @return \Illuminate\Database\Query\Builder
  17880. * @static
  17881. */
  17882. public static function orWhereNotBetween($column, $values)
  17883. {
  17884. /** @var \Illuminate\Database\Query\Builder $instance */
  17885. return $instance->orWhereNotBetween($column, $values);
  17886. }
  17887. /**
  17888. * Add an or where not between statement using columns to the query.
  17889. *
  17890. * @param string $column
  17891. * @param array $values
  17892. * @return \Illuminate\Database\Query\Builder
  17893. * @static
  17894. */
  17895. public static function orWhereNotBetweenColumns($column, $values)
  17896. {
  17897. /** @var \Illuminate\Database\Query\Builder $instance */
  17898. return $instance->orWhereNotBetweenColumns($column, $values);
  17899. }
  17900. /**
  17901. * Add an "or where not null" clause to the query.
  17902. *
  17903. * @param string $column
  17904. * @return \Illuminate\Database\Query\Builder
  17905. * @static
  17906. */
  17907. public static function orWhereNotNull($column)
  17908. {
  17909. /** @var \Illuminate\Database\Query\Builder $instance */
  17910. return $instance->orWhereNotNull($column);
  17911. }
  17912. /**
  17913. * Add a "where date" statement to the query.
  17914. *
  17915. * @param \Illuminate\Database\Query\Expression|string $column
  17916. * @param string $operator
  17917. * @param \DateTimeInterface|string|null $value
  17918. * @param string $boolean
  17919. * @return \Illuminate\Database\Query\Builder
  17920. * @static
  17921. */
  17922. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  17923. {
  17924. /** @var \Illuminate\Database\Query\Builder $instance */
  17925. return $instance->whereDate($column, $operator, $value, $boolean);
  17926. }
  17927. /**
  17928. * Add an "or where date" statement to the query.
  17929. *
  17930. * @param string $column
  17931. * @param string $operator
  17932. * @param \DateTimeInterface|string|null $value
  17933. * @return \Illuminate\Database\Query\Builder
  17934. * @static
  17935. */
  17936. public static function orWhereDate($column, $operator, $value = null)
  17937. {
  17938. /** @var \Illuminate\Database\Query\Builder $instance */
  17939. return $instance->orWhereDate($column, $operator, $value);
  17940. }
  17941. /**
  17942. * Add a "where time" statement to the query.
  17943. *
  17944. * @param string $column
  17945. * @param string $operator
  17946. * @param \DateTimeInterface|string|null $value
  17947. * @param string $boolean
  17948. * @return \Illuminate\Database\Query\Builder
  17949. * @static
  17950. */
  17951. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  17952. {
  17953. /** @var \Illuminate\Database\Query\Builder $instance */
  17954. return $instance->whereTime($column, $operator, $value, $boolean);
  17955. }
  17956. /**
  17957. * Add an "or where time" statement to the query.
  17958. *
  17959. * @param string $column
  17960. * @param string $operator
  17961. * @param \DateTimeInterface|string|null $value
  17962. * @return \Illuminate\Database\Query\Builder
  17963. * @static
  17964. */
  17965. public static function orWhereTime($column, $operator, $value = null)
  17966. {
  17967. /** @var \Illuminate\Database\Query\Builder $instance */
  17968. return $instance->orWhereTime($column, $operator, $value);
  17969. }
  17970. /**
  17971. * Add a "where day" statement to the query.
  17972. *
  17973. * @param string $column
  17974. * @param string $operator
  17975. * @param \DateTimeInterface|string|null $value
  17976. * @param string $boolean
  17977. * @return \Illuminate\Database\Query\Builder
  17978. * @static
  17979. */
  17980. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  17981. {
  17982. /** @var \Illuminate\Database\Query\Builder $instance */
  17983. return $instance->whereDay($column, $operator, $value, $boolean);
  17984. }
  17985. /**
  17986. * Add an "or where day" statement to the query.
  17987. *
  17988. * @param string $column
  17989. * @param string $operator
  17990. * @param \DateTimeInterface|string|null $value
  17991. * @return \Illuminate\Database\Query\Builder
  17992. * @static
  17993. */
  17994. public static function orWhereDay($column, $operator, $value = null)
  17995. {
  17996. /** @var \Illuminate\Database\Query\Builder $instance */
  17997. return $instance->orWhereDay($column, $operator, $value);
  17998. }
  17999. /**
  18000. * Add a "where month" statement to the query.
  18001. *
  18002. * @param string $column
  18003. * @param string $operator
  18004. * @param \DateTimeInterface|string|null $value
  18005. * @param string $boolean
  18006. * @return \Illuminate\Database\Query\Builder
  18007. * @static
  18008. */
  18009. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  18010. {
  18011. /** @var \Illuminate\Database\Query\Builder $instance */
  18012. return $instance->whereMonth($column, $operator, $value, $boolean);
  18013. }
  18014. /**
  18015. * Add an "or where month" statement to the query.
  18016. *
  18017. * @param string $column
  18018. * @param string $operator
  18019. * @param \DateTimeInterface|string|null $value
  18020. * @return \Illuminate\Database\Query\Builder
  18021. * @static
  18022. */
  18023. public static function orWhereMonth($column, $operator, $value = null)
  18024. {
  18025. /** @var \Illuminate\Database\Query\Builder $instance */
  18026. return $instance->orWhereMonth($column, $operator, $value);
  18027. }
  18028. /**
  18029. * Add a "where year" statement to the query.
  18030. *
  18031. * @param string $column
  18032. * @param string $operator
  18033. * @param \DateTimeInterface|string|int|null $value
  18034. * @param string $boolean
  18035. * @return \Illuminate\Database\Query\Builder
  18036. * @static
  18037. */
  18038. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  18039. {
  18040. /** @var \Illuminate\Database\Query\Builder $instance */
  18041. return $instance->whereYear($column, $operator, $value, $boolean);
  18042. }
  18043. /**
  18044. * Add an "or where year" statement to the query.
  18045. *
  18046. * @param string $column
  18047. * @param string $operator
  18048. * @param \DateTimeInterface|string|int|null $value
  18049. * @return \Illuminate\Database\Query\Builder
  18050. * @static
  18051. */
  18052. public static function orWhereYear($column, $operator, $value = null)
  18053. {
  18054. /** @var \Illuminate\Database\Query\Builder $instance */
  18055. return $instance->orWhereYear($column, $operator, $value);
  18056. }
  18057. /**
  18058. * Add a nested where statement to the query.
  18059. *
  18060. * @param \Closure $callback
  18061. * @param string $boolean
  18062. * @return \Illuminate\Database\Query\Builder
  18063. * @static
  18064. */
  18065. public static function whereNested($callback, $boolean = 'and')
  18066. {
  18067. /** @var \Illuminate\Database\Query\Builder $instance */
  18068. return $instance->whereNested($callback, $boolean);
  18069. }
  18070. /**
  18071. * Create a new query instance for nested where condition.
  18072. *
  18073. * @return \Illuminate\Database\Query\Builder
  18074. * @static
  18075. */
  18076. public static function forNestedWhere()
  18077. {
  18078. /** @var \Illuminate\Database\Query\Builder $instance */
  18079. return $instance->forNestedWhere();
  18080. }
  18081. /**
  18082. * Add another query builder as a nested where to the query builder.
  18083. *
  18084. * @param \Illuminate\Database\Query\Builder $query
  18085. * @param string $boolean
  18086. * @return \Illuminate\Database\Query\Builder
  18087. * @static
  18088. */
  18089. public static function addNestedWhereQuery($query, $boolean = 'and')
  18090. {
  18091. /** @var \Illuminate\Database\Query\Builder $instance */
  18092. return $instance->addNestedWhereQuery($query, $boolean);
  18093. }
  18094. /**
  18095. * Add an exists clause to the query.
  18096. *
  18097. * @param \Closure $callback
  18098. * @param string $boolean
  18099. * @param bool $not
  18100. * @return \Illuminate\Database\Query\Builder
  18101. * @static
  18102. */
  18103. public static function whereExists($callback, $boolean = 'and', $not = false)
  18104. {
  18105. /** @var \Illuminate\Database\Query\Builder $instance */
  18106. return $instance->whereExists($callback, $boolean, $not);
  18107. }
  18108. /**
  18109. * Add an or exists clause to the query.
  18110. *
  18111. * @param \Closure $callback
  18112. * @param bool $not
  18113. * @return \Illuminate\Database\Query\Builder
  18114. * @static
  18115. */
  18116. public static function orWhereExists($callback, $not = false)
  18117. {
  18118. /** @var \Illuminate\Database\Query\Builder $instance */
  18119. return $instance->orWhereExists($callback, $not);
  18120. }
  18121. /**
  18122. * Add a where not exists clause to the query.
  18123. *
  18124. * @param \Closure $callback
  18125. * @param string $boolean
  18126. * @return \Illuminate\Database\Query\Builder
  18127. * @static
  18128. */
  18129. public static function whereNotExists($callback, $boolean = 'and')
  18130. {
  18131. /** @var \Illuminate\Database\Query\Builder $instance */
  18132. return $instance->whereNotExists($callback, $boolean);
  18133. }
  18134. /**
  18135. * Add a where not exists clause to the query.
  18136. *
  18137. * @param \Closure $callback
  18138. * @return \Illuminate\Database\Query\Builder
  18139. * @static
  18140. */
  18141. public static function orWhereNotExists($callback)
  18142. {
  18143. /** @var \Illuminate\Database\Query\Builder $instance */
  18144. return $instance->orWhereNotExists($callback);
  18145. }
  18146. /**
  18147. * Add an exists clause to the query.
  18148. *
  18149. * @param \Illuminate\Database\Query\Builder $query
  18150. * @param string $boolean
  18151. * @param bool $not
  18152. * @return \Illuminate\Database\Query\Builder
  18153. * @static
  18154. */
  18155. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  18156. {
  18157. /** @var \Illuminate\Database\Query\Builder $instance */
  18158. return $instance->addWhereExistsQuery($query, $boolean, $not);
  18159. }
  18160. /**
  18161. * Adds a where condition using row values.
  18162. *
  18163. * @param array $columns
  18164. * @param string $operator
  18165. * @param array $values
  18166. * @param string $boolean
  18167. * @return \Illuminate\Database\Query\Builder
  18168. * @throws \InvalidArgumentException
  18169. * @static
  18170. */
  18171. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  18172. {
  18173. /** @var \Illuminate\Database\Query\Builder $instance */
  18174. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  18175. }
  18176. /**
  18177. * Adds an or where condition using row values.
  18178. *
  18179. * @param array $columns
  18180. * @param string $operator
  18181. * @param array $values
  18182. * @return \Illuminate\Database\Query\Builder
  18183. * @static
  18184. */
  18185. public static function orWhereRowValues($columns, $operator, $values)
  18186. {
  18187. /** @var \Illuminate\Database\Query\Builder $instance */
  18188. return $instance->orWhereRowValues($columns, $operator, $values);
  18189. }
  18190. /**
  18191. * Add a "where JSON contains" clause to the query.
  18192. *
  18193. * @param string $column
  18194. * @param mixed $value
  18195. * @param string $boolean
  18196. * @param bool $not
  18197. * @return \Illuminate\Database\Query\Builder
  18198. * @static
  18199. */
  18200. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  18201. {
  18202. /** @var \Illuminate\Database\Query\Builder $instance */
  18203. return $instance->whereJsonContains($column, $value, $boolean, $not);
  18204. }
  18205. /**
  18206. * Add an "or where JSON contains" clause to the query.
  18207. *
  18208. * @param string $column
  18209. * @param mixed $value
  18210. * @return \Illuminate\Database\Query\Builder
  18211. * @static
  18212. */
  18213. public static function orWhereJsonContains($column, $value)
  18214. {
  18215. /** @var \Illuminate\Database\Query\Builder $instance */
  18216. return $instance->orWhereJsonContains($column, $value);
  18217. }
  18218. /**
  18219. * Add a "where JSON not contains" clause to the query.
  18220. *
  18221. * @param string $column
  18222. * @param mixed $value
  18223. * @param string $boolean
  18224. * @return \Illuminate\Database\Query\Builder
  18225. * @static
  18226. */
  18227. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  18228. {
  18229. /** @var \Illuminate\Database\Query\Builder $instance */
  18230. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  18231. }
  18232. /**
  18233. * Add an "or where JSON not contains" clause to the query.
  18234. *
  18235. * @param string $column
  18236. * @param mixed $value
  18237. * @return \Illuminate\Database\Query\Builder
  18238. * @static
  18239. */
  18240. public static function orWhereJsonDoesntContain($column, $value)
  18241. {
  18242. /** @var \Illuminate\Database\Query\Builder $instance */
  18243. return $instance->orWhereJsonDoesntContain($column, $value);
  18244. }
  18245. /**
  18246. * Add a "where JSON length" clause to the query.
  18247. *
  18248. * @param string $column
  18249. * @param mixed $operator
  18250. * @param mixed $value
  18251. * @param string $boolean
  18252. * @return \Illuminate\Database\Query\Builder
  18253. * @static
  18254. */
  18255. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  18256. {
  18257. /** @var \Illuminate\Database\Query\Builder $instance */
  18258. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  18259. }
  18260. /**
  18261. * Add an "or where JSON length" clause to the query.
  18262. *
  18263. * @param string $column
  18264. * @param mixed $operator
  18265. * @param mixed $value
  18266. * @return \Illuminate\Database\Query\Builder
  18267. * @static
  18268. */
  18269. public static function orWhereJsonLength($column, $operator, $value = null)
  18270. {
  18271. /** @var \Illuminate\Database\Query\Builder $instance */
  18272. return $instance->orWhereJsonLength($column, $operator, $value);
  18273. }
  18274. /**
  18275. * Handles dynamic "where" clauses to the query.
  18276. *
  18277. * @param string $method
  18278. * @param array $parameters
  18279. * @return \Illuminate\Database\Query\Builder
  18280. * @static
  18281. */
  18282. public static function dynamicWhere($method, $parameters)
  18283. {
  18284. /** @var \Illuminate\Database\Query\Builder $instance */
  18285. return $instance->dynamicWhere($method, $parameters);
  18286. }
  18287. /**
  18288. * Add a "where fulltext" clause to the query.
  18289. *
  18290. * @param string|string[] $columns
  18291. * @param string $value
  18292. * @param string $boolean
  18293. * @return \Illuminate\Database\Query\Builder
  18294. * @static
  18295. */
  18296. public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  18297. {
  18298. /** @var \Illuminate\Database\Query\Builder $instance */
  18299. return $instance->whereFullText($columns, $value, $options, $boolean);
  18300. }
  18301. /**
  18302. * Add a "or where fulltext" clause to the query.
  18303. *
  18304. * @param string|string[] $columns
  18305. * @param string $value
  18306. * @return \Illuminate\Database\Query\Builder
  18307. * @static
  18308. */
  18309. public static function orWhereFullText($columns, $value, $options = [])
  18310. {
  18311. /** @var \Illuminate\Database\Query\Builder $instance */
  18312. return $instance->orWhereFullText($columns, $value, $options);
  18313. }
  18314. /**
  18315. * Add a "group by" clause to the query.
  18316. *
  18317. * @param array|string $groups
  18318. * @return \Illuminate\Database\Query\Builder
  18319. * @static
  18320. */
  18321. public static function groupBy(...$groups)
  18322. {
  18323. /** @var \Illuminate\Database\Query\Builder $instance */
  18324. return $instance->groupBy(...$groups);
  18325. }
  18326. /**
  18327. * Add a raw groupBy clause to the query.
  18328. *
  18329. * @param string $sql
  18330. * @param array $bindings
  18331. * @return \Illuminate\Database\Query\Builder
  18332. * @static
  18333. */
  18334. public static function groupByRaw($sql, $bindings = [])
  18335. {
  18336. /** @var \Illuminate\Database\Query\Builder $instance */
  18337. return $instance->groupByRaw($sql, $bindings);
  18338. }
  18339. /**
  18340. * Add a "having" clause to the query.
  18341. *
  18342. * @param string $column
  18343. * @param string|null $operator
  18344. * @param string|null $value
  18345. * @param string $boolean
  18346. * @return \Illuminate\Database\Query\Builder
  18347. * @static
  18348. */
  18349. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  18350. {
  18351. /** @var \Illuminate\Database\Query\Builder $instance */
  18352. return $instance->having($column, $operator, $value, $boolean);
  18353. }
  18354. /**
  18355. * Add an "or having" clause to the query.
  18356. *
  18357. * @param string $column
  18358. * @param string|null $operator
  18359. * @param string|null $value
  18360. * @return \Illuminate\Database\Query\Builder
  18361. * @static
  18362. */
  18363. public static function orHaving($column, $operator = null, $value = null)
  18364. {
  18365. /** @var \Illuminate\Database\Query\Builder $instance */
  18366. return $instance->orHaving($column, $operator, $value);
  18367. }
  18368. /**
  18369. * Add a "having between " clause to the query.
  18370. *
  18371. * @param string $column
  18372. * @param array $values
  18373. * @param string $boolean
  18374. * @param bool $not
  18375. * @return \Illuminate\Database\Query\Builder
  18376. * @static
  18377. */
  18378. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  18379. {
  18380. /** @var \Illuminate\Database\Query\Builder $instance */
  18381. return $instance->havingBetween($column, $values, $boolean, $not);
  18382. }
  18383. /**
  18384. * Add a raw having clause to the query.
  18385. *
  18386. * @param string $sql
  18387. * @param array $bindings
  18388. * @param string $boolean
  18389. * @return \Illuminate\Database\Query\Builder
  18390. * @static
  18391. */
  18392. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  18393. {
  18394. /** @var \Illuminate\Database\Query\Builder $instance */
  18395. return $instance->havingRaw($sql, $bindings, $boolean);
  18396. }
  18397. /**
  18398. * Add a raw or having clause to the query.
  18399. *
  18400. * @param string $sql
  18401. * @param array $bindings
  18402. * @return \Illuminate\Database\Query\Builder
  18403. * @static
  18404. */
  18405. public static function orHavingRaw($sql, $bindings = [])
  18406. {
  18407. /** @var \Illuminate\Database\Query\Builder $instance */
  18408. return $instance->orHavingRaw($sql, $bindings);
  18409. }
  18410. /**
  18411. * Add an "order by" clause to the query.
  18412. *
  18413. * @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  18414. * @param string $direction
  18415. * @return \Illuminate\Database\Query\Builder
  18416. * @throws \InvalidArgumentException
  18417. * @static
  18418. */
  18419. public static function orderBy($column, $direction = 'asc')
  18420. {
  18421. /** @var \Illuminate\Database\Query\Builder $instance */
  18422. return $instance->orderBy($column, $direction);
  18423. }
  18424. /**
  18425. * Add a descending "order by" clause to the query.
  18426. *
  18427. * @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  18428. * @return \Illuminate\Database\Query\Builder
  18429. * @static
  18430. */
  18431. public static function orderByDesc($column)
  18432. {
  18433. /** @var \Illuminate\Database\Query\Builder $instance */
  18434. return $instance->orderByDesc($column);
  18435. }
  18436. /**
  18437. * Put the query's results in random order.
  18438. *
  18439. * @param string $seed
  18440. * @return \Illuminate\Database\Query\Builder
  18441. * @static
  18442. */
  18443. public static function inRandomOrder($seed = '')
  18444. {
  18445. /** @var \Illuminate\Database\Query\Builder $instance */
  18446. return $instance->inRandomOrder($seed);
  18447. }
  18448. /**
  18449. * Add a raw "order by" clause to the query.
  18450. *
  18451. * @param string $sql
  18452. * @param array $bindings
  18453. * @return \Illuminate\Database\Query\Builder
  18454. * @static
  18455. */
  18456. public static function orderByRaw($sql, $bindings = [])
  18457. {
  18458. /** @var \Illuminate\Database\Query\Builder $instance */
  18459. return $instance->orderByRaw($sql, $bindings);
  18460. }
  18461. /**
  18462. * Alias to set the "offset" value of the query.
  18463. *
  18464. * @param int $value
  18465. * @return \Illuminate\Database\Query\Builder
  18466. * @static
  18467. */
  18468. public static function skip($value)
  18469. {
  18470. /** @var \Illuminate\Database\Query\Builder $instance */
  18471. return $instance->skip($value);
  18472. }
  18473. /**
  18474. * Set the "offset" value of the query.
  18475. *
  18476. * @param int $value
  18477. * @return \Illuminate\Database\Query\Builder
  18478. * @static
  18479. */
  18480. public static function offset($value)
  18481. {
  18482. /** @var \Illuminate\Database\Query\Builder $instance */
  18483. return $instance->offset($value);
  18484. }
  18485. /**
  18486. * Alias to set the "limit" value of the query.
  18487. *
  18488. * @param int $value
  18489. * @return \Illuminate\Database\Query\Builder
  18490. * @static
  18491. */
  18492. public static function take($value)
  18493. {
  18494. /** @var \Illuminate\Database\Query\Builder $instance */
  18495. return $instance->take($value);
  18496. }
  18497. /**
  18498. * Set the "limit" value of the query.
  18499. *
  18500. * @param int $value
  18501. * @return \Illuminate\Database\Query\Builder
  18502. * @static
  18503. */
  18504. public static function limit($value)
  18505. {
  18506. /** @var \Illuminate\Database\Query\Builder $instance */
  18507. return $instance->limit($value);
  18508. }
  18509. /**
  18510. * Set the limit and offset for a given page.
  18511. *
  18512. * @param int $page
  18513. * @param int $perPage
  18514. * @return \Illuminate\Database\Query\Builder
  18515. * @static
  18516. */
  18517. public static function forPage($page, $perPage = 15)
  18518. {
  18519. /** @var \Illuminate\Database\Query\Builder $instance */
  18520. return $instance->forPage($page, $perPage);
  18521. }
  18522. /**
  18523. * Constrain the query to the previous "page" of results before a given ID.
  18524. *
  18525. * @param int $perPage
  18526. * @param int|null $lastId
  18527. * @param string $column
  18528. * @return \Illuminate\Database\Query\Builder
  18529. * @static
  18530. */
  18531. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  18532. {
  18533. /** @var \Illuminate\Database\Query\Builder $instance */
  18534. return $instance->forPageBeforeId($perPage, $lastId, $column);
  18535. }
  18536. /**
  18537. * Constrain the query to the next "page" of results after a given ID.
  18538. *
  18539. * @param int $perPage
  18540. * @param int|null $lastId
  18541. * @param string $column
  18542. * @return \Illuminate\Database\Query\Builder
  18543. * @static
  18544. */
  18545. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  18546. {
  18547. /** @var \Illuminate\Database\Query\Builder $instance */
  18548. return $instance->forPageAfterId($perPage, $lastId, $column);
  18549. }
  18550. /**
  18551. * Remove all existing orders and optionally add a new order.
  18552. *
  18553. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
  18554. * @param string $direction
  18555. * @return \Illuminate\Database\Query\Builder
  18556. * @static
  18557. */
  18558. public static function reorder($column = null, $direction = 'asc')
  18559. {
  18560. /** @var \Illuminate\Database\Query\Builder $instance */
  18561. return $instance->reorder($column, $direction);
  18562. }
  18563. /**
  18564. * Add a union statement to the query.
  18565. *
  18566. * @param \Illuminate\Database\Query\Builder|\Closure $query
  18567. * @param bool $all
  18568. * @return \Illuminate\Database\Query\Builder
  18569. * @static
  18570. */
  18571. public static function union($query, $all = false)
  18572. {
  18573. /** @var \Illuminate\Database\Query\Builder $instance */
  18574. return $instance->union($query, $all);
  18575. }
  18576. /**
  18577. * Add a union all statement to the query.
  18578. *
  18579. * @param \Illuminate\Database\Query\Builder|\Closure $query
  18580. * @return \Illuminate\Database\Query\Builder
  18581. * @static
  18582. */
  18583. public static function unionAll($query)
  18584. {
  18585. /** @var \Illuminate\Database\Query\Builder $instance */
  18586. return $instance->unionAll($query);
  18587. }
  18588. /**
  18589. * Lock the selected rows in the table.
  18590. *
  18591. * @param string|bool $value
  18592. * @return \Illuminate\Database\Query\Builder
  18593. * @static
  18594. */
  18595. public static function lock($value = true)
  18596. {
  18597. /** @var \Illuminate\Database\Query\Builder $instance */
  18598. return $instance->lock($value);
  18599. }
  18600. /**
  18601. * Lock the selected rows in the table for updating.
  18602. *
  18603. * @return \Illuminate\Database\Query\Builder
  18604. * @static
  18605. */
  18606. public static function lockForUpdate()
  18607. {
  18608. /** @var \Illuminate\Database\Query\Builder $instance */
  18609. return $instance->lockForUpdate();
  18610. }
  18611. /**
  18612. * Share lock the selected rows in the table.
  18613. *
  18614. * @return \Illuminate\Database\Query\Builder
  18615. * @static
  18616. */
  18617. public static function sharedLock()
  18618. {
  18619. /** @var \Illuminate\Database\Query\Builder $instance */
  18620. return $instance->sharedLock();
  18621. }
  18622. /**
  18623. * Register a closure to be invoked before the query is executed.
  18624. *
  18625. * @param callable $callback
  18626. * @return \Illuminate\Database\Query\Builder
  18627. * @static
  18628. */
  18629. public static function beforeQuery($callback)
  18630. {
  18631. /** @var \Illuminate\Database\Query\Builder $instance */
  18632. return $instance->beforeQuery($callback);
  18633. }
  18634. /**
  18635. * Invoke the "before query" modification callbacks.
  18636. *
  18637. * @return void
  18638. * @static
  18639. */
  18640. public static function applyBeforeQueryCallbacks()
  18641. {
  18642. /** @var \Illuminate\Database\Query\Builder $instance */
  18643. $instance->applyBeforeQueryCallbacks();
  18644. }
  18645. /**
  18646. * Get the SQL representation of the query.
  18647. *
  18648. * @return string
  18649. * @static
  18650. */
  18651. public static function toSql()
  18652. {
  18653. /** @var \Illuminate\Database\Query\Builder $instance */
  18654. return $instance->toSql();
  18655. }
  18656. /**
  18657. * Get the count of the total records for the paginator.
  18658. *
  18659. * @param array $columns
  18660. * @return int
  18661. * @static
  18662. */
  18663. public static function getCountForPagination($columns = [])
  18664. {
  18665. /** @var \Illuminate\Database\Query\Builder $instance */
  18666. return $instance->getCountForPagination($columns);
  18667. }
  18668. /**
  18669. * Concatenate values of a given column as a string.
  18670. *
  18671. * @param string $column
  18672. * @param string $glue
  18673. * @return string
  18674. * @static
  18675. */
  18676. public static function implode($column, $glue = '')
  18677. {
  18678. /** @var \Illuminate\Database\Query\Builder $instance */
  18679. return $instance->implode($column, $glue);
  18680. }
  18681. /**
  18682. * Determine if any rows exist for the current query.
  18683. *
  18684. * @return bool
  18685. * @static
  18686. */
  18687. public static function exists()
  18688. {
  18689. /** @var \Illuminate\Database\Query\Builder $instance */
  18690. return $instance->exists();
  18691. }
  18692. /**
  18693. * Determine if no rows exist for the current query.
  18694. *
  18695. * @return bool
  18696. * @static
  18697. */
  18698. public static function doesntExist()
  18699. {
  18700. /** @var \Illuminate\Database\Query\Builder $instance */
  18701. return $instance->doesntExist();
  18702. }
  18703. /**
  18704. * Execute the given callback if no rows exist for the current query.
  18705. *
  18706. * @param \Closure $callback
  18707. * @return mixed
  18708. * @static
  18709. */
  18710. public static function existsOr($callback)
  18711. {
  18712. /** @var \Illuminate\Database\Query\Builder $instance */
  18713. return $instance->existsOr($callback);
  18714. }
  18715. /**
  18716. * Execute the given callback if rows exist for the current query.
  18717. *
  18718. * @param \Closure $callback
  18719. * @return mixed
  18720. * @static
  18721. */
  18722. public static function doesntExistOr($callback)
  18723. {
  18724. /** @var \Illuminate\Database\Query\Builder $instance */
  18725. return $instance->doesntExistOr($callback);
  18726. }
  18727. /**
  18728. * Retrieve the "count" result of the query.
  18729. *
  18730. * @param string $columns
  18731. * @return int
  18732. * @static
  18733. */
  18734. public static function count($columns = '*')
  18735. {
  18736. /** @var \Illuminate\Database\Query\Builder $instance */
  18737. return $instance->count($columns);
  18738. }
  18739. /**
  18740. * Retrieve the minimum value of a given column.
  18741. *
  18742. * @param string $column
  18743. * @return mixed
  18744. * @static
  18745. */
  18746. public static function min($column)
  18747. {
  18748. /** @var \Illuminate\Database\Query\Builder $instance */
  18749. return $instance->min($column);
  18750. }
  18751. /**
  18752. * Retrieve the maximum value of a given column.
  18753. *
  18754. * @param string $column
  18755. * @return mixed
  18756. * @static
  18757. */
  18758. public static function max($column)
  18759. {
  18760. /** @var \Illuminate\Database\Query\Builder $instance */
  18761. return $instance->max($column);
  18762. }
  18763. /**
  18764. * Retrieve the sum of the values of a given column.
  18765. *
  18766. * @param string $column
  18767. * @return mixed
  18768. * @static
  18769. */
  18770. public static function sum($column)
  18771. {
  18772. /** @var \Illuminate\Database\Query\Builder $instance */
  18773. return $instance->sum($column);
  18774. }
  18775. /**
  18776. * Retrieve the average of the values of a given column.
  18777. *
  18778. * @param string $column
  18779. * @return mixed
  18780. * @static
  18781. */
  18782. public static function avg($column)
  18783. {
  18784. /** @var \Illuminate\Database\Query\Builder $instance */
  18785. return $instance->avg($column);
  18786. }
  18787. /**
  18788. * Alias for the "avg" method.
  18789. *
  18790. * @param string $column
  18791. * @return mixed
  18792. * @static
  18793. */
  18794. public static function average($column)
  18795. {
  18796. /** @var \Illuminate\Database\Query\Builder $instance */
  18797. return $instance->average($column);
  18798. }
  18799. /**
  18800. * Execute an aggregate function on the database.
  18801. *
  18802. * @param string $function
  18803. * @param array $columns
  18804. * @return mixed
  18805. * @static
  18806. */
  18807. public static function aggregate($function, $columns = [])
  18808. {
  18809. /** @var \Illuminate\Database\Query\Builder $instance */
  18810. return $instance->aggregate($function, $columns);
  18811. }
  18812. /**
  18813. * Execute a numeric aggregate function on the database.
  18814. *
  18815. * @param string $function
  18816. * @param array $columns
  18817. * @return float|int
  18818. * @static
  18819. */
  18820. public static function numericAggregate($function, $columns = [])
  18821. {
  18822. /** @var \Illuminate\Database\Query\Builder $instance */
  18823. return $instance->numericAggregate($function, $columns);
  18824. }
  18825. /**
  18826. * Insert new records into the database.
  18827. *
  18828. * @param array $values
  18829. * @return bool
  18830. * @static
  18831. */
  18832. public static function insert($values)
  18833. {
  18834. /** @var \Illuminate\Database\Query\Builder $instance */
  18835. return $instance->insert($values);
  18836. }
  18837. /**
  18838. * Insert new records into the database while ignoring errors.
  18839. *
  18840. * @param array $values
  18841. * @return int
  18842. * @static
  18843. */
  18844. public static function insertOrIgnore($values)
  18845. {
  18846. /** @var \Illuminate\Database\Query\Builder $instance */
  18847. return $instance->insertOrIgnore($values);
  18848. }
  18849. /**
  18850. * Insert a new record and get the value of the primary key.
  18851. *
  18852. * @param array $values
  18853. * @param string|null $sequence
  18854. * @return int
  18855. * @static
  18856. */
  18857. public static function insertGetId($values, $sequence = null)
  18858. {
  18859. /** @var \Illuminate\Database\Query\Builder $instance */
  18860. return $instance->insertGetId($values, $sequence);
  18861. }
  18862. /**
  18863. * Insert new records into the table using a subquery.
  18864. *
  18865. * @param array $columns
  18866. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  18867. * @return int
  18868. * @static
  18869. */
  18870. public static function insertUsing($columns, $query)
  18871. {
  18872. /** @var \Illuminate\Database\Query\Builder $instance */
  18873. return $instance->insertUsing($columns, $query);
  18874. }
  18875. /**
  18876. * Update records in a PostgreSQL database using the update from syntax.
  18877. *
  18878. * @param array $values
  18879. * @return int
  18880. * @static
  18881. */
  18882. public static function updateFrom($values)
  18883. {
  18884. /** @var \Illuminate\Database\Query\Builder $instance */
  18885. return $instance->updateFrom($values);
  18886. }
  18887. /**
  18888. * Insert or update a record matching the attributes, and fill it with values.
  18889. *
  18890. * @param array $attributes
  18891. * @param array $values
  18892. * @return bool
  18893. * @static
  18894. */
  18895. public static function updateOrInsert($attributes, $values = [])
  18896. {
  18897. /** @var \Illuminate\Database\Query\Builder $instance */
  18898. return $instance->updateOrInsert($attributes, $values);
  18899. }
  18900. /**
  18901. * Run a truncate statement on the table.
  18902. *
  18903. * @return void
  18904. * @static
  18905. */
  18906. public static function truncate()
  18907. {
  18908. /** @var \Illuminate\Database\Query\Builder $instance */
  18909. $instance->truncate();
  18910. }
  18911. /**
  18912. * Create a raw database expression.
  18913. *
  18914. * @param mixed $value
  18915. * @return \Illuminate\Database\Query\Expression
  18916. * @static
  18917. */
  18918. public static function raw($value)
  18919. {
  18920. /** @var \Illuminate\Database\Query\Builder $instance */
  18921. return $instance->raw($value);
  18922. }
  18923. /**
  18924. * Get the current query value bindings in a flattened array.
  18925. *
  18926. * @return array
  18927. * @static
  18928. */
  18929. public static function getBindings()
  18930. {
  18931. /** @var \Illuminate\Database\Query\Builder $instance */
  18932. return $instance->getBindings();
  18933. }
  18934. /**
  18935. * Get the raw array of bindings.
  18936. *
  18937. * @return array
  18938. * @static
  18939. */
  18940. public static function getRawBindings()
  18941. {
  18942. /** @var \Illuminate\Database\Query\Builder $instance */
  18943. return $instance->getRawBindings();
  18944. }
  18945. /**
  18946. * Set the bindings on the query builder.
  18947. *
  18948. * @param array $bindings
  18949. * @param string $type
  18950. * @return \Illuminate\Database\Query\Builder
  18951. * @throws \InvalidArgumentException
  18952. * @static
  18953. */
  18954. public static function setBindings($bindings, $type = 'where')
  18955. {
  18956. /** @var \Illuminate\Database\Query\Builder $instance */
  18957. return $instance->setBindings($bindings, $type);
  18958. }
  18959. /**
  18960. * Add a binding to the query.
  18961. *
  18962. * @param mixed $value
  18963. * @param string $type
  18964. * @return \Illuminate\Database\Query\Builder
  18965. * @throws \InvalidArgumentException
  18966. * @static
  18967. */
  18968. public static function addBinding($value, $type = 'where')
  18969. {
  18970. /** @var \Illuminate\Database\Query\Builder $instance */
  18971. return $instance->addBinding($value, $type);
  18972. }
  18973. /**
  18974. * Cast the given binding value.
  18975. *
  18976. * @param mixed $value
  18977. * @return mixed
  18978. * @static
  18979. */
  18980. public static function castBinding($value)
  18981. {
  18982. /** @var \Illuminate\Database\Query\Builder $instance */
  18983. return $instance->castBinding($value);
  18984. }
  18985. /**
  18986. * Merge an array of bindings into our bindings.
  18987. *
  18988. * @param \Illuminate\Database\Query\Builder $query
  18989. * @return \Illuminate\Database\Query\Builder
  18990. * @static
  18991. */
  18992. public static function mergeBindings($query)
  18993. {
  18994. /** @var \Illuminate\Database\Query\Builder $instance */
  18995. return $instance->mergeBindings($query);
  18996. }
  18997. /**
  18998. * Remove all of the expressions from a list of bindings.
  18999. *
  19000. * @param array $bindings
  19001. * @return array
  19002. * @static
  19003. */
  19004. public static function cleanBindings($bindings)
  19005. {
  19006. /** @var \Illuminate\Database\Query\Builder $instance */
  19007. return $instance->cleanBindings($bindings);
  19008. }
  19009. /**
  19010. * Get the database query processor instance.
  19011. *
  19012. * @return \Illuminate\Database\Query\Processors\Processor
  19013. * @static
  19014. */
  19015. public static function getProcessor()
  19016. {
  19017. /** @var \Illuminate\Database\Query\Builder $instance */
  19018. return $instance->getProcessor();
  19019. }
  19020. /**
  19021. * Get the query grammar instance.
  19022. *
  19023. * @return \Illuminate\Database\Query\Grammars\Grammar
  19024. * @static
  19025. */
  19026. public static function getGrammar()
  19027. {
  19028. /** @var \Illuminate\Database\Query\Builder $instance */
  19029. return $instance->getGrammar();
  19030. }
  19031. /**
  19032. * Use the write pdo for query.
  19033. *
  19034. * @return \Illuminate\Database\Query\Builder
  19035. * @static
  19036. */
  19037. public static function useWritePdo()
  19038. {
  19039. /** @var \Illuminate\Database\Query\Builder $instance */
  19040. return $instance->useWritePdo();
  19041. }
  19042. /**
  19043. * Clone the query without the given properties.
  19044. *
  19045. * @param array $properties
  19046. * @return static
  19047. * @static
  19048. */
  19049. public static function cloneWithout($properties)
  19050. {
  19051. /** @var \Illuminate\Database\Query\Builder $instance */
  19052. return $instance->cloneWithout($properties);
  19053. }
  19054. /**
  19055. * Clone the query without the given bindings.
  19056. *
  19057. * @param array $except
  19058. * @return static
  19059. * @static
  19060. */
  19061. public static function cloneWithoutBindings($except)
  19062. {
  19063. /** @var \Illuminate\Database\Query\Builder $instance */
  19064. return $instance->cloneWithoutBindings($except);
  19065. }
  19066. /**
  19067. * Dump the current SQL and bindings.
  19068. *
  19069. * @return \Illuminate\Database\Query\Builder
  19070. * @static
  19071. */
  19072. public static function dump()
  19073. {
  19074. /** @var \Illuminate\Database\Query\Builder $instance */
  19075. return $instance->dump();
  19076. }
  19077. /**
  19078. * Die and dump the current SQL and bindings.
  19079. *
  19080. * @return never
  19081. * @static
  19082. */
  19083. public static function dd()
  19084. {
  19085. /** @var \Illuminate\Database\Query\Builder $instance */
  19086. return $instance->dd();
  19087. }
  19088. /**
  19089. * Explains the query.
  19090. *
  19091. * @return \Illuminate\Support\Collection
  19092. * @static
  19093. */
  19094. public static function explain()
  19095. {
  19096. /** @var \Illuminate\Database\Query\Builder $instance */
  19097. return $instance->explain();
  19098. }
  19099. /**
  19100. * Register a custom macro.
  19101. *
  19102. * @param string $name
  19103. * @param object|callable $macro
  19104. * @return void
  19105. * @static
  19106. */
  19107. public static function macro($name, $macro)
  19108. {
  19109. \Illuminate\Database\Query\Builder::macro($name, $macro);
  19110. }
  19111. /**
  19112. * Mix another object into the class.
  19113. *
  19114. * @param object $mixin
  19115. * @param bool $replace
  19116. * @return void
  19117. * @throws \ReflectionException
  19118. * @static
  19119. */
  19120. public static function mixin($mixin, $replace = true)
  19121. {
  19122. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  19123. }
  19124. /**
  19125. * Flush the existing macros.
  19126. *
  19127. * @return void
  19128. * @static
  19129. */
  19130. public static function flushMacros()
  19131. {
  19132. \Illuminate\Database\Query\Builder::flushMacros();
  19133. }
  19134. /**
  19135. * Dynamically handle calls to the class.
  19136. *
  19137. * @param string $method
  19138. * @param array $parameters
  19139. * @return mixed
  19140. * @throws \BadMethodCallException
  19141. * @static
  19142. */
  19143. public static function macroCall($method, $parameters)
  19144. {
  19145. /** @var \Illuminate\Database\Query\Builder $instance */
  19146. return $instance->macroCall($method, $parameters);
  19147. }
  19148. }
  19149. class Event extends \Illuminate\Support\Facades\Event {}
  19150. class File extends \Illuminate\Support\Facades\File {}
  19151. class Gate extends \Illuminate\Support\Facades\Gate {}
  19152. class Hash extends \Illuminate\Support\Facades\Hash {}
  19153. class Http extends \Illuminate\Support\Facades\Http {}
  19154. class Lang extends \Illuminate\Support\Facades\Lang {}
  19155. class Log extends \Illuminate\Support\Facades\Log {}
  19156. class Mail extends \Illuminate\Support\Facades\Mail {}
  19157. class Notification extends \Illuminate\Support\Facades\Notification {}
  19158. class Password extends \Illuminate\Support\Facades\Password {}
  19159. class Queue extends \Illuminate\Support\Facades\Queue {}
  19160. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  19161. class Request extends \Illuminate\Support\Facades\Request {}
  19162. class Response extends \Illuminate\Support\Facades\Response {}
  19163. class Route extends \Illuminate\Support\Facades\Route {}
  19164. class Schema extends \Illuminate\Support\Facades\Schema {}
  19165. class Session extends \Illuminate\Support\Facades\Session {}
  19166. class Storage extends \Illuminate\Support\Facades\Storage {}
  19167. class Str extends \Illuminate\Support\Str {}
  19168. class URL extends \Illuminate\Support\Facades\URL {}
  19169. class Validator extends \Illuminate\Support\Facades\Validator {}
  19170. class View extends \Illuminate\Support\Facades\View {}
  19171. class Flare extends \Facade\Ignition\Facades\Flare {}
  19172. }