_ide_helper.php 834 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051
  1. <?php
  2. // @formatter:off
  3. // phpcs:ignoreFile
  4. /**
  5. * A helper file for Laravel, to provide autocomplete information to your IDE
  6. * Generated for Laravel 9.40.1.
  7. *
  8. * This file should not be included in your code, only analyzed by your IDE!
  9. *
  10. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  11. * @see https://github.com/barryvdh/laravel-ide-helper
  12. */
  13. namespace Illuminate\Support\Facades {
  14. /**
  15. *
  16. *
  17. * @see \Illuminate\Contracts\Foundation\Application
  18. */
  19. class App {
  20. /**
  21. * Get the version number of the application.
  22. *
  23. * @return string
  24. * @static
  25. */
  26. public static function version()
  27. {
  28. /** @var \Illuminate\Foundation\Application $instance */
  29. return $instance->version();
  30. }
  31. /**
  32. * Run the given array of bootstrap classes.
  33. *
  34. * @param string[] $bootstrappers
  35. * @return void
  36. * @static
  37. */
  38. public static function bootstrapWith($bootstrappers)
  39. {
  40. /** @var \Illuminate\Foundation\Application $instance */
  41. $instance->bootstrapWith($bootstrappers);
  42. }
  43. /**
  44. * Register a callback to run after loading the environment.
  45. *
  46. * @param \Closure $callback
  47. * @return void
  48. * @static
  49. */
  50. public static function afterLoadingEnvironment($callback)
  51. {
  52. /** @var \Illuminate\Foundation\Application $instance */
  53. $instance->afterLoadingEnvironment($callback);
  54. }
  55. /**
  56. * Register a callback to run before a bootstrapper.
  57. *
  58. * @param string $bootstrapper
  59. * @param \Closure $callback
  60. * @return void
  61. * @static
  62. */
  63. public static function beforeBootstrapping($bootstrapper, $callback)
  64. {
  65. /** @var \Illuminate\Foundation\Application $instance */
  66. $instance->beforeBootstrapping($bootstrapper, $callback);
  67. }
  68. /**
  69. * Register a callback to run after a bootstrapper.
  70. *
  71. * @param string $bootstrapper
  72. * @param \Closure $callback
  73. * @return void
  74. * @static
  75. */
  76. public static function afterBootstrapping($bootstrapper, $callback)
  77. {
  78. /** @var \Illuminate\Foundation\Application $instance */
  79. $instance->afterBootstrapping($bootstrapper, $callback);
  80. }
  81. /**
  82. * Determine if the application has been bootstrapped before.
  83. *
  84. * @return bool
  85. * @static
  86. */
  87. public static function hasBeenBootstrapped()
  88. {
  89. /** @var \Illuminate\Foundation\Application $instance */
  90. return $instance->hasBeenBootstrapped();
  91. }
  92. /**
  93. * Set the base path for the application.
  94. *
  95. * @param string $basePath
  96. * @return \Illuminate\Foundation\Application
  97. * @static
  98. */
  99. public static function setBasePath($basePath)
  100. {
  101. /** @var \Illuminate\Foundation\Application $instance */
  102. return $instance->setBasePath($basePath);
  103. }
  104. /**
  105. * Get the path to the application "app" directory.
  106. *
  107. * @param string $path
  108. * @return string
  109. * @static
  110. */
  111. public static function path($path = '')
  112. {
  113. /** @var \Illuminate\Foundation\Application $instance */
  114. return $instance->path($path);
  115. }
  116. /**
  117. * Set the application directory.
  118. *
  119. * @param string $path
  120. * @return \Illuminate\Foundation\Application
  121. * @static
  122. */
  123. public static function useAppPath($path)
  124. {
  125. /** @var \Illuminate\Foundation\Application $instance */
  126. return $instance->useAppPath($path);
  127. }
  128. /**
  129. * Get the base path of the Laravel installation.
  130. *
  131. * @param string $path
  132. * @return string
  133. * @static
  134. */
  135. public static function basePath($path = '')
  136. {
  137. /** @var \Illuminate\Foundation\Application $instance */
  138. return $instance->basePath($path);
  139. }
  140. /**
  141. * Get the path to the bootstrap directory.
  142. *
  143. * @param string $path
  144. * @return string
  145. * @static
  146. */
  147. public static function bootstrapPath($path = '')
  148. {
  149. /** @var \Illuminate\Foundation\Application $instance */
  150. return $instance->bootstrapPath($path);
  151. }
  152. /**
  153. * Get the path to the application configuration files.
  154. *
  155. * @param string $path
  156. * @return string
  157. * @static
  158. */
  159. public static function configPath($path = '')
  160. {
  161. /** @var \Illuminate\Foundation\Application $instance */
  162. return $instance->configPath($path);
  163. }
  164. /**
  165. * Get the path to the database directory.
  166. *
  167. * @param string $path
  168. * @return string
  169. * @static
  170. */
  171. public static function databasePath($path = '')
  172. {
  173. /** @var \Illuminate\Foundation\Application $instance */
  174. return $instance->databasePath($path);
  175. }
  176. /**
  177. * Set the database directory.
  178. *
  179. * @param string $path
  180. * @return \Illuminate\Foundation\Application
  181. * @static
  182. */
  183. public static function useDatabasePath($path)
  184. {
  185. /** @var \Illuminate\Foundation\Application $instance */
  186. return $instance->useDatabasePath($path);
  187. }
  188. /**
  189. * Get the path to the language files.
  190. *
  191. * @param string $path
  192. * @return string
  193. * @static
  194. */
  195. public static function langPath($path = '')
  196. {
  197. /** @var \Illuminate\Foundation\Application $instance */
  198. return $instance->langPath($path);
  199. }
  200. /**
  201. * Set the language file directory.
  202. *
  203. * @param string $path
  204. * @return \Illuminate\Foundation\Application
  205. * @static
  206. */
  207. public static function useLangPath($path)
  208. {
  209. /** @var \Illuminate\Foundation\Application $instance */
  210. return $instance->useLangPath($path);
  211. }
  212. /**
  213. * Get the path to the public / web directory.
  214. *
  215. * @return string
  216. * @static
  217. */
  218. public static function publicPath()
  219. {
  220. /** @var \Illuminate\Foundation\Application $instance */
  221. return $instance->publicPath();
  222. }
  223. /**
  224. * Get the path to the storage directory.
  225. *
  226. * @param string $path
  227. * @return string
  228. * @static
  229. */
  230. public static function storagePath($path = '')
  231. {
  232. /** @var \Illuminate\Foundation\Application $instance */
  233. return $instance->storagePath($path);
  234. }
  235. /**
  236. * Set the storage directory.
  237. *
  238. * @param string $path
  239. * @return \Illuminate\Foundation\Application
  240. * @static
  241. */
  242. public static function useStoragePath($path)
  243. {
  244. /** @var \Illuminate\Foundation\Application $instance */
  245. return $instance->useStoragePath($path);
  246. }
  247. /**
  248. * Get the path to the resources directory.
  249. *
  250. * @param string $path
  251. * @return string
  252. * @static
  253. */
  254. public static function resourcePath($path = '')
  255. {
  256. /** @var \Illuminate\Foundation\Application $instance */
  257. return $instance->resourcePath($path);
  258. }
  259. /**
  260. * Get the path to the views directory.
  261. *
  262. * This method returns the first configured path in the array of view paths.
  263. *
  264. * @param string $path
  265. * @return string
  266. * @static
  267. */
  268. public static function viewPath($path = '')
  269. {
  270. /** @var \Illuminate\Foundation\Application $instance */
  271. return $instance->viewPath($path);
  272. }
  273. /**
  274. * Get the path to the environment file directory.
  275. *
  276. * @return string
  277. * @static
  278. */
  279. public static function environmentPath()
  280. {
  281. /** @var \Illuminate\Foundation\Application $instance */
  282. return $instance->environmentPath();
  283. }
  284. /**
  285. * Set the directory for the environment file.
  286. *
  287. * @param string $path
  288. * @return \Illuminate\Foundation\Application
  289. * @static
  290. */
  291. public static function useEnvironmentPath($path)
  292. {
  293. /** @var \Illuminate\Foundation\Application $instance */
  294. return $instance->useEnvironmentPath($path);
  295. }
  296. /**
  297. * Set the environment file to be loaded during bootstrapping.
  298. *
  299. * @param string $file
  300. * @return \Illuminate\Foundation\Application
  301. * @static
  302. */
  303. public static function loadEnvironmentFrom($file)
  304. {
  305. /** @var \Illuminate\Foundation\Application $instance */
  306. return $instance->loadEnvironmentFrom($file);
  307. }
  308. /**
  309. * Get the environment file the application is using.
  310. *
  311. * @return string
  312. * @static
  313. */
  314. public static function environmentFile()
  315. {
  316. /** @var \Illuminate\Foundation\Application $instance */
  317. return $instance->environmentFile();
  318. }
  319. /**
  320. * Get the fully qualified path to the environment file.
  321. *
  322. * @return string
  323. * @static
  324. */
  325. public static function environmentFilePath()
  326. {
  327. /** @var \Illuminate\Foundation\Application $instance */
  328. return $instance->environmentFilePath();
  329. }
  330. /**
  331. * Get or check the current application environment.
  332. *
  333. * @param string|array $environments
  334. * @return string|bool
  335. * @static
  336. */
  337. public static function environment(...$environments)
  338. {
  339. /** @var \Illuminate\Foundation\Application $instance */
  340. return $instance->environment(...$environments);
  341. }
  342. /**
  343. * Determine if the application is in the local environment.
  344. *
  345. * @return bool
  346. * @static
  347. */
  348. public static function isLocal()
  349. {
  350. /** @var \Illuminate\Foundation\Application $instance */
  351. return $instance->isLocal();
  352. }
  353. /**
  354. * Determine if the application is in the production environment.
  355. *
  356. * @return bool
  357. * @static
  358. */
  359. public static function isProduction()
  360. {
  361. /** @var \Illuminate\Foundation\Application $instance */
  362. return $instance->isProduction();
  363. }
  364. /**
  365. * Detect the application's current environment.
  366. *
  367. * @param \Closure $callback
  368. * @return string
  369. * @static
  370. */
  371. public static function detectEnvironment($callback)
  372. {
  373. /** @var \Illuminate\Foundation\Application $instance */
  374. return $instance->detectEnvironment($callback);
  375. }
  376. /**
  377. * Determine if the application is running in the console.
  378. *
  379. * @return bool
  380. * @static
  381. */
  382. public static function runningInConsole()
  383. {
  384. /** @var \Illuminate\Foundation\Application $instance */
  385. return $instance->runningInConsole();
  386. }
  387. /**
  388. * Determine if the application is running unit tests.
  389. *
  390. * @return bool
  391. * @static
  392. */
  393. public static function runningUnitTests()
  394. {
  395. /** @var \Illuminate\Foundation\Application $instance */
  396. return $instance->runningUnitTests();
  397. }
  398. /**
  399. * Determine if the application is running with debug mode enabled.
  400. *
  401. * @return bool
  402. * @static
  403. */
  404. public static function hasDebugModeEnabled()
  405. {
  406. /** @var \Illuminate\Foundation\Application $instance */
  407. return $instance->hasDebugModeEnabled();
  408. }
  409. /**
  410. * Register all of the configured providers.
  411. *
  412. * @return void
  413. * @static
  414. */
  415. public static function registerConfiguredProviders()
  416. {
  417. /** @var \Illuminate\Foundation\Application $instance */
  418. $instance->registerConfiguredProviders();
  419. }
  420. /**
  421. * Register a service provider with the application.
  422. *
  423. * @param \Illuminate\Support\ServiceProvider|string $provider
  424. * @param bool $force
  425. * @return \Illuminate\Support\ServiceProvider
  426. * @static
  427. */
  428. public static function register($provider, $force = false)
  429. {
  430. /** @var \Illuminate\Foundation\Application $instance */
  431. return $instance->register($provider, $force);
  432. }
  433. /**
  434. * Get the registered service provider instance if it exists.
  435. *
  436. * @param \Illuminate\Support\ServiceProvider|string $provider
  437. * @return \Illuminate\Support\ServiceProvider|null
  438. * @static
  439. */
  440. public static function getProvider($provider)
  441. {
  442. /** @var \Illuminate\Foundation\Application $instance */
  443. return $instance->getProvider($provider);
  444. }
  445. /**
  446. * Get the registered service provider instances if any exist.
  447. *
  448. * @param \Illuminate\Support\ServiceProvider|string $provider
  449. * @return array
  450. * @static
  451. */
  452. public static function getProviders($provider)
  453. {
  454. /** @var \Illuminate\Foundation\Application $instance */
  455. return $instance->getProviders($provider);
  456. }
  457. /**
  458. * Resolve a service provider instance from the class name.
  459. *
  460. * @param string $provider
  461. * @return \Illuminate\Support\ServiceProvider
  462. * @static
  463. */
  464. public static function resolveProvider($provider)
  465. {
  466. /** @var \Illuminate\Foundation\Application $instance */
  467. return $instance->resolveProvider($provider);
  468. }
  469. /**
  470. * Load and boot all of the remaining deferred providers.
  471. *
  472. * @return void
  473. * @static
  474. */
  475. public static function loadDeferredProviders()
  476. {
  477. /** @var \Illuminate\Foundation\Application $instance */
  478. $instance->loadDeferredProviders();
  479. }
  480. /**
  481. * Load the provider for a deferred service.
  482. *
  483. * @param string $service
  484. * @return void
  485. * @static
  486. */
  487. public static function loadDeferredProvider($service)
  488. {
  489. /** @var \Illuminate\Foundation\Application $instance */
  490. $instance->loadDeferredProvider($service);
  491. }
  492. /**
  493. * Register a deferred provider and service.
  494. *
  495. * @param string $provider
  496. * @param string|null $service
  497. * @return void
  498. * @static
  499. */
  500. public static function registerDeferredProvider($provider, $service = null)
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. $instance->registerDeferredProvider($provider, $service);
  504. }
  505. /**
  506. * Resolve the given type from the container.
  507. *
  508. * @param string $abstract
  509. * @param array $parameters
  510. * @return mixed
  511. * @static
  512. */
  513. public static function make($abstract, $parameters = [])
  514. {
  515. /** @var \Illuminate\Foundation\Application $instance */
  516. return $instance->make($abstract, $parameters);
  517. }
  518. /**
  519. * Determine if the given abstract type has been bound.
  520. *
  521. * @param string $abstract
  522. * @return bool
  523. * @static
  524. */
  525. public static function bound($abstract)
  526. {
  527. /** @var \Illuminate\Foundation\Application $instance */
  528. return $instance->bound($abstract);
  529. }
  530. /**
  531. * Determine if the application has booted.
  532. *
  533. * @return bool
  534. * @static
  535. */
  536. public static function isBooted()
  537. {
  538. /** @var \Illuminate\Foundation\Application $instance */
  539. return $instance->isBooted();
  540. }
  541. /**
  542. * Boot the application's service providers.
  543. *
  544. * @return void
  545. * @static
  546. */
  547. public static function boot()
  548. {
  549. /** @var \Illuminate\Foundation\Application $instance */
  550. $instance->boot();
  551. }
  552. /**
  553. * Register a new boot listener.
  554. *
  555. * @param callable $callback
  556. * @return void
  557. * @static
  558. */
  559. public static function booting($callback)
  560. {
  561. /** @var \Illuminate\Foundation\Application $instance */
  562. $instance->booting($callback);
  563. }
  564. /**
  565. * Register a new "booted" listener.
  566. *
  567. * @param callable $callback
  568. * @return void
  569. * @static
  570. */
  571. public static function booted($callback)
  572. {
  573. /** @var \Illuminate\Foundation\Application $instance */
  574. $instance->booted($callback);
  575. }
  576. /**
  577. * {@inheritdoc}
  578. *
  579. * @return \Symfony\Component\HttpFoundation\Response
  580. * @static
  581. */
  582. public static function handle($request, $type = 1, $catch = true)
  583. {
  584. /** @var \Illuminate\Foundation\Application $instance */
  585. return $instance->handle($request, $type, $catch);
  586. }
  587. /**
  588. * Determine if middleware has been disabled for the application.
  589. *
  590. * @return bool
  591. * @static
  592. */
  593. public static function shouldSkipMiddleware()
  594. {
  595. /** @var \Illuminate\Foundation\Application $instance */
  596. return $instance->shouldSkipMiddleware();
  597. }
  598. /**
  599. * Get the path to the cached services.php file.
  600. *
  601. * @return string
  602. * @static
  603. */
  604. public static function getCachedServicesPath()
  605. {
  606. /** @var \Illuminate\Foundation\Application $instance */
  607. return $instance->getCachedServicesPath();
  608. }
  609. /**
  610. * Get the path to the cached packages.php file.
  611. *
  612. * @return string
  613. * @static
  614. */
  615. public static function getCachedPackagesPath()
  616. {
  617. /** @var \Illuminate\Foundation\Application $instance */
  618. return $instance->getCachedPackagesPath();
  619. }
  620. /**
  621. * Determine if the application configuration is cached.
  622. *
  623. * @return bool
  624. * @static
  625. */
  626. public static function configurationIsCached()
  627. {
  628. /** @var \Illuminate\Foundation\Application $instance */
  629. return $instance->configurationIsCached();
  630. }
  631. /**
  632. * Get the path to the configuration cache file.
  633. *
  634. * @return string
  635. * @static
  636. */
  637. public static function getCachedConfigPath()
  638. {
  639. /** @var \Illuminate\Foundation\Application $instance */
  640. return $instance->getCachedConfigPath();
  641. }
  642. /**
  643. * Determine if the application routes are cached.
  644. *
  645. * @return bool
  646. * @static
  647. */
  648. public static function routesAreCached()
  649. {
  650. /** @var \Illuminate\Foundation\Application $instance */
  651. return $instance->routesAreCached();
  652. }
  653. /**
  654. * Get the path to the routes cache file.
  655. *
  656. * @return string
  657. * @static
  658. */
  659. public static function getCachedRoutesPath()
  660. {
  661. /** @var \Illuminate\Foundation\Application $instance */
  662. return $instance->getCachedRoutesPath();
  663. }
  664. /**
  665. * Determine if the application events are cached.
  666. *
  667. * @return bool
  668. * @static
  669. */
  670. public static function eventsAreCached()
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. return $instance->eventsAreCached();
  674. }
  675. /**
  676. * Get the path to the events cache file.
  677. *
  678. * @return string
  679. * @static
  680. */
  681. public static function getCachedEventsPath()
  682. {
  683. /** @var \Illuminate\Foundation\Application $instance */
  684. return $instance->getCachedEventsPath();
  685. }
  686. /**
  687. * Add new prefix to list of absolute path prefixes.
  688. *
  689. * @param string $prefix
  690. * @return \Illuminate\Foundation\Application
  691. * @static
  692. */
  693. public static function addAbsoluteCachePathPrefix($prefix)
  694. {
  695. /** @var \Illuminate\Foundation\Application $instance */
  696. return $instance->addAbsoluteCachePathPrefix($prefix);
  697. }
  698. /**
  699. * Get an instance of the maintenance mode manager implementation.
  700. *
  701. * @return \Illuminate\Contracts\Foundation\MaintenanceMode
  702. * @static
  703. */
  704. public static function maintenanceMode()
  705. {
  706. /** @var \Illuminate\Foundation\Application $instance */
  707. return $instance->maintenanceMode();
  708. }
  709. /**
  710. * Determine if the application is currently down for maintenance.
  711. *
  712. * @return bool
  713. * @static
  714. */
  715. public static function isDownForMaintenance()
  716. {
  717. /** @var \Illuminate\Foundation\Application $instance */
  718. return $instance->isDownForMaintenance();
  719. }
  720. /**
  721. * Throw an HttpException with the given data.
  722. *
  723. * @param int $code
  724. * @param string $message
  725. * @param array $headers
  726. * @return \Illuminate\Foundation\never
  727. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  728. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  729. * @static
  730. */
  731. public static function abort($code, $message = '', $headers = [])
  732. {
  733. /** @var \Illuminate\Foundation\Application $instance */
  734. return $instance->abort($code, $message, $headers);
  735. }
  736. /**
  737. * Register a terminating callback with the application.
  738. *
  739. * @param callable|string $callback
  740. * @return \Illuminate\Foundation\Application
  741. * @static
  742. */
  743. public static function terminating($callback)
  744. {
  745. /** @var \Illuminate\Foundation\Application $instance */
  746. return $instance->terminating($callback);
  747. }
  748. /**
  749. * Terminate the application.
  750. *
  751. * @return void
  752. * @static
  753. */
  754. public static function terminate()
  755. {
  756. /** @var \Illuminate\Foundation\Application $instance */
  757. $instance->terminate();
  758. }
  759. /**
  760. * Get the service providers that have been loaded.
  761. *
  762. * @return array
  763. * @static
  764. */
  765. public static function getLoadedProviders()
  766. {
  767. /** @var \Illuminate\Foundation\Application $instance */
  768. return $instance->getLoadedProviders();
  769. }
  770. /**
  771. * Determine if the given service provider is loaded.
  772. *
  773. * @param string $provider
  774. * @return bool
  775. * @static
  776. */
  777. public static function providerIsLoaded($provider)
  778. {
  779. /** @var \Illuminate\Foundation\Application $instance */
  780. return $instance->providerIsLoaded($provider);
  781. }
  782. /**
  783. * Get the application's deferred services.
  784. *
  785. * @return array
  786. * @static
  787. */
  788. public static function getDeferredServices()
  789. {
  790. /** @var \Illuminate\Foundation\Application $instance */
  791. return $instance->getDeferredServices();
  792. }
  793. /**
  794. * Set the application's deferred services.
  795. *
  796. * @param array $services
  797. * @return void
  798. * @static
  799. */
  800. public static function setDeferredServices($services)
  801. {
  802. /** @var \Illuminate\Foundation\Application $instance */
  803. $instance->setDeferredServices($services);
  804. }
  805. /**
  806. * Add an array of services to the application's deferred services.
  807. *
  808. * @param array $services
  809. * @return void
  810. * @static
  811. */
  812. public static function addDeferredServices($services)
  813. {
  814. /** @var \Illuminate\Foundation\Application $instance */
  815. $instance->addDeferredServices($services);
  816. }
  817. /**
  818. * Determine if the given service is a deferred service.
  819. *
  820. * @param string $service
  821. * @return bool
  822. * @static
  823. */
  824. public static function isDeferredService($service)
  825. {
  826. /** @var \Illuminate\Foundation\Application $instance */
  827. return $instance->isDeferredService($service);
  828. }
  829. /**
  830. * Configure the real-time facade namespace.
  831. *
  832. * @param string $namespace
  833. * @return void
  834. * @static
  835. */
  836. public static function provideFacades($namespace)
  837. {
  838. /** @var \Illuminate\Foundation\Application $instance */
  839. $instance->provideFacades($namespace);
  840. }
  841. /**
  842. * Get the current application locale.
  843. *
  844. * @return string
  845. * @static
  846. */
  847. public static function getLocale()
  848. {
  849. /** @var \Illuminate\Foundation\Application $instance */
  850. return $instance->getLocale();
  851. }
  852. /**
  853. * Get the current application locale.
  854. *
  855. * @return string
  856. * @static
  857. */
  858. public static function currentLocale()
  859. {
  860. /** @var \Illuminate\Foundation\Application $instance */
  861. return $instance->currentLocale();
  862. }
  863. /**
  864. * Get the current application fallback locale.
  865. *
  866. * @return string
  867. * @static
  868. */
  869. public static function getFallbackLocale()
  870. {
  871. /** @var \Illuminate\Foundation\Application $instance */
  872. return $instance->getFallbackLocale();
  873. }
  874. /**
  875. * Set the current application locale.
  876. *
  877. * @param string $locale
  878. * @return void
  879. * @static
  880. */
  881. public static function setLocale($locale)
  882. {
  883. /** @var \Illuminate\Foundation\Application $instance */
  884. $instance->setLocale($locale);
  885. }
  886. /**
  887. * Set the current application fallback locale.
  888. *
  889. * @param string $fallbackLocale
  890. * @return void
  891. * @static
  892. */
  893. public static function setFallbackLocale($fallbackLocale)
  894. {
  895. /** @var \Illuminate\Foundation\Application $instance */
  896. $instance->setFallbackLocale($fallbackLocale);
  897. }
  898. /**
  899. * Determine if the application locale is the given locale.
  900. *
  901. * @param string $locale
  902. * @return bool
  903. * @static
  904. */
  905. public static function isLocale($locale)
  906. {
  907. /** @var \Illuminate\Foundation\Application $instance */
  908. return $instance->isLocale($locale);
  909. }
  910. /**
  911. * Register the core class aliases in the container.
  912. *
  913. * @return void
  914. * @static
  915. */
  916. public static function registerCoreContainerAliases()
  917. {
  918. /** @var \Illuminate\Foundation\Application $instance */
  919. $instance->registerCoreContainerAliases();
  920. }
  921. /**
  922. * Flush the container of all bindings and resolved instances.
  923. *
  924. * @return void
  925. * @static
  926. */
  927. public static function flush()
  928. {
  929. /** @var \Illuminate\Foundation\Application $instance */
  930. $instance->flush();
  931. }
  932. /**
  933. * Get the application namespace.
  934. *
  935. * @return string
  936. * @throws \RuntimeException
  937. * @static
  938. */
  939. public static function getNamespace()
  940. {
  941. /** @var \Illuminate\Foundation\Application $instance */
  942. return $instance->getNamespace();
  943. }
  944. /**
  945. * Define a contextual binding.
  946. *
  947. * @param array|string $concrete
  948. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  949. * @static
  950. */
  951. public static function when($concrete)
  952. { //Method inherited from \Illuminate\Container\Container
  953. /** @var \Illuminate\Foundation\Application $instance */
  954. return $instance->when($concrete);
  955. }
  956. /**
  957. * Returns true if the container can return an entry for the given identifier.
  958. *
  959. * Returns false otherwise.
  960. *
  961. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  962. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  963. *
  964. * @return bool
  965. * @param string $id Identifier of the entry to look for.
  966. * @return bool
  967. * @static
  968. */
  969. public static function has($id)
  970. { //Method inherited from \Illuminate\Container\Container
  971. /** @var \Illuminate\Foundation\Application $instance */
  972. return $instance->has($id);
  973. }
  974. /**
  975. * Determine if the given abstract type has been resolved.
  976. *
  977. * @param string $abstract
  978. * @return bool
  979. * @static
  980. */
  981. public static function resolved($abstract)
  982. { //Method inherited from \Illuminate\Container\Container
  983. /** @var \Illuminate\Foundation\Application $instance */
  984. return $instance->resolved($abstract);
  985. }
  986. /**
  987. * Determine if a given type is shared.
  988. *
  989. * @param string $abstract
  990. * @return bool
  991. * @static
  992. */
  993. public static function isShared($abstract)
  994. { //Method inherited from \Illuminate\Container\Container
  995. /** @var \Illuminate\Foundation\Application $instance */
  996. return $instance->isShared($abstract);
  997. }
  998. /**
  999. * Determine if a given string is an alias.
  1000. *
  1001. * @param string $name
  1002. * @return bool
  1003. * @static
  1004. */
  1005. public static function isAlias($name)
  1006. { //Method inherited from \Illuminate\Container\Container
  1007. /** @var \Illuminate\Foundation\Application $instance */
  1008. return $instance->isAlias($name);
  1009. }
  1010. /**
  1011. * Register a binding with the container.
  1012. *
  1013. * @param string $abstract
  1014. * @param \Closure|string|null $concrete
  1015. * @param bool $shared
  1016. * @return void
  1017. * @throws \TypeError
  1018. * @static
  1019. */
  1020. public static function bind($abstract, $concrete = null, $shared = false)
  1021. { //Method inherited from \Illuminate\Container\Container
  1022. /** @var \Illuminate\Foundation\Application $instance */
  1023. $instance->bind($abstract, $concrete, $shared);
  1024. }
  1025. /**
  1026. * Determine if the container has a method binding.
  1027. *
  1028. * @param string $method
  1029. * @return bool
  1030. * @static
  1031. */
  1032. public static function hasMethodBinding($method)
  1033. { //Method inherited from \Illuminate\Container\Container
  1034. /** @var \Illuminate\Foundation\Application $instance */
  1035. return $instance->hasMethodBinding($method);
  1036. }
  1037. /**
  1038. * Bind a callback to resolve with Container::call.
  1039. *
  1040. * @param array|string $method
  1041. * @param \Closure $callback
  1042. * @return void
  1043. * @static
  1044. */
  1045. public static function bindMethod($method, $callback)
  1046. { //Method inherited from \Illuminate\Container\Container
  1047. /** @var \Illuminate\Foundation\Application $instance */
  1048. $instance->bindMethod($method, $callback);
  1049. }
  1050. /**
  1051. * Get the method binding for the given method.
  1052. *
  1053. * @param string $method
  1054. * @param mixed $instance
  1055. * @return mixed
  1056. * @static
  1057. */
  1058. public static function callMethodBinding($method, $instance)
  1059. { //Method inherited from \Illuminate\Container\Container
  1060. /** @var \Illuminate\Foundation\Application $instance */
  1061. return $instance->callMethodBinding($method, $instance);
  1062. }
  1063. /**
  1064. * Add a contextual binding to the container.
  1065. *
  1066. * @param string $concrete
  1067. * @param string $abstract
  1068. * @param \Closure|string $implementation
  1069. * @return void
  1070. * @static
  1071. */
  1072. public static function addContextualBinding($concrete, $abstract, $implementation)
  1073. { //Method inherited from \Illuminate\Container\Container
  1074. /** @var \Illuminate\Foundation\Application $instance */
  1075. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1076. }
  1077. /**
  1078. * Register a binding if it hasn't already been registered.
  1079. *
  1080. * @param string $abstract
  1081. * @param \Closure|string|null $concrete
  1082. * @param bool $shared
  1083. * @return void
  1084. * @static
  1085. */
  1086. public static function bindIf($abstract, $concrete = null, $shared = false)
  1087. { //Method inherited from \Illuminate\Container\Container
  1088. /** @var \Illuminate\Foundation\Application $instance */
  1089. $instance->bindIf($abstract, $concrete, $shared);
  1090. }
  1091. /**
  1092. * Register a shared binding in the container.
  1093. *
  1094. * @param string $abstract
  1095. * @param \Closure|string|null $concrete
  1096. * @return void
  1097. * @static
  1098. */
  1099. public static function singleton($abstract, $concrete = null)
  1100. { //Method inherited from \Illuminate\Container\Container
  1101. /** @var \Illuminate\Foundation\Application $instance */
  1102. $instance->singleton($abstract, $concrete);
  1103. }
  1104. /**
  1105. * Register a shared binding if it hasn't already been registered.
  1106. *
  1107. * @param string $abstract
  1108. * @param \Closure|string|null $concrete
  1109. * @return void
  1110. * @static
  1111. */
  1112. public static function singletonIf($abstract, $concrete = null)
  1113. { //Method inherited from \Illuminate\Container\Container
  1114. /** @var \Illuminate\Foundation\Application $instance */
  1115. $instance->singletonIf($abstract, $concrete);
  1116. }
  1117. /**
  1118. * Register a scoped binding in the container.
  1119. *
  1120. * @param string $abstract
  1121. * @param \Closure|string|null $concrete
  1122. * @return void
  1123. * @static
  1124. */
  1125. public static function scoped($abstract, $concrete = null)
  1126. { //Method inherited from \Illuminate\Container\Container
  1127. /** @var \Illuminate\Foundation\Application $instance */
  1128. $instance->scoped($abstract, $concrete);
  1129. }
  1130. /**
  1131. * Register a scoped binding if it hasn't already been registered.
  1132. *
  1133. * @param string $abstract
  1134. * @param \Closure|string|null $concrete
  1135. * @return void
  1136. * @static
  1137. */
  1138. public static function scopedIf($abstract, $concrete = null)
  1139. { //Method inherited from \Illuminate\Container\Container
  1140. /** @var \Illuminate\Foundation\Application $instance */
  1141. $instance->scopedIf($abstract, $concrete);
  1142. }
  1143. /**
  1144. * "Extend" an abstract type in the container.
  1145. *
  1146. * @param string $abstract
  1147. * @param \Closure $closure
  1148. * @return void
  1149. * @throws \InvalidArgumentException
  1150. * @static
  1151. */
  1152. public static function extend($abstract, $closure)
  1153. { //Method inherited from \Illuminate\Container\Container
  1154. /** @var \Illuminate\Foundation\Application $instance */
  1155. $instance->extend($abstract, $closure);
  1156. }
  1157. /**
  1158. * Register an existing instance as shared in the container.
  1159. *
  1160. * @param string $abstract
  1161. * @param mixed $instance
  1162. * @return mixed
  1163. * @static
  1164. */
  1165. public static function instance($abstract, $instance)
  1166. { //Method inherited from \Illuminate\Container\Container
  1167. /** @var \Illuminate\Foundation\Application $instance */
  1168. return $instance->instance($abstract, $instance);
  1169. }
  1170. /**
  1171. * Assign a set of tags to a given binding.
  1172. *
  1173. * @param array|string $abstracts
  1174. * @param array|mixed $tags
  1175. * @return void
  1176. * @static
  1177. */
  1178. public static function tag($abstracts, $tags)
  1179. { //Method inherited from \Illuminate\Container\Container
  1180. /** @var \Illuminate\Foundation\Application $instance */
  1181. $instance->tag($abstracts, $tags);
  1182. }
  1183. /**
  1184. * Resolve all of the bindings for a given tag.
  1185. *
  1186. * @param string $tag
  1187. * @return \Illuminate\Container\iterable
  1188. * @static
  1189. */
  1190. public static function tagged($tag)
  1191. { //Method inherited from \Illuminate\Container\Container
  1192. /** @var \Illuminate\Foundation\Application $instance */
  1193. return $instance->tagged($tag);
  1194. }
  1195. /**
  1196. * Alias a type to a different name.
  1197. *
  1198. * @param string $abstract
  1199. * @param string $alias
  1200. * @return void
  1201. * @throws \LogicException
  1202. * @static
  1203. */
  1204. public static function alias($abstract, $alias)
  1205. { //Method inherited from \Illuminate\Container\Container
  1206. /** @var \Illuminate\Foundation\Application $instance */
  1207. $instance->alias($abstract, $alias);
  1208. }
  1209. /**
  1210. * Bind a new callback to an abstract's rebind event.
  1211. *
  1212. * @param string $abstract
  1213. * @param \Closure $callback
  1214. * @return mixed
  1215. * @static
  1216. */
  1217. public static function rebinding($abstract, $callback)
  1218. { //Method inherited from \Illuminate\Container\Container
  1219. /** @var \Illuminate\Foundation\Application $instance */
  1220. return $instance->rebinding($abstract, $callback);
  1221. }
  1222. /**
  1223. * Refresh an instance on the given target and method.
  1224. *
  1225. * @param string $abstract
  1226. * @param mixed $target
  1227. * @param string $method
  1228. * @return mixed
  1229. * @static
  1230. */
  1231. public static function refresh($abstract, $target, $method)
  1232. { //Method inherited from \Illuminate\Container\Container
  1233. /** @var \Illuminate\Foundation\Application $instance */
  1234. return $instance->refresh($abstract, $target, $method);
  1235. }
  1236. /**
  1237. * Wrap the given closure such that its dependencies will be injected when executed.
  1238. *
  1239. * @param \Closure $callback
  1240. * @param array $parameters
  1241. * @return \Closure
  1242. * @static
  1243. */
  1244. public static function wrap($callback, $parameters = [])
  1245. { //Method inherited from \Illuminate\Container\Container
  1246. /** @var \Illuminate\Foundation\Application $instance */
  1247. return $instance->wrap($callback, $parameters);
  1248. }
  1249. /**
  1250. * Call the given Closure / class@method and inject its dependencies.
  1251. *
  1252. * @param callable|string $callback
  1253. * @param \Illuminate\Container\array<string, mixed> $parameters
  1254. * @param string|null $defaultMethod
  1255. * @return mixed
  1256. * @throws \InvalidArgumentException
  1257. * @static
  1258. */
  1259. public static function call($callback, $parameters = [], $defaultMethod = null)
  1260. { //Method inherited from \Illuminate\Container\Container
  1261. /** @var \Illuminate\Foundation\Application $instance */
  1262. return $instance->call($callback, $parameters, $defaultMethod);
  1263. }
  1264. /**
  1265. * Get a closure to resolve the given type from the container.
  1266. *
  1267. * @param string $abstract
  1268. * @return \Closure
  1269. * @static
  1270. */
  1271. public static function factory($abstract)
  1272. { //Method inherited from \Illuminate\Container\Container
  1273. /** @var \Illuminate\Foundation\Application $instance */
  1274. return $instance->factory($abstract);
  1275. }
  1276. /**
  1277. * An alias function name for make().
  1278. *
  1279. * @param string|callable $abstract
  1280. * @param array $parameters
  1281. * @return mixed
  1282. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1283. * @static
  1284. */
  1285. public static function makeWith($abstract, $parameters = [])
  1286. { //Method inherited from \Illuminate\Container\Container
  1287. /** @var \Illuminate\Foundation\Application $instance */
  1288. return $instance->makeWith($abstract, $parameters);
  1289. }
  1290. /**
  1291. * Finds an entry of the container by its identifier and returns it.
  1292. *
  1293. * @return mixed
  1294. * @param string $id Identifier of the entry to look for.
  1295. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1296. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1297. * @return mixed Entry.
  1298. * @static
  1299. */
  1300. public static function get($id)
  1301. { //Method inherited from \Illuminate\Container\Container
  1302. /** @var \Illuminate\Foundation\Application $instance */
  1303. return $instance->get($id);
  1304. }
  1305. /**
  1306. * Instantiate a concrete instance of the given type.
  1307. *
  1308. * @param \Closure|string $concrete
  1309. * @return mixed
  1310. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1311. * @throws \Illuminate\Contracts\Container\CircularDependencyException
  1312. * @static
  1313. */
  1314. public static function build($concrete)
  1315. { //Method inherited from \Illuminate\Container\Container
  1316. /** @var \Illuminate\Foundation\Application $instance */
  1317. return $instance->build($concrete);
  1318. }
  1319. /**
  1320. * Register a new before resolving callback for all types.
  1321. *
  1322. * @param \Closure|string $abstract
  1323. * @param \Closure|null $callback
  1324. * @return void
  1325. * @static
  1326. */
  1327. public static function beforeResolving($abstract, $callback = null)
  1328. { //Method inherited from \Illuminate\Container\Container
  1329. /** @var \Illuminate\Foundation\Application $instance */
  1330. $instance->beforeResolving($abstract, $callback);
  1331. }
  1332. /**
  1333. * Register a new resolving callback.
  1334. *
  1335. * @param \Closure|string $abstract
  1336. * @param \Closure|null $callback
  1337. * @return void
  1338. * @static
  1339. */
  1340. public static function resolving($abstract, $callback = null)
  1341. { //Method inherited from \Illuminate\Container\Container
  1342. /** @var \Illuminate\Foundation\Application $instance */
  1343. $instance->resolving($abstract, $callback);
  1344. }
  1345. /**
  1346. * Register a new after resolving callback for all types.
  1347. *
  1348. * @param \Closure|string $abstract
  1349. * @param \Closure|null $callback
  1350. * @return void
  1351. * @static
  1352. */
  1353. public static function afterResolving($abstract, $callback = null)
  1354. { //Method inherited from \Illuminate\Container\Container
  1355. /** @var \Illuminate\Foundation\Application $instance */
  1356. $instance->afterResolving($abstract, $callback);
  1357. }
  1358. /**
  1359. * Get the container's bindings.
  1360. *
  1361. * @return array
  1362. * @static
  1363. */
  1364. public static function getBindings()
  1365. { //Method inherited from \Illuminate\Container\Container
  1366. /** @var \Illuminate\Foundation\Application $instance */
  1367. return $instance->getBindings();
  1368. }
  1369. /**
  1370. * Get the alias for an abstract if available.
  1371. *
  1372. * @param string $abstract
  1373. * @return string
  1374. * @static
  1375. */
  1376. public static function getAlias($abstract)
  1377. { //Method inherited from \Illuminate\Container\Container
  1378. /** @var \Illuminate\Foundation\Application $instance */
  1379. return $instance->getAlias($abstract);
  1380. }
  1381. /**
  1382. * Remove all of the extender callbacks for a given type.
  1383. *
  1384. * @param string $abstract
  1385. * @return void
  1386. * @static
  1387. */
  1388. public static function forgetExtenders($abstract)
  1389. { //Method inherited from \Illuminate\Container\Container
  1390. /** @var \Illuminate\Foundation\Application $instance */
  1391. $instance->forgetExtenders($abstract);
  1392. }
  1393. /**
  1394. * Remove a resolved instance from the instance cache.
  1395. *
  1396. * @param string $abstract
  1397. * @return void
  1398. * @static
  1399. */
  1400. public static function forgetInstance($abstract)
  1401. { //Method inherited from \Illuminate\Container\Container
  1402. /** @var \Illuminate\Foundation\Application $instance */
  1403. $instance->forgetInstance($abstract);
  1404. }
  1405. /**
  1406. * Clear all of the instances from the container.
  1407. *
  1408. * @return void
  1409. * @static
  1410. */
  1411. public static function forgetInstances()
  1412. { //Method inherited from \Illuminate\Container\Container
  1413. /** @var \Illuminate\Foundation\Application $instance */
  1414. $instance->forgetInstances();
  1415. }
  1416. /**
  1417. * Clear all of the scoped instances from the container.
  1418. *
  1419. * @return void
  1420. * @static
  1421. */
  1422. public static function forgetScopedInstances()
  1423. { //Method inherited from \Illuminate\Container\Container
  1424. /** @var \Illuminate\Foundation\Application $instance */
  1425. $instance->forgetScopedInstances();
  1426. }
  1427. /**
  1428. * Get the globally available instance of the container.
  1429. *
  1430. * @return static
  1431. * @static
  1432. */
  1433. public static function getInstance()
  1434. { //Method inherited from \Illuminate\Container\Container
  1435. return \Illuminate\Foundation\Application::getInstance();
  1436. }
  1437. /**
  1438. * Set the shared instance of the container.
  1439. *
  1440. * @param \Illuminate\Contracts\Container\Container|null $container
  1441. * @return \Illuminate\Contracts\Container\Container|static
  1442. * @static
  1443. */
  1444. public static function setInstance($container = null)
  1445. { //Method inherited from \Illuminate\Container\Container
  1446. return \Illuminate\Foundation\Application::setInstance($container);
  1447. }
  1448. /**
  1449. * Determine if a given offset exists.
  1450. *
  1451. * @param string $key
  1452. * @return bool
  1453. * @static
  1454. */
  1455. public static function offsetExists($key)
  1456. { //Method inherited from \Illuminate\Container\Container
  1457. /** @var \Illuminate\Foundation\Application $instance */
  1458. return $instance->offsetExists($key);
  1459. }
  1460. /**
  1461. * Get the value at a given offset.
  1462. *
  1463. * @param string $key
  1464. * @return mixed
  1465. * @static
  1466. */
  1467. public static function offsetGet($key)
  1468. { //Method inherited from \Illuminate\Container\Container
  1469. /** @var \Illuminate\Foundation\Application $instance */
  1470. return $instance->offsetGet($key);
  1471. }
  1472. /**
  1473. * Set the value at a given offset.
  1474. *
  1475. * @param string $key
  1476. * @param mixed $value
  1477. * @return void
  1478. * @static
  1479. */
  1480. public static function offsetSet($key, $value)
  1481. { //Method inherited from \Illuminate\Container\Container
  1482. /** @var \Illuminate\Foundation\Application $instance */
  1483. $instance->offsetSet($key, $value);
  1484. }
  1485. /**
  1486. * Unset the value at a given offset.
  1487. *
  1488. * @param string $key
  1489. * @return void
  1490. * @static
  1491. */
  1492. public static function offsetUnset($key)
  1493. { //Method inherited from \Illuminate\Container\Container
  1494. /** @var \Illuminate\Foundation\Application $instance */
  1495. $instance->offsetUnset($key);
  1496. }
  1497. /**
  1498. * Register a custom macro.
  1499. *
  1500. * @param string $name
  1501. * @param object|callable $macro
  1502. * @return void
  1503. * @static
  1504. */
  1505. public static function macro($name, $macro)
  1506. {
  1507. \Illuminate\Foundation\Application::macro($name, $macro);
  1508. }
  1509. /**
  1510. * Mix another object into the class.
  1511. *
  1512. * @param object $mixin
  1513. * @param bool $replace
  1514. * @return void
  1515. * @throws \ReflectionException
  1516. * @static
  1517. */
  1518. public static function mixin($mixin, $replace = true)
  1519. {
  1520. \Illuminate\Foundation\Application::mixin($mixin, $replace);
  1521. }
  1522. /**
  1523. * Checks if macro is registered.
  1524. *
  1525. * @param string $name
  1526. * @return bool
  1527. * @static
  1528. */
  1529. public static function hasMacro($name)
  1530. {
  1531. return \Illuminate\Foundation\Application::hasMacro($name);
  1532. }
  1533. /**
  1534. * Flush the existing macros.
  1535. *
  1536. * @return void
  1537. * @static
  1538. */
  1539. public static function flushMacros()
  1540. {
  1541. \Illuminate\Foundation\Application::flushMacros();
  1542. }
  1543. }
  1544. /**
  1545. *
  1546. *
  1547. * @see \Illuminate\Contracts\Console\Kernel
  1548. */
  1549. class Artisan {
  1550. /**
  1551. * Run the console application.
  1552. *
  1553. * @param \Symfony\Component\Console\Input\InputInterface $input
  1554. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1555. * @return int
  1556. * @static
  1557. */
  1558. public static function handle($input, $output = null)
  1559. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1560. /** @var \App\Console\Kernel $instance */
  1561. return $instance->handle($input, $output);
  1562. }
  1563. /**
  1564. * Terminate the application.
  1565. *
  1566. * @param \Symfony\Component\Console\Input\InputInterface $input
  1567. * @param int $status
  1568. * @return void
  1569. * @static
  1570. */
  1571. public static function terminate($input, $status)
  1572. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1573. /** @var \App\Console\Kernel $instance */
  1574. $instance->terminate($input, $status);
  1575. }
  1576. /**
  1577. * Register a callback to be invoked when the command lifecyle duration exceeds a given amount of time.
  1578. *
  1579. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  1580. * @param callable $handler
  1581. * @return void
  1582. * @static
  1583. */
  1584. public static function whenCommandLifecycleIsLongerThan($threshold, $handler)
  1585. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1586. /** @var \App\Console\Kernel $instance */
  1587. $instance->whenCommandLifecycleIsLongerThan($threshold, $handler);
  1588. }
  1589. /**
  1590. * When the command being handled started.
  1591. *
  1592. * @return \Illuminate\Support\Carbon|null
  1593. * @static
  1594. */
  1595. public static function commandStartedAt()
  1596. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1597. /** @var \App\Console\Kernel $instance */
  1598. return $instance->commandStartedAt();
  1599. }
  1600. /**
  1601. * Register a Closure based command with the application.
  1602. *
  1603. * @param string $signature
  1604. * @param \Closure $callback
  1605. * @return \Illuminate\Foundation\Console\ClosureCommand
  1606. * @static
  1607. */
  1608. public static function command($signature, $callback)
  1609. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1610. /** @var \App\Console\Kernel $instance */
  1611. return $instance->command($signature, $callback);
  1612. }
  1613. /**
  1614. * Register the given command with the console application.
  1615. *
  1616. * @param \Symfony\Component\Console\Command\Command $command
  1617. * @return void
  1618. * @static
  1619. */
  1620. public static function registerCommand($command)
  1621. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1622. /** @var \App\Console\Kernel $instance */
  1623. $instance->registerCommand($command);
  1624. }
  1625. /**
  1626. * Run an Artisan console command by name.
  1627. *
  1628. * @param string $command
  1629. * @param array $parameters
  1630. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1631. * @return int
  1632. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1633. * @static
  1634. */
  1635. public static function call($command, $parameters = [], $outputBuffer = null)
  1636. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1637. /** @var \App\Console\Kernel $instance */
  1638. return $instance->call($command, $parameters, $outputBuffer);
  1639. }
  1640. /**
  1641. * Queue the given console command.
  1642. *
  1643. * @param string $command
  1644. * @param array $parameters
  1645. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1646. * @static
  1647. */
  1648. public static function queue($command, $parameters = [])
  1649. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1650. /** @var \App\Console\Kernel $instance */
  1651. return $instance->queue($command, $parameters);
  1652. }
  1653. /**
  1654. * Get all of the commands registered with the console.
  1655. *
  1656. * @return array
  1657. * @static
  1658. */
  1659. public static function all()
  1660. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1661. /** @var \App\Console\Kernel $instance */
  1662. return $instance->all();
  1663. }
  1664. /**
  1665. * Get the output for the last run command.
  1666. *
  1667. * @return string
  1668. * @static
  1669. */
  1670. public static function output()
  1671. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1672. /** @var \App\Console\Kernel $instance */
  1673. return $instance->output();
  1674. }
  1675. /**
  1676. * Bootstrap the application for artisan commands.
  1677. *
  1678. * @return void
  1679. * @static
  1680. */
  1681. public static function bootstrap()
  1682. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1683. /** @var \App\Console\Kernel $instance */
  1684. $instance->bootstrap();
  1685. }
  1686. /**
  1687. * Bootstrap the application without booting service providers.
  1688. *
  1689. * @return void
  1690. * @static
  1691. */
  1692. public static function bootstrapWithoutBootingProviders()
  1693. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1694. /** @var \App\Console\Kernel $instance */
  1695. $instance->bootstrapWithoutBootingProviders();
  1696. }
  1697. /**
  1698. * Set the Artisan application instance.
  1699. *
  1700. * @param \Illuminate\Console\Application $artisan
  1701. * @return void
  1702. * @static
  1703. */
  1704. public static function setArtisan($artisan)
  1705. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1706. /** @var \App\Console\Kernel $instance */
  1707. $instance->setArtisan($artisan);
  1708. }
  1709. }
  1710. /**
  1711. *
  1712. *
  1713. * @see \Illuminate\Auth\AuthManager
  1714. * @see \Illuminate\Contracts\Auth\Factory
  1715. * @see \Illuminate\Contracts\Auth\Guard
  1716. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1717. */
  1718. class Auth {
  1719. /**
  1720. * Attempt to get the guard from the local cache.
  1721. *
  1722. * @param string|null $name
  1723. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1724. * @static
  1725. */
  1726. public static function guard($name = null)
  1727. {
  1728. /** @var \Illuminate\Auth\AuthManager $instance */
  1729. return $instance->guard($name);
  1730. }
  1731. /**
  1732. * Create a session based authentication guard.
  1733. *
  1734. * @param string $name
  1735. * @param array $config
  1736. * @return \Illuminate\Auth\SessionGuard
  1737. * @static
  1738. */
  1739. public static function createSessionDriver($name, $config)
  1740. {
  1741. /** @var \Illuminate\Auth\AuthManager $instance */
  1742. return $instance->createSessionDriver($name, $config);
  1743. }
  1744. /**
  1745. * Create a token based authentication guard.
  1746. *
  1747. * @param string $name
  1748. * @param array $config
  1749. * @return \Illuminate\Auth\TokenGuard
  1750. * @static
  1751. */
  1752. public static function createTokenDriver($name, $config)
  1753. {
  1754. /** @var \Illuminate\Auth\AuthManager $instance */
  1755. return $instance->createTokenDriver($name, $config);
  1756. }
  1757. /**
  1758. * Get the default authentication driver name.
  1759. *
  1760. * @return string
  1761. * @static
  1762. */
  1763. public static function getDefaultDriver()
  1764. {
  1765. /** @var \Illuminate\Auth\AuthManager $instance */
  1766. return $instance->getDefaultDriver();
  1767. }
  1768. /**
  1769. * Set the default guard driver the factory should serve.
  1770. *
  1771. * @param string $name
  1772. * @return void
  1773. * @static
  1774. */
  1775. public static function shouldUse($name)
  1776. {
  1777. /** @var \Illuminate\Auth\AuthManager $instance */
  1778. $instance->shouldUse($name);
  1779. }
  1780. /**
  1781. * Set the default authentication driver name.
  1782. *
  1783. * @param string $name
  1784. * @return void
  1785. * @static
  1786. */
  1787. public static function setDefaultDriver($name)
  1788. {
  1789. /** @var \Illuminate\Auth\AuthManager $instance */
  1790. $instance->setDefaultDriver($name);
  1791. }
  1792. /**
  1793. * Register a new callback based request guard.
  1794. *
  1795. * @param string $driver
  1796. * @param callable $callback
  1797. * @return \Illuminate\Auth\AuthManager
  1798. * @static
  1799. */
  1800. public static function viaRequest($driver, $callback)
  1801. {
  1802. /** @var \Illuminate\Auth\AuthManager $instance */
  1803. return $instance->viaRequest($driver, $callback);
  1804. }
  1805. /**
  1806. * Get the user resolver callback.
  1807. *
  1808. * @return \Closure
  1809. * @static
  1810. */
  1811. public static function userResolver()
  1812. {
  1813. /** @var \Illuminate\Auth\AuthManager $instance */
  1814. return $instance->userResolver();
  1815. }
  1816. /**
  1817. * Set the callback to be used to resolve users.
  1818. *
  1819. * @param \Closure $userResolver
  1820. * @return \Illuminate\Auth\AuthManager
  1821. * @static
  1822. */
  1823. public static function resolveUsersUsing($userResolver)
  1824. {
  1825. /** @var \Illuminate\Auth\AuthManager $instance */
  1826. return $instance->resolveUsersUsing($userResolver);
  1827. }
  1828. /**
  1829. * Register a custom driver creator Closure.
  1830. *
  1831. * @param string $driver
  1832. * @param \Closure $callback
  1833. * @return \Illuminate\Auth\AuthManager
  1834. * @static
  1835. */
  1836. public static function extend($driver, $callback)
  1837. {
  1838. /** @var \Illuminate\Auth\AuthManager $instance */
  1839. return $instance->extend($driver, $callback);
  1840. }
  1841. /**
  1842. * Register a custom provider creator Closure.
  1843. *
  1844. * @param string $name
  1845. * @param \Closure $callback
  1846. * @return \Illuminate\Auth\AuthManager
  1847. * @static
  1848. */
  1849. public static function provider($name, $callback)
  1850. {
  1851. /** @var \Illuminate\Auth\AuthManager $instance */
  1852. return $instance->provider($name, $callback);
  1853. }
  1854. /**
  1855. * Determines if any guards have already been resolved.
  1856. *
  1857. * @return bool
  1858. * @static
  1859. */
  1860. public static function hasResolvedGuards()
  1861. {
  1862. /** @var \Illuminate\Auth\AuthManager $instance */
  1863. return $instance->hasResolvedGuards();
  1864. }
  1865. /**
  1866. * Forget all of the resolved guard instances.
  1867. *
  1868. * @return \Illuminate\Auth\AuthManager
  1869. * @static
  1870. */
  1871. public static function forgetGuards()
  1872. {
  1873. /** @var \Illuminate\Auth\AuthManager $instance */
  1874. return $instance->forgetGuards();
  1875. }
  1876. /**
  1877. * Set the application instance used by the manager.
  1878. *
  1879. * @param \Illuminate\Contracts\Foundation\Application $app
  1880. * @return \Illuminate\Auth\AuthManager
  1881. * @static
  1882. */
  1883. public static function setApplication($app)
  1884. {
  1885. /** @var \Illuminate\Auth\AuthManager $instance */
  1886. return $instance->setApplication($app);
  1887. }
  1888. /**
  1889. * Create the user provider implementation for the driver.
  1890. *
  1891. * @param string|null $provider
  1892. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1893. * @throws \InvalidArgumentException
  1894. * @static
  1895. */
  1896. public static function createUserProvider($provider = null)
  1897. {
  1898. /** @var \Illuminate\Auth\AuthManager $instance */
  1899. return $instance->createUserProvider($provider);
  1900. }
  1901. /**
  1902. * Get the default user provider name.
  1903. *
  1904. * @return string
  1905. * @static
  1906. */
  1907. public static function getDefaultUserProvider()
  1908. {
  1909. /** @var \Illuminate\Auth\AuthManager $instance */
  1910. return $instance->getDefaultUserProvider();
  1911. }
  1912. /**
  1913. * Get the currently authenticated user.
  1914. *
  1915. * @return \App\Models\User|null
  1916. * @static
  1917. */
  1918. public static function user()
  1919. {
  1920. /** @var \Illuminate\Auth\SessionGuard $instance */
  1921. return $instance->user();
  1922. }
  1923. /**
  1924. * Get the ID for the currently authenticated user.
  1925. *
  1926. * @return int|string|null
  1927. * @static
  1928. */
  1929. public static function id()
  1930. {
  1931. /** @var \Illuminate\Auth\SessionGuard $instance */
  1932. return $instance->id();
  1933. }
  1934. /**
  1935. * Log a user into the application without sessions or cookies.
  1936. *
  1937. * @param array $credentials
  1938. * @return bool
  1939. * @static
  1940. */
  1941. public static function once($credentials = [])
  1942. {
  1943. /** @var \Illuminate\Auth\SessionGuard $instance */
  1944. return $instance->once($credentials);
  1945. }
  1946. /**
  1947. * Log the given user ID into the application without sessions or cookies.
  1948. *
  1949. * @param mixed $id
  1950. * @return \App\Models\User|false
  1951. * @static
  1952. */
  1953. public static function onceUsingId($id)
  1954. {
  1955. /** @var \Illuminate\Auth\SessionGuard $instance */
  1956. return $instance->onceUsingId($id);
  1957. }
  1958. /**
  1959. * Validate a user's credentials.
  1960. *
  1961. * @param array $credentials
  1962. * @return bool
  1963. * @static
  1964. */
  1965. public static function validate($credentials = [])
  1966. {
  1967. /** @var \Illuminate\Auth\SessionGuard $instance */
  1968. return $instance->validate($credentials);
  1969. }
  1970. /**
  1971. * Attempt to authenticate using HTTP Basic Auth.
  1972. *
  1973. * @param string $field
  1974. * @param array $extraConditions
  1975. * @return \Symfony\Component\HttpFoundation\Response|null
  1976. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1977. * @static
  1978. */
  1979. public static function basic($field = 'email', $extraConditions = [])
  1980. {
  1981. /** @var \Illuminate\Auth\SessionGuard $instance */
  1982. return $instance->basic($field, $extraConditions);
  1983. }
  1984. /**
  1985. * Perform a stateless HTTP Basic login attempt.
  1986. *
  1987. * @param string $field
  1988. * @param array $extraConditions
  1989. * @return \Symfony\Component\HttpFoundation\Response|null
  1990. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1991. * @static
  1992. */
  1993. public static function onceBasic($field = 'email', $extraConditions = [])
  1994. {
  1995. /** @var \Illuminate\Auth\SessionGuard $instance */
  1996. return $instance->onceBasic($field, $extraConditions);
  1997. }
  1998. /**
  1999. * Attempt to authenticate a user using the given credentials.
  2000. *
  2001. * @param array $credentials
  2002. * @param bool $remember
  2003. * @return bool
  2004. * @static
  2005. */
  2006. public static function attempt($credentials = [], $remember = false)
  2007. {
  2008. /** @var \Illuminate\Auth\SessionGuard $instance */
  2009. return $instance->attempt($credentials, $remember);
  2010. }
  2011. /**
  2012. * Attempt to authenticate a user with credentials and additional callbacks.
  2013. *
  2014. * @param array $credentials
  2015. * @param array|callable $callbacks
  2016. * @param bool $remember
  2017. * @return bool
  2018. * @static
  2019. */
  2020. public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
  2021. {
  2022. /** @var \Illuminate\Auth\SessionGuard $instance */
  2023. return $instance->attemptWhen($credentials, $callbacks, $remember);
  2024. }
  2025. /**
  2026. * Log the given user ID into the application.
  2027. *
  2028. * @param mixed $id
  2029. * @param bool $remember
  2030. * @return \App\Models\User|false
  2031. * @static
  2032. */
  2033. public static function loginUsingId($id, $remember = false)
  2034. {
  2035. /** @var \Illuminate\Auth\SessionGuard $instance */
  2036. return $instance->loginUsingId($id, $remember);
  2037. }
  2038. /**
  2039. * Log a user into the application.
  2040. *
  2041. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2042. * @param bool $remember
  2043. * @return void
  2044. * @static
  2045. */
  2046. public static function login($user, $remember = false)
  2047. {
  2048. /** @var \Illuminate\Auth\SessionGuard $instance */
  2049. $instance->login($user, $remember);
  2050. }
  2051. /**
  2052. * Log the user out of the application.
  2053. *
  2054. * @return void
  2055. * @static
  2056. */
  2057. public static function logout()
  2058. {
  2059. /** @var \Illuminate\Auth\SessionGuard $instance */
  2060. $instance->logout();
  2061. }
  2062. /**
  2063. * Log the user out of the application on their current device only.
  2064. *
  2065. * This method does not cycle the "remember" token.
  2066. *
  2067. * @return void
  2068. * @static
  2069. */
  2070. public static function logoutCurrentDevice()
  2071. {
  2072. /** @var \Illuminate\Auth\SessionGuard $instance */
  2073. $instance->logoutCurrentDevice();
  2074. }
  2075. /**
  2076. * Invalidate other sessions for the current user.
  2077. *
  2078. * The application must be using the AuthenticateSession middleware.
  2079. *
  2080. * @param string $password
  2081. * @param string $attribute
  2082. * @return \App\Models\User|null
  2083. * @throws \Illuminate\Auth\AuthenticationException
  2084. * @static
  2085. */
  2086. public static function logoutOtherDevices($password, $attribute = 'password')
  2087. {
  2088. /** @var \Illuminate\Auth\SessionGuard $instance */
  2089. return $instance->logoutOtherDevices($password, $attribute);
  2090. }
  2091. /**
  2092. * Register an authentication attempt event listener.
  2093. *
  2094. * @param mixed $callback
  2095. * @return void
  2096. * @static
  2097. */
  2098. public static function attempting($callback)
  2099. {
  2100. /** @var \Illuminate\Auth\SessionGuard $instance */
  2101. $instance->attempting($callback);
  2102. }
  2103. /**
  2104. * Get the last user we attempted to authenticate.
  2105. *
  2106. * @return \App\Models\User
  2107. * @static
  2108. */
  2109. public static function getLastAttempted()
  2110. {
  2111. /** @var \Illuminate\Auth\SessionGuard $instance */
  2112. return $instance->getLastAttempted();
  2113. }
  2114. /**
  2115. * Get a unique identifier for the auth session value.
  2116. *
  2117. * @return string
  2118. * @static
  2119. */
  2120. public static function getName()
  2121. {
  2122. /** @var \Illuminate\Auth\SessionGuard $instance */
  2123. return $instance->getName();
  2124. }
  2125. /**
  2126. * Get the name of the cookie used to store the "recaller".
  2127. *
  2128. * @return string
  2129. * @static
  2130. */
  2131. public static function getRecallerName()
  2132. {
  2133. /** @var \Illuminate\Auth\SessionGuard $instance */
  2134. return $instance->getRecallerName();
  2135. }
  2136. /**
  2137. * Determine if the user was authenticated via "remember me" cookie.
  2138. *
  2139. * @return bool
  2140. * @static
  2141. */
  2142. public static function viaRemember()
  2143. {
  2144. /** @var \Illuminate\Auth\SessionGuard $instance */
  2145. return $instance->viaRemember();
  2146. }
  2147. /**
  2148. * Set the number of minutes the remember me cookie should be valid for.
  2149. *
  2150. * @param int $minutes
  2151. * @return \Illuminate\Auth\SessionGuard
  2152. * @static
  2153. */
  2154. public static function setRememberDuration($minutes)
  2155. {
  2156. /** @var \Illuminate\Auth\SessionGuard $instance */
  2157. return $instance->setRememberDuration($minutes);
  2158. }
  2159. /**
  2160. * Get the cookie creator instance used by the guard.
  2161. *
  2162. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  2163. * @throws \RuntimeException
  2164. * @static
  2165. */
  2166. public static function getCookieJar()
  2167. {
  2168. /** @var \Illuminate\Auth\SessionGuard $instance */
  2169. return $instance->getCookieJar();
  2170. }
  2171. /**
  2172. * Set the cookie creator instance used by the guard.
  2173. *
  2174. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  2175. * @return void
  2176. * @static
  2177. */
  2178. public static function setCookieJar($cookie)
  2179. {
  2180. /** @var \Illuminate\Auth\SessionGuard $instance */
  2181. $instance->setCookieJar($cookie);
  2182. }
  2183. /**
  2184. * Get the event dispatcher instance.
  2185. *
  2186. * @return \Illuminate\Contracts\Events\Dispatcher
  2187. * @static
  2188. */
  2189. public static function getDispatcher()
  2190. {
  2191. /** @var \Illuminate\Auth\SessionGuard $instance */
  2192. return $instance->getDispatcher();
  2193. }
  2194. /**
  2195. * Set the event dispatcher instance.
  2196. *
  2197. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2198. * @return void
  2199. * @static
  2200. */
  2201. public static function setDispatcher($events)
  2202. {
  2203. /** @var \Illuminate\Auth\SessionGuard $instance */
  2204. $instance->setDispatcher($events);
  2205. }
  2206. /**
  2207. * Get the session store used by the guard.
  2208. *
  2209. * @return \Illuminate\Contracts\Session\Session
  2210. * @static
  2211. */
  2212. public static function getSession()
  2213. {
  2214. /** @var \Illuminate\Auth\SessionGuard $instance */
  2215. return $instance->getSession();
  2216. }
  2217. /**
  2218. * Return the currently cached user.
  2219. *
  2220. * @return \App\Models\User|null
  2221. * @static
  2222. */
  2223. public static function getUser()
  2224. {
  2225. /** @var \Illuminate\Auth\SessionGuard $instance */
  2226. return $instance->getUser();
  2227. }
  2228. /**
  2229. * Set the current user.
  2230. *
  2231. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2232. * @return \Illuminate\Auth\SessionGuard
  2233. * @static
  2234. */
  2235. public static function setUser($user)
  2236. {
  2237. /** @var \Illuminate\Auth\SessionGuard $instance */
  2238. return $instance->setUser($user);
  2239. }
  2240. /**
  2241. * Get the current request instance.
  2242. *
  2243. * @return \Symfony\Component\HttpFoundation\Request
  2244. * @static
  2245. */
  2246. public static function getRequest()
  2247. {
  2248. /** @var \Illuminate\Auth\SessionGuard $instance */
  2249. return $instance->getRequest();
  2250. }
  2251. /**
  2252. * Set the current request instance.
  2253. *
  2254. * @param \Symfony\Component\HttpFoundation\Request $request
  2255. * @return \Illuminate\Auth\SessionGuard
  2256. * @static
  2257. */
  2258. public static function setRequest($request)
  2259. {
  2260. /** @var \Illuminate\Auth\SessionGuard $instance */
  2261. return $instance->setRequest($request);
  2262. }
  2263. /**
  2264. * Get the timebox instance used by the guard.
  2265. *
  2266. * @return \Illuminate\Support\Timebox
  2267. * @static
  2268. */
  2269. public static function getTimebox()
  2270. {
  2271. /** @var \Illuminate\Auth\SessionGuard $instance */
  2272. return $instance->getTimebox();
  2273. }
  2274. /**
  2275. * Determine if the current user is authenticated. If not, throw an exception.
  2276. *
  2277. * @return \App\Models\User
  2278. * @throws \Illuminate\Auth\AuthenticationException
  2279. * @static
  2280. */
  2281. public static function authenticate()
  2282. {
  2283. /** @var \Illuminate\Auth\SessionGuard $instance */
  2284. return $instance->authenticate();
  2285. }
  2286. /**
  2287. * Determine if the guard has a user instance.
  2288. *
  2289. * @return bool
  2290. * @static
  2291. */
  2292. public static function hasUser()
  2293. {
  2294. /** @var \Illuminate\Auth\SessionGuard $instance */
  2295. return $instance->hasUser();
  2296. }
  2297. /**
  2298. * Determine if the current user is authenticated.
  2299. *
  2300. * @return bool
  2301. * @static
  2302. */
  2303. public static function check()
  2304. {
  2305. /** @var \Illuminate\Auth\SessionGuard $instance */
  2306. return $instance->check();
  2307. }
  2308. /**
  2309. * Determine if the current user is a guest.
  2310. *
  2311. * @return bool
  2312. * @static
  2313. */
  2314. public static function guest()
  2315. {
  2316. /** @var \Illuminate\Auth\SessionGuard $instance */
  2317. return $instance->guest();
  2318. }
  2319. /**
  2320. * Get the user provider used by the guard.
  2321. *
  2322. * @return \Illuminate\Contracts\Auth\UserProvider
  2323. * @static
  2324. */
  2325. public static function getProvider()
  2326. {
  2327. /** @var \Illuminate\Auth\SessionGuard $instance */
  2328. return $instance->getProvider();
  2329. }
  2330. /**
  2331. * Set the user provider used by the guard.
  2332. *
  2333. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2334. * @return void
  2335. * @static
  2336. */
  2337. public static function setProvider($provider)
  2338. {
  2339. /** @var \Illuminate\Auth\SessionGuard $instance */
  2340. $instance->setProvider($provider);
  2341. }
  2342. /**
  2343. * Register a custom macro.
  2344. *
  2345. * @param string $name
  2346. * @param object|callable $macro
  2347. * @return void
  2348. * @static
  2349. */
  2350. public static function macro($name, $macro)
  2351. {
  2352. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2353. }
  2354. /**
  2355. * Mix another object into the class.
  2356. *
  2357. * @param object $mixin
  2358. * @param bool $replace
  2359. * @return void
  2360. * @throws \ReflectionException
  2361. * @static
  2362. */
  2363. public static function mixin($mixin, $replace = true)
  2364. {
  2365. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2366. }
  2367. /**
  2368. * Checks if macro is registered.
  2369. *
  2370. * @param string $name
  2371. * @return bool
  2372. * @static
  2373. */
  2374. public static function hasMacro($name)
  2375. {
  2376. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2377. }
  2378. /**
  2379. * Flush the existing macros.
  2380. *
  2381. * @return void
  2382. * @static
  2383. */
  2384. public static function flushMacros()
  2385. {
  2386. \Illuminate\Auth\SessionGuard::flushMacros();
  2387. }
  2388. }
  2389. /**
  2390. *
  2391. *
  2392. * @see \Illuminate\View\Compilers\BladeCompiler
  2393. */
  2394. class Blade {
  2395. /**
  2396. * Compile the view at the given path.
  2397. *
  2398. * @param string|null $path
  2399. * @return void
  2400. * @static
  2401. */
  2402. public static function compile($path = null)
  2403. {
  2404. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2405. $instance->compile($path);
  2406. }
  2407. /**
  2408. * Get the path currently being compiled.
  2409. *
  2410. * @return string
  2411. * @static
  2412. */
  2413. public static function getPath()
  2414. {
  2415. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2416. return $instance->getPath();
  2417. }
  2418. /**
  2419. * Set the path currently being compiled.
  2420. *
  2421. * @param string $path
  2422. * @return void
  2423. * @static
  2424. */
  2425. public static function setPath($path)
  2426. {
  2427. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2428. $instance->setPath($path);
  2429. }
  2430. /**
  2431. * Compile the given Blade template contents.
  2432. *
  2433. * @param string $value
  2434. * @return string
  2435. * @static
  2436. */
  2437. public static function compileString($value)
  2438. {
  2439. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2440. return $instance->compileString($value);
  2441. }
  2442. /**
  2443. * Evaluate and render a Blade string to HTML.
  2444. *
  2445. * @param string $string
  2446. * @param array $data
  2447. * @param bool $deleteCachedView
  2448. * @return string
  2449. * @static
  2450. */
  2451. public static function render($string, $data = [], $deleteCachedView = false)
  2452. {
  2453. return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
  2454. }
  2455. /**
  2456. * Render a component instance to HTML.
  2457. *
  2458. * @param \Illuminate\View\Component $component
  2459. * @return string
  2460. * @static
  2461. */
  2462. public static function renderComponent($component)
  2463. {
  2464. return \Illuminate\View\Compilers\BladeCompiler::renderComponent($component);
  2465. }
  2466. /**
  2467. * Strip the parentheses from the given expression.
  2468. *
  2469. * @param string $expression
  2470. * @return string
  2471. * @static
  2472. */
  2473. public static function stripParentheses($expression)
  2474. {
  2475. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2476. return $instance->stripParentheses($expression);
  2477. }
  2478. /**
  2479. * Register a custom Blade compiler.
  2480. *
  2481. * @param callable $compiler
  2482. * @return void
  2483. * @static
  2484. */
  2485. public static function extend($compiler)
  2486. {
  2487. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2488. $instance->extend($compiler);
  2489. }
  2490. /**
  2491. * Get the extensions used by the compiler.
  2492. *
  2493. * @return array
  2494. * @static
  2495. */
  2496. public static function getExtensions()
  2497. {
  2498. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2499. return $instance->getExtensions();
  2500. }
  2501. /**
  2502. * Register an "if" statement directive.
  2503. *
  2504. * @param string $name
  2505. * @param callable $callback
  2506. * @return void
  2507. * @static
  2508. */
  2509. public static function if($name, $callback)
  2510. {
  2511. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2512. $instance->if($name, $callback);
  2513. }
  2514. /**
  2515. * Check the result of a condition.
  2516. *
  2517. * @param string $name
  2518. * @param array $parameters
  2519. * @return bool
  2520. * @static
  2521. */
  2522. public static function check($name, ...$parameters)
  2523. {
  2524. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2525. return $instance->check($name, ...$parameters);
  2526. }
  2527. /**
  2528. * Register a class-based component alias directive.
  2529. *
  2530. * @param string $class
  2531. * @param string|null $alias
  2532. * @param string $prefix
  2533. * @return void
  2534. * @static
  2535. */
  2536. public static function component($class, $alias = null, $prefix = '')
  2537. {
  2538. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2539. $instance->component($class, $alias, $prefix);
  2540. }
  2541. /**
  2542. * Register an array of class-based components.
  2543. *
  2544. * @param array $components
  2545. * @param string $prefix
  2546. * @return void
  2547. * @static
  2548. */
  2549. public static function components($components, $prefix = '')
  2550. {
  2551. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2552. $instance->components($components, $prefix);
  2553. }
  2554. /**
  2555. * Get the registered class component aliases.
  2556. *
  2557. * @return array
  2558. * @static
  2559. */
  2560. public static function getClassComponentAliases()
  2561. {
  2562. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2563. return $instance->getClassComponentAliases();
  2564. }
  2565. /**
  2566. * Register an anonymous component namespace.
  2567. *
  2568. * @param string $directory
  2569. * @param string|null $prefix
  2570. * @return void
  2571. * @static
  2572. */
  2573. public static function anonymousComponentNamespace($directory, $prefix = null)
  2574. {
  2575. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2576. $instance->anonymousComponentNamespace($directory, $prefix);
  2577. }
  2578. /**
  2579. * Register a class-based component namespace.
  2580. *
  2581. * @param string $namespace
  2582. * @param string $prefix
  2583. * @return void
  2584. * @static
  2585. */
  2586. public static function componentNamespace($namespace, $prefix)
  2587. {
  2588. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2589. $instance->componentNamespace($namespace, $prefix);
  2590. }
  2591. /**
  2592. * Get the registered anonymous component namespaces.
  2593. *
  2594. * @return array
  2595. * @static
  2596. */
  2597. public static function getAnonymousComponentNamespaces()
  2598. {
  2599. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2600. return $instance->getAnonymousComponentNamespaces();
  2601. }
  2602. /**
  2603. * Get the registered class component namespaces.
  2604. *
  2605. * @return array
  2606. * @static
  2607. */
  2608. public static function getClassComponentNamespaces()
  2609. {
  2610. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2611. return $instance->getClassComponentNamespaces();
  2612. }
  2613. /**
  2614. * Register a component alias directive.
  2615. *
  2616. * @param string $path
  2617. * @param string|null $alias
  2618. * @return void
  2619. * @static
  2620. */
  2621. public static function aliasComponent($path, $alias = null)
  2622. {
  2623. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2624. $instance->aliasComponent($path, $alias);
  2625. }
  2626. /**
  2627. * Register an include alias directive.
  2628. *
  2629. * @param string $path
  2630. * @param string|null $alias
  2631. * @return void
  2632. * @static
  2633. */
  2634. public static function include($path, $alias = null)
  2635. {
  2636. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2637. $instance->include($path, $alias);
  2638. }
  2639. /**
  2640. * Register an include alias directive.
  2641. *
  2642. * @param string $path
  2643. * @param string|null $alias
  2644. * @return void
  2645. * @static
  2646. */
  2647. public static function aliasInclude($path, $alias = null)
  2648. {
  2649. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2650. $instance->aliasInclude($path, $alias);
  2651. }
  2652. /**
  2653. * Register a handler for custom directives.
  2654. *
  2655. * @param string $name
  2656. * @param callable $handler
  2657. * @return void
  2658. * @throws \InvalidArgumentException
  2659. * @static
  2660. */
  2661. public static function directive($name, $handler)
  2662. {
  2663. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2664. $instance->directive($name, $handler);
  2665. }
  2666. /**
  2667. * Get the list of custom directives.
  2668. *
  2669. * @return array
  2670. * @static
  2671. */
  2672. public static function getCustomDirectives()
  2673. {
  2674. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2675. return $instance->getCustomDirectives();
  2676. }
  2677. /**
  2678. * Register a new precompiler.
  2679. *
  2680. * @param callable $precompiler
  2681. * @return void
  2682. * @static
  2683. */
  2684. public static function precompiler($precompiler)
  2685. {
  2686. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2687. $instance->precompiler($precompiler);
  2688. }
  2689. /**
  2690. * Set the echo format to be used by the compiler.
  2691. *
  2692. * @param string $format
  2693. * @return void
  2694. * @static
  2695. */
  2696. public static function setEchoFormat($format)
  2697. {
  2698. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2699. $instance->setEchoFormat($format);
  2700. }
  2701. /**
  2702. * Set the "echo" format to double encode entities.
  2703. *
  2704. * @return void
  2705. * @static
  2706. */
  2707. public static function withDoubleEncoding()
  2708. {
  2709. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2710. $instance->withDoubleEncoding();
  2711. }
  2712. /**
  2713. * Set the "echo" format to not double encode entities.
  2714. *
  2715. * @return void
  2716. * @static
  2717. */
  2718. public static function withoutDoubleEncoding()
  2719. {
  2720. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2721. $instance->withoutDoubleEncoding();
  2722. }
  2723. /**
  2724. * Indicate that component tags should not be compiled.
  2725. *
  2726. * @return void
  2727. * @static
  2728. */
  2729. public static function withoutComponentTags()
  2730. {
  2731. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2732. $instance->withoutComponentTags();
  2733. }
  2734. /**
  2735. * Get the path to the compiled version of a view.
  2736. *
  2737. * @param string $path
  2738. * @return string
  2739. * @static
  2740. */
  2741. public static function getCompiledPath($path)
  2742. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2743. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2744. return $instance->getCompiledPath($path);
  2745. }
  2746. /**
  2747. * Determine if the view at the given path is expired.
  2748. *
  2749. * @param string $path
  2750. * @return bool
  2751. * @static
  2752. */
  2753. public static function isExpired($path)
  2754. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2755. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2756. return $instance->isExpired($path);
  2757. }
  2758. /**
  2759. * Get a new component hash for a component name.
  2760. *
  2761. * @param string $component
  2762. * @return string
  2763. * @static
  2764. */
  2765. public static function newComponentHash($component)
  2766. {
  2767. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2768. }
  2769. /**
  2770. * Compile a class component opening.
  2771. *
  2772. * @param string $component
  2773. * @param string $alias
  2774. * @param string $data
  2775. * @param string $hash
  2776. * @return string
  2777. * @static
  2778. */
  2779. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2780. {
  2781. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2782. }
  2783. /**
  2784. * Compile the end-component statements into valid PHP.
  2785. *
  2786. * @return string
  2787. * @static
  2788. */
  2789. public static function compileEndComponentClass()
  2790. {
  2791. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2792. return $instance->compileEndComponentClass();
  2793. }
  2794. /**
  2795. * Sanitize the given component attribute value.
  2796. *
  2797. * @param mixed $value
  2798. * @return mixed
  2799. * @static
  2800. */
  2801. public static function sanitizeComponentAttribute($value)
  2802. {
  2803. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2804. }
  2805. /**
  2806. * Compile an end-once block into valid PHP.
  2807. *
  2808. * @return string
  2809. * @static
  2810. */
  2811. public static function compileEndOnce()
  2812. {
  2813. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2814. return $instance->compileEndOnce();
  2815. }
  2816. /**
  2817. * Add a handler to be executed before echoing a given class.
  2818. *
  2819. * @param string|callable $class
  2820. * @param callable|null $handler
  2821. * @return void
  2822. * @static
  2823. */
  2824. public static function stringable($class, $handler = null)
  2825. {
  2826. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2827. $instance->stringable($class, $handler);
  2828. }
  2829. /**
  2830. * Compile Blade echos into valid PHP.
  2831. *
  2832. * @param string $value
  2833. * @return string
  2834. * @static
  2835. */
  2836. public static function compileEchos($value)
  2837. {
  2838. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2839. return $instance->compileEchos($value);
  2840. }
  2841. /**
  2842. * Apply the echo handler for the value if it exists.
  2843. *
  2844. * @param string $value
  2845. * @return string
  2846. * @static
  2847. */
  2848. public static function applyEchoHandler($value)
  2849. {
  2850. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2851. return $instance->applyEchoHandler($value);
  2852. }
  2853. }
  2854. /**
  2855. *
  2856. *
  2857. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2858. * @method static mixed auth(\Illuminate\Http\Request $request)
  2859. * @method static void resolveAuthenticatedUserUsing(\Closure $callback)
  2860. * @see \Illuminate\Contracts\Broadcasting\Factory
  2861. */
  2862. class Broadcast {
  2863. /**
  2864. * Register the routes for handling broadcast channel authentication and sockets.
  2865. *
  2866. * @param array|null $attributes
  2867. * @return void
  2868. * @static
  2869. */
  2870. public static function routes($attributes = null)
  2871. {
  2872. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2873. $instance->routes($attributes);
  2874. }
  2875. /**
  2876. * Register the routes for handling broadcast user authentication.
  2877. *
  2878. * @param array|null $attributes
  2879. * @return void
  2880. * @static
  2881. */
  2882. public static function userRoutes($attributes = null)
  2883. {
  2884. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2885. $instance->userRoutes($attributes);
  2886. }
  2887. /**
  2888. * Register the routes for handling broadcast authentication and sockets.
  2889. *
  2890. * Alias of "routes" method.
  2891. *
  2892. * @param array|null $attributes
  2893. * @return void
  2894. * @static
  2895. */
  2896. public static function channelRoutes($attributes = null)
  2897. {
  2898. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2899. $instance->channelRoutes($attributes);
  2900. }
  2901. /**
  2902. * Get the socket ID for the given request.
  2903. *
  2904. * @param \Illuminate\Http\Request|null $request
  2905. * @return string|null
  2906. * @static
  2907. */
  2908. public static function socket($request = null)
  2909. {
  2910. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2911. return $instance->socket($request);
  2912. }
  2913. /**
  2914. * Begin broadcasting an event.
  2915. *
  2916. * @param mixed|null $event
  2917. * @return \Illuminate\Broadcasting\PendingBroadcast
  2918. * @static
  2919. */
  2920. public static function event($event = null)
  2921. {
  2922. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2923. return $instance->event($event);
  2924. }
  2925. /**
  2926. * Queue the given event for broadcast.
  2927. *
  2928. * @param mixed $event
  2929. * @return void
  2930. * @static
  2931. */
  2932. public static function queue($event)
  2933. {
  2934. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2935. $instance->queue($event);
  2936. }
  2937. /**
  2938. * Get a driver instance.
  2939. *
  2940. * @param string|null $driver
  2941. * @return mixed
  2942. * @static
  2943. */
  2944. public static function connection($driver = null)
  2945. {
  2946. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2947. return $instance->connection($driver);
  2948. }
  2949. /**
  2950. * Get a driver instance.
  2951. *
  2952. * @param string|null $name
  2953. * @return mixed
  2954. * @static
  2955. */
  2956. public static function driver($name = null)
  2957. {
  2958. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2959. return $instance->driver($name);
  2960. }
  2961. /**
  2962. * Get a Pusher instance for the given configuration.
  2963. *
  2964. * @param array $config
  2965. * @return \Pusher\Pusher
  2966. * @static
  2967. */
  2968. public static function pusher($config)
  2969. {
  2970. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2971. return $instance->pusher($config);
  2972. }
  2973. /**
  2974. * Get an Ably instance for the given configuration.
  2975. *
  2976. * @param array $config
  2977. * @return \Ably\AblyRest
  2978. * @static
  2979. */
  2980. public static function ably($config)
  2981. {
  2982. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2983. return $instance->ably($config);
  2984. }
  2985. /**
  2986. * Get the default driver name.
  2987. *
  2988. * @return string
  2989. * @static
  2990. */
  2991. public static function getDefaultDriver()
  2992. {
  2993. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2994. return $instance->getDefaultDriver();
  2995. }
  2996. /**
  2997. * Set the default driver name.
  2998. *
  2999. * @param string $name
  3000. * @return void
  3001. * @static
  3002. */
  3003. public static function setDefaultDriver($name)
  3004. {
  3005. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3006. $instance->setDefaultDriver($name);
  3007. }
  3008. /**
  3009. * Disconnect the given disk and remove from local cache.
  3010. *
  3011. * @param string|null $name
  3012. * @return void
  3013. * @static
  3014. */
  3015. public static function purge($name = null)
  3016. {
  3017. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3018. $instance->purge($name);
  3019. }
  3020. /**
  3021. * Register a custom driver creator Closure.
  3022. *
  3023. * @param string $driver
  3024. * @param \Closure $callback
  3025. * @return \Illuminate\Broadcasting\BroadcastManager
  3026. * @static
  3027. */
  3028. public static function extend($driver, $callback)
  3029. {
  3030. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3031. return $instance->extend($driver, $callback);
  3032. }
  3033. /**
  3034. * Get the application instance used by the manager.
  3035. *
  3036. * @return \Illuminate\Contracts\Foundation\Application
  3037. * @static
  3038. */
  3039. public static function getApplication()
  3040. {
  3041. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3042. return $instance->getApplication();
  3043. }
  3044. /**
  3045. * Set the application instance used by the manager.
  3046. *
  3047. * @param \Illuminate\Contracts\Foundation\Application $app
  3048. * @return \Illuminate\Broadcasting\BroadcastManager
  3049. * @static
  3050. */
  3051. public static function setApplication($app)
  3052. {
  3053. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3054. return $instance->setApplication($app);
  3055. }
  3056. /**
  3057. * Forget all of the resolved driver instances.
  3058. *
  3059. * @return \Illuminate\Broadcasting\BroadcastManager
  3060. * @static
  3061. */
  3062. public static function forgetDrivers()
  3063. {
  3064. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  3065. return $instance->forgetDrivers();
  3066. }
  3067. }
  3068. /**
  3069. *
  3070. *
  3071. * @see \Illuminate\Contracts\Bus\Dispatcher
  3072. */
  3073. class Bus {
  3074. /**
  3075. * Dispatch a command to its appropriate handler.
  3076. *
  3077. * @param mixed $command
  3078. * @return mixed
  3079. * @static
  3080. */
  3081. public static function dispatch($command)
  3082. {
  3083. /** @var \Illuminate\Bus\Dispatcher $instance */
  3084. return $instance->dispatch($command);
  3085. }
  3086. /**
  3087. * Dispatch a command to its appropriate handler in the current process.
  3088. *
  3089. * Queueable jobs will be dispatched to the "sync" queue.
  3090. *
  3091. * @param mixed $command
  3092. * @param mixed $handler
  3093. * @return mixed
  3094. * @static
  3095. */
  3096. public static function dispatchSync($command, $handler = null)
  3097. {
  3098. /** @var \Illuminate\Bus\Dispatcher $instance */
  3099. return $instance->dispatchSync($command, $handler);
  3100. }
  3101. /**
  3102. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  3103. *
  3104. * @param mixed $command
  3105. * @param mixed $handler
  3106. * @return mixed
  3107. * @static
  3108. */
  3109. public static function dispatchNow($command, $handler = null)
  3110. {
  3111. /** @var \Illuminate\Bus\Dispatcher $instance */
  3112. return $instance->dispatchNow($command, $handler);
  3113. }
  3114. /**
  3115. * Attempt to find the batch with the given ID.
  3116. *
  3117. * @param string $batchId
  3118. * @return \Illuminate\Bus\Batch|null
  3119. * @static
  3120. */
  3121. public static function findBatch($batchId)
  3122. {
  3123. /** @var \Illuminate\Bus\Dispatcher $instance */
  3124. return $instance->findBatch($batchId);
  3125. }
  3126. /**
  3127. * Create a new batch of queueable jobs.
  3128. *
  3129. * @param \Illuminate\Support\Collection|array|mixed $jobs
  3130. * @return \Illuminate\Bus\PendingBatch
  3131. * @static
  3132. */
  3133. public static function batch($jobs)
  3134. {
  3135. /** @var \Illuminate\Bus\Dispatcher $instance */
  3136. return $instance->batch($jobs);
  3137. }
  3138. /**
  3139. * Create a new chain of queueable jobs.
  3140. *
  3141. * @param \Illuminate\Support\Collection|array $jobs
  3142. * @return \Illuminate\Foundation\Bus\PendingChain
  3143. * @static
  3144. */
  3145. public static function chain($jobs)
  3146. {
  3147. /** @var \Illuminate\Bus\Dispatcher $instance */
  3148. return $instance->chain($jobs);
  3149. }
  3150. /**
  3151. * Determine if the given command has a handler.
  3152. *
  3153. * @param mixed $command
  3154. * @return bool
  3155. * @static
  3156. */
  3157. public static function hasCommandHandler($command)
  3158. {
  3159. /** @var \Illuminate\Bus\Dispatcher $instance */
  3160. return $instance->hasCommandHandler($command);
  3161. }
  3162. /**
  3163. * Retrieve the handler for a command.
  3164. *
  3165. * @param mixed $command
  3166. * @return bool|mixed
  3167. * @static
  3168. */
  3169. public static function getCommandHandler($command)
  3170. {
  3171. /** @var \Illuminate\Bus\Dispatcher $instance */
  3172. return $instance->getCommandHandler($command);
  3173. }
  3174. /**
  3175. * Dispatch a command to its appropriate handler behind a queue.
  3176. *
  3177. * @param mixed $command
  3178. * @return mixed
  3179. * @throws \RuntimeException
  3180. * @static
  3181. */
  3182. public static function dispatchToQueue($command)
  3183. {
  3184. /** @var \Illuminate\Bus\Dispatcher $instance */
  3185. return $instance->dispatchToQueue($command);
  3186. }
  3187. /**
  3188. * Dispatch a command to its appropriate handler after the current process.
  3189. *
  3190. * @param mixed $command
  3191. * @param mixed $handler
  3192. * @return void
  3193. * @static
  3194. */
  3195. public static function dispatchAfterResponse($command, $handler = null)
  3196. {
  3197. /** @var \Illuminate\Bus\Dispatcher $instance */
  3198. $instance->dispatchAfterResponse($command, $handler);
  3199. }
  3200. /**
  3201. * Set the pipes through which commands should be piped before dispatching.
  3202. *
  3203. * @param array $pipes
  3204. * @return \Illuminate\Bus\Dispatcher
  3205. * @static
  3206. */
  3207. public static function pipeThrough($pipes)
  3208. {
  3209. /** @var \Illuminate\Bus\Dispatcher $instance */
  3210. return $instance->pipeThrough($pipes);
  3211. }
  3212. /**
  3213. * Map a command to a handler.
  3214. *
  3215. * @param array $map
  3216. * @return \Illuminate\Bus\Dispatcher
  3217. * @static
  3218. */
  3219. public static function map($map)
  3220. {
  3221. /** @var \Illuminate\Bus\Dispatcher $instance */
  3222. return $instance->map($map);
  3223. }
  3224. /**
  3225. * Specify the jobs that should be dispatched instead of faked.
  3226. *
  3227. * @param array|string $jobsToDispatch
  3228. * @return void
  3229. * @static
  3230. */
  3231. public static function except($jobsToDispatch)
  3232. {
  3233. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3234. $instance->except($jobsToDispatch);
  3235. }
  3236. /**
  3237. * Assert if a job was dispatched based on a truth-test callback.
  3238. *
  3239. * @param string|\Closure $command
  3240. * @param callable|int|null $callback
  3241. * @return void
  3242. * @static
  3243. */
  3244. public static function assertDispatched($command, $callback = null)
  3245. {
  3246. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3247. $instance->assertDispatched($command, $callback);
  3248. }
  3249. /**
  3250. * Assert if a job was pushed a number of times.
  3251. *
  3252. * @param string $command
  3253. * @param int $times
  3254. * @return void
  3255. * @static
  3256. */
  3257. public static function assertDispatchedTimes($command, $times = 1)
  3258. {
  3259. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3260. $instance->assertDispatchedTimes($command, $times);
  3261. }
  3262. /**
  3263. * Determine if a job was dispatched based on a truth-test callback.
  3264. *
  3265. * @param string|\Closure $command
  3266. * @param callable|null $callback
  3267. * @return void
  3268. * @static
  3269. */
  3270. public static function assertNotDispatched($command, $callback = null)
  3271. {
  3272. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3273. $instance->assertNotDispatched($command, $callback);
  3274. }
  3275. /**
  3276. * Assert that no jobs were dispatched.
  3277. *
  3278. * @return void
  3279. * @static
  3280. */
  3281. public static function assertNothingDispatched()
  3282. {
  3283. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3284. $instance->assertNothingDispatched();
  3285. }
  3286. /**
  3287. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3288. *
  3289. * @param string|\Closure $command
  3290. * @param callable|int|null $callback
  3291. * @return void
  3292. * @static
  3293. */
  3294. public static function assertDispatchedSync($command, $callback = null)
  3295. {
  3296. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3297. $instance->assertDispatchedSync($command, $callback);
  3298. }
  3299. /**
  3300. * Assert if a job was pushed synchronously a number of times.
  3301. *
  3302. * @param string $command
  3303. * @param int $times
  3304. * @return void
  3305. * @static
  3306. */
  3307. public static function assertDispatchedSyncTimes($command, $times = 1)
  3308. {
  3309. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3310. $instance->assertDispatchedSyncTimes($command, $times);
  3311. }
  3312. /**
  3313. * Determine if a job was dispatched based on a truth-test callback.
  3314. *
  3315. * @param string|\Closure $command
  3316. * @param callable|null $callback
  3317. * @return void
  3318. * @static
  3319. */
  3320. public static function assertNotDispatchedSync($command, $callback = null)
  3321. {
  3322. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3323. $instance->assertNotDispatchedSync($command, $callback);
  3324. }
  3325. /**
  3326. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3327. *
  3328. * @param string|\Closure $command
  3329. * @param callable|int|null $callback
  3330. * @return void
  3331. * @static
  3332. */
  3333. public static function assertDispatchedAfterResponse($command, $callback = null)
  3334. {
  3335. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3336. $instance->assertDispatchedAfterResponse($command, $callback);
  3337. }
  3338. /**
  3339. * Assert if a job was pushed after the response was sent a number of times.
  3340. *
  3341. * @param string $command
  3342. * @param int $times
  3343. * @return void
  3344. * @static
  3345. */
  3346. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3347. {
  3348. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3349. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3350. }
  3351. /**
  3352. * Determine if a job was dispatched based on a truth-test callback.
  3353. *
  3354. * @param string|\Closure $command
  3355. * @param callable|null $callback
  3356. * @return void
  3357. * @static
  3358. */
  3359. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3360. {
  3361. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3362. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3363. }
  3364. /**
  3365. * Assert if a chain of jobs was dispatched.
  3366. *
  3367. * @param array $expectedChain
  3368. * @return void
  3369. * @static
  3370. */
  3371. public static function assertChained($expectedChain)
  3372. {
  3373. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3374. $instance->assertChained($expectedChain);
  3375. }
  3376. /**
  3377. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3378. *
  3379. * @param string|\Closure $command
  3380. * @param callable|null $callback
  3381. * @return void
  3382. * @static
  3383. */
  3384. public static function assertDispatchedWithoutChain($command, $callback = null)
  3385. {
  3386. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3387. $instance->assertDispatchedWithoutChain($command, $callback);
  3388. }
  3389. /**
  3390. * Assert if a batch was dispatched based on a truth-test callback.
  3391. *
  3392. * @param callable $callback
  3393. * @return void
  3394. * @static
  3395. */
  3396. public static function assertBatched($callback)
  3397. {
  3398. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3399. $instance->assertBatched($callback);
  3400. }
  3401. /**
  3402. * Assert the number of batches that have been dispatched.
  3403. *
  3404. * @param int $count
  3405. * @return void
  3406. * @static
  3407. */
  3408. public static function assertBatchCount($count)
  3409. {
  3410. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3411. $instance->assertBatchCount($count);
  3412. }
  3413. /**
  3414. * Assert that no batched jobs were dispatched.
  3415. *
  3416. * @return void
  3417. * @static
  3418. */
  3419. public static function assertNothingBatched()
  3420. {
  3421. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3422. $instance->assertNothingBatched();
  3423. }
  3424. /**
  3425. * Get all of the jobs matching a truth-test callback.
  3426. *
  3427. * @param string $command
  3428. * @param callable|null $callback
  3429. * @return \Illuminate\Support\Collection
  3430. * @static
  3431. */
  3432. public static function dispatched($command, $callback = null)
  3433. {
  3434. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3435. return $instance->dispatched($command, $callback);
  3436. }
  3437. /**
  3438. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3439. *
  3440. * @param string $command
  3441. * @param callable|null $callback
  3442. * @return \Illuminate\Support\Collection
  3443. * @static
  3444. */
  3445. public static function dispatchedSync($command, $callback = null)
  3446. {
  3447. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3448. return $instance->dispatchedSync($command, $callback);
  3449. }
  3450. /**
  3451. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3452. *
  3453. * @param string $command
  3454. * @param callable|null $callback
  3455. * @return \Illuminate\Support\Collection
  3456. * @static
  3457. */
  3458. public static function dispatchedAfterResponse($command, $callback = null)
  3459. {
  3460. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3461. return $instance->dispatchedAfterResponse($command, $callback);
  3462. }
  3463. /**
  3464. * Get all of the pending batches matching a truth-test callback.
  3465. *
  3466. * @param callable $callback
  3467. * @return \Illuminate\Support\Collection
  3468. * @static
  3469. */
  3470. public static function batched($callback)
  3471. {
  3472. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3473. return $instance->batched($callback);
  3474. }
  3475. /**
  3476. * Determine if there are any stored commands for a given class.
  3477. *
  3478. * @param string $command
  3479. * @return bool
  3480. * @static
  3481. */
  3482. public static function hasDispatched($command)
  3483. {
  3484. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3485. return $instance->hasDispatched($command);
  3486. }
  3487. /**
  3488. * Determine if there are any stored commands for a given class.
  3489. *
  3490. * @param string $command
  3491. * @return bool
  3492. * @static
  3493. */
  3494. public static function hasDispatchedSync($command)
  3495. {
  3496. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3497. return $instance->hasDispatchedSync($command);
  3498. }
  3499. /**
  3500. * Determine if there are any stored commands for a given class.
  3501. *
  3502. * @param string $command
  3503. * @return bool
  3504. * @static
  3505. */
  3506. public static function hasDispatchedAfterResponse($command)
  3507. {
  3508. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3509. return $instance->hasDispatchedAfterResponse($command);
  3510. }
  3511. /**
  3512. * Dispatch an empty job batch for testing.
  3513. *
  3514. * @param string $name
  3515. * @return \Illuminate\Bus\Batch
  3516. * @static
  3517. */
  3518. public static function dispatchFakeBatch($name = '')
  3519. {
  3520. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3521. return $instance->dispatchFakeBatch($name);
  3522. }
  3523. /**
  3524. * Record the fake pending batch dispatch.
  3525. *
  3526. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  3527. * @return \Illuminate\Bus\Batch
  3528. * @static
  3529. */
  3530. public static function recordPendingBatch($pendingBatch)
  3531. {
  3532. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3533. return $instance->recordPendingBatch($pendingBatch);
  3534. }
  3535. }
  3536. /**
  3537. *
  3538. *
  3539. * @see \Illuminate\Cache\CacheManager
  3540. * @see \Illuminate\Cache\Repository
  3541. */
  3542. class Cache {
  3543. /**
  3544. * Get a cache store instance by name, wrapped in a repository.
  3545. *
  3546. * @param string|null $name
  3547. * @return \Illuminate\Contracts\Cache\Repository
  3548. * @static
  3549. */
  3550. public static function store($name = null)
  3551. {
  3552. /** @var \Illuminate\Cache\CacheManager $instance */
  3553. return $instance->store($name);
  3554. }
  3555. /**
  3556. * Get a cache driver instance.
  3557. *
  3558. * @param string|null $driver
  3559. * @return \Illuminate\Contracts\Cache\Repository
  3560. * @static
  3561. */
  3562. public static function driver($driver = null)
  3563. {
  3564. /** @var \Illuminate\Cache\CacheManager $instance */
  3565. return $instance->driver($driver);
  3566. }
  3567. /**
  3568. * Create a new cache repository with the given implementation.
  3569. *
  3570. * @param \Illuminate\Contracts\Cache\Store $store
  3571. * @return \Illuminate\Cache\Repository
  3572. * @static
  3573. */
  3574. public static function repository($store)
  3575. {
  3576. /** @var \Illuminate\Cache\CacheManager $instance */
  3577. return $instance->repository($store);
  3578. }
  3579. /**
  3580. * Re-set the event dispatcher on all resolved cache repositories.
  3581. *
  3582. * @return void
  3583. * @static
  3584. */
  3585. public static function refreshEventDispatcher()
  3586. {
  3587. /** @var \Illuminate\Cache\CacheManager $instance */
  3588. $instance->refreshEventDispatcher();
  3589. }
  3590. /**
  3591. * Get the default cache driver name.
  3592. *
  3593. * @return string
  3594. * @static
  3595. */
  3596. public static function getDefaultDriver()
  3597. {
  3598. /** @var \Illuminate\Cache\CacheManager $instance */
  3599. return $instance->getDefaultDriver();
  3600. }
  3601. /**
  3602. * Set the default cache driver name.
  3603. *
  3604. * @param string $name
  3605. * @return void
  3606. * @static
  3607. */
  3608. public static function setDefaultDriver($name)
  3609. {
  3610. /** @var \Illuminate\Cache\CacheManager $instance */
  3611. $instance->setDefaultDriver($name);
  3612. }
  3613. /**
  3614. * Unset the given driver instances.
  3615. *
  3616. * @param array|string|null $name
  3617. * @return \Illuminate\Cache\CacheManager
  3618. * @static
  3619. */
  3620. public static function forgetDriver($name = null)
  3621. {
  3622. /** @var \Illuminate\Cache\CacheManager $instance */
  3623. return $instance->forgetDriver($name);
  3624. }
  3625. /**
  3626. * Disconnect the given driver and remove from local cache.
  3627. *
  3628. * @param string|null $name
  3629. * @return void
  3630. * @static
  3631. */
  3632. public static function purge($name = null)
  3633. {
  3634. /** @var \Illuminate\Cache\CacheManager $instance */
  3635. $instance->purge($name);
  3636. }
  3637. /**
  3638. * Register a custom driver creator Closure.
  3639. *
  3640. * @param string $driver
  3641. * @param \Closure $callback
  3642. * @return \Illuminate\Cache\CacheManager
  3643. * @static
  3644. */
  3645. public static function extend($driver, $callback)
  3646. {
  3647. /** @var \Illuminate\Cache\CacheManager $instance */
  3648. return $instance->extend($driver, $callback);
  3649. }
  3650. /**
  3651. * Determine if an item exists in the cache.
  3652. *
  3653. * @param string $key
  3654. * @return bool
  3655. * @static
  3656. */
  3657. public static function has($key)
  3658. {
  3659. /** @var \Illuminate\Cache\Repository $instance */
  3660. return $instance->has($key);
  3661. }
  3662. /**
  3663. * Determine if an item doesn't exist in the cache.
  3664. *
  3665. * @param string $key
  3666. * @return bool
  3667. * @static
  3668. */
  3669. public static function missing($key)
  3670. {
  3671. /** @var \Illuminate\Cache\Repository $instance */
  3672. return $instance->missing($key);
  3673. }
  3674. /**
  3675. * Retrieve an item from the cache by key.
  3676. *
  3677. * @param array|string $key
  3678. * @param mixed $default
  3679. * @return mixed
  3680. * @static
  3681. */
  3682. public static function get($key, $default = null)
  3683. {
  3684. /** @var \Illuminate\Cache\Repository $instance */
  3685. return $instance->get($key, $default);
  3686. }
  3687. /**
  3688. * Retrieve multiple items from the cache by key.
  3689. *
  3690. * Items not found in the cache will have a null value.
  3691. *
  3692. * @param array $keys
  3693. * @return array
  3694. * @static
  3695. */
  3696. public static function many($keys)
  3697. {
  3698. /** @var \Illuminate\Cache\Repository $instance */
  3699. return $instance->many($keys);
  3700. }
  3701. /**
  3702. * Obtains multiple cache items by their unique keys.
  3703. *
  3704. * @return \Illuminate\Cache\iterable
  3705. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  3706. * @param mixed $default Default value to return for keys that do not exist.
  3707. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  3708. * @throws \Psr\SimpleCache\InvalidArgumentException
  3709. * MUST be thrown if $keys is neither an array nor a Traversable,
  3710. * or if any of the $keys are not a legal value.
  3711. * @static
  3712. */
  3713. public static function getMultiple($keys, $default = null)
  3714. {
  3715. /** @var \Illuminate\Cache\Repository $instance */
  3716. return $instance->getMultiple($keys, $default);
  3717. }
  3718. /**
  3719. * Retrieve an item from the cache and delete it.
  3720. *
  3721. * @param string $key
  3722. * @param mixed $default
  3723. * @return mixed
  3724. * @static
  3725. */
  3726. public static function pull($key, $default = null)
  3727. {
  3728. /** @var \Illuminate\Cache\Repository $instance */
  3729. return $instance->pull($key, $default);
  3730. }
  3731. /**
  3732. * Store an item in the cache.
  3733. *
  3734. * @param array|string $key
  3735. * @param mixed $value
  3736. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3737. * @return bool
  3738. * @static
  3739. */
  3740. public static function put($key, $value, $ttl = null)
  3741. {
  3742. /** @var \Illuminate\Cache\Repository $instance */
  3743. return $instance->put($key, $value, $ttl);
  3744. }
  3745. /**
  3746. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3747. *
  3748. * @return bool
  3749. * @param string $key The key of the item to store.
  3750. * @param mixed $value The value of the item to store, must be serializable.
  3751. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3752. * the driver supports TTL then the library may set a default value
  3753. * for it or let the driver take care of that.
  3754. * @return bool True on success and false on failure.
  3755. * @throws \Psr\SimpleCache\InvalidArgumentException
  3756. * MUST be thrown if the $key string is not a legal value.
  3757. * @static
  3758. */
  3759. public static function set($key, $value, $ttl = null)
  3760. {
  3761. /** @var \Illuminate\Cache\Repository $instance */
  3762. return $instance->set($key, $value, $ttl);
  3763. }
  3764. /**
  3765. * Store multiple items in the cache for a given number of seconds.
  3766. *
  3767. * @param array $values
  3768. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3769. * @return bool
  3770. * @static
  3771. */
  3772. public static function putMany($values, $ttl = null)
  3773. {
  3774. /** @var \Illuminate\Cache\Repository $instance */
  3775. return $instance->putMany($values, $ttl);
  3776. }
  3777. /**
  3778. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3779. *
  3780. * @return bool
  3781. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  3782. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3783. * the driver supports TTL then the library may set a default value
  3784. * for it or let the driver take care of that.
  3785. * @return bool True on success and false on failure.
  3786. * @throws \Psr\SimpleCache\InvalidArgumentException
  3787. * MUST be thrown if $values is neither an array nor a Traversable,
  3788. * or if any of the $values are not a legal value.
  3789. * @static
  3790. */
  3791. public static function setMultiple($values, $ttl = null)
  3792. {
  3793. /** @var \Illuminate\Cache\Repository $instance */
  3794. return $instance->setMultiple($values, $ttl);
  3795. }
  3796. /**
  3797. * Store an item in the cache if the key does not exist.
  3798. *
  3799. * @param string $key
  3800. * @param mixed $value
  3801. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3802. * @return bool
  3803. * @static
  3804. */
  3805. public static function add($key, $value, $ttl = null)
  3806. {
  3807. /** @var \Illuminate\Cache\Repository $instance */
  3808. return $instance->add($key, $value, $ttl);
  3809. }
  3810. /**
  3811. * Increment the value of an item in the cache.
  3812. *
  3813. * @param string $key
  3814. * @param mixed $value
  3815. * @return int|bool
  3816. * @static
  3817. */
  3818. public static function increment($key, $value = 1)
  3819. {
  3820. /** @var \Illuminate\Cache\Repository $instance */
  3821. return $instance->increment($key, $value);
  3822. }
  3823. /**
  3824. * Decrement the value of an item in the cache.
  3825. *
  3826. * @param string $key
  3827. * @param mixed $value
  3828. * @return int|bool
  3829. * @static
  3830. */
  3831. public static function decrement($key, $value = 1)
  3832. {
  3833. /** @var \Illuminate\Cache\Repository $instance */
  3834. return $instance->decrement($key, $value);
  3835. }
  3836. /**
  3837. * Store an item in the cache indefinitely.
  3838. *
  3839. * @param string $key
  3840. * @param mixed $value
  3841. * @return bool
  3842. * @static
  3843. */
  3844. public static function forever($key, $value)
  3845. {
  3846. /** @var \Illuminate\Cache\Repository $instance */
  3847. return $instance->forever($key, $value);
  3848. }
  3849. /**
  3850. * Get an item from the cache, or execute the given Closure and store the result.
  3851. *
  3852. * @param string $key
  3853. * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
  3854. * @param \Closure $callback
  3855. * @return mixed
  3856. * @static
  3857. */
  3858. public static function remember($key, $ttl, $callback)
  3859. {
  3860. /** @var \Illuminate\Cache\Repository $instance */
  3861. return $instance->remember($key, $ttl, $callback);
  3862. }
  3863. /**
  3864. * Get an item from the cache, or execute the given Closure and store the result forever.
  3865. *
  3866. * @param string $key
  3867. * @param \Closure $callback
  3868. * @return mixed
  3869. * @static
  3870. */
  3871. public static function sear($key, $callback)
  3872. {
  3873. /** @var \Illuminate\Cache\Repository $instance */
  3874. return $instance->sear($key, $callback);
  3875. }
  3876. /**
  3877. * Get an item from the cache, or execute the given Closure and store the result forever.
  3878. *
  3879. * @param string $key
  3880. * @param \Closure $callback
  3881. * @return mixed
  3882. * @static
  3883. */
  3884. public static function rememberForever($key, $callback)
  3885. {
  3886. /** @var \Illuminate\Cache\Repository $instance */
  3887. return $instance->rememberForever($key, $callback);
  3888. }
  3889. /**
  3890. * Remove an item from the cache.
  3891. *
  3892. * @param string $key
  3893. * @return bool
  3894. * @static
  3895. */
  3896. public static function forget($key)
  3897. {
  3898. /** @var \Illuminate\Cache\Repository $instance */
  3899. return $instance->forget($key);
  3900. }
  3901. /**
  3902. * Delete an item from the cache by its unique key.
  3903. *
  3904. * @return bool
  3905. * @param string $key The unique cache key of the item to delete.
  3906. * @return bool True if the item was successfully removed. False if there was an error.
  3907. * @throws \Psr\SimpleCache\InvalidArgumentException
  3908. * MUST be thrown if the $key string is not a legal value.
  3909. * @static
  3910. */
  3911. public static function delete($key)
  3912. {
  3913. /** @var \Illuminate\Cache\Repository $instance */
  3914. return $instance->delete($key);
  3915. }
  3916. /**
  3917. * Deletes multiple cache items in a single operation.
  3918. *
  3919. * @return bool
  3920. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  3921. * @return bool True if the items were successfully removed. False if there was an error.
  3922. * @throws \Psr\SimpleCache\InvalidArgumentException
  3923. * MUST be thrown if $keys is neither an array nor a Traversable,
  3924. * or if any of the $keys are not a legal value.
  3925. * @static
  3926. */
  3927. public static function deleteMultiple($keys)
  3928. {
  3929. /** @var \Illuminate\Cache\Repository $instance */
  3930. return $instance->deleteMultiple($keys);
  3931. }
  3932. /**
  3933. * Wipes clean the entire cache's keys.
  3934. *
  3935. * @return bool
  3936. * @return bool True on success and false on failure.
  3937. * @static
  3938. */
  3939. public static function clear()
  3940. {
  3941. /** @var \Illuminate\Cache\Repository $instance */
  3942. return $instance->clear();
  3943. }
  3944. /**
  3945. * Begin executing a new tags operation if the store supports it.
  3946. *
  3947. * @param array|mixed $names
  3948. * @return \Illuminate\Cache\TaggedCache
  3949. * @throws \BadMethodCallException
  3950. * @static
  3951. */
  3952. public static function tags($names)
  3953. {
  3954. /** @var \Illuminate\Cache\Repository $instance */
  3955. return $instance->tags($names);
  3956. }
  3957. /**
  3958. * Determine if the current store supports tags.
  3959. *
  3960. * @return bool
  3961. * @static
  3962. */
  3963. public static function supportsTags()
  3964. {
  3965. /** @var \Illuminate\Cache\Repository $instance */
  3966. return $instance->supportsTags();
  3967. }
  3968. /**
  3969. * Get the default cache time.
  3970. *
  3971. * @return int|null
  3972. * @static
  3973. */
  3974. public static function getDefaultCacheTime()
  3975. {
  3976. /** @var \Illuminate\Cache\Repository $instance */
  3977. return $instance->getDefaultCacheTime();
  3978. }
  3979. /**
  3980. * Set the default cache time in seconds.
  3981. *
  3982. * @param int|null $seconds
  3983. * @return \Illuminate\Cache\Repository
  3984. * @static
  3985. */
  3986. public static function setDefaultCacheTime($seconds)
  3987. {
  3988. /** @var \Illuminate\Cache\Repository $instance */
  3989. return $instance->setDefaultCacheTime($seconds);
  3990. }
  3991. /**
  3992. * Get the cache store implementation.
  3993. *
  3994. * @return \Illuminate\Contracts\Cache\Store
  3995. * @static
  3996. */
  3997. public static function getStore()
  3998. {
  3999. /** @var \Illuminate\Cache\Repository $instance */
  4000. return $instance->getStore();
  4001. }
  4002. /**
  4003. * Get the event dispatcher instance.
  4004. *
  4005. * @return \Illuminate\Contracts\Events\Dispatcher
  4006. * @static
  4007. */
  4008. public static function getEventDispatcher()
  4009. {
  4010. /** @var \Illuminate\Cache\Repository $instance */
  4011. return $instance->getEventDispatcher();
  4012. }
  4013. /**
  4014. * Set the event dispatcher instance.
  4015. *
  4016. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4017. * @return void
  4018. * @static
  4019. */
  4020. public static function setEventDispatcher($events)
  4021. {
  4022. /** @var \Illuminate\Cache\Repository $instance */
  4023. $instance->setEventDispatcher($events);
  4024. }
  4025. /**
  4026. * Determine if a cached value exists.
  4027. *
  4028. * @param string $key
  4029. * @return bool
  4030. * @static
  4031. */
  4032. public static function offsetExists($key)
  4033. {
  4034. /** @var \Illuminate\Cache\Repository $instance */
  4035. return $instance->offsetExists($key);
  4036. }
  4037. /**
  4038. * Retrieve an item from the cache by key.
  4039. *
  4040. * @param string $key
  4041. * @return mixed
  4042. * @static
  4043. */
  4044. public static function offsetGet($key)
  4045. {
  4046. /** @var \Illuminate\Cache\Repository $instance */
  4047. return $instance->offsetGet($key);
  4048. }
  4049. /**
  4050. * Store an item in the cache for the default time.
  4051. *
  4052. * @param string $key
  4053. * @param mixed $value
  4054. * @return void
  4055. * @static
  4056. */
  4057. public static function offsetSet($key, $value)
  4058. {
  4059. /** @var \Illuminate\Cache\Repository $instance */
  4060. $instance->offsetSet($key, $value);
  4061. }
  4062. /**
  4063. * Remove an item from the cache.
  4064. *
  4065. * @param string $key
  4066. * @return void
  4067. * @static
  4068. */
  4069. public static function offsetUnset($key)
  4070. {
  4071. /** @var \Illuminate\Cache\Repository $instance */
  4072. $instance->offsetUnset($key);
  4073. }
  4074. /**
  4075. * Register a custom macro.
  4076. *
  4077. * @param string $name
  4078. * @param object|callable $macro
  4079. * @return void
  4080. * @static
  4081. */
  4082. public static function macro($name, $macro)
  4083. {
  4084. \Illuminate\Cache\Repository::macro($name, $macro);
  4085. }
  4086. /**
  4087. * Mix another object into the class.
  4088. *
  4089. * @param object $mixin
  4090. * @param bool $replace
  4091. * @return void
  4092. * @throws \ReflectionException
  4093. * @static
  4094. */
  4095. public static function mixin($mixin, $replace = true)
  4096. {
  4097. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  4098. }
  4099. /**
  4100. * Checks if macro is registered.
  4101. *
  4102. * @param string $name
  4103. * @return bool
  4104. * @static
  4105. */
  4106. public static function hasMacro($name)
  4107. {
  4108. return \Illuminate\Cache\Repository::hasMacro($name);
  4109. }
  4110. /**
  4111. * Flush the existing macros.
  4112. *
  4113. * @return void
  4114. * @static
  4115. */
  4116. public static function flushMacros()
  4117. {
  4118. \Illuminate\Cache\Repository::flushMacros();
  4119. }
  4120. /**
  4121. * Dynamically handle calls to the class.
  4122. *
  4123. * @param string $method
  4124. * @param array $parameters
  4125. * @return mixed
  4126. * @throws \BadMethodCallException
  4127. * @static
  4128. */
  4129. public static function macroCall($method, $parameters)
  4130. {
  4131. /** @var \Illuminate\Cache\Repository $instance */
  4132. return $instance->macroCall($method, $parameters);
  4133. }
  4134. /**
  4135. * Remove all items from the cache.
  4136. *
  4137. * @return bool
  4138. * @static
  4139. */
  4140. public static function flush()
  4141. {
  4142. /** @var \Illuminate\Cache\FileStore $instance */
  4143. return $instance->flush();
  4144. }
  4145. /**
  4146. * Get the Filesystem instance.
  4147. *
  4148. * @return \Illuminate\Filesystem\Filesystem
  4149. * @static
  4150. */
  4151. public static function getFilesystem()
  4152. {
  4153. /** @var \Illuminate\Cache\FileStore $instance */
  4154. return $instance->getFilesystem();
  4155. }
  4156. /**
  4157. * Get the working directory of the cache.
  4158. *
  4159. * @return string
  4160. * @static
  4161. */
  4162. public static function getDirectory()
  4163. {
  4164. /** @var \Illuminate\Cache\FileStore $instance */
  4165. return $instance->getDirectory();
  4166. }
  4167. /**
  4168. * Get the cache key prefix.
  4169. *
  4170. * @return string
  4171. * @static
  4172. */
  4173. public static function getPrefix()
  4174. {
  4175. /** @var \Illuminate\Cache\FileStore $instance */
  4176. return $instance->getPrefix();
  4177. }
  4178. /**
  4179. * Get a lock instance.
  4180. *
  4181. * @param string $name
  4182. * @param int $seconds
  4183. * @param string|null $owner
  4184. * @return \Illuminate\Contracts\Cache\Lock
  4185. * @static
  4186. */
  4187. public static function lock($name, $seconds = 0, $owner = null)
  4188. {
  4189. /** @var \Illuminate\Cache\FileStore $instance */
  4190. return $instance->lock($name, $seconds, $owner);
  4191. }
  4192. /**
  4193. * Restore a lock instance using the owner identifier.
  4194. *
  4195. * @param string $name
  4196. * @param string $owner
  4197. * @return \Illuminate\Contracts\Cache\Lock
  4198. * @static
  4199. */
  4200. public static function restoreLock($name, $owner)
  4201. {
  4202. /** @var \Illuminate\Cache\FileStore $instance */
  4203. return $instance->restoreLock($name, $owner);
  4204. }
  4205. }
  4206. /**
  4207. *
  4208. *
  4209. * @see \Illuminate\Config\Repository
  4210. */
  4211. class Config {
  4212. /**
  4213. * Determine if the given configuration value exists.
  4214. *
  4215. * @param string $key
  4216. * @return bool
  4217. * @static
  4218. */
  4219. public static function has($key)
  4220. {
  4221. /** @var \Illuminate\Config\Repository $instance */
  4222. return $instance->has($key);
  4223. }
  4224. /**
  4225. * Get the specified configuration value.
  4226. *
  4227. * @param array|string $key
  4228. * @param mixed $default
  4229. * @return mixed
  4230. * @static
  4231. */
  4232. public static function get($key, $default = null)
  4233. {
  4234. /** @var \Illuminate\Config\Repository $instance */
  4235. return $instance->get($key, $default);
  4236. }
  4237. /**
  4238. * Get many configuration values.
  4239. *
  4240. * @param array $keys
  4241. * @return array
  4242. * @static
  4243. */
  4244. public static function getMany($keys)
  4245. {
  4246. /** @var \Illuminate\Config\Repository $instance */
  4247. return $instance->getMany($keys);
  4248. }
  4249. /**
  4250. * Set a given configuration value.
  4251. *
  4252. * @param array|string $key
  4253. * @param mixed $value
  4254. * @return void
  4255. * @static
  4256. */
  4257. public static function set($key, $value = null)
  4258. {
  4259. /** @var \Illuminate\Config\Repository $instance */
  4260. $instance->set($key, $value);
  4261. }
  4262. /**
  4263. * Prepend a value onto an array configuration value.
  4264. *
  4265. * @param string $key
  4266. * @param mixed $value
  4267. * @return void
  4268. * @static
  4269. */
  4270. public static function prepend($key, $value)
  4271. {
  4272. /** @var \Illuminate\Config\Repository $instance */
  4273. $instance->prepend($key, $value);
  4274. }
  4275. /**
  4276. * Push a value onto an array configuration value.
  4277. *
  4278. * @param string $key
  4279. * @param mixed $value
  4280. * @return void
  4281. * @static
  4282. */
  4283. public static function push($key, $value)
  4284. {
  4285. /** @var \Illuminate\Config\Repository $instance */
  4286. $instance->push($key, $value);
  4287. }
  4288. /**
  4289. * Get all of the configuration items for the application.
  4290. *
  4291. * @return array
  4292. * @static
  4293. */
  4294. public static function all()
  4295. {
  4296. /** @var \Illuminate\Config\Repository $instance */
  4297. return $instance->all();
  4298. }
  4299. /**
  4300. * Determine if the given configuration option exists.
  4301. *
  4302. * @param string $key
  4303. * @return bool
  4304. * @static
  4305. */
  4306. public static function offsetExists($key)
  4307. {
  4308. /** @var \Illuminate\Config\Repository $instance */
  4309. return $instance->offsetExists($key);
  4310. }
  4311. /**
  4312. * Get a configuration option.
  4313. *
  4314. * @param string $key
  4315. * @return mixed
  4316. * @static
  4317. */
  4318. public static function offsetGet($key)
  4319. {
  4320. /** @var \Illuminate\Config\Repository $instance */
  4321. return $instance->offsetGet($key);
  4322. }
  4323. /**
  4324. * Set a configuration option.
  4325. *
  4326. * @param string $key
  4327. * @param mixed $value
  4328. * @return void
  4329. * @static
  4330. */
  4331. public static function offsetSet($key, $value)
  4332. {
  4333. /** @var \Illuminate\Config\Repository $instance */
  4334. $instance->offsetSet($key, $value);
  4335. }
  4336. /**
  4337. * Unset a configuration option.
  4338. *
  4339. * @param string $key
  4340. * @return void
  4341. * @static
  4342. */
  4343. public static function offsetUnset($key)
  4344. {
  4345. /** @var \Illuminate\Config\Repository $instance */
  4346. $instance->offsetUnset($key);
  4347. }
  4348. /**
  4349. * Register a custom macro.
  4350. *
  4351. * @param string $name
  4352. * @param object|callable $macro
  4353. * @return void
  4354. * @static
  4355. */
  4356. public static function macro($name, $macro)
  4357. {
  4358. \Illuminate\Config\Repository::macro($name, $macro);
  4359. }
  4360. /**
  4361. * Mix another object into the class.
  4362. *
  4363. * @param object $mixin
  4364. * @param bool $replace
  4365. * @return void
  4366. * @throws \ReflectionException
  4367. * @static
  4368. */
  4369. public static function mixin($mixin, $replace = true)
  4370. {
  4371. \Illuminate\Config\Repository::mixin($mixin, $replace);
  4372. }
  4373. /**
  4374. * Checks if macro is registered.
  4375. *
  4376. * @param string $name
  4377. * @return bool
  4378. * @static
  4379. */
  4380. public static function hasMacro($name)
  4381. {
  4382. return \Illuminate\Config\Repository::hasMacro($name);
  4383. }
  4384. /**
  4385. * Flush the existing macros.
  4386. *
  4387. * @return void
  4388. * @static
  4389. */
  4390. public static function flushMacros()
  4391. {
  4392. \Illuminate\Config\Repository::flushMacros();
  4393. }
  4394. }
  4395. /**
  4396. *
  4397. *
  4398. * @see \Illuminate\Cookie\CookieJar
  4399. */
  4400. class Cookie {
  4401. /**
  4402. * Create a new cookie instance.
  4403. *
  4404. * @param string $name
  4405. * @param string $value
  4406. * @param int $minutes
  4407. * @param string|null $path
  4408. * @param string|null $domain
  4409. * @param bool|null $secure
  4410. * @param bool $httpOnly
  4411. * @param bool $raw
  4412. * @param string|null $sameSite
  4413. * @return \Symfony\Component\HttpFoundation\Cookie
  4414. * @static
  4415. */
  4416. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4417. {
  4418. /** @var \Illuminate\Cookie\CookieJar $instance */
  4419. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4420. }
  4421. /**
  4422. * Create a cookie that lasts "forever" (400 days).
  4423. *
  4424. * @param string $name
  4425. * @param string $value
  4426. * @param string|null $path
  4427. * @param string|null $domain
  4428. * @param bool|null $secure
  4429. * @param bool $httpOnly
  4430. * @param bool $raw
  4431. * @param string|null $sameSite
  4432. * @return \Symfony\Component\HttpFoundation\Cookie
  4433. * @static
  4434. */
  4435. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4436. {
  4437. /** @var \Illuminate\Cookie\CookieJar $instance */
  4438. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4439. }
  4440. /**
  4441. * Expire the given cookie.
  4442. *
  4443. * @param string $name
  4444. * @param string|null $path
  4445. * @param string|null $domain
  4446. * @return \Symfony\Component\HttpFoundation\Cookie
  4447. * @static
  4448. */
  4449. public static function forget($name, $path = null, $domain = null)
  4450. {
  4451. /** @var \Illuminate\Cookie\CookieJar $instance */
  4452. return $instance->forget($name, $path, $domain);
  4453. }
  4454. /**
  4455. * Determine if a cookie has been queued.
  4456. *
  4457. * @param string $key
  4458. * @param string|null $path
  4459. * @return bool
  4460. * @static
  4461. */
  4462. public static function hasQueued($key, $path = null)
  4463. {
  4464. /** @var \Illuminate\Cookie\CookieJar $instance */
  4465. return $instance->hasQueued($key, $path);
  4466. }
  4467. /**
  4468. * Get a queued cookie instance.
  4469. *
  4470. * @param string $key
  4471. * @param mixed $default
  4472. * @param string|null $path
  4473. * @return \Symfony\Component\HttpFoundation\Cookie|null
  4474. * @static
  4475. */
  4476. public static function queued($key, $default = null, $path = null)
  4477. {
  4478. /** @var \Illuminate\Cookie\CookieJar $instance */
  4479. return $instance->queued($key, $default, $path);
  4480. }
  4481. /**
  4482. * Queue a cookie to send with the next response.
  4483. *
  4484. * @param array $parameters
  4485. * @return void
  4486. * @static
  4487. */
  4488. public static function queue(...$parameters)
  4489. {
  4490. /** @var \Illuminate\Cookie\CookieJar $instance */
  4491. $instance->queue(...$parameters);
  4492. }
  4493. /**
  4494. * Queue a cookie to expire with the next response.
  4495. *
  4496. * @param string $name
  4497. * @param string|null $path
  4498. * @param string|null $domain
  4499. * @return void
  4500. * @static
  4501. */
  4502. public static function expire($name, $path = null, $domain = null)
  4503. {
  4504. /** @var \Illuminate\Cookie\CookieJar $instance */
  4505. $instance->expire($name, $path, $domain);
  4506. }
  4507. /**
  4508. * Remove a cookie from the queue.
  4509. *
  4510. * @param string $name
  4511. * @param string|null $path
  4512. * @return void
  4513. * @static
  4514. */
  4515. public static function unqueue($name, $path = null)
  4516. {
  4517. /** @var \Illuminate\Cookie\CookieJar $instance */
  4518. $instance->unqueue($name, $path);
  4519. }
  4520. /**
  4521. * Set the default path and domain for the jar.
  4522. *
  4523. * @param string $path
  4524. * @param string $domain
  4525. * @param bool $secure
  4526. * @param string|null $sameSite
  4527. * @return \Illuminate\Cookie\CookieJar
  4528. * @static
  4529. */
  4530. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  4531. {
  4532. /** @var \Illuminate\Cookie\CookieJar $instance */
  4533. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  4534. }
  4535. /**
  4536. * Get the cookies which have been queued for the next request.
  4537. *
  4538. * @return \Symfony\Component\HttpFoundation\Cookie[]
  4539. * @static
  4540. */
  4541. public static function getQueuedCookies()
  4542. {
  4543. /** @var \Illuminate\Cookie\CookieJar $instance */
  4544. return $instance->getQueuedCookies();
  4545. }
  4546. /**
  4547. * Flush the cookies which have been queued for the next request.
  4548. *
  4549. * @return \Illuminate\Cookie\CookieJar
  4550. * @static
  4551. */
  4552. public static function flushQueuedCookies()
  4553. {
  4554. /** @var \Illuminate\Cookie\CookieJar $instance */
  4555. return $instance->flushQueuedCookies();
  4556. }
  4557. /**
  4558. * Register a custom macro.
  4559. *
  4560. * @param string $name
  4561. * @param object|callable $macro
  4562. * @return void
  4563. * @static
  4564. */
  4565. public static function macro($name, $macro)
  4566. {
  4567. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  4568. }
  4569. /**
  4570. * Mix another object into the class.
  4571. *
  4572. * @param object $mixin
  4573. * @param bool $replace
  4574. * @return void
  4575. * @throws \ReflectionException
  4576. * @static
  4577. */
  4578. public static function mixin($mixin, $replace = true)
  4579. {
  4580. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  4581. }
  4582. /**
  4583. * Checks if macro is registered.
  4584. *
  4585. * @param string $name
  4586. * @return bool
  4587. * @static
  4588. */
  4589. public static function hasMacro($name)
  4590. {
  4591. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  4592. }
  4593. /**
  4594. * Flush the existing macros.
  4595. *
  4596. * @return void
  4597. * @static
  4598. */
  4599. public static function flushMacros()
  4600. {
  4601. \Illuminate\Cookie\CookieJar::flushMacros();
  4602. }
  4603. }
  4604. /**
  4605. *
  4606. *
  4607. * @see \Illuminate\Encryption\Encrypter
  4608. */
  4609. class Crypt {
  4610. /**
  4611. * Determine if the given key and cipher combination is valid.
  4612. *
  4613. * @param string $key
  4614. * @param string $cipher
  4615. * @return bool
  4616. * @static
  4617. */
  4618. public static function supported($key, $cipher)
  4619. {
  4620. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  4621. }
  4622. /**
  4623. * Create a new encryption key for the given cipher.
  4624. *
  4625. * @param string $cipher
  4626. * @return string
  4627. * @static
  4628. */
  4629. public static function generateKey($cipher)
  4630. {
  4631. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  4632. }
  4633. /**
  4634. * Encrypt the given value.
  4635. *
  4636. * @param mixed $value
  4637. * @param bool $serialize
  4638. * @return string
  4639. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4640. * @static
  4641. */
  4642. public static function encrypt($value, $serialize = true)
  4643. {
  4644. /** @var \Illuminate\Encryption\Encrypter $instance */
  4645. return $instance->encrypt($value, $serialize);
  4646. }
  4647. /**
  4648. * Encrypt a string without serialization.
  4649. *
  4650. * @param string $value
  4651. * @return string
  4652. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4653. * @static
  4654. */
  4655. public static function encryptString($value)
  4656. {
  4657. /** @var \Illuminate\Encryption\Encrypter $instance */
  4658. return $instance->encryptString($value);
  4659. }
  4660. /**
  4661. * Decrypt the given value.
  4662. *
  4663. * @param string $payload
  4664. * @param bool $unserialize
  4665. * @return mixed
  4666. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4667. * @static
  4668. */
  4669. public static function decrypt($payload, $unserialize = true)
  4670. {
  4671. /** @var \Illuminate\Encryption\Encrypter $instance */
  4672. return $instance->decrypt($payload, $unserialize);
  4673. }
  4674. /**
  4675. * Decrypt the given string without unserialization.
  4676. *
  4677. * @param string $payload
  4678. * @return string
  4679. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4680. * @static
  4681. */
  4682. public static function decryptString($payload)
  4683. {
  4684. /** @var \Illuminate\Encryption\Encrypter $instance */
  4685. return $instance->decryptString($payload);
  4686. }
  4687. /**
  4688. * Get the encryption key that the encrypter is currently using.
  4689. *
  4690. * @return string
  4691. * @static
  4692. */
  4693. public static function getKey()
  4694. {
  4695. /** @var \Illuminate\Encryption\Encrypter $instance */
  4696. return $instance->getKey();
  4697. }
  4698. }
  4699. /**
  4700. *
  4701. *
  4702. * @see https://carbon.nesbot.com/docs/
  4703. * @see https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Factory.php
  4704. * @method static \Illuminate\Support\Carbon create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null)
  4705. * @method static \Illuminate\Support\Carbon createFromDate($year = null, $month = null, $day = null, $tz = null)
  4706. * @method static \Illuminate\Support\Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null)
  4707. * @method static \Illuminate\Support\Carbon createFromTimeString($time, $tz = null)
  4708. * @method static \Illuminate\Support\Carbon createFromTimestamp($timestamp, $tz = null)
  4709. * @method static \Illuminate\Support\Carbon createFromTimestampMs($timestamp, $tz = null)
  4710. * @method static \Illuminate\Support\Carbon createFromTimestampUTC($timestamp)
  4711. * @method static \Illuminate\Support\Carbon createMidnightDate($year = null, $month = null, $day = null, $tz = null)
  4712. * @method static void disableHumanDiffOption($humanDiffOption)
  4713. * @method static void enableHumanDiffOption($humanDiffOption)
  4714. * @method static \Illuminate\Support\Carbon fromSerialized($value)
  4715. * @method static array getLastErrors()
  4716. * @method static \Illuminate\Support\Carbon|null getTestNow()
  4717. * @method static \Illuminate\Support\Carbon instance($date)
  4718. * @method static bool isMutable()
  4719. * @method static \Illuminate\Support\Carbon maxValue()
  4720. * @method static \Illuminate\Support\Carbon minValue()
  4721. * @method static \Illuminate\Support\Carbon now($tz = null)
  4722. * @method static \Illuminate\Support\Carbon parse($time = null, $tz = null)
  4723. * @method static void setHumanDiffOptions($humanDiffOptions)
  4724. * @method static void setTestNow($testNow = null)
  4725. * @method static void setUtf8($utf8)
  4726. * @method static \Illuminate\Support\Carbon today($tz = null)
  4727. * @method static \Illuminate\Support\Carbon tomorrow($tz = null)
  4728. * @method static void useStrictMode($strictModeEnabled = true)
  4729. * @method static \Illuminate\Support\Carbon yesterday($tz = null)
  4730. * @method static \Illuminate\Support\Carbon|false createFromFormat($format, $time, $tz = null)
  4731. * @method static \Illuminate\Support\Carbon|false createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null)
  4732. * @method static \Illuminate\Support\Carbon|null make($var)
  4733. * @method static \Symfony\Component\Translation\TranslatorInterface getTranslator()
  4734. * @method static array getAvailableLocales()
  4735. * @method static array getDays()
  4736. * @method static array getIsoUnits()
  4737. * @method static array getWeekendDays()
  4738. * @method static bool hasFormat($date, $format)
  4739. * @method static bool hasMacro($name)
  4740. * @method static bool hasRelativeKeywords($time)
  4741. * @method static bool hasTestNow()
  4742. * @method static bool isImmutable()
  4743. * @method static bool isModifiableUnit($unit)
  4744. * @method static bool isStrictModeEnabled()
  4745. * @method static bool localeHasDiffOneDayWords($locale)
  4746. * @method static bool localeHasDiffSyntax($locale)
  4747. * @method static bool localeHasDiffTwoDayWords($locale)
  4748. * @method static bool localeHasPeriodSyntax($locale)
  4749. * @method static bool localeHasShortUnits($locale)
  4750. * @method static bool setLocale($locale)
  4751. * @method static bool shouldOverflowMonths()
  4752. * @method static bool shouldOverflowYears()
  4753. * @method static int getHumanDiffOptions()
  4754. * @method static int getMidDayAt()
  4755. * @method static int getWeekEndsAt()
  4756. * @method static int getWeekStartsAt()
  4757. * @method static mixed executeWithLocale($locale, $func)
  4758. * @method static string getLocale()
  4759. * @method static string pluralUnit(string $unit)
  4760. * @method static string singularUnit(string $unit)
  4761. * @method static void macro($name, $macro)
  4762. * @method static void mixin($mixin)
  4763. * @method static void resetMonthsOverflow()
  4764. * @method static void resetToStringFormat()
  4765. * @method static void resetYearsOverflow()
  4766. * @method static void serializeUsing($callback)
  4767. * @method static void setMidDayAt($hour)
  4768. * @method static void setToStringFormat($format)
  4769. * @method static void setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator)
  4770. * @method static void setWeekEndsAt($day)
  4771. * @method static void setWeekStartsAt($day)
  4772. * @method static void setWeekendDays($days)
  4773. * @method static void useMonthsOverflow($monthsOverflow = true)
  4774. * @method static void useYearsOverflow($yearsOverflow = true)
  4775. */
  4776. class Date {
  4777. /**
  4778. * Use the given handler when generating dates (class name, callable, or factory).
  4779. *
  4780. * @param mixed $handler
  4781. * @return mixed
  4782. * @throws \InvalidArgumentException
  4783. * @static
  4784. */
  4785. public static function use($handler)
  4786. {
  4787. return \Illuminate\Support\DateFactory::use($handler);
  4788. }
  4789. /**
  4790. * Use the default date class when generating dates.
  4791. *
  4792. * @return void
  4793. * @static
  4794. */
  4795. public static function useDefault()
  4796. {
  4797. \Illuminate\Support\DateFactory::useDefault();
  4798. }
  4799. /**
  4800. * Execute the given callable on each date creation.
  4801. *
  4802. * @param callable $callable
  4803. * @return void
  4804. * @static
  4805. */
  4806. public static function useCallable($callable)
  4807. {
  4808. \Illuminate\Support\DateFactory::useCallable($callable);
  4809. }
  4810. /**
  4811. * Use the given date type (class) when generating dates.
  4812. *
  4813. * @param string $dateClass
  4814. * @return void
  4815. * @static
  4816. */
  4817. public static function useClass($dateClass)
  4818. {
  4819. \Illuminate\Support\DateFactory::useClass($dateClass);
  4820. }
  4821. /**
  4822. * Use the given Carbon factory when generating dates.
  4823. *
  4824. * @param object $factory
  4825. * @return void
  4826. * @static
  4827. */
  4828. public static function useFactory($factory)
  4829. {
  4830. \Illuminate\Support\DateFactory::useFactory($factory);
  4831. }
  4832. }
  4833. /**
  4834. *
  4835. *
  4836. * @see \Illuminate\Database\DatabaseManager
  4837. * @see \Illuminate\Database\Connection
  4838. */
  4839. class DB {
  4840. /**
  4841. * Get a database connection instance.
  4842. *
  4843. * @param string|null $name
  4844. * @return \Illuminate\Database\Connection
  4845. * @static
  4846. */
  4847. public static function connection($name = null)
  4848. {
  4849. /** @var \Illuminate\Database\DatabaseManager $instance */
  4850. return $instance->connection($name);
  4851. }
  4852. /**
  4853. * Register a custom Doctrine type.
  4854. *
  4855. * @param string $class
  4856. * @param string $name
  4857. * @param string $type
  4858. * @return void
  4859. * @throws \Doctrine\DBAL\DBALException
  4860. * @throws \RuntimeException
  4861. * @static
  4862. */
  4863. public static function registerDoctrineType($class, $name, $type)
  4864. {
  4865. /** @var \Illuminate\Database\DatabaseManager $instance */
  4866. $instance->registerDoctrineType($class, $name, $type);
  4867. }
  4868. /**
  4869. * Disconnect from the given database and remove from local cache.
  4870. *
  4871. * @param string|null $name
  4872. * @return void
  4873. * @static
  4874. */
  4875. public static function purge($name = null)
  4876. {
  4877. /** @var \Illuminate\Database\DatabaseManager $instance */
  4878. $instance->purge($name);
  4879. }
  4880. /**
  4881. * Disconnect from the given database.
  4882. *
  4883. * @param string|null $name
  4884. * @return void
  4885. * @static
  4886. */
  4887. public static function disconnect($name = null)
  4888. {
  4889. /** @var \Illuminate\Database\DatabaseManager $instance */
  4890. $instance->disconnect($name);
  4891. }
  4892. /**
  4893. * Reconnect to the given database.
  4894. *
  4895. * @param string|null $name
  4896. * @return \Illuminate\Database\Connection
  4897. * @static
  4898. */
  4899. public static function reconnect($name = null)
  4900. {
  4901. /** @var \Illuminate\Database\DatabaseManager $instance */
  4902. return $instance->reconnect($name);
  4903. }
  4904. /**
  4905. * Set the default database connection for the callback execution.
  4906. *
  4907. * @param string $name
  4908. * @param callable $callback
  4909. * @return mixed
  4910. * @static
  4911. */
  4912. public static function usingConnection($name, $callback)
  4913. {
  4914. /** @var \Illuminate\Database\DatabaseManager $instance */
  4915. return $instance->usingConnection($name, $callback);
  4916. }
  4917. /**
  4918. * Get the default connection name.
  4919. *
  4920. * @return string
  4921. * @static
  4922. */
  4923. public static function getDefaultConnection()
  4924. {
  4925. /** @var \Illuminate\Database\DatabaseManager $instance */
  4926. return $instance->getDefaultConnection();
  4927. }
  4928. /**
  4929. * Set the default connection name.
  4930. *
  4931. * @param string $name
  4932. * @return void
  4933. * @static
  4934. */
  4935. public static function setDefaultConnection($name)
  4936. {
  4937. /** @var \Illuminate\Database\DatabaseManager $instance */
  4938. $instance->setDefaultConnection($name);
  4939. }
  4940. /**
  4941. * Get all of the support drivers.
  4942. *
  4943. * @return string[]
  4944. * @static
  4945. */
  4946. public static function supportedDrivers()
  4947. {
  4948. /** @var \Illuminate\Database\DatabaseManager $instance */
  4949. return $instance->supportedDrivers();
  4950. }
  4951. /**
  4952. * Get all of the drivers that are actually available.
  4953. *
  4954. * @return string[]
  4955. * @static
  4956. */
  4957. public static function availableDrivers()
  4958. {
  4959. /** @var \Illuminate\Database\DatabaseManager $instance */
  4960. return $instance->availableDrivers();
  4961. }
  4962. /**
  4963. * Register an extension connection resolver.
  4964. *
  4965. * @param string $name
  4966. * @param callable $resolver
  4967. * @return void
  4968. * @static
  4969. */
  4970. public static function extend($name, $resolver)
  4971. {
  4972. /** @var \Illuminate\Database\DatabaseManager $instance */
  4973. $instance->extend($name, $resolver);
  4974. }
  4975. /**
  4976. * Remove an extension connection resolver.
  4977. *
  4978. * @param string $name
  4979. * @return void
  4980. * @static
  4981. */
  4982. public static function forgetExtension($name)
  4983. {
  4984. /** @var \Illuminate\Database\DatabaseManager $instance */
  4985. $instance->forgetExtension($name);
  4986. }
  4987. /**
  4988. * Return all of the created connections.
  4989. *
  4990. * @return array<string, \Illuminate\Database\Connection>
  4991. * @static
  4992. */
  4993. public static function getConnections()
  4994. {
  4995. /** @var \Illuminate\Database\DatabaseManager $instance */
  4996. return $instance->getConnections();
  4997. }
  4998. /**
  4999. * Set the database reconnector callback.
  5000. *
  5001. * @param callable $reconnector
  5002. * @return void
  5003. * @static
  5004. */
  5005. public static function setReconnector($reconnector)
  5006. {
  5007. /** @var \Illuminate\Database\DatabaseManager $instance */
  5008. $instance->setReconnector($reconnector);
  5009. }
  5010. /**
  5011. * Set the application instance used by the manager.
  5012. *
  5013. * @param \Illuminate\Contracts\Foundation\Application $app
  5014. * @return \Illuminate\Database\DatabaseManager
  5015. * @static
  5016. */
  5017. public static function setApplication($app)
  5018. {
  5019. /** @var \Illuminate\Database\DatabaseManager $instance */
  5020. return $instance->setApplication($app);
  5021. }
  5022. /**
  5023. * Register a custom macro.
  5024. *
  5025. * @param string $name
  5026. * @param object|callable $macro
  5027. * @return void
  5028. * @static
  5029. */
  5030. public static function macro($name, $macro)
  5031. {
  5032. \Illuminate\Database\DatabaseManager::macro($name, $macro);
  5033. }
  5034. /**
  5035. * Mix another object into the class.
  5036. *
  5037. * @param object $mixin
  5038. * @param bool $replace
  5039. * @return void
  5040. * @throws \ReflectionException
  5041. * @static
  5042. */
  5043. public static function mixin($mixin, $replace = true)
  5044. {
  5045. \Illuminate\Database\DatabaseManager::mixin($mixin, $replace);
  5046. }
  5047. /**
  5048. * Checks if macro is registered.
  5049. *
  5050. * @param string $name
  5051. * @return bool
  5052. * @static
  5053. */
  5054. public static function hasMacro($name)
  5055. {
  5056. return \Illuminate\Database\DatabaseManager::hasMacro($name);
  5057. }
  5058. /**
  5059. * Flush the existing macros.
  5060. *
  5061. * @return void
  5062. * @static
  5063. */
  5064. public static function flushMacros()
  5065. {
  5066. \Illuminate\Database\DatabaseManager::flushMacros();
  5067. }
  5068. /**
  5069. * Dynamically handle calls to the class.
  5070. *
  5071. * @param string $method
  5072. * @param array $parameters
  5073. * @return mixed
  5074. * @throws \BadMethodCallException
  5075. * @static
  5076. */
  5077. public static function macroCall($method, $parameters)
  5078. {
  5079. /** @var \Illuminate\Database\DatabaseManager $instance */
  5080. return $instance->macroCall($method, $parameters);
  5081. }
  5082. /**
  5083. * Determine if the connected database is a MariaDB database.
  5084. *
  5085. * @return bool
  5086. * @static
  5087. */
  5088. public static function isMaria()
  5089. {
  5090. /** @var \Illuminate\Database\MySqlConnection $instance */
  5091. return $instance->isMaria();
  5092. }
  5093. /**
  5094. * Get a schema builder instance for the connection.
  5095. *
  5096. * @return \Illuminate\Database\Schema\MySqlBuilder
  5097. * @static
  5098. */
  5099. public static function getSchemaBuilder()
  5100. {
  5101. /** @var \Illuminate\Database\MySqlConnection $instance */
  5102. return $instance->getSchemaBuilder();
  5103. }
  5104. /**
  5105. * Get the schema state for the connection.
  5106. *
  5107. * @param \Illuminate\Filesystem\Filesystem|null $files
  5108. * @param callable|null $processFactory
  5109. * @return \Illuminate\Database\Schema\MySqlSchemaState
  5110. * @static
  5111. */
  5112. public static function getSchemaState($files = null, $processFactory = null)
  5113. {
  5114. /** @var \Illuminate\Database\MySqlConnection $instance */
  5115. return $instance->getSchemaState($files, $processFactory);
  5116. }
  5117. /**
  5118. * Set the query grammar to the default implementation.
  5119. *
  5120. * @return void
  5121. * @static
  5122. */
  5123. public static function useDefaultQueryGrammar()
  5124. { //Method inherited from \Illuminate\Database\Connection
  5125. /** @var \Illuminate\Database\MySqlConnection $instance */
  5126. $instance->useDefaultQueryGrammar();
  5127. }
  5128. /**
  5129. * Set the schema grammar to the default implementation.
  5130. *
  5131. * @return void
  5132. * @static
  5133. */
  5134. public static function useDefaultSchemaGrammar()
  5135. { //Method inherited from \Illuminate\Database\Connection
  5136. /** @var \Illuminate\Database\MySqlConnection $instance */
  5137. $instance->useDefaultSchemaGrammar();
  5138. }
  5139. /**
  5140. * Set the query post processor to the default implementation.
  5141. *
  5142. * @return void
  5143. * @static
  5144. */
  5145. public static function useDefaultPostProcessor()
  5146. { //Method inherited from \Illuminate\Database\Connection
  5147. /** @var \Illuminate\Database\MySqlConnection $instance */
  5148. $instance->useDefaultPostProcessor();
  5149. }
  5150. /**
  5151. * Begin a fluent query against a database table.
  5152. *
  5153. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  5154. * @param string|null $as
  5155. * @return \Illuminate\Database\Query\Builder
  5156. * @static
  5157. */
  5158. public static function table($table, $as = null)
  5159. { //Method inherited from \Illuminate\Database\Connection
  5160. /** @var \Illuminate\Database\MySqlConnection $instance */
  5161. return $instance->table($table, $as);
  5162. }
  5163. /**
  5164. * Get a new query builder instance.
  5165. *
  5166. * @return \Illuminate\Database\Query\Builder
  5167. * @static
  5168. */
  5169. public static function query()
  5170. { //Method inherited from \Illuminate\Database\Connection
  5171. /** @var \Illuminate\Database\MySqlConnection $instance */
  5172. return $instance->query();
  5173. }
  5174. /**
  5175. * Run a select statement and return a single result.
  5176. *
  5177. * @param string $query
  5178. * @param array $bindings
  5179. * @param bool $useReadPdo
  5180. * @return mixed
  5181. * @static
  5182. */
  5183. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  5184. { //Method inherited from \Illuminate\Database\Connection
  5185. /** @var \Illuminate\Database\MySqlConnection $instance */
  5186. return $instance->selectOne($query, $bindings, $useReadPdo);
  5187. }
  5188. /**
  5189. * Run a select statement and return the first column of the first row.
  5190. *
  5191. * @param string $query
  5192. * @param array $bindings
  5193. * @param bool $useReadPdo
  5194. * @return mixed
  5195. * @throws \Illuminate\Database\MultipleColumnsSelectedException
  5196. * @static
  5197. */
  5198. public static function scalar($query, $bindings = [], $useReadPdo = true)
  5199. { //Method inherited from \Illuminate\Database\Connection
  5200. /** @var \Illuminate\Database\MySqlConnection $instance */
  5201. return $instance->scalar($query, $bindings, $useReadPdo);
  5202. }
  5203. /**
  5204. * Run a select statement against the database.
  5205. *
  5206. * @param string $query
  5207. * @param array $bindings
  5208. * @return array
  5209. * @static
  5210. */
  5211. public static function selectFromWriteConnection($query, $bindings = [])
  5212. { //Method inherited from \Illuminate\Database\Connection
  5213. /** @var \Illuminate\Database\MySqlConnection $instance */
  5214. return $instance->selectFromWriteConnection($query, $bindings);
  5215. }
  5216. /**
  5217. * Run a select statement against the database.
  5218. *
  5219. * @param string $query
  5220. * @param array $bindings
  5221. * @param bool $useReadPdo
  5222. * @return array
  5223. * @static
  5224. */
  5225. public static function select($query, $bindings = [], $useReadPdo = true)
  5226. { //Method inherited from \Illuminate\Database\Connection
  5227. /** @var \Illuminate\Database\MySqlConnection $instance */
  5228. return $instance->select($query, $bindings, $useReadPdo);
  5229. }
  5230. /**
  5231. * Run a select statement against the database and returns a generator.
  5232. *
  5233. * @param string $query
  5234. * @param array $bindings
  5235. * @param bool $useReadPdo
  5236. * @return \Generator
  5237. * @static
  5238. */
  5239. public static function cursor($query, $bindings = [], $useReadPdo = true)
  5240. { //Method inherited from \Illuminate\Database\Connection
  5241. /** @var \Illuminate\Database\MySqlConnection $instance */
  5242. return $instance->cursor($query, $bindings, $useReadPdo);
  5243. }
  5244. /**
  5245. * Run an insert statement against the database.
  5246. *
  5247. * @param string $query
  5248. * @param array $bindings
  5249. * @return bool
  5250. * @static
  5251. */
  5252. public static function insert($query, $bindings = [])
  5253. { //Method inherited from \Illuminate\Database\Connection
  5254. /** @var \Illuminate\Database\MySqlConnection $instance */
  5255. return $instance->insert($query, $bindings);
  5256. }
  5257. /**
  5258. * Run an update statement against the database.
  5259. *
  5260. * @param string $query
  5261. * @param array $bindings
  5262. * @return int
  5263. * @static
  5264. */
  5265. public static function update($query, $bindings = [])
  5266. { //Method inherited from \Illuminate\Database\Connection
  5267. /** @var \Illuminate\Database\MySqlConnection $instance */
  5268. return $instance->update($query, $bindings);
  5269. }
  5270. /**
  5271. * Run a delete statement against the database.
  5272. *
  5273. * @param string $query
  5274. * @param array $bindings
  5275. * @return int
  5276. * @static
  5277. */
  5278. public static function delete($query, $bindings = [])
  5279. { //Method inherited from \Illuminate\Database\Connection
  5280. /** @var \Illuminate\Database\MySqlConnection $instance */
  5281. return $instance->delete($query, $bindings);
  5282. }
  5283. /**
  5284. * Execute an SQL statement and return the boolean result.
  5285. *
  5286. * @param string $query
  5287. * @param array $bindings
  5288. * @return bool
  5289. * @static
  5290. */
  5291. public static function statement($query, $bindings = [])
  5292. { //Method inherited from \Illuminate\Database\Connection
  5293. /** @var \Illuminate\Database\MySqlConnection $instance */
  5294. return $instance->statement($query, $bindings);
  5295. }
  5296. /**
  5297. * Run an SQL statement and get the number of rows affected.
  5298. *
  5299. * @param string $query
  5300. * @param array $bindings
  5301. * @return int
  5302. * @static
  5303. */
  5304. public static function affectingStatement($query, $bindings = [])
  5305. { //Method inherited from \Illuminate\Database\Connection
  5306. /** @var \Illuminate\Database\MySqlConnection $instance */
  5307. return $instance->affectingStatement($query, $bindings);
  5308. }
  5309. /**
  5310. * Run a raw, unprepared query against the PDO connection.
  5311. *
  5312. * @param string $query
  5313. * @return bool
  5314. * @static
  5315. */
  5316. public static function unprepared($query)
  5317. { //Method inherited from \Illuminate\Database\Connection
  5318. /** @var \Illuminate\Database\MySqlConnection $instance */
  5319. return $instance->unprepared($query);
  5320. }
  5321. /**
  5322. * Execute the given callback in "dry run" mode.
  5323. *
  5324. * @param \Closure $callback
  5325. * @return array
  5326. * @static
  5327. */
  5328. public static function pretend($callback)
  5329. { //Method inherited from \Illuminate\Database\Connection
  5330. /** @var \Illuminate\Database\MySqlConnection $instance */
  5331. return $instance->pretend($callback);
  5332. }
  5333. /**
  5334. * Bind values to their parameters in the given statement.
  5335. *
  5336. * @param \PDOStatement $statement
  5337. * @param array $bindings
  5338. * @return void
  5339. * @static
  5340. */
  5341. public static function bindValues($statement, $bindings)
  5342. { //Method inherited from \Illuminate\Database\Connection
  5343. /** @var \Illuminate\Database\MySqlConnection $instance */
  5344. $instance->bindValues($statement, $bindings);
  5345. }
  5346. /**
  5347. * Prepare the query bindings for execution.
  5348. *
  5349. * @param array $bindings
  5350. * @return array
  5351. * @static
  5352. */
  5353. public static function prepareBindings($bindings)
  5354. { //Method inherited from \Illuminate\Database\Connection
  5355. /** @var \Illuminate\Database\MySqlConnection $instance */
  5356. return $instance->prepareBindings($bindings);
  5357. }
  5358. /**
  5359. * Log a query in the connection's query log.
  5360. *
  5361. * @param string $query
  5362. * @param array $bindings
  5363. * @param float|null $time
  5364. * @return void
  5365. * @static
  5366. */
  5367. public static function logQuery($query, $bindings, $time = null)
  5368. { //Method inherited from \Illuminate\Database\Connection
  5369. /** @var \Illuminate\Database\MySqlConnection $instance */
  5370. $instance->logQuery($query, $bindings, $time);
  5371. }
  5372. /**
  5373. * Register a callback to be invoked when the connection queries for longer than a given amount of time.
  5374. *
  5375. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  5376. * @param callable $handler
  5377. * @return void
  5378. * @static
  5379. */
  5380. public static function whenQueryingForLongerThan($threshold, $handler)
  5381. { //Method inherited from \Illuminate\Database\Connection
  5382. /** @var \Illuminate\Database\MySqlConnection $instance */
  5383. $instance->whenQueryingForLongerThan($threshold, $handler);
  5384. }
  5385. /**
  5386. * Allow all the query duration handlers to run again, even if they have already run.
  5387. *
  5388. * @return void
  5389. * @static
  5390. */
  5391. public static function allowQueryDurationHandlersToRunAgain()
  5392. { //Method inherited from \Illuminate\Database\Connection
  5393. /** @var \Illuminate\Database\MySqlConnection $instance */
  5394. $instance->allowQueryDurationHandlersToRunAgain();
  5395. }
  5396. /**
  5397. * Get the duration of all run queries in milliseconds.
  5398. *
  5399. * @return float
  5400. * @static
  5401. */
  5402. public static function totalQueryDuration()
  5403. { //Method inherited from \Illuminate\Database\Connection
  5404. /** @var \Illuminate\Database\MySqlConnection $instance */
  5405. return $instance->totalQueryDuration();
  5406. }
  5407. /**
  5408. * Reset the duration of all run queries.
  5409. *
  5410. * @return void
  5411. * @static
  5412. */
  5413. public static function resetTotalQueryDuration()
  5414. { //Method inherited from \Illuminate\Database\Connection
  5415. /** @var \Illuminate\Database\MySqlConnection $instance */
  5416. $instance->resetTotalQueryDuration();
  5417. }
  5418. /**
  5419. * Register a hook to be run just before a database query is executed.
  5420. *
  5421. * @param \Closure $callback
  5422. * @return \Illuminate\Database\MySqlConnection
  5423. * @static
  5424. */
  5425. public static function beforeExecuting($callback)
  5426. { //Method inherited from \Illuminate\Database\Connection
  5427. /** @var \Illuminate\Database\MySqlConnection $instance */
  5428. return $instance->beforeExecuting($callback);
  5429. }
  5430. /**
  5431. * Register a database query listener with the connection.
  5432. *
  5433. * @param \Closure $callback
  5434. * @return void
  5435. * @static
  5436. */
  5437. public static function listen($callback)
  5438. { //Method inherited from \Illuminate\Database\Connection
  5439. /** @var \Illuminate\Database\MySqlConnection $instance */
  5440. $instance->listen($callback);
  5441. }
  5442. /**
  5443. * Get a new raw query expression.
  5444. *
  5445. * @param mixed $value
  5446. * @return \Illuminate\Database\Query\Expression
  5447. * @static
  5448. */
  5449. public static function raw($value)
  5450. { //Method inherited from \Illuminate\Database\Connection
  5451. /** @var \Illuminate\Database\MySqlConnection $instance */
  5452. return $instance->raw($value);
  5453. }
  5454. /**
  5455. * Determine if the database connection has modified any database records.
  5456. *
  5457. * @return bool
  5458. * @static
  5459. */
  5460. public static function hasModifiedRecords()
  5461. { //Method inherited from \Illuminate\Database\Connection
  5462. /** @var \Illuminate\Database\MySqlConnection $instance */
  5463. return $instance->hasModifiedRecords();
  5464. }
  5465. /**
  5466. * Indicate if any records have been modified.
  5467. *
  5468. * @param bool $value
  5469. * @return void
  5470. * @static
  5471. */
  5472. public static function recordsHaveBeenModified($value = true)
  5473. { //Method inherited from \Illuminate\Database\Connection
  5474. /** @var \Illuminate\Database\MySqlConnection $instance */
  5475. $instance->recordsHaveBeenModified($value);
  5476. }
  5477. /**
  5478. * Set the record modification state.
  5479. *
  5480. * @param bool $value
  5481. * @return \Illuminate\Database\MySqlConnection
  5482. * @static
  5483. */
  5484. public static function setRecordModificationState($value)
  5485. { //Method inherited from \Illuminate\Database\Connection
  5486. /** @var \Illuminate\Database\MySqlConnection $instance */
  5487. return $instance->setRecordModificationState($value);
  5488. }
  5489. /**
  5490. * Reset the record modification state.
  5491. *
  5492. * @return void
  5493. * @static
  5494. */
  5495. public static function forgetRecordModificationState()
  5496. { //Method inherited from \Illuminate\Database\Connection
  5497. /** @var \Illuminate\Database\MySqlConnection $instance */
  5498. $instance->forgetRecordModificationState();
  5499. }
  5500. /**
  5501. * Indicate that the connection should use the write PDO connection for reads.
  5502. *
  5503. * @param bool $value
  5504. * @return \Illuminate\Database\MySqlConnection
  5505. * @static
  5506. */
  5507. public static function useWriteConnectionWhenReading($value = true)
  5508. { //Method inherited from \Illuminate\Database\Connection
  5509. /** @var \Illuminate\Database\MySqlConnection $instance */
  5510. return $instance->useWriteConnectionWhenReading($value);
  5511. }
  5512. /**
  5513. * Is Doctrine available?
  5514. *
  5515. * @return bool
  5516. * @static
  5517. */
  5518. public static function isDoctrineAvailable()
  5519. { //Method inherited from \Illuminate\Database\Connection
  5520. /** @var \Illuminate\Database\MySqlConnection $instance */
  5521. return $instance->isDoctrineAvailable();
  5522. }
  5523. /**
  5524. * Get a Doctrine Schema Column instance.
  5525. *
  5526. * @param string $table
  5527. * @param string $column
  5528. * @return \Doctrine\DBAL\Schema\Column
  5529. * @static
  5530. */
  5531. public static function getDoctrineColumn($table, $column)
  5532. { //Method inherited from \Illuminate\Database\Connection
  5533. /** @var \Illuminate\Database\MySqlConnection $instance */
  5534. return $instance->getDoctrineColumn($table, $column);
  5535. }
  5536. /**
  5537. * Get the Doctrine DBAL schema manager for the connection.
  5538. *
  5539. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  5540. * @static
  5541. */
  5542. public static function getDoctrineSchemaManager()
  5543. { //Method inherited from \Illuminate\Database\Connection
  5544. /** @var \Illuminate\Database\MySqlConnection $instance */
  5545. return $instance->getDoctrineSchemaManager();
  5546. }
  5547. /**
  5548. * Get the Doctrine DBAL database connection instance.
  5549. *
  5550. * @return \Doctrine\DBAL\Connection
  5551. * @static
  5552. */
  5553. public static function getDoctrineConnection()
  5554. { //Method inherited from \Illuminate\Database\Connection
  5555. /** @var \Illuminate\Database\MySqlConnection $instance */
  5556. return $instance->getDoctrineConnection();
  5557. }
  5558. /**
  5559. * Get the current PDO connection.
  5560. *
  5561. * @return \PDO
  5562. * @static
  5563. */
  5564. public static function getPdo()
  5565. { //Method inherited from \Illuminate\Database\Connection
  5566. /** @var \Illuminate\Database\MySqlConnection $instance */
  5567. return $instance->getPdo();
  5568. }
  5569. /**
  5570. * Get the current PDO connection parameter without executing any reconnect logic.
  5571. *
  5572. * @return \PDO|\Closure|null
  5573. * @static
  5574. */
  5575. public static function getRawPdo()
  5576. { //Method inherited from \Illuminate\Database\Connection
  5577. /** @var \Illuminate\Database\MySqlConnection $instance */
  5578. return $instance->getRawPdo();
  5579. }
  5580. /**
  5581. * Get the current PDO connection used for reading.
  5582. *
  5583. * @return \PDO
  5584. * @static
  5585. */
  5586. public static function getReadPdo()
  5587. { //Method inherited from \Illuminate\Database\Connection
  5588. /** @var \Illuminate\Database\MySqlConnection $instance */
  5589. return $instance->getReadPdo();
  5590. }
  5591. /**
  5592. * Get the current read PDO connection parameter without executing any reconnect logic.
  5593. *
  5594. * @return \PDO|\Closure|null
  5595. * @static
  5596. */
  5597. public static function getRawReadPdo()
  5598. { //Method inherited from \Illuminate\Database\Connection
  5599. /** @var \Illuminate\Database\MySqlConnection $instance */
  5600. return $instance->getRawReadPdo();
  5601. }
  5602. /**
  5603. * Set the PDO connection.
  5604. *
  5605. * @param \PDO|\Closure|null $pdo
  5606. * @return \Illuminate\Database\MySqlConnection
  5607. * @static
  5608. */
  5609. public static function setPdo($pdo)
  5610. { //Method inherited from \Illuminate\Database\Connection
  5611. /** @var \Illuminate\Database\MySqlConnection $instance */
  5612. return $instance->setPdo($pdo);
  5613. }
  5614. /**
  5615. * Set the PDO connection used for reading.
  5616. *
  5617. * @param \PDO|\Closure|null $pdo
  5618. * @return \Illuminate\Database\MySqlConnection
  5619. * @static
  5620. */
  5621. public static function setReadPdo($pdo)
  5622. { //Method inherited from \Illuminate\Database\Connection
  5623. /** @var \Illuminate\Database\MySqlConnection $instance */
  5624. return $instance->setReadPdo($pdo);
  5625. }
  5626. /**
  5627. * Get the database connection name.
  5628. *
  5629. * @return string|null
  5630. * @static
  5631. */
  5632. public static function getName()
  5633. { //Method inherited from \Illuminate\Database\Connection
  5634. /** @var \Illuminate\Database\MySqlConnection $instance */
  5635. return $instance->getName();
  5636. }
  5637. /**
  5638. * Get the database connection full name.
  5639. *
  5640. * @return string|null
  5641. * @static
  5642. */
  5643. public static function getNameWithReadWriteType()
  5644. { //Method inherited from \Illuminate\Database\Connection
  5645. /** @var \Illuminate\Database\MySqlConnection $instance */
  5646. return $instance->getNameWithReadWriteType();
  5647. }
  5648. /**
  5649. * Get an option from the configuration options.
  5650. *
  5651. * @param string|null $option
  5652. * @return mixed
  5653. * @static
  5654. */
  5655. public static function getConfig($option = null)
  5656. { //Method inherited from \Illuminate\Database\Connection
  5657. /** @var \Illuminate\Database\MySqlConnection $instance */
  5658. return $instance->getConfig($option);
  5659. }
  5660. /**
  5661. * Get the PDO driver name.
  5662. *
  5663. * @return string
  5664. * @static
  5665. */
  5666. public static function getDriverName()
  5667. { //Method inherited from \Illuminate\Database\Connection
  5668. /** @var \Illuminate\Database\MySqlConnection $instance */
  5669. return $instance->getDriverName();
  5670. }
  5671. /**
  5672. * Get the query grammar used by the connection.
  5673. *
  5674. * @return \Illuminate\Database\Query\Grammars\Grammar
  5675. * @static
  5676. */
  5677. public static function getQueryGrammar()
  5678. { //Method inherited from \Illuminate\Database\Connection
  5679. /** @var \Illuminate\Database\MySqlConnection $instance */
  5680. return $instance->getQueryGrammar();
  5681. }
  5682. /**
  5683. * Set the query grammar used by the connection.
  5684. *
  5685. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  5686. * @return \Illuminate\Database\MySqlConnection
  5687. * @static
  5688. */
  5689. public static function setQueryGrammar($grammar)
  5690. { //Method inherited from \Illuminate\Database\Connection
  5691. /** @var \Illuminate\Database\MySqlConnection $instance */
  5692. return $instance->setQueryGrammar($grammar);
  5693. }
  5694. /**
  5695. * Get the schema grammar used by the connection.
  5696. *
  5697. * @return \Illuminate\Database\Schema\Grammars\Grammar
  5698. * @static
  5699. */
  5700. public static function getSchemaGrammar()
  5701. { //Method inherited from \Illuminate\Database\Connection
  5702. /** @var \Illuminate\Database\MySqlConnection $instance */
  5703. return $instance->getSchemaGrammar();
  5704. }
  5705. /**
  5706. * Set the schema grammar used by the connection.
  5707. *
  5708. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  5709. * @return \Illuminate\Database\MySqlConnection
  5710. * @static
  5711. */
  5712. public static function setSchemaGrammar($grammar)
  5713. { //Method inherited from \Illuminate\Database\Connection
  5714. /** @var \Illuminate\Database\MySqlConnection $instance */
  5715. return $instance->setSchemaGrammar($grammar);
  5716. }
  5717. /**
  5718. * Get the query post processor used by the connection.
  5719. *
  5720. * @return \Illuminate\Database\Query\Processors\Processor
  5721. * @static
  5722. */
  5723. public static function getPostProcessor()
  5724. { //Method inherited from \Illuminate\Database\Connection
  5725. /** @var \Illuminate\Database\MySqlConnection $instance */
  5726. return $instance->getPostProcessor();
  5727. }
  5728. /**
  5729. * Set the query post processor used by the connection.
  5730. *
  5731. * @param \Illuminate\Database\Query\Processors\Processor $processor
  5732. * @return \Illuminate\Database\MySqlConnection
  5733. * @static
  5734. */
  5735. public static function setPostProcessor($processor)
  5736. { //Method inherited from \Illuminate\Database\Connection
  5737. /** @var \Illuminate\Database\MySqlConnection $instance */
  5738. return $instance->setPostProcessor($processor);
  5739. }
  5740. /**
  5741. * Get the event dispatcher used by the connection.
  5742. *
  5743. * @return \Illuminate\Contracts\Events\Dispatcher
  5744. * @static
  5745. */
  5746. public static function getEventDispatcher()
  5747. { //Method inherited from \Illuminate\Database\Connection
  5748. /** @var \Illuminate\Database\MySqlConnection $instance */
  5749. return $instance->getEventDispatcher();
  5750. }
  5751. /**
  5752. * Set the event dispatcher instance on the connection.
  5753. *
  5754. * @param \Illuminate\Contracts\Events\Dispatcher $events
  5755. * @return \Illuminate\Database\MySqlConnection
  5756. * @static
  5757. */
  5758. public static function setEventDispatcher($events)
  5759. { //Method inherited from \Illuminate\Database\Connection
  5760. /** @var \Illuminate\Database\MySqlConnection $instance */
  5761. return $instance->setEventDispatcher($events);
  5762. }
  5763. /**
  5764. * Unset the event dispatcher for this connection.
  5765. *
  5766. * @return void
  5767. * @static
  5768. */
  5769. public static function unsetEventDispatcher()
  5770. { //Method inherited from \Illuminate\Database\Connection
  5771. /** @var \Illuminate\Database\MySqlConnection $instance */
  5772. $instance->unsetEventDispatcher();
  5773. }
  5774. /**
  5775. * Set the transaction manager instance on the connection.
  5776. *
  5777. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  5778. * @return \Illuminate\Database\MySqlConnection
  5779. * @static
  5780. */
  5781. public static function setTransactionManager($manager)
  5782. { //Method inherited from \Illuminate\Database\Connection
  5783. /** @var \Illuminate\Database\MySqlConnection $instance */
  5784. return $instance->setTransactionManager($manager);
  5785. }
  5786. /**
  5787. * Unset the transaction manager for this connection.
  5788. *
  5789. * @return void
  5790. * @static
  5791. */
  5792. public static function unsetTransactionManager()
  5793. { //Method inherited from \Illuminate\Database\Connection
  5794. /** @var \Illuminate\Database\MySqlConnection $instance */
  5795. $instance->unsetTransactionManager();
  5796. }
  5797. /**
  5798. * Determine if the connection is in a "dry run".
  5799. *
  5800. * @return bool
  5801. * @static
  5802. */
  5803. public static function pretending()
  5804. { //Method inherited from \Illuminate\Database\Connection
  5805. /** @var \Illuminate\Database\MySqlConnection $instance */
  5806. return $instance->pretending();
  5807. }
  5808. /**
  5809. * Get the connection query log.
  5810. *
  5811. * @return array
  5812. * @static
  5813. */
  5814. public static function getQueryLog()
  5815. { //Method inherited from \Illuminate\Database\Connection
  5816. /** @var \Illuminate\Database\MySqlConnection $instance */
  5817. return $instance->getQueryLog();
  5818. }
  5819. /**
  5820. * Clear the query log.
  5821. *
  5822. * @return void
  5823. * @static
  5824. */
  5825. public static function flushQueryLog()
  5826. { //Method inherited from \Illuminate\Database\Connection
  5827. /** @var \Illuminate\Database\MySqlConnection $instance */
  5828. $instance->flushQueryLog();
  5829. }
  5830. /**
  5831. * Enable the query log on the connection.
  5832. *
  5833. * @return void
  5834. * @static
  5835. */
  5836. public static function enableQueryLog()
  5837. { //Method inherited from \Illuminate\Database\Connection
  5838. /** @var \Illuminate\Database\MySqlConnection $instance */
  5839. $instance->enableQueryLog();
  5840. }
  5841. /**
  5842. * Disable the query log on the connection.
  5843. *
  5844. * @return void
  5845. * @static
  5846. */
  5847. public static function disableQueryLog()
  5848. { //Method inherited from \Illuminate\Database\Connection
  5849. /** @var \Illuminate\Database\MySqlConnection $instance */
  5850. $instance->disableQueryLog();
  5851. }
  5852. /**
  5853. * Determine whether we're logging queries.
  5854. *
  5855. * @return bool
  5856. * @static
  5857. */
  5858. public static function logging()
  5859. { //Method inherited from \Illuminate\Database\Connection
  5860. /** @var \Illuminate\Database\MySqlConnection $instance */
  5861. return $instance->logging();
  5862. }
  5863. /**
  5864. * Get the name of the connected database.
  5865. *
  5866. * @return string
  5867. * @static
  5868. */
  5869. public static function getDatabaseName()
  5870. { //Method inherited from \Illuminate\Database\Connection
  5871. /** @var \Illuminate\Database\MySqlConnection $instance */
  5872. return $instance->getDatabaseName();
  5873. }
  5874. /**
  5875. * Set the name of the connected database.
  5876. *
  5877. * @param string $database
  5878. * @return \Illuminate\Database\MySqlConnection
  5879. * @static
  5880. */
  5881. public static function setDatabaseName($database)
  5882. { //Method inherited from \Illuminate\Database\Connection
  5883. /** @var \Illuminate\Database\MySqlConnection $instance */
  5884. return $instance->setDatabaseName($database);
  5885. }
  5886. /**
  5887. * Set the read / write type of the connection.
  5888. *
  5889. * @param string|null $readWriteType
  5890. * @return \Illuminate\Database\MySqlConnection
  5891. * @static
  5892. */
  5893. public static function setReadWriteType($readWriteType)
  5894. { //Method inherited from \Illuminate\Database\Connection
  5895. /** @var \Illuminate\Database\MySqlConnection $instance */
  5896. return $instance->setReadWriteType($readWriteType);
  5897. }
  5898. /**
  5899. * Get the table prefix for the connection.
  5900. *
  5901. * @return string
  5902. * @static
  5903. */
  5904. public static function getTablePrefix()
  5905. { //Method inherited from \Illuminate\Database\Connection
  5906. /** @var \Illuminate\Database\MySqlConnection $instance */
  5907. return $instance->getTablePrefix();
  5908. }
  5909. /**
  5910. * Set the table prefix in use by the connection.
  5911. *
  5912. * @param string $prefix
  5913. * @return \Illuminate\Database\MySqlConnection
  5914. * @static
  5915. */
  5916. public static function setTablePrefix($prefix)
  5917. { //Method inherited from \Illuminate\Database\Connection
  5918. /** @var \Illuminate\Database\MySqlConnection $instance */
  5919. return $instance->setTablePrefix($prefix);
  5920. }
  5921. /**
  5922. * Set the table prefix and return the grammar.
  5923. *
  5924. * @param \Illuminate\Database\Grammar $grammar
  5925. * @return \Illuminate\Database\Grammar
  5926. * @static
  5927. */
  5928. public static function withTablePrefix($grammar)
  5929. { //Method inherited from \Illuminate\Database\Connection
  5930. /** @var \Illuminate\Database\MySqlConnection $instance */
  5931. return $instance->withTablePrefix($grammar);
  5932. }
  5933. /**
  5934. * Register a connection resolver.
  5935. *
  5936. * @param string $driver
  5937. * @param \Closure $callback
  5938. * @return void
  5939. * @static
  5940. */
  5941. public static function resolverFor($driver, $callback)
  5942. { //Method inherited from \Illuminate\Database\Connection
  5943. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  5944. }
  5945. /**
  5946. * Get the connection resolver for the given driver.
  5947. *
  5948. * @param string $driver
  5949. * @return mixed
  5950. * @static
  5951. */
  5952. public static function getResolver($driver)
  5953. { //Method inherited from \Illuminate\Database\Connection
  5954. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  5955. }
  5956. /**
  5957. * Execute a Closure within a transaction.
  5958. *
  5959. * @param \Closure $callback
  5960. * @param int $attempts
  5961. * @return mixed
  5962. * @throws \Throwable
  5963. * @static
  5964. */
  5965. public static function transaction($callback, $attempts = 1)
  5966. { //Method inherited from \Illuminate\Database\Connection
  5967. /** @var \Illuminate\Database\MySqlConnection $instance */
  5968. return $instance->transaction($callback, $attempts);
  5969. }
  5970. /**
  5971. * Start a new database transaction.
  5972. *
  5973. * @return void
  5974. * @throws \Throwable
  5975. * @static
  5976. */
  5977. public static function beginTransaction()
  5978. { //Method inherited from \Illuminate\Database\Connection
  5979. /** @var \Illuminate\Database\MySqlConnection $instance */
  5980. $instance->beginTransaction();
  5981. }
  5982. /**
  5983. * Commit the active database transaction.
  5984. *
  5985. * @return void
  5986. * @throws \Throwable
  5987. * @static
  5988. */
  5989. public static function commit()
  5990. { //Method inherited from \Illuminate\Database\Connection
  5991. /** @var \Illuminate\Database\MySqlConnection $instance */
  5992. $instance->commit();
  5993. }
  5994. /**
  5995. * Rollback the active database transaction.
  5996. *
  5997. * @param int|null $toLevel
  5998. * @return void
  5999. * @throws \Throwable
  6000. * @static
  6001. */
  6002. public static function rollBack($toLevel = null)
  6003. { //Method inherited from \Illuminate\Database\Connection
  6004. /** @var \Illuminate\Database\MySqlConnection $instance */
  6005. $instance->rollBack($toLevel);
  6006. }
  6007. /**
  6008. * Get the number of active transactions.
  6009. *
  6010. * @return int
  6011. * @static
  6012. */
  6013. public static function transactionLevel()
  6014. { //Method inherited from \Illuminate\Database\Connection
  6015. /** @var \Illuminate\Database\MySqlConnection $instance */
  6016. return $instance->transactionLevel();
  6017. }
  6018. /**
  6019. * Execute the callback after a transaction commits.
  6020. *
  6021. * @param callable $callback
  6022. * @return void
  6023. * @throws \RuntimeException
  6024. * @static
  6025. */
  6026. public static function afterCommit($callback)
  6027. { //Method inherited from \Illuminate\Database\Connection
  6028. /** @var \Illuminate\Database\MySqlConnection $instance */
  6029. $instance->afterCommit($callback);
  6030. }
  6031. }
  6032. /**
  6033. *
  6034. *
  6035. * @see \Illuminate\Events\Dispatcher
  6036. */
  6037. class Event {
  6038. /**
  6039. * Register an event listener with the dispatcher.
  6040. *
  6041. * @param \Closure|string|array $events
  6042. * @param \Closure|string|array|null $listener
  6043. * @return void
  6044. * @static
  6045. */
  6046. public static function listen($events, $listener = null)
  6047. {
  6048. /** @var \Illuminate\Events\Dispatcher $instance */
  6049. $instance->listen($events, $listener);
  6050. }
  6051. /**
  6052. * Determine if a given event has listeners.
  6053. *
  6054. * @param string $eventName
  6055. * @return bool
  6056. * @static
  6057. */
  6058. public static function hasListeners($eventName)
  6059. {
  6060. /** @var \Illuminate\Events\Dispatcher $instance */
  6061. return $instance->hasListeners($eventName);
  6062. }
  6063. /**
  6064. * Determine if the given event has any wildcard listeners.
  6065. *
  6066. * @param string $eventName
  6067. * @return bool
  6068. * @static
  6069. */
  6070. public static function hasWildcardListeners($eventName)
  6071. {
  6072. /** @var \Illuminate\Events\Dispatcher $instance */
  6073. return $instance->hasWildcardListeners($eventName);
  6074. }
  6075. /**
  6076. * Register an event and payload to be fired later.
  6077. *
  6078. * @param string $event
  6079. * @param object|array $payload
  6080. * @return void
  6081. * @static
  6082. */
  6083. public static function push($event, $payload = [])
  6084. {
  6085. /** @var \Illuminate\Events\Dispatcher $instance */
  6086. $instance->push($event, $payload);
  6087. }
  6088. /**
  6089. * Flush a set of pushed events.
  6090. *
  6091. * @param string $event
  6092. * @return void
  6093. * @static
  6094. */
  6095. public static function flush($event)
  6096. {
  6097. /** @var \Illuminate\Events\Dispatcher $instance */
  6098. $instance->flush($event);
  6099. }
  6100. /**
  6101. * Register an event subscriber with the dispatcher.
  6102. *
  6103. * @param object|string $subscriber
  6104. * @return void
  6105. * @static
  6106. */
  6107. public static function subscribe($subscriber)
  6108. {
  6109. /** @var \Illuminate\Events\Dispatcher $instance */
  6110. $instance->subscribe($subscriber);
  6111. }
  6112. /**
  6113. * Fire an event until the first non-null response is returned.
  6114. *
  6115. * @param string|object $event
  6116. * @param mixed $payload
  6117. * @return array|null
  6118. * @static
  6119. */
  6120. public static function until($event, $payload = [])
  6121. {
  6122. /** @var \Illuminate\Events\Dispatcher $instance */
  6123. return $instance->until($event, $payload);
  6124. }
  6125. /**
  6126. * Fire an event and call the listeners.
  6127. *
  6128. * @param string|object $event
  6129. * @param mixed $payload
  6130. * @param bool $halt
  6131. * @return array|null
  6132. * @static
  6133. */
  6134. public static function dispatch($event, $payload = [], $halt = false)
  6135. {
  6136. /** @var \Illuminate\Events\Dispatcher $instance */
  6137. return $instance->dispatch($event, $payload, $halt);
  6138. }
  6139. /**
  6140. * Get all of the listeners for a given event name.
  6141. *
  6142. * @param string $eventName
  6143. * @return array
  6144. * @static
  6145. */
  6146. public static function getListeners($eventName)
  6147. {
  6148. /** @var \Illuminate\Events\Dispatcher $instance */
  6149. return $instance->getListeners($eventName);
  6150. }
  6151. /**
  6152. * Register an event listener with the dispatcher.
  6153. *
  6154. * @param \Closure|string|array $listener
  6155. * @param bool $wildcard
  6156. * @return \Closure
  6157. * @static
  6158. */
  6159. public static function makeListener($listener, $wildcard = false)
  6160. {
  6161. /** @var \Illuminate\Events\Dispatcher $instance */
  6162. return $instance->makeListener($listener, $wildcard);
  6163. }
  6164. /**
  6165. * Create a class based listener using the IoC container.
  6166. *
  6167. * @param string $listener
  6168. * @param bool $wildcard
  6169. * @return \Closure
  6170. * @static
  6171. */
  6172. public static function createClassListener($listener, $wildcard = false)
  6173. {
  6174. /** @var \Illuminate\Events\Dispatcher $instance */
  6175. return $instance->createClassListener($listener, $wildcard);
  6176. }
  6177. /**
  6178. * Remove a set of listeners from the dispatcher.
  6179. *
  6180. * @param string $event
  6181. * @return void
  6182. * @static
  6183. */
  6184. public static function forget($event)
  6185. {
  6186. /** @var \Illuminate\Events\Dispatcher $instance */
  6187. $instance->forget($event);
  6188. }
  6189. /**
  6190. * Forget all of the pushed listeners.
  6191. *
  6192. * @return void
  6193. * @static
  6194. */
  6195. public static function forgetPushed()
  6196. {
  6197. /** @var \Illuminate\Events\Dispatcher $instance */
  6198. $instance->forgetPushed();
  6199. }
  6200. /**
  6201. * Set the queue resolver implementation.
  6202. *
  6203. * @param callable $resolver
  6204. * @return \Illuminate\Events\Dispatcher
  6205. * @static
  6206. */
  6207. public static function setQueueResolver($resolver)
  6208. {
  6209. /** @var \Illuminate\Events\Dispatcher $instance */
  6210. return $instance->setQueueResolver($resolver);
  6211. }
  6212. /**
  6213. * Gets the raw, unprepared listeners.
  6214. *
  6215. * @return array
  6216. * @static
  6217. */
  6218. public static function getRawListeners()
  6219. {
  6220. /** @var \Illuminate\Events\Dispatcher $instance */
  6221. return $instance->getRawListeners();
  6222. }
  6223. /**
  6224. * Register a custom macro.
  6225. *
  6226. * @param string $name
  6227. * @param object|callable $macro
  6228. * @return void
  6229. * @static
  6230. */
  6231. public static function macro($name, $macro)
  6232. {
  6233. \Illuminate\Events\Dispatcher::macro($name, $macro);
  6234. }
  6235. /**
  6236. * Mix another object into the class.
  6237. *
  6238. * @param object $mixin
  6239. * @param bool $replace
  6240. * @return void
  6241. * @throws \ReflectionException
  6242. * @static
  6243. */
  6244. public static function mixin($mixin, $replace = true)
  6245. {
  6246. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  6247. }
  6248. /**
  6249. * Checks if macro is registered.
  6250. *
  6251. * @param string $name
  6252. * @return bool
  6253. * @static
  6254. */
  6255. public static function hasMacro($name)
  6256. {
  6257. return \Illuminate\Events\Dispatcher::hasMacro($name);
  6258. }
  6259. /**
  6260. * Flush the existing macros.
  6261. *
  6262. * @return void
  6263. * @static
  6264. */
  6265. public static function flushMacros()
  6266. {
  6267. \Illuminate\Events\Dispatcher::flushMacros();
  6268. }
  6269. /**
  6270. * Specify the events that should be dispatched instead of faked.
  6271. *
  6272. * @param array|string $eventsToDispatch
  6273. * @return \Illuminate\Support\Testing\Fakes\EventFake
  6274. * @static
  6275. */
  6276. public static function except($eventsToDispatch)
  6277. {
  6278. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6279. return $instance->except($eventsToDispatch);
  6280. }
  6281. /**
  6282. * Assert if an event has a listener attached to it.
  6283. *
  6284. * @param string $expectedEvent
  6285. * @param string|array $expectedListener
  6286. * @return void
  6287. * @static
  6288. */
  6289. public static function assertListening($expectedEvent, $expectedListener)
  6290. {
  6291. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6292. $instance->assertListening($expectedEvent, $expectedListener);
  6293. }
  6294. /**
  6295. * Assert if an event was dispatched based on a truth-test callback.
  6296. *
  6297. * @param string|\Closure $event
  6298. * @param callable|int|null $callback
  6299. * @return void
  6300. * @static
  6301. */
  6302. public static function assertDispatched($event, $callback = null)
  6303. {
  6304. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6305. $instance->assertDispatched($event, $callback);
  6306. }
  6307. /**
  6308. * Assert if an event was dispatched a number of times.
  6309. *
  6310. * @param string $event
  6311. * @param int $times
  6312. * @return void
  6313. * @static
  6314. */
  6315. public static function assertDispatchedTimes($event, $times = 1)
  6316. {
  6317. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6318. $instance->assertDispatchedTimes($event, $times);
  6319. }
  6320. /**
  6321. * Determine if an event was dispatched based on a truth-test callback.
  6322. *
  6323. * @param string|\Closure $event
  6324. * @param callable|null $callback
  6325. * @return void
  6326. * @static
  6327. */
  6328. public static function assertNotDispatched($event, $callback = null)
  6329. {
  6330. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6331. $instance->assertNotDispatched($event, $callback);
  6332. }
  6333. /**
  6334. * Assert that no events were dispatched.
  6335. *
  6336. * @return void
  6337. * @static
  6338. */
  6339. public static function assertNothingDispatched()
  6340. {
  6341. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6342. $instance->assertNothingDispatched();
  6343. }
  6344. /**
  6345. * Get all of the events matching a truth-test callback.
  6346. *
  6347. * @param string $event
  6348. * @param callable|null $callback
  6349. * @return \Illuminate\Support\Collection
  6350. * @static
  6351. */
  6352. public static function dispatched($event, $callback = null)
  6353. {
  6354. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6355. return $instance->dispatched($event, $callback);
  6356. }
  6357. /**
  6358. * Determine if the given event has been dispatched.
  6359. *
  6360. * @param string $event
  6361. * @return bool
  6362. * @static
  6363. */
  6364. public static function hasDispatched($event)
  6365. {
  6366. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6367. return $instance->hasDispatched($event);
  6368. }
  6369. }
  6370. /**
  6371. *
  6372. *
  6373. * @see \Illuminate\Filesystem\Filesystem
  6374. */
  6375. class File {
  6376. /**
  6377. * Determine if a file or directory exists.
  6378. *
  6379. * @param string $path
  6380. * @return bool
  6381. * @static
  6382. */
  6383. public static function exists($path)
  6384. {
  6385. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6386. return $instance->exists($path);
  6387. }
  6388. /**
  6389. * Determine if a file or directory is missing.
  6390. *
  6391. * @param string $path
  6392. * @return bool
  6393. * @static
  6394. */
  6395. public static function missing($path)
  6396. {
  6397. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6398. return $instance->missing($path);
  6399. }
  6400. /**
  6401. * Get the contents of a file.
  6402. *
  6403. * @param string $path
  6404. * @param bool $lock
  6405. * @return string
  6406. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6407. * @static
  6408. */
  6409. public static function get($path, $lock = false)
  6410. {
  6411. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6412. return $instance->get($path, $lock);
  6413. }
  6414. /**
  6415. * Get contents of a file with shared access.
  6416. *
  6417. * @param string $path
  6418. * @return string
  6419. * @static
  6420. */
  6421. public static function sharedGet($path)
  6422. {
  6423. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6424. return $instance->sharedGet($path);
  6425. }
  6426. /**
  6427. * Get the returned value of a file.
  6428. *
  6429. * @param string $path
  6430. * @param array $data
  6431. * @return mixed
  6432. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6433. * @static
  6434. */
  6435. public static function getRequire($path, $data = [])
  6436. {
  6437. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6438. return $instance->getRequire($path, $data);
  6439. }
  6440. /**
  6441. * Require the given file once.
  6442. *
  6443. * @param string $path
  6444. * @param array $data
  6445. * @return mixed
  6446. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6447. * @static
  6448. */
  6449. public static function requireOnce($path, $data = [])
  6450. {
  6451. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6452. return $instance->requireOnce($path, $data);
  6453. }
  6454. /**
  6455. * Get the contents of a file one line at a time.
  6456. *
  6457. * @param string $path
  6458. * @return \Illuminate\Support\LazyCollection
  6459. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6460. * @static
  6461. */
  6462. public static function lines($path)
  6463. {
  6464. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6465. return $instance->lines($path);
  6466. }
  6467. /**
  6468. * Get the hash of the file at the given path.
  6469. *
  6470. * @param string $path
  6471. * @param string $algorithm
  6472. * @return string
  6473. * @static
  6474. */
  6475. public static function hash($path, $algorithm = 'md5')
  6476. {
  6477. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6478. return $instance->hash($path, $algorithm);
  6479. }
  6480. /**
  6481. * Write the contents of a file.
  6482. *
  6483. * @param string $path
  6484. * @param string $contents
  6485. * @param bool $lock
  6486. * @return int|bool
  6487. * @static
  6488. */
  6489. public static function put($path, $contents, $lock = false)
  6490. {
  6491. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6492. return $instance->put($path, $contents, $lock);
  6493. }
  6494. /**
  6495. * Write the contents of a file, replacing it atomically if it already exists.
  6496. *
  6497. * @param string $path
  6498. * @param string $content
  6499. * @return void
  6500. * @static
  6501. */
  6502. public static function replace($path, $content)
  6503. {
  6504. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6505. $instance->replace($path, $content);
  6506. }
  6507. /**
  6508. * Replace a given string within a given file.
  6509. *
  6510. * @param array|string $search
  6511. * @param array|string $replace
  6512. * @param string $path
  6513. * @return void
  6514. * @static
  6515. */
  6516. public static function replaceInFile($search, $replace, $path)
  6517. {
  6518. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6519. $instance->replaceInFile($search, $replace, $path);
  6520. }
  6521. /**
  6522. * Prepend to a file.
  6523. *
  6524. * @param string $path
  6525. * @param string $data
  6526. * @return int
  6527. * @static
  6528. */
  6529. public static function prepend($path, $data)
  6530. {
  6531. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6532. return $instance->prepend($path, $data);
  6533. }
  6534. /**
  6535. * Append to a file.
  6536. *
  6537. * @param string $path
  6538. * @param string $data
  6539. * @return int
  6540. * @static
  6541. */
  6542. public static function append($path, $data)
  6543. {
  6544. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6545. return $instance->append($path, $data);
  6546. }
  6547. /**
  6548. * Get or set UNIX mode of a file or directory.
  6549. *
  6550. * @param string $path
  6551. * @param int|null $mode
  6552. * @return mixed
  6553. * @static
  6554. */
  6555. public static function chmod($path, $mode = null)
  6556. {
  6557. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6558. return $instance->chmod($path, $mode);
  6559. }
  6560. /**
  6561. * Delete the file at a given path.
  6562. *
  6563. * @param string|array $paths
  6564. * @return bool
  6565. * @static
  6566. */
  6567. public static function delete($paths)
  6568. {
  6569. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6570. return $instance->delete($paths);
  6571. }
  6572. /**
  6573. * Move a file to a new location.
  6574. *
  6575. * @param string $path
  6576. * @param string $target
  6577. * @return bool
  6578. * @static
  6579. */
  6580. public static function move($path, $target)
  6581. {
  6582. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6583. return $instance->move($path, $target);
  6584. }
  6585. /**
  6586. * Copy a file to a new location.
  6587. *
  6588. * @param string $path
  6589. * @param string $target
  6590. * @return bool
  6591. * @static
  6592. */
  6593. public static function copy($path, $target)
  6594. {
  6595. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6596. return $instance->copy($path, $target);
  6597. }
  6598. /**
  6599. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  6600. *
  6601. * @param string $target
  6602. * @param string $link
  6603. * @return void
  6604. * @static
  6605. */
  6606. public static function link($target, $link)
  6607. {
  6608. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6609. $instance->link($target, $link);
  6610. }
  6611. /**
  6612. * Create a relative symlink to the target file or directory.
  6613. *
  6614. * @param string $target
  6615. * @param string $link
  6616. * @return void
  6617. * @throws \RuntimeException
  6618. * @static
  6619. */
  6620. public static function relativeLink($target, $link)
  6621. {
  6622. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6623. $instance->relativeLink($target, $link);
  6624. }
  6625. /**
  6626. * Extract the file name from a file path.
  6627. *
  6628. * @param string $path
  6629. * @return string
  6630. * @static
  6631. */
  6632. public static function name($path)
  6633. {
  6634. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6635. return $instance->name($path);
  6636. }
  6637. /**
  6638. * Extract the trailing name component from a file path.
  6639. *
  6640. * @param string $path
  6641. * @return string
  6642. * @static
  6643. */
  6644. public static function basename($path)
  6645. {
  6646. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6647. return $instance->basename($path);
  6648. }
  6649. /**
  6650. * Extract the parent directory from a file path.
  6651. *
  6652. * @param string $path
  6653. * @return string
  6654. * @static
  6655. */
  6656. public static function dirname($path)
  6657. {
  6658. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6659. return $instance->dirname($path);
  6660. }
  6661. /**
  6662. * Extract the file extension from a file path.
  6663. *
  6664. * @param string $path
  6665. * @return string
  6666. * @static
  6667. */
  6668. public static function extension($path)
  6669. {
  6670. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6671. return $instance->extension($path);
  6672. }
  6673. /**
  6674. * Guess the file extension from the mime-type of a given file.
  6675. *
  6676. * @param string $path
  6677. * @return string|null
  6678. * @throws \RuntimeException
  6679. * @static
  6680. */
  6681. public static function guessExtension($path)
  6682. {
  6683. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6684. return $instance->guessExtension($path);
  6685. }
  6686. /**
  6687. * Get the file type of a given file.
  6688. *
  6689. * @param string $path
  6690. * @return string
  6691. * @static
  6692. */
  6693. public static function type($path)
  6694. {
  6695. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6696. return $instance->type($path);
  6697. }
  6698. /**
  6699. * Get the mime-type of a given file.
  6700. *
  6701. * @param string $path
  6702. * @return string|false
  6703. * @static
  6704. */
  6705. public static function mimeType($path)
  6706. {
  6707. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6708. return $instance->mimeType($path);
  6709. }
  6710. /**
  6711. * Get the file size of a given file.
  6712. *
  6713. * @param string $path
  6714. * @return int
  6715. * @static
  6716. */
  6717. public static function size($path)
  6718. {
  6719. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6720. return $instance->size($path);
  6721. }
  6722. /**
  6723. * Get the file's last modification time.
  6724. *
  6725. * @param string $path
  6726. * @return int
  6727. * @static
  6728. */
  6729. public static function lastModified($path)
  6730. {
  6731. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6732. return $instance->lastModified($path);
  6733. }
  6734. /**
  6735. * Determine if the given path is a directory.
  6736. *
  6737. * @param string $directory
  6738. * @return bool
  6739. * @static
  6740. */
  6741. public static function isDirectory($directory)
  6742. {
  6743. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6744. return $instance->isDirectory($directory);
  6745. }
  6746. /**
  6747. * Determine if the given path is a directory that does not contain any other files or directories.
  6748. *
  6749. * @param string $directory
  6750. * @param bool $ignoreDotFiles
  6751. * @return bool
  6752. * @static
  6753. */
  6754. public static function isEmptyDirectory($directory, $ignoreDotFiles = false)
  6755. {
  6756. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6757. return $instance->isEmptyDirectory($directory, $ignoreDotFiles);
  6758. }
  6759. /**
  6760. * Determine if the given path is readable.
  6761. *
  6762. * @param string $path
  6763. * @return bool
  6764. * @static
  6765. */
  6766. public static function isReadable($path)
  6767. {
  6768. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6769. return $instance->isReadable($path);
  6770. }
  6771. /**
  6772. * Determine if the given path is writable.
  6773. *
  6774. * @param string $path
  6775. * @return bool
  6776. * @static
  6777. */
  6778. public static function isWritable($path)
  6779. {
  6780. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6781. return $instance->isWritable($path);
  6782. }
  6783. /**
  6784. * Determine if two files are the same by comparing their hashes.
  6785. *
  6786. * @param string $firstFile
  6787. * @param string $secondFile
  6788. * @return bool
  6789. * @static
  6790. */
  6791. public static function hasSameHash($firstFile, $secondFile)
  6792. {
  6793. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6794. return $instance->hasSameHash($firstFile, $secondFile);
  6795. }
  6796. /**
  6797. * Determine if the given path is a file.
  6798. *
  6799. * @param string $file
  6800. * @return bool
  6801. * @static
  6802. */
  6803. public static function isFile($file)
  6804. {
  6805. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6806. return $instance->isFile($file);
  6807. }
  6808. /**
  6809. * Find path names matching a given pattern.
  6810. *
  6811. * @param string $pattern
  6812. * @param int $flags
  6813. * @return array
  6814. * @static
  6815. */
  6816. public static function glob($pattern, $flags = 0)
  6817. {
  6818. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6819. return $instance->glob($pattern, $flags);
  6820. }
  6821. /**
  6822. * Get an array of all files in a directory.
  6823. *
  6824. * @param string $directory
  6825. * @param bool $hidden
  6826. * @return \Symfony\Component\Finder\SplFileInfo[]
  6827. * @static
  6828. */
  6829. public static function files($directory, $hidden = false)
  6830. {
  6831. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6832. return $instance->files($directory, $hidden);
  6833. }
  6834. /**
  6835. * Get all of the files from the given directory (recursive).
  6836. *
  6837. * @param string $directory
  6838. * @param bool $hidden
  6839. * @return \Symfony\Component\Finder\SplFileInfo[]
  6840. * @static
  6841. */
  6842. public static function allFiles($directory, $hidden = false)
  6843. {
  6844. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6845. return $instance->allFiles($directory, $hidden);
  6846. }
  6847. /**
  6848. * Get all of the directories within a given directory.
  6849. *
  6850. * @param string $directory
  6851. * @return array
  6852. * @static
  6853. */
  6854. public static function directories($directory)
  6855. {
  6856. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6857. return $instance->directories($directory);
  6858. }
  6859. /**
  6860. * Ensure a directory exists.
  6861. *
  6862. * @param string $path
  6863. * @param int $mode
  6864. * @param bool $recursive
  6865. * @return void
  6866. * @static
  6867. */
  6868. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  6869. {
  6870. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6871. $instance->ensureDirectoryExists($path, $mode, $recursive);
  6872. }
  6873. /**
  6874. * Create a directory.
  6875. *
  6876. * @param string $path
  6877. * @param int $mode
  6878. * @param bool $recursive
  6879. * @param bool $force
  6880. * @return bool
  6881. * @static
  6882. */
  6883. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  6884. {
  6885. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6886. return $instance->makeDirectory($path, $mode, $recursive, $force);
  6887. }
  6888. /**
  6889. * Move a directory.
  6890. *
  6891. * @param string $from
  6892. * @param string $to
  6893. * @param bool $overwrite
  6894. * @return bool
  6895. * @static
  6896. */
  6897. public static function moveDirectory($from, $to, $overwrite = false)
  6898. {
  6899. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6900. return $instance->moveDirectory($from, $to, $overwrite);
  6901. }
  6902. /**
  6903. * Copy a directory from one location to another.
  6904. *
  6905. * @param string $directory
  6906. * @param string $destination
  6907. * @param int|null $options
  6908. * @return bool
  6909. * @static
  6910. */
  6911. public static function copyDirectory($directory, $destination, $options = null)
  6912. {
  6913. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6914. return $instance->copyDirectory($directory, $destination, $options);
  6915. }
  6916. /**
  6917. * Recursively delete a directory.
  6918. *
  6919. * The directory itself may be optionally preserved.
  6920. *
  6921. * @param string $directory
  6922. * @param bool $preserve
  6923. * @return bool
  6924. * @static
  6925. */
  6926. public static function deleteDirectory($directory, $preserve = false)
  6927. {
  6928. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6929. return $instance->deleteDirectory($directory, $preserve);
  6930. }
  6931. /**
  6932. * Remove all of the directories within a given directory.
  6933. *
  6934. * @param string $directory
  6935. * @return bool
  6936. * @static
  6937. */
  6938. public static function deleteDirectories($directory)
  6939. {
  6940. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6941. return $instance->deleteDirectories($directory);
  6942. }
  6943. /**
  6944. * Empty the specified directory of all files and folders.
  6945. *
  6946. * @param string $directory
  6947. * @return bool
  6948. * @static
  6949. */
  6950. public static function cleanDirectory($directory)
  6951. {
  6952. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6953. return $instance->cleanDirectory($directory);
  6954. }
  6955. /**
  6956. * Apply the callback if the given "value" is (or resolves to) truthy.
  6957. *
  6958. * @template TWhenParameter
  6959. * @template TWhenReturnType
  6960. * @param \Illuminate\Filesystem\(\Closure($this): TWhenParameter)|TWhenParameter|null $value
  6961. * @param \Illuminate\Filesystem\(callable($this, TWhenParameter): TWhenReturnType)|null $callback
  6962. * @param \Illuminate\Filesystem\(callable($this, TWhenParameter): TWhenReturnType)|null $default
  6963. * @return $this|\Illuminate\Filesystem\TWhenReturnType
  6964. * @static
  6965. */
  6966. public static function when($value = null, $callback = null, $default = null)
  6967. {
  6968. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6969. return $instance->when($value, $callback, $default);
  6970. }
  6971. /**
  6972. * Apply the callback if the given "value" is (or resolves to) falsy.
  6973. *
  6974. * @template TUnlessParameter
  6975. * @template TUnlessReturnType
  6976. * @param \Illuminate\Filesystem\(\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  6977. * @param \Illuminate\Filesystem\(callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  6978. * @param \Illuminate\Filesystem\(callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  6979. * @return $this|\Illuminate\Filesystem\TUnlessReturnType
  6980. * @static
  6981. */
  6982. public static function unless($value = null, $callback = null, $default = null)
  6983. {
  6984. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6985. return $instance->unless($value, $callback, $default);
  6986. }
  6987. /**
  6988. * Register a custom macro.
  6989. *
  6990. * @param string $name
  6991. * @param object|callable $macro
  6992. * @return void
  6993. * @static
  6994. */
  6995. public static function macro($name, $macro)
  6996. {
  6997. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  6998. }
  6999. /**
  7000. * Mix another object into the class.
  7001. *
  7002. * @param object $mixin
  7003. * @param bool $replace
  7004. * @return void
  7005. * @throws \ReflectionException
  7006. * @static
  7007. */
  7008. public static function mixin($mixin, $replace = true)
  7009. {
  7010. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  7011. }
  7012. /**
  7013. * Checks if macro is registered.
  7014. *
  7015. * @param string $name
  7016. * @return bool
  7017. * @static
  7018. */
  7019. public static function hasMacro($name)
  7020. {
  7021. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  7022. }
  7023. /**
  7024. * Flush the existing macros.
  7025. *
  7026. * @return void
  7027. * @static
  7028. */
  7029. public static function flushMacros()
  7030. {
  7031. \Illuminate\Filesystem\Filesystem::flushMacros();
  7032. }
  7033. }
  7034. /**
  7035. *
  7036. *
  7037. * @see \Illuminate\Contracts\Auth\Access\Gate
  7038. */
  7039. class Gate {
  7040. /**
  7041. * Determine if a given ability has been defined.
  7042. *
  7043. * @param string|array $ability
  7044. * @return bool
  7045. * @static
  7046. */
  7047. public static function has($ability)
  7048. {
  7049. /** @var \Illuminate\Auth\Access\Gate $instance */
  7050. return $instance->has($ability);
  7051. }
  7052. /**
  7053. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
  7054. *
  7055. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  7056. * @param string|null $message
  7057. * @param string|null $code
  7058. * @return \Illuminate\Auth\Access\Response
  7059. * @throws \Illuminate\Auth\Access\AuthorizationException
  7060. * @static
  7061. */
  7062. public static function allowIf($condition, $message = null, $code = null)
  7063. {
  7064. /** @var \Illuminate\Auth\Access\Gate $instance */
  7065. return $instance->allowIf($condition, $message, $code);
  7066. }
  7067. /**
  7068. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
  7069. *
  7070. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  7071. * @param string|null $message
  7072. * @param string|null $code
  7073. * @return \Illuminate\Auth\Access\Response
  7074. * @throws \Illuminate\Auth\Access\AuthorizationException
  7075. * @static
  7076. */
  7077. public static function denyIf($condition, $message = null, $code = null)
  7078. {
  7079. /** @var \Illuminate\Auth\Access\Gate $instance */
  7080. return $instance->denyIf($condition, $message, $code);
  7081. }
  7082. /**
  7083. * Define a new ability.
  7084. *
  7085. * @param string $ability
  7086. * @param callable|array|string $callback
  7087. * @return \Illuminate\Auth\Access\Gate
  7088. * @throws \InvalidArgumentException
  7089. * @static
  7090. */
  7091. public static function define($ability, $callback)
  7092. {
  7093. /** @var \Illuminate\Auth\Access\Gate $instance */
  7094. return $instance->define($ability, $callback);
  7095. }
  7096. /**
  7097. * Define abilities for a resource.
  7098. *
  7099. * @param string $name
  7100. * @param string $class
  7101. * @param array|null $abilities
  7102. * @return \Illuminate\Auth\Access\Gate
  7103. * @static
  7104. */
  7105. public static function resource($name, $class, $abilities = null)
  7106. {
  7107. /** @var \Illuminate\Auth\Access\Gate $instance */
  7108. return $instance->resource($name, $class, $abilities);
  7109. }
  7110. /**
  7111. * Define a policy class for a given class type.
  7112. *
  7113. * @param string $class
  7114. * @param string $policy
  7115. * @return \Illuminate\Auth\Access\Gate
  7116. * @static
  7117. */
  7118. public static function policy($class, $policy)
  7119. {
  7120. /** @var \Illuminate\Auth\Access\Gate $instance */
  7121. return $instance->policy($class, $policy);
  7122. }
  7123. /**
  7124. * Register a callback to run before all Gate checks.
  7125. *
  7126. * @param callable $callback
  7127. * @return \Illuminate\Auth\Access\Gate
  7128. * @static
  7129. */
  7130. public static function before($callback)
  7131. {
  7132. /** @var \Illuminate\Auth\Access\Gate $instance */
  7133. return $instance->before($callback);
  7134. }
  7135. /**
  7136. * Register a callback to run after all Gate checks.
  7137. *
  7138. * @param callable $callback
  7139. * @return \Illuminate\Auth\Access\Gate
  7140. * @static
  7141. */
  7142. public static function after($callback)
  7143. {
  7144. /** @var \Illuminate\Auth\Access\Gate $instance */
  7145. return $instance->after($callback);
  7146. }
  7147. /**
  7148. * Determine if the given ability should be granted for the current user.
  7149. *
  7150. * @param string $ability
  7151. * @param array|mixed $arguments
  7152. * @return bool
  7153. * @static
  7154. */
  7155. public static function allows($ability, $arguments = [])
  7156. {
  7157. /** @var \Illuminate\Auth\Access\Gate $instance */
  7158. return $instance->allows($ability, $arguments);
  7159. }
  7160. /**
  7161. * Determine if the given ability should be denied for the current user.
  7162. *
  7163. * @param string $ability
  7164. * @param array|mixed $arguments
  7165. * @return bool
  7166. * @static
  7167. */
  7168. public static function denies($ability, $arguments = [])
  7169. {
  7170. /** @var \Illuminate\Auth\Access\Gate $instance */
  7171. return $instance->denies($ability, $arguments);
  7172. }
  7173. /**
  7174. * Determine if all of the given abilities should be granted for the current user.
  7175. *
  7176. * @param \Illuminate\Auth\Access\iterable|string $abilities
  7177. * @param array|mixed $arguments
  7178. * @return bool
  7179. * @static
  7180. */
  7181. public static function check($abilities, $arguments = [])
  7182. {
  7183. /** @var \Illuminate\Auth\Access\Gate $instance */
  7184. return $instance->check($abilities, $arguments);
  7185. }
  7186. /**
  7187. * Determine if any one of the given abilities should be granted for the current user.
  7188. *
  7189. * @param \Illuminate\Auth\Access\iterable|string $abilities
  7190. * @param array|mixed $arguments
  7191. * @return bool
  7192. * @static
  7193. */
  7194. public static function any($abilities, $arguments = [])
  7195. {
  7196. /** @var \Illuminate\Auth\Access\Gate $instance */
  7197. return $instance->any($abilities, $arguments);
  7198. }
  7199. /**
  7200. * Determine if all of the given abilities should be denied for the current user.
  7201. *
  7202. * @param \Illuminate\Auth\Access\iterable|string $abilities
  7203. * @param array|mixed $arguments
  7204. * @return bool
  7205. * @static
  7206. */
  7207. public static function none($abilities, $arguments = [])
  7208. {
  7209. /** @var \Illuminate\Auth\Access\Gate $instance */
  7210. return $instance->none($abilities, $arguments);
  7211. }
  7212. /**
  7213. * Determine if the given ability should be granted for the current user.
  7214. *
  7215. * @param string $ability
  7216. * @param array|mixed $arguments
  7217. * @return \Illuminate\Auth\Access\Response
  7218. * @throws \Illuminate\Auth\Access\AuthorizationException
  7219. * @static
  7220. */
  7221. public static function authorize($ability, $arguments = [])
  7222. {
  7223. /** @var \Illuminate\Auth\Access\Gate $instance */
  7224. return $instance->authorize($ability, $arguments);
  7225. }
  7226. /**
  7227. * Inspect the user for the given ability.
  7228. *
  7229. * @param string $ability
  7230. * @param array|mixed $arguments
  7231. * @return \Illuminate\Auth\Access\Response
  7232. * @static
  7233. */
  7234. public static function inspect($ability, $arguments = [])
  7235. {
  7236. /** @var \Illuminate\Auth\Access\Gate $instance */
  7237. return $instance->inspect($ability, $arguments);
  7238. }
  7239. /**
  7240. * Get the raw result from the authorization callback.
  7241. *
  7242. * @param string $ability
  7243. * @param array|mixed $arguments
  7244. * @return mixed
  7245. * @throws \Illuminate\Auth\Access\AuthorizationException
  7246. * @static
  7247. */
  7248. public static function raw($ability, $arguments = [])
  7249. {
  7250. /** @var \Illuminate\Auth\Access\Gate $instance */
  7251. return $instance->raw($ability, $arguments);
  7252. }
  7253. /**
  7254. * Get a policy instance for a given class.
  7255. *
  7256. * @param object|string $class
  7257. * @return mixed
  7258. * @static
  7259. */
  7260. public static function getPolicyFor($class)
  7261. {
  7262. /** @var \Illuminate\Auth\Access\Gate $instance */
  7263. return $instance->getPolicyFor($class);
  7264. }
  7265. /**
  7266. * Specify a callback to be used to guess policy names.
  7267. *
  7268. * @param callable $callback
  7269. * @return \Illuminate\Auth\Access\Gate
  7270. * @static
  7271. */
  7272. public static function guessPolicyNamesUsing($callback)
  7273. {
  7274. /** @var \Illuminate\Auth\Access\Gate $instance */
  7275. return $instance->guessPolicyNamesUsing($callback);
  7276. }
  7277. /**
  7278. * Build a policy class instance of the given type.
  7279. *
  7280. * @param object|string $class
  7281. * @return mixed
  7282. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  7283. * @static
  7284. */
  7285. public static function resolvePolicy($class)
  7286. {
  7287. /** @var \Illuminate\Auth\Access\Gate $instance */
  7288. return $instance->resolvePolicy($class);
  7289. }
  7290. /**
  7291. * Get a gate instance for the given user.
  7292. *
  7293. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  7294. * @return static
  7295. * @static
  7296. */
  7297. public static function forUser($user)
  7298. {
  7299. /** @var \Illuminate\Auth\Access\Gate $instance */
  7300. return $instance->forUser($user);
  7301. }
  7302. /**
  7303. * Get all of the defined abilities.
  7304. *
  7305. * @return array
  7306. * @static
  7307. */
  7308. public static function abilities()
  7309. {
  7310. /** @var \Illuminate\Auth\Access\Gate $instance */
  7311. return $instance->abilities();
  7312. }
  7313. /**
  7314. * Get all of the defined policies.
  7315. *
  7316. * @return array
  7317. * @static
  7318. */
  7319. public static function policies()
  7320. {
  7321. /** @var \Illuminate\Auth\Access\Gate $instance */
  7322. return $instance->policies();
  7323. }
  7324. /**
  7325. * Set the container instance used by the gate.
  7326. *
  7327. * @param \Illuminate\Contracts\Container\Container $container
  7328. * @return \Illuminate\Auth\Access\Gate
  7329. * @static
  7330. */
  7331. public static function setContainer($container)
  7332. {
  7333. /** @var \Illuminate\Auth\Access\Gate $instance */
  7334. return $instance->setContainer($container);
  7335. }
  7336. /**
  7337. * Deny with a HTTP status code.
  7338. *
  7339. * @param int $status
  7340. * @param \Illuminate\Auth\Access\?string $message
  7341. * @param \Illuminate\Auth\Access\?int $code
  7342. * @return \Illuminate\Auth\Access\Response
  7343. * @static
  7344. */
  7345. public static function denyWithStatus($status, $message = null, $code = null)
  7346. {
  7347. /** @var \Illuminate\Auth\Access\Gate $instance */
  7348. return $instance->denyWithStatus($status, $message, $code);
  7349. }
  7350. /**
  7351. * Deny with a 404 HTTP status code.
  7352. *
  7353. * @param \Illuminate\Auth\Access\?string $message
  7354. * @param \Illuminate\Auth\Access\?int $code
  7355. * @return \Illuminate\Auth\Access\Response
  7356. * @static
  7357. */
  7358. public static function denyAsNotFound($message = null, $code = null)
  7359. {
  7360. /** @var \Illuminate\Auth\Access\Gate $instance */
  7361. return $instance->denyAsNotFound($message, $code);
  7362. }
  7363. }
  7364. /**
  7365. *
  7366. *
  7367. * @see \Illuminate\Hashing\HashManager
  7368. */
  7369. class Hash {
  7370. /**
  7371. * Create an instance of the Bcrypt hash Driver.
  7372. *
  7373. * @return \Illuminate\Hashing\BcryptHasher
  7374. * @static
  7375. */
  7376. public static function createBcryptDriver()
  7377. {
  7378. /** @var \Illuminate\Hashing\HashManager $instance */
  7379. return $instance->createBcryptDriver();
  7380. }
  7381. /**
  7382. * Create an instance of the Argon2i hash Driver.
  7383. *
  7384. * @return \Illuminate\Hashing\ArgonHasher
  7385. * @static
  7386. */
  7387. public static function createArgonDriver()
  7388. {
  7389. /** @var \Illuminate\Hashing\HashManager $instance */
  7390. return $instance->createArgonDriver();
  7391. }
  7392. /**
  7393. * Create an instance of the Argon2id hash Driver.
  7394. *
  7395. * @return \Illuminate\Hashing\Argon2IdHasher
  7396. * @static
  7397. */
  7398. public static function createArgon2idDriver()
  7399. {
  7400. /** @var \Illuminate\Hashing\HashManager $instance */
  7401. return $instance->createArgon2idDriver();
  7402. }
  7403. /**
  7404. * Get information about the given hashed value.
  7405. *
  7406. * @param string $hashedValue
  7407. * @return array
  7408. * @static
  7409. */
  7410. public static function info($hashedValue)
  7411. {
  7412. /** @var \Illuminate\Hashing\HashManager $instance */
  7413. return $instance->info($hashedValue);
  7414. }
  7415. /**
  7416. * Hash the given value.
  7417. *
  7418. * @param string $value
  7419. * @param array $options
  7420. * @return string
  7421. * @static
  7422. */
  7423. public static function make($value, $options = [])
  7424. {
  7425. /** @var \Illuminate\Hashing\HashManager $instance */
  7426. return $instance->make($value, $options);
  7427. }
  7428. /**
  7429. * Check the given plain value against a hash.
  7430. *
  7431. * @param string $value
  7432. * @param string $hashedValue
  7433. * @param array $options
  7434. * @return bool
  7435. * @static
  7436. */
  7437. public static function check($value, $hashedValue, $options = [])
  7438. {
  7439. /** @var \Illuminate\Hashing\HashManager $instance */
  7440. return $instance->check($value, $hashedValue, $options);
  7441. }
  7442. /**
  7443. * Check if the given hash has been hashed using the given options.
  7444. *
  7445. * @param string $hashedValue
  7446. * @param array $options
  7447. * @return bool
  7448. * @static
  7449. */
  7450. public static function needsRehash($hashedValue, $options = [])
  7451. {
  7452. /** @var \Illuminate\Hashing\HashManager $instance */
  7453. return $instance->needsRehash($hashedValue, $options);
  7454. }
  7455. /**
  7456. * Get the default driver name.
  7457. *
  7458. * @return string
  7459. * @static
  7460. */
  7461. public static function getDefaultDriver()
  7462. {
  7463. /** @var \Illuminate\Hashing\HashManager $instance */
  7464. return $instance->getDefaultDriver();
  7465. }
  7466. /**
  7467. * Get a driver instance.
  7468. *
  7469. * @param string|null $driver
  7470. * @return mixed
  7471. * @throws \InvalidArgumentException
  7472. * @static
  7473. */
  7474. public static function driver($driver = null)
  7475. { //Method inherited from \Illuminate\Support\Manager
  7476. /** @var \Illuminate\Hashing\HashManager $instance */
  7477. return $instance->driver($driver);
  7478. }
  7479. /**
  7480. * Register a custom driver creator Closure.
  7481. *
  7482. * @param string $driver
  7483. * @param \Closure $callback
  7484. * @return \Illuminate\Hashing\HashManager
  7485. * @static
  7486. */
  7487. public static function extend($driver, $callback)
  7488. { //Method inherited from \Illuminate\Support\Manager
  7489. /** @var \Illuminate\Hashing\HashManager $instance */
  7490. return $instance->extend($driver, $callback);
  7491. }
  7492. /**
  7493. * Get all of the created "drivers".
  7494. *
  7495. * @return array
  7496. * @static
  7497. */
  7498. public static function getDrivers()
  7499. { //Method inherited from \Illuminate\Support\Manager
  7500. /** @var \Illuminate\Hashing\HashManager $instance */
  7501. return $instance->getDrivers();
  7502. }
  7503. /**
  7504. * Get the container instance used by the manager.
  7505. *
  7506. * @return \Illuminate\Contracts\Container\Container
  7507. * @static
  7508. */
  7509. public static function getContainer()
  7510. { //Method inherited from \Illuminate\Support\Manager
  7511. /** @var \Illuminate\Hashing\HashManager $instance */
  7512. return $instance->getContainer();
  7513. }
  7514. /**
  7515. * Set the container instance used by the manager.
  7516. *
  7517. * @param \Illuminate\Contracts\Container\Container $container
  7518. * @return \Illuminate\Hashing\HashManager
  7519. * @static
  7520. */
  7521. public static function setContainer($container)
  7522. { //Method inherited from \Illuminate\Support\Manager
  7523. /** @var \Illuminate\Hashing\HashManager $instance */
  7524. return $instance->setContainer($container);
  7525. }
  7526. /**
  7527. * Forget all of the resolved driver instances.
  7528. *
  7529. * @return \Illuminate\Hashing\HashManager
  7530. * @static
  7531. */
  7532. public static function forgetDrivers()
  7533. { //Method inherited from \Illuminate\Support\Manager
  7534. /** @var \Illuminate\Hashing\HashManager $instance */
  7535. return $instance->forgetDrivers();
  7536. }
  7537. }
  7538. /**
  7539. *
  7540. *
  7541. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  7542. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  7543. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  7544. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  7545. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  7546. * @method static \Illuminate\Http\Client\PendingRequest async()
  7547. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string|resource $contents = '', string|null $filename = null, array $headers = [])
  7548. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  7549. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  7550. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  7551. * @method static \Illuminate\Http\Client\PendingRequest connectTimeout(int $seconds)
  7552. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  7553. * @method static \Illuminate\Http\Client\PendingRequest dd()
  7554. * @method static \Illuminate\Http\Client\PendingRequest dump()
  7555. * @method static \Illuminate\Http\Client\PendingRequest maxRedirects(int $max)
  7556. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleepMilliseconds = 0, ?callable $when = null, bool $throw = true)
  7557. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  7558. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  7559. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  7560. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  7561. * @method static \Illuminate\Http\Client\PendingRequest withBody(resource|string $content, string $contentType)
  7562. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  7563. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  7564. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  7565. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  7566. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  7567. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  7568. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string $userAgent)
  7569. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  7570. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  7571. * @method static \Illuminate\Http\Client\PendingRequest throw(callable $callback = null)
  7572. * @method static \Illuminate\Http\Client\PendingRequest throwIf($condition)
  7573. * @method \Illuminate\Http\Client\PendingRequest throwUnless($condition)
  7574. * @method static array pool(callable $callback)
  7575. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  7576. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  7577. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  7578. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  7579. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  7580. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  7581. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  7582. * @see \Illuminate\Http\Client\Factory
  7583. */
  7584. class Http {
  7585. /**
  7586. * Create a new response instance for use during stubbing.
  7587. *
  7588. * @param array|string|null $body
  7589. * @param int $status
  7590. * @param array $headers
  7591. * @return \GuzzleHttp\Promise\PromiseInterface
  7592. * @static
  7593. */
  7594. public static function response($body = null, $status = 200, $headers = [])
  7595. {
  7596. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  7597. }
  7598. /**
  7599. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  7600. *
  7601. * @param array $responses
  7602. * @return \Illuminate\Http\Client\ResponseSequence
  7603. * @static
  7604. */
  7605. public static function sequence($responses = [])
  7606. {
  7607. /** @var \Illuminate\Http\Client\Factory $instance */
  7608. return $instance->sequence($responses);
  7609. }
  7610. /**
  7611. * Register a stub callable that will intercept requests and be able to return stub responses.
  7612. *
  7613. * @param callable|array|null $callback
  7614. * @return \Illuminate\Http\Client\Factory
  7615. * @static
  7616. */
  7617. public static function fake($callback = null)
  7618. {
  7619. /** @var \Illuminate\Http\Client\Factory $instance */
  7620. return $instance->fake($callback);
  7621. }
  7622. /**
  7623. * Register a response sequence for the given URL pattern.
  7624. *
  7625. * @param string $url
  7626. * @return \Illuminate\Http\Client\ResponseSequence
  7627. * @static
  7628. */
  7629. public static function fakeSequence($url = '*')
  7630. {
  7631. /** @var \Illuminate\Http\Client\Factory $instance */
  7632. return $instance->fakeSequence($url);
  7633. }
  7634. /**
  7635. * Stub the given URL using the given callback.
  7636. *
  7637. * @param string $url
  7638. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  7639. * @return \Illuminate\Http\Client\Factory
  7640. * @static
  7641. */
  7642. public static function stubUrl($url, $callback)
  7643. {
  7644. /** @var \Illuminate\Http\Client\Factory $instance */
  7645. return $instance->stubUrl($url, $callback);
  7646. }
  7647. /**
  7648. * Indicate that an exception should be thrown if any request is not faked.
  7649. *
  7650. * @param bool $prevent
  7651. * @return \Illuminate\Http\Client\Factory
  7652. * @static
  7653. */
  7654. public static function preventStrayRequests($prevent = true)
  7655. {
  7656. /** @var \Illuminate\Http\Client\Factory $instance */
  7657. return $instance->preventStrayRequests($prevent);
  7658. }
  7659. /**
  7660. * Indicate that an exception should not be thrown if any request is not faked.
  7661. *
  7662. * @return \Illuminate\Http\Client\Factory
  7663. * @static
  7664. */
  7665. public static function allowStrayRequests()
  7666. {
  7667. /** @var \Illuminate\Http\Client\Factory $instance */
  7668. return $instance->allowStrayRequests();
  7669. }
  7670. /**
  7671. * Record a request response pair.
  7672. *
  7673. * @param \Illuminate\Http\Client\Request $request
  7674. * @param \Illuminate\Http\Client\Response $response
  7675. * @return void
  7676. * @static
  7677. */
  7678. public static function recordRequestResponsePair($request, $response)
  7679. {
  7680. /** @var \Illuminate\Http\Client\Factory $instance */
  7681. $instance->recordRequestResponsePair($request, $response);
  7682. }
  7683. /**
  7684. * Assert that a request / response pair was recorded matching a given truth test.
  7685. *
  7686. * @param callable $callback
  7687. * @return void
  7688. * @static
  7689. */
  7690. public static function assertSent($callback)
  7691. {
  7692. /** @var \Illuminate\Http\Client\Factory $instance */
  7693. $instance->assertSent($callback);
  7694. }
  7695. /**
  7696. * Assert that the given request was sent in the given order.
  7697. *
  7698. * @param array $callbacks
  7699. * @return void
  7700. * @static
  7701. */
  7702. public static function assertSentInOrder($callbacks)
  7703. {
  7704. /** @var \Illuminate\Http\Client\Factory $instance */
  7705. $instance->assertSentInOrder($callbacks);
  7706. }
  7707. /**
  7708. * Assert that a request / response pair was not recorded matching a given truth test.
  7709. *
  7710. * @param callable $callback
  7711. * @return void
  7712. * @static
  7713. */
  7714. public static function assertNotSent($callback)
  7715. {
  7716. /** @var \Illuminate\Http\Client\Factory $instance */
  7717. $instance->assertNotSent($callback);
  7718. }
  7719. /**
  7720. * Assert that no request / response pair was recorded.
  7721. *
  7722. * @return void
  7723. * @static
  7724. */
  7725. public static function assertNothingSent()
  7726. {
  7727. /** @var \Illuminate\Http\Client\Factory $instance */
  7728. $instance->assertNothingSent();
  7729. }
  7730. /**
  7731. * Assert how many requests have been recorded.
  7732. *
  7733. * @param int $count
  7734. * @return void
  7735. * @static
  7736. */
  7737. public static function assertSentCount($count)
  7738. {
  7739. /** @var \Illuminate\Http\Client\Factory $instance */
  7740. $instance->assertSentCount($count);
  7741. }
  7742. /**
  7743. * Assert that every created response sequence is empty.
  7744. *
  7745. * @return void
  7746. * @static
  7747. */
  7748. public static function assertSequencesAreEmpty()
  7749. {
  7750. /** @var \Illuminate\Http\Client\Factory $instance */
  7751. $instance->assertSequencesAreEmpty();
  7752. }
  7753. /**
  7754. * Get a collection of the request / response pairs matching the given truth test.
  7755. *
  7756. * @param callable $callback
  7757. * @return \Illuminate\Support\Collection
  7758. * @static
  7759. */
  7760. public static function recorded($callback = null)
  7761. {
  7762. /** @var \Illuminate\Http\Client\Factory $instance */
  7763. return $instance->recorded($callback);
  7764. }
  7765. /**
  7766. * Get the current event dispatcher implementation.
  7767. *
  7768. * @return \Illuminate\Contracts\Events\Dispatcher|null
  7769. * @static
  7770. */
  7771. public static function getDispatcher()
  7772. {
  7773. /** @var \Illuminate\Http\Client\Factory $instance */
  7774. return $instance->getDispatcher();
  7775. }
  7776. /**
  7777. * Register a custom macro.
  7778. *
  7779. * @param string $name
  7780. * @param object|callable $macro
  7781. * @return void
  7782. * @static
  7783. */
  7784. public static function macro($name, $macro)
  7785. {
  7786. \Illuminate\Http\Client\Factory::macro($name, $macro);
  7787. }
  7788. /**
  7789. * Mix another object into the class.
  7790. *
  7791. * @param object $mixin
  7792. * @param bool $replace
  7793. * @return void
  7794. * @throws \ReflectionException
  7795. * @static
  7796. */
  7797. public static function mixin($mixin, $replace = true)
  7798. {
  7799. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  7800. }
  7801. /**
  7802. * Checks if macro is registered.
  7803. *
  7804. * @param string $name
  7805. * @return bool
  7806. * @static
  7807. */
  7808. public static function hasMacro($name)
  7809. {
  7810. return \Illuminate\Http\Client\Factory::hasMacro($name);
  7811. }
  7812. /**
  7813. * Flush the existing macros.
  7814. *
  7815. * @return void
  7816. * @static
  7817. */
  7818. public static function flushMacros()
  7819. {
  7820. \Illuminate\Http\Client\Factory::flushMacros();
  7821. }
  7822. /**
  7823. * Dynamically handle calls to the class.
  7824. *
  7825. * @param string $method
  7826. * @param array $parameters
  7827. * @return mixed
  7828. * @throws \BadMethodCallException
  7829. * @static
  7830. */
  7831. public static function macroCall($method, $parameters)
  7832. {
  7833. /** @var \Illuminate\Http\Client\Factory $instance */
  7834. return $instance->macroCall($method, $parameters);
  7835. }
  7836. }
  7837. /**
  7838. *
  7839. *
  7840. * @see \Illuminate\Translation\Translator
  7841. */
  7842. class Lang {
  7843. /**
  7844. * Determine if a translation exists for a given locale.
  7845. *
  7846. * @param string $key
  7847. * @param string|null $locale
  7848. * @return bool
  7849. * @static
  7850. */
  7851. public static function hasForLocale($key, $locale = null)
  7852. {
  7853. /** @var \Illuminate\Translation\Translator $instance */
  7854. return $instance->hasForLocale($key, $locale);
  7855. }
  7856. /**
  7857. * Determine if a translation exists.
  7858. *
  7859. * @param string $key
  7860. * @param string|null $locale
  7861. * @param bool $fallback
  7862. * @return bool
  7863. * @static
  7864. */
  7865. public static function has($key, $locale = null, $fallback = true)
  7866. {
  7867. /** @var \Illuminate\Translation\Translator $instance */
  7868. return $instance->has($key, $locale, $fallback);
  7869. }
  7870. /**
  7871. * Get the translation for the given key.
  7872. *
  7873. * @param string $key
  7874. * @param array $replace
  7875. * @param string|null $locale
  7876. * @param bool $fallback
  7877. * @return string|array
  7878. * @static
  7879. */
  7880. public static function get($key, $replace = [], $locale = null, $fallback = true)
  7881. {
  7882. /** @var \Illuminate\Translation\Translator $instance */
  7883. return $instance->get($key, $replace, $locale, $fallback);
  7884. }
  7885. /**
  7886. * Get a translation according to an integer value.
  7887. *
  7888. * @param string $key
  7889. * @param \Countable|int|array $number
  7890. * @param array $replace
  7891. * @param string|null $locale
  7892. * @return string
  7893. * @static
  7894. */
  7895. public static function choice($key, $number, $replace = [], $locale = null)
  7896. {
  7897. /** @var \Illuminate\Translation\Translator $instance */
  7898. return $instance->choice($key, $number, $replace, $locale);
  7899. }
  7900. /**
  7901. * Add translation lines to the given locale.
  7902. *
  7903. * @param array $lines
  7904. * @param string $locale
  7905. * @param string $namespace
  7906. * @return void
  7907. * @static
  7908. */
  7909. public static function addLines($lines, $locale, $namespace = '*')
  7910. {
  7911. /** @var \Illuminate\Translation\Translator $instance */
  7912. $instance->addLines($lines, $locale, $namespace);
  7913. }
  7914. /**
  7915. * Load the specified language group.
  7916. *
  7917. * @param string $namespace
  7918. * @param string $group
  7919. * @param string $locale
  7920. * @return void
  7921. * @static
  7922. */
  7923. public static function load($namespace, $group, $locale)
  7924. {
  7925. /** @var \Illuminate\Translation\Translator $instance */
  7926. $instance->load($namespace, $group, $locale);
  7927. }
  7928. /**
  7929. * Add a new namespace to the loader.
  7930. *
  7931. * @param string $namespace
  7932. * @param string $hint
  7933. * @return void
  7934. * @static
  7935. */
  7936. public static function addNamespace($namespace, $hint)
  7937. {
  7938. /** @var \Illuminate\Translation\Translator $instance */
  7939. $instance->addNamespace($namespace, $hint);
  7940. }
  7941. /**
  7942. * Add a new JSON path to the loader.
  7943. *
  7944. * @param string $path
  7945. * @return void
  7946. * @static
  7947. */
  7948. public static function addJsonPath($path)
  7949. {
  7950. /** @var \Illuminate\Translation\Translator $instance */
  7951. $instance->addJsonPath($path);
  7952. }
  7953. /**
  7954. * Parse a key into namespace, group, and item.
  7955. *
  7956. * @param string $key
  7957. * @return array
  7958. * @static
  7959. */
  7960. public static function parseKey($key)
  7961. {
  7962. /** @var \Illuminate\Translation\Translator $instance */
  7963. return $instance->parseKey($key);
  7964. }
  7965. /**
  7966. * Specify a callback that should be invoked to determined the applicable locale array.
  7967. *
  7968. * @param callable $callback
  7969. * @return void
  7970. * @static
  7971. */
  7972. public static function determineLocalesUsing($callback)
  7973. {
  7974. /** @var \Illuminate\Translation\Translator $instance */
  7975. $instance->determineLocalesUsing($callback);
  7976. }
  7977. /**
  7978. * Get the message selector instance.
  7979. *
  7980. * @return \Illuminate\Translation\MessageSelector
  7981. * @static
  7982. */
  7983. public static function getSelector()
  7984. {
  7985. /** @var \Illuminate\Translation\Translator $instance */
  7986. return $instance->getSelector();
  7987. }
  7988. /**
  7989. * Set the message selector instance.
  7990. *
  7991. * @param \Illuminate\Translation\MessageSelector $selector
  7992. * @return void
  7993. * @static
  7994. */
  7995. public static function setSelector($selector)
  7996. {
  7997. /** @var \Illuminate\Translation\Translator $instance */
  7998. $instance->setSelector($selector);
  7999. }
  8000. /**
  8001. * Get the language line loader implementation.
  8002. *
  8003. * @return \Illuminate\Contracts\Translation\Loader
  8004. * @static
  8005. */
  8006. public static function getLoader()
  8007. {
  8008. /** @var \Illuminate\Translation\Translator $instance */
  8009. return $instance->getLoader();
  8010. }
  8011. /**
  8012. * Get the default locale being used.
  8013. *
  8014. * @return string
  8015. * @static
  8016. */
  8017. public static function locale()
  8018. {
  8019. /** @var \Illuminate\Translation\Translator $instance */
  8020. return $instance->locale();
  8021. }
  8022. /**
  8023. * Get the default locale being used.
  8024. *
  8025. * @return string
  8026. * @static
  8027. */
  8028. public static function getLocale()
  8029. {
  8030. /** @var \Illuminate\Translation\Translator $instance */
  8031. return $instance->getLocale();
  8032. }
  8033. /**
  8034. * Set the default locale.
  8035. *
  8036. * @param string $locale
  8037. * @return void
  8038. * @throws \InvalidArgumentException
  8039. * @static
  8040. */
  8041. public static function setLocale($locale)
  8042. {
  8043. /** @var \Illuminate\Translation\Translator $instance */
  8044. $instance->setLocale($locale);
  8045. }
  8046. /**
  8047. * Get the fallback locale being used.
  8048. *
  8049. * @return string
  8050. * @static
  8051. */
  8052. public static function getFallback()
  8053. {
  8054. /** @var \Illuminate\Translation\Translator $instance */
  8055. return $instance->getFallback();
  8056. }
  8057. /**
  8058. * Set the fallback locale being used.
  8059. *
  8060. * @param string $fallback
  8061. * @return void
  8062. * @static
  8063. */
  8064. public static function setFallback($fallback)
  8065. {
  8066. /** @var \Illuminate\Translation\Translator $instance */
  8067. $instance->setFallback($fallback);
  8068. }
  8069. /**
  8070. * Set the loaded translation groups.
  8071. *
  8072. * @param array $loaded
  8073. * @return void
  8074. * @static
  8075. */
  8076. public static function setLoaded($loaded)
  8077. {
  8078. /** @var \Illuminate\Translation\Translator $instance */
  8079. $instance->setLoaded($loaded);
  8080. }
  8081. /**
  8082. * Set the parsed value of a key.
  8083. *
  8084. * @param string $key
  8085. * @param array $parsed
  8086. * @return void
  8087. * @static
  8088. */
  8089. public static function setParsedKey($key, $parsed)
  8090. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  8091. /** @var \Illuminate\Translation\Translator $instance */
  8092. $instance->setParsedKey($key, $parsed);
  8093. }
  8094. /**
  8095. * Flush the cache of parsed keys.
  8096. *
  8097. * @return void
  8098. * @static
  8099. */
  8100. public static function flushParsedKeys()
  8101. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  8102. /** @var \Illuminate\Translation\Translator $instance */
  8103. $instance->flushParsedKeys();
  8104. }
  8105. /**
  8106. * Register a custom macro.
  8107. *
  8108. * @param string $name
  8109. * @param object|callable $macro
  8110. * @return void
  8111. * @static
  8112. */
  8113. public static function macro($name, $macro)
  8114. {
  8115. \Illuminate\Translation\Translator::macro($name, $macro);
  8116. }
  8117. /**
  8118. * Mix another object into the class.
  8119. *
  8120. * @param object $mixin
  8121. * @param bool $replace
  8122. * @return void
  8123. * @throws \ReflectionException
  8124. * @static
  8125. */
  8126. public static function mixin($mixin, $replace = true)
  8127. {
  8128. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  8129. }
  8130. /**
  8131. * Checks if macro is registered.
  8132. *
  8133. * @param string $name
  8134. * @return bool
  8135. * @static
  8136. */
  8137. public static function hasMacro($name)
  8138. {
  8139. return \Illuminate\Translation\Translator::hasMacro($name);
  8140. }
  8141. /**
  8142. * Flush the existing macros.
  8143. *
  8144. * @return void
  8145. * @static
  8146. */
  8147. public static function flushMacros()
  8148. {
  8149. \Illuminate\Translation\Translator::flushMacros();
  8150. }
  8151. }
  8152. /**
  8153. *
  8154. *
  8155. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  8156. * @method static \Illuminate\Log\Logger withoutContext()
  8157. * @method static void write(string $level, string $message, array $context = [])
  8158. * @method static void listen(\Closure $callback)
  8159. * @see \Illuminate\Log\Logger
  8160. */
  8161. class Log {
  8162. /**
  8163. * Build an on-demand log channel.
  8164. *
  8165. * @param array $config
  8166. * @return \Psr\Log\LoggerInterface
  8167. * @static
  8168. */
  8169. public static function build($config)
  8170. {
  8171. /** @var \Illuminate\Log\LogManager $instance */
  8172. return $instance->build($config);
  8173. }
  8174. /**
  8175. * Create a new, on-demand aggregate logger instance.
  8176. *
  8177. * @param array $channels
  8178. * @param string|null $channel
  8179. * @return \Psr\Log\LoggerInterface
  8180. * @static
  8181. */
  8182. public static function stack($channels, $channel = null)
  8183. {
  8184. /** @var \Illuminate\Log\LogManager $instance */
  8185. return $instance->stack($channels, $channel);
  8186. }
  8187. /**
  8188. * Get a log channel instance.
  8189. *
  8190. * @param string|null $channel
  8191. * @return \Psr\Log\LoggerInterface
  8192. * @static
  8193. */
  8194. public static function channel($channel = null)
  8195. {
  8196. /** @var \Illuminate\Log\LogManager $instance */
  8197. return $instance->channel($channel);
  8198. }
  8199. /**
  8200. * Get a log driver instance.
  8201. *
  8202. * @param string|null $driver
  8203. * @return \Psr\Log\LoggerInterface
  8204. * @static
  8205. */
  8206. public static function driver($driver = null)
  8207. {
  8208. /** @var \Illuminate\Log\LogManager $instance */
  8209. return $instance->driver($driver);
  8210. }
  8211. /**
  8212. * Share context across channels and stacks.
  8213. *
  8214. * @param array $context
  8215. * @return \Illuminate\Log\LogManager
  8216. * @static
  8217. */
  8218. public static function shareContext($context)
  8219. {
  8220. /** @var \Illuminate\Log\LogManager $instance */
  8221. return $instance->shareContext($context);
  8222. }
  8223. /**
  8224. * The context shared across channels and stacks.
  8225. *
  8226. * @return array
  8227. * @static
  8228. */
  8229. public static function sharedContext()
  8230. {
  8231. /** @var \Illuminate\Log\LogManager $instance */
  8232. return $instance->sharedContext();
  8233. }
  8234. /**
  8235. * Flush the shared context.
  8236. *
  8237. * @return \Illuminate\Log\LogManager
  8238. * @static
  8239. */
  8240. public static function flushSharedContext()
  8241. {
  8242. /** @var \Illuminate\Log\LogManager $instance */
  8243. return $instance->flushSharedContext();
  8244. }
  8245. /**
  8246. * Get the default log driver name.
  8247. *
  8248. * @return string|null
  8249. * @static
  8250. */
  8251. public static function getDefaultDriver()
  8252. {
  8253. /** @var \Illuminate\Log\LogManager $instance */
  8254. return $instance->getDefaultDriver();
  8255. }
  8256. /**
  8257. * Set the default log driver name.
  8258. *
  8259. * @param string $name
  8260. * @return void
  8261. * @static
  8262. */
  8263. public static function setDefaultDriver($name)
  8264. {
  8265. /** @var \Illuminate\Log\LogManager $instance */
  8266. $instance->setDefaultDriver($name);
  8267. }
  8268. /**
  8269. * Register a custom driver creator Closure.
  8270. *
  8271. * @param string $driver
  8272. * @param \Closure $callback
  8273. * @return \Illuminate\Log\LogManager
  8274. * @static
  8275. */
  8276. public static function extend($driver, $callback)
  8277. {
  8278. /** @var \Illuminate\Log\LogManager $instance */
  8279. return $instance->extend($driver, $callback);
  8280. }
  8281. /**
  8282. * Unset the given channel instance.
  8283. *
  8284. * @param string|null $driver
  8285. * @return \Illuminate\Log\LogManager
  8286. * @static
  8287. */
  8288. public static function forgetChannel($driver = null)
  8289. {
  8290. /** @var \Illuminate\Log\LogManager $instance */
  8291. return $instance->forgetChannel($driver);
  8292. }
  8293. /**
  8294. * Get all of the resolved log channels.
  8295. *
  8296. * @return array
  8297. * @static
  8298. */
  8299. public static function getChannels()
  8300. {
  8301. /** @var \Illuminate\Log\LogManager $instance */
  8302. return $instance->getChannels();
  8303. }
  8304. /**
  8305. * System is unusable.
  8306. *
  8307. * @param string $message
  8308. * @param array $context
  8309. * @return void
  8310. * @static
  8311. */
  8312. public static function emergency($message, $context = [])
  8313. {
  8314. /** @var \Illuminate\Log\LogManager $instance */
  8315. $instance->emergency($message, $context);
  8316. }
  8317. /**
  8318. * Action must be taken immediately.
  8319. *
  8320. * Example: Entire website down, database unavailable, etc. This should
  8321. * trigger the SMS alerts and wake you up.
  8322. *
  8323. * @param string $message
  8324. * @param array $context
  8325. * @return void
  8326. * @static
  8327. */
  8328. public static function alert($message, $context = [])
  8329. {
  8330. /** @var \Illuminate\Log\LogManager $instance */
  8331. $instance->alert($message, $context);
  8332. }
  8333. /**
  8334. * Critical conditions.
  8335. *
  8336. * Example: Application component unavailable, unexpected exception.
  8337. *
  8338. * @param string $message
  8339. * @param array $context
  8340. * @return void
  8341. * @static
  8342. */
  8343. public static function critical($message, $context = [])
  8344. {
  8345. /** @var \Illuminate\Log\LogManager $instance */
  8346. $instance->critical($message, $context);
  8347. }
  8348. /**
  8349. * Runtime errors that do not require immediate action but should typically
  8350. * be logged and monitored.
  8351. *
  8352. * @param string $message
  8353. * @param array $context
  8354. * @return void
  8355. * @static
  8356. */
  8357. public static function error($message, $context = [])
  8358. {
  8359. /** @var \Illuminate\Log\LogManager $instance */
  8360. $instance->error($message, $context);
  8361. }
  8362. /**
  8363. * Exceptional occurrences that are not errors.
  8364. *
  8365. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  8366. * that are not necessarily wrong.
  8367. *
  8368. * @param string $message
  8369. * @param array $context
  8370. * @return void
  8371. * @static
  8372. */
  8373. public static function warning($message, $context = [])
  8374. {
  8375. /** @var \Illuminate\Log\LogManager $instance */
  8376. $instance->warning($message, $context);
  8377. }
  8378. /**
  8379. * Normal but significant events.
  8380. *
  8381. * @param string $message
  8382. * @param array $context
  8383. * @return void
  8384. * @static
  8385. */
  8386. public static function notice($message, $context = [])
  8387. {
  8388. /** @var \Illuminate\Log\LogManager $instance */
  8389. $instance->notice($message, $context);
  8390. }
  8391. /**
  8392. * Interesting events.
  8393. *
  8394. * Example: User logs in, SQL logs.
  8395. *
  8396. * @param string $message
  8397. * @param array $context
  8398. * @return void
  8399. * @static
  8400. */
  8401. public static function info($message, $context = [])
  8402. {
  8403. /** @var \Illuminate\Log\LogManager $instance */
  8404. $instance->info($message, $context);
  8405. }
  8406. /**
  8407. * Detailed debug information.
  8408. *
  8409. * @param string $message
  8410. * @param array $context
  8411. * @return void
  8412. * @static
  8413. */
  8414. public static function debug($message, $context = [])
  8415. {
  8416. /** @var \Illuminate\Log\LogManager $instance */
  8417. $instance->debug($message, $context);
  8418. }
  8419. /**
  8420. * Logs with an arbitrary level.
  8421. *
  8422. * @param mixed $level
  8423. * @param string $message
  8424. * @param array $context
  8425. * @return void
  8426. * @static
  8427. */
  8428. public static function log($level, $message, $context = [])
  8429. {
  8430. /** @var \Illuminate\Log\LogManager $instance */
  8431. $instance->log($level, $message, $context);
  8432. }
  8433. }
  8434. /**
  8435. *
  8436. *
  8437. * @method static void alwaysFrom(string $address, string|null $name = null)
  8438. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  8439. * @method static void alwaysReturnPath(string $address)
  8440. * @method static void alwaysTo(string $address, string|null $name = null)
  8441. * @method static \Illuminate\Mail\SentMessage|null plain(string $view, array $data, $callback)
  8442. * @method static \Illuminate\Mail\SentMessage|null html(string $html, $callback)
  8443. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  8444. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  8445. * @see \Illuminate\Mail\Mailer
  8446. * @see \Illuminate\Support\Testing\Fakes\MailFake
  8447. */
  8448. class Mail {
  8449. /**
  8450. * Get a mailer instance by name.
  8451. *
  8452. * @param string|null $name
  8453. * @return \Illuminate\Contracts\Mail\Mailer
  8454. * @static
  8455. */
  8456. public static function mailer($name = null)
  8457. {
  8458. /** @var \Illuminate\Mail\MailManager $instance */
  8459. return $instance->mailer($name);
  8460. }
  8461. /**
  8462. * Get a mailer driver instance.
  8463. *
  8464. * @param string|null $driver
  8465. * @return \Illuminate\Mail\Mailer
  8466. * @static
  8467. */
  8468. public static function driver($driver = null)
  8469. {
  8470. /** @var \Illuminate\Mail\MailManager $instance */
  8471. return $instance->driver($driver);
  8472. }
  8473. /**
  8474. * Create a new transport instance.
  8475. *
  8476. * @param array $config
  8477. * @return \Symfony\Component\Mailer\Transport\TransportInterface
  8478. * @throws \InvalidArgumentException
  8479. * @static
  8480. */
  8481. public static function createSymfonyTransport($config)
  8482. {
  8483. /** @var \Illuminate\Mail\MailManager $instance */
  8484. return $instance->createSymfonyTransport($config);
  8485. }
  8486. /**
  8487. * Get the default mail driver name.
  8488. *
  8489. * @return string
  8490. * @static
  8491. */
  8492. public static function getDefaultDriver()
  8493. {
  8494. /** @var \Illuminate\Mail\MailManager $instance */
  8495. return $instance->getDefaultDriver();
  8496. }
  8497. /**
  8498. * Set the default mail driver name.
  8499. *
  8500. * @param string $name
  8501. * @return void
  8502. * @static
  8503. */
  8504. public static function setDefaultDriver($name)
  8505. {
  8506. /** @var \Illuminate\Mail\MailManager $instance */
  8507. $instance->setDefaultDriver($name);
  8508. }
  8509. /**
  8510. * Disconnect the given mailer and remove from local cache.
  8511. *
  8512. * @param string|null $name
  8513. * @return void
  8514. * @static
  8515. */
  8516. public static function purge($name = null)
  8517. {
  8518. /** @var \Illuminate\Mail\MailManager $instance */
  8519. $instance->purge($name);
  8520. }
  8521. /**
  8522. * Register a custom transport creator Closure.
  8523. *
  8524. * @param string $driver
  8525. * @param \Closure $callback
  8526. * @return \Illuminate\Mail\MailManager
  8527. * @static
  8528. */
  8529. public static function extend($driver, $callback)
  8530. {
  8531. /** @var \Illuminate\Mail\MailManager $instance */
  8532. return $instance->extend($driver, $callback);
  8533. }
  8534. /**
  8535. * Get the application instance used by the manager.
  8536. *
  8537. * @return \Illuminate\Contracts\Foundation\Application
  8538. * @static
  8539. */
  8540. public static function getApplication()
  8541. {
  8542. /** @var \Illuminate\Mail\MailManager $instance */
  8543. return $instance->getApplication();
  8544. }
  8545. /**
  8546. * Set the application instance used by the manager.
  8547. *
  8548. * @param \Illuminate\Contracts\Foundation\Application $app
  8549. * @return \Illuminate\Mail\MailManager
  8550. * @static
  8551. */
  8552. public static function setApplication($app)
  8553. {
  8554. /** @var \Illuminate\Mail\MailManager $instance */
  8555. return $instance->setApplication($app);
  8556. }
  8557. /**
  8558. * Forget all of the resolved mailer instances.
  8559. *
  8560. * @return \Illuminate\Mail\MailManager
  8561. * @static
  8562. */
  8563. public static function forgetMailers()
  8564. {
  8565. /** @var \Illuminate\Mail\MailManager $instance */
  8566. return $instance->forgetMailers();
  8567. }
  8568. /**
  8569. * Assert if a mailable was sent based on a truth-test callback.
  8570. *
  8571. * @param string|\Closure $mailable
  8572. * @param callable|int|null $callback
  8573. * @return void
  8574. * @static
  8575. */
  8576. public static function assertSent($mailable, $callback = null)
  8577. {
  8578. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8579. $instance->assertSent($mailable, $callback);
  8580. }
  8581. /**
  8582. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  8583. *
  8584. * @param string|\Closure $mailable
  8585. * @param callable|null $callback
  8586. * @return void
  8587. * @static
  8588. */
  8589. public static function assertNotOutgoing($mailable, $callback = null)
  8590. {
  8591. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8592. $instance->assertNotOutgoing($mailable, $callback);
  8593. }
  8594. /**
  8595. * Determine if a mailable was not sent based on a truth-test callback.
  8596. *
  8597. * @param string|\Closure $mailable
  8598. * @param callable|null $callback
  8599. * @return void
  8600. * @static
  8601. */
  8602. public static function assertNotSent($mailable, $callback = null)
  8603. {
  8604. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8605. $instance->assertNotSent($mailable, $callback);
  8606. }
  8607. /**
  8608. * Assert that no mailables were sent or queued to be sent.
  8609. *
  8610. * @return void
  8611. * @static
  8612. */
  8613. public static function assertNothingOutgoing()
  8614. {
  8615. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8616. $instance->assertNothingOutgoing();
  8617. }
  8618. /**
  8619. * Assert that no mailables were sent.
  8620. *
  8621. * @return void
  8622. * @static
  8623. */
  8624. public static function assertNothingSent()
  8625. {
  8626. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8627. $instance->assertNothingSent();
  8628. }
  8629. /**
  8630. * Assert if a mailable was queued based on a truth-test callback.
  8631. *
  8632. * @param string|\Closure $mailable
  8633. * @param callable|int|null $callback
  8634. * @return void
  8635. * @static
  8636. */
  8637. public static function assertQueued($mailable, $callback = null)
  8638. {
  8639. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8640. $instance->assertQueued($mailable, $callback);
  8641. }
  8642. /**
  8643. * Determine if a mailable was not queued based on a truth-test callback.
  8644. *
  8645. * @param string|\Closure $mailable
  8646. * @param callable|null $callback
  8647. * @return void
  8648. * @static
  8649. */
  8650. public static function assertNotQueued($mailable, $callback = null)
  8651. {
  8652. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8653. $instance->assertNotQueued($mailable, $callback);
  8654. }
  8655. /**
  8656. * Assert that no mailables were queued.
  8657. *
  8658. * @return void
  8659. * @static
  8660. */
  8661. public static function assertNothingQueued()
  8662. {
  8663. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8664. $instance->assertNothingQueued();
  8665. }
  8666. /**
  8667. * Get all of the mailables matching a truth-test callback.
  8668. *
  8669. * @param string|\Closure $mailable
  8670. * @param callable|null $callback
  8671. * @return \Illuminate\Support\Collection
  8672. * @static
  8673. */
  8674. public static function sent($mailable, $callback = null)
  8675. {
  8676. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8677. return $instance->sent($mailable, $callback);
  8678. }
  8679. /**
  8680. * Determine if the given mailable has been sent.
  8681. *
  8682. * @param string $mailable
  8683. * @return bool
  8684. * @static
  8685. */
  8686. public static function hasSent($mailable)
  8687. {
  8688. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8689. return $instance->hasSent($mailable);
  8690. }
  8691. /**
  8692. * Get all of the queued mailables matching a truth-test callback.
  8693. *
  8694. * @param string|\Closure $mailable
  8695. * @param callable|null $callback
  8696. * @return \Illuminate\Support\Collection
  8697. * @static
  8698. */
  8699. public static function queued($mailable, $callback = null)
  8700. {
  8701. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8702. return $instance->queued($mailable, $callback);
  8703. }
  8704. /**
  8705. * Determine if the given mailable has been queued.
  8706. *
  8707. * @param string $mailable
  8708. * @return bool
  8709. * @static
  8710. */
  8711. public static function hasQueued($mailable)
  8712. {
  8713. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8714. return $instance->hasQueued($mailable);
  8715. }
  8716. /**
  8717. * Begin the process of mailing a mailable class instance.
  8718. *
  8719. * @param mixed $users
  8720. * @return \Illuminate\Mail\PendingMail
  8721. * @static
  8722. */
  8723. public static function to($users)
  8724. {
  8725. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8726. return $instance->to($users);
  8727. }
  8728. /**
  8729. * Begin the process of mailing a mailable class instance.
  8730. *
  8731. * @param mixed $users
  8732. * @return \Illuminate\Mail\PendingMail
  8733. * @static
  8734. */
  8735. public static function cc($users)
  8736. {
  8737. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8738. return $instance->cc($users);
  8739. }
  8740. /**
  8741. * Begin the process of mailing a mailable class instance.
  8742. *
  8743. * @param mixed $users
  8744. * @return \Illuminate\Mail\PendingMail
  8745. * @static
  8746. */
  8747. public static function bcc($users)
  8748. {
  8749. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8750. return $instance->bcc($users);
  8751. }
  8752. /**
  8753. * Send a new message with only a raw text part.
  8754. *
  8755. * @param string $text
  8756. * @param \Closure|string $callback
  8757. * @return void
  8758. * @static
  8759. */
  8760. public static function raw($text, $callback)
  8761. {
  8762. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8763. $instance->raw($text, $callback);
  8764. }
  8765. /**
  8766. * Send a new message using a view.
  8767. *
  8768. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8769. * @param array $data
  8770. * @param \Closure|string|null $callback
  8771. * @return void
  8772. * @static
  8773. */
  8774. public static function send($view, $data = [], $callback = null)
  8775. {
  8776. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8777. $instance->send($view, $data, $callback);
  8778. }
  8779. /**
  8780. * Queue a new e-mail message for sending.
  8781. *
  8782. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8783. * @param string|null $queue
  8784. * @return mixed
  8785. * @static
  8786. */
  8787. public static function queue($view, $queue = null)
  8788. {
  8789. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8790. return $instance->queue($view, $queue);
  8791. }
  8792. /**
  8793. * Queue a new e-mail message for sending after (n) seconds.
  8794. *
  8795. * @param \DateTimeInterface|\DateInterval|int $delay
  8796. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8797. * @param string|null $queue
  8798. * @return mixed
  8799. * @static
  8800. */
  8801. public static function later($delay, $view, $queue = null)
  8802. {
  8803. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8804. return $instance->later($delay, $view, $queue);
  8805. }
  8806. /**
  8807. * Get the array of failed recipients.
  8808. *
  8809. * @return array
  8810. * @static
  8811. */
  8812. public static function failures()
  8813. {
  8814. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8815. return $instance->failures();
  8816. }
  8817. }
  8818. /**
  8819. *
  8820. *
  8821. * @see \Illuminate\Notifications\ChannelManager
  8822. */
  8823. class Notification {
  8824. /**
  8825. * Send the given notification to the given notifiable entities.
  8826. *
  8827. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8828. * @param mixed $notification
  8829. * @return void
  8830. * @static
  8831. */
  8832. public static function send($notifiables, $notification)
  8833. {
  8834. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8835. $instance->send($notifiables, $notification);
  8836. }
  8837. /**
  8838. * Send the given notification immediately.
  8839. *
  8840. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8841. * @param mixed $notification
  8842. * @param array|null $channels
  8843. * @return void
  8844. * @static
  8845. */
  8846. public static function sendNow($notifiables, $notification, $channels = null)
  8847. {
  8848. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8849. $instance->sendNow($notifiables, $notification, $channels);
  8850. }
  8851. /**
  8852. * Get a channel instance.
  8853. *
  8854. * @param string|null $name
  8855. * @return mixed
  8856. * @static
  8857. */
  8858. public static function channel($name = null)
  8859. {
  8860. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8861. return $instance->channel($name);
  8862. }
  8863. /**
  8864. * Get the default channel driver name.
  8865. *
  8866. * @return string
  8867. * @static
  8868. */
  8869. public static function getDefaultDriver()
  8870. {
  8871. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8872. return $instance->getDefaultDriver();
  8873. }
  8874. /**
  8875. * Get the default channel driver name.
  8876. *
  8877. * @return string
  8878. * @static
  8879. */
  8880. public static function deliversVia()
  8881. {
  8882. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8883. return $instance->deliversVia();
  8884. }
  8885. /**
  8886. * Set the default channel driver name.
  8887. *
  8888. * @param string $channel
  8889. * @return void
  8890. * @static
  8891. */
  8892. public static function deliverVia($channel)
  8893. {
  8894. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8895. $instance->deliverVia($channel);
  8896. }
  8897. /**
  8898. * Set the locale of notifications.
  8899. *
  8900. * @param string $locale
  8901. * @return \Illuminate\Notifications\ChannelManager
  8902. * @static
  8903. */
  8904. public static function locale($locale)
  8905. {
  8906. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8907. return $instance->locale($locale);
  8908. }
  8909. /**
  8910. * Get a driver instance.
  8911. *
  8912. * @param string|null $driver
  8913. * @return mixed
  8914. * @throws \InvalidArgumentException
  8915. * @static
  8916. */
  8917. public static function driver($driver = null)
  8918. { //Method inherited from \Illuminate\Support\Manager
  8919. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8920. return $instance->driver($driver);
  8921. }
  8922. /**
  8923. * Register a custom driver creator Closure.
  8924. *
  8925. * @param string $driver
  8926. * @param \Closure $callback
  8927. * @return \Illuminate\Notifications\ChannelManager
  8928. * @static
  8929. */
  8930. public static function extend($driver, $callback)
  8931. { //Method inherited from \Illuminate\Support\Manager
  8932. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8933. return $instance->extend($driver, $callback);
  8934. }
  8935. /**
  8936. * Get all of the created "drivers".
  8937. *
  8938. * @return array
  8939. * @static
  8940. */
  8941. public static function getDrivers()
  8942. { //Method inherited from \Illuminate\Support\Manager
  8943. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8944. return $instance->getDrivers();
  8945. }
  8946. /**
  8947. * Get the container instance used by the manager.
  8948. *
  8949. * @return \Illuminate\Contracts\Container\Container
  8950. * @static
  8951. */
  8952. public static function getContainer()
  8953. { //Method inherited from \Illuminate\Support\Manager
  8954. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8955. return $instance->getContainer();
  8956. }
  8957. /**
  8958. * Set the container instance used by the manager.
  8959. *
  8960. * @param \Illuminate\Contracts\Container\Container $container
  8961. * @return \Illuminate\Notifications\ChannelManager
  8962. * @static
  8963. */
  8964. public static function setContainer($container)
  8965. { //Method inherited from \Illuminate\Support\Manager
  8966. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8967. return $instance->setContainer($container);
  8968. }
  8969. /**
  8970. * Forget all of the resolved driver instances.
  8971. *
  8972. * @return \Illuminate\Notifications\ChannelManager
  8973. * @static
  8974. */
  8975. public static function forgetDrivers()
  8976. { //Method inherited from \Illuminate\Support\Manager
  8977. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8978. return $instance->forgetDrivers();
  8979. }
  8980. /**
  8981. * Assert if a notification was sent on-demand based on a truth-test callback.
  8982. *
  8983. * @param string|\Closure $notification
  8984. * @param callable|null $callback
  8985. * @return void
  8986. * @throws \Exception
  8987. * @static
  8988. */
  8989. public static function assertSentOnDemand($notification, $callback = null)
  8990. {
  8991. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8992. $instance->assertSentOnDemand($notification, $callback);
  8993. }
  8994. /**
  8995. * Assert if a notification was sent based on a truth-test callback.
  8996. *
  8997. * @param mixed $notifiable
  8998. * @param string|\Closure $notification
  8999. * @param callable|null $callback
  9000. * @return void
  9001. * @throws \Exception
  9002. * @static
  9003. */
  9004. public static function assertSentTo($notifiable, $notification, $callback = null)
  9005. {
  9006. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9007. $instance->assertSentTo($notifiable, $notification, $callback);
  9008. }
  9009. /**
  9010. * Assert if a notification was sent on-demand a number of times.
  9011. *
  9012. * @param string $notification
  9013. * @param int $times
  9014. * @return void
  9015. * @static
  9016. */
  9017. public static function assertSentOnDemandTimes($notification, $times = 1)
  9018. {
  9019. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9020. $instance->assertSentOnDemandTimes($notification, $times);
  9021. }
  9022. /**
  9023. * Assert if a notification was sent a number of times.
  9024. *
  9025. * @param mixed $notifiable
  9026. * @param string $notification
  9027. * @param int $times
  9028. * @return void
  9029. * @static
  9030. */
  9031. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  9032. {
  9033. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9034. $instance->assertSentToTimes($notifiable, $notification, $times);
  9035. }
  9036. /**
  9037. * Determine if a notification was sent based on a truth-test callback.
  9038. *
  9039. * @param mixed $notifiable
  9040. * @param string|\Closure $notification
  9041. * @param callable|null $callback
  9042. * @return void
  9043. * @throws \Exception
  9044. * @static
  9045. */
  9046. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  9047. {
  9048. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9049. $instance->assertNotSentTo($notifiable, $notification, $callback);
  9050. }
  9051. /**
  9052. * Assert that no notifications were sent.
  9053. *
  9054. * @return void
  9055. * @static
  9056. */
  9057. public static function assertNothingSent()
  9058. {
  9059. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9060. $instance->assertNothingSent();
  9061. }
  9062. /**
  9063. * Assert that no notifications were sent to the given notifiable.
  9064. *
  9065. * @param mixed $notifiable
  9066. * @return void
  9067. * @throws \Exception
  9068. * @static
  9069. */
  9070. public static function assertNothingSentTo($notifiable)
  9071. {
  9072. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9073. $instance->assertNothingSentTo($notifiable);
  9074. }
  9075. /**
  9076. * Assert the total amount of times a notification was sent.
  9077. *
  9078. * @param string $notification
  9079. * @param int $expectedCount
  9080. * @return void
  9081. * @static
  9082. */
  9083. public static function assertSentTimes($notification, $expectedCount)
  9084. {
  9085. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9086. $instance->assertSentTimes($notification, $expectedCount);
  9087. }
  9088. /**
  9089. * Assert the total count of notification that were sent.
  9090. *
  9091. * @param int $expectedCount
  9092. * @return void
  9093. * @static
  9094. */
  9095. public static function assertCount($expectedCount)
  9096. {
  9097. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9098. $instance->assertCount($expectedCount);
  9099. }
  9100. /**
  9101. * Assert the total amount of times a notification was sent.
  9102. *
  9103. * @param int $expectedCount
  9104. * @param string $notification
  9105. * @return void
  9106. * @deprecated Use the assertSentTimes method instead
  9107. * @static
  9108. */
  9109. public static function assertTimesSent($expectedCount, $notification)
  9110. {
  9111. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9112. $instance->assertTimesSent($expectedCount, $notification);
  9113. }
  9114. /**
  9115. * Get all of the notifications matching a truth-test callback.
  9116. *
  9117. * @param mixed $notifiable
  9118. * @param string $notification
  9119. * @param callable|null $callback
  9120. * @return \Illuminate\Support\Collection
  9121. * @static
  9122. */
  9123. public static function sent($notifiable, $notification, $callback = null)
  9124. {
  9125. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9126. return $instance->sent($notifiable, $notification, $callback);
  9127. }
  9128. /**
  9129. * Determine if there are more notifications left to inspect.
  9130. *
  9131. * @param mixed $notifiable
  9132. * @param string $notification
  9133. * @return bool
  9134. * @static
  9135. */
  9136. public static function hasSent($notifiable, $notification)
  9137. {
  9138. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9139. return $instance->hasSent($notifiable, $notification);
  9140. }
  9141. /**
  9142. * Get the notifications that have been sent.
  9143. *
  9144. * @return array
  9145. * @static
  9146. */
  9147. public static function sentNotifications()
  9148. {
  9149. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  9150. return $instance->sentNotifications();
  9151. }
  9152. /**
  9153. * Register a custom macro.
  9154. *
  9155. * @param string $name
  9156. * @param object|callable $macro
  9157. * @return void
  9158. * @static
  9159. */
  9160. public static function macro($name, $macro)
  9161. {
  9162. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  9163. }
  9164. /**
  9165. * Mix another object into the class.
  9166. *
  9167. * @param object $mixin
  9168. * @param bool $replace
  9169. * @return void
  9170. * @throws \ReflectionException
  9171. * @static
  9172. */
  9173. public static function mixin($mixin, $replace = true)
  9174. {
  9175. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  9176. }
  9177. /**
  9178. * Checks if macro is registered.
  9179. *
  9180. * @param string $name
  9181. * @return bool
  9182. * @static
  9183. */
  9184. public static function hasMacro($name)
  9185. {
  9186. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  9187. }
  9188. /**
  9189. * Flush the existing macros.
  9190. *
  9191. * @return void
  9192. * @static
  9193. */
  9194. public static function flushMacros()
  9195. {
  9196. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  9197. }
  9198. }
  9199. /**
  9200. *
  9201. *
  9202. * @method static mixed reset(array $credentials, \Closure $callback)
  9203. * @method static string sendResetLink(array $credentials, \Closure $callback = null)
  9204. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  9205. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  9206. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  9207. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  9208. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  9209. * @see \Illuminate\Auth\Passwords\PasswordBroker
  9210. */
  9211. class Password {
  9212. /**
  9213. * Attempt to get the broker from the local cache.
  9214. *
  9215. * @param string|null $name
  9216. * @return \Illuminate\Contracts\Auth\PasswordBroker
  9217. * @static
  9218. */
  9219. public static function broker($name = null)
  9220. {
  9221. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9222. return $instance->broker($name);
  9223. }
  9224. /**
  9225. * Get the default password broker name.
  9226. *
  9227. * @return string
  9228. * @static
  9229. */
  9230. public static function getDefaultDriver()
  9231. {
  9232. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9233. return $instance->getDefaultDriver();
  9234. }
  9235. /**
  9236. * Set the default password broker name.
  9237. *
  9238. * @param string $name
  9239. * @return void
  9240. * @static
  9241. */
  9242. public static function setDefaultDriver($name)
  9243. {
  9244. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  9245. $instance->setDefaultDriver($name);
  9246. }
  9247. }
  9248. /**
  9249. *
  9250. *
  9251. * @see \Illuminate\Queue\QueueManager
  9252. * @see \Illuminate\Queue\Queue
  9253. */
  9254. class Queue {
  9255. /**
  9256. * Register an event listener for the before job event.
  9257. *
  9258. * @param mixed $callback
  9259. * @return void
  9260. * @static
  9261. */
  9262. public static function before($callback)
  9263. {
  9264. /** @var \Illuminate\Queue\QueueManager $instance */
  9265. $instance->before($callback);
  9266. }
  9267. /**
  9268. * Register an event listener for the after job event.
  9269. *
  9270. * @param mixed $callback
  9271. * @return void
  9272. * @static
  9273. */
  9274. public static function after($callback)
  9275. {
  9276. /** @var \Illuminate\Queue\QueueManager $instance */
  9277. $instance->after($callback);
  9278. }
  9279. /**
  9280. * Register an event listener for the exception occurred job event.
  9281. *
  9282. * @param mixed $callback
  9283. * @return void
  9284. * @static
  9285. */
  9286. public static function exceptionOccurred($callback)
  9287. {
  9288. /** @var \Illuminate\Queue\QueueManager $instance */
  9289. $instance->exceptionOccurred($callback);
  9290. }
  9291. /**
  9292. * Register an event listener for the daemon queue loop.
  9293. *
  9294. * @param mixed $callback
  9295. * @return void
  9296. * @static
  9297. */
  9298. public static function looping($callback)
  9299. {
  9300. /** @var \Illuminate\Queue\QueueManager $instance */
  9301. $instance->looping($callback);
  9302. }
  9303. /**
  9304. * Register an event listener for the failed job event.
  9305. *
  9306. * @param mixed $callback
  9307. * @return void
  9308. * @static
  9309. */
  9310. public static function failing($callback)
  9311. {
  9312. /** @var \Illuminate\Queue\QueueManager $instance */
  9313. $instance->failing($callback);
  9314. }
  9315. /**
  9316. * Register an event listener for the daemon queue stopping.
  9317. *
  9318. * @param mixed $callback
  9319. * @return void
  9320. * @static
  9321. */
  9322. public static function stopping($callback)
  9323. {
  9324. /** @var \Illuminate\Queue\QueueManager $instance */
  9325. $instance->stopping($callback);
  9326. }
  9327. /**
  9328. * Determine if the driver is connected.
  9329. *
  9330. * @param string|null $name
  9331. * @return bool
  9332. * @static
  9333. */
  9334. public static function connected($name = null)
  9335. {
  9336. /** @var \Illuminate\Queue\QueueManager $instance */
  9337. return $instance->connected($name);
  9338. }
  9339. /**
  9340. * Resolve a queue connection instance.
  9341. *
  9342. * @param string|null $name
  9343. * @return \Illuminate\Contracts\Queue\Queue
  9344. * @static
  9345. */
  9346. public static function connection($name = null)
  9347. {
  9348. /** @var \Illuminate\Queue\QueueManager $instance */
  9349. return $instance->connection($name);
  9350. }
  9351. /**
  9352. * Add a queue connection resolver.
  9353. *
  9354. * @param string $driver
  9355. * @param \Closure $resolver
  9356. * @return void
  9357. * @static
  9358. */
  9359. public static function extend($driver, $resolver)
  9360. {
  9361. /** @var \Illuminate\Queue\QueueManager $instance */
  9362. $instance->extend($driver, $resolver);
  9363. }
  9364. /**
  9365. * Add a queue connection resolver.
  9366. *
  9367. * @param string $driver
  9368. * @param \Closure $resolver
  9369. * @return void
  9370. * @static
  9371. */
  9372. public static function addConnector($driver, $resolver)
  9373. {
  9374. /** @var \Illuminate\Queue\QueueManager $instance */
  9375. $instance->addConnector($driver, $resolver);
  9376. }
  9377. /**
  9378. * Get the name of the default queue connection.
  9379. *
  9380. * @return string
  9381. * @static
  9382. */
  9383. public static function getDefaultDriver()
  9384. {
  9385. /** @var \Illuminate\Queue\QueueManager $instance */
  9386. return $instance->getDefaultDriver();
  9387. }
  9388. /**
  9389. * Set the name of the default queue connection.
  9390. *
  9391. * @param string $name
  9392. * @return void
  9393. * @static
  9394. */
  9395. public static function setDefaultDriver($name)
  9396. {
  9397. /** @var \Illuminate\Queue\QueueManager $instance */
  9398. $instance->setDefaultDriver($name);
  9399. }
  9400. /**
  9401. * Get the full name for the given connection.
  9402. *
  9403. * @param string|null $connection
  9404. * @return string
  9405. * @static
  9406. */
  9407. public static function getName($connection = null)
  9408. {
  9409. /** @var \Illuminate\Queue\QueueManager $instance */
  9410. return $instance->getName($connection);
  9411. }
  9412. /**
  9413. * Get the application instance used by the manager.
  9414. *
  9415. * @return \Illuminate\Contracts\Foundation\Application
  9416. * @static
  9417. */
  9418. public static function getApplication()
  9419. {
  9420. /** @var \Illuminate\Queue\QueueManager $instance */
  9421. return $instance->getApplication();
  9422. }
  9423. /**
  9424. * Set the application instance used by the manager.
  9425. *
  9426. * @param \Illuminate\Contracts\Foundation\Application $app
  9427. * @return \Illuminate\Queue\QueueManager
  9428. * @static
  9429. */
  9430. public static function setApplication($app)
  9431. {
  9432. /** @var \Illuminate\Queue\QueueManager $instance */
  9433. return $instance->setApplication($app);
  9434. }
  9435. /**
  9436. * Specify the jobs that should be queued instead of faked.
  9437. *
  9438. * @param array|string $jobsToBeQueued
  9439. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  9440. * @static
  9441. */
  9442. public static function except($jobsToBeQueued)
  9443. {
  9444. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9445. return $instance->except($jobsToBeQueued);
  9446. }
  9447. /**
  9448. * Assert if a job was pushed based on a truth-test callback.
  9449. *
  9450. * @param string|\Closure $job
  9451. * @param callable|int|null $callback
  9452. * @return void
  9453. * @static
  9454. */
  9455. public static function assertPushed($job, $callback = null)
  9456. {
  9457. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9458. $instance->assertPushed($job, $callback);
  9459. }
  9460. /**
  9461. * Assert if a job was pushed based on a truth-test callback.
  9462. *
  9463. * @param string $queue
  9464. * @param string|\Closure $job
  9465. * @param callable|null $callback
  9466. * @return void
  9467. * @static
  9468. */
  9469. public static function assertPushedOn($queue, $job, $callback = null)
  9470. {
  9471. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9472. $instance->assertPushedOn($queue, $job, $callback);
  9473. }
  9474. /**
  9475. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  9476. *
  9477. * @param string $job
  9478. * @param array $expectedChain
  9479. * @param callable|null $callback
  9480. * @return void
  9481. * @static
  9482. */
  9483. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  9484. {
  9485. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9486. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  9487. }
  9488. /**
  9489. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  9490. *
  9491. * @param string $job
  9492. * @param callable|null $callback
  9493. * @return void
  9494. * @static
  9495. */
  9496. public static function assertPushedWithoutChain($job, $callback = null)
  9497. {
  9498. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9499. $instance->assertPushedWithoutChain($job, $callback);
  9500. }
  9501. /**
  9502. * Determine if a job was pushed based on a truth-test callback.
  9503. *
  9504. * @param string|\Closure $job
  9505. * @param callable|null $callback
  9506. * @return void
  9507. * @static
  9508. */
  9509. public static function assertNotPushed($job, $callback = null)
  9510. {
  9511. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9512. $instance->assertNotPushed($job, $callback);
  9513. }
  9514. /**
  9515. * Assert that no jobs were pushed.
  9516. *
  9517. * @return void
  9518. * @static
  9519. */
  9520. public static function assertNothingPushed()
  9521. {
  9522. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9523. $instance->assertNothingPushed();
  9524. }
  9525. /**
  9526. * Get all of the jobs matching a truth-test callback.
  9527. *
  9528. * @param string $job
  9529. * @param callable|null $callback
  9530. * @return \Illuminate\Support\Collection
  9531. * @static
  9532. */
  9533. public static function pushed($job, $callback = null)
  9534. {
  9535. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9536. return $instance->pushed($job, $callback);
  9537. }
  9538. /**
  9539. * Determine if there are any stored jobs for a given class.
  9540. *
  9541. * @param string $job
  9542. * @return bool
  9543. * @static
  9544. */
  9545. public static function hasPushed($job)
  9546. {
  9547. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9548. return $instance->hasPushed($job);
  9549. }
  9550. /**
  9551. * Get the size of the queue.
  9552. *
  9553. * @param string|null $queue
  9554. * @return int
  9555. * @static
  9556. */
  9557. public static function size($queue = null)
  9558. {
  9559. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9560. return $instance->size($queue);
  9561. }
  9562. /**
  9563. * Push a new job onto the queue.
  9564. *
  9565. * @param string|object $job
  9566. * @param mixed $data
  9567. * @param string|null $queue
  9568. * @return mixed
  9569. * @static
  9570. */
  9571. public static function push($job, $data = '', $queue = null)
  9572. {
  9573. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9574. return $instance->push($job, $data, $queue);
  9575. }
  9576. /**
  9577. * Determine if a job should be faked or actually dispatched.
  9578. *
  9579. * @param object $job
  9580. * @return bool
  9581. * @static
  9582. */
  9583. public static function shouldFakeJob($job)
  9584. {
  9585. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9586. return $instance->shouldFakeJob($job);
  9587. }
  9588. /**
  9589. * Push a raw payload onto the queue.
  9590. *
  9591. * @param string $payload
  9592. * @param string|null $queue
  9593. * @param array $options
  9594. * @return mixed
  9595. * @static
  9596. */
  9597. public static function pushRaw($payload, $queue = null, $options = [])
  9598. {
  9599. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9600. return $instance->pushRaw($payload, $queue, $options);
  9601. }
  9602. /**
  9603. * Push a new job onto the queue after (n) seconds.
  9604. *
  9605. * @param \DateTimeInterface|\DateInterval|int $delay
  9606. * @param string|object $job
  9607. * @param mixed $data
  9608. * @param string|null $queue
  9609. * @return mixed
  9610. * @static
  9611. */
  9612. public static function later($delay, $job, $data = '', $queue = null)
  9613. {
  9614. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9615. return $instance->later($delay, $job, $data, $queue);
  9616. }
  9617. /**
  9618. * Push a new job onto the queue.
  9619. *
  9620. * @param string $queue
  9621. * @param string|object $job
  9622. * @param mixed $data
  9623. * @return mixed
  9624. * @static
  9625. */
  9626. public static function pushOn($queue, $job, $data = '')
  9627. {
  9628. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9629. return $instance->pushOn($queue, $job, $data);
  9630. }
  9631. /**
  9632. * Push a new job onto a specific queue after (n) seconds.
  9633. *
  9634. * @param string $queue
  9635. * @param \DateTimeInterface|\DateInterval|int $delay
  9636. * @param string|object $job
  9637. * @param mixed $data
  9638. * @return mixed
  9639. * @static
  9640. */
  9641. public static function laterOn($queue, $delay, $job, $data = '')
  9642. {
  9643. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9644. return $instance->laterOn($queue, $delay, $job, $data);
  9645. }
  9646. /**
  9647. * Pop the next job off of the queue.
  9648. *
  9649. * @param string|null $queue
  9650. * @return \Illuminate\Contracts\Queue\Job|null
  9651. * @static
  9652. */
  9653. public static function pop($queue = null)
  9654. {
  9655. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9656. return $instance->pop($queue);
  9657. }
  9658. /**
  9659. * Push an array of jobs onto the queue.
  9660. *
  9661. * @param array $jobs
  9662. * @param mixed $data
  9663. * @param string|null $queue
  9664. * @return mixed
  9665. * @static
  9666. */
  9667. public static function bulk($jobs, $data = '', $queue = null)
  9668. {
  9669. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9670. return $instance->bulk($jobs, $data, $queue);
  9671. }
  9672. /**
  9673. * Get the jobs that have been pushed.
  9674. *
  9675. * @return array
  9676. * @static
  9677. */
  9678. public static function pushedJobs()
  9679. {
  9680. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9681. return $instance->pushedJobs();
  9682. }
  9683. /**
  9684. * Get the connection name for the queue.
  9685. *
  9686. * @return string
  9687. * @static
  9688. */
  9689. public static function getConnectionName()
  9690. {
  9691. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9692. return $instance->getConnectionName();
  9693. }
  9694. /**
  9695. * Set the connection name for the queue.
  9696. *
  9697. * @param string $name
  9698. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  9699. * @static
  9700. */
  9701. public static function setConnectionName($name)
  9702. {
  9703. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9704. return $instance->setConnectionName($name);
  9705. }
  9706. /**
  9707. * Get the backoff for an object-based queue handler.
  9708. *
  9709. * @param mixed $job
  9710. * @return mixed
  9711. * @static
  9712. */
  9713. public static function getJobBackoff($job)
  9714. { //Method inherited from \Illuminate\Queue\Queue
  9715. /** @var \Illuminate\Queue\SyncQueue $instance */
  9716. return $instance->getJobBackoff($job);
  9717. }
  9718. /**
  9719. * Get the expiration timestamp for an object-based queue handler.
  9720. *
  9721. * @param mixed $job
  9722. * @return mixed
  9723. * @static
  9724. */
  9725. public static function getJobExpiration($job)
  9726. { //Method inherited from \Illuminate\Queue\Queue
  9727. /** @var \Illuminate\Queue\SyncQueue $instance */
  9728. return $instance->getJobExpiration($job);
  9729. }
  9730. /**
  9731. * Register a callback to be executed when creating job payloads.
  9732. *
  9733. * @param callable|null $callback
  9734. * @return void
  9735. * @static
  9736. */
  9737. public static function createPayloadUsing($callback)
  9738. { //Method inherited from \Illuminate\Queue\Queue
  9739. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  9740. }
  9741. /**
  9742. * Get the container instance being used by the connection.
  9743. *
  9744. * @return \Illuminate\Container\Container
  9745. * @static
  9746. */
  9747. public static function getContainer()
  9748. { //Method inherited from \Illuminate\Queue\Queue
  9749. /** @var \Illuminate\Queue\SyncQueue $instance */
  9750. return $instance->getContainer();
  9751. }
  9752. /**
  9753. * Set the IoC container instance.
  9754. *
  9755. * @param \Illuminate\Container\Container $container
  9756. * @return void
  9757. * @static
  9758. */
  9759. public static function setContainer($container)
  9760. { //Method inherited from \Illuminate\Queue\Queue
  9761. /** @var \Illuminate\Queue\SyncQueue $instance */
  9762. $instance->setContainer($container);
  9763. }
  9764. }
  9765. /**
  9766. *
  9767. *
  9768. * @see \Illuminate\Cache\RateLimiter
  9769. */
  9770. class RateLimiter {
  9771. /**
  9772. * Register a named limiter configuration.
  9773. *
  9774. * @param string $name
  9775. * @param \Closure $callback
  9776. * @return \Illuminate\Cache\RateLimiter
  9777. * @static
  9778. */
  9779. public static function for($name, $callback)
  9780. {
  9781. /** @var \Illuminate\Cache\RateLimiter $instance */
  9782. return $instance->for($name, $callback);
  9783. }
  9784. /**
  9785. * Get the given named rate limiter.
  9786. *
  9787. * @param string $name
  9788. * @return \Closure
  9789. * @static
  9790. */
  9791. public static function limiter($name)
  9792. {
  9793. /** @var \Illuminate\Cache\RateLimiter $instance */
  9794. return $instance->limiter($name);
  9795. }
  9796. /**
  9797. * Attempts to execute a callback if it's not limited.
  9798. *
  9799. * @param string $key
  9800. * @param int $maxAttempts
  9801. * @param \Closure $callback
  9802. * @param int $decaySeconds
  9803. * @return mixed
  9804. * @static
  9805. */
  9806. public static function attempt($key, $maxAttempts, $callback, $decaySeconds = 60)
  9807. {
  9808. /** @var \Illuminate\Cache\RateLimiter $instance */
  9809. return $instance->attempt($key, $maxAttempts, $callback, $decaySeconds);
  9810. }
  9811. /**
  9812. * Determine if the given key has been "accessed" too many times.
  9813. *
  9814. * @param string $key
  9815. * @param int $maxAttempts
  9816. * @return bool
  9817. * @static
  9818. */
  9819. public static function tooManyAttempts($key, $maxAttempts)
  9820. {
  9821. /** @var \Illuminate\Cache\RateLimiter $instance */
  9822. return $instance->tooManyAttempts($key, $maxAttempts);
  9823. }
  9824. /**
  9825. * Increment the counter for a given key for a given decay time.
  9826. *
  9827. * @param string $key
  9828. * @param int $decaySeconds
  9829. * @return int
  9830. * @static
  9831. */
  9832. public static function hit($key, $decaySeconds = 60)
  9833. {
  9834. /** @var \Illuminate\Cache\RateLimiter $instance */
  9835. return $instance->hit($key, $decaySeconds);
  9836. }
  9837. /**
  9838. * Get the number of attempts for the given key.
  9839. *
  9840. * @param string $key
  9841. * @return mixed
  9842. * @static
  9843. */
  9844. public static function attempts($key)
  9845. {
  9846. /** @var \Illuminate\Cache\RateLimiter $instance */
  9847. return $instance->attempts($key);
  9848. }
  9849. /**
  9850. * Reset the number of attempts for the given key.
  9851. *
  9852. * @param string $key
  9853. * @return mixed
  9854. * @static
  9855. */
  9856. public static function resetAttempts($key)
  9857. {
  9858. /** @var \Illuminate\Cache\RateLimiter $instance */
  9859. return $instance->resetAttempts($key);
  9860. }
  9861. /**
  9862. * Get the number of retries left for the given key.
  9863. *
  9864. * @param string $key
  9865. * @param int $maxAttempts
  9866. * @return int
  9867. * @static
  9868. */
  9869. public static function remaining($key, $maxAttempts)
  9870. {
  9871. /** @var \Illuminate\Cache\RateLimiter $instance */
  9872. return $instance->remaining($key, $maxAttempts);
  9873. }
  9874. /**
  9875. * Get the number of retries left for the given key.
  9876. *
  9877. * @param string $key
  9878. * @param int $maxAttempts
  9879. * @return int
  9880. * @static
  9881. */
  9882. public static function retriesLeft($key, $maxAttempts)
  9883. {
  9884. /** @var \Illuminate\Cache\RateLimiter $instance */
  9885. return $instance->retriesLeft($key, $maxAttempts);
  9886. }
  9887. /**
  9888. * Clear the hits and lockout timer for the given key.
  9889. *
  9890. * @param string $key
  9891. * @return void
  9892. * @static
  9893. */
  9894. public static function clear($key)
  9895. {
  9896. /** @var \Illuminate\Cache\RateLimiter $instance */
  9897. $instance->clear($key);
  9898. }
  9899. /**
  9900. * Get the number of seconds until the "key" is accessible again.
  9901. *
  9902. * @param string $key
  9903. * @return int
  9904. * @static
  9905. */
  9906. public static function availableIn($key)
  9907. {
  9908. /** @var \Illuminate\Cache\RateLimiter $instance */
  9909. return $instance->availableIn($key);
  9910. }
  9911. /**
  9912. * Clean the rate limiter key from unicode characters.
  9913. *
  9914. * @param string $key
  9915. * @return string
  9916. * @static
  9917. */
  9918. public static function cleanRateLimiterKey($key)
  9919. {
  9920. /** @var \Illuminate\Cache\RateLimiter $instance */
  9921. return $instance->cleanRateLimiterKey($key);
  9922. }
  9923. }
  9924. /**
  9925. *
  9926. *
  9927. * @see \Illuminate\Routing\Redirector
  9928. */
  9929. class Redirect {
  9930. /**
  9931. * Create a new redirect response to the "home" route.
  9932. *
  9933. * @param int $status
  9934. * @return \Illuminate\Http\RedirectResponse
  9935. * @deprecated Will be removed in a future Laravel version.
  9936. * @static
  9937. */
  9938. public static function home($status = 302)
  9939. {
  9940. /** @var \Illuminate\Routing\Redirector $instance */
  9941. return $instance->home($status);
  9942. }
  9943. /**
  9944. * Create a new redirect response to the previous location.
  9945. *
  9946. * @param int $status
  9947. * @param array $headers
  9948. * @param mixed $fallback
  9949. * @return \Illuminate\Http\RedirectResponse
  9950. * @static
  9951. */
  9952. public static function back($status = 302, $headers = [], $fallback = false)
  9953. {
  9954. /** @var \Illuminate\Routing\Redirector $instance */
  9955. return $instance->back($status, $headers, $fallback);
  9956. }
  9957. /**
  9958. * Create a new redirect response to the current URI.
  9959. *
  9960. * @param int $status
  9961. * @param array $headers
  9962. * @return \Illuminate\Http\RedirectResponse
  9963. * @static
  9964. */
  9965. public static function refresh($status = 302, $headers = [])
  9966. {
  9967. /** @var \Illuminate\Routing\Redirector $instance */
  9968. return $instance->refresh($status, $headers);
  9969. }
  9970. /**
  9971. * Create a new redirect response, while putting the current URL in the session.
  9972. *
  9973. * @param string $path
  9974. * @param int $status
  9975. * @param array $headers
  9976. * @param bool|null $secure
  9977. * @return \Illuminate\Http\RedirectResponse
  9978. * @static
  9979. */
  9980. public static function guest($path, $status = 302, $headers = [], $secure = null)
  9981. {
  9982. /** @var \Illuminate\Routing\Redirector $instance */
  9983. return $instance->guest($path, $status, $headers, $secure);
  9984. }
  9985. /**
  9986. * Create a new redirect response to the previously intended location.
  9987. *
  9988. * @param mixed $default
  9989. * @param int $status
  9990. * @param array $headers
  9991. * @param bool|null $secure
  9992. * @return \Illuminate\Http\RedirectResponse
  9993. * @static
  9994. */
  9995. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  9996. {
  9997. /** @var \Illuminate\Routing\Redirector $instance */
  9998. return $instance->intended($default, $status, $headers, $secure);
  9999. }
  10000. /**
  10001. * Create a new redirect response to the given path.
  10002. *
  10003. * @param string $path
  10004. * @param int $status
  10005. * @param array $headers
  10006. * @param bool|null $secure
  10007. * @return \Illuminate\Http\RedirectResponse
  10008. * @static
  10009. */
  10010. public static function to($path, $status = 302, $headers = [], $secure = null)
  10011. {
  10012. /** @var \Illuminate\Routing\Redirector $instance */
  10013. return $instance->to($path, $status, $headers, $secure);
  10014. }
  10015. /**
  10016. * Create a new redirect response to an external URL (no validation).
  10017. *
  10018. * @param string $path
  10019. * @param int $status
  10020. * @param array $headers
  10021. * @return \Illuminate\Http\RedirectResponse
  10022. * @static
  10023. */
  10024. public static function away($path, $status = 302, $headers = [])
  10025. {
  10026. /** @var \Illuminate\Routing\Redirector $instance */
  10027. return $instance->away($path, $status, $headers);
  10028. }
  10029. /**
  10030. * Create a new redirect response to the given HTTPS path.
  10031. *
  10032. * @param string $path
  10033. * @param int $status
  10034. * @param array $headers
  10035. * @return \Illuminate\Http\RedirectResponse
  10036. * @static
  10037. */
  10038. public static function secure($path, $status = 302, $headers = [])
  10039. {
  10040. /** @var \Illuminate\Routing\Redirector $instance */
  10041. return $instance->secure($path, $status, $headers);
  10042. }
  10043. /**
  10044. * Create a new redirect response to a named route.
  10045. *
  10046. * @param string $route
  10047. * @param mixed $parameters
  10048. * @param int $status
  10049. * @param array $headers
  10050. * @return \Illuminate\Http\RedirectResponse
  10051. * @static
  10052. */
  10053. public static function route($route, $parameters = [], $status = 302, $headers = [])
  10054. {
  10055. /** @var \Illuminate\Routing\Redirector $instance */
  10056. return $instance->route($route, $parameters, $status, $headers);
  10057. }
  10058. /**
  10059. * Create a new redirect response to a signed named route.
  10060. *
  10061. * @param string $route
  10062. * @param mixed $parameters
  10063. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  10064. * @param int $status
  10065. * @param array $headers
  10066. * @return \Illuminate\Http\RedirectResponse
  10067. * @static
  10068. */
  10069. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  10070. {
  10071. /** @var \Illuminate\Routing\Redirector $instance */
  10072. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  10073. }
  10074. /**
  10075. * Create a new redirect response to a signed named route.
  10076. *
  10077. * @param string $route
  10078. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  10079. * @param mixed $parameters
  10080. * @param int $status
  10081. * @param array $headers
  10082. * @return \Illuminate\Http\RedirectResponse
  10083. * @static
  10084. */
  10085. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  10086. {
  10087. /** @var \Illuminate\Routing\Redirector $instance */
  10088. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  10089. }
  10090. /**
  10091. * Create a new redirect response to a controller action.
  10092. *
  10093. * @param string|array $action
  10094. * @param mixed $parameters
  10095. * @param int $status
  10096. * @param array $headers
  10097. * @return \Illuminate\Http\RedirectResponse
  10098. * @static
  10099. */
  10100. public static function action($action, $parameters = [], $status = 302, $headers = [])
  10101. {
  10102. /** @var \Illuminate\Routing\Redirector $instance */
  10103. return $instance->action($action, $parameters, $status, $headers);
  10104. }
  10105. /**
  10106. * Get the URL generator instance.
  10107. *
  10108. * @return \Illuminate\Routing\UrlGenerator
  10109. * @static
  10110. */
  10111. public static function getUrlGenerator()
  10112. {
  10113. /** @var \Illuminate\Routing\Redirector $instance */
  10114. return $instance->getUrlGenerator();
  10115. }
  10116. /**
  10117. * Set the active session store.
  10118. *
  10119. * @param \Illuminate\Session\Store $session
  10120. * @return void
  10121. * @static
  10122. */
  10123. public static function setSession($session)
  10124. {
  10125. /** @var \Illuminate\Routing\Redirector $instance */
  10126. $instance->setSession($session);
  10127. }
  10128. /**
  10129. * Get the "intended" URL from the session.
  10130. *
  10131. * @return string|null
  10132. * @static
  10133. */
  10134. public static function getIntendedUrl()
  10135. {
  10136. /** @var \Illuminate\Routing\Redirector $instance */
  10137. return $instance->getIntendedUrl();
  10138. }
  10139. /**
  10140. * Set the "intended" URL in the session.
  10141. *
  10142. * @param string $url
  10143. * @return \Illuminate\Routing\Redirector
  10144. * @static
  10145. */
  10146. public static function setIntendedUrl($url)
  10147. {
  10148. /** @var \Illuminate\Routing\Redirector $instance */
  10149. return $instance->setIntendedUrl($url);
  10150. }
  10151. /**
  10152. * Register a custom macro.
  10153. *
  10154. * @param string $name
  10155. * @param object|callable $macro
  10156. * @return void
  10157. * @static
  10158. */
  10159. public static function macro($name, $macro)
  10160. {
  10161. \Illuminate\Routing\Redirector::macro($name, $macro);
  10162. }
  10163. /**
  10164. * Mix another object into the class.
  10165. *
  10166. * @param object $mixin
  10167. * @param bool $replace
  10168. * @return void
  10169. * @throws \ReflectionException
  10170. * @static
  10171. */
  10172. public static function mixin($mixin, $replace = true)
  10173. {
  10174. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  10175. }
  10176. /**
  10177. * Checks if macro is registered.
  10178. *
  10179. * @param string $name
  10180. * @return bool
  10181. * @static
  10182. */
  10183. public static function hasMacro($name)
  10184. {
  10185. return \Illuminate\Routing\Redirector::hasMacro($name);
  10186. }
  10187. /**
  10188. * Flush the existing macros.
  10189. *
  10190. * @return void
  10191. * @static
  10192. */
  10193. public static function flushMacros()
  10194. {
  10195. \Illuminate\Routing\Redirector::flushMacros();
  10196. }
  10197. }
  10198. /**
  10199. *
  10200. *
  10201. * @method static mixed filterFiles(mixed $files)
  10202. * @see \Illuminate\Http\Request
  10203. */
  10204. class Request {
  10205. /**
  10206. * Create a new Illuminate HTTP request from server variables.
  10207. *
  10208. * @return static
  10209. * @static
  10210. */
  10211. public static function capture()
  10212. {
  10213. return \Illuminate\Http\Request::capture();
  10214. }
  10215. /**
  10216. * Return the Request instance.
  10217. *
  10218. * @return \Illuminate\Http\Request
  10219. * @static
  10220. */
  10221. public static function instance()
  10222. {
  10223. /** @var \Illuminate\Http\Request $instance */
  10224. return $instance->instance();
  10225. }
  10226. /**
  10227. * Get the request method.
  10228. *
  10229. * @return string
  10230. * @static
  10231. */
  10232. public static function method()
  10233. {
  10234. /** @var \Illuminate\Http\Request $instance */
  10235. return $instance->method();
  10236. }
  10237. /**
  10238. * Get the root URL for the application.
  10239. *
  10240. * @return string
  10241. * @static
  10242. */
  10243. public static function root()
  10244. {
  10245. /** @var \Illuminate\Http\Request $instance */
  10246. return $instance->root();
  10247. }
  10248. /**
  10249. * Get the URL (no query string) for the request.
  10250. *
  10251. * @return string
  10252. * @static
  10253. */
  10254. public static function url()
  10255. {
  10256. /** @var \Illuminate\Http\Request $instance */
  10257. return $instance->url();
  10258. }
  10259. /**
  10260. * Get the full URL for the request.
  10261. *
  10262. * @return string
  10263. * @static
  10264. */
  10265. public static function fullUrl()
  10266. {
  10267. /** @var \Illuminate\Http\Request $instance */
  10268. return $instance->fullUrl();
  10269. }
  10270. /**
  10271. * Get the full URL for the request with the added query string parameters.
  10272. *
  10273. * @param array $query
  10274. * @return string
  10275. * @static
  10276. */
  10277. public static function fullUrlWithQuery($query)
  10278. {
  10279. /** @var \Illuminate\Http\Request $instance */
  10280. return $instance->fullUrlWithQuery($query);
  10281. }
  10282. /**
  10283. * Get the full URL for the request without the given query string parameters.
  10284. *
  10285. * @param array|string $keys
  10286. * @return string
  10287. * @static
  10288. */
  10289. public static function fullUrlWithoutQuery($keys)
  10290. {
  10291. /** @var \Illuminate\Http\Request $instance */
  10292. return $instance->fullUrlWithoutQuery($keys);
  10293. }
  10294. /**
  10295. * Get the current path info for the request.
  10296. *
  10297. * @return string
  10298. * @static
  10299. */
  10300. public static function path()
  10301. {
  10302. /** @var \Illuminate\Http\Request $instance */
  10303. return $instance->path();
  10304. }
  10305. /**
  10306. * Get the current decoded path info for the request.
  10307. *
  10308. * @return string
  10309. * @static
  10310. */
  10311. public static function decodedPath()
  10312. {
  10313. /** @var \Illuminate\Http\Request $instance */
  10314. return $instance->decodedPath();
  10315. }
  10316. /**
  10317. * Get a segment from the URI (1 based index).
  10318. *
  10319. * @param int $index
  10320. * @param string|null $default
  10321. * @return string|null
  10322. * @static
  10323. */
  10324. public static function segment($index, $default = null)
  10325. {
  10326. /** @var \Illuminate\Http\Request $instance */
  10327. return $instance->segment($index, $default);
  10328. }
  10329. /**
  10330. * Get all of the segments for the request path.
  10331. *
  10332. * @return array
  10333. * @static
  10334. */
  10335. public static function segments()
  10336. {
  10337. /** @var \Illuminate\Http\Request $instance */
  10338. return $instance->segments();
  10339. }
  10340. /**
  10341. * Determine if the current request URI matches a pattern.
  10342. *
  10343. * @param mixed $patterns
  10344. * @return bool
  10345. * @static
  10346. */
  10347. public static function is(...$patterns)
  10348. {
  10349. /** @var \Illuminate\Http\Request $instance */
  10350. return $instance->is(...$patterns);
  10351. }
  10352. /**
  10353. * Determine if the route name matches a given pattern.
  10354. *
  10355. * @param mixed $patterns
  10356. * @return bool
  10357. * @static
  10358. */
  10359. public static function routeIs(...$patterns)
  10360. {
  10361. /** @var \Illuminate\Http\Request $instance */
  10362. return $instance->routeIs(...$patterns);
  10363. }
  10364. /**
  10365. * Determine if the current request URL and query string match a pattern.
  10366. *
  10367. * @param mixed $patterns
  10368. * @return bool
  10369. * @static
  10370. */
  10371. public static function fullUrlIs(...$patterns)
  10372. {
  10373. /** @var \Illuminate\Http\Request $instance */
  10374. return $instance->fullUrlIs(...$patterns);
  10375. }
  10376. /**
  10377. * Get the host name.
  10378. *
  10379. * @return string
  10380. * @static
  10381. */
  10382. public static function host()
  10383. {
  10384. /** @var \Illuminate\Http\Request $instance */
  10385. return $instance->host();
  10386. }
  10387. /**
  10388. * Get the HTTP host being requested.
  10389. *
  10390. * @return string
  10391. * @static
  10392. */
  10393. public static function httpHost()
  10394. {
  10395. /** @var \Illuminate\Http\Request $instance */
  10396. return $instance->httpHost();
  10397. }
  10398. /**
  10399. * Get the scheme and HTTP host.
  10400. *
  10401. * @return string
  10402. * @static
  10403. */
  10404. public static function schemeAndHttpHost()
  10405. {
  10406. /** @var \Illuminate\Http\Request $instance */
  10407. return $instance->schemeAndHttpHost();
  10408. }
  10409. /**
  10410. * Determine if the request is the result of an AJAX call.
  10411. *
  10412. * @return bool
  10413. * @static
  10414. */
  10415. public static function ajax()
  10416. {
  10417. /** @var \Illuminate\Http\Request $instance */
  10418. return $instance->ajax();
  10419. }
  10420. /**
  10421. * Determine if the request is the result of a PJAX call.
  10422. *
  10423. * @return bool
  10424. * @static
  10425. */
  10426. public static function pjax()
  10427. {
  10428. /** @var \Illuminate\Http\Request $instance */
  10429. return $instance->pjax();
  10430. }
  10431. /**
  10432. * Determine if the request is the result of a prefetch call.
  10433. *
  10434. * @return bool
  10435. * @static
  10436. */
  10437. public static function prefetch()
  10438. {
  10439. /** @var \Illuminate\Http\Request $instance */
  10440. return $instance->prefetch();
  10441. }
  10442. /**
  10443. * Determine if the request is over HTTPS.
  10444. *
  10445. * @return bool
  10446. * @static
  10447. */
  10448. public static function secure()
  10449. {
  10450. /** @var \Illuminate\Http\Request $instance */
  10451. return $instance->secure();
  10452. }
  10453. /**
  10454. * Get the client IP address.
  10455. *
  10456. * @return string|null
  10457. * @static
  10458. */
  10459. public static function ip()
  10460. {
  10461. /** @var \Illuminate\Http\Request $instance */
  10462. return $instance->ip();
  10463. }
  10464. /**
  10465. * Get the client IP addresses.
  10466. *
  10467. * @return array
  10468. * @static
  10469. */
  10470. public static function ips()
  10471. {
  10472. /** @var \Illuminate\Http\Request $instance */
  10473. return $instance->ips();
  10474. }
  10475. /**
  10476. * Get the client user agent.
  10477. *
  10478. * @return string|null
  10479. * @static
  10480. */
  10481. public static function userAgent()
  10482. {
  10483. /** @var \Illuminate\Http\Request $instance */
  10484. return $instance->userAgent();
  10485. }
  10486. /**
  10487. * Merge new input into the current request's input array.
  10488. *
  10489. * @param array $input
  10490. * @return \Illuminate\Http\Request
  10491. * @static
  10492. */
  10493. public static function merge($input)
  10494. {
  10495. /** @var \Illuminate\Http\Request $instance */
  10496. return $instance->merge($input);
  10497. }
  10498. /**
  10499. * Merge new input into the request's input, but only when that key is missing from the request.
  10500. *
  10501. * @param array $input
  10502. * @return \Illuminate\Http\Request
  10503. * @static
  10504. */
  10505. public static function mergeIfMissing($input)
  10506. {
  10507. /** @var \Illuminate\Http\Request $instance */
  10508. return $instance->mergeIfMissing($input);
  10509. }
  10510. /**
  10511. * Replace the input for the current request.
  10512. *
  10513. * @param array $input
  10514. * @return \Illuminate\Http\Request
  10515. * @static
  10516. */
  10517. public static function replace($input)
  10518. {
  10519. /** @var \Illuminate\Http\Request $instance */
  10520. return $instance->replace($input);
  10521. }
  10522. /**
  10523. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  10524. *
  10525. * Instead, you may use the "input" method.
  10526. *
  10527. * @param string $key
  10528. * @param mixed $default
  10529. * @return mixed
  10530. * @static
  10531. */
  10532. public static function get($key, $default = null)
  10533. {
  10534. /** @var \Illuminate\Http\Request $instance */
  10535. return $instance->get($key, $default);
  10536. }
  10537. /**
  10538. * Get the JSON payload for the request.
  10539. *
  10540. * @param string|null $key
  10541. * @param mixed $default
  10542. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  10543. * @static
  10544. */
  10545. public static function json($key = null, $default = null)
  10546. {
  10547. /** @var \Illuminate\Http\Request $instance */
  10548. return $instance->json($key, $default);
  10549. }
  10550. /**
  10551. * Create a new request instance from the given Laravel request.
  10552. *
  10553. * @param \Illuminate\Http\Request $from
  10554. * @param \Illuminate\Http\Request|null $to
  10555. * @return static
  10556. * @static
  10557. */
  10558. public static function createFrom($from, $to = null)
  10559. {
  10560. return \Illuminate\Http\Request::createFrom($from, $to);
  10561. }
  10562. /**
  10563. * Create an Illuminate request from a Symfony instance.
  10564. *
  10565. * @param \Symfony\Component\HttpFoundation\Request $request
  10566. * @return static
  10567. * @static
  10568. */
  10569. public static function createFromBase($request)
  10570. {
  10571. return \Illuminate\Http\Request::createFromBase($request);
  10572. }
  10573. /**
  10574. * Clones a request and overrides some of its parameters.
  10575. *
  10576. * @return static
  10577. * @param array $query The GET parameters
  10578. * @param array $request The POST parameters
  10579. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  10580. * @param array $cookies The COOKIE parameters
  10581. * @param array $files The FILES parameters
  10582. * @param array $server The SERVER parameters
  10583. * @static
  10584. */
  10585. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  10586. {
  10587. /** @var \Illuminate\Http\Request $instance */
  10588. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  10589. }
  10590. /**
  10591. * Whether the request contains a Session object.
  10592. *
  10593. * This method does not give any information about the state of the session object,
  10594. * like whether the session is started or not. It is just a way to check if this Request
  10595. * is associated with a Session instance.
  10596. *
  10597. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  10598. * @static
  10599. */
  10600. public static function hasSession($skipIfUninitialized = false)
  10601. {
  10602. /** @var \Illuminate\Http\Request $instance */
  10603. return $instance->hasSession($skipIfUninitialized);
  10604. }
  10605. /**
  10606. * Gets the Session.
  10607. *
  10608. * @static
  10609. */
  10610. public static function getSession()
  10611. {
  10612. /** @var \Illuminate\Http\Request $instance */
  10613. return $instance->getSession();
  10614. }
  10615. /**
  10616. * Get the session associated with the request.
  10617. *
  10618. * @return \Illuminate\Contracts\Session\Session
  10619. * @throws \RuntimeException
  10620. * @static
  10621. */
  10622. public static function session()
  10623. {
  10624. /** @var \Illuminate\Http\Request $instance */
  10625. return $instance->session();
  10626. }
  10627. /**
  10628. * Set the session instance on the request.
  10629. *
  10630. * @param \Illuminate\Contracts\Session\Session $session
  10631. * @return void
  10632. * @static
  10633. */
  10634. public static function setLaravelSession($session)
  10635. {
  10636. /** @var \Illuminate\Http\Request $instance */
  10637. $instance->setLaravelSession($session);
  10638. }
  10639. /**
  10640. * Set the locale for the request instance.
  10641. *
  10642. * @param string $locale
  10643. * @return void
  10644. * @static
  10645. */
  10646. public static function setRequestLocale($locale)
  10647. {
  10648. /** @var \Illuminate\Http\Request $instance */
  10649. $instance->setRequestLocale($locale);
  10650. }
  10651. /**
  10652. * Set the default locale for the request instance.
  10653. *
  10654. * @param string $locale
  10655. * @return void
  10656. * @static
  10657. */
  10658. public static function setDefaultRequestLocale($locale)
  10659. {
  10660. /** @var \Illuminate\Http\Request $instance */
  10661. $instance->setDefaultRequestLocale($locale);
  10662. }
  10663. /**
  10664. * Get the user making the request.
  10665. *
  10666. * @param string|null $guard
  10667. * @return mixed
  10668. * @static
  10669. */
  10670. public static function user($guard = null)
  10671. {
  10672. /** @var \Illuminate\Http\Request $instance */
  10673. return $instance->user($guard);
  10674. }
  10675. /**
  10676. * Get the route handling the request.
  10677. *
  10678. * @param string|null $param
  10679. * @param mixed $default
  10680. * @return \Illuminate\Routing\Route|object|string|null
  10681. * @static
  10682. */
  10683. public static function route($param = null, $default = null)
  10684. {
  10685. /** @var \Illuminate\Http\Request $instance */
  10686. return $instance->route($param, $default);
  10687. }
  10688. /**
  10689. * Get a unique fingerprint for the request / route / IP address.
  10690. *
  10691. * @return string
  10692. * @throws \RuntimeException
  10693. * @static
  10694. */
  10695. public static function fingerprint()
  10696. {
  10697. /** @var \Illuminate\Http\Request $instance */
  10698. return $instance->fingerprint();
  10699. }
  10700. /**
  10701. * Set the JSON payload for the request.
  10702. *
  10703. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  10704. * @return \Illuminate\Http\Request
  10705. * @static
  10706. */
  10707. public static function setJson($json)
  10708. {
  10709. /** @var \Illuminate\Http\Request $instance */
  10710. return $instance->setJson($json);
  10711. }
  10712. /**
  10713. * Get the user resolver callback.
  10714. *
  10715. * @return \Closure
  10716. * @static
  10717. */
  10718. public static function getUserResolver()
  10719. {
  10720. /** @var \Illuminate\Http\Request $instance */
  10721. return $instance->getUserResolver();
  10722. }
  10723. /**
  10724. * Set the user resolver callback.
  10725. *
  10726. * @param \Closure $callback
  10727. * @return \Illuminate\Http\Request
  10728. * @static
  10729. */
  10730. public static function setUserResolver($callback)
  10731. {
  10732. /** @var \Illuminate\Http\Request $instance */
  10733. return $instance->setUserResolver($callback);
  10734. }
  10735. /**
  10736. * Get the route resolver callback.
  10737. *
  10738. * @return \Closure
  10739. * @static
  10740. */
  10741. public static function getRouteResolver()
  10742. {
  10743. /** @var \Illuminate\Http\Request $instance */
  10744. return $instance->getRouteResolver();
  10745. }
  10746. /**
  10747. * Set the route resolver callback.
  10748. *
  10749. * @param \Closure $callback
  10750. * @return \Illuminate\Http\Request
  10751. * @static
  10752. */
  10753. public static function setRouteResolver($callback)
  10754. {
  10755. /** @var \Illuminate\Http\Request $instance */
  10756. return $instance->setRouteResolver($callback);
  10757. }
  10758. /**
  10759. * Get all of the input and files for the request.
  10760. *
  10761. * @return array
  10762. * @static
  10763. */
  10764. public static function toArray()
  10765. {
  10766. /** @var \Illuminate\Http\Request $instance */
  10767. return $instance->toArray();
  10768. }
  10769. /**
  10770. * Determine if the given offset exists.
  10771. *
  10772. * @param string $offset
  10773. * @return bool
  10774. * @static
  10775. */
  10776. public static function offsetExists($offset)
  10777. {
  10778. /** @var \Illuminate\Http\Request $instance */
  10779. return $instance->offsetExists($offset);
  10780. }
  10781. /**
  10782. * Get the value at the given offset.
  10783. *
  10784. * @param string $offset
  10785. * @return mixed
  10786. * @static
  10787. */
  10788. public static function offsetGet($offset)
  10789. {
  10790. /** @var \Illuminate\Http\Request $instance */
  10791. return $instance->offsetGet($offset);
  10792. }
  10793. /**
  10794. * Set the value at the given offset.
  10795. *
  10796. * @param string $offset
  10797. * @param mixed $value
  10798. * @return void
  10799. * @static
  10800. */
  10801. public static function offsetSet($offset, $value)
  10802. {
  10803. /** @var \Illuminate\Http\Request $instance */
  10804. $instance->offsetSet($offset, $value);
  10805. }
  10806. /**
  10807. * Remove the value at the given offset.
  10808. *
  10809. * @param string $offset
  10810. * @return void
  10811. * @static
  10812. */
  10813. public static function offsetUnset($offset)
  10814. {
  10815. /** @var \Illuminate\Http\Request $instance */
  10816. $instance->offsetUnset($offset);
  10817. }
  10818. /**
  10819. * Sets the parameters for this request.
  10820. *
  10821. * This method also re-initializes all properties.
  10822. *
  10823. * @param array $query The GET parameters
  10824. * @param array $request The POST parameters
  10825. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  10826. * @param array $cookies The COOKIE parameters
  10827. * @param array $files The FILES parameters
  10828. * @param array $server The SERVER parameters
  10829. * @param string|resource|null $content The raw body data
  10830. * @static
  10831. */
  10832. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  10833. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10834. /** @var \Illuminate\Http\Request $instance */
  10835. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  10836. }
  10837. /**
  10838. * Creates a new request with values from PHP's super globals.
  10839. *
  10840. * @static
  10841. */
  10842. public static function createFromGlobals()
  10843. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10844. return \Illuminate\Http\Request::createFromGlobals();
  10845. }
  10846. /**
  10847. * Creates a Request based on a given URI and configuration.
  10848. *
  10849. * The information contained in the URI always take precedence
  10850. * over the other information (server and parameters).
  10851. *
  10852. * @param string $uri The URI
  10853. * @param string $method The HTTP method
  10854. * @param array $parameters The query (GET) or request (POST) parameters
  10855. * @param array $cookies The request cookies ($_COOKIE)
  10856. * @param array $files The request files ($_FILES)
  10857. * @param array $server The server parameters ($_SERVER)
  10858. * @param string|resource|null $content The raw body data
  10859. * @static
  10860. */
  10861. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  10862. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10863. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  10864. }
  10865. /**
  10866. * Sets a callable able to create a Request instance.
  10867. *
  10868. * This is mainly useful when you need to override the Request class
  10869. * to keep BC with an existing system. It should not be used for any
  10870. * other purpose.
  10871. *
  10872. * @static
  10873. */
  10874. public static function setFactory($callable)
  10875. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10876. return \Illuminate\Http\Request::setFactory($callable);
  10877. }
  10878. /**
  10879. * Overrides the PHP global variables according to this request instance.
  10880. *
  10881. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  10882. * $_FILES is never overridden, see rfc1867
  10883. *
  10884. * @static
  10885. */
  10886. public static function overrideGlobals()
  10887. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10888. /** @var \Illuminate\Http\Request $instance */
  10889. return $instance->overrideGlobals();
  10890. }
  10891. /**
  10892. * Sets a list of trusted proxies.
  10893. *
  10894. * You should only list the reverse proxies that you manage directly.
  10895. *
  10896. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  10897. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  10898. * @static
  10899. */
  10900. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  10901. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10902. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  10903. }
  10904. /**
  10905. * Gets the list of trusted proxies.
  10906. *
  10907. * @static
  10908. */
  10909. public static function getTrustedProxies()
  10910. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10911. return \Illuminate\Http\Request::getTrustedProxies();
  10912. }
  10913. /**
  10914. * Gets the set of trusted headers from trusted proxies.
  10915. *
  10916. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  10917. * @static
  10918. */
  10919. public static function getTrustedHeaderSet()
  10920. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10921. return \Illuminate\Http\Request::getTrustedHeaderSet();
  10922. }
  10923. /**
  10924. * Sets a list of trusted host patterns.
  10925. *
  10926. * You should only list the hosts you manage using regexs.
  10927. *
  10928. * @param array $hostPatterns A list of trusted host patterns
  10929. * @static
  10930. */
  10931. public static function setTrustedHosts($hostPatterns)
  10932. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10933. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  10934. }
  10935. /**
  10936. * Gets the list of trusted host patterns.
  10937. *
  10938. * @static
  10939. */
  10940. public static function getTrustedHosts()
  10941. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10942. return \Illuminate\Http\Request::getTrustedHosts();
  10943. }
  10944. /**
  10945. * Normalizes a query string.
  10946. *
  10947. * It builds a normalized query string, where keys/value pairs are alphabetized,
  10948. * have consistent escaping and unneeded delimiters are removed.
  10949. *
  10950. * @static
  10951. */
  10952. public static function normalizeQueryString($qs)
  10953. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10954. return \Illuminate\Http\Request::normalizeQueryString($qs);
  10955. }
  10956. /**
  10957. * Enables support for the _method request parameter to determine the intended HTTP method.
  10958. *
  10959. * Be warned that enabling this feature might lead to CSRF issues in your code.
  10960. * Check that you are using CSRF tokens when required.
  10961. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  10962. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  10963. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  10964. *
  10965. * The HTTP method can only be overridden when the real HTTP method is POST.
  10966. *
  10967. * @static
  10968. */
  10969. public static function enableHttpMethodParameterOverride()
  10970. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10971. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  10972. }
  10973. /**
  10974. * Checks whether support for the _method request parameter is enabled.
  10975. *
  10976. * @static
  10977. */
  10978. public static function getHttpMethodParameterOverride()
  10979. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10980. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  10981. }
  10982. /**
  10983. * Whether the request contains a Session which was started in one of the
  10984. * previous requests.
  10985. *
  10986. * @static
  10987. */
  10988. public static function hasPreviousSession()
  10989. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10990. /** @var \Illuminate\Http\Request $instance */
  10991. return $instance->hasPreviousSession();
  10992. }
  10993. /**
  10994. *
  10995. *
  10996. * @static
  10997. */
  10998. public static function setSession($session)
  10999. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11000. /** @var \Illuminate\Http\Request $instance */
  11001. return $instance->setSession($session);
  11002. }
  11003. /**
  11004. *
  11005. *
  11006. * @internal
  11007. * @param \Symfony\Component\HttpFoundation\callable(): SessionInterface $factory
  11008. * @static
  11009. */
  11010. public static function setSessionFactory($factory)
  11011. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11012. /** @var \Illuminate\Http\Request $instance */
  11013. return $instance->setSessionFactory($factory);
  11014. }
  11015. /**
  11016. * Returns the client IP addresses.
  11017. *
  11018. * In the returned array the most trusted IP address is first, and the
  11019. * least trusted one last. The "real" client IP address is the last one,
  11020. * but this is also the least trusted one. Trusted proxies are stripped.
  11021. *
  11022. * Use this method carefully; you should use getClientIp() instead.
  11023. *
  11024. * @see getClientIp()
  11025. * @static
  11026. */
  11027. public static function getClientIps()
  11028. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11029. /** @var \Illuminate\Http\Request $instance */
  11030. return $instance->getClientIps();
  11031. }
  11032. /**
  11033. * Returns the client IP address.
  11034. *
  11035. * This method can read the client IP address from the "X-Forwarded-For" header
  11036. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  11037. * header value is a comma+space separated list of IP addresses, the left-most
  11038. * being the original client, and each successive proxy that passed the request
  11039. * adding the IP address where it received the request from.
  11040. *
  11041. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  11042. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  11043. * argument of the Request::setTrustedProxies() method instead.
  11044. *
  11045. * @see getClientIps()
  11046. * @see https://wikipedia.org/wiki/X-Forwarded-For
  11047. * @static
  11048. */
  11049. public static function getClientIp()
  11050. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11051. /** @var \Illuminate\Http\Request $instance */
  11052. return $instance->getClientIp();
  11053. }
  11054. /**
  11055. * Returns current script name.
  11056. *
  11057. * @static
  11058. */
  11059. public static function getScriptName()
  11060. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11061. /** @var \Illuminate\Http\Request $instance */
  11062. return $instance->getScriptName();
  11063. }
  11064. /**
  11065. * Returns the path being requested relative to the executed script.
  11066. *
  11067. * The path info always starts with a /.
  11068. *
  11069. * Suppose this request is instantiated from /mysite on localhost:
  11070. *
  11071. * * http://localhost/mysite returns an empty string
  11072. * * http://localhost/mysite/about returns '/about'
  11073. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  11074. * * http://localhost/mysite/about?var=1 returns '/about'
  11075. *
  11076. * @return string The raw path (i.e. not urldecoded)
  11077. * @static
  11078. */
  11079. public static function getPathInfo()
  11080. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11081. /** @var \Illuminate\Http\Request $instance */
  11082. return $instance->getPathInfo();
  11083. }
  11084. /**
  11085. * Returns the root path from which this request is executed.
  11086. *
  11087. * Suppose that an index.php file instantiates this request object:
  11088. *
  11089. * * http://localhost/index.php returns an empty string
  11090. * * http://localhost/index.php/page returns an empty string
  11091. * * http://localhost/web/index.php returns '/web'
  11092. * * http://localhost/we%20b/index.php returns '/we%20b'
  11093. *
  11094. * @return string The raw path (i.e. not urldecoded)
  11095. * @static
  11096. */
  11097. public static function getBasePath()
  11098. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11099. /** @var \Illuminate\Http\Request $instance */
  11100. return $instance->getBasePath();
  11101. }
  11102. /**
  11103. * Returns the root URL from which this request is executed.
  11104. *
  11105. * The base URL never ends with a /.
  11106. *
  11107. * This is similar to getBasePath(), except that it also includes the
  11108. * script filename (e.g. index.php) if one exists.
  11109. *
  11110. * @return string The raw URL (i.e. not urldecoded)
  11111. * @static
  11112. */
  11113. public static function getBaseUrl()
  11114. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11115. /** @var \Illuminate\Http\Request $instance */
  11116. return $instance->getBaseUrl();
  11117. }
  11118. /**
  11119. * Gets the request's scheme.
  11120. *
  11121. * @static
  11122. */
  11123. public static function getScheme()
  11124. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11125. /** @var \Illuminate\Http\Request $instance */
  11126. return $instance->getScheme();
  11127. }
  11128. /**
  11129. * Returns the port on which the request is made.
  11130. *
  11131. * This method can read the client port from the "X-Forwarded-Port" header
  11132. * when trusted proxies were set via "setTrustedProxies()".
  11133. *
  11134. * The "X-Forwarded-Port" header must contain the client port.
  11135. *
  11136. * @return int|string|null Can be a string if fetched from the server bag
  11137. * @static
  11138. */
  11139. public static function getPort()
  11140. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11141. /** @var \Illuminate\Http\Request $instance */
  11142. return $instance->getPort();
  11143. }
  11144. /**
  11145. * Returns the user.
  11146. *
  11147. * @static
  11148. */
  11149. public static function getUser()
  11150. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11151. /** @var \Illuminate\Http\Request $instance */
  11152. return $instance->getUser();
  11153. }
  11154. /**
  11155. * Returns the password.
  11156. *
  11157. * @static
  11158. */
  11159. public static function getPassword()
  11160. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11161. /** @var \Illuminate\Http\Request $instance */
  11162. return $instance->getPassword();
  11163. }
  11164. /**
  11165. * Gets the user info.
  11166. *
  11167. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  11168. * @static
  11169. */
  11170. public static function getUserInfo()
  11171. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11172. /** @var \Illuminate\Http\Request $instance */
  11173. return $instance->getUserInfo();
  11174. }
  11175. /**
  11176. * Returns the HTTP host being requested.
  11177. *
  11178. * The port name will be appended to the host if it's non-standard.
  11179. *
  11180. * @static
  11181. */
  11182. public static function getHttpHost()
  11183. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11184. /** @var \Illuminate\Http\Request $instance */
  11185. return $instance->getHttpHost();
  11186. }
  11187. /**
  11188. * Returns the requested URI (path and query string).
  11189. *
  11190. * @return string The raw URI (i.e. not URI decoded)
  11191. * @static
  11192. */
  11193. public static function getRequestUri()
  11194. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11195. /** @var \Illuminate\Http\Request $instance */
  11196. return $instance->getRequestUri();
  11197. }
  11198. /**
  11199. * Gets the scheme and HTTP host.
  11200. *
  11201. * If the URL was called with basic authentication, the user
  11202. * and the password are not added to the generated string.
  11203. *
  11204. * @static
  11205. */
  11206. public static function getSchemeAndHttpHost()
  11207. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11208. /** @var \Illuminate\Http\Request $instance */
  11209. return $instance->getSchemeAndHttpHost();
  11210. }
  11211. /**
  11212. * Generates a normalized URI (URL) for the Request.
  11213. *
  11214. * @see getQueryString()
  11215. * @static
  11216. */
  11217. public static function getUri()
  11218. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11219. /** @var \Illuminate\Http\Request $instance */
  11220. return $instance->getUri();
  11221. }
  11222. /**
  11223. * Generates a normalized URI for the given path.
  11224. *
  11225. * @param string $path A path to use instead of the current one
  11226. * @static
  11227. */
  11228. public static function getUriForPath($path)
  11229. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11230. /** @var \Illuminate\Http\Request $instance */
  11231. return $instance->getUriForPath($path);
  11232. }
  11233. /**
  11234. * Returns the path as relative reference from the current Request path.
  11235. *
  11236. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  11237. * Both paths must be absolute and not contain relative parts.
  11238. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  11239. * Furthermore, they can be used to reduce the link size in documents.
  11240. *
  11241. * Example target paths, given a base path of "/a/b/c/d":
  11242. * - "/a/b/c/d" -> ""
  11243. * - "/a/b/c/" -> "./"
  11244. * - "/a/b/" -> "../"
  11245. * - "/a/b/c/other" -> "other"
  11246. * - "/a/x/y" -> "../../x/y"
  11247. *
  11248. * @static
  11249. */
  11250. public static function getRelativeUriForPath($path)
  11251. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11252. /** @var \Illuminate\Http\Request $instance */
  11253. return $instance->getRelativeUriForPath($path);
  11254. }
  11255. /**
  11256. * Generates the normalized query string for the Request.
  11257. *
  11258. * It builds a normalized query string, where keys/value pairs are alphabetized
  11259. * and have consistent escaping.
  11260. *
  11261. * @static
  11262. */
  11263. public static function getQueryString()
  11264. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11265. /** @var \Illuminate\Http\Request $instance */
  11266. return $instance->getQueryString();
  11267. }
  11268. /**
  11269. * Checks whether the request is secure or not.
  11270. *
  11271. * This method can read the client protocol from the "X-Forwarded-Proto" header
  11272. * when trusted proxies were set via "setTrustedProxies()".
  11273. *
  11274. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  11275. *
  11276. * @static
  11277. */
  11278. public static function isSecure()
  11279. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11280. /** @var \Illuminate\Http\Request $instance */
  11281. return $instance->isSecure();
  11282. }
  11283. /**
  11284. * Returns the host name.
  11285. *
  11286. * This method can read the client host name from the "X-Forwarded-Host" header
  11287. * when trusted proxies were set via "setTrustedProxies()".
  11288. *
  11289. * The "X-Forwarded-Host" header must contain the client host name.
  11290. *
  11291. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  11292. * @static
  11293. */
  11294. public static function getHost()
  11295. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11296. /** @var \Illuminate\Http\Request $instance */
  11297. return $instance->getHost();
  11298. }
  11299. /**
  11300. * Sets the request method.
  11301. *
  11302. * @static
  11303. */
  11304. public static function setMethod($method)
  11305. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11306. /** @var \Illuminate\Http\Request $instance */
  11307. return $instance->setMethod($method);
  11308. }
  11309. /**
  11310. * Gets the request "intended" method.
  11311. *
  11312. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  11313. * then it is used to determine the "real" intended HTTP method.
  11314. *
  11315. * The _method request parameter can also be used to determine the HTTP method,
  11316. * but only if enableHttpMethodParameterOverride() has been called.
  11317. *
  11318. * The method is always an uppercased string.
  11319. *
  11320. * @see getRealMethod()
  11321. * @static
  11322. */
  11323. public static function getMethod()
  11324. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11325. /** @var \Illuminate\Http\Request $instance */
  11326. return $instance->getMethod();
  11327. }
  11328. /**
  11329. * Gets the "real" request method.
  11330. *
  11331. * @see getMethod()
  11332. * @static
  11333. */
  11334. public static function getRealMethod()
  11335. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11336. /** @var \Illuminate\Http\Request $instance */
  11337. return $instance->getRealMethod();
  11338. }
  11339. /**
  11340. * Gets the mime type associated with the format.
  11341. *
  11342. * @static
  11343. */
  11344. public static function getMimeType($format)
  11345. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11346. /** @var \Illuminate\Http\Request $instance */
  11347. return $instance->getMimeType($format);
  11348. }
  11349. /**
  11350. * Gets the mime types associated with the format.
  11351. *
  11352. * @static
  11353. */
  11354. public static function getMimeTypes($format)
  11355. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11356. return \Illuminate\Http\Request::getMimeTypes($format);
  11357. }
  11358. /**
  11359. * Gets the format associated with the mime type.
  11360. *
  11361. * @static
  11362. */
  11363. public static function getFormat($mimeType)
  11364. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11365. /** @var \Illuminate\Http\Request $instance */
  11366. return $instance->getFormat($mimeType);
  11367. }
  11368. /**
  11369. * Associates a format with mime types.
  11370. *
  11371. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  11372. * @static
  11373. */
  11374. public static function setFormat($format, $mimeTypes)
  11375. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11376. /** @var \Illuminate\Http\Request $instance */
  11377. return $instance->setFormat($format, $mimeTypes);
  11378. }
  11379. /**
  11380. * Gets the request format.
  11381. *
  11382. * Here is the process to determine the format:
  11383. *
  11384. * * format defined by the user (with setRequestFormat())
  11385. * * _format request attribute
  11386. * * $default
  11387. *
  11388. * @see getPreferredFormat
  11389. * @static
  11390. */
  11391. public static function getRequestFormat($default = 'html')
  11392. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11393. /** @var \Illuminate\Http\Request $instance */
  11394. return $instance->getRequestFormat($default);
  11395. }
  11396. /**
  11397. * Sets the request format.
  11398. *
  11399. * @static
  11400. */
  11401. public static function setRequestFormat($format)
  11402. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11403. /** @var \Illuminate\Http\Request $instance */
  11404. return $instance->setRequestFormat($format);
  11405. }
  11406. /**
  11407. * Gets the format associated with the request.
  11408. *
  11409. * @static
  11410. */
  11411. public static function getContentType()
  11412. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11413. /** @var \Illuminate\Http\Request $instance */
  11414. return $instance->getContentType();
  11415. }
  11416. /**
  11417. * Sets the default locale.
  11418. *
  11419. * @static
  11420. */
  11421. public static function setDefaultLocale($locale)
  11422. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11423. /** @var \Illuminate\Http\Request $instance */
  11424. return $instance->setDefaultLocale($locale);
  11425. }
  11426. /**
  11427. * Get the default locale.
  11428. *
  11429. * @static
  11430. */
  11431. public static function getDefaultLocale()
  11432. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11433. /** @var \Illuminate\Http\Request $instance */
  11434. return $instance->getDefaultLocale();
  11435. }
  11436. /**
  11437. * Sets the locale.
  11438. *
  11439. * @static
  11440. */
  11441. public static function setLocale($locale)
  11442. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11443. /** @var \Illuminate\Http\Request $instance */
  11444. return $instance->setLocale($locale);
  11445. }
  11446. /**
  11447. * Get the locale.
  11448. *
  11449. * @static
  11450. */
  11451. public static function getLocale()
  11452. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11453. /** @var \Illuminate\Http\Request $instance */
  11454. return $instance->getLocale();
  11455. }
  11456. /**
  11457. * Checks if the request method is of specified type.
  11458. *
  11459. * @param string $method Uppercase request method (GET, POST etc)
  11460. * @static
  11461. */
  11462. public static function isMethod($method)
  11463. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11464. /** @var \Illuminate\Http\Request $instance */
  11465. return $instance->isMethod($method);
  11466. }
  11467. /**
  11468. * Checks whether or not the method is safe.
  11469. *
  11470. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  11471. * @static
  11472. */
  11473. public static function isMethodSafe()
  11474. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11475. /** @var \Illuminate\Http\Request $instance */
  11476. return $instance->isMethodSafe();
  11477. }
  11478. /**
  11479. * Checks whether or not the method is idempotent.
  11480. *
  11481. * @static
  11482. */
  11483. public static function isMethodIdempotent()
  11484. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11485. /** @var \Illuminate\Http\Request $instance */
  11486. return $instance->isMethodIdempotent();
  11487. }
  11488. /**
  11489. * Checks whether the method is cacheable or not.
  11490. *
  11491. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  11492. * @static
  11493. */
  11494. public static function isMethodCacheable()
  11495. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11496. /** @var \Illuminate\Http\Request $instance */
  11497. return $instance->isMethodCacheable();
  11498. }
  11499. /**
  11500. * Returns the protocol version.
  11501. *
  11502. * If the application is behind a proxy, the protocol version used in the
  11503. * requests between the client and the proxy and between the proxy and the
  11504. * server might be different. This returns the former (from the "Via" header)
  11505. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  11506. * the latter (from the "SERVER_PROTOCOL" server parameter).
  11507. *
  11508. * @static
  11509. */
  11510. public static function getProtocolVersion()
  11511. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11512. /** @var \Illuminate\Http\Request $instance */
  11513. return $instance->getProtocolVersion();
  11514. }
  11515. /**
  11516. * Returns the request body content.
  11517. *
  11518. * @param bool $asResource If true, a resource will be returned
  11519. * @return string|resource
  11520. * @static
  11521. */
  11522. public static function getContent($asResource = false)
  11523. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11524. /** @var \Illuminate\Http\Request $instance */
  11525. return $instance->getContent($asResource);
  11526. }
  11527. /**
  11528. * Gets the Etags.
  11529. *
  11530. * @static
  11531. */
  11532. public static function getETags()
  11533. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11534. /** @var \Illuminate\Http\Request $instance */
  11535. return $instance->getETags();
  11536. }
  11537. /**
  11538. *
  11539. *
  11540. * @static
  11541. */
  11542. public static function isNoCache()
  11543. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11544. /** @var \Illuminate\Http\Request $instance */
  11545. return $instance->isNoCache();
  11546. }
  11547. /**
  11548. * Gets the preferred format for the response by inspecting, in the following order:
  11549. * * the request format set using setRequestFormat;
  11550. * * the values of the Accept HTTP header.
  11551. *
  11552. * Note that if you use this method, you should send the "Vary: Accept" header
  11553. * in the response to prevent any issues with intermediary HTTP caches.
  11554. *
  11555. * @static
  11556. */
  11557. public static function getPreferredFormat($default = 'html')
  11558. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11559. /** @var \Illuminate\Http\Request $instance */
  11560. return $instance->getPreferredFormat($default);
  11561. }
  11562. /**
  11563. * Returns the preferred language.
  11564. *
  11565. * @param string[] $locales An array of ordered available locales
  11566. * @static
  11567. */
  11568. public static function getPreferredLanguage($locales = null)
  11569. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11570. /** @var \Illuminate\Http\Request $instance */
  11571. return $instance->getPreferredLanguage($locales);
  11572. }
  11573. /**
  11574. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  11575. *
  11576. * @static
  11577. */
  11578. public static function getLanguages()
  11579. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11580. /** @var \Illuminate\Http\Request $instance */
  11581. return $instance->getLanguages();
  11582. }
  11583. /**
  11584. * Gets a list of charsets acceptable by the client browser in preferable order.
  11585. *
  11586. * @static
  11587. */
  11588. public static function getCharsets()
  11589. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11590. /** @var \Illuminate\Http\Request $instance */
  11591. return $instance->getCharsets();
  11592. }
  11593. /**
  11594. * Gets a list of encodings acceptable by the client browser in preferable order.
  11595. *
  11596. * @static
  11597. */
  11598. public static function getEncodings()
  11599. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11600. /** @var \Illuminate\Http\Request $instance */
  11601. return $instance->getEncodings();
  11602. }
  11603. /**
  11604. * Gets a list of content types acceptable by the client browser in preferable order.
  11605. *
  11606. * @static
  11607. */
  11608. public static function getAcceptableContentTypes()
  11609. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11610. /** @var \Illuminate\Http\Request $instance */
  11611. return $instance->getAcceptableContentTypes();
  11612. }
  11613. /**
  11614. * Returns true if the request is an XMLHttpRequest.
  11615. *
  11616. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  11617. * It is known to work with common JavaScript frameworks:
  11618. *
  11619. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  11620. * @static
  11621. */
  11622. public static function isXmlHttpRequest()
  11623. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11624. /** @var \Illuminate\Http\Request $instance */
  11625. return $instance->isXmlHttpRequest();
  11626. }
  11627. /**
  11628. * Checks whether the client browser prefers safe content or not according to RFC8674.
  11629. *
  11630. * @see https://tools.ietf.org/html/rfc8674
  11631. * @static
  11632. */
  11633. public static function preferSafeContent()
  11634. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11635. /** @var \Illuminate\Http\Request $instance */
  11636. return $instance->preferSafeContent();
  11637. }
  11638. /**
  11639. * Indicates whether this request originated from a trusted proxy.
  11640. *
  11641. * This can be useful to determine whether or not to trust the
  11642. * contents of a proxy-specific header.
  11643. *
  11644. * @static
  11645. */
  11646. public static function isFromTrustedProxy()
  11647. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11648. /** @var \Illuminate\Http\Request $instance */
  11649. return $instance->isFromTrustedProxy();
  11650. }
  11651. /**
  11652. * Filter the given array of rules into an array of rules that are included in precognitive headers.
  11653. *
  11654. * @param array $rules
  11655. * @return array
  11656. * @static
  11657. */
  11658. public static function filterPrecognitiveRules($rules)
  11659. {
  11660. /** @var \Illuminate\Http\Request $instance */
  11661. return $instance->filterPrecognitiveRules($rules);
  11662. }
  11663. /**
  11664. * Determine if the request is attempting to be precognitive.
  11665. *
  11666. * @return bool
  11667. * @static
  11668. */
  11669. public static function isAttemptingPrecognition()
  11670. {
  11671. /** @var \Illuminate\Http\Request $instance */
  11672. return $instance->isAttemptingPrecognition();
  11673. }
  11674. /**
  11675. * Determine if the request is precognitive.
  11676. *
  11677. * @return bool
  11678. * @static
  11679. */
  11680. public static function isPrecognitive()
  11681. {
  11682. /** @var \Illuminate\Http\Request $instance */
  11683. return $instance->isPrecognitive();
  11684. }
  11685. /**
  11686. * Determine if the request is sending JSON.
  11687. *
  11688. * @return bool
  11689. * @static
  11690. */
  11691. public static function isJson()
  11692. {
  11693. /** @var \Illuminate\Http\Request $instance */
  11694. return $instance->isJson();
  11695. }
  11696. /**
  11697. * Determine if the current request probably expects a JSON response.
  11698. *
  11699. * @return bool
  11700. * @static
  11701. */
  11702. public static function expectsJson()
  11703. {
  11704. /** @var \Illuminate\Http\Request $instance */
  11705. return $instance->expectsJson();
  11706. }
  11707. /**
  11708. * Determine if the current request is asking for JSON.
  11709. *
  11710. * @return bool
  11711. * @static
  11712. */
  11713. public static function wantsJson()
  11714. {
  11715. /** @var \Illuminate\Http\Request $instance */
  11716. return $instance->wantsJson();
  11717. }
  11718. /**
  11719. * Determines whether the current requests accepts a given content type.
  11720. *
  11721. * @param string|array $contentTypes
  11722. * @return bool
  11723. * @static
  11724. */
  11725. public static function accepts($contentTypes)
  11726. {
  11727. /** @var \Illuminate\Http\Request $instance */
  11728. return $instance->accepts($contentTypes);
  11729. }
  11730. /**
  11731. * Return the most suitable content type from the given array based on content negotiation.
  11732. *
  11733. * @param string|array $contentTypes
  11734. * @return string|null
  11735. * @static
  11736. */
  11737. public static function prefers($contentTypes)
  11738. {
  11739. /** @var \Illuminate\Http\Request $instance */
  11740. return $instance->prefers($contentTypes);
  11741. }
  11742. /**
  11743. * Determine if the current request accepts any content type.
  11744. *
  11745. * @return bool
  11746. * @static
  11747. */
  11748. public static function acceptsAnyContentType()
  11749. {
  11750. /** @var \Illuminate\Http\Request $instance */
  11751. return $instance->acceptsAnyContentType();
  11752. }
  11753. /**
  11754. * Determines whether a request accepts JSON.
  11755. *
  11756. * @return bool
  11757. * @static
  11758. */
  11759. public static function acceptsJson()
  11760. {
  11761. /** @var \Illuminate\Http\Request $instance */
  11762. return $instance->acceptsJson();
  11763. }
  11764. /**
  11765. * Determines whether a request accepts HTML.
  11766. *
  11767. * @return bool
  11768. * @static
  11769. */
  11770. public static function acceptsHtml()
  11771. {
  11772. /** @var \Illuminate\Http\Request $instance */
  11773. return $instance->acceptsHtml();
  11774. }
  11775. /**
  11776. * Determine if the given content types match.
  11777. *
  11778. * @param string $actual
  11779. * @param string $type
  11780. * @return bool
  11781. * @static
  11782. */
  11783. public static function matchesType($actual, $type)
  11784. {
  11785. return \Illuminate\Http\Request::matchesType($actual, $type);
  11786. }
  11787. /**
  11788. * Get the data format expected in the response.
  11789. *
  11790. * @param string $default
  11791. * @return string
  11792. * @static
  11793. */
  11794. public static function format($default = 'html')
  11795. {
  11796. /** @var \Illuminate\Http\Request $instance */
  11797. return $instance->format($default);
  11798. }
  11799. /**
  11800. * Retrieve an old input item.
  11801. *
  11802. * @param string|null $key
  11803. * @param \Illuminate\Database\Eloquent\Model|string|array|null $default
  11804. * @return string|array|null
  11805. * @static
  11806. */
  11807. public static function old($key = null, $default = null)
  11808. {
  11809. /** @var \Illuminate\Http\Request $instance */
  11810. return $instance->old($key, $default);
  11811. }
  11812. /**
  11813. * Flash the input for the current request to the session.
  11814. *
  11815. * @return void
  11816. * @static
  11817. */
  11818. public static function flash()
  11819. {
  11820. /** @var \Illuminate\Http\Request $instance */
  11821. $instance->flash();
  11822. }
  11823. /**
  11824. * Flash only some of the input to the session.
  11825. *
  11826. * @param array|mixed $keys
  11827. * @return void
  11828. * @static
  11829. */
  11830. public static function flashOnly($keys)
  11831. {
  11832. /** @var \Illuminate\Http\Request $instance */
  11833. $instance->flashOnly($keys);
  11834. }
  11835. /**
  11836. * Flash only some of the input to the session.
  11837. *
  11838. * @param array|mixed $keys
  11839. * @return void
  11840. * @static
  11841. */
  11842. public static function flashExcept($keys)
  11843. {
  11844. /** @var \Illuminate\Http\Request $instance */
  11845. $instance->flashExcept($keys);
  11846. }
  11847. /**
  11848. * Flush all of the old input from the session.
  11849. *
  11850. * @return void
  11851. * @static
  11852. */
  11853. public static function flush()
  11854. {
  11855. /** @var \Illuminate\Http\Request $instance */
  11856. $instance->flush();
  11857. }
  11858. /**
  11859. * Retrieve a server variable from the request.
  11860. *
  11861. * @param string|null $key
  11862. * @param string|array|null $default
  11863. * @return string|array|null
  11864. * @static
  11865. */
  11866. public static function server($key = null, $default = null)
  11867. {
  11868. /** @var \Illuminate\Http\Request $instance */
  11869. return $instance->server($key, $default);
  11870. }
  11871. /**
  11872. * Determine if a header is set on the request.
  11873. *
  11874. * @param string $key
  11875. * @return bool
  11876. * @static
  11877. */
  11878. public static function hasHeader($key)
  11879. {
  11880. /** @var \Illuminate\Http\Request $instance */
  11881. return $instance->hasHeader($key);
  11882. }
  11883. /**
  11884. * Retrieve a header from the request.
  11885. *
  11886. * @param string|null $key
  11887. * @param string|array|null $default
  11888. * @return string|array|null
  11889. * @static
  11890. */
  11891. public static function header($key = null, $default = null)
  11892. {
  11893. /** @var \Illuminate\Http\Request $instance */
  11894. return $instance->header($key, $default);
  11895. }
  11896. /**
  11897. * Get the bearer token from the request headers.
  11898. *
  11899. * @return string|null
  11900. * @static
  11901. */
  11902. public static function bearerToken()
  11903. {
  11904. /** @var \Illuminate\Http\Request $instance */
  11905. return $instance->bearerToken();
  11906. }
  11907. /**
  11908. * Determine if the request contains a given input item key.
  11909. *
  11910. * @param string|array $key
  11911. * @return bool
  11912. * @static
  11913. */
  11914. public static function exists($key)
  11915. {
  11916. /** @var \Illuminate\Http\Request $instance */
  11917. return $instance->exists($key);
  11918. }
  11919. /**
  11920. * Determine if the request contains a given input item key.
  11921. *
  11922. * @param string|array $key
  11923. * @return bool
  11924. * @static
  11925. */
  11926. public static function has($key)
  11927. {
  11928. /** @var \Illuminate\Http\Request $instance */
  11929. return $instance->has($key);
  11930. }
  11931. /**
  11932. * Determine if the request contains any of the given inputs.
  11933. *
  11934. * @param string|array $keys
  11935. * @return bool
  11936. * @static
  11937. */
  11938. public static function hasAny($keys)
  11939. {
  11940. /** @var \Illuminate\Http\Request $instance */
  11941. return $instance->hasAny($keys);
  11942. }
  11943. /**
  11944. * Apply the callback if the request contains the given input item key.
  11945. *
  11946. * @param string $key
  11947. * @param callable $callback
  11948. * @param callable|null $default
  11949. * @return $this|mixed
  11950. * @static
  11951. */
  11952. public static function whenHas($key, $callback, $default = null)
  11953. {
  11954. /** @var \Illuminate\Http\Request $instance */
  11955. return $instance->whenHas($key, $callback, $default);
  11956. }
  11957. /**
  11958. * Determine if the request contains a non-empty value for an input item.
  11959. *
  11960. * @param string|array $key
  11961. * @return bool
  11962. * @static
  11963. */
  11964. public static function filled($key)
  11965. {
  11966. /** @var \Illuminate\Http\Request $instance */
  11967. return $instance->filled($key);
  11968. }
  11969. /**
  11970. * Determine if the request contains an empty value for an input item.
  11971. *
  11972. * @param string|array $key
  11973. * @return bool
  11974. * @static
  11975. */
  11976. public static function isNotFilled($key)
  11977. {
  11978. /** @var \Illuminate\Http\Request $instance */
  11979. return $instance->isNotFilled($key);
  11980. }
  11981. /**
  11982. * Determine if the request contains a non-empty value for any of the given inputs.
  11983. *
  11984. * @param string|array $keys
  11985. * @return bool
  11986. * @static
  11987. */
  11988. public static function anyFilled($keys)
  11989. {
  11990. /** @var \Illuminate\Http\Request $instance */
  11991. return $instance->anyFilled($keys);
  11992. }
  11993. /**
  11994. * Apply the callback if the request contains a non-empty value for the given input item key.
  11995. *
  11996. * @param string $key
  11997. * @param callable $callback
  11998. * @param callable|null $default
  11999. * @return $this|mixed
  12000. * @static
  12001. */
  12002. public static function whenFilled($key, $callback, $default = null)
  12003. {
  12004. /** @var \Illuminate\Http\Request $instance */
  12005. return $instance->whenFilled($key, $callback, $default);
  12006. }
  12007. /**
  12008. * Determine if the request is missing a given input item key.
  12009. *
  12010. * @param string|array $key
  12011. * @return bool
  12012. * @static
  12013. */
  12014. public static function missing($key)
  12015. {
  12016. /** @var \Illuminate\Http\Request $instance */
  12017. return $instance->missing($key);
  12018. }
  12019. /**
  12020. * Get the keys for all of the input and files.
  12021. *
  12022. * @return array
  12023. * @static
  12024. */
  12025. public static function keys()
  12026. {
  12027. /** @var \Illuminate\Http\Request $instance */
  12028. return $instance->keys();
  12029. }
  12030. /**
  12031. * Get all of the input and files for the request.
  12032. *
  12033. * @param array|mixed|null $keys
  12034. * @return array
  12035. * @static
  12036. */
  12037. public static function all($keys = null)
  12038. {
  12039. /** @var \Illuminate\Http\Request $instance */
  12040. return $instance->all($keys);
  12041. }
  12042. /**
  12043. * Retrieve an input item from the request.
  12044. *
  12045. * @param string|null $key
  12046. * @param mixed $default
  12047. * @return mixed
  12048. * @static
  12049. */
  12050. public static function input($key = null, $default = null)
  12051. {
  12052. /** @var \Illuminate\Http\Request $instance */
  12053. return $instance->input($key, $default);
  12054. }
  12055. /**
  12056. * Retrieve input from the request as a Stringable instance.
  12057. *
  12058. * @param string $key
  12059. * @param mixed $default
  12060. * @return \Illuminate\Support\Stringable
  12061. * @static
  12062. */
  12063. public static function str($key, $default = null)
  12064. {
  12065. /** @var \Illuminate\Http\Request $instance */
  12066. return $instance->str($key, $default);
  12067. }
  12068. /**
  12069. * Retrieve input from the request as a Stringable instance.
  12070. *
  12071. * @param string $key
  12072. * @param mixed $default
  12073. * @return \Illuminate\Support\Stringable
  12074. * @static
  12075. */
  12076. public static function string($key, $default = null)
  12077. {
  12078. /** @var \Illuminate\Http\Request $instance */
  12079. return $instance->string($key, $default);
  12080. }
  12081. /**
  12082. * Retrieve input as a boolean value.
  12083. *
  12084. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  12085. *
  12086. * @param string|null $key
  12087. * @param bool $default
  12088. * @return bool
  12089. * @static
  12090. */
  12091. public static function boolean($key = null, $default = false)
  12092. {
  12093. /** @var \Illuminate\Http\Request $instance */
  12094. return $instance->boolean($key, $default);
  12095. }
  12096. /**
  12097. * Retrieve input as an integer value.
  12098. *
  12099. * @param string $key
  12100. * @param int $default
  12101. * @return int
  12102. * @static
  12103. */
  12104. public static function integer($key, $default = 0)
  12105. {
  12106. /** @var \Illuminate\Http\Request $instance */
  12107. return $instance->integer($key, $default);
  12108. }
  12109. /**
  12110. * Retrieve input as a float value.
  12111. *
  12112. * @param string $key
  12113. * @param float $default
  12114. * @return float
  12115. * @static
  12116. */
  12117. public static function float($key, $default = 0.0)
  12118. {
  12119. /** @var \Illuminate\Http\Request $instance */
  12120. return $instance->float($key, $default);
  12121. }
  12122. /**
  12123. * Retrieve input from the request as a Carbon instance.
  12124. *
  12125. * @param string $key
  12126. * @param string|null $format
  12127. * @param string|null $tz
  12128. * @return \Illuminate\Support\Carbon|null
  12129. * @throws \Carbon\Exceptions\InvalidFormatException
  12130. * @static
  12131. */
  12132. public static function date($key, $format = null, $tz = null)
  12133. {
  12134. /** @var \Illuminate\Http\Request $instance */
  12135. return $instance->date($key, $format, $tz);
  12136. }
  12137. /**
  12138. * Retrieve input from the request as an enum.
  12139. *
  12140. * @template TEnum
  12141. * @param string $key
  12142. * @param \Illuminate\Http\class-string<TEnum> $enumClass
  12143. * @return \Illuminate\Http\TEnum|null
  12144. * @static
  12145. */
  12146. public static function enum($key, $enumClass)
  12147. {
  12148. /** @var \Illuminate\Http\Request $instance */
  12149. return $instance->enum($key, $enumClass);
  12150. }
  12151. /**
  12152. * Retrieve input from the request as a collection.
  12153. *
  12154. * @param array|string|null $key
  12155. * @return \Illuminate\Support\Collection
  12156. * @static
  12157. */
  12158. public static function collect($key = null)
  12159. {
  12160. /** @var \Illuminate\Http\Request $instance */
  12161. return $instance->collect($key);
  12162. }
  12163. /**
  12164. * Get a subset containing the provided keys with values from the input data.
  12165. *
  12166. * @param array|mixed $keys
  12167. * @return array
  12168. * @static
  12169. */
  12170. public static function only($keys)
  12171. {
  12172. /** @var \Illuminate\Http\Request $instance */
  12173. return $instance->only($keys);
  12174. }
  12175. /**
  12176. * Get all of the input except for a specified array of items.
  12177. *
  12178. * @param array|mixed $keys
  12179. * @return array
  12180. * @static
  12181. */
  12182. public static function except($keys)
  12183. {
  12184. /** @var \Illuminate\Http\Request $instance */
  12185. return $instance->except($keys);
  12186. }
  12187. /**
  12188. * Retrieve a query string item from the request.
  12189. *
  12190. * @param string|null $key
  12191. * @param string|array|null $default
  12192. * @return string|array|null
  12193. * @static
  12194. */
  12195. public static function query($key = null, $default = null)
  12196. {
  12197. /** @var \Illuminate\Http\Request $instance */
  12198. return $instance->query($key, $default);
  12199. }
  12200. /**
  12201. * Retrieve a request payload item from the request.
  12202. *
  12203. * @param string|null $key
  12204. * @param string|array|null $default
  12205. * @return string|array|null
  12206. * @static
  12207. */
  12208. public static function post($key = null, $default = null)
  12209. {
  12210. /** @var \Illuminate\Http\Request $instance */
  12211. return $instance->post($key, $default);
  12212. }
  12213. /**
  12214. * Determine if a cookie is set on the request.
  12215. *
  12216. * @param string $key
  12217. * @return bool
  12218. * @static
  12219. */
  12220. public static function hasCookie($key)
  12221. {
  12222. /** @var \Illuminate\Http\Request $instance */
  12223. return $instance->hasCookie($key);
  12224. }
  12225. /**
  12226. * Retrieve a cookie from the request.
  12227. *
  12228. * @param string|null $key
  12229. * @param string|array|null $default
  12230. * @return string|array|null
  12231. * @static
  12232. */
  12233. public static function cookie($key = null, $default = null)
  12234. {
  12235. /** @var \Illuminate\Http\Request $instance */
  12236. return $instance->cookie($key, $default);
  12237. }
  12238. /**
  12239. * Get an array of all of the files on the request.
  12240. *
  12241. * @return array
  12242. * @static
  12243. */
  12244. public static function allFiles()
  12245. {
  12246. /** @var \Illuminate\Http\Request $instance */
  12247. return $instance->allFiles();
  12248. }
  12249. /**
  12250. * Determine if the uploaded data contains a file.
  12251. *
  12252. * @param string $key
  12253. * @return bool
  12254. * @static
  12255. */
  12256. public static function hasFile($key)
  12257. {
  12258. /** @var \Illuminate\Http\Request $instance */
  12259. return $instance->hasFile($key);
  12260. }
  12261. /**
  12262. * Retrieve a file from the request.
  12263. *
  12264. * @param string|null $key
  12265. * @param mixed $default
  12266. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  12267. * @static
  12268. */
  12269. public static function file($key = null, $default = null)
  12270. {
  12271. /** @var \Illuminate\Http\Request $instance */
  12272. return $instance->file($key, $default);
  12273. }
  12274. /**
  12275. * Dump the request items and end the script.
  12276. *
  12277. * @param mixed $keys
  12278. * @return \Illuminate\Http\never
  12279. * @static
  12280. */
  12281. public static function dd(...$keys)
  12282. {
  12283. /** @var \Illuminate\Http\Request $instance */
  12284. return $instance->dd(...$keys);
  12285. }
  12286. /**
  12287. * Dump the items.
  12288. *
  12289. * @param mixed $keys
  12290. * @return \Illuminate\Http\Request
  12291. * @static
  12292. */
  12293. public static function dump($keys = [])
  12294. {
  12295. /** @var \Illuminate\Http\Request $instance */
  12296. return $instance->dump($keys);
  12297. }
  12298. /**
  12299. * Register a custom macro.
  12300. *
  12301. * @param string $name
  12302. * @param object|callable $macro
  12303. * @return void
  12304. * @static
  12305. */
  12306. public static function macro($name, $macro)
  12307. {
  12308. \Illuminate\Http\Request::macro($name, $macro);
  12309. }
  12310. /**
  12311. * Mix another object into the class.
  12312. *
  12313. * @param object $mixin
  12314. * @param bool $replace
  12315. * @return void
  12316. * @throws \ReflectionException
  12317. * @static
  12318. */
  12319. public static function mixin($mixin, $replace = true)
  12320. {
  12321. \Illuminate\Http\Request::mixin($mixin, $replace);
  12322. }
  12323. /**
  12324. * Checks if macro is registered.
  12325. *
  12326. * @param string $name
  12327. * @return bool
  12328. * @static
  12329. */
  12330. public static function hasMacro($name)
  12331. {
  12332. return \Illuminate\Http\Request::hasMacro($name);
  12333. }
  12334. /**
  12335. * Flush the existing macros.
  12336. *
  12337. * @return void
  12338. * @static
  12339. */
  12340. public static function flushMacros()
  12341. {
  12342. \Illuminate\Http\Request::flushMacros();
  12343. }
  12344. /**
  12345. *
  12346. *
  12347. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  12348. * @param array $rules
  12349. * @param mixed $params
  12350. * @static
  12351. */
  12352. public static function validate($rules, ...$params)
  12353. {
  12354. return \Illuminate\Http\Request::validate($rules, ...$params);
  12355. }
  12356. /**
  12357. *
  12358. *
  12359. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  12360. * @param string $errorBag
  12361. * @param array $rules
  12362. * @param mixed $params
  12363. * @static
  12364. */
  12365. public static function validateWithBag($errorBag, $rules, ...$params)
  12366. {
  12367. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  12368. }
  12369. /**
  12370. *
  12371. *
  12372. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12373. * @param mixed $absolute
  12374. * @static
  12375. */
  12376. public static function hasValidSignature($absolute = true)
  12377. {
  12378. return \Illuminate\Http\Request::hasValidSignature($absolute);
  12379. }
  12380. /**
  12381. *
  12382. *
  12383. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12384. * @static
  12385. */
  12386. public static function hasValidRelativeSignature()
  12387. {
  12388. return \Illuminate\Http\Request::hasValidRelativeSignature();
  12389. }
  12390. /**
  12391. *
  12392. *
  12393. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12394. * @param mixed $ignoreQuery
  12395. * @param mixed $absolute
  12396. * @static
  12397. */
  12398. public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  12399. {
  12400. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  12401. }
  12402. }
  12403. /**
  12404. *
  12405. *
  12406. * @see \Illuminate\Contracts\Routing\ResponseFactory
  12407. */
  12408. class Response {
  12409. /**
  12410. * Create a new response instance.
  12411. *
  12412. * @param mixed $content
  12413. * @param int $status
  12414. * @param array $headers
  12415. * @return \Illuminate\Http\Response
  12416. * @static
  12417. */
  12418. public static function make($content = '', $status = 200, $headers = [])
  12419. {
  12420. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12421. return $instance->make($content, $status, $headers);
  12422. }
  12423. /**
  12424. * Create a new "no content" response.
  12425. *
  12426. * @param int $status
  12427. * @param array $headers
  12428. * @return \Illuminate\Http\Response
  12429. * @static
  12430. */
  12431. public static function noContent($status = 204, $headers = [])
  12432. {
  12433. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12434. return $instance->noContent($status, $headers);
  12435. }
  12436. /**
  12437. * Create a new response for a given view.
  12438. *
  12439. * @param string|array $view
  12440. * @param array $data
  12441. * @param int $status
  12442. * @param array $headers
  12443. * @return \Illuminate\Http\Response
  12444. * @static
  12445. */
  12446. public static function view($view, $data = [], $status = 200, $headers = [])
  12447. {
  12448. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12449. return $instance->view($view, $data, $status, $headers);
  12450. }
  12451. /**
  12452. * Create a new JSON response instance.
  12453. *
  12454. * @param mixed $data
  12455. * @param int $status
  12456. * @param array $headers
  12457. * @param int $options
  12458. * @return \Illuminate\Http\JsonResponse
  12459. * @static
  12460. */
  12461. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  12462. {
  12463. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12464. return $instance->json($data, $status, $headers, $options);
  12465. }
  12466. /**
  12467. * Create a new JSONP response instance.
  12468. *
  12469. * @param string $callback
  12470. * @param mixed $data
  12471. * @param int $status
  12472. * @param array $headers
  12473. * @param int $options
  12474. * @return \Illuminate\Http\JsonResponse
  12475. * @static
  12476. */
  12477. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  12478. {
  12479. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12480. return $instance->jsonp($callback, $data, $status, $headers, $options);
  12481. }
  12482. /**
  12483. * Create a new streamed response instance.
  12484. *
  12485. * @param \Closure $callback
  12486. * @param int $status
  12487. * @param array $headers
  12488. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12489. * @static
  12490. */
  12491. public static function stream($callback, $status = 200, $headers = [])
  12492. {
  12493. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12494. return $instance->stream($callback, $status, $headers);
  12495. }
  12496. /**
  12497. * Create a new streamed response instance as a file download.
  12498. *
  12499. * @param \Closure $callback
  12500. * @param string|null $name
  12501. * @param array $headers
  12502. * @param string|null $disposition
  12503. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12504. * @static
  12505. */
  12506. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  12507. {
  12508. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12509. return $instance->streamDownload($callback, $name, $headers, $disposition);
  12510. }
  12511. /**
  12512. * Create a new file download response.
  12513. *
  12514. * @param \SplFileInfo|string $file
  12515. * @param string|null $name
  12516. * @param array $headers
  12517. * @param string|null $disposition
  12518. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  12519. * @static
  12520. */
  12521. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  12522. {
  12523. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12524. return $instance->download($file, $name, $headers, $disposition);
  12525. }
  12526. /**
  12527. * Return the raw contents of a binary file.
  12528. *
  12529. * @param \SplFileInfo|string $file
  12530. * @param array $headers
  12531. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  12532. * @static
  12533. */
  12534. public static function file($file, $headers = [])
  12535. {
  12536. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12537. return $instance->file($file, $headers);
  12538. }
  12539. /**
  12540. * Create a new redirect response to the given path.
  12541. *
  12542. * @param string $path
  12543. * @param int $status
  12544. * @param array $headers
  12545. * @param bool|null $secure
  12546. * @return \Illuminate\Http\RedirectResponse
  12547. * @static
  12548. */
  12549. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  12550. {
  12551. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12552. return $instance->redirectTo($path, $status, $headers, $secure);
  12553. }
  12554. /**
  12555. * Create a new redirect response to a named route.
  12556. *
  12557. * @param string $route
  12558. * @param mixed $parameters
  12559. * @param int $status
  12560. * @param array $headers
  12561. * @return \Illuminate\Http\RedirectResponse
  12562. * @static
  12563. */
  12564. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  12565. {
  12566. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12567. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  12568. }
  12569. /**
  12570. * Create a new redirect response to a controller action.
  12571. *
  12572. * @param string $action
  12573. * @param mixed $parameters
  12574. * @param int $status
  12575. * @param array $headers
  12576. * @return \Illuminate\Http\RedirectResponse
  12577. * @static
  12578. */
  12579. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  12580. {
  12581. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12582. return $instance->redirectToAction($action, $parameters, $status, $headers);
  12583. }
  12584. /**
  12585. * Create a new redirect response, while putting the current URL in the session.
  12586. *
  12587. * @param string $path
  12588. * @param int $status
  12589. * @param array $headers
  12590. * @param bool|null $secure
  12591. * @return \Illuminate\Http\RedirectResponse
  12592. * @static
  12593. */
  12594. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  12595. {
  12596. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12597. return $instance->redirectGuest($path, $status, $headers, $secure);
  12598. }
  12599. /**
  12600. * Create a new redirect response to the previously intended location.
  12601. *
  12602. * @param string $default
  12603. * @param int $status
  12604. * @param array $headers
  12605. * @param bool|null $secure
  12606. * @return \Illuminate\Http\RedirectResponse
  12607. * @static
  12608. */
  12609. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  12610. {
  12611. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12612. return $instance->redirectToIntended($default, $status, $headers, $secure);
  12613. }
  12614. /**
  12615. * Register a custom macro.
  12616. *
  12617. * @param string $name
  12618. * @param object|callable $macro
  12619. * @return void
  12620. * @static
  12621. */
  12622. public static function macro($name, $macro)
  12623. {
  12624. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  12625. }
  12626. /**
  12627. * Mix another object into the class.
  12628. *
  12629. * @param object $mixin
  12630. * @param bool $replace
  12631. * @return void
  12632. * @throws \ReflectionException
  12633. * @static
  12634. */
  12635. public static function mixin($mixin, $replace = true)
  12636. {
  12637. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  12638. }
  12639. /**
  12640. * Checks if macro is registered.
  12641. *
  12642. * @param string $name
  12643. * @return bool
  12644. * @static
  12645. */
  12646. public static function hasMacro($name)
  12647. {
  12648. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  12649. }
  12650. /**
  12651. * Flush the existing macros.
  12652. *
  12653. * @return void
  12654. * @static
  12655. */
  12656. public static function flushMacros()
  12657. {
  12658. \Illuminate\Routing\ResponseFactory::flushMacros();
  12659. }
  12660. }
  12661. /**
  12662. *
  12663. *
  12664. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  12665. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  12666. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  12667. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  12668. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  12669. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  12670. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  12671. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  12672. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  12673. * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
  12674. * @method static \Illuminate\Routing\RouteRegistrar withoutScopedBindings()
  12675. * @see \Illuminate\Routing\Router
  12676. */
  12677. class Route {
  12678. /**
  12679. * Register a new GET route with the router.
  12680. *
  12681. * @param string $uri
  12682. * @param array|string|callable|null $action
  12683. * @return \Illuminate\Routing\Route
  12684. * @static
  12685. */
  12686. public static function get($uri, $action = null)
  12687. {
  12688. /** @var \Illuminate\Routing\Router $instance */
  12689. return $instance->get($uri, $action);
  12690. }
  12691. /**
  12692. * Register a new POST route with the router.
  12693. *
  12694. * @param string $uri
  12695. * @param array|string|callable|null $action
  12696. * @return \Illuminate\Routing\Route
  12697. * @static
  12698. */
  12699. public static function post($uri, $action = null)
  12700. {
  12701. /** @var \Illuminate\Routing\Router $instance */
  12702. return $instance->post($uri, $action);
  12703. }
  12704. /**
  12705. * Register a new PUT route with the router.
  12706. *
  12707. * @param string $uri
  12708. * @param array|string|callable|null $action
  12709. * @return \Illuminate\Routing\Route
  12710. * @static
  12711. */
  12712. public static function put($uri, $action = null)
  12713. {
  12714. /** @var \Illuminate\Routing\Router $instance */
  12715. return $instance->put($uri, $action);
  12716. }
  12717. /**
  12718. * Register a new PATCH route with the router.
  12719. *
  12720. * @param string $uri
  12721. * @param array|string|callable|null $action
  12722. * @return \Illuminate\Routing\Route
  12723. * @static
  12724. */
  12725. public static function patch($uri, $action = null)
  12726. {
  12727. /** @var \Illuminate\Routing\Router $instance */
  12728. return $instance->patch($uri, $action);
  12729. }
  12730. /**
  12731. * Register a new DELETE route with the router.
  12732. *
  12733. * @param string $uri
  12734. * @param array|string|callable|null $action
  12735. * @return \Illuminate\Routing\Route
  12736. * @static
  12737. */
  12738. public static function delete($uri, $action = null)
  12739. {
  12740. /** @var \Illuminate\Routing\Router $instance */
  12741. return $instance->delete($uri, $action);
  12742. }
  12743. /**
  12744. * Register a new OPTIONS route with the router.
  12745. *
  12746. * @param string $uri
  12747. * @param array|string|callable|null $action
  12748. * @return \Illuminate\Routing\Route
  12749. * @static
  12750. */
  12751. public static function options($uri, $action = null)
  12752. {
  12753. /** @var \Illuminate\Routing\Router $instance */
  12754. return $instance->options($uri, $action);
  12755. }
  12756. /**
  12757. * Register a new route responding to all verbs.
  12758. *
  12759. * @param string $uri
  12760. * @param array|string|callable|null $action
  12761. * @return \Illuminate\Routing\Route
  12762. * @static
  12763. */
  12764. public static function any($uri, $action = null)
  12765. {
  12766. /** @var \Illuminate\Routing\Router $instance */
  12767. return $instance->any($uri, $action);
  12768. }
  12769. /**
  12770. * Register a new Fallback route with the router.
  12771. *
  12772. * @param array|string|callable|null $action
  12773. * @return \Illuminate\Routing\Route
  12774. * @static
  12775. */
  12776. public static function fallback($action)
  12777. {
  12778. /** @var \Illuminate\Routing\Router $instance */
  12779. return $instance->fallback($action);
  12780. }
  12781. /**
  12782. * Create a redirect from one URI to another.
  12783. *
  12784. * @param string $uri
  12785. * @param string $destination
  12786. * @param int $status
  12787. * @return \Illuminate\Routing\Route
  12788. * @static
  12789. */
  12790. public static function redirect($uri, $destination, $status = 302)
  12791. {
  12792. /** @var \Illuminate\Routing\Router $instance */
  12793. return $instance->redirect($uri, $destination, $status);
  12794. }
  12795. /**
  12796. * Create a permanent redirect from one URI to another.
  12797. *
  12798. * @param string $uri
  12799. * @param string $destination
  12800. * @return \Illuminate\Routing\Route
  12801. * @static
  12802. */
  12803. public static function permanentRedirect($uri, $destination)
  12804. {
  12805. /** @var \Illuminate\Routing\Router $instance */
  12806. return $instance->permanentRedirect($uri, $destination);
  12807. }
  12808. /**
  12809. * Register a new route that returns a view.
  12810. *
  12811. * @param string $uri
  12812. * @param string $view
  12813. * @param array $data
  12814. * @param int|array $status
  12815. * @param array $headers
  12816. * @return \Illuminate\Routing\Route
  12817. * @static
  12818. */
  12819. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  12820. {
  12821. /** @var \Illuminate\Routing\Router $instance */
  12822. return $instance->view($uri, $view, $data, $status, $headers);
  12823. }
  12824. /**
  12825. * Register a new route with the given verbs.
  12826. *
  12827. * @param array|string $methods
  12828. * @param string $uri
  12829. * @param array|string|callable|null $action
  12830. * @return \Illuminate\Routing\Route
  12831. * @static
  12832. */
  12833. public static function match($methods, $uri, $action = null)
  12834. {
  12835. /** @var \Illuminate\Routing\Router $instance */
  12836. return $instance->match($methods, $uri, $action);
  12837. }
  12838. /**
  12839. * Register an array of resource controllers.
  12840. *
  12841. * @param array $resources
  12842. * @param array $options
  12843. * @return void
  12844. * @static
  12845. */
  12846. public static function resources($resources, $options = [])
  12847. {
  12848. /** @var \Illuminate\Routing\Router $instance */
  12849. $instance->resources($resources, $options);
  12850. }
  12851. /**
  12852. * Route a resource to a controller.
  12853. *
  12854. * @param string $name
  12855. * @param string $controller
  12856. * @param array $options
  12857. * @return \Illuminate\Routing\PendingResourceRegistration
  12858. * @static
  12859. */
  12860. public static function resource($name, $controller, $options = [])
  12861. {
  12862. /** @var \Illuminate\Routing\Router $instance */
  12863. return $instance->resource($name, $controller, $options);
  12864. }
  12865. /**
  12866. * Register an array of API resource controllers.
  12867. *
  12868. * @param array $resources
  12869. * @param array $options
  12870. * @return void
  12871. * @static
  12872. */
  12873. public static function apiResources($resources, $options = [])
  12874. {
  12875. /** @var \Illuminate\Routing\Router $instance */
  12876. $instance->apiResources($resources, $options);
  12877. }
  12878. /**
  12879. * Route an API resource to a controller.
  12880. *
  12881. * @param string $name
  12882. * @param string $controller
  12883. * @param array $options
  12884. * @return \Illuminate\Routing\PendingResourceRegistration
  12885. * @static
  12886. */
  12887. public static function apiResource($name, $controller, $options = [])
  12888. {
  12889. /** @var \Illuminate\Routing\Router $instance */
  12890. return $instance->apiResource($name, $controller, $options);
  12891. }
  12892. /**
  12893. * Create a route group with shared attributes.
  12894. *
  12895. * @param array $attributes
  12896. * @param \Closure|array|string $routes
  12897. * @return \Illuminate\Routing\Router
  12898. * @static
  12899. */
  12900. public static function group($attributes, $routes)
  12901. {
  12902. /** @var \Illuminate\Routing\Router $instance */
  12903. return $instance->group($attributes, $routes);
  12904. }
  12905. /**
  12906. * Merge the given array with the last group stack.
  12907. *
  12908. * @param array $new
  12909. * @param bool $prependExistingPrefix
  12910. * @return array
  12911. * @static
  12912. */
  12913. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  12914. {
  12915. /** @var \Illuminate\Routing\Router $instance */
  12916. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  12917. }
  12918. /**
  12919. * Get the prefix from the last group on the stack.
  12920. *
  12921. * @return string
  12922. * @static
  12923. */
  12924. public static function getLastGroupPrefix()
  12925. {
  12926. /** @var \Illuminate\Routing\Router $instance */
  12927. return $instance->getLastGroupPrefix();
  12928. }
  12929. /**
  12930. * Add a route to the underlying route collection.
  12931. *
  12932. * @param array|string $methods
  12933. * @param string $uri
  12934. * @param array|string|callable|null $action
  12935. * @return \Illuminate\Routing\Route
  12936. * @static
  12937. */
  12938. public static function addRoute($methods, $uri, $action)
  12939. {
  12940. /** @var \Illuminate\Routing\Router $instance */
  12941. return $instance->addRoute($methods, $uri, $action);
  12942. }
  12943. /**
  12944. * Create a new Route object.
  12945. *
  12946. * @param array|string $methods
  12947. * @param string $uri
  12948. * @param mixed $action
  12949. * @return \Illuminate\Routing\Route
  12950. * @static
  12951. */
  12952. public static function newRoute($methods, $uri, $action)
  12953. {
  12954. /** @var \Illuminate\Routing\Router $instance */
  12955. return $instance->newRoute($methods, $uri, $action);
  12956. }
  12957. /**
  12958. * Return the response returned by the given route.
  12959. *
  12960. * @param string $name
  12961. * @return \Symfony\Component\HttpFoundation\Response
  12962. * @static
  12963. */
  12964. public static function respondWithRoute($name)
  12965. {
  12966. /** @var \Illuminate\Routing\Router $instance */
  12967. return $instance->respondWithRoute($name);
  12968. }
  12969. /**
  12970. * Dispatch the request to the application.
  12971. *
  12972. * @param \Illuminate\Http\Request $request
  12973. * @return \Symfony\Component\HttpFoundation\Response
  12974. * @static
  12975. */
  12976. public static function dispatch($request)
  12977. {
  12978. /** @var \Illuminate\Routing\Router $instance */
  12979. return $instance->dispatch($request);
  12980. }
  12981. /**
  12982. * Dispatch the request to a route and return the response.
  12983. *
  12984. * @param \Illuminate\Http\Request $request
  12985. * @return \Symfony\Component\HttpFoundation\Response
  12986. * @static
  12987. */
  12988. public static function dispatchToRoute($request)
  12989. {
  12990. /** @var \Illuminate\Routing\Router $instance */
  12991. return $instance->dispatchToRoute($request);
  12992. }
  12993. /**
  12994. * Gather the middleware for the given route with resolved class names.
  12995. *
  12996. * @param \Illuminate\Routing\Route $route
  12997. * @return array
  12998. * @static
  12999. */
  13000. public static function gatherRouteMiddleware($route)
  13001. {
  13002. /** @var \Illuminate\Routing\Router $instance */
  13003. return $instance->gatherRouteMiddleware($route);
  13004. }
  13005. /**
  13006. * Resolve a flat array of middleware classes from the provided array.
  13007. *
  13008. * @param array $middleware
  13009. * @param array $excluded
  13010. * @return array
  13011. * @static
  13012. */
  13013. public static function resolveMiddleware($middleware, $excluded = [])
  13014. {
  13015. /** @var \Illuminate\Routing\Router $instance */
  13016. return $instance->resolveMiddleware($middleware, $excluded);
  13017. }
  13018. /**
  13019. * Create a response instance from the given value.
  13020. *
  13021. * @param \Symfony\Component\HttpFoundation\Request $request
  13022. * @param mixed $response
  13023. * @return \Symfony\Component\HttpFoundation\Response
  13024. * @static
  13025. */
  13026. public static function prepareResponse($request, $response)
  13027. {
  13028. /** @var \Illuminate\Routing\Router $instance */
  13029. return $instance->prepareResponse($request, $response);
  13030. }
  13031. /**
  13032. * Static version of prepareResponse.
  13033. *
  13034. * @param \Symfony\Component\HttpFoundation\Request $request
  13035. * @param mixed $response
  13036. * @return \Symfony\Component\HttpFoundation\Response
  13037. * @static
  13038. */
  13039. public static function toResponse($request, $response)
  13040. {
  13041. return \Illuminate\Routing\Router::toResponse($request, $response);
  13042. }
  13043. /**
  13044. * Substitute the route bindings onto the route.
  13045. *
  13046. * @param \Illuminate\Routing\Route $route
  13047. * @return \Illuminate\Routing\Route
  13048. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  13049. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  13050. * @static
  13051. */
  13052. public static function substituteBindings($route)
  13053. {
  13054. /** @var \Illuminate\Routing\Router $instance */
  13055. return $instance->substituteBindings($route);
  13056. }
  13057. /**
  13058. * Substitute the implicit route bindings for the given route.
  13059. *
  13060. * @param \Illuminate\Routing\Route $route
  13061. * @return void
  13062. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  13063. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  13064. * @static
  13065. */
  13066. public static function substituteImplicitBindings($route)
  13067. {
  13068. /** @var \Illuminate\Routing\Router $instance */
  13069. $instance->substituteImplicitBindings($route);
  13070. }
  13071. /**
  13072. * Register a route matched event listener.
  13073. *
  13074. * @param string|callable $callback
  13075. * @return void
  13076. * @static
  13077. */
  13078. public static function matched($callback)
  13079. {
  13080. /** @var \Illuminate\Routing\Router $instance */
  13081. $instance->matched($callback);
  13082. }
  13083. /**
  13084. * Get all of the defined middleware short-hand names.
  13085. *
  13086. * @return array
  13087. * @static
  13088. */
  13089. public static function getMiddleware()
  13090. {
  13091. /** @var \Illuminate\Routing\Router $instance */
  13092. return $instance->getMiddleware();
  13093. }
  13094. /**
  13095. * Register a short-hand name for a middleware.
  13096. *
  13097. * @param string $name
  13098. * @param string $class
  13099. * @return \Illuminate\Routing\Router
  13100. * @static
  13101. */
  13102. public static function aliasMiddleware($name, $class)
  13103. {
  13104. /** @var \Illuminate\Routing\Router $instance */
  13105. return $instance->aliasMiddleware($name, $class);
  13106. }
  13107. /**
  13108. * Check if a middlewareGroup with the given name exists.
  13109. *
  13110. * @param string $name
  13111. * @return bool
  13112. * @static
  13113. */
  13114. public static function hasMiddlewareGroup($name)
  13115. {
  13116. /** @var \Illuminate\Routing\Router $instance */
  13117. return $instance->hasMiddlewareGroup($name);
  13118. }
  13119. /**
  13120. * Get all of the defined middleware groups.
  13121. *
  13122. * @return array
  13123. * @static
  13124. */
  13125. public static function getMiddlewareGroups()
  13126. {
  13127. /** @var \Illuminate\Routing\Router $instance */
  13128. return $instance->getMiddlewareGroups();
  13129. }
  13130. /**
  13131. * Register a group of middleware.
  13132. *
  13133. * @param string $name
  13134. * @param array $middleware
  13135. * @return \Illuminate\Routing\Router
  13136. * @static
  13137. */
  13138. public static function middlewareGroup($name, $middleware)
  13139. {
  13140. /** @var \Illuminate\Routing\Router $instance */
  13141. return $instance->middlewareGroup($name, $middleware);
  13142. }
  13143. /**
  13144. * Add a middleware to the beginning of a middleware group.
  13145. *
  13146. * If the middleware is already in the group, it will not be added again.
  13147. *
  13148. * @param string $group
  13149. * @param string $middleware
  13150. * @return \Illuminate\Routing\Router
  13151. * @static
  13152. */
  13153. public static function prependMiddlewareToGroup($group, $middleware)
  13154. {
  13155. /** @var \Illuminate\Routing\Router $instance */
  13156. return $instance->prependMiddlewareToGroup($group, $middleware);
  13157. }
  13158. /**
  13159. * Add a middleware to the end of a middleware group.
  13160. *
  13161. * If the middleware is already in the group, it will not be added again.
  13162. *
  13163. * @param string $group
  13164. * @param string $middleware
  13165. * @return \Illuminate\Routing\Router
  13166. * @static
  13167. */
  13168. public static function pushMiddlewareToGroup($group, $middleware)
  13169. {
  13170. /** @var \Illuminate\Routing\Router $instance */
  13171. return $instance->pushMiddlewareToGroup($group, $middleware);
  13172. }
  13173. /**
  13174. * Remove the given middleware from the specified group.
  13175. *
  13176. * @param string $group
  13177. * @param string $middleware
  13178. * @return \Illuminate\Routing\Router
  13179. * @static
  13180. */
  13181. public static function removeMiddlewareFromGroup($group, $middleware)
  13182. {
  13183. /** @var \Illuminate\Routing\Router $instance */
  13184. return $instance->removeMiddlewareFromGroup($group, $middleware);
  13185. }
  13186. /**
  13187. * Flush the router's middleware groups.
  13188. *
  13189. * @return \Illuminate\Routing\Router
  13190. * @static
  13191. */
  13192. public static function flushMiddlewareGroups()
  13193. {
  13194. /** @var \Illuminate\Routing\Router $instance */
  13195. return $instance->flushMiddlewareGroups();
  13196. }
  13197. /**
  13198. * Add a new route parameter binder.
  13199. *
  13200. * @param string $key
  13201. * @param string|callable $binder
  13202. * @return void
  13203. * @static
  13204. */
  13205. public static function bind($key, $binder)
  13206. {
  13207. /** @var \Illuminate\Routing\Router $instance */
  13208. $instance->bind($key, $binder);
  13209. }
  13210. /**
  13211. * Register a model binder for a wildcard.
  13212. *
  13213. * @param string $key
  13214. * @param string $class
  13215. * @param \Closure|null $callback
  13216. * @return void
  13217. * @static
  13218. */
  13219. public static function model($key, $class, $callback = null)
  13220. {
  13221. /** @var \Illuminate\Routing\Router $instance */
  13222. $instance->model($key, $class, $callback);
  13223. }
  13224. /**
  13225. * Get the binding callback for a given binding.
  13226. *
  13227. * @param string $key
  13228. * @return \Closure|null
  13229. * @static
  13230. */
  13231. public static function getBindingCallback($key)
  13232. {
  13233. /** @var \Illuminate\Routing\Router $instance */
  13234. return $instance->getBindingCallback($key);
  13235. }
  13236. /**
  13237. * Get the global "where" patterns.
  13238. *
  13239. * @return array
  13240. * @static
  13241. */
  13242. public static function getPatterns()
  13243. {
  13244. /** @var \Illuminate\Routing\Router $instance */
  13245. return $instance->getPatterns();
  13246. }
  13247. /**
  13248. * Set a global where pattern on all routes.
  13249. *
  13250. * @param string $key
  13251. * @param string $pattern
  13252. * @return void
  13253. * @static
  13254. */
  13255. public static function pattern($key, $pattern)
  13256. {
  13257. /** @var \Illuminate\Routing\Router $instance */
  13258. $instance->pattern($key, $pattern);
  13259. }
  13260. /**
  13261. * Set a group of global where patterns on all routes.
  13262. *
  13263. * @param array $patterns
  13264. * @return void
  13265. * @static
  13266. */
  13267. public static function patterns($patterns)
  13268. {
  13269. /** @var \Illuminate\Routing\Router $instance */
  13270. $instance->patterns($patterns);
  13271. }
  13272. /**
  13273. * Determine if the router currently has a group stack.
  13274. *
  13275. * @return bool
  13276. * @static
  13277. */
  13278. public static function hasGroupStack()
  13279. {
  13280. /** @var \Illuminate\Routing\Router $instance */
  13281. return $instance->hasGroupStack();
  13282. }
  13283. /**
  13284. * Get the current group stack for the router.
  13285. *
  13286. * @return array
  13287. * @static
  13288. */
  13289. public static function getGroupStack()
  13290. {
  13291. /** @var \Illuminate\Routing\Router $instance */
  13292. return $instance->getGroupStack();
  13293. }
  13294. /**
  13295. * Get a route parameter for the current route.
  13296. *
  13297. * @param string $key
  13298. * @param string|null $default
  13299. * @return mixed
  13300. * @static
  13301. */
  13302. public static function input($key, $default = null)
  13303. {
  13304. /** @var \Illuminate\Routing\Router $instance */
  13305. return $instance->input($key, $default);
  13306. }
  13307. /**
  13308. * Get the request currently being dispatched.
  13309. *
  13310. * @return \Illuminate\Http\Request
  13311. * @static
  13312. */
  13313. public static function getCurrentRequest()
  13314. {
  13315. /** @var \Illuminate\Routing\Router $instance */
  13316. return $instance->getCurrentRequest();
  13317. }
  13318. /**
  13319. * Get the currently dispatched route instance.
  13320. *
  13321. * @return \Illuminate\Routing\Route|null
  13322. * @static
  13323. */
  13324. public static function getCurrentRoute()
  13325. {
  13326. /** @var \Illuminate\Routing\Router $instance */
  13327. return $instance->getCurrentRoute();
  13328. }
  13329. /**
  13330. * Get the currently dispatched route instance.
  13331. *
  13332. * @return \Illuminate\Routing\Route|null
  13333. * @static
  13334. */
  13335. public static function current()
  13336. {
  13337. /** @var \Illuminate\Routing\Router $instance */
  13338. return $instance->current();
  13339. }
  13340. /**
  13341. * Check if a route with the given name exists.
  13342. *
  13343. * @param string|array $name
  13344. * @return bool
  13345. * @static
  13346. */
  13347. public static function has($name)
  13348. {
  13349. /** @var \Illuminate\Routing\Router $instance */
  13350. return $instance->has($name);
  13351. }
  13352. /**
  13353. * Get the current route name.
  13354. *
  13355. * @return string|null
  13356. * @static
  13357. */
  13358. public static function currentRouteName()
  13359. {
  13360. /** @var \Illuminate\Routing\Router $instance */
  13361. return $instance->currentRouteName();
  13362. }
  13363. /**
  13364. * Alias for the "currentRouteNamed" method.
  13365. *
  13366. * @param mixed $patterns
  13367. * @return bool
  13368. * @static
  13369. */
  13370. public static function is(...$patterns)
  13371. {
  13372. /** @var \Illuminate\Routing\Router $instance */
  13373. return $instance->is(...$patterns);
  13374. }
  13375. /**
  13376. * Determine if the current route matches a pattern.
  13377. *
  13378. * @param mixed $patterns
  13379. * @return bool
  13380. * @static
  13381. */
  13382. public static function currentRouteNamed(...$patterns)
  13383. {
  13384. /** @var \Illuminate\Routing\Router $instance */
  13385. return $instance->currentRouteNamed(...$patterns);
  13386. }
  13387. /**
  13388. * Get the current route action.
  13389. *
  13390. * @return string|null
  13391. * @static
  13392. */
  13393. public static function currentRouteAction()
  13394. {
  13395. /** @var \Illuminate\Routing\Router $instance */
  13396. return $instance->currentRouteAction();
  13397. }
  13398. /**
  13399. * Alias for the "currentRouteUses" method.
  13400. *
  13401. * @param array $patterns
  13402. * @return bool
  13403. * @static
  13404. */
  13405. public static function uses(...$patterns)
  13406. {
  13407. /** @var \Illuminate\Routing\Router $instance */
  13408. return $instance->uses(...$patterns);
  13409. }
  13410. /**
  13411. * Determine if the current route action matches a given action.
  13412. *
  13413. * @param string $action
  13414. * @return bool
  13415. * @static
  13416. */
  13417. public static function currentRouteUses($action)
  13418. {
  13419. /** @var \Illuminate\Routing\Router $instance */
  13420. return $instance->currentRouteUses($action);
  13421. }
  13422. /**
  13423. * Set the unmapped global resource parameters to singular.
  13424. *
  13425. * @param bool $singular
  13426. * @return void
  13427. * @static
  13428. */
  13429. public static function singularResourceParameters($singular = true)
  13430. {
  13431. /** @var \Illuminate\Routing\Router $instance */
  13432. $instance->singularResourceParameters($singular);
  13433. }
  13434. /**
  13435. * Set the global resource parameter mapping.
  13436. *
  13437. * @param array $parameters
  13438. * @return void
  13439. * @static
  13440. */
  13441. public static function resourceParameters($parameters = [])
  13442. {
  13443. /** @var \Illuminate\Routing\Router $instance */
  13444. $instance->resourceParameters($parameters);
  13445. }
  13446. /**
  13447. * Get or set the verbs used in the resource URIs.
  13448. *
  13449. * @param array $verbs
  13450. * @return array|null
  13451. * @static
  13452. */
  13453. public static function resourceVerbs($verbs = [])
  13454. {
  13455. /** @var \Illuminate\Routing\Router $instance */
  13456. return $instance->resourceVerbs($verbs);
  13457. }
  13458. /**
  13459. * Get the underlying route collection.
  13460. *
  13461. * @return \Illuminate\Routing\RouteCollectionInterface
  13462. * @static
  13463. */
  13464. public static function getRoutes()
  13465. {
  13466. /** @var \Illuminate\Routing\Router $instance */
  13467. return $instance->getRoutes();
  13468. }
  13469. /**
  13470. * Set the route collection instance.
  13471. *
  13472. * @param \Illuminate\Routing\RouteCollection $routes
  13473. * @return void
  13474. * @static
  13475. */
  13476. public static function setRoutes($routes)
  13477. {
  13478. /** @var \Illuminate\Routing\Router $instance */
  13479. $instance->setRoutes($routes);
  13480. }
  13481. /**
  13482. * Set the compiled route collection instance.
  13483. *
  13484. * @param array $routes
  13485. * @return void
  13486. * @static
  13487. */
  13488. public static function setCompiledRoutes($routes)
  13489. {
  13490. /** @var \Illuminate\Routing\Router $instance */
  13491. $instance->setCompiledRoutes($routes);
  13492. }
  13493. /**
  13494. * Remove any duplicate middleware from the given array.
  13495. *
  13496. * @param array $middleware
  13497. * @return array
  13498. * @static
  13499. */
  13500. public static function uniqueMiddleware($middleware)
  13501. {
  13502. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  13503. }
  13504. /**
  13505. * Set the container instance used by the router.
  13506. *
  13507. * @param \Illuminate\Container\Container $container
  13508. * @return \Illuminate\Routing\Router
  13509. * @static
  13510. */
  13511. public static function setContainer($container)
  13512. {
  13513. /** @var \Illuminate\Routing\Router $instance */
  13514. return $instance->setContainer($container);
  13515. }
  13516. /**
  13517. * Register a custom macro.
  13518. *
  13519. * @param string $name
  13520. * @param object|callable $macro
  13521. * @return void
  13522. * @static
  13523. */
  13524. public static function macro($name, $macro)
  13525. {
  13526. \Illuminate\Routing\Router::macro($name, $macro);
  13527. }
  13528. /**
  13529. * Mix another object into the class.
  13530. *
  13531. * @param object $mixin
  13532. * @param bool $replace
  13533. * @return void
  13534. * @throws \ReflectionException
  13535. * @static
  13536. */
  13537. public static function mixin($mixin, $replace = true)
  13538. {
  13539. \Illuminate\Routing\Router::mixin($mixin, $replace);
  13540. }
  13541. /**
  13542. * Checks if macro is registered.
  13543. *
  13544. * @param string $name
  13545. * @return bool
  13546. * @static
  13547. */
  13548. public static function hasMacro($name)
  13549. {
  13550. return \Illuminate\Routing\Router::hasMacro($name);
  13551. }
  13552. /**
  13553. * Flush the existing macros.
  13554. *
  13555. * @return void
  13556. * @static
  13557. */
  13558. public static function flushMacros()
  13559. {
  13560. \Illuminate\Routing\Router::flushMacros();
  13561. }
  13562. /**
  13563. * Dynamically handle calls to the class.
  13564. *
  13565. * @param string $method
  13566. * @param array $parameters
  13567. * @return mixed
  13568. * @throws \BadMethodCallException
  13569. * @static
  13570. */
  13571. public static function macroCall($method, $parameters)
  13572. {
  13573. /** @var \Illuminate\Routing\Router $instance */
  13574. return $instance->macroCall($method, $parameters);
  13575. }
  13576. /**
  13577. *
  13578. *
  13579. * @see \Spatie\Feed\FeedServiceProvider::registerRouteMacro()
  13580. * @param mixed $baseUrl
  13581. * @static
  13582. */
  13583. public static function feeds($baseUrl = '')
  13584. {
  13585. return \Illuminate\Routing\Router::feeds($baseUrl);
  13586. }
  13587. }
  13588. /**
  13589. *
  13590. *
  13591. * @see \Illuminate\Database\Schema\Builder
  13592. */
  13593. class Schema {
  13594. /**
  13595. * Create a database in the schema.
  13596. *
  13597. * @param string $name
  13598. * @return bool
  13599. * @static
  13600. */
  13601. public static function createDatabase($name)
  13602. {
  13603. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13604. return $instance->createDatabase($name);
  13605. }
  13606. /**
  13607. * Drop a database from the schema if the database exists.
  13608. *
  13609. * @param string $name
  13610. * @return bool
  13611. * @static
  13612. */
  13613. public static function dropDatabaseIfExists($name)
  13614. {
  13615. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13616. return $instance->dropDatabaseIfExists($name);
  13617. }
  13618. /**
  13619. * Determine if the given table exists.
  13620. *
  13621. * @param string $table
  13622. * @return bool
  13623. * @static
  13624. */
  13625. public static function hasTable($table)
  13626. {
  13627. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13628. return $instance->hasTable($table);
  13629. }
  13630. /**
  13631. * Get the column listing for a given table.
  13632. *
  13633. * @param string $table
  13634. * @return array
  13635. * @static
  13636. */
  13637. public static function getColumnListing($table)
  13638. {
  13639. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13640. return $instance->getColumnListing($table);
  13641. }
  13642. /**
  13643. * Drop all tables from the database.
  13644. *
  13645. * @return void
  13646. * @static
  13647. */
  13648. public static function dropAllTables()
  13649. {
  13650. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13651. $instance->dropAllTables();
  13652. }
  13653. /**
  13654. * Drop all views from the database.
  13655. *
  13656. * @return void
  13657. * @static
  13658. */
  13659. public static function dropAllViews()
  13660. {
  13661. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13662. $instance->dropAllViews();
  13663. }
  13664. /**
  13665. * Get all of the table names for the database.
  13666. *
  13667. * @return array
  13668. * @static
  13669. */
  13670. public static function getAllTables()
  13671. {
  13672. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13673. return $instance->getAllTables();
  13674. }
  13675. /**
  13676. * Get all of the view names for the database.
  13677. *
  13678. * @return array
  13679. * @static
  13680. */
  13681. public static function getAllViews()
  13682. {
  13683. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13684. return $instance->getAllViews();
  13685. }
  13686. /**
  13687. * Set the default string length for migrations.
  13688. *
  13689. * @param int $length
  13690. * @return void
  13691. * @static
  13692. */
  13693. public static function defaultStringLength($length)
  13694. { //Method inherited from \Illuminate\Database\Schema\Builder
  13695. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  13696. }
  13697. /**
  13698. * Set the default morph key type for migrations.
  13699. *
  13700. * @param string $type
  13701. * @return void
  13702. * @throws \InvalidArgumentException
  13703. * @static
  13704. */
  13705. public static function defaultMorphKeyType($type)
  13706. { //Method inherited from \Illuminate\Database\Schema\Builder
  13707. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  13708. }
  13709. /**
  13710. * Set the default morph key type for migrations to UUIDs.
  13711. *
  13712. * @return void
  13713. * @static
  13714. */
  13715. public static function morphUsingUuids()
  13716. { //Method inherited from \Illuminate\Database\Schema\Builder
  13717. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  13718. }
  13719. /**
  13720. * Set the default morph key type for migrations to ULIDs.
  13721. *
  13722. * @return void
  13723. * @static
  13724. */
  13725. public static function morphUsingUlids()
  13726. { //Method inherited from \Illuminate\Database\Schema\Builder
  13727. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUlids();
  13728. }
  13729. /**
  13730. * Determine if the given table has a given column.
  13731. *
  13732. * @param string $table
  13733. * @param string $column
  13734. * @return bool
  13735. * @static
  13736. */
  13737. public static function hasColumn($table, $column)
  13738. { //Method inherited from \Illuminate\Database\Schema\Builder
  13739. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13740. return $instance->hasColumn($table, $column);
  13741. }
  13742. /**
  13743. * Determine if the given table has given columns.
  13744. *
  13745. * @param string $table
  13746. * @param array $columns
  13747. * @return bool
  13748. * @static
  13749. */
  13750. public static function hasColumns($table, $columns)
  13751. { //Method inherited from \Illuminate\Database\Schema\Builder
  13752. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13753. return $instance->hasColumns($table, $columns);
  13754. }
  13755. /**
  13756. * Execute a table builder callback if the given table has a given column.
  13757. *
  13758. * @param string $table
  13759. * @param string $column
  13760. * @param \Closure $callback
  13761. * @return void
  13762. * @static
  13763. */
  13764. public static function whenTableHasColumn($table, $column, $callback)
  13765. { //Method inherited from \Illuminate\Database\Schema\Builder
  13766. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13767. $instance->whenTableHasColumn($table, $column, $callback);
  13768. }
  13769. /**
  13770. * Execute a table builder callback if the given table doesn't have a given column.
  13771. *
  13772. * @param string $table
  13773. * @param string $column
  13774. * @param \Closure $callback
  13775. * @return void
  13776. * @static
  13777. */
  13778. public static function whenTableDoesntHaveColumn($table, $column, $callback)
  13779. { //Method inherited from \Illuminate\Database\Schema\Builder
  13780. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13781. $instance->whenTableDoesntHaveColumn($table, $column, $callback);
  13782. }
  13783. /**
  13784. * Get the data type for the given column name.
  13785. *
  13786. * @param string $table
  13787. * @param string $column
  13788. * @return string
  13789. * @static
  13790. */
  13791. public static function getColumnType($table, $column)
  13792. { //Method inherited from \Illuminate\Database\Schema\Builder
  13793. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13794. return $instance->getColumnType($table, $column);
  13795. }
  13796. /**
  13797. * Modify a table on the schema.
  13798. *
  13799. * @param string $table
  13800. * @param \Closure $callback
  13801. * @return void
  13802. * @static
  13803. */
  13804. public static function table($table, $callback)
  13805. { //Method inherited from \Illuminate\Database\Schema\Builder
  13806. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13807. $instance->table($table, $callback);
  13808. }
  13809. /**
  13810. * Create a new table on the schema.
  13811. *
  13812. * @param string $table
  13813. * @param \Closure $callback
  13814. * @return void
  13815. * @static
  13816. */
  13817. public static function create($table, $callback)
  13818. { //Method inherited from \Illuminate\Database\Schema\Builder
  13819. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13820. $instance->create($table, $callback);
  13821. }
  13822. /**
  13823. * Drop a table from the schema.
  13824. *
  13825. * @param string $table
  13826. * @return void
  13827. * @static
  13828. */
  13829. public static function drop($table)
  13830. { //Method inherited from \Illuminate\Database\Schema\Builder
  13831. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13832. $instance->drop($table);
  13833. }
  13834. /**
  13835. * Drop a table from the schema if it exists.
  13836. *
  13837. * @param string $table
  13838. * @return void
  13839. * @static
  13840. */
  13841. public static function dropIfExists($table)
  13842. { //Method inherited from \Illuminate\Database\Schema\Builder
  13843. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13844. $instance->dropIfExists($table);
  13845. }
  13846. /**
  13847. * Drop columns from a table schema.
  13848. *
  13849. * @param string $table
  13850. * @param string|array $columns
  13851. * @return void
  13852. * @static
  13853. */
  13854. public static function dropColumns($table, $columns)
  13855. { //Method inherited from \Illuminate\Database\Schema\Builder
  13856. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13857. $instance->dropColumns($table, $columns);
  13858. }
  13859. /**
  13860. * Drop all types from the database.
  13861. *
  13862. * @return void
  13863. * @throws \LogicException
  13864. * @static
  13865. */
  13866. public static function dropAllTypes()
  13867. { //Method inherited from \Illuminate\Database\Schema\Builder
  13868. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13869. $instance->dropAllTypes();
  13870. }
  13871. /**
  13872. * Rename a table on the schema.
  13873. *
  13874. * @param string $from
  13875. * @param string $to
  13876. * @return void
  13877. * @static
  13878. */
  13879. public static function rename($from, $to)
  13880. { //Method inherited from \Illuminate\Database\Schema\Builder
  13881. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13882. $instance->rename($from, $to);
  13883. }
  13884. /**
  13885. * Enable foreign key constraints.
  13886. *
  13887. * @return bool
  13888. * @static
  13889. */
  13890. public static function enableForeignKeyConstraints()
  13891. { //Method inherited from \Illuminate\Database\Schema\Builder
  13892. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13893. return $instance->enableForeignKeyConstraints();
  13894. }
  13895. /**
  13896. * Disable foreign key constraints.
  13897. *
  13898. * @return bool
  13899. * @static
  13900. */
  13901. public static function disableForeignKeyConstraints()
  13902. { //Method inherited from \Illuminate\Database\Schema\Builder
  13903. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13904. return $instance->disableForeignKeyConstraints();
  13905. }
  13906. /**
  13907. * Get the database connection instance.
  13908. *
  13909. * @return \Illuminate\Database\Connection
  13910. * @static
  13911. */
  13912. public static function getConnection()
  13913. { //Method inherited from \Illuminate\Database\Schema\Builder
  13914. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13915. return $instance->getConnection();
  13916. }
  13917. /**
  13918. * Set the database connection instance.
  13919. *
  13920. * @param \Illuminate\Database\Connection $connection
  13921. * @return \Illuminate\Database\Schema\MySqlBuilder
  13922. * @static
  13923. */
  13924. public static function setConnection($connection)
  13925. { //Method inherited from \Illuminate\Database\Schema\Builder
  13926. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13927. return $instance->setConnection($connection);
  13928. }
  13929. /**
  13930. * Set the Schema Blueprint resolver callback.
  13931. *
  13932. * @param \Closure $resolver
  13933. * @return void
  13934. * @static
  13935. */
  13936. public static function blueprintResolver($resolver)
  13937. { //Method inherited from \Illuminate\Database\Schema\Builder
  13938. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13939. $instance->blueprintResolver($resolver);
  13940. }
  13941. }
  13942. /**
  13943. *
  13944. *
  13945. * @see \Illuminate\Session\SessionManager
  13946. * @see \Illuminate\Session\Store
  13947. */
  13948. class Session {
  13949. /**
  13950. * Determine if requests for the same session should wait for each to finish before executing.
  13951. *
  13952. * @return bool
  13953. * @static
  13954. */
  13955. public static function shouldBlock()
  13956. {
  13957. /** @var \Illuminate\Session\SessionManager $instance */
  13958. return $instance->shouldBlock();
  13959. }
  13960. /**
  13961. * Get the name of the cache store / driver that should be used to acquire session locks.
  13962. *
  13963. * @return string|null
  13964. * @static
  13965. */
  13966. public static function blockDriver()
  13967. {
  13968. /** @var \Illuminate\Session\SessionManager $instance */
  13969. return $instance->blockDriver();
  13970. }
  13971. /**
  13972. * Get the session configuration.
  13973. *
  13974. * @return array
  13975. * @static
  13976. */
  13977. public static function getSessionConfig()
  13978. {
  13979. /** @var \Illuminate\Session\SessionManager $instance */
  13980. return $instance->getSessionConfig();
  13981. }
  13982. /**
  13983. * Get the default session driver name.
  13984. *
  13985. * @return string
  13986. * @static
  13987. */
  13988. public static function getDefaultDriver()
  13989. {
  13990. /** @var \Illuminate\Session\SessionManager $instance */
  13991. return $instance->getDefaultDriver();
  13992. }
  13993. /**
  13994. * Set the default session driver name.
  13995. *
  13996. * @param string $name
  13997. * @return void
  13998. * @static
  13999. */
  14000. public static function setDefaultDriver($name)
  14001. {
  14002. /** @var \Illuminate\Session\SessionManager $instance */
  14003. $instance->setDefaultDriver($name);
  14004. }
  14005. /**
  14006. * Get a driver instance.
  14007. *
  14008. * @param string|null $driver
  14009. * @return mixed
  14010. * @throws \InvalidArgumentException
  14011. * @static
  14012. */
  14013. public static function driver($driver = null)
  14014. { //Method inherited from \Illuminate\Support\Manager
  14015. /** @var \Illuminate\Session\SessionManager $instance */
  14016. return $instance->driver($driver);
  14017. }
  14018. /**
  14019. * Register a custom driver creator Closure.
  14020. *
  14021. * @param string $driver
  14022. * @param \Closure $callback
  14023. * @return \Illuminate\Session\SessionManager
  14024. * @static
  14025. */
  14026. public static function extend($driver, $callback)
  14027. { //Method inherited from \Illuminate\Support\Manager
  14028. /** @var \Illuminate\Session\SessionManager $instance */
  14029. return $instance->extend($driver, $callback);
  14030. }
  14031. /**
  14032. * Get all of the created "drivers".
  14033. *
  14034. * @return array
  14035. * @static
  14036. */
  14037. public static function getDrivers()
  14038. { //Method inherited from \Illuminate\Support\Manager
  14039. /** @var \Illuminate\Session\SessionManager $instance */
  14040. return $instance->getDrivers();
  14041. }
  14042. /**
  14043. * Get the container instance used by the manager.
  14044. *
  14045. * @return \Illuminate\Contracts\Container\Container
  14046. * @static
  14047. */
  14048. public static function getContainer()
  14049. { //Method inherited from \Illuminate\Support\Manager
  14050. /** @var \Illuminate\Session\SessionManager $instance */
  14051. return $instance->getContainer();
  14052. }
  14053. /**
  14054. * Set the container instance used by the manager.
  14055. *
  14056. * @param \Illuminate\Contracts\Container\Container $container
  14057. * @return \Illuminate\Session\SessionManager
  14058. * @static
  14059. */
  14060. public static function setContainer($container)
  14061. { //Method inherited from \Illuminate\Support\Manager
  14062. /** @var \Illuminate\Session\SessionManager $instance */
  14063. return $instance->setContainer($container);
  14064. }
  14065. /**
  14066. * Forget all of the resolved driver instances.
  14067. *
  14068. * @return \Illuminate\Session\SessionManager
  14069. * @static
  14070. */
  14071. public static function forgetDrivers()
  14072. { //Method inherited from \Illuminate\Support\Manager
  14073. /** @var \Illuminate\Session\SessionManager $instance */
  14074. return $instance->forgetDrivers();
  14075. }
  14076. /**
  14077. * Start the session, reading the data from a handler.
  14078. *
  14079. * @return bool
  14080. * @static
  14081. */
  14082. public static function start()
  14083. {
  14084. /** @var \Illuminate\Session\Store $instance */
  14085. return $instance->start();
  14086. }
  14087. /**
  14088. * Save the session data to storage.
  14089. *
  14090. * @return void
  14091. * @static
  14092. */
  14093. public static function save()
  14094. {
  14095. /** @var \Illuminate\Session\Store $instance */
  14096. $instance->save();
  14097. }
  14098. /**
  14099. * Age the flash data for the session.
  14100. *
  14101. * @return void
  14102. * @static
  14103. */
  14104. public static function ageFlashData()
  14105. {
  14106. /** @var \Illuminate\Session\Store $instance */
  14107. $instance->ageFlashData();
  14108. }
  14109. /**
  14110. * Get all of the session data.
  14111. *
  14112. * @return array
  14113. * @static
  14114. */
  14115. public static function all()
  14116. {
  14117. /** @var \Illuminate\Session\Store $instance */
  14118. return $instance->all();
  14119. }
  14120. /**
  14121. * Get a subset of the session data.
  14122. *
  14123. * @param array $keys
  14124. * @return array
  14125. * @static
  14126. */
  14127. public static function only($keys)
  14128. {
  14129. /** @var \Illuminate\Session\Store $instance */
  14130. return $instance->only($keys);
  14131. }
  14132. /**
  14133. * Checks if a key exists.
  14134. *
  14135. * @param string|array $key
  14136. * @return bool
  14137. * @static
  14138. */
  14139. public static function exists($key)
  14140. {
  14141. /** @var \Illuminate\Session\Store $instance */
  14142. return $instance->exists($key);
  14143. }
  14144. /**
  14145. * Determine if the given key is missing from the session data.
  14146. *
  14147. * @param string|array $key
  14148. * @return bool
  14149. * @static
  14150. */
  14151. public static function missing($key)
  14152. {
  14153. /** @var \Illuminate\Session\Store $instance */
  14154. return $instance->missing($key);
  14155. }
  14156. /**
  14157. * Checks if a key is present and not null.
  14158. *
  14159. * @param string|array $key
  14160. * @return bool
  14161. * @static
  14162. */
  14163. public static function has($key)
  14164. {
  14165. /** @var \Illuminate\Session\Store $instance */
  14166. return $instance->has($key);
  14167. }
  14168. /**
  14169. * Get an item from the session.
  14170. *
  14171. * @param string $key
  14172. * @param mixed $default
  14173. * @return mixed
  14174. * @static
  14175. */
  14176. public static function get($key, $default = null)
  14177. {
  14178. /** @var \Illuminate\Session\Store $instance */
  14179. return $instance->get($key, $default);
  14180. }
  14181. /**
  14182. * Get the value of a given key and then forget it.
  14183. *
  14184. * @param string $key
  14185. * @param mixed $default
  14186. * @return mixed
  14187. * @static
  14188. */
  14189. public static function pull($key, $default = null)
  14190. {
  14191. /** @var \Illuminate\Session\Store $instance */
  14192. return $instance->pull($key, $default);
  14193. }
  14194. /**
  14195. * Determine if the session contains old input.
  14196. *
  14197. * @param string|null $key
  14198. * @return bool
  14199. * @static
  14200. */
  14201. public static function hasOldInput($key = null)
  14202. {
  14203. /** @var \Illuminate\Session\Store $instance */
  14204. return $instance->hasOldInput($key);
  14205. }
  14206. /**
  14207. * Get the requested item from the flashed input array.
  14208. *
  14209. * @param string|null $key
  14210. * @param mixed $default
  14211. * @return mixed
  14212. * @static
  14213. */
  14214. public static function getOldInput($key = null, $default = null)
  14215. {
  14216. /** @var \Illuminate\Session\Store $instance */
  14217. return $instance->getOldInput($key, $default);
  14218. }
  14219. /**
  14220. * Replace the given session attributes entirely.
  14221. *
  14222. * @param array $attributes
  14223. * @return void
  14224. * @static
  14225. */
  14226. public static function replace($attributes)
  14227. {
  14228. /** @var \Illuminate\Session\Store $instance */
  14229. $instance->replace($attributes);
  14230. }
  14231. /**
  14232. * Put a key / value pair or array of key / value pairs in the session.
  14233. *
  14234. * @param string|array $key
  14235. * @param mixed $value
  14236. * @return void
  14237. * @static
  14238. */
  14239. public static function put($key, $value = null)
  14240. {
  14241. /** @var \Illuminate\Session\Store $instance */
  14242. $instance->put($key, $value);
  14243. }
  14244. /**
  14245. * Get an item from the session, or store the default value.
  14246. *
  14247. * @param string $key
  14248. * @param \Closure $callback
  14249. * @return mixed
  14250. * @static
  14251. */
  14252. public static function remember($key, $callback)
  14253. {
  14254. /** @var \Illuminate\Session\Store $instance */
  14255. return $instance->remember($key, $callback);
  14256. }
  14257. /**
  14258. * Push a value onto a session array.
  14259. *
  14260. * @param string $key
  14261. * @param mixed $value
  14262. * @return void
  14263. * @static
  14264. */
  14265. public static function push($key, $value)
  14266. {
  14267. /** @var \Illuminate\Session\Store $instance */
  14268. $instance->push($key, $value);
  14269. }
  14270. /**
  14271. * Increment the value of an item in the session.
  14272. *
  14273. * @param string $key
  14274. * @param int $amount
  14275. * @return mixed
  14276. * @static
  14277. */
  14278. public static function increment($key, $amount = 1)
  14279. {
  14280. /** @var \Illuminate\Session\Store $instance */
  14281. return $instance->increment($key, $amount);
  14282. }
  14283. /**
  14284. * Decrement the value of an item in the session.
  14285. *
  14286. * @param string $key
  14287. * @param int $amount
  14288. * @return int
  14289. * @static
  14290. */
  14291. public static function decrement($key, $amount = 1)
  14292. {
  14293. /** @var \Illuminate\Session\Store $instance */
  14294. return $instance->decrement($key, $amount);
  14295. }
  14296. /**
  14297. * Flash a key / value pair to the session.
  14298. *
  14299. * @param string $key
  14300. * @param mixed $value
  14301. * @return void
  14302. * @static
  14303. */
  14304. public static function flash($key, $value = true)
  14305. {
  14306. /** @var \Illuminate\Session\Store $instance */
  14307. $instance->flash($key, $value);
  14308. }
  14309. /**
  14310. * Flash a key / value pair to the session for immediate use.
  14311. *
  14312. * @param string $key
  14313. * @param mixed $value
  14314. * @return void
  14315. * @static
  14316. */
  14317. public static function now($key, $value)
  14318. {
  14319. /** @var \Illuminate\Session\Store $instance */
  14320. $instance->now($key, $value);
  14321. }
  14322. /**
  14323. * Reflash all of the session flash data.
  14324. *
  14325. * @return void
  14326. * @static
  14327. */
  14328. public static function reflash()
  14329. {
  14330. /** @var \Illuminate\Session\Store $instance */
  14331. $instance->reflash();
  14332. }
  14333. /**
  14334. * Reflash a subset of the current flash data.
  14335. *
  14336. * @param array|mixed $keys
  14337. * @return void
  14338. * @static
  14339. */
  14340. public static function keep($keys = null)
  14341. {
  14342. /** @var \Illuminate\Session\Store $instance */
  14343. $instance->keep($keys);
  14344. }
  14345. /**
  14346. * Flash an input array to the session.
  14347. *
  14348. * @param array $value
  14349. * @return void
  14350. * @static
  14351. */
  14352. public static function flashInput($value)
  14353. {
  14354. /** @var \Illuminate\Session\Store $instance */
  14355. $instance->flashInput($value);
  14356. }
  14357. /**
  14358. * Remove an item from the session, returning its value.
  14359. *
  14360. * @param string $key
  14361. * @return mixed
  14362. * @static
  14363. */
  14364. public static function remove($key)
  14365. {
  14366. /** @var \Illuminate\Session\Store $instance */
  14367. return $instance->remove($key);
  14368. }
  14369. /**
  14370. * Remove one or many items from the session.
  14371. *
  14372. * @param string|array $keys
  14373. * @return void
  14374. * @static
  14375. */
  14376. public static function forget($keys)
  14377. {
  14378. /** @var \Illuminate\Session\Store $instance */
  14379. $instance->forget($keys);
  14380. }
  14381. /**
  14382. * Remove all of the items from the session.
  14383. *
  14384. * @return void
  14385. * @static
  14386. */
  14387. public static function flush()
  14388. {
  14389. /** @var \Illuminate\Session\Store $instance */
  14390. $instance->flush();
  14391. }
  14392. /**
  14393. * Flush the session data and regenerate the ID.
  14394. *
  14395. * @return bool
  14396. * @static
  14397. */
  14398. public static function invalidate()
  14399. {
  14400. /** @var \Illuminate\Session\Store $instance */
  14401. return $instance->invalidate();
  14402. }
  14403. /**
  14404. * Generate a new session identifier.
  14405. *
  14406. * @param bool $destroy
  14407. * @return bool
  14408. * @static
  14409. */
  14410. public static function regenerate($destroy = false)
  14411. {
  14412. /** @var \Illuminate\Session\Store $instance */
  14413. return $instance->regenerate($destroy);
  14414. }
  14415. /**
  14416. * Generate a new session ID for the session.
  14417. *
  14418. * @param bool $destroy
  14419. * @return bool
  14420. * @static
  14421. */
  14422. public static function migrate($destroy = false)
  14423. {
  14424. /** @var \Illuminate\Session\Store $instance */
  14425. return $instance->migrate($destroy);
  14426. }
  14427. /**
  14428. * Determine if the session has been started.
  14429. *
  14430. * @return bool
  14431. * @static
  14432. */
  14433. public static function isStarted()
  14434. {
  14435. /** @var \Illuminate\Session\Store $instance */
  14436. return $instance->isStarted();
  14437. }
  14438. /**
  14439. * Get the name of the session.
  14440. *
  14441. * @return string
  14442. * @static
  14443. */
  14444. public static function getName()
  14445. {
  14446. /** @var \Illuminate\Session\Store $instance */
  14447. return $instance->getName();
  14448. }
  14449. /**
  14450. * Set the name of the session.
  14451. *
  14452. * @param string $name
  14453. * @return void
  14454. * @static
  14455. */
  14456. public static function setName($name)
  14457. {
  14458. /** @var \Illuminate\Session\Store $instance */
  14459. $instance->setName($name);
  14460. }
  14461. /**
  14462. * Get the current session ID.
  14463. *
  14464. * @return string
  14465. * @static
  14466. */
  14467. public static function getId()
  14468. {
  14469. /** @var \Illuminate\Session\Store $instance */
  14470. return $instance->getId();
  14471. }
  14472. /**
  14473. * Set the session ID.
  14474. *
  14475. * @param string $id
  14476. * @return void
  14477. * @static
  14478. */
  14479. public static function setId($id)
  14480. {
  14481. /** @var \Illuminate\Session\Store $instance */
  14482. $instance->setId($id);
  14483. }
  14484. /**
  14485. * Determine if this is a valid session ID.
  14486. *
  14487. * @param string $id
  14488. * @return bool
  14489. * @static
  14490. */
  14491. public static function isValidId($id)
  14492. {
  14493. /** @var \Illuminate\Session\Store $instance */
  14494. return $instance->isValidId($id);
  14495. }
  14496. /**
  14497. * Set the existence of the session on the handler if applicable.
  14498. *
  14499. * @param bool $value
  14500. * @return void
  14501. * @static
  14502. */
  14503. public static function setExists($value)
  14504. {
  14505. /** @var \Illuminate\Session\Store $instance */
  14506. $instance->setExists($value);
  14507. }
  14508. /**
  14509. * Get the CSRF token value.
  14510. *
  14511. * @return string
  14512. * @static
  14513. */
  14514. public static function token()
  14515. {
  14516. /** @var \Illuminate\Session\Store $instance */
  14517. return $instance->token();
  14518. }
  14519. /**
  14520. * Regenerate the CSRF token value.
  14521. *
  14522. * @return void
  14523. * @static
  14524. */
  14525. public static function regenerateToken()
  14526. {
  14527. /** @var \Illuminate\Session\Store $instance */
  14528. $instance->regenerateToken();
  14529. }
  14530. /**
  14531. * Get the previous URL from the session.
  14532. *
  14533. * @return string|null
  14534. * @static
  14535. */
  14536. public static function previousUrl()
  14537. {
  14538. /** @var \Illuminate\Session\Store $instance */
  14539. return $instance->previousUrl();
  14540. }
  14541. /**
  14542. * Set the "previous" URL in the session.
  14543. *
  14544. * @param string $url
  14545. * @return void
  14546. * @static
  14547. */
  14548. public static function setPreviousUrl($url)
  14549. {
  14550. /** @var \Illuminate\Session\Store $instance */
  14551. $instance->setPreviousUrl($url);
  14552. }
  14553. /**
  14554. * Specify that the user has confirmed their password.
  14555. *
  14556. * @return void
  14557. * @static
  14558. */
  14559. public static function passwordConfirmed()
  14560. {
  14561. /** @var \Illuminate\Session\Store $instance */
  14562. $instance->passwordConfirmed();
  14563. }
  14564. /**
  14565. * Get the underlying session handler implementation.
  14566. *
  14567. * @return \SessionHandlerInterface
  14568. * @static
  14569. */
  14570. public static function getHandler()
  14571. {
  14572. /** @var \Illuminate\Session\Store $instance */
  14573. return $instance->getHandler();
  14574. }
  14575. /**
  14576. * Set the underlying session handler implementation.
  14577. *
  14578. * @param \SessionHandlerInterface $handler
  14579. * @return void
  14580. * @static
  14581. */
  14582. public static function setHandler($handler)
  14583. {
  14584. /** @var \Illuminate\Session\Store $instance */
  14585. $instance->setHandler($handler);
  14586. }
  14587. /**
  14588. * Determine if the session handler needs a request.
  14589. *
  14590. * @return bool
  14591. * @static
  14592. */
  14593. public static function handlerNeedsRequest()
  14594. {
  14595. /** @var \Illuminate\Session\Store $instance */
  14596. return $instance->handlerNeedsRequest();
  14597. }
  14598. /**
  14599. * Set the request on the handler instance.
  14600. *
  14601. * @param \Illuminate\Http\Request $request
  14602. * @return void
  14603. * @static
  14604. */
  14605. public static function setRequestOnHandler($request)
  14606. {
  14607. /** @var \Illuminate\Session\Store $instance */
  14608. $instance->setRequestOnHandler($request);
  14609. }
  14610. }
  14611. /**
  14612. *
  14613. *
  14614. * @see \Illuminate\Filesystem\FilesystemManager
  14615. */
  14616. class Storage {
  14617. /**
  14618. * Get a filesystem instance.
  14619. *
  14620. * @param string|null $name
  14621. * @return \Illuminate\Filesystem\FilesystemAdapter
  14622. * @static
  14623. */
  14624. public static function drive($name = null)
  14625. {
  14626. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14627. return $instance->drive($name);
  14628. }
  14629. /**
  14630. * Get a filesystem instance.
  14631. *
  14632. * @param string|null $name
  14633. * @return \Illuminate\Filesystem\FilesystemAdapter
  14634. * @static
  14635. */
  14636. public static function disk($name = null)
  14637. {
  14638. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14639. return $instance->disk($name);
  14640. }
  14641. /**
  14642. * Get a default cloud filesystem instance.
  14643. *
  14644. * @return \Illuminate\Filesystem\FilesystemAdapter
  14645. * @static
  14646. */
  14647. public static function cloud()
  14648. {
  14649. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14650. return $instance->cloud();
  14651. }
  14652. /**
  14653. * Build an on-demand disk.
  14654. *
  14655. * @param string|array $config
  14656. * @return \Illuminate\Filesystem\FilesystemAdapter
  14657. * @static
  14658. */
  14659. public static function build($config)
  14660. {
  14661. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14662. return $instance->build($config);
  14663. }
  14664. /**
  14665. * Create an instance of the local driver.
  14666. *
  14667. * @param array $config
  14668. * @return \Illuminate\Filesystem\FilesystemAdapter
  14669. * @static
  14670. */
  14671. public static function createLocalDriver($config)
  14672. {
  14673. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14674. return $instance->createLocalDriver($config);
  14675. }
  14676. /**
  14677. * Create an instance of the ftp driver.
  14678. *
  14679. * @param array $config
  14680. * @return \Illuminate\Filesystem\FilesystemAdapter
  14681. * @static
  14682. */
  14683. public static function createFtpDriver($config)
  14684. {
  14685. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14686. return $instance->createFtpDriver($config);
  14687. }
  14688. /**
  14689. * Create an instance of the sftp driver.
  14690. *
  14691. * @param array $config
  14692. * @return \Illuminate\Filesystem\FilesystemAdapter
  14693. * @static
  14694. */
  14695. public static function createSftpDriver($config)
  14696. {
  14697. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14698. return $instance->createSftpDriver($config);
  14699. }
  14700. /**
  14701. * Create an instance of the Amazon S3 driver.
  14702. *
  14703. * @param array $config
  14704. * @return \Illuminate\Contracts\Filesystem\Cloud
  14705. * @static
  14706. */
  14707. public static function createS3Driver($config)
  14708. {
  14709. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14710. return $instance->createS3Driver($config);
  14711. }
  14712. /**
  14713. * Create a scoped driver.
  14714. *
  14715. * @param array $config
  14716. * @return \Illuminate\Filesystem\FilesystemAdapter
  14717. * @static
  14718. */
  14719. public static function createScopedDriver($config)
  14720. {
  14721. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14722. return $instance->createScopedDriver($config);
  14723. }
  14724. /**
  14725. * Set the given disk instance.
  14726. *
  14727. * @param string $name
  14728. * @param mixed $disk
  14729. * @return \Illuminate\Filesystem\FilesystemManager
  14730. * @static
  14731. */
  14732. public static function set($name, $disk)
  14733. {
  14734. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14735. return $instance->set($name, $disk);
  14736. }
  14737. /**
  14738. * Get the default driver name.
  14739. *
  14740. * @return string
  14741. * @static
  14742. */
  14743. public static function getDefaultDriver()
  14744. {
  14745. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14746. return $instance->getDefaultDriver();
  14747. }
  14748. /**
  14749. * Get the default cloud driver name.
  14750. *
  14751. * @return string
  14752. * @static
  14753. */
  14754. public static function getDefaultCloudDriver()
  14755. {
  14756. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14757. return $instance->getDefaultCloudDriver();
  14758. }
  14759. /**
  14760. * Unset the given disk instances.
  14761. *
  14762. * @param array|string $disk
  14763. * @return \Illuminate\Filesystem\FilesystemManager
  14764. * @static
  14765. */
  14766. public static function forgetDisk($disk)
  14767. {
  14768. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14769. return $instance->forgetDisk($disk);
  14770. }
  14771. /**
  14772. * Disconnect the given disk and remove from local cache.
  14773. *
  14774. * @param string|null $name
  14775. * @return void
  14776. * @static
  14777. */
  14778. public static function purge($name = null)
  14779. {
  14780. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14781. $instance->purge($name);
  14782. }
  14783. /**
  14784. * Register a custom driver creator Closure.
  14785. *
  14786. * @param string $driver
  14787. * @param \Closure $callback
  14788. * @return \Illuminate\Filesystem\FilesystemManager
  14789. * @static
  14790. */
  14791. public static function extend($driver, $callback)
  14792. {
  14793. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14794. return $instance->extend($driver, $callback);
  14795. }
  14796. /**
  14797. * Set the application instance used by the manager.
  14798. *
  14799. * @param \Illuminate\Contracts\Foundation\Application $app
  14800. * @return \Illuminate\Filesystem\FilesystemManager
  14801. * @static
  14802. */
  14803. public static function setApplication($app)
  14804. {
  14805. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14806. return $instance->setApplication($app);
  14807. }
  14808. /**
  14809. * Assert that the given file or directory exists.
  14810. *
  14811. * @param string|array $path
  14812. * @param string|null $content
  14813. * @return \Illuminate\Filesystem\FilesystemAdapter
  14814. * @static
  14815. */
  14816. public static function assertExists($path, $content = null)
  14817. {
  14818. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14819. return $instance->assertExists($path, $content);
  14820. }
  14821. /**
  14822. * Assert that the given file or directory does not exist.
  14823. *
  14824. * @param string|array $path
  14825. * @return \Illuminate\Filesystem\FilesystemAdapter
  14826. * @static
  14827. */
  14828. public static function assertMissing($path)
  14829. {
  14830. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14831. return $instance->assertMissing($path);
  14832. }
  14833. /**
  14834. * Assert that the given directory is empty.
  14835. *
  14836. * @param string $path
  14837. * @return \Illuminate\Filesystem\FilesystemAdapter
  14838. * @static
  14839. */
  14840. public static function assertDirectoryEmpty($path)
  14841. {
  14842. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14843. return $instance->assertDirectoryEmpty($path);
  14844. }
  14845. /**
  14846. * Determine if a file or directory exists.
  14847. *
  14848. * @param string $path
  14849. * @return bool
  14850. * @static
  14851. */
  14852. public static function exists($path)
  14853. {
  14854. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14855. return $instance->exists($path);
  14856. }
  14857. /**
  14858. * Determine if a file or directory is missing.
  14859. *
  14860. * @param string $path
  14861. * @return bool
  14862. * @static
  14863. */
  14864. public static function missing($path)
  14865. {
  14866. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14867. return $instance->missing($path);
  14868. }
  14869. /**
  14870. * Determine if a file exists.
  14871. *
  14872. * @param string $path
  14873. * @return bool
  14874. * @static
  14875. */
  14876. public static function fileExists($path)
  14877. {
  14878. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14879. return $instance->fileExists($path);
  14880. }
  14881. /**
  14882. * Determine if a file is missing.
  14883. *
  14884. * @param string $path
  14885. * @return bool
  14886. * @static
  14887. */
  14888. public static function fileMissing($path)
  14889. {
  14890. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14891. return $instance->fileMissing($path);
  14892. }
  14893. /**
  14894. * Determine if a directory exists.
  14895. *
  14896. * @param string $path
  14897. * @return bool
  14898. * @static
  14899. */
  14900. public static function directoryExists($path)
  14901. {
  14902. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14903. return $instance->directoryExists($path);
  14904. }
  14905. /**
  14906. * Determine if a directory is missing.
  14907. *
  14908. * @param string $path
  14909. * @return bool
  14910. * @static
  14911. */
  14912. public static function directoryMissing($path)
  14913. {
  14914. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14915. return $instance->directoryMissing($path);
  14916. }
  14917. /**
  14918. * Get the full path for the file at the given "short" path.
  14919. *
  14920. * @param string $path
  14921. * @return string
  14922. * @static
  14923. */
  14924. public static function path($path)
  14925. {
  14926. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14927. return $instance->path($path);
  14928. }
  14929. /**
  14930. * Get the contents of a file.
  14931. *
  14932. * @param string $path
  14933. * @return string|null
  14934. * @static
  14935. */
  14936. public static function get($path)
  14937. {
  14938. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14939. return $instance->get($path);
  14940. }
  14941. /**
  14942. * Create a streamed response for a given file.
  14943. *
  14944. * @param string $path
  14945. * @param string|null $name
  14946. * @param array $headers
  14947. * @param string|null $disposition
  14948. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  14949. * @static
  14950. */
  14951. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  14952. {
  14953. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14954. return $instance->response($path, $name, $headers, $disposition);
  14955. }
  14956. /**
  14957. * Create a streamed download response for a given file.
  14958. *
  14959. * @param string $path
  14960. * @param string|null $name
  14961. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  14962. * @static
  14963. */
  14964. public static function download($path, $name = null, $headers = [])
  14965. {
  14966. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14967. return $instance->download($path, $name, $headers);
  14968. }
  14969. /**
  14970. * Write the contents of a file.
  14971. *
  14972. * @param string $path
  14973. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  14974. * @param mixed $options
  14975. * @return string|bool
  14976. * @static
  14977. */
  14978. public static function put($path, $contents, $options = [])
  14979. {
  14980. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14981. return $instance->put($path, $contents, $options);
  14982. }
  14983. /**
  14984. * Store the uploaded file on the disk.
  14985. *
  14986. * @param string $path
  14987. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  14988. * @param mixed $options
  14989. * @return string|false
  14990. * @static
  14991. */
  14992. public static function putFile($path, $file, $options = [])
  14993. {
  14994. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14995. return $instance->putFile($path, $file, $options);
  14996. }
  14997. /**
  14998. * Store the uploaded file on the disk with a given name.
  14999. *
  15000. * @param string $path
  15001. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  15002. * @param string $name
  15003. * @param mixed $options
  15004. * @return string|false
  15005. * @static
  15006. */
  15007. public static function putFileAs($path, $file, $name, $options = [])
  15008. {
  15009. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15010. return $instance->putFileAs($path, $file, $name, $options);
  15011. }
  15012. /**
  15013. * Get the visibility for the given path.
  15014. *
  15015. * @param string $path
  15016. * @return string
  15017. * @static
  15018. */
  15019. public static function getVisibility($path)
  15020. {
  15021. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15022. return $instance->getVisibility($path);
  15023. }
  15024. /**
  15025. * Set the visibility for the given path.
  15026. *
  15027. * @param string $path
  15028. * @param string $visibility
  15029. * @return bool
  15030. * @static
  15031. */
  15032. public static function setVisibility($path, $visibility)
  15033. {
  15034. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15035. return $instance->setVisibility($path, $visibility);
  15036. }
  15037. /**
  15038. * Prepend to a file.
  15039. *
  15040. * @param string $path
  15041. * @param string $data
  15042. * @param string $separator
  15043. * @return bool
  15044. * @static
  15045. */
  15046. public static function prepend($path, $data, $separator = '
  15047. ')
  15048. {
  15049. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15050. return $instance->prepend($path, $data, $separator);
  15051. }
  15052. /**
  15053. * Append to a file.
  15054. *
  15055. * @param string $path
  15056. * @param string $data
  15057. * @param string $separator
  15058. * @return bool
  15059. * @static
  15060. */
  15061. public static function append($path, $data, $separator = '
  15062. ')
  15063. {
  15064. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15065. return $instance->append($path, $data, $separator);
  15066. }
  15067. /**
  15068. * Delete the file at a given path.
  15069. *
  15070. * @param string|array $paths
  15071. * @return bool
  15072. * @static
  15073. */
  15074. public static function delete($paths)
  15075. {
  15076. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15077. return $instance->delete($paths);
  15078. }
  15079. /**
  15080. * Copy a file to a new location.
  15081. *
  15082. * @param string $from
  15083. * @param string $to
  15084. * @return bool
  15085. * @static
  15086. */
  15087. public static function copy($from, $to)
  15088. {
  15089. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15090. return $instance->copy($from, $to);
  15091. }
  15092. /**
  15093. * Move a file to a new location.
  15094. *
  15095. * @param string $from
  15096. * @param string $to
  15097. * @return bool
  15098. * @static
  15099. */
  15100. public static function move($from, $to)
  15101. {
  15102. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15103. return $instance->move($from, $to);
  15104. }
  15105. /**
  15106. * Get the file size of a given file.
  15107. *
  15108. * @param string $path
  15109. * @return int
  15110. * @static
  15111. */
  15112. public static function size($path)
  15113. {
  15114. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15115. return $instance->size($path);
  15116. }
  15117. /**
  15118. * Get the checksum for a file.
  15119. *
  15120. * @return string|false
  15121. * @throws UnableToProvideChecksum
  15122. * @static
  15123. */
  15124. public static function checksum($path, $options = [])
  15125. {
  15126. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15127. return $instance->checksum($path, $options);
  15128. }
  15129. /**
  15130. * Get the mime-type of a given file.
  15131. *
  15132. * @param string $path
  15133. * @return string|false
  15134. * @static
  15135. */
  15136. public static function mimeType($path)
  15137. {
  15138. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15139. return $instance->mimeType($path);
  15140. }
  15141. /**
  15142. * Get the file's last modification time.
  15143. *
  15144. * @param string $path
  15145. * @return int
  15146. * @static
  15147. */
  15148. public static function lastModified($path)
  15149. {
  15150. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15151. return $instance->lastModified($path);
  15152. }
  15153. /**
  15154. * Get a resource to read the file.
  15155. *
  15156. * @param string $path
  15157. * @return resource|null The path resource or null on failure.
  15158. * @static
  15159. */
  15160. public static function readStream($path)
  15161. {
  15162. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15163. return $instance->readStream($path);
  15164. }
  15165. /**
  15166. * Write a new file using a stream.
  15167. *
  15168. * @param string $path
  15169. * @param resource $resource
  15170. * @param array $options
  15171. * @return bool
  15172. * @static
  15173. */
  15174. public static function writeStream($path, $resource, $options = [])
  15175. {
  15176. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15177. return $instance->writeStream($path, $resource, $options);
  15178. }
  15179. /**
  15180. * Get the URL for the file at the given path.
  15181. *
  15182. * @param string $path
  15183. * @return string
  15184. * @throws \RuntimeException
  15185. * @static
  15186. */
  15187. public static function url($path)
  15188. {
  15189. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15190. return $instance->url($path);
  15191. }
  15192. /**
  15193. * Determine if temporary URLs can be generated.
  15194. *
  15195. * @return bool
  15196. * @static
  15197. */
  15198. public static function providesTemporaryUrls()
  15199. {
  15200. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15201. return $instance->providesTemporaryUrls();
  15202. }
  15203. /**
  15204. * Get a temporary URL for the file at the given path.
  15205. *
  15206. * @param string $path
  15207. * @param \DateTimeInterface $expiration
  15208. * @param array $options
  15209. * @return string
  15210. * @throws \RuntimeException
  15211. * @static
  15212. */
  15213. public static function temporaryUrl($path, $expiration, $options = [])
  15214. {
  15215. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15216. return $instance->temporaryUrl($path, $expiration, $options);
  15217. }
  15218. /**
  15219. * Get an array of all files in a directory.
  15220. *
  15221. * @param string|null $directory
  15222. * @param bool $recursive
  15223. * @return array
  15224. * @static
  15225. */
  15226. public static function files($directory = null, $recursive = false)
  15227. {
  15228. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15229. return $instance->files($directory, $recursive);
  15230. }
  15231. /**
  15232. * Get all of the files from the given directory (recursive).
  15233. *
  15234. * @param string|null $directory
  15235. * @return array
  15236. * @static
  15237. */
  15238. public static function allFiles($directory = null)
  15239. {
  15240. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15241. return $instance->allFiles($directory);
  15242. }
  15243. /**
  15244. * Get all of the directories within a given directory.
  15245. *
  15246. * @param string|null $directory
  15247. * @param bool $recursive
  15248. * @return array
  15249. * @static
  15250. */
  15251. public static function directories($directory = null, $recursive = false)
  15252. {
  15253. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15254. return $instance->directories($directory, $recursive);
  15255. }
  15256. /**
  15257. * Get all the directories within a given directory (recursive).
  15258. *
  15259. * @param string|null $directory
  15260. * @return array
  15261. * @static
  15262. */
  15263. public static function allDirectories($directory = null)
  15264. {
  15265. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15266. return $instance->allDirectories($directory);
  15267. }
  15268. /**
  15269. * Create a directory.
  15270. *
  15271. * @param string $path
  15272. * @return bool
  15273. * @static
  15274. */
  15275. public static function makeDirectory($path)
  15276. {
  15277. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15278. return $instance->makeDirectory($path);
  15279. }
  15280. /**
  15281. * Recursively delete a directory.
  15282. *
  15283. * @param string $directory
  15284. * @return bool
  15285. * @static
  15286. */
  15287. public static function deleteDirectory($directory)
  15288. {
  15289. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15290. return $instance->deleteDirectory($directory);
  15291. }
  15292. /**
  15293. * Get the Flysystem driver.
  15294. *
  15295. * @return \League\Flysystem\FilesystemOperator
  15296. * @static
  15297. */
  15298. public static function getDriver()
  15299. {
  15300. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15301. return $instance->getDriver();
  15302. }
  15303. /**
  15304. * Get the Flysystem adapter.
  15305. *
  15306. * @return \League\Flysystem\FilesystemAdapter
  15307. * @static
  15308. */
  15309. public static function getAdapter()
  15310. {
  15311. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15312. return $instance->getAdapter();
  15313. }
  15314. /**
  15315. * Get the configuration values.
  15316. *
  15317. * @return array
  15318. * @static
  15319. */
  15320. public static function getConfig()
  15321. {
  15322. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15323. return $instance->getConfig();
  15324. }
  15325. /**
  15326. * Define a custom temporary URL builder callback.
  15327. *
  15328. * @param \Closure $callback
  15329. * @return void
  15330. * @static
  15331. */
  15332. public static function buildTemporaryUrlsUsing($callback)
  15333. {
  15334. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15335. $instance->buildTemporaryUrlsUsing($callback);
  15336. }
  15337. /**
  15338. * Apply the callback if the given "value" is (or resolves to) truthy.
  15339. *
  15340. * @template TWhenParameter
  15341. * @template TWhenReturnType
  15342. * @param \Illuminate\Filesystem\(\Closure($this): TWhenParameter)|TWhenParameter|null $value
  15343. * @param \Illuminate\Filesystem\(callable($this, TWhenParameter): TWhenReturnType)|null $callback
  15344. * @param \Illuminate\Filesystem\(callable($this, TWhenParameter): TWhenReturnType)|null $default
  15345. * @return $this|\Illuminate\Filesystem\TWhenReturnType
  15346. * @static
  15347. */
  15348. public static function when($value = null, $callback = null, $default = null)
  15349. {
  15350. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15351. return $instance->when($value, $callback, $default);
  15352. }
  15353. /**
  15354. * Apply the callback if the given "value" is (or resolves to) falsy.
  15355. *
  15356. * @template TUnlessParameter
  15357. * @template TUnlessReturnType
  15358. * @param \Illuminate\Filesystem\(\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  15359. * @param \Illuminate\Filesystem\(callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  15360. * @param \Illuminate\Filesystem\(callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  15361. * @return $this|\Illuminate\Filesystem\TUnlessReturnType
  15362. * @static
  15363. */
  15364. public static function unless($value = null, $callback = null, $default = null)
  15365. {
  15366. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15367. return $instance->unless($value, $callback, $default);
  15368. }
  15369. /**
  15370. * Register a custom macro.
  15371. *
  15372. * @param string $name
  15373. * @param object|callable $macro
  15374. * @return void
  15375. * @static
  15376. */
  15377. public static function macro($name, $macro)
  15378. {
  15379. \Illuminate\Filesystem\FilesystemAdapter::macro($name, $macro);
  15380. }
  15381. /**
  15382. * Mix another object into the class.
  15383. *
  15384. * @param object $mixin
  15385. * @param bool $replace
  15386. * @return void
  15387. * @throws \ReflectionException
  15388. * @static
  15389. */
  15390. public static function mixin($mixin, $replace = true)
  15391. {
  15392. \Illuminate\Filesystem\FilesystemAdapter::mixin($mixin, $replace);
  15393. }
  15394. /**
  15395. * Checks if macro is registered.
  15396. *
  15397. * @param string $name
  15398. * @return bool
  15399. * @static
  15400. */
  15401. public static function hasMacro($name)
  15402. {
  15403. return \Illuminate\Filesystem\FilesystemAdapter::hasMacro($name);
  15404. }
  15405. /**
  15406. * Flush the existing macros.
  15407. *
  15408. * @return void
  15409. * @static
  15410. */
  15411. public static function flushMacros()
  15412. {
  15413. \Illuminate\Filesystem\FilesystemAdapter::flushMacros();
  15414. }
  15415. /**
  15416. * Dynamically handle calls to the class.
  15417. *
  15418. * @param string $method
  15419. * @param array $parameters
  15420. * @return mixed
  15421. * @throws \BadMethodCallException
  15422. * @static
  15423. */
  15424. public static function macroCall($method, $parameters)
  15425. {
  15426. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  15427. return $instance->macroCall($method, $parameters);
  15428. }
  15429. }
  15430. /**
  15431. *
  15432. *
  15433. * @see \Illuminate\Routing\UrlGenerator
  15434. */
  15435. class URL {
  15436. /**
  15437. * Get the full URL for the current request.
  15438. *
  15439. * @return string
  15440. * @static
  15441. */
  15442. public static function full()
  15443. {
  15444. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15445. return $instance->full();
  15446. }
  15447. /**
  15448. * Get the current URL for the request.
  15449. *
  15450. * @return string
  15451. * @static
  15452. */
  15453. public static function current()
  15454. {
  15455. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15456. return $instance->current();
  15457. }
  15458. /**
  15459. * Get the URL for the previous request.
  15460. *
  15461. * @param mixed $fallback
  15462. * @return string
  15463. * @static
  15464. */
  15465. public static function previous($fallback = false)
  15466. {
  15467. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15468. return $instance->previous($fallback);
  15469. }
  15470. /**
  15471. * Get the previous path info for the request.
  15472. *
  15473. * @param mixed $fallback
  15474. * @return string
  15475. * @static
  15476. */
  15477. public static function previousPath($fallback = false)
  15478. {
  15479. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15480. return $instance->previousPath($fallback);
  15481. }
  15482. /**
  15483. * Generate an absolute URL to the given path.
  15484. *
  15485. * @param string $path
  15486. * @param mixed $extra
  15487. * @param bool|null $secure
  15488. * @return string
  15489. * @static
  15490. */
  15491. public static function to($path, $extra = [], $secure = null)
  15492. {
  15493. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15494. return $instance->to($path, $extra, $secure);
  15495. }
  15496. /**
  15497. * Generate a secure, absolute URL to the given path.
  15498. *
  15499. * @param string $path
  15500. * @param array $parameters
  15501. * @return string
  15502. * @static
  15503. */
  15504. public static function secure($path, $parameters = [])
  15505. {
  15506. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15507. return $instance->secure($path, $parameters);
  15508. }
  15509. /**
  15510. * Generate the URL to an application asset.
  15511. *
  15512. * @param string $path
  15513. * @param bool|null $secure
  15514. * @return string
  15515. * @static
  15516. */
  15517. public static function asset($path, $secure = null)
  15518. {
  15519. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15520. return $instance->asset($path, $secure);
  15521. }
  15522. /**
  15523. * Generate the URL to a secure asset.
  15524. *
  15525. * @param string $path
  15526. * @return string
  15527. * @static
  15528. */
  15529. public static function secureAsset($path)
  15530. {
  15531. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15532. return $instance->secureAsset($path);
  15533. }
  15534. /**
  15535. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  15536. *
  15537. * @param string $root
  15538. * @param string $path
  15539. * @param bool|null $secure
  15540. * @return string
  15541. * @static
  15542. */
  15543. public static function assetFrom($root, $path, $secure = null)
  15544. {
  15545. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15546. return $instance->assetFrom($root, $path, $secure);
  15547. }
  15548. /**
  15549. * Get the default scheme for a raw URL.
  15550. *
  15551. * @param bool|null $secure
  15552. * @return string
  15553. * @static
  15554. */
  15555. public static function formatScheme($secure = null)
  15556. {
  15557. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15558. return $instance->formatScheme($secure);
  15559. }
  15560. /**
  15561. * Create a signed route URL for a named route.
  15562. *
  15563. * @param string $name
  15564. * @param mixed $parameters
  15565. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  15566. * @param bool $absolute
  15567. * @return string
  15568. * @throws \InvalidArgumentException
  15569. * @static
  15570. */
  15571. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  15572. {
  15573. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15574. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  15575. }
  15576. /**
  15577. * Create a temporary signed route URL for a named route.
  15578. *
  15579. * @param string $name
  15580. * @param \DateTimeInterface|\DateInterval|int $expiration
  15581. * @param array $parameters
  15582. * @param bool $absolute
  15583. * @return string
  15584. * @static
  15585. */
  15586. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  15587. {
  15588. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15589. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  15590. }
  15591. /**
  15592. * Determine if the given request has a valid signature.
  15593. *
  15594. * @param \Illuminate\Http\Request $request
  15595. * @param bool $absolute
  15596. * @param array $ignoreQuery
  15597. * @return bool
  15598. * @static
  15599. */
  15600. public static function hasValidSignature($request, $absolute = true, $ignoreQuery = [])
  15601. {
  15602. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15603. return $instance->hasValidSignature($request, $absolute, $ignoreQuery);
  15604. }
  15605. /**
  15606. * Determine if the given request has a valid signature for a relative URL.
  15607. *
  15608. * @param \Illuminate\Http\Request $request
  15609. * @param array $ignoreQuery
  15610. * @return bool
  15611. * @static
  15612. */
  15613. public static function hasValidRelativeSignature($request, $ignoreQuery = [])
  15614. {
  15615. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15616. return $instance->hasValidRelativeSignature($request, $ignoreQuery);
  15617. }
  15618. /**
  15619. * Determine if the signature from the given request matches the URL.
  15620. *
  15621. * @param \Illuminate\Http\Request $request
  15622. * @param bool $absolute
  15623. * @param array $ignoreQuery
  15624. * @return bool
  15625. * @static
  15626. */
  15627. public static function hasCorrectSignature($request, $absolute = true, $ignoreQuery = [])
  15628. {
  15629. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15630. return $instance->hasCorrectSignature($request, $absolute, $ignoreQuery);
  15631. }
  15632. /**
  15633. * Determine if the expires timestamp from the given request is not from the past.
  15634. *
  15635. * @param \Illuminate\Http\Request $request
  15636. * @return bool
  15637. * @static
  15638. */
  15639. public static function signatureHasNotExpired($request)
  15640. {
  15641. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15642. return $instance->signatureHasNotExpired($request);
  15643. }
  15644. /**
  15645. * Get the URL to a named route.
  15646. *
  15647. * @param string $name
  15648. * @param mixed $parameters
  15649. * @param bool $absolute
  15650. * @return string
  15651. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  15652. * @static
  15653. */
  15654. public static function route($name, $parameters = [], $absolute = true)
  15655. {
  15656. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15657. return $instance->route($name, $parameters, $absolute);
  15658. }
  15659. /**
  15660. * Get the URL for a given route instance.
  15661. *
  15662. * @param \Illuminate\Routing\Route $route
  15663. * @param mixed $parameters
  15664. * @param bool $absolute
  15665. * @return string
  15666. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  15667. * @static
  15668. */
  15669. public static function toRoute($route, $parameters, $absolute)
  15670. {
  15671. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15672. return $instance->toRoute($route, $parameters, $absolute);
  15673. }
  15674. /**
  15675. * Get the URL to a controller action.
  15676. *
  15677. * @param string|array $action
  15678. * @param mixed $parameters
  15679. * @param bool $absolute
  15680. * @return string
  15681. * @throws \InvalidArgumentException
  15682. * @static
  15683. */
  15684. public static function action($action, $parameters = [], $absolute = true)
  15685. {
  15686. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15687. return $instance->action($action, $parameters, $absolute);
  15688. }
  15689. /**
  15690. * Format the array of URL parameters.
  15691. *
  15692. * @param mixed|array $parameters
  15693. * @return array
  15694. * @static
  15695. */
  15696. public static function formatParameters($parameters)
  15697. {
  15698. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15699. return $instance->formatParameters($parameters);
  15700. }
  15701. /**
  15702. * Get the base URL for the request.
  15703. *
  15704. * @param string $scheme
  15705. * @param string|null $root
  15706. * @return string
  15707. * @static
  15708. */
  15709. public static function formatRoot($scheme, $root = null)
  15710. {
  15711. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15712. return $instance->formatRoot($scheme, $root);
  15713. }
  15714. /**
  15715. * Format the given URL segments into a single URL.
  15716. *
  15717. * @param string $root
  15718. * @param string $path
  15719. * @param \Illuminate\Routing\Route|null $route
  15720. * @return string
  15721. * @static
  15722. */
  15723. public static function format($root, $path, $route = null)
  15724. {
  15725. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15726. return $instance->format($root, $path, $route);
  15727. }
  15728. /**
  15729. * Determine if the given path is a valid URL.
  15730. *
  15731. * @param string $path
  15732. * @return bool
  15733. * @static
  15734. */
  15735. public static function isValidUrl($path)
  15736. {
  15737. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15738. return $instance->isValidUrl($path);
  15739. }
  15740. /**
  15741. * Set the default named parameters used by the URL generator.
  15742. *
  15743. * @param array $defaults
  15744. * @return void
  15745. * @static
  15746. */
  15747. public static function defaults($defaults)
  15748. {
  15749. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15750. $instance->defaults($defaults);
  15751. }
  15752. /**
  15753. * Get the default named parameters used by the URL generator.
  15754. *
  15755. * @return array
  15756. * @static
  15757. */
  15758. public static function getDefaultParameters()
  15759. {
  15760. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15761. return $instance->getDefaultParameters();
  15762. }
  15763. /**
  15764. * Force the scheme for URLs.
  15765. *
  15766. * @param string|null $scheme
  15767. * @return void
  15768. * @static
  15769. */
  15770. public static function forceScheme($scheme)
  15771. {
  15772. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15773. $instance->forceScheme($scheme);
  15774. }
  15775. /**
  15776. * Set the forced root URL.
  15777. *
  15778. * @param string|null $root
  15779. * @return void
  15780. * @static
  15781. */
  15782. public static function forceRootUrl($root)
  15783. {
  15784. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15785. $instance->forceRootUrl($root);
  15786. }
  15787. /**
  15788. * Set a callback to be used to format the host of generated URLs.
  15789. *
  15790. * @param \Closure $callback
  15791. * @return \Illuminate\Routing\UrlGenerator
  15792. * @static
  15793. */
  15794. public static function formatHostUsing($callback)
  15795. {
  15796. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15797. return $instance->formatHostUsing($callback);
  15798. }
  15799. /**
  15800. * Set a callback to be used to format the path of generated URLs.
  15801. *
  15802. * @param \Closure $callback
  15803. * @return \Illuminate\Routing\UrlGenerator
  15804. * @static
  15805. */
  15806. public static function formatPathUsing($callback)
  15807. {
  15808. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15809. return $instance->formatPathUsing($callback);
  15810. }
  15811. /**
  15812. * Get the path formatter being used by the URL generator.
  15813. *
  15814. * @return \Closure
  15815. * @static
  15816. */
  15817. public static function pathFormatter()
  15818. {
  15819. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15820. return $instance->pathFormatter();
  15821. }
  15822. /**
  15823. * Get the request instance.
  15824. *
  15825. * @return \Illuminate\Http\Request
  15826. * @static
  15827. */
  15828. public static function getRequest()
  15829. {
  15830. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15831. return $instance->getRequest();
  15832. }
  15833. /**
  15834. * Set the current request instance.
  15835. *
  15836. * @param \Illuminate\Http\Request $request
  15837. * @return void
  15838. * @static
  15839. */
  15840. public static function setRequest($request)
  15841. {
  15842. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15843. $instance->setRequest($request);
  15844. }
  15845. /**
  15846. * Set the route collection.
  15847. *
  15848. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  15849. * @return \Illuminate\Routing\UrlGenerator
  15850. * @static
  15851. */
  15852. public static function setRoutes($routes)
  15853. {
  15854. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15855. return $instance->setRoutes($routes);
  15856. }
  15857. /**
  15858. * Set the session resolver for the generator.
  15859. *
  15860. * @param callable $sessionResolver
  15861. * @return \Illuminate\Routing\UrlGenerator
  15862. * @static
  15863. */
  15864. public static function setSessionResolver($sessionResolver)
  15865. {
  15866. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15867. return $instance->setSessionResolver($sessionResolver);
  15868. }
  15869. /**
  15870. * Set the encryption key resolver.
  15871. *
  15872. * @param callable $keyResolver
  15873. * @return \Illuminate\Routing\UrlGenerator
  15874. * @static
  15875. */
  15876. public static function setKeyResolver($keyResolver)
  15877. {
  15878. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15879. return $instance->setKeyResolver($keyResolver);
  15880. }
  15881. /**
  15882. * Clone a new instance of the URL generator with a different encryption key resolver.
  15883. *
  15884. * @param callable $keyResolver
  15885. * @return \Illuminate\Routing\UrlGenerator
  15886. * @static
  15887. */
  15888. public static function withKeyResolver($keyResolver)
  15889. {
  15890. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15891. return $instance->withKeyResolver($keyResolver);
  15892. }
  15893. /**
  15894. * Get the root controller namespace.
  15895. *
  15896. * @return string
  15897. * @static
  15898. */
  15899. public static function getRootControllerNamespace()
  15900. {
  15901. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15902. return $instance->getRootControllerNamespace();
  15903. }
  15904. /**
  15905. * Set the root controller namespace.
  15906. *
  15907. * @param string $rootNamespace
  15908. * @return \Illuminate\Routing\UrlGenerator
  15909. * @static
  15910. */
  15911. public static function setRootControllerNamespace($rootNamespace)
  15912. {
  15913. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15914. return $instance->setRootControllerNamespace($rootNamespace);
  15915. }
  15916. /**
  15917. * Register a custom macro.
  15918. *
  15919. * @param string $name
  15920. * @param object|callable $macro
  15921. * @return void
  15922. * @static
  15923. */
  15924. public static function macro($name, $macro)
  15925. {
  15926. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  15927. }
  15928. /**
  15929. * Mix another object into the class.
  15930. *
  15931. * @param object $mixin
  15932. * @param bool $replace
  15933. * @return void
  15934. * @throws \ReflectionException
  15935. * @static
  15936. */
  15937. public static function mixin($mixin, $replace = true)
  15938. {
  15939. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  15940. }
  15941. /**
  15942. * Checks if macro is registered.
  15943. *
  15944. * @param string $name
  15945. * @return bool
  15946. * @static
  15947. */
  15948. public static function hasMacro($name)
  15949. {
  15950. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  15951. }
  15952. /**
  15953. * Flush the existing macros.
  15954. *
  15955. * @return void
  15956. * @static
  15957. */
  15958. public static function flushMacros()
  15959. {
  15960. \Illuminate\Routing\UrlGenerator::flushMacros();
  15961. }
  15962. }
  15963. /**
  15964. *
  15965. *
  15966. * @see \Illuminate\Validation\Factory
  15967. */
  15968. class Validator {
  15969. /**
  15970. * Create a new Validator instance.
  15971. *
  15972. * @param array $data
  15973. * @param array $rules
  15974. * @param array $messages
  15975. * @param array $customAttributes
  15976. * @return \Illuminate\Validation\Validator
  15977. * @static
  15978. */
  15979. public static function make($data, $rules, $messages = [], $customAttributes = [])
  15980. {
  15981. /** @var \Illuminate\Validation\Factory $instance */
  15982. return $instance->make($data, $rules, $messages, $customAttributes);
  15983. }
  15984. /**
  15985. * Validate the given data against the provided rules.
  15986. *
  15987. * @param array $data
  15988. * @param array $rules
  15989. * @param array $messages
  15990. * @param array $customAttributes
  15991. * @return array
  15992. * @throws \Illuminate\Validation\ValidationException
  15993. * @static
  15994. */
  15995. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  15996. {
  15997. /** @var \Illuminate\Validation\Factory $instance */
  15998. return $instance->validate($data, $rules, $messages, $customAttributes);
  15999. }
  16000. /**
  16001. * Register a custom validator extension.
  16002. *
  16003. * @param string $rule
  16004. * @param \Closure|string $extension
  16005. * @param string|null $message
  16006. * @return void
  16007. * @static
  16008. */
  16009. public static function extend($rule, $extension, $message = null)
  16010. {
  16011. /** @var \Illuminate\Validation\Factory $instance */
  16012. $instance->extend($rule, $extension, $message);
  16013. }
  16014. /**
  16015. * Register a custom implicit validator extension.
  16016. *
  16017. * @param string $rule
  16018. * @param \Closure|string $extension
  16019. * @param string|null $message
  16020. * @return void
  16021. * @static
  16022. */
  16023. public static function extendImplicit($rule, $extension, $message = null)
  16024. {
  16025. /** @var \Illuminate\Validation\Factory $instance */
  16026. $instance->extendImplicit($rule, $extension, $message);
  16027. }
  16028. /**
  16029. * Register a custom dependent validator extension.
  16030. *
  16031. * @param string $rule
  16032. * @param \Closure|string $extension
  16033. * @param string|null $message
  16034. * @return void
  16035. * @static
  16036. */
  16037. public static function extendDependent($rule, $extension, $message = null)
  16038. {
  16039. /** @var \Illuminate\Validation\Factory $instance */
  16040. $instance->extendDependent($rule, $extension, $message);
  16041. }
  16042. /**
  16043. * Register a custom validator message replacer.
  16044. *
  16045. * @param string $rule
  16046. * @param \Closure|string $replacer
  16047. * @return void
  16048. * @static
  16049. */
  16050. public static function replacer($rule, $replacer)
  16051. {
  16052. /** @var \Illuminate\Validation\Factory $instance */
  16053. $instance->replacer($rule, $replacer);
  16054. }
  16055. /**
  16056. * Indicate that unvalidated array keys should be included in validated data when the parent array is validated.
  16057. *
  16058. * @return void
  16059. * @static
  16060. */
  16061. public static function includeUnvalidatedArrayKeys()
  16062. {
  16063. /** @var \Illuminate\Validation\Factory $instance */
  16064. $instance->includeUnvalidatedArrayKeys();
  16065. }
  16066. /**
  16067. * Indicate that unvalidated array keys should be excluded from the validated data, even if the parent array was validated.
  16068. *
  16069. * @return void
  16070. * @static
  16071. */
  16072. public static function excludeUnvalidatedArrayKeys()
  16073. {
  16074. /** @var \Illuminate\Validation\Factory $instance */
  16075. $instance->excludeUnvalidatedArrayKeys();
  16076. }
  16077. /**
  16078. * Set the Validator instance resolver.
  16079. *
  16080. * @param \Closure $resolver
  16081. * @return void
  16082. * @static
  16083. */
  16084. public static function resolver($resolver)
  16085. {
  16086. /** @var \Illuminate\Validation\Factory $instance */
  16087. $instance->resolver($resolver);
  16088. }
  16089. /**
  16090. * Get the Translator implementation.
  16091. *
  16092. * @return \Illuminate\Contracts\Translation\Translator
  16093. * @static
  16094. */
  16095. public static function getTranslator()
  16096. {
  16097. /** @var \Illuminate\Validation\Factory $instance */
  16098. return $instance->getTranslator();
  16099. }
  16100. /**
  16101. * Get the Presence Verifier implementation.
  16102. *
  16103. * @return \Illuminate\Validation\PresenceVerifierInterface
  16104. * @static
  16105. */
  16106. public static function getPresenceVerifier()
  16107. {
  16108. /** @var \Illuminate\Validation\Factory $instance */
  16109. return $instance->getPresenceVerifier();
  16110. }
  16111. /**
  16112. * Set the Presence Verifier implementation.
  16113. *
  16114. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  16115. * @return void
  16116. * @static
  16117. */
  16118. public static function setPresenceVerifier($presenceVerifier)
  16119. {
  16120. /** @var \Illuminate\Validation\Factory $instance */
  16121. $instance->setPresenceVerifier($presenceVerifier);
  16122. }
  16123. /**
  16124. * Get the container instance used by the validation factory.
  16125. *
  16126. * @return \Illuminate\Contracts\Container\Container|null
  16127. * @static
  16128. */
  16129. public static function getContainer()
  16130. {
  16131. /** @var \Illuminate\Validation\Factory $instance */
  16132. return $instance->getContainer();
  16133. }
  16134. /**
  16135. * Set the container instance used by the validation factory.
  16136. *
  16137. * @param \Illuminate\Contracts\Container\Container $container
  16138. * @return \Illuminate\Validation\Factory
  16139. * @static
  16140. */
  16141. public static function setContainer($container)
  16142. {
  16143. /** @var \Illuminate\Validation\Factory $instance */
  16144. return $instance->setContainer($container);
  16145. }
  16146. }
  16147. /**
  16148. *
  16149. *
  16150. * @see \Illuminate\View\Factory
  16151. */
  16152. class View {
  16153. /**
  16154. * Get the evaluated view contents for the given view.
  16155. *
  16156. * @param string $path
  16157. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16158. * @param array $mergeData
  16159. * @return \Illuminate\Contracts\View\View
  16160. * @static
  16161. */
  16162. public static function file($path, $data = [], $mergeData = [])
  16163. {
  16164. /** @var \Illuminate\View\Factory $instance */
  16165. return $instance->file($path, $data, $mergeData);
  16166. }
  16167. /**
  16168. * Get the evaluated view contents for the given view.
  16169. *
  16170. * @param string $view
  16171. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16172. * @param array $mergeData
  16173. * @return \Illuminate\Contracts\View\View
  16174. * @static
  16175. */
  16176. public static function make($view, $data = [], $mergeData = [])
  16177. {
  16178. /** @var \Illuminate\View\Factory $instance */
  16179. return $instance->make($view, $data, $mergeData);
  16180. }
  16181. /**
  16182. * Get the first view that actually exists from the given list.
  16183. *
  16184. * @param array $views
  16185. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16186. * @param array $mergeData
  16187. * @return \Illuminate\Contracts\View\View
  16188. * @throws \InvalidArgumentException
  16189. * @static
  16190. */
  16191. public static function first($views, $data = [], $mergeData = [])
  16192. {
  16193. /** @var \Illuminate\View\Factory $instance */
  16194. return $instance->first($views, $data, $mergeData);
  16195. }
  16196. /**
  16197. * Get the rendered content of the view based on a given condition.
  16198. *
  16199. * @param bool $condition
  16200. * @param string $view
  16201. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16202. * @param array $mergeData
  16203. * @return string
  16204. * @static
  16205. */
  16206. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  16207. {
  16208. /** @var \Illuminate\View\Factory $instance */
  16209. return $instance->renderWhen($condition, $view, $data, $mergeData);
  16210. }
  16211. /**
  16212. * Get the rendered content of the view based on the negation of a given condition.
  16213. *
  16214. * @param bool $condition
  16215. * @param string $view
  16216. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  16217. * @param array $mergeData
  16218. * @return string
  16219. * @static
  16220. */
  16221. public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  16222. {
  16223. /** @var \Illuminate\View\Factory $instance */
  16224. return $instance->renderUnless($condition, $view, $data, $mergeData);
  16225. }
  16226. /**
  16227. * Get the rendered contents of a partial from a loop.
  16228. *
  16229. * @param string $view
  16230. * @param array $data
  16231. * @param string $iterator
  16232. * @param string $empty
  16233. * @return string
  16234. * @static
  16235. */
  16236. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  16237. {
  16238. /** @var \Illuminate\View\Factory $instance */
  16239. return $instance->renderEach($view, $data, $iterator, $empty);
  16240. }
  16241. /**
  16242. * Determine if a given view exists.
  16243. *
  16244. * @param string $view
  16245. * @return bool
  16246. * @static
  16247. */
  16248. public static function exists($view)
  16249. {
  16250. /** @var \Illuminate\View\Factory $instance */
  16251. return $instance->exists($view);
  16252. }
  16253. /**
  16254. * Get the appropriate view engine for the given path.
  16255. *
  16256. * @param string $path
  16257. * @return \Illuminate\Contracts\View\Engine
  16258. * @throws \InvalidArgumentException
  16259. * @static
  16260. */
  16261. public static function getEngineFromPath($path)
  16262. {
  16263. /** @var \Illuminate\View\Factory $instance */
  16264. return $instance->getEngineFromPath($path);
  16265. }
  16266. /**
  16267. * Add a piece of shared data to the environment.
  16268. *
  16269. * @param array|string $key
  16270. * @param mixed|null $value
  16271. * @return mixed
  16272. * @static
  16273. */
  16274. public static function share($key, $value = null)
  16275. {
  16276. /** @var \Illuminate\View\Factory $instance */
  16277. return $instance->share($key, $value);
  16278. }
  16279. /**
  16280. * Increment the rendering counter.
  16281. *
  16282. * @return void
  16283. * @static
  16284. */
  16285. public static function incrementRender()
  16286. {
  16287. /** @var \Illuminate\View\Factory $instance */
  16288. $instance->incrementRender();
  16289. }
  16290. /**
  16291. * Decrement the rendering counter.
  16292. *
  16293. * @return void
  16294. * @static
  16295. */
  16296. public static function decrementRender()
  16297. {
  16298. /** @var \Illuminate\View\Factory $instance */
  16299. $instance->decrementRender();
  16300. }
  16301. /**
  16302. * Check if there are no active render operations.
  16303. *
  16304. * @return bool
  16305. * @static
  16306. */
  16307. public static function doneRendering()
  16308. {
  16309. /** @var \Illuminate\View\Factory $instance */
  16310. return $instance->doneRendering();
  16311. }
  16312. /**
  16313. * Determine if the given once token has been rendered.
  16314. *
  16315. * @param string $id
  16316. * @return bool
  16317. * @static
  16318. */
  16319. public static function hasRenderedOnce($id)
  16320. {
  16321. /** @var \Illuminate\View\Factory $instance */
  16322. return $instance->hasRenderedOnce($id);
  16323. }
  16324. /**
  16325. * Mark the given once token as having been rendered.
  16326. *
  16327. * @param string $id
  16328. * @return void
  16329. * @static
  16330. */
  16331. public static function markAsRenderedOnce($id)
  16332. {
  16333. /** @var \Illuminate\View\Factory $instance */
  16334. $instance->markAsRenderedOnce($id);
  16335. }
  16336. /**
  16337. * Add a location to the array of view locations.
  16338. *
  16339. * @param string $location
  16340. * @return void
  16341. * @static
  16342. */
  16343. public static function addLocation($location)
  16344. {
  16345. /** @var \Illuminate\View\Factory $instance */
  16346. $instance->addLocation($location);
  16347. }
  16348. /**
  16349. * Add a new namespace to the loader.
  16350. *
  16351. * @param string $namespace
  16352. * @param string|array $hints
  16353. * @return \Illuminate\View\Factory
  16354. * @static
  16355. */
  16356. public static function addNamespace($namespace, $hints)
  16357. {
  16358. /** @var \Illuminate\View\Factory $instance */
  16359. return $instance->addNamespace($namespace, $hints);
  16360. }
  16361. /**
  16362. * Prepend a new namespace to the loader.
  16363. *
  16364. * @param string $namespace
  16365. * @param string|array $hints
  16366. * @return \Illuminate\View\Factory
  16367. * @static
  16368. */
  16369. public static function prependNamespace($namespace, $hints)
  16370. {
  16371. /** @var \Illuminate\View\Factory $instance */
  16372. return $instance->prependNamespace($namespace, $hints);
  16373. }
  16374. /**
  16375. * Replace the namespace hints for the given namespace.
  16376. *
  16377. * @param string $namespace
  16378. * @param string|array $hints
  16379. * @return \Illuminate\View\Factory
  16380. * @static
  16381. */
  16382. public static function replaceNamespace($namespace, $hints)
  16383. {
  16384. /** @var \Illuminate\View\Factory $instance */
  16385. return $instance->replaceNamespace($namespace, $hints);
  16386. }
  16387. /**
  16388. * Register a valid view extension and its engine.
  16389. *
  16390. * @param string $extension
  16391. * @param string $engine
  16392. * @param \Closure|null $resolver
  16393. * @return void
  16394. * @static
  16395. */
  16396. public static function addExtension($extension, $engine, $resolver = null)
  16397. {
  16398. /** @var \Illuminate\View\Factory $instance */
  16399. $instance->addExtension($extension, $engine, $resolver);
  16400. }
  16401. /**
  16402. * Flush all of the factory state like sections and stacks.
  16403. *
  16404. * @return void
  16405. * @static
  16406. */
  16407. public static function flushState()
  16408. {
  16409. /** @var \Illuminate\View\Factory $instance */
  16410. $instance->flushState();
  16411. }
  16412. /**
  16413. * Flush all of the section contents if done rendering.
  16414. *
  16415. * @return void
  16416. * @static
  16417. */
  16418. public static function flushStateIfDoneRendering()
  16419. {
  16420. /** @var \Illuminate\View\Factory $instance */
  16421. $instance->flushStateIfDoneRendering();
  16422. }
  16423. /**
  16424. * Get the extension to engine bindings.
  16425. *
  16426. * @return array
  16427. * @static
  16428. */
  16429. public static function getExtensions()
  16430. {
  16431. /** @var \Illuminate\View\Factory $instance */
  16432. return $instance->getExtensions();
  16433. }
  16434. /**
  16435. * Get the engine resolver instance.
  16436. *
  16437. * @return \Illuminate\View\Engines\EngineResolver
  16438. * @static
  16439. */
  16440. public static function getEngineResolver()
  16441. {
  16442. /** @var \Illuminate\View\Factory $instance */
  16443. return $instance->getEngineResolver();
  16444. }
  16445. /**
  16446. * Get the view finder instance.
  16447. *
  16448. * @return \Illuminate\View\ViewFinderInterface
  16449. * @static
  16450. */
  16451. public static function getFinder()
  16452. {
  16453. /** @var \Illuminate\View\Factory $instance */
  16454. return $instance->getFinder();
  16455. }
  16456. /**
  16457. * Set the view finder instance.
  16458. *
  16459. * @param \Illuminate\View\ViewFinderInterface $finder
  16460. * @return void
  16461. * @static
  16462. */
  16463. public static function setFinder($finder)
  16464. {
  16465. /** @var \Illuminate\View\Factory $instance */
  16466. $instance->setFinder($finder);
  16467. }
  16468. /**
  16469. * Flush the cache of views located by the finder.
  16470. *
  16471. * @return void
  16472. * @static
  16473. */
  16474. public static function flushFinderCache()
  16475. {
  16476. /** @var \Illuminate\View\Factory $instance */
  16477. $instance->flushFinderCache();
  16478. }
  16479. /**
  16480. * Get the event dispatcher instance.
  16481. *
  16482. * @return \Illuminate\Contracts\Events\Dispatcher
  16483. * @static
  16484. */
  16485. public static function getDispatcher()
  16486. {
  16487. /** @var \Illuminate\View\Factory $instance */
  16488. return $instance->getDispatcher();
  16489. }
  16490. /**
  16491. * Set the event dispatcher instance.
  16492. *
  16493. * @param \Illuminate\Contracts\Events\Dispatcher $events
  16494. * @return void
  16495. * @static
  16496. */
  16497. public static function setDispatcher($events)
  16498. {
  16499. /** @var \Illuminate\View\Factory $instance */
  16500. $instance->setDispatcher($events);
  16501. }
  16502. /**
  16503. * Get the IoC container instance.
  16504. *
  16505. * @return \Illuminate\Contracts\Container\Container
  16506. * @static
  16507. */
  16508. public static function getContainer()
  16509. {
  16510. /** @var \Illuminate\View\Factory $instance */
  16511. return $instance->getContainer();
  16512. }
  16513. /**
  16514. * Set the IoC container instance.
  16515. *
  16516. * @param \Illuminate\Contracts\Container\Container $container
  16517. * @return void
  16518. * @static
  16519. */
  16520. public static function setContainer($container)
  16521. {
  16522. /** @var \Illuminate\View\Factory $instance */
  16523. $instance->setContainer($container);
  16524. }
  16525. /**
  16526. * Get an item from the shared data.
  16527. *
  16528. * @param string $key
  16529. * @param mixed $default
  16530. * @return mixed
  16531. * @static
  16532. */
  16533. public static function shared($key, $default = null)
  16534. {
  16535. /** @var \Illuminate\View\Factory $instance */
  16536. return $instance->shared($key, $default);
  16537. }
  16538. /**
  16539. * Get all of the shared data for the environment.
  16540. *
  16541. * @return array
  16542. * @static
  16543. */
  16544. public static function getShared()
  16545. {
  16546. /** @var \Illuminate\View\Factory $instance */
  16547. return $instance->getShared();
  16548. }
  16549. /**
  16550. * Register a custom macro.
  16551. *
  16552. * @param string $name
  16553. * @param object|callable $macro
  16554. * @return void
  16555. * @static
  16556. */
  16557. public static function macro($name, $macro)
  16558. {
  16559. \Illuminate\View\Factory::macro($name, $macro);
  16560. }
  16561. /**
  16562. * Mix another object into the class.
  16563. *
  16564. * @param object $mixin
  16565. * @param bool $replace
  16566. * @return void
  16567. * @throws \ReflectionException
  16568. * @static
  16569. */
  16570. public static function mixin($mixin, $replace = true)
  16571. {
  16572. \Illuminate\View\Factory::mixin($mixin, $replace);
  16573. }
  16574. /**
  16575. * Checks if macro is registered.
  16576. *
  16577. * @param string $name
  16578. * @return bool
  16579. * @static
  16580. */
  16581. public static function hasMacro($name)
  16582. {
  16583. return \Illuminate\View\Factory::hasMacro($name);
  16584. }
  16585. /**
  16586. * Flush the existing macros.
  16587. *
  16588. * @return void
  16589. * @static
  16590. */
  16591. public static function flushMacros()
  16592. {
  16593. \Illuminate\View\Factory::flushMacros();
  16594. }
  16595. /**
  16596. * Start a component rendering process.
  16597. *
  16598. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  16599. * @param array $data
  16600. * @return void
  16601. * @static
  16602. */
  16603. public static function startComponent($view, $data = [])
  16604. {
  16605. /** @var \Illuminate\View\Factory $instance */
  16606. $instance->startComponent($view, $data);
  16607. }
  16608. /**
  16609. * Get the first view that actually exists from the given list, and start a component.
  16610. *
  16611. * @param array $names
  16612. * @param array $data
  16613. * @return void
  16614. * @static
  16615. */
  16616. public static function startComponentFirst($names, $data = [])
  16617. {
  16618. /** @var \Illuminate\View\Factory $instance */
  16619. $instance->startComponentFirst($names, $data);
  16620. }
  16621. /**
  16622. * Render the current component.
  16623. *
  16624. * @return string
  16625. * @static
  16626. */
  16627. public static function renderComponent()
  16628. {
  16629. /** @var \Illuminate\View\Factory $instance */
  16630. return $instance->renderComponent();
  16631. }
  16632. /**
  16633. * Get an item from the component data that exists above the current component.
  16634. *
  16635. * @param string $key
  16636. * @param mixed $default
  16637. * @return mixed|null
  16638. * @static
  16639. */
  16640. public static function getConsumableComponentData($key, $default = null)
  16641. {
  16642. /** @var \Illuminate\View\Factory $instance */
  16643. return $instance->getConsumableComponentData($key, $default);
  16644. }
  16645. /**
  16646. * Start the slot rendering process.
  16647. *
  16648. * @param string $name
  16649. * @param string|null $content
  16650. * @param array $attributes
  16651. * @return void
  16652. * @static
  16653. */
  16654. public static function slot($name, $content = null, $attributes = [])
  16655. {
  16656. /** @var \Illuminate\View\Factory $instance */
  16657. $instance->slot($name, $content, $attributes);
  16658. }
  16659. /**
  16660. * Save the slot content for rendering.
  16661. *
  16662. * @return void
  16663. * @static
  16664. */
  16665. public static function endSlot()
  16666. {
  16667. /** @var \Illuminate\View\Factory $instance */
  16668. $instance->endSlot();
  16669. }
  16670. /**
  16671. * Register a view creator event.
  16672. *
  16673. * @param array|string $views
  16674. * @param \Closure|string $callback
  16675. * @return array
  16676. * @static
  16677. */
  16678. public static function creator($views, $callback)
  16679. {
  16680. /** @var \Illuminate\View\Factory $instance */
  16681. return $instance->creator($views, $callback);
  16682. }
  16683. /**
  16684. * Register multiple view composers via an array.
  16685. *
  16686. * @param array $composers
  16687. * @return array
  16688. * @static
  16689. */
  16690. public static function composers($composers)
  16691. {
  16692. /** @var \Illuminate\View\Factory $instance */
  16693. return $instance->composers($composers);
  16694. }
  16695. /**
  16696. * Register a view composer event.
  16697. *
  16698. * @param array|string $views
  16699. * @param \Closure|string $callback
  16700. * @return array
  16701. * @static
  16702. */
  16703. public static function composer($views, $callback)
  16704. {
  16705. /** @var \Illuminate\View\Factory $instance */
  16706. return $instance->composer($views, $callback);
  16707. }
  16708. /**
  16709. * Call the composer for a given view.
  16710. *
  16711. * @param \Illuminate\Contracts\View\View $view
  16712. * @return void
  16713. * @static
  16714. */
  16715. public static function callComposer($view)
  16716. {
  16717. /** @var \Illuminate\View\Factory $instance */
  16718. $instance->callComposer($view);
  16719. }
  16720. /**
  16721. * Call the creator for a given view.
  16722. *
  16723. * @param \Illuminate\Contracts\View\View $view
  16724. * @return void
  16725. * @static
  16726. */
  16727. public static function callCreator($view)
  16728. {
  16729. /** @var \Illuminate\View\Factory $instance */
  16730. $instance->callCreator($view);
  16731. }
  16732. /**
  16733. * Start injecting content into a fragment.
  16734. *
  16735. * @param string $fragment
  16736. * @return void
  16737. * @static
  16738. */
  16739. public static function startFragment($fragment)
  16740. {
  16741. /** @var \Illuminate\View\Factory $instance */
  16742. $instance->startFragment($fragment);
  16743. }
  16744. /**
  16745. * Stop injecting content into a fragment.
  16746. *
  16747. * @return string
  16748. * @throws \InvalidArgumentException
  16749. * @static
  16750. */
  16751. public static function stopFragment()
  16752. {
  16753. /** @var \Illuminate\View\Factory $instance */
  16754. return $instance->stopFragment();
  16755. }
  16756. /**
  16757. * Get the contents of a fragment.
  16758. *
  16759. * @param string $name
  16760. * @param string|null $default
  16761. * @return mixed
  16762. * @static
  16763. */
  16764. public static function getFragment($name, $default = null)
  16765. {
  16766. /** @var \Illuminate\View\Factory $instance */
  16767. return $instance->getFragment($name, $default);
  16768. }
  16769. /**
  16770. * Get the entire array of rendered fragments.
  16771. *
  16772. * @return array
  16773. * @static
  16774. */
  16775. public static function getFragments()
  16776. {
  16777. /** @var \Illuminate\View\Factory $instance */
  16778. return $instance->getFragments();
  16779. }
  16780. /**
  16781. * Flush all of the fragments.
  16782. *
  16783. * @return void
  16784. * @static
  16785. */
  16786. public static function flushFragments()
  16787. {
  16788. /** @var \Illuminate\View\Factory $instance */
  16789. $instance->flushFragments();
  16790. }
  16791. /**
  16792. * Start injecting content into a section.
  16793. *
  16794. * @param string $section
  16795. * @param string|null $content
  16796. * @return void
  16797. * @static
  16798. */
  16799. public static function startSection($section, $content = null)
  16800. {
  16801. /** @var \Illuminate\View\Factory $instance */
  16802. $instance->startSection($section, $content);
  16803. }
  16804. /**
  16805. * Inject inline content into a section.
  16806. *
  16807. * @param string $section
  16808. * @param string $content
  16809. * @return void
  16810. * @static
  16811. */
  16812. public static function inject($section, $content)
  16813. {
  16814. /** @var \Illuminate\View\Factory $instance */
  16815. $instance->inject($section, $content);
  16816. }
  16817. /**
  16818. * Stop injecting content into a section and return its contents.
  16819. *
  16820. * @return string
  16821. * @static
  16822. */
  16823. public static function yieldSection()
  16824. {
  16825. /** @var \Illuminate\View\Factory $instance */
  16826. return $instance->yieldSection();
  16827. }
  16828. /**
  16829. * Stop injecting content into a section.
  16830. *
  16831. * @param bool $overwrite
  16832. * @return string
  16833. * @throws \InvalidArgumentException
  16834. * @static
  16835. */
  16836. public static function stopSection($overwrite = false)
  16837. {
  16838. /** @var \Illuminate\View\Factory $instance */
  16839. return $instance->stopSection($overwrite);
  16840. }
  16841. /**
  16842. * Stop injecting content into a section and append it.
  16843. *
  16844. * @return string
  16845. * @throws \InvalidArgumentException
  16846. * @static
  16847. */
  16848. public static function appendSection()
  16849. {
  16850. /** @var \Illuminate\View\Factory $instance */
  16851. return $instance->appendSection();
  16852. }
  16853. /**
  16854. * Get the string contents of a section.
  16855. *
  16856. * @param string $section
  16857. * @param string $default
  16858. * @return string
  16859. * @static
  16860. */
  16861. public static function yieldContent($section, $default = '')
  16862. {
  16863. /** @var \Illuminate\View\Factory $instance */
  16864. return $instance->yieldContent($section, $default);
  16865. }
  16866. /**
  16867. * Get the parent placeholder for the current request.
  16868. *
  16869. * @param string $section
  16870. * @return string
  16871. * @static
  16872. */
  16873. public static function parentPlaceholder($section = '')
  16874. {
  16875. return \Illuminate\View\Factory::parentPlaceholder($section);
  16876. }
  16877. /**
  16878. * Check if section exists.
  16879. *
  16880. * @param string $name
  16881. * @return bool
  16882. * @static
  16883. */
  16884. public static function hasSection($name)
  16885. {
  16886. /** @var \Illuminate\View\Factory $instance */
  16887. return $instance->hasSection($name);
  16888. }
  16889. /**
  16890. * Check if section does not exist.
  16891. *
  16892. * @param string $name
  16893. * @return bool
  16894. * @static
  16895. */
  16896. public static function sectionMissing($name)
  16897. {
  16898. /** @var \Illuminate\View\Factory $instance */
  16899. return $instance->sectionMissing($name);
  16900. }
  16901. /**
  16902. * Get the contents of a section.
  16903. *
  16904. * @param string $name
  16905. * @param string|null $default
  16906. * @return mixed
  16907. * @static
  16908. */
  16909. public static function getSection($name, $default = null)
  16910. {
  16911. /** @var \Illuminate\View\Factory $instance */
  16912. return $instance->getSection($name, $default);
  16913. }
  16914. /**
  16915. * Get the entire array of sections.
  16916. *
  16917. * @return array
  16918. * @static
  16919. */
  16920. public static function getSections()
  16921. {
  16922. /** @var \Illuminate\View\Factory $instance */
  16923. return $instance->getSections();
  16924. }
  16925. /**
  16926. * Flush all of the sections.
  16927. *
  16928. * @return void
  16929. * @static
  16930. */
  16931. public static function flushSections()
  16932. {
  16933. /** @var \Illuminate\View\Factory $instance */
  16934. $instance->flushSections();
  16935. }
  16936. /**
  16937. * Add new loop to the stack.
  16938. *
  16939. * @param \Countable|array $data
  16940. * @return void
  16941. * @static
  16942. */
  16943. public static function addLoop($data)
  16944. {
  16945. /** @var \Illuminate\View\Factory $instance */
  16946. $instance->addLoop($data);
  16947. }
  16948. /**
  16949. * Increment the top loop's indices.
  16950. *
  16951. * @return void
  16952. * @static
  16953. */
  16954. public static function incrementLoopIndices()
  16955. {
  16956. /** @var \Illuminate\View\Factory $instance */
  16957. $instance->incrementLoopIndices();
  16958. }
  16959. /**
  16960. * Pop a loop from the top of the loop stack.
  16961. *
  16962. * @return void
  16963. * @static
  16964. */
  16965. public static function popLoop()
  16966. {
  16967. /** @var \Illuminate\View\Factory $instance */
  16968. $instance->popLoop();
  16969. }
  16970. /**
  16971. * Get an instance of the last loop in the stack.
  16972. *
  16973. * @return \stdClass|null
  16974. * @static
  16975. */
  16976. public static function getLastLoop()
  16977. {
  16978. /** @var \Illuminate\View\Factory $instance */
  16979. return $instance->getLastLoop();
  16980. }
  16981. /**
  16982. * Get the entire loop stack.
  16983. *
  16984. * @return array
  16985. * @static
  16986. */
  16987. public static function getLoopStack()
  16988. {
  16989. /** @var \Illuminate\View\Factory $instance */
  16990. return $instance->getLoopStack();
  16991. }
  16992. /**
  16993. * Start injecting content into a push section.
  16994. *
  16995. * @param string $section
  16996. * @param string $content
  16997. * @return void
  16998. * @static
  16999. */
  17000. public static function startPush($section, $content = '')
  17001. {
  17002. /** @var \Illuminate\View\Factory $instance */
  17003. $instance->startPush($section, $content);
  17004. }
  17005. /**
  17006. * Stop injecting content into a push section.
  17007. *
  17008. * @return string
  17009. * @throws \InvalidArgumentException
  17010. * @static
  17011. */
  17012. public static function stopPush()
  17013. {
  17014. /** @var \Illuminate\View\Factory $instance */
  17015. return $instance->stopPush();
  17016. }
  17017. /**
  17018. * Start prepending content into a push section.
  17019. *
  17020. * @param string $section
  17021. * @param string $content
  17022. * @return void
  17023. * @static
  17024. */
  17025. public static function startPrepend($section, $content = '')
  17026. {
  17027. /** @var \Illuminate\View\Factory $instance */
  17028. $instance->startPrepend($section, $content);
  17029. }
  17030. /**
  17031. * Stop prepending content into a push section.
  17032. *
  17033. * @return string
  17034. * @throws \InvalidArgumentException
  17035. * @static
  17036. */
  17037. public static function stopPrepend()
  17038. {
  17039. /** @var \Illuminate\View\Factory $instance */
  17040. return $instance->stopPrepend();
  17041. }
  17042. /**
  17043. * Get the string contents of a push section.
  17044. *
  17045. * @param string $section
  17046. * @param string $default
  17047. * @return string
  17048. * @static
  17049. */
  17050. public static function yieldPushContent($section, $default = '')
  17051. {
  17052. /** @var \Illuminate\View\Factory $instance */
  17053. return $instance->yieldPushContent($section, $default);
  17054. }
  17055. /**
  17056. * Flush all of the stacks.
  17057. *
  17058. * @return void
  17059. * @static
  17060. */
  17061. public static function flushStacks()
  17062. {
  17063. /** @var \Illuminate\View\Factory $instance */
  17064. $instance->flushStacks();
  17065. }
  17066. /**
  17067. * Start a translation block.
  17068. *
  17069. * @param array $replacements
  17070. * @return void
  17071. * @static
  17072. */
  17073. public static function startTranslation($replacements = [])
  17074. {
  17075. /** @var \Illuminate\View\Factory $instance */
  17076. $instance->startTranslation($replacements);
  17077. }
  17078. /**
  17079. * Render the current translation.
  17080. *
  17081. * @return string
  17082. * @static
  17083. */
  17084. public static function renderTranslation()
  17085. {
  17086. /** @var \Illuminate\View\Factory $instance */
  17087. return $instance->renderTranslation();
  17088. }
  17089. }
  17090. /**
  17091. *
  17092. *
  17093. * @see \Illuminate\Foundation\Vite
  17094. */
  17095. class Vite {
  17096. /**
  17097. * Get the preloaded assets.
  17098. *
  17099. * @var array
  17100. * @static
  17101. */
  17102. public static function preloadedAssets()
  17103. {
  17104. /** @var \Illuminate\Foundation\Vite $instance */
  17105. return $instance->preloadedAssets();
  17106. }
  17107. /**
  17108. * Get the Content Security Policy nonce applied to all generated tags.
  17109. *
  17110. * @return string|null
  17111. * @static
  17112. */
  17113. public static function cspNonce()
  17114. {
  17115. /** @var \Illuminate\Foundation\Vite $instance */
  17116. return $instance->cspNonce();
  17117. }
  17118. /**
  17119. * Generate or set a Content Security Policy nonce to apply to all generated tags.
  17120. *
  17121. * @param \Illuminate\Foundation\?string $nonce
  17122. * @return string
  17123. * @static
  17124. */
  17125. public static function useCspNonce($nonce = null)
  17126. {
  17127. /** @var \Illuminate\Foundation\Vite $instance */
  17128. return $instance->useCspNonce($nonce);
  17129. }
  17130. /**
  17131. * Use the given key to detect integrity hashes in the manifest.
  17132. *
  17133. * @param string|false $key
  17134. * @return \Illuminate\Foundation\Vite
  17135. * @static
  17136. */
  17137. public static function useIntegrityKey($key)
  17138. {
  17139. /** @var \Illuminate\Foundation\Vite $instance */
  17140. return $instance->useIntegrityKey($key);
  17141. }
  17142. /**
  17143. * Set the Vite entry points.
  17144. *
  17145. * @param array $entryPoints
  17146. * @return \Illuminate\Foundation\Vite
  17147. * @static
  17148. */
  17149. public static function withEntryPoints($entryPoints)
  17150. {
  17151. /** @var \Illuminate\Foundation\Vite $instance */
  17152. return $instance->withEntryPoints($entryPoints);
  17153. }
  17154. /**
  17155. * Get the Vite "hot" file path.
  17156. *
  17157. * @return string
  17158. * @static
  17159. */
  17160. public static function hotFile()
  17161. {
  17162. /** @var \Illuminate\Foundation\Vite $instance */
  17163. return $instance->hotFile();
  17164. }
  17165. /**
  17166. * Set the Vite "hot" file path.
  17167. *
  17168. * @param string $path
  17169. * @return \Illuminate\Foundation\Vite
  17170. * @static
  17171. */
  17172. public static function useHotFile($path)
  17173. {
  17174. /** @var \Illuminate\Foundation\Vite $instance */
  17175. return $instance->useHotFile($path);
  17176. }
  17177. /**
  17178. * Set the Vite build directory.
  17179. *
  17180. * @param string $path
  17181. * @return \Illuminate\Foundation\Vite
  17182. * @static
  17183. */
  17184. public static function useBuildDirectory($path)
  17185. {
  17186. /** @var \Illuminate\Foundation\Vite $instance */
  17187. return $instance->useBuildDirectory($path);
  17188. }
  17189. /**
  17190. * Use the given callback to resolve attributes for script tags.
  17191. *
  17192. * @param \Illuminate\Foundation\(callable(string, string, ?array, ?array): array)|array $attributes
  17193. * @return \Illuminate\Foundation\Vite
  17194. * @static
  17195. */
  17196. public static function useScriptTagAttributes($attributes)
  17197. {
  17198. /** @var \Illuminate\Foundation\Vite $instance */
  17199. return $instance->useScriptTagAttributes($attributes);
  17200. }
  17201. /**
  17202. * Use the given callback to resolve attributes for style tags.
  17203. *
  17204. * @param \Illuminate\Foundation\(callable(string, string, ?array, ?array): array)|array $attributes
  17205. * @return \Illuminate\Foundation\Vite
  17206. * @static
  17207. */
  17208. public static function useStyleTagAttributes($attributes)
  17209. {
  17210. /** @var \Illuminate\Foundation\Vite $instance */
  17211. return $instance->useStyleTagAttributes($attributes);
  17212. }
  17213. /**
  17214. * Use the given callback to resolve attributes for preload tags.
  17215. *
  17216. * @param \Illuminate\Foundation\(callable(string, string, ?array, ?array): array)|array $attributes
  17217. * @return \Illuminate\Foundation\Vite
  17218. * @static
  17219. */
  17220. public static function usePreloadTagAttributes($attributes)
  17221. {
  17222. /** @var \Illuminate\Foundation\Vite $instance */
  17223. return $instance->usePreloadTagAttributes($attributes);
  17224. }
  17225. /**
  17226. * Generate React refresh runtime script.
  17227. *
  17228. * @return \Illuminate\Support\HtmlString|void
  17229. * @static
  17230. */
  17231. public static function reactRefresh()
  17232. {
  17233. /** @var \Illuminate\Foundation\Vite $instance */
  17234. return $instance->reactRefresh();
  17235. }
  17236. /**
  17237. * Get the URL for an asset.
  17238. *
  17239. * @param string $asset
  17240. * @param string|null $buildDirectory
  17241. * @return string
  17242. * @static
  17243. */
  17244. public static function asset($asset, $buildDirectory = null)
  17245. {
  17246. /** @var \Illuminate\Foundation\Vite $instance */
  17247. return $instance->asset($asset, $buildDirectory);
  17248. }
  17249. /**
  17250. * Get a unique hash representing the current manifest, or null if there is no manifest.
  17251. *
  17252. * @return string|null
  17253. * @static
  17254. */
  17255. public static function manifestHash($buildDirectory = null)
  17256. {
  17257. /** @var \Illuminate\Foundation\Vite $instance */
  17258. return $instance->manifestHash($buildDirectory);
  17259. }
  17260. /**
  17261. * Determine if the HMR server is running.
  17262. *
  17263. * @return bool
  17264. * @static
  17265. */
  17266. public static function isRunningHot()
  17267. {
  17268. /** @var \Illuminate\Foundation\Vite $instance */
  17269. return $instance->isRunningHot();
  17270. }
  17271. /**
  17272. * Get the Vite tag content as a string of HTML.
  17273. *
  17274. * @return string
  17275. * @static
  17276. */
  17277. public static function toHtml()
  17278. {
  17279. /** @var \Illuminate\Foundation\Vite $instance */
  17280. return $instance->toHtml();
  17281. }
  17282. /**
  17283. * Register a custom macro.
  17284. *
  17285. * @param string $name
  17286. * @param object|callable $macro
  17287. * @return void
  17288. * @static
  17289. */
  17290. public static function macro($name, $macro)
  17291. {
  17292. \Illuminate\Foundation\Vite::macro($name, $macro);
  17293. }
  17294. /**
  17295. * Mix another object into the class.
  17296. *
  17297. * @param object $mixin
  17298. * @param bool $replace
  17299. * @return void
  17300. * @throws \ReflectionException
  17301. * @static
  17302. */
  17303. public static function mixin($mixin, $replace = true)
  17304. {
  17305. \Illuminate\Foundation\Vite::mixin($mixin, $replace);
  17306. }
  17307. /**
  17308. * Checks if macro is registered.
  17309. *
  17310. * @param string $name
  17311. * @return bool
  17312. * @static
  17313. */
  17314. public static function hasMacro($name)
  17315. {
  17316. return \Illuminate\Foundation\Vite::hasMacro($name);
  17317. }
  17318. /**
  17319. * Flush the existing macros.
  17320. *
  17321. * @return void
  17322. * @static
  17323. */
  17324. public static function flushMacros()
  17325. {
  17326. \Illuminate\Foundation\Vite::flushMacros();
  17327. }
  17328. }
  17329. }
  17330. namespace Illuminate\Support {
  17331. /**
  17332. *
  17333. *
  17334. */
  17335. class Arr {
  17336. }
  17337. /**
  17338. *
  17339. *
  17340. */
  17341. class Js {
  17342. }
  17343. /**
  17344. *
  17345. *
  17346. */
  17347. class Str {
  17348. /**
  17349. *
  17350. *
  17351. * @see \Baijunyao\LaravelSupport\Str::isFalse()
  17352. * @param mixed $false
  17353. * @return bool
  17354. * @static
  17355. */
  17356. public static function isFalse($false)
  17357. {
  17358. return \Illuminate\Support\Str::isFalse($false);
  17359. }
  17360. /**
  17361. *
  17362. *
  17363. * @see \Baijunyao\LaravelSupport\Str::isJsonArray()
  17364. * @param mixed $json
  17365. * @return bool
  17366. * @static
  17367. */
  17368. public static function isJsonArray($json)
  17369. {
  17370. return \Illuminate\Support\Str::isJsonArray($json);
  17371. }
  17372. /**
  17373. *
  17374. *
  17375. * @see \Baijunyao\LaravelSupport\Str::isJsonObject()
  17376. * @param mixed $json
  17377. * @return bool
  17378. * @static
  17379. */
  17380. public static function isJsonObject($json)
  17381. {
  17382. return \Illuminate\Support\Str::isJsonObject($json);
  17383. }
  17384. /**
  17385. *
  17386. *
  17387. * @see \Baijunyao\LaravelSupport\Str::isNull()
  17388. * @param mixed $null
  17389. * @return bool
  17390. * @static
  17391. */
  17392. public static function isNull($null)
  17393. {
  17394. return \Illuminate\Support\Str::isNull($null);
  17395. }
  17396. /**
  17397. *
  17398. *
  17399. * @see \Baijunyao\LaravelSupport\Str::isTrue()
  17400. * @param mixed $true
  17401. * @return bool
  17402. * @static
  17403. */
  17404. public static function isTrue($true)
  17405. {
  17406. return \Illuminate\Support\Str::isTrue($true);
  17407. }
  17408. }
  17409. /**
  17410. *
  17411. *
  17412. * @template TKey of array-key
  17413. * @template TValue
  17414. * @implements \ArrayAccess<TKey, TValue>
  17415. * @implements \Illuminate\Support\Enumerable<TKey, TValue>
  17416. */
  17417. class Collection {
  17418. /**
  17419. *
  17420. *
  17421. * @see \App\Models\Article::observe()
  17422. * @static
  17423. */
  17424. public static function searchable()
  17425. {
  17426. return \Illuminate\Support\Collection::searchable();
  17427. }
  17428. /**
  17429. *
  17430. *
  17431. * @see \App\Models\Article::registerSearchableMacros()
  17432. * @static
  17433. */
  17434. public static function unsearchable()
  17435. {
  17436. return \Illuminate\Support\Collection::unsearchable();
  17437. }
  17438. }
  17439. }
  17440. namespace Laravel\Socialite\Facades {
  17441. /**
  17442. *
  17443. *
  17444. * @see \Laravel\Socialite\SocialiteManager
  17445. */
  17446. class Socialite {
  17447. /**
  17448. * Get a driver instance.
  17449. *
  17450. * @param string $driver
  17451. * @return mixed
  17452. * @static
  17453. */
  17454. public static function with($driver)
  17455. {
  17456. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17457. return $instance->with($driver);
  17458. }
  17459. /**
  17460. * Build an OAuth 2 provider instance.
  17461. *
  17462. * @param string $provider
  17463. * @param array $config
  17464. * @return \Laravel\Socialite\Two\AbstractProvider
  17465. * @static
  17466. */
  17467. public static function buildProvider($provider, $config)
  17468. {
  17469. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17470. return $instance->buildProvider($provider, $config);
  17471. }
  17472. /**
  17473. * Format the server configuration.
  17474. *
  17475. * @param array $config
  17476. * @return array
  17477. * @static
  17478. */
  17479. public static function formatConfig($config)
  17480. {
  17481. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17482. return $instance->formatConfig($config);
  17483. }
  17484. /**
  17485. * Forget all of the resolved driver instances.
  17486. *
  17487. * @return \Laravel\Socialite\SocialiteManager
  17488. * @static
  17489. */
  17490. public static function forgetDrivers()
  17491. {
  17492. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17493. return $instance->forgetDrivers();
  17494. }
  17495. /**
  17496. * Set the container instance used by the manager.
  17497. *
  17498. * @param \Illuminate\Contracts\Container\Container $container
  17499. * @return \Laravel\Socialite\SocialiteManager
  17500. * @static
  17501. */
  17502. public static function setContainer($container)
  17503. {
  17504. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17505. return $instance->setContainer($container);
  17506. }
  17507. /**
  17508. * Get the default driver name.
  17509. *
  17510. * @return string
  17511. * @throws \InvalidArgumentException
  17512. * @static
  17513. */
  17514. public static function getDefaultDriver()
  17515. {
  17516. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17517. return $instance->getDefaultDriver();
  17518. }
  17519. /**
  17520. * Get a driver instance.
  17521. *
  17522. * @param string|null $driver
  17523. * @return mixed
  17524. * @throws \InvalidArgumentException
  17525. * @static
  17526. */
  17527. public static function driver($driver = null)
  17528. { //Method inherited from \Illuminate\Support\Manager
  17529. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17530. return $instance->driver($driver);
  17531. }
  17532. /**
  17533. * Register a custom driver creator Closure.
  17534. *
  17535. * @param string $driver
  17536. * @param \Closure $callback
  17537. * @return \Laravel\Socialite\SocialiteManager
  17538. * @static
  17539. */
  17540. public static function extend($driver, $callback)
  17541. { //Method inherited from \Illuminate\Support\Manager
  17542. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17543. return $instance->extend($driver, $callback);
  17544. }
  17545. /**
  17546. * Get all of the created "drivers".
  17547. *
  17548. * @return array
  17549. * @static
  17550. */
  17551. public static function getDrivers()
  17552. { //Method inherited from \Illuminate\Support\Manager
  17553. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17554. return $instance->getDrivers();
  17555. }
  17556. /**
  17557. * Get the container instance used by the manager.
  17558. *
  17559. * @return \Illuminate\Contracts\Container\Container
  17560. * @static
  17561. */
  17562. public static function getContainer()
  17563. { //Method inherited from \Illuminate\Support\Manager
  17564. /** @var \Laravel\Socialite\SocialiteManager $instance */
  17565. return $instance->getContainer();
  17566. }
  17567. }
  17568. }
  17569. namespace GrahamCampbell\Markdown\Facades {
  17570. /**
  17571. *
  17572. *
  17573. * @author Graham Campbell <hello@gjcampbell.co.uk>
  17574. */
  17575. class Markdown {
  17576. /**
  17577. *
  17578. *
  17579. * @static
  17580. */
  17581. public static function getEnvironment()
  17582. {
  17583. /** @var \League\CommonMark\MarkdownConverter $instance */
  17584. return $instance->getEnvironment();
  17585. }
  17586. /**
  17587. * Converts Markdown to HTML.
  17588. *
  17589. * @param string $input The Markdown to convert
  17590. * @return \League\CommonMark\Output\RenderedContentInterface Rendered HTML
  17591. * @throws \RuntimeException
  17592. * @static
  17593. */
  17594. public static function convert($input)
  17595. {
  17596. /** @var \League\CommonMark\MarkdownConverter $instance */
  17597. return $instance->convert($input);
  17598. }
  17599. /**
  17600. * Converts Markdown to HTML.
  17601. *
  17602. * @deprecated since 2.2; use {@link convert()} instead
  17603. * @param string $markdown The Markdown to convert
  17604. * @return \League\CommonMark\Output\RenderedContentInterface Rendered HTML
  17605. * @throws \RuntimeException
  17606. * @static
  17607. */
  17608. public static function convertToHtml($markdown)
  17609. {
  17610. /** @var \League\CommonMark\MarkdownConverter $instance */
  17611. return $instance->convertToHtml($markdown);
  17612. }
  17613. }
  17614. }
  17615. namespace DaveJamesMiller\Breadcrumbs\Facades {
  17616. /**
  17617. * Breadcrumbs facade - allows easy access to the Manager instance.
  17618. *
  17619. * @method static array getCurrentRoute()
  17620. * @mixin \Illuminate\Support\Traits\Macroable
  17621. * @see BreadcrumbsManager
  17622. */
  17623. class Breadcrumbs {
  17624. /**
  17625. * Register a breadcrumb-generating callback for a page.
  17626. *
  17627. * @param string $name The name of the page.
  17628. * @param callable $callback The callback, which should accept a Generator instance as the first parameter and may
  17629. * accept additional parameters.
  17630. * @return void
  17631. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\DuplicateBreadcrumbException If the given name has already been
  17632. * used.
  17633. * @static
  17634. */
  17635. public static function for($name, $callback)
  17636. {
  17637. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17638. $instance->for($name, $callback);
  17639. }
  17640. /**
  17641. * Register a breadcrumb-generating callback for a page.
  17642. *
  17643. * For backwards-compatibility with v5.0.0 and below.
  17644. *
  17645. * @param string $name The name of the page.
  17646. * @param callable $callback The callback, which should accept a Generator instance as the first parameter and may
  17647. * accept additional parameters.
  17648. * @return void
  17649. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\DuplicateBreadcrumbException If the given name has already been
  17650. * used.
  17651. * @see self::for()
  17652. * @static
  17653. */
  17654. public static function register($name, $callback)
  17655. {
  17656. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17657. $instance->register($name, $callback);
  17658. }
  17659. /**
  17660. * Register a closure to call before generating breadcrumbs for the current page.
  17661. *
  17662. * For example, this can be used to always prepend the homepage without needing to manually add it to each page.
  17663. *
  17664. * @param callable $callback The callback, which should accept a Generator instance as the first and only parameter.
  17665. * @return void
  17666. * @static
  17667. */
  17668. public static function before($callback)
  17669. {
  17670. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17671. $instance->before($callback);
  17672. }
  17673. /**
  17674. * Register a closure to call after generating breadcrumbs for the current page.
  17675. *
  17676. * For example, this can be used to append the current page number when using pagination.
  17677. *
  17678. * @param callable $callback The callback, which should accept a Generator instance as the first and only parameter.
  17679. * @return void
  17680. * @static
  17681. */
  17682. public static function after($callback)
  17683. {
  17684. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17685. $instance->after($callback);
  17686. }
  17687. /**
  17688. * Check if a breadcrumb with the given name exists.
  17689. *
  17690. * If no name is given, defaults to the current route name.
  17691. *
  17692. * @param string|null $name The page name.
  17693. * @return bool Whether there is a registered callback with that name.
  17694. * @static
  17695. */
  17696. public static function exists($name = null)
  17697. {
  17698. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17699. return $instance->exists($name);
  17700. }
  17701. /**
  17702. * Generate a set of breadcrumbs for a page.
  17703. *
  17704. * @param string|null $name The name of the current page.
  17705. * @param mixed $params The parameters to pass to the closure for the current page.
  17706. * @return \Illuminate\Support\Collection The generated breadcrumbs.
  17707. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route
  17708. * doesn't have an associated name.
  17709. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names
  17710. * are) not registered.
  17711. * @static
  17712. */
  17713. public static function generate($name = null, ...$params)
  17714. {
  17715. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17716. return $instance->generate($name, ...$params);
  17717. }
  17718. /**
  17719. * Render breadcrumbs for a page with the specified view.
  17720. *
  17721. * @param string $view The name of the view to render.
  17722. * @param string|null $name The name of the current page.
  17723. * @param mixed $params The parameters to pass to the closure for the current page.
  17724. * @return \Illuminate\Support\HtmlString The generated HTML.
  17725. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  17726. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route doesn't have an associated name.
  17727. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\ViewNotSetException if no view has been set.
  17728. * @static
  17729. */
  17730. public static function view($view, $name = null, ...$params)
  17731. {
  17732. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17733. return $instance->view($view, $name, ...$params);
  17734. }
  17735. /**
  17736. * Render breadcrumbs for a page with the default view.
  17737. *
  17738. * @param string|null $name The name of the current page.
  17739. * @param mixed $params The parameters to pass to the closure for the current page.
  17740. * @return \Illuminate\Support\HtmlString The generated HTML.
  17741. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  17742. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route doesn't have an associated name.
  17743. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\ViewNotSetException if no view has been set.
  17744. * @static
  17745. */
  17746. public static function render($name = null, ...$params)
  17747. {
  17748. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17749. return $instance->render($name, ...$params);
  17750. }
  17751. /**
  17752. * Get the last breadcrumb for the current page.
  17753. *
  17754. * Optionally pass a
  17755. *
  17756. * @return \stdClass|null The breadcrumb for the current page.
  17757. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if the current route doesn't have an associated name.
  17758. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  17759. * @static
  17760. */
  17761. public static function current()
  17762. {
  17763. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17764. return $instance->current();
  17765. }
  17766. /**
  17767. * Set the current route name and parameters to use when calling render() or generate() with no parameters.
  17768. *
  17769. * @param string $name The name of the current page.
  17770. * @param mixed $params The parameters to pass to the closure for the current page.
  17771. * @return void
  17772. * @static
  17773. */
  17774. public static function setCurrentRoute($name, ...$params)
  17775. {
  17776. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17777. $instance->setCurrentRoute($name, ...$params);
  17778. }
  17779. /**
  17780. * Clear the previously set route name and parameters to use when calling render() or generate() with no parameters.
  17781. *
  17782. * Next time it will revert to the default behaviour of using the current route from Laravel.
  17783. *
  17784. * @return void
  17785. * @static
  17786. */
  17787. public static function clearCurrentRoute()
  17788. {
  17789. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  17790. $instance->clearCurrentRoute();
  17791. }
  17792. /**
  17793. * Register a custom macro.
  17794. *
  17795. * @param string $name
  17796. * @param object|callable $macro
  17797. * @return void
  17798. * @static
  17799. */
  17800. public static function macro($name, $macro)
  17801. {
  17802. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::macro($name, $macro);
  17803. }
  17804. /**
  17805. * Mix another object into the class.
  17806. *
  17807. * @param object $mixin
  17808. * @param bool $replace
  17809. * @return void
  17810. * @throws \ReflectionException
  17811. * @static
  17812. */
  17813. public static function mixin($mixin, $replace = true)
  17814. {
  17815. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::mixin($mixin, $replace);
  17816. }
  17817. /**
  17818. * Checks if macro is registered.
  17819. *
  17820. * @param string $name
  17821. * @return bool
  17822. * @static
  17823. */
  17824. public static function hasMacro($name)
  17825. {
  17826. return \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::hasMacro($name);
  17827. }
  17828. /**
  17829. * Flush the existing macros.
  17830. *
  17831. * @return void
  17832. * @static
  17833. */
  17834. public static function flushMacros()
  17835. {
  17836. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::flushMacros();
  17837. }
  17838. }
  17839. }
  17840. namespace Intervention\Image\Facades {
  17841. /**
  17842. *
  17843. *
  17844. */
  17845. class Image {
  17846. /**
  17847. * Overrides configuration settings
  17848. *
  17849. * @param array $config
  17850. * @return self
  17851. * @static
  17852. */
  17853. public static function configure($config = [])
  17854. {
  17855. /** @var \Intervention\Image\ImageManager $instance */
  17856. return $instance->configure($config);
  17857. }
  17858. /**
  17859. * Initiates an Image instance from different input types
  17860. *
  17861. * @param mixed $data
  17862. * @return \Intervention\Image\Image
  17863. * @static
  17864. */
  17865. public static function make($data)
  17866. {
  17867. /** @var \Intervention\Image\ImageManager $instance */
  17868. return $instance->make($data);
  17869. }
  17870. /**
  17871. * Creates an empty image canvas
  17872. *
  17873. * @param int $width
  17874. * @param int $height
  17875. * @param mixed $background
  17876. * @return \Intervention\Image\Image
  17877. * @static
  17878. */
  17879. public static function canvas($width, $height, $background = null)
  17880. {
  17881. /** @var \Intervention\Image\ImageManager $instance */
  17882. return $instance->canvas($width, $height, $background);
  17883. }
  17884. /**
  17885. * Create new cached image and run callback
  17886. * (requires additional package intervention/imagecache)
  17887. *
  17888. * @param \Closure $callback
  17889. * @param int $lifetime
  17890. * @param boolean $returnObj
  17891. * @return \Image
  17892. * @static
  17893. */
  17894. public static function cache($callback, $lifetime = null, $returnObj = false)
  17895. {
  17896. /** @var \Intervention\Image\ImageManager $instance */
  17897. return $instance->cache($callback, $lifetime, $returnObj);
  17898. }
  17899. }
  17900. }
  17901. namespace Jenssegers\Agent\Facades {
  17902. /**
  17903. *
  17904. *
  17905. */
  17906. class Agent {
  17907. /**
  17908. * Get all detection rules. These rules include the additional
  17909. * platforms and browsers and utilities.
  17910. *
  17911. * @return array
  17912. * @static
  17913. */
  17914. public static function getDetectionRulesExtended()
  17915. {
  17916. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  17917. }
  17918. /**
  17919. *
  17920. *
  17921. * @static
  17922. */
  17923. public static function getRules()
  17924. {
  17925. /** @var \Jenssegers\Agent\Agent $instance */
  17926. return $instance->getRules();
  17927. }
  17928. /**
  17929. *
  17930. *
  17931. * @return \Jaybizzle\CrawlerDetect\CrawlerDetect
  17932. * @static
  17933. */
  17934. public static function getCrawlerDetect()
  17935. {
  17936. /** @var \Jenssegers\Agent\Agent $instance */
  17937. return $instance->getCrawlerDetect();
  17938. }
  17939. /**
  17940. *
  17941. *
  17942. * @static
  17943. */
  17944. public static function getBrowsers()
  17945. {
  17946. return \Jenssegers\Agent\Agent::getBrowsers();
  17947. }
  17948. /**
  17949. *
  17950. *
  17951. * @static
  17952. */
  17953. public static function getOperatingSystems()
  17954. {
  17955. return \Jenssegers\Agent\Agent::getOperatingSystems();
  17956. }
  17957. /**
  17958. *
  17959. *
  17960. * @static
  17961. */
  17962. public static function getPlatforms()
  17963. {
  17964. return \Jenssegers\Agent\Agent::getPlatforms();
  17965. }
  17966. /**
  17967. *
  17968. *
  17969. * @static
  17970. */
  17971. public static function getDesktopDevices()
  17972. {
  17973. return \Jenssegers\Agent\Agent::getDesktopDevices();
  17974. }
  17975. /**
  17976. *
  17977. *
  17978. * @static
  17979. */
  17980. public static function getProperties()
  17981. {
  17982. return \Jenssegers\Agent\Agent::getProperties();
  17983. }
  17984. /**
  17985. * Get accept languages.
  17986. *
  17987. * @param string $acceptLanguage
  17988. * @return array
  17989. * @static
  17990. */
  17991. public static function languages($acceptLanguage = null)
  17992. {
  17993. /** @var \Jenssegers\Agent\Agent $instance */
  17994. return $instance->languages($acceptLanguage);
  17995. }
  17996. /**
  17997. * Get the browser name.
  17998. *
  17999. * @param string|null $userAgent
  18000. * @return string|bool
  18001. * @static
  18002. */
  18003. public static function browser($userAgent = null)
  18004. {
  18005. /** @var \Jenssegers\Agent\Agent $instance */
  18006. return $instance->browser($userAgent);
  18007. }
  18008. /**
  18009. * Get the platform name.
  18010. *
  18011. * @param string|null $userAgent
  18012. * @return string|bool
  18013. * @static
  18014. */
  18015. public static function platform($userAgent = null)
  18016. {
  18017. /** @var \Jenssegers\Agent\Agent $instance */
  18018. return $instance->platform($userAgent);
  18019. }
  18020. /**
  18021. * Get the device name.
  18022. *
  18023. * @param string|null $userAgent
  18024. * @return string|bool
  18025. * @static
  18026. */
  18027. public static function device($userAgent = null)
  18028. {
  18029. /** @var \Jenssegers\Agent\Agent $instance */
  18030. return $instance->device($userAgent);
  18031. }
  18032. /**
  18033. * Check if the device is a desktop computer.
  18034. *
  18035. * @param string|null $userAgent deprecated
  18036. * @param array $httpHeaders deprecated
  18037. * @return bool
  18038. * @static
  18039. */
  18040. public static function isDesktop($userAgent = null, $httpHeaders = null)
  18041. {
  18042. /** @var \Jenssegers\Agent\Agent $instance */
  18043. return $instance->isDesktop($userAgent, $httpHeaders);
  18044. }
  18045. /**
  18046. * Check if the device is a mobile phone.
  18047. *
  18048. * @param string|null $userAgent deprecated
  18049. * @param array $httpHeaders deprecated
  18050. * @return bool
  18051. * @static
  18052. */
  18053. public static function isPhone($userAgent = null, $httpHeaders = null)
  18054. {
  18055. /** @var \Jenssegers\Agent\Agent $instance */
  18056. return $instance->isPhone($userAgent, $httpHeaders);
  18057. }
  18058. /**
  18059. * Get the robot name.
  18060. *
  18061. * @param string|null $userAgent
  18062. * @return string|bool
  18063. * @static
  18064. */
  18065. public static function robot($userAgent = null)
  18066. {
  18067. /** @var \Jenssegers\Agent\Agent $instance */
  18068. return $instance->robot($userAgent);
  18069. }
  18070. /**
  18071. * Check if device is a robot.
  18072. *
  18073. * @param string|null $userAgent
  18074. * @return bool
  18075. * @static
  18076. */
  18077. public static function isRobot($userAgent = null)
  18078. {
  18079. /** @var \Jenssegers\Agent\Agent $instance */
  18080. return $instance->isRobot($userAgent);
  18081. }
  18082. /**
  18083. * Get the device type
  18084. *
  18085. * @param null $userAgent
  18086. * @param null $httpHeaders
  18087. * @return string
  18088. * @static
  18089. */
  18090. public static function deviceType($userAgent = null, $httpHeaders = null)
  18091. {
  18092. /** @var \Jenssegers\Agent\Agent $instance */
  18093. return $instance->deviceType($userAgent, $httpHeaders);
  18094. }
  18095. /**
  18096. *
  18097. *
  18098. * @static
  18099. */
  18100. public static function version($propertyName, $type = 'text')
  18101. {
  18102. /** @var \Jenssegers\Agent\Agent $instance */
  18103. return $instance->version($propertyName, $type);
  18104. }
  18105. /**
  18106. * Get the current script version.
  18107. *
  18108. * This is useful for the demo.php file,
  18109. * so people can check on what version they are testing
  18110. * for mobile devices.
  18111. *
  18112. * @return string The version number in semantic version format.
  18113. * @static
  18114. */
  18115. public static function getScriptVersion()
  18116. { //Method inherited from \Mobile_Detect
  18117. return \Jenssegers\Agent\Agent::getScriptVersion();
  18118. }
  18119. /**
  18120. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  18121. *
  18122. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  18123. * the headers. The default null is left for backwards compatibility.
  18124. * @static
  18125. */
  18126. public static function setHttpHeaders($httpHeaders = null)
  18127. { //Method inherited from \Mobile_Detect
  18128. /** @var \Jenssegers\Agent\Agent $instance */
  18129. return $instance->setHttpHeaders($httpHeaders);
  18130. }
  18131. /**
  18132. * Retrieves the HTTP headers.
  18133. *
  18134. * @return array
  18135. * @static
  18136. */
  18137. public static function getHttpHeaders()
  18138. { //Method inherited from \Mobile_Detect
  18139. /** @var \Jenssegers\Agent\Agent $instance */
  18140. return $instance->getHttpHeaders();
  18141. }
  18142. /**
  18143. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  18144. *
  18145. * Simply null is returned.
  18146. *
  18147. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  18148. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  18149. * all-caps, HTTP_ prefixed, underscore separated awesomeness.
  18150. * @return string|null The value of the header.
  18151. * @static
  18152. */
  18153. public static function getHttpHeader($header)
  18154. { //Method inherited from \Mobile_Detect
  18155. /** @var \Jenssegers\Agent\Agent $instance */
  18156. return $instance->getHttpHeader($header);
  18157. }
  18158. /**
  18159. *
  18160. *
  18161. * @static
  18162. */
  18163. public static function getMobileHeaders()
  18164. { //Method inherited from \Mobile_Detect
  18165. /** @var \Jenssegers\Agent\Agent $instance */
  18166. return $instance->getMobileHeaders();
  18167. }
  18168. /**
  18169. * Get all possible HTTP headers that
  18170. * can contain the User-Agent string.
  18171. *
  18172. * @return array List of HTTP headers.
  18173. * @static
  18174. */
  18175. public static function getUaHttpHeaders()
  18176. { //Method inherited from \Mobile_Detect
  18177. /** @var \Jenssegers\Agent\Agent $instance */
  18178. return $instance->getUaHttpHeaders();
  18179. }
  18180. /**
  18181. * Set CloudFront headers
  18182. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  18183. *
  18184. * @param array $cfHeaders List of HTTP headers
  18185. * @return boolean If there were CloudFront headers to be set
  18186. * @static
  18187. */
  18188. public static function setCfHeaders($cfHeaders = null)
  18189. { //Method inherited from \Mobile_Detect
  18190. /** @var \Jenssegers\Agent\Agent $instance */
  18191. return $instance->setCfHeaders($cfHeaders);
  18192. }
  18193. /**
  18194. * Retrieves the cloudfront headers.
  18195. *
  18196. * @return array
  18197. * @static
  18198. */
  18199. public static function getCfHeaders()
  18200. { //Method inherited from \Mobile_Detect
  18201. /** @var \Jenssegers\Agent\Agent $instance */
  18202. return $instance->getCfHeaders();
  18203. }
  18204. /**
  18205. * Set the User-Agent to be used.
  18206. *
  18207. * @param string $userAgent The user agent string to set.
  18208. * @return string|null
  18209. * @static
  18210. */
  18211. public static function setUserAgent($userAgent = null)
  18212. { //Method inherited from \Mobile_Detect
  18213. /** @var \Jenssegers\Agent\Agent $instance */
  18214. return $instance->setUserAgent($userAgent);
  18215. }
  18216. /**
  18217. * Retrieve the User-Agent.
  18218. *
  18219. * @return string|null The user agent if it's set.
  18220. * @static
  18221. */
  18222. public static function getUserAgent()
  18223. { //Method inherited from \Mobile_Detect
  18224. /** @var \Jenssegers\Agent\Agent $instance */
  18225. return $instance->getUserAgent();
  18226. }
  18227. /**
  18228. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  18229. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  18230. *
  18231. * @deprecated since version 2.6.9
  18232. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  18233. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  18234. * @static
  18235. */
  18236. public static function setDetectionType($type = null)
  18237. { //Method inherited from \Mobile_Detect
  18238. /** @var \Jenssegers\Agent\Agent $instance */
  18239. return $instance->setDetectionType($type);
  18240. }
  18241. /**
  18242. *
  18243. *
  18244. * @static
  18245. */
  18246. public static function getMatchingRegex()
  18247. { //Method inherited from \Mobile_Detect
  18248. /** @var \Jenssegers\Agent\Agent $instance */
  18249. return $instance->getMatchingRegex();
  18250. }
  18251. /**
  18252. *
  18253. *
  18254. * @static
  18255. */
  18256. public static function getMatchesArray()
  18257. { //Method inherited from \Mobile_Detect
  18258. /** @var \Jenssegers\Agent\Agent $instance */
  18259. return $instance->getMatchesArray();
  18260. }
  18261. /**
  18262. * Retrieve the list of known phone devices.
  18263. *
  18264. * @return array List of phone devices.
  18265. * @static
  18266. */
  18267. public static function getPhoneDevices()
  18268. { //Method inherited from \Mobile_Detect
  18269. return \Jenssegers\Agent\Agent::getPhoneDevices();
  18270. }
  18271. /**
  18272. * Retrieve the list of known tablet devices.
  18273. *
  18274. * @return array List of tablet devices.
  18275. * @static
  18276. */
  18277. public static function getTabletDevices()
  18278. { //Method inherited from \Mobile_Detect
  18279. return \Jenssegers\Agent\Agent::getTabletDevices();
  18280. }
  18281. /**
  18282. * Alias for getBrowsers() method.
  18283. *
  18284. * @return array List of user agents.
  18285. * @static
  18286. */
  18287. public static function getUserAgents()
  18288. { //Method inherited from \Mobile_Detect
  18289. return \Jenssegers\Agent\Agent::getUserAgents();
  18290. }
  18291. /**
  18292. * Retrieve the list of known utilities.
  18293. *
  18294. * @return array List of utilities.
  18295. * @static
  18296. */
  18297. public static function getUtilities()
  18298. { //Method inherited from \Mobile_Detect
  18299. return \Jenssegers\Agent\Agent::getUtilities();
  18300. }
  18301. /**
  18302. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  18303. *
  18304. * @deprecated since version 2.6.9
  18305. * @return array All the rules (but not extended).
  18306. * @static
  18307. */
  18308. public static function getMobileDetectionRules()
  18309. { //Method inherited from \Mobile_Detect
  18310. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  18311. }
  18312. /**
  18313. * Method gets the mobile detection rules + utilities.
  18314. *
  18315. * The reason this is separate is because utilities rules
  18316. * don't necessary imply mobile. This method is used inside
  18317. * the new $detect->is('stuff') method.
  18318. *
  18319. * @deprecated since version 2.6.9
  18320. * @return array All the rules + extended.
  18321. * @static
  18322. */
  18323. public static function getMobileDetectionRulesExtended()
  18324. { //Method inherited from \Mobile_Detect
  18325. /** @var \Jenssegers\Agent\Agent $instance */
  18326. return $instance->getMobileDetectionRulesExtended();
  18327. }
  18328. /**
  18329. * Check the HTTP headers for signs of mobile.
  18330. *
  18331. * This is the fastest mobile check possible; it's used
  18332. * inside isMobile() method.
  18333. *
  18334. * @return bool
  18335. * @static
  18336. */
  18337. public static function checkHttpHeadersForMobile()
  18338. { //Method inherited from \Mobile_Detect
  18339. /** @var \Jenssegers\Agent\Agent $instance */
  18340. return $instance->checkHttpHeadersForMobile();
  18341. }
  18342. /**
  18343. * Check if the device is mobile.
  18344. *
  18345. * Returns true if any type of mobile device detected, including special ones
  18346. *
  18347. * @param null $userAgent deprecated
  18348. * @param null $httpHeaders deprecated
  18349. * @return bool
  18350. * @static
  18351. */
  18352. public static function isMobile($userAgent = null, $httpHeaders = null)
  18353. { //Method inherited from \Mobile_Detect
  18354. /** @var \Jenssegers\Agent\Agent $instance */
  18355. return $instance->isMobile($userAgent, $httpHeaders);
  18356. }
  18357. /**
  18358. * Check if the device is a tablet.
  18359. *
  18360. * Return true if any type of tablet device is detected.
  18361. *
  18362. * @param string $userAgent deprecated
  18363. * @param array $httpHeaders deprecated
  18364. * @return bool
  18365. * @static
  18366. */
  18367. public static function isTablet($userAgent = null, $httpHeaders = null)
  18368. { //Method inherited from \Mobile_Detect
  18369. /** @var \Jenssegers\Agent\Agent $instance */
  18370. return $instance->isTablet($userAgent, $httpHeaders);
  18371. }
  18372. /**
  18373. * This method checks for a certain property in the
  18374. * userAgent.
  18375. *
  18376. * @todo : The httpHeaders part is not yet used.
  18377. * @param string $key
  18378. * @param string $userAgent deprecated
  18379. * @param string $httpHeaders deprecated
  18380. * @return bool|int|null
  18381. * @static
  18382. */
  18383. public static function is($key, $userAgent = null, $httpHeaders = null)
  18384. { //Method inherited from \Mobile_Detect
  18385. /** @var \Jenssegers\Agent\Agent $instance */
  18386. return $instance->is($key, $userAgent, $httpHeaders);
  18387. }
  18388. /**
  18389. * Some detection rules are relative (not standard),
  18390. * because of the diversity of devices, vendors and
  18391. * their conventions in representing the User-Agent or
  18392. * the HTTP headers.
  18393. *
  18394. * This method will be used to check custom regexes against
  18395. * the User-Agent string.
  18396. *
  18397. * @param $regex
  18398. * @param string $userAgent
  18399. * @return bool
  18400. * @todo : search in the HTTP headers too.
  18401. * @static
  18402. */
  18403. public static function match($regex, $userAgent = null)
  18404. { //Method inherited from \Mobile_Detect
  18405. /** @var \Jenssegers\Agent\Agent $instance */
  18406. return $instance->match($regex, $userAgent);
  18407. }
  18408. /**
  18409. * Prepare the version number.
  18410. *
  18411. * @todo Remove the error supression from str_replace() call.
  18412. * @param string $ver The string version, like "2.6.21.2152";
  18413. * @return float
  18414. * @static
  18415. */
  18416. public static function prepareVersionNo($ver)
  18417. { //Method inherited from \Mobile_Detect
  18418. /** @var \Jenssegers\Agent\Agent $instance */
  18419. return $instance->prepareVersionNo($ver);
  18420. }
  18421. /**
  18422. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  18423. *
  18424. * @deprecated This is no longer being maintained, it was an experiment at the time.
  18425. * @return string One of the self::MOBILE_GRADE_* constants.
  18426. * @static
  18427. */
  18428. public static function mobileGrade()
  18429. { //Method inherited from \Mobile_Detect
  18430. /** @var \Jenssegers\Agent\Agent $instance */
  18431. return $instance->mobileGrade();
  18432. }
  18433. }
  18434. }
  18435. namespace Mews\Purifier\Facades {
  18436. /**
  18437. *
  18438. *
  18439. * @see \Mews\Purifier
  18440. */
  18441. class Purifier {
  18442. /**
  18443. *
  18444. *
  18445. * @param $dirty
  18446. * @param null $config
  18447. * @param \Closure|null $postCreateConfigHook
  18448. * @return mixed
  18449. * @static
  18450. */
  18451. public static function clean($dirty, $config = null, $postCreateConfigHook = null)
  18452. {
  18453. /** @var \Mews\Purifier\Purifier $instance */
  18454. return $instance->clean($dirty, $config, $postCreateConfigHook);
  18455. }
  18456. /**
  18457. * Get HTMLPurifier instance.
  18458. *
  18459. * @return \HTMLPurifier
  18460. * @static
  18461. */
  18462. public static function getInstance()
  18463. {
  18464. /** @var \Mews\Purifier\Purifier $instance */
  18465. return $instance->getInstance();
  18466. }
  18467. }
  18468. }
  18469. namespace Sentry\Laravel {
  18470. /**
  18471. *
  18472. *
  18473. * @see \Sentry\State\HubInterface
  18474. */
  18475. class Facade {
  18476. /**
  18477. * Gets the client bound to the top of the stack.
  18478. *
  18479. * @static
  18480. */
  18481. public static function getClient()
  18482. {
  18483. /** @var \Sentry\State\Hub $instance */
  18484. return $instance->getClient();
  18485. }
  18486. /**
  18487. * Gets the ID of the last captured event.
  18488. *
  18489. * @static
  18490. */
  18491. public static function getLastEventId()
  18492. {
  18493. /** @var \Sentry\State\Hub $instance */
  18494. return $instance->getLastEventId();
  18495. }
  18496. /**
  18497. * Creates a new scope to store context information that will be layered on
  18498. * top of the current one. It is isolated, i.e. all breadcrumbs and context
  18499. * information added to this scope will be removed once the scope ends. Be
  18500. * sure to always remove this scope with {@see Hub::popScope} when the
  18501. * operation finishes or throws.
  18502. *
  18503. * @static
  18504. */
  18505. public static function pushScope()
  18506. {
  18507. /** @var \Sentry\State\Hub $instance */
  18508. return $instance->pushScope();
  18509. }
  18510. /**
  18511. * Removes a previously pushed scope from the stack. This restores the state
  18512. * before the scope was pushed. All breadcrumbs and context information added
  18513. * since the last call to {@see Hub::pushScope} are discarded.
  18514. *
  18515. * @static
  18516. */
  18517. public static function popScope()
  18518. {
  18519. /** @var \Sentry\State\Hub $instance */
  18520. return $instance->popScope();
  18521. }
  18522. /**
  18523. * Creates a new scope with and executes the given operation within. The scope
  18524. * is automatically removed once the operation finishes or throws.
  18525. *
  18526. * @param callable $callback The callback to be executed
  18527. * @return mixed|void The callback's return value, upon successful execution
  18528. * @psalm-template T
  18529. * @psalm-param callable(Scope): T $callback
  18530. * @psalm-return T
  18531. * @static
  18532. */
  18533. public static function withScope($callback)
  18534. {
  18535. /** @var \Sentry\State\Hub $instance */
  18536. return $instance->withScope($callback);
  18537. }
  18538. /**
  18539. * Calls the given callback passing to it the current scope so that any
  18540. * operation can be run within its context.
  18541. *
  18542. * @param callable $callback The callback to be executed
  18543. * @static
  18544. */
  18545. public static function configureScope($callback)
  18546. {
  18547. /** @var \Sentry\State\Hub $instance */
  18548. return $instance->configureScope($callback);
  18549. }
  18550. /**
  18551. * Binds the given client to the current scope.
  18552. *
  18553. * @param \Sentry\ClientInterface $client The client
  18554. * @static
  18555. */
  18556. public static function bindClient($client)
  18557. {
  18558. /** @var \Sentry\State\Hub $instance */
  18559. return $instance->bindClient($client);
  18560. }
  18561. /**
  18562. * Captures a message event and sends it to Sentry.
  18563. *
  18564. * @param string $message The message
  18565. * @param \Sentry\Severity|null $level The severity level of the message
  18566. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  18567. * @static
  18568. */
  18569. public static function captureMessage($message, $level = null, $hint = null)
  18570. {
  18571. /** @var \Sentry\State\Hub $instance */
  18572. return $instance->captureMessage($message, $level, $hint);
  18573. }
  18574. /**
  18575. * Captures an exception event and sends it to Sentry.
  18576. *
  18577. * @param \Throwable $exception The exception
  18578. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  18579. * @static
  18580. */
  18581. public static function captureException($exception, $hint = null)
  18582. {
  18583. /** @var \Sentry\State\Hub $instance */
  18584. return $instance->captureException($exception, $hint);
  18585. }
  18586. /**
  18587. * Captures a new event using the provided data.
  18588. *
  18589. * @param \Event $event The event being captured
  18590. * @param \Sentry\EventHint|null $hint May contain additional information about the event
  18591. * @static
  18592. */
  18593. public static function captureEvent($event, $hint = null)
  18594. {
  18595. /** @var \Sentry\State\Hub $instance */
  18596. return $instance->captureEvent($event, $hint);
  18597. }
  18598. /**
  18599. * Captures an event that logs the last occurred error.
  18600. *
  18601. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  18602. * @static
  18603. */
  18604. public static function captureLastError($hint = null)
  18605. {
  18606. /** @var \Sentry\State\Hub $instance */
  18607. return $instance->captureLastError($hint);
  18608. }
  18609. /**
  18610. * Records a new breadcrumb which will be attached to future events. They
  18611. * will be added to subsequent events to provide more context on user's
  18612. * actions prior to an error or crash.
  18613. *
  18614. * @param \Sentry\Breadcrumb $breadcrumb The breadcrumb to record
  18615. * @return bool Whether the breadcrumb was actually added to the current scope
  18616. * @static
  18617. */
  18618. public static function addBreadcrumb($breadcrumb)
  18619. {
  18620. /** @var \Sentry\State\Hub $instance */
  18621. return $instance->addBreadcrumb($breadcrumb);
  18622. }
  18623. /**
  18624. * Gets the integration whose FQCN matches the given one if it's available on the current client.
  18625. *
  18626. * @param string $className The FQCN of the integration
  18627. * @psalm-template T of IntegrationInterface
  18628. * @psalm-param class-string<T> $className
  18629. * @psalm-return T|null
  18630. * @static
  18631. */
  18632. public static function getIntegration($className)
  18633. {
  18634. /** @var \Sentry\State\Hub $instance */
  18635. return $instance->getIntegration($className);
  18636. }
  18637. /**
  18638. * Starts a new `Transaction` and returns it. This is the entry point to manual
  18639. * tracing instrumentation.
  18640. *
  18641. * A tree structure can be built by adding child spans to the transaction, and
  18642. * child spans to other spans. To start a new child span within the transaction
  18643. * or any span, call the respective `startChild()` method.
  18644. *
  18645. * Every child span must be finished before the transaction is finished,
  18646. * otherwise the unfinished spans are discarded.
  18647. *
  18648. * The transaction must be finished with a call to its `finish()` method, at
  18649. * which point the transaction with all its finished child spans will be sent to
  18650. * Sentry.
  18651. *
  18652. * @param \Sentry\State\array<string, mixed> $customSamplingContext Additional context that will be passed to the {@see SamplingContext}
  18653. * @param \Sentry\Tracing\TransactionContext $context Properties of the new transaction
  18654. * @param \Sentry\State\array<string, mixed> $customSamplingContext Additional context that will be passed to the {@see SamplingContext}
  18655. * @static
  18656. */
  18657. public static function startTransaction($context, $customSamplingContext = [])
  18658. {
  18659. /** @var \Sentry\State\Hub $instance */
  18660. return $instance->startTransaction($context, $customSamplingContext);
  18661. }
  18662. /**
  18663. * Returns the transaction that is on the Hub.
  18664. *
  18665. * @static
  18666. */
  18667. public static function getTransaction()
  18668. {
  18669. /** @var \Sentry\State\Hub $instance */
  18670. return $instance->getTransaction();
  18671. }
  18672. /**
  18673. * Sets the span on the Hub.
  18674. *
  18675. * @param \Sentry\Tracing\Span|null $span The span
  18676. * @static
  18677. */
  18678. public static function setSpan($span)
  18679. {
  18680. /** @var \Sentry\State\Hub $instance */
  18681. return $instance->setSpan($span);
  18682. }
  18683. /**
  18684. * Returns the span that is on the Hub.
  18685. *
  18686. * @static
  18687. */
  18688. public static function getSpan()
  18689. {
  18690. /** @var \Sentry\State\Hub $instance */
  18691. return $instance->getSpan();
  18692. }
  18693. }
  18694. }
  18695. namespace Spatie\LaravelIgnition\Facades {
  18696. /**
  18697. *
  18698. *
  18699. * @see \Spatie\FlareClient\Flare
  18700. */
  18701. class Flare {
  18702. /**
  18703. *
  18704. *
  18705. * @static
  18706. */
  18707. public static function make($apiKey = null, $contextDetector = null)
  18708. {
  18709. return \Spatie\FlareClient\Flare::make($apiKey, $contextDetector);
  18710. }
  18711. /**
  18712. *
  18713. *
  18714. * @static
  18715. */
  18716. public static function setApiToken($apiToken)
  18717. {
  18718. /** @var \Spatie\FlareClient\Flare $instance */
  18719. return $instance->setApiToken($apiToken);
  18720. }
  18721. /**
  18722. *
  18723. *
  18724. * @static
  18725. */
  18726. public static function apiTokenSet()
  18727. {
  18728. /** @var \Spatie\FlareClient\Flare $instance */
  18729. return $instance->apiTokenSet();
  18730. }
  18731. /**
  18732. *
  18733. *
  18734. * @static
  18735. */
  18736. public static function setBaseUrl($baseUrl)
  18737. {
  18738. /** @var \Spatie\FlareClient\Flare $instance */
  18739. return $instance->setBaseUrl($baseUrl);
  18740. }
  18741. /**
  18742. *
  18743. *
  18744. * @static
  18745. */
  18746. public static function setStage($stage)
  18747. {
  18748. /** @var \Spatie\FlareClient\Flare $instance */
  18749. return $instance->setStage($stage);
  18750. }
  18751. /**
  18752. *
  18753. *
  18754. * @static
  18755. */
  18756. public static function sendReportsImmediately()
  18757. {
  18758. /** @var \Spatie\FlareClient\Flare $instance */
  18759. return $instance->sendReportsImmediately();
  18760. }
  18761. /**
  18762. *
  18763. *
  18764. * @static
  18765. */
  18766. public static function determineVersionUsing($determineVersionCallable)
  18767. {
  18768. /** @var \Spatie\FlareClient\Flare $instance */
  18769. return $instance->determineVersionUsing($determineVersionCallable);
  18770. }
  18771. /**
  18772. *
  18773. *
  18774. * @static
  18775. */
  18776. public static function reportErrorLevels($reportErrorLevels)
  18777. {
  18778. /** @var \Spatie\FlareClient\Flare $instance */
  18779. return $instance->reportErrorLevels($reportErrorLevels);
  18780. }
  18781. /**
  18782. *
  18783. *
  18784. * @static
  18785. */
  18786. public static function filterExceptionsUsing($filterExceptionsCallable)
  18787. {
  18788. /** @var \Spatie\FlareClient\Flare $instance */
  18789. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  18790. }
  18791. /**
  18792. *
  18793. *
  18794. * @static
  18795. */
  18796. public static function filterReportsUsing($filterReportsCallable)
  18797. {
  18798. /** @var \Spatie\FlareClient\Flare $instance */
  18799. return $instance->filterReportsUsing($filterReportsCallable);
  18800. }
  18801. /**
  18802. *
  18803. *
  18804. * @static
  18805. */
  18806. public static function version()
  18807. {
  18808. /** @var \Spatie\FlareClient\Flare $instance */
  18809. return $instance->version();
  18810. }
  18811. /**
  18812. *
  18813. *
  18814. * @return array<int, FlareMiddleware|class-string<FlareMiddleware>>
  18815. * @static
  18816. */
  18817. public static function getMiddleware()
  18818. {
  18819. /** @var \Spatie\FlareClient\Flare $instance */
  18820. return $instance->getMiddleware();
  18821. }
  18822. /**
  18823. *
  18824. *
  18825. * @static
  18826. */
  18827. public static function setContextProviderDetector($contextDetector)
  18828. {
  18829. /** @var \Spatie\FlareClient\Flare $instance */
  18830. return $instance->setContextProviderDetector($contextDetector);
  18831. }
  18832. /**
  18833. *
  18834. *
  18835. * @static
  18836. */
  18837. public static function setContainer($container)
  18838. {
  18839. /** @var \Spatie\FlareClient\Flare $instance */
  18840. return $instance->setContainer($container);
  18841. }
  18842. /**
  18843. *
  18844. *
  18845. * @static
  18846. */
  18847. public static function registerFlareHandlers()
  18848. {
  18849. /** @var \Spatie\FlareClient\Flare $instance */
  18850. return $instance->registerFlareHandlers();
  18851. }
  18852. /**
  18853. *
  18854. *
  18855. * @static
  18856. */
  18857. public static function registerExceptionHandler()
  18858. {
  18859. /** @var \Spatie\FlareClient\Flare $instance */
  18860. return $instance->registerExceptionHandler();
  18861. }
  18862. /**
  18863. *
  18864. *
  18865. * @static
  18866. */
  18867. public static function registerErrorHandler()
  18868. {
  18869. /** @var \Spatie\FlareClient\Flare $instance */
  18870. return $instance->registerErrorHandler();
  18871. }
  18872. /**
  18873. *
  18874. *
  18875. * @param \Spatie\FlareClient\FlareMiddleware\FlareMiddleware|array<FlareMiddleware>|\Spatie\FlareClient\class-string<FlareMiddleware> $middleware
  18876. * @return \Spatie\FlareClient\Flare
  18877. * @static
  18878. */
  18879. public static function registerMiddleware($middleware)
  18880. {
  18881. /** @var \Spatie\FlareClient\Flare $instance */
  18882. return $instance->registerMiddleware($middleware);
  18883. }
  18884. /**
  18885. *
  18886. *
  18887. * @return array<int,FlareMiddleware|class-string<FlareMiddleware>>
  18888. * @static
  18889. */
  18890. public static function getMiddlewares()
  18891. {
  18892. /** @var \Spatie\FlareClient\Flare $instance */
  18893. return $instance->getMiddlewares();
  18894. }
  18895. /**
  18896. *
  18897. *
  18898. * @param string $name
  18899. * @param string $messageLevel
  18900. * @param \Spatie\FlareClient\array<int, mixed> $metaData
  18901. * @return \Spatie\FlareClient\Flare
  18902. * @static
  18903. */
  18904. public static function glow($name, $messageLevel = 'info', $metaData = [])
  18905. {
  18906. /** @var \Spatie\FlareClient\Flare $instance */
  18907. return $instance->glow($name, $messageLevel, $metaData);
  18908. }
  18909. /**
  18910. *
  18911. *
  18912. * @static
  18913. */
  18914. public static function handleException($throwable)
  18915. {
  18916. /** @var \Spatie\FlareClient\Flare $instance */
  18917. return $instance->handleException($throwable);
  18918. }
  18919. /**
  18920. *
  18921. *
  18922. * @return mixed
  18923. * @static
  18924. */
  18925. public static function handleError($code, $message, $file = '', $line = 0)
  18926. {
  18927. /** @var \Spatie\FlareClient\Flare $instance */
  18928. return $instance->handleError($code, $message, $file, $line);
  18929. }
  18930. /**
  18931. *
  18932. *
  18933. * @static
  18934. */
  18935. public static function applicationPath($applicationPath)
  18936. {
  18937. /** @var \Spatie\FlareClient\Flare $instance */
  18938. return $instance->applicationPath($applicationPath);
  18939. }
  18940. /**
  18941. *
  18942. *
  18943. * @static
  18944. */
  18945. public static function report($throwable, $callback = null, $report = null)
  18946. {
  18947. /** @var \Spatie\FlareClient\Flare $instance */
  18948. return $instance->report($throwable, $callback, $report);
  18949. }
  18950. /**
  18951. *
  18952. *
  18953. * @static
  18954. */
  18955. public static function reportMessage($message, $logLevel, $callback = null)
  18956. {
  18957. /** @var \Spatie\FlareClient\Flare $instance */
  18958. return $instance->reportMessage($message, $logLevel, $callback);
  18959. }
  18960. /**
  18961. *
  18962. *
  18963. * @static
  18964. */
  18965. public static function sendTestReport($throwable)
  18966. {
  18967. /** @var \Spatie\FlareClient\Flare $instance */
  18968. return $instance->sendTestReport($throwable);
  18969. }
  18970. /**
  18971. *
  18972. *
  18973. * @static
  18974. */
  18975. public static function reset()
  18976. {
  18977. /** @var \Spatie\FlareClient\Flare $instance */
  18978. return $instance->reset();
  18979. }
  18980. /**
  18981. *
  18982. *
  18983. * @static
  18984. */
  18985. public static function anonymizeIp()
  18986. {
  18987. /** @var \Spatie\FlareClient\Flare $instance */
  18988. return $instance->anonymizeIp();
  18989. }
  18990. /**
  18991. *
  18992. *
  18993. * @param \Spatie\FlareClient\array<int, string> $fieldNames
  18994. * @return \Spatie\FlareClient\Flare
  18995. * @static
  18996. */
  18997. public static function censorRequestBodyFields($fieldNames)
  18998. {
  18999. /** @var \Spatie\FlareClient\Flare $instance */
  19000. return $instance->censorRequestBodyFields($fieldNames);
  19001. }
  19002. /**
  19003. *
  19004. *
  19005. * @static
  19006. */
  19007. public static function createReport($throwable)
  19008. {
  19009. /** @var \Spatie\FlareClient\Flare $instance */
  19010. return $instance->createReport($throwable);
  19011. }
  19012. /**
  19013. *
  19014. *
  19015. * @static
  19016. */
  19017. public static function createReportFromMessage($message, $logLevel)
  19018. {
  19019. /** @var \Spatie\FlareClient\Flare $instance */
  19020. return $instance->createReportFromMessage($message, $logLevel);
  19021. }
  19022. /**
  19023. *
  19024. *
  19025. * @static
  19026. */
  19027. public static function stage($stage)
  19028. {
  19029. /** @var \Spatie\FlareClient\Flare $instance */
  19030. return $instance->stage($stage);
  19031. }
  19032. /**
  19033. *
  19034. *
  19035. * @static
  19036. */
  19037. public static function messageLevel($messageLevel)
  19038. {
  19039. /** @var \Spatie\FlareClient\Flare $instance */
  19040. return $instance->messageLevel($messageLevel);
  19041. }
  19042. /**
  19043. *
  19044. *
  19045. * @param string $groupName
  19046. * @param mixed $default
  19047. * @return array<int, mixed>
  19048. * @static
  19049. */
  19050. public static function getGroup($groupName = 'context', $default = [])
  19051. {
  19052. /** @var \Spatie\FlareClient\Flare $instance */
  19053. return $instance->getGroup($groupName, $default);
  19054. }
  19055. /**
  19056. *
  19057. *
  19058. * @static
  19059. */
  19060. public static function context($key, $value)
  19061. {
  19062. /** @var \Spatie\FlareClient\Flare $instance */
  19063. return $instance->context($key, $value);
  19064. }
  19065. /**
  19066. *
  19067. *
  19068. * @param string $groupName
  19069. * @param \Spatie\FlareClient\array<string, mixed> $properties
  19070. * @return \Spatie\FlareClient\Flare
  19071. * @static
  19072. */
  19073. public static function group($groupName, $properties)
  19074. {
  19075. /** @var \Spatie\FlareClient\Flare $instance */
  19076. return $instance->group($groupName, $properties);
  19077. }
  19078. }
  19079. }
  19080. namespace Illuminate\Http {
  19081. /**
  19082. *
  19083. *
  19084. */
  19085. class Request {
  19086. /**
  19087. *
  19088. *
  19089. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  19090. * @param array $rules
  19091. * @param mixed $params
  19092. * @static
  19093. */
  19094. public static function validate($rules, ...$params)
  19095. {
  19096. return \Illuminate\Http\Request::validate($rules, ...$params);
  19097. }
  19098. /**
  19099. *
  19100. *
  19101. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  19102. * @param string $errorBag
  19103. * @param array $rules
  19104. * @param mixed $params
  19105. * @static
  19106. */
  19107. public static function validateWithBag($errorBag, $rules, ...$params)
  19108. {
  19109. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  19110. }
  19111. /**
  19112. *
  19113. *
  19114. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  19115. * @param mixed $absolute
  19116. * @static
  19117. */
  19118. public static function hasValidSignature($absolute = true)
  19119. {
  19120. return \Illuminate\Http\Request::hasValidSignature($absolute);
  19121. }
  19122. /**
  19123. *
  19124. *
  19125. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  19126. * @static
  19127. */
  19128. public static function hasValidRelativeSignature()
  19129. {
  19130. return \Illuminate\Http\Request::hasValidRelativeSignature();
  19131. }
  19132. /**
  19133. *
  19134. *
  19135. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  19136. * @param mixed $ignoreQuery
  19137. * @param mixed $absolute
  19138. * @static
  19139. */
  19140. public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  19141. {
  19142. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  19143. }
  19144. }
  19145. }
  19146. namespace Illuminate\Database\Schema {
  19147. /**
  19148. *
  19149. *
  19150. */
  19151. class Blueprint {
  19152. /**
  19153. *
  19154. *
  19155. * @see \Kalnoy\Nestedset\NestedSetServiceProvider::register()
  19156. * @static
  19157. */
  19158. public static function nestedSet()
  19159. {
  19160. return \Illuminate\Database\Schema\Blueprint::nestedSet();
  19161. }
  19162. /**
  19163. *
  19164. *
  19165. * @see \Kalnoy\Nestedset\NestedSetServiceProvider::register()
  19166. * @static
  19167. */
  19168. public static function dropNestedSet()
  19169. {
  19170. return \Illuminate\Database\Schema\Blueprint::dropNestedSet();
  19171. }
  19172. }
  19173. }
  19174. namespace Illuminate\Routing {
  19175. /**
  19176. *
  19177. *
  19178. * @mixin \Illuminate\Routing\RouteRegistrar
  19179. */
  19180. class Router {
  19181. /**
  19182. *
  19183. *
  19184. * @see \Spatie\Feed\FeedServiceProvider::registerRouteMacro()
  19185. * @param mixed $baseUrl
  19186. * @static
  19187. */
  19188. public static function feeds($baseUrl = '')
  19189. {
  19190. return \Illuminate\Routing\Router::feeds($baseUrl);
  19191. }
  19192. }
  19193. }
  19194. namespace {
  19195. class App extends \Illuminate\Support\Facades\App {}
  19196. class Arr extends \Illuminate\Support\Arr {}
  19197. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  19198. class Auth extends \Illuminate\Support\Facades\Auth {}
  19199. class Blade extends \Illuminate\Support\Facades\Blade {}
  19200. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  19201. class Bus extends \Illuminate\Support\Facades\Bus {}
  19202. class Cache extends \Illuminate\Support\Facades\Cache {}
  19203. class Config extends \Illuminate\Support\Facades\Config {}
  19204. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  19205. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  19206. class Date extends \Illuminate\Support\Facades\Date {}
  19207. class DB extends \Illuminate\Support\Facades\DB {}
  19208. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  19209. /**
  19210. * Create and return an un-saved model instance.
  19211. *
  19212. * @param array $attributes
  19213. * @return \Illuminate\Database\Eloquent\Model|static
  19214. * @static
  19215. */
  19216. public static function make($attributes = [])
  19217. {
  19218. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19219. return $instance->make($attributes);
  19220. }
  19221. /**
  19222. * Register a new global scope.
  19223. *
  19224. * @param string $identifier
  19225. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  19226. * @return \Illuminate\Database\Eloquent\Builder|static
  19227. * @static
  19228. */
  19229. public static function withGlobalScope($identifier, $scope)
  19230. {
  19231. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19232. return $instance->withGlobalScope($identifier, $scope);
  19233. }
  19234. /**
  19235. * Remove a registered global scope.
  19236. *
  19237. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  19238. * @return \Illuminate\Database\Eloquent\Builder|static
  19239. * @static
  19240. */
  19241. public static function withoutGlobalScope($scope)
  19242. {
  19243. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19244. return $instance->withoutGlobalScope($scope);
  19245. }
  19246. /**
  19247. * Remove all or passed registered global scopes.
  19248. *
  19249. * @param array|null $scopes
  19250. * @return \Illuminate\Database\Eloquent\Builder|static
  19251. * @static
  19252. */
  19253. public static function withoutGlobalScopes($scopes = null)
  19254. {
  19255. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19256. return $instance->withoutGlobalScopes($scopes);
  19257. }
  19258. /**
  19259. * Get an array of global scopes that were removed from the query.
  19260. *
  19261. * @return array
  19262. * @static
  19263. */
  19264. public static function removedScopes()
  19265. {
  19266. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19267. return $instance->removedScopes();
  19268. }
  19269. /**
  19270. * Add a where clause on the primary key to the query.
  19271. *
  19272. * @param mixed $id
  19273. * @return \Illuminate\Database\Eloquent\Builder|static
  19274. * @static
  19275. */
  19276. public static function whereKey($id)
  19277. {
  19278. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19279. return $instance->whereKey($id);
  19280. }
  19281. /**
  19282. * Add a where clause on the primary key to the query.
  19283. *
  19284. * @param mixed $id
  19285. * @return \Illuminate\Database\Eloquent\Builder|static
  19286. * @static
  19287. */
  19288. public static function whereKeyNot($id)
  19289. {
  19290. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19291. return $instance->whereKeyNot($id);
  19292. }
  19293. /**
  19294. * Add a basic where clause to the query.
  19295. *
  19296. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19297. * @param mixed $operator
  19298. * @param mixed $value
  19299. * @param string $boolean
  19300. * @return \Illuminate\Database\Eloquent\Builder|static
  19301. * @static
  19302. */
  19303. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  19304. {
  19305. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19306. return $instance->where($column, $operator, $value, $boolean);
  19307. }
  19308. /**
  19309. * Add a basic where clause to the query, and return the first result.
  19310. *
  19311. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19312. * @param mixed $operator
  19313. * @param mixed $value
  19314. * @param string $boolean
  19315. * @return \Illuminate\Database\Eloquent\Model|static|null
  19316. * @static
  19317. */
  19318. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  19319. {
  19320. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19321. return $instance->firstWhere($column, $operator, $value, $boolean);
  19322. }
  19323. /**
  19324. * Add an "or where" clause to the query.
  19325. *
  19326. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  19327. * @param mixed $operator
  19328. * @param mixed $value
  19329. * @return \Illuminate\Database\Eloquent\Builder|static
  19330. * @static
  19331. */
  19332. public static function orWhere($column, $operator = null, $value = null)
  19333. {
  19334. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19335. return $instance->orWhere($column, $operator, $value);
  19336. }
  19337. /**
  19338. * Add a basic "where not" clause to the query.
  19339. *
  19340. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19341. * @param mixed $operator
  19342. * @param mixed $value
  19343. * @param string $boolean
  19344. * @return \Illuminate\Database\Eloquent\Builder|static
  19345. * @static
  19346. */
  19347. public static function whereNot($column, $operator = null, $value = null, $boolean = 'and')
  19348. {
  19349. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19350. return $instance->whereNot($column, $operator, $value, $boolean);
  19351. }
  19352. /**
  19353. * Add an "or where not" clause to the query.
  19354. *
  19355. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  19356. * @param mixed $operator
  19357. * @param mixed $value
  19358. * @return \Illuminate\Database\Eloquent\Builder|static
  19359. * @static
  19360. */
  19361. public static function orWhereNot($column, $operator = null, $value = null)
  19362. {
  19363. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19364. return $instance->orWhereNot($column, $operator, $value);
  19365. }
  19366. /**
  19367. * Add an "order by" clause for a timestamp to the query.
  19368. *
  19369. * @param string|\Illuminate\Database\Query\Expression $column
  19370. * @return \Illuminate\Database\Eloquent\Builder|static
  19371. * @static
  19372. */
  19373. public static function latest($column = null)
  19374. {
  19375. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19376. return $instance->latest($column);
  19377. }
  19378. /**
  19379. * Add an "order by" clause for a timestamp to the query.
  19380. *
  19381. * @param string|\Illuminate\Database\Query\Expression $column
  19382. * @return \Illuminate\Database\Eloquent\Builder|static
  19383. * @static
  19384. */
  19385. public static function oldest($column = null)
  19386. {
  19387. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19388. return $instance->oldest($column);
  19389. }
  19390. /**
  19391. * Create a collection of models from plain arrays.
  19392. *
  19393. * @param array $items
  19394. * @return \Illuminate\Database\Eloquent\Collection
  19395. * @static
  19396. */
  19397. public static function hydrate($items)
  19398. {
  19399. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19400. return $instance->hydrate($items);
  19401. }
  19402. /**
  19403. * Create a collection of models from a raw query.
  19404. *
  19405. * @param string $query
  19406. * @param array $bindings
  19407. * @return \Illuminate\Database\Eloquent\Collection
  19408. * @static
  19409. */
  19410. public static function fromQuery($query, $bindings = [])
  19411. {
  19412. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19413. return $instance->fromQuery($query, $bindings);
  19414. }
  19415. /**
  19416. * Find a model by its primary key.
  19417. *
  19418. * @param mixed $id
  19419. * @param array|string $columns
  19420. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  19421. * @static
  19422. */
  19423. public static function find($id, $columns = [])
  19424. {
  19425. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19426. return $instance->find($id, $columns);
  19427. }
  19428. /**
  19429. * Find multiple models by their primary keys.
  19430. *
  19431. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  19432. * @param array|string $columns
  19433. * @return \Illuminate\Database\Eloquent\Collection
  19434. * @static
  19435. */
  19436. public static function findMany($ids, $columns = [])
  19437. {
  19438. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19439. return $instance->findMany($ids, $columns);
  19440. }
  19441. /**
  19442. * Find a model by its primary key or throw an exception.
  19443. *
  19444. * @param mixed $id
  19445. * @param array|string $columns
  19446. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  19447. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  19448. * @static
  19449. */
  19450. public static function findOrFail($id, $columns = [])
  19451. {
  19452. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19453. return $instance->findOrFail($id, $columns);
  19454. }
  19455. /**
  19456. * Find a model by its primary key or return fresh model instance.
  19457. *
  19458. * @param mixed $id
  19459. * @param array|string $columns
  19460. * @return \Illuminate\Database\Eloquent\Model|static
  19461. * @static
  19462. */
  19463. public static function findOrNew($id, $columns = [])
  19464. {
  19465. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19466. return $instance->findOrNew($id, $columns);
  19467. }
  19468. /**
  19469. * Find a model by its primary key or call a callback.
  19470. *
  19471. * @param mixed $id
  19472. * @param \Closure|array|string $columns
  19473. * @param \Closure|null $callback
  19474. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|mixed
  19475. * @static
  19476. */
  19477. public static function findOr($id, $columns = [], $callback = null)
  19478. {
  19479. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19480. return $instance->findOr($id, $columns, $callback);
  19481. }
  19482. /**
  19483. * Get the first record matching the attributes or instantiate it.
  19484. *
  19485. * @param array $attributes
  19486. * @param array $values
  19487. * @return \Illuminate\Database\Eloquent\Model|static
  19488. * @static
  19489. */
  19490. public static function firstOrNew($attributes = [], $values = [])
  19491. {
  19492. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19493. return $instance->firstOrNew($attributes, $values);
  19494. }
  19495. /**
  19496. * Get the first record matching the attributes or create it.
  19497. *
  19498. * @param array $attributes
  19499. * @param array $values
  19500. * @return \Illuminate\Database\Eloquent\Model|static
  19501. * @static
  19502. */
  19503. public static function firstOrCreate($attributes = [], $values = [])
  19504. {
  19505. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19506. return $instance->firstOrCreate($attributes, $values);
  19507. }
  19508. /**
  19509. * Create or update a record matching the attributes, and fill it with values.
  19510. *
  19511. * @param array $attributes
  19512. * @param array $values
  19513. * @return \Illuminate\Database\Eloquent\Model|static
  19514. * @static
  19515. */
  19516. public static function updateOrCreate($attributes, $values = [])
  19517. {
  19518. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19519. return $instance->updateOrCreate($attributes, $values);
  19520. }
  19521. /**
  19522. * Execute the query and get the first result or throw an exception.
  19523. *
  19524. * @param array|string $columns
  19525. * @return \Illuminate\Database\Eloquent\Model|static
  19526. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  19527. * @static
  19528. */
  19529. public static function firstOrFail($columns = [])
  19530. {
  19531. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19532. return $instance->firstOrFail($columns);
  19533. }
  19534. /**
  19535. * Execute the query and get the first result or call a callback.
  19536. *
  19537. * @param \Closure|array|string $columns
  19538. * @param \Closure|null $callback
  19539. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  19540. * @static
  19541. */
  19542. public static function firstOr($columns = [], $callback = null)
  19543. {
  19544. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19545. return $instance->firstOr($columns, $callback);
  19546. }
  19547. /**
  19548. * Execute the query and get the first result if it's the sole matching record.
  19549. *
  19550. * @param array|string $columns
  19551. * @return \Illuminate\Database\Eloquent\Model
  19552. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  19553. * @throws \Illuminate\Database\MultipleRecordsFoundException
  19554. * @static
  19555. */
  19556. public static function sole($columns = [])
  19557. {
  19558. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19559. return $instance->sole($columns);
  19560. }
  19561. /**
  19562. * Get a single column's value from the first result of a query.
  19563. *
  19564. * @param string|\Illuminate\Database\Query\Expression $column
  19565. * @return mixed
  19566. * @static
  19567. */
  19568. public static function value($column)
  19569. {
  19570. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19571. return $instance->value($column);
  19572. }
  19573. /**
  19574. * Get a single column's value from the first result of a query if it's the sole matching record.
  19575. *
  19576. * @param string|\Illuminate\Database\Query\Expression $column
  19577. * @return mixed
  19578. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  19579. * @throws \Illuminate\Database\MultipleRecordsFoundException
  19580. * @static
  19581. */
  19582. public static function soleValue($column)
  19583. {
  19584. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19585. return $instance->soleValue($column);
  19586. }
  19587. /**
  19588. * Get a single column's value from the first result of the query or throw an exception.
  19589. *
  19590. * @param string|\Illuminate\Database\Query\Expression $column
  19591. * @return mixed
  19592. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  19593. * @static
  19594. */
  19595. public static function valueOrFail($column)
  19596. {
  19597. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19598. return $instance->valueOrFail($column);
  19599. }
  19600. /**
  19601. * Execute the query as a "select" statement.
  19602. *
  19603. * @param array|string $columns
  19604. * @return \Illuminate\Database\Eloquent\Collection|static[]
  19605. * @static
  19606. */
  19607. public static function get($columns = [])
  19608. {
  19609. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19610. return $instance->get($columns);
  19611. }
  19612. /**
  19613. * Get the hydrated models without eager loading.
  19614. *
  19615. * @param array|string $columns
  19616. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  19617. * @static
  19618. */
  19619. public static function getModels($columns = [])
  19620. {
  19621. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19622. return $instance->getModels($columns);
  19623. }
  19624. /**
  19625. * Eager load the relationships for the models.
  19626. *
  19627. * @param array $models
  19628. * @return array
  19629. * @static
  19630. */
  19631. public static function eagerLoadRelations($models)
  19632. {
  19633. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19634. return $instance->eagerLoadRelations($models);
  19635. }
  19636. /**
  19637. * Get a lazy collection for the given query.
  19638. *
  19639. * @return \Illuminate\Support\LazyCollection
  19640. * @static
  19641. */
  19642. public static function cursor()
  19643. {
  19644. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19645. return $instance->cursor();
  19646. }
  19647. /**
  19648. * Get an array with the values of a given column.
  19649. *
  19650. * @param string|\Illuminate\Database\Query\Expression $column
  19651. * @param string|null $key
  19652. * @return \Illuminate\Support\Collection
  19653. * @static
  19654. */
  19655. public static function pluck($column, $key = null)
  19656. {
  19657. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19658. return $instance->pluck($column, $key);
  19659. }
  19660. /**
  19661. * Paginate the given query.
  19662. *
  19663. * @param int|null|\Closure $perPage
  19664. * @param array|string $columns
  19665. * @param string $pageName
  19666. * @param int|null $page
  19667. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  19668. * @throws \InvalidArgumentException
  19669. * @static
  19670. */
  19671. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  19672. {
  19673. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19674. return $instance->paginate($perPage, $columns, $pageName, $page);
  19675. }
  19676. /**
  19677. * Paginate the given query into a simple paginator.
  19678. *
  19679. * @param int|null $perPage
  19680. * @param array|string $columns
  19681. * @param string $pageName
  19682. * @param int|null $page
  19683. * @return \Illuminate\Contracts\Pagination\Paginator
  19684. * @static
  19685. */
  19686. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  19687. {
  19688. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19689. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  19690. }
  19691. /**
  19692. * Paginate the given query into a cursor paginator.
  19693. *
  19694. * @param int|null $perPage
  19695. * @param array|string $columns
  19696. * @param string $cursorName
  19697. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  19698. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  19699. * @static
  19700. */
  19701. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  19702. {
  19703. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19704. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  19705. }
  19706. /**
  19707. * Save a new model and return the instance.
  19708. *
  19709. * @param array $attributes
  19710. * @return \Illuminate\Database\Eloquent\Model|$this
  19711. * @static
  19712. */
  19713. public static function create($attributes = [])
  19714. {
  19715. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19716. return $instance->create($attributes);
  19717. }
  19718. /**
  19719. * Save a new model and return the instance. Allow mass-assignment.
  19720. *
  19721. * @param array $attributes
  19722. * @return \Illuminate\Database\Eloquent\Model|$this
  19723. * @static
  19724. */
  19725. public static function forceCreate($attributes)
  19726. {
  19727. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19728. return $instance->forceCreate($attributes);
  19729. }
  19730. /**
  19731. * Insert new records or update the existing ones.
  19732. *
  19733. * @param array $values
  19734. * @param array|string $uniqueBy
  19735. * @param array|null $update
  19736. * @return int
  19737. * @static
  19738. */
  19739. public static function upsert($values, $uniqueBy, $update = null)
  19740. {
  19741. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19742. return $instance->upsert($values, $uniqueBy, $update);
  19743. }
  19744. /**
  19745. * Register a replacement for the default delete function.
  19746. *
  19747. * @param \Closure $callback
  19748. * @return void
  19749. * @static
  19750. */
  19751. public static function onDelete($callback)
  19752. {
  19753. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19754. $instance->onDelete($callback);
  19755. }
  19756. /**
  19757. * Call the given local model scopes.
  19758. *
  19759. * @param array|string $scopes
  19760. * @return static|mixed
  19761. * @static
  19762. */
  19763. public static function scopes($scopes)
  19764. {
  19765. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19766. return $instance->scopes($scopes);
  19767. }
  19768. /**
  19769. * Apply the scopes to the Eloquent builder instance and return it.
  19770. *
  19771. * @return static
  19772. * @static
  19773. */
  19774. public static function applyScopes()
  19775. {
  19776. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19777. return $instance->applyScopes();
  19778. }
  19779. /**
  19780. * Prevent the specified relations from being eager loaded.
  19781. *
  19782. * @param mixed $relations
  19783. * @return \Illuminate\Database\Eloquent\Builder|static
  19784. * @static
  19785. */
  19786. public static function without($relations)
  19787. {
  19788. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19789. return $instance->without($relations);
  19790. }
  19791. /**
  19792. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  19793. *
  19794. * @param mixed $relations
  19795. * @return \Illuminate\Database\Eloquent\Builder|static
  19796. * @static
  19797. */
  19798. public static function withOnly($relations)
  19799. {
  19800. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19801. return $instance->withOnly($relations);
  19802. }
  19803. /**
  19804. * Create a new instance of the model being queried.
  19805. *
  19806. * @param array $attributes
  19807. * @return \Illuminate\Database\Eloquent\Model|static
  19808. * @static
  19809. */
  19810. public static function newModelInstance($attributes = [])
  19811. {
  19812. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19813. return $instance->newModelInstance($attributes);
  19814. }
  19815. /**
  19816. * Apply query-time casts to the model instance.
  19817. *
  19818. * @param array $casts
  19819. * @return \Illuminate\Database\Eloquent\Builder|static
  19820. * @static
  19821. */
  19822. public static function withCasts($casts)
  19823. {
  19824. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19825. return $instance->withCasts($casts);
  19826. }
  19827. /**
  19828. * Get the underlying query builder instance.
  19829. *
  19830. * @return \Illuminate\Database\Query\Builder
  19831. * @static
  19832. */
  19833. public static function getQuery()
  19834. {
  19835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19836. return $instance->getQuery();
  19837. }
  19838. /**
  19839. * Set the underlying query builder instance.
  19840. *
  19841. * @param \Illuminate\Database\Query\Builder $query
  19842. * @return \Illuminate\Database\Eloquent\Builder|static
  19843. * @static
  19844. */
  19845. public static function setQuery($query)
  19846. {
  19847. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19848. return $instance->setQuery($query);
  19849. }
  19850. /**
  19851. * Get a base query builder instance.
  19852. *
  19853. * @return \Illuminate\Database\Query\Builder
  19854. * @static
  19855. */
  19856. public static function toBase()
  19857. {
  19858. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19859. return $instance->toBase();
  19860. }
  19861. /**
  19862. * Get the relationships being eagerly loaded.
  19863. *
  19864. * @return array
  19865. * @static
  19866. */
  19867. public static function getEagerLoads()
  19868. {
  19869. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19870. return $instance->getEagerLoads();
  19871. }
  19872. /**
  19873. * Set the relationships being eagerly loaded.
  19874. *
  19875. * @param array $eagerLoad
  19876. * @return \Illuminate\Database\Eloquent\Builder|static
  19877. * @static
  19878. */
  19879. public static function setEagerLoads($eagerLoad)
  19880. {
  19881. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19882. return $instance->setEagerLoads($eagerLoad);
  19883. }
  19884. /**
  19885. * Indicate that the given relationships should not be eagerly loaded.
  19886. *
  19887. * @param array $relations
  19888. * @return \Illuminate\Database\Eloquent\Builder|static
  19889. * @static
  19890. */
  19891. public static function withoutEagerLoad($relations)
  19892. {
  19893. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19894. return $instance->withoutEagerLoad($relations);
  19895. }
  19896. /**
  19897. * Flush the relationships being eagerly loaded.
  19898. *
  19899. * @return \Illuminate\Database\Eloquent\Builder|static
  19900. * @static
  19901. */
  19902. public static function withoutEagerLoads()
  19903. {
  19904. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19905. return $instance->withoutEagerLoads();
  19906. }
  19907. /**
  19908. * Get the model instance being queried.
  19909. *
  19910. * @return \Illuminate\Database\Eloquent\Model|static
  19911. * @static
  19912. */
  19913. public static function getModel()
  19914. {
  19915. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19916. return $instance->getModel();
  19917. }
  19918. /**
  19919. * Set a model instance for the model being queried.
  19920. *
  19921. * @param \Illuminate\Database\Eloquent\Model $model
  19922. * @return \Illuminate\Database\Eloquent\Builder|static
  19923. * @static
  19924. */
  19925. public static function setModel($model)
  19926. {
  19927. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19928. return $instance->setModel($model);
  19929. }
  19930. /**
  19931. * Get the given macro by name.
  19932. *
  19933. * @param string $name
  19934. * @return \Closure
  19935. * @static
  19936. */
  19937. public static function getMacro($name)
  19938. {
  19939. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19940. return $instance->getMacro($name);
  19941. }
  19942. /**
  19943. * Checks if a macro is registered.
  19944. *
  19945. * @param string $name
  19946. * @return bool
  19947. * @static
  19948. */
  19949. public static function hasMacro($name)
  19950. {
  19951. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19952. return $instance->hasMacro($name);
  19953. }
  19954. /**
  19955. * Get the given global macro by name.
  19956. *
  19957. * @param string $name
  19958. * @return \Closure
  19959. * @static
  19960. */
  19961. public static function getGlobalMacro($name)
  19962. {
  19963. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  19964. }
  19965. /**
  19966. * Checks if a global macro is registered.
  19967. *
  19968. * @param string $name
  19969. * @return bool
  19970. * @static
  19971. */
  19972. public static function hasGlobalMacro($name)
  19973. {
  19974. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  19975. }
  19976. /**
  19977. * Clone the Eloquent query builder.
  19978. *
  19979. * @return static
  19980. * @static
  19981. */
  19982. public static function clone()
  19983. {
  19984. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19985. return $instance->clone();
  19986. }
  19987. /**
  19988. * Chunk the results of the query.
  19989. *
  19990. * @param int $count
  19991. * @param callable $callback
  19992. * @return bool
  19993. * @static
  19994. */
  19995. public static function chunk($count, $callback)
  19996. {
  19997. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19998. return $instance->chunk($count, $callback);
  19999. }
  20000. /**
  20001. * Run a map over each item while chunking.
  20002. *
  20003. * @param callable $callback
  20004. * @param int $count
  20005. * @return \Illuminate\Support\Collection
  20006. * @static
  20007. */
  20008. public static function chunkMap($callback, $count = 1000)
  20009. {
  20010. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20011. return $instance->chunkMap($callback, $count);
  20012. }
  20013. /**
  20014. * Execute a callback over each item while chunking.
  20015. *
  20016. * @param callable $callback
  20017. * @param int $count
  20018. * @return bool
  20019. * @throws \RuntimeException
  20020. * @static
  20021. */
  20022. public static function each($callback, $count = 1000)
  20023. {
  20024. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20025. return $instance->each($callback, $count);
  20026. }
  20027. /**
  20028. * Chunk the results of a query by comparing IDs.
  20029. *
  20030. * @param int $count
  20031. * @param callable $callback
  20032. * @param string|null $column
  20033. * @param string|null $alias
  20034. * @return bool
  20035. * @static
  20036. */
  20037. public static function chunkById($count, $callback, $column = null, $alias = null)
  20038. {
  20039. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20040. return $instance->chunkById($count, $callback, $column, $alias);
  20041. }
  20042. /**
  20043. * Execute a callback over each item while chunking by ID.
  20044. *
  20045. * @param callable $callback
  20046. * @param int $count
  20047. * @param string|null $column
  20048. * @param string|null $alias
  20049. * @return bool
  20050. * @static
  20051. */
  20052. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  20053. {
  20054. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20055. return $instance->eachById($callback, $count, $column, $alias);
  20056. }
  20057. /**
  20058. * Query lazily, by chunks of the given size.
  20059. *
  20060. * @param int $chunkSize
  20061. * @return \Illuminate\Support\LazyCollection
  20062. * @throws \InvalidArgumentException
  20063. * @static
  20064. */
  20065. public static function lazy($chunkSize = 1000)
  20066. {
  20067. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20068. return $instance->lazy($chunkSize);
  20069. }
  20070. /**
  20071. * Query lazily, by chunking the results of a query by comparing IDs.
  20072. *
  20073. * @param int $chunkSize
  20074. * @param string|null $column
  20075. * @param string|null $alias
  20076. * @return \Illuminate\Support\LazyCollection
  20077. * @throws \InvalidArgumentException
  20078. * @static
  20079. */
  20080. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  20081. {
  20082. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20083. return $instance->lazyById($chunkSize, $column, $alias);
  20084. }
  20085. /**
  20086. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  20087. *
  20088. * @param int $chunkSize
  20089. * @param string|null $column
  20090. * @param string|null $alias
  20091. * @return \Illuminate\Support\LazyCollection
  20092. * @throws \InvalidArgumentException
  20093. * @static
  20094. */
  20095. public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  20096. {
  20097. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20098. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  20099. }
  20100. /**
  20101. * Execute the query and get the first result.
  20102. *
  20103. * @param array|string $columns
  20104. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  20105. * @static
  20106. */
  20107. public static function first($columns = [])
  20108. {
  20109. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20110. return $instance->first($columns);
  20111. }
  20112. /**
  20113. * Execute the query and get the first result if it's the sole matching record.
  20114. *
  20115. * @param array|string $columns
  20116. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  20117. * @throws \Illuminate\Database\RecordsNotFoundException
  20118. * @throws \Illuminate\Database\MultipleRecordsFoundException
  20119. * @static
  20120. */
  20121. public static function baseSole($columns = [])
  20122. {
  20123. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20124. return $instance->baseSole($columns);
  20125. }
  20126. /**
  20127. * Pass the query to a given callback.
  20128. *
  20129. * @param callable $callback
  20130. * @return \Illuminate\Database\Eloquent\Builder|static
  20131. * @static
  20132. */
  20133. public static function tap($callback)
  20134. {
  20135. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20136. return $instance->tap($callback);
  20137. }
  20138. /**
  20139. * Apply the callback if the given "value" is (or resolves to) truthy.
  20140. *
  20141. * @template TWhenParameter
  20142. * @template TWhenReturnType
  20143. * @param \Illuminate\Database\Eloquent\(\Closure($this): TWhenParameter)|TWhenParameter|null $value
  20144. * @param \Illuminate\Database\Eloquent\(callable($this, TWhenParameter): TWhenReturnType)|null $callback
  20145. * @param \Illuminate\Database\Eloquent\(callable($this, TWhenParameter): TWhenReturnType)|null $default
  20146. * @return $this|\Illuminate\Database\Eloquent\TWhenReturnType
  20147. * @static
  20148. */
  20149. public static function when($value = null, $callback = null, $default = null)
  20150. {
  20151. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20152. return $instance->when($value, $callback, $default);
  20153. }
  20154. /**
  20155. * Apply the callback if the given "value" is (or resolves to) falsy.
  20156. *
  20157. * @template TUnlessParameter
  20158. * @template TUnlessReturnType
  20159. * @param \Illuminate\Database\Eloquent\(\Closure($this): TUnlessParameter)|TUnlessParameter|null $value
  20160. * @param \Illuminate\Database\Eloquent\(callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  20161. * @param \Illuminate\Database\Eloquent\(callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  20162. * @return $this|\Illuminate\Database\Eloquent\TUnlessReturnType
  20163. * @static
  20164. */
  20165. public static function unless($value = null, $callback = null, $default = null)
  20166. {
  20167. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20168. return $instance->unless($value, $callback, $default);
  20169. }
  20170. /**
  20171. * Add a relationship count / exists condition to the query.
  20172. *
  20173. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  20174. * @param string $operator
  20175. * @param int $count
  20176. * @param string $boolean
  20177. * @param \Closure|null $callback
  20178. * @return \Illuminate\Database\Eloquent\Builder|static
  20179. * @throws \RuntimeException
  20180. * @static
  20181. */
  20182. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  20183. {
  20184. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20185. return $instance->has($relation, $operator, $count, $boolean, $callback);
  20186. }
  20187. /**
  20188. * Add a relationship count / exists condition to the query with an "or".
  20189. *
  20190. * @param string $relation
  20191. * @param string $operator
  20192. * @param int $count
  20193. * @return \Illuminate\Database\Eloquent\Builder|static
  20194. * @static
  20195. */
  20196. public static function orHas($relation, $operator = '>=', $count = 1)
  20197. {
  20198. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20199. return $instance->orHas($relation, $operator, $count);
  20200. }
  20201. /**
  20202. * Add a relationship count / exists condition to the query.
  20203. *
  20204. * @param string $relation
  20205. * @param string $boolean
  20206. * @param \Closure|null $callback
  20207. * @return \Illuminate\Database\Eloquent\Builder|static
  20208. * @static
  20209. */
  20210. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  20211. {
  20212. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20213. return $instance->doesntHave($relation, $boolean, $callback);
  20214. }
  20215. /**
  20216. * Add a relationship count / exists condition to the query with an "or".
  20217. *
  20218. * @param string $relation
  20219. * @return \Illuminate\Database\Eloquent\Builder|static
  20220. * @static
  20221. */
  20222. public static function orDoesntHave($relation)
  20223. {
  20224. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20225. return $instance->orDoesntHave($relation);
  20226. }
  20227. /**
  20228. * Add a relationship count / exists condition to the query with where clauses.
  20229. *
  20230. * @param string $relation
  20231. * @param \Closure|null $callback
  20232. * @param string $operator
  20233. * @param int $count
  20234. * @return \Illuminate\Database\Eloquent\Builder|static
  20235. * @static
  20236. */
  20237. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  20238. {
  20239. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20240. return $instance->whereHas($relation, $callback, $operator, $count);
  20241. }
  20242. /**
  20243. * Add a relationship count / exists condition to the query with where clauses.
  20244. *
  20245. * Also load the relationship with same condition.
  20246. *
  20247. * @param string $relation
  20248. * @param \Closure|null $callback
  20249. * @param string $operator
  20250. * @param int $count
  20251. * @return \Illuminate\Database\Eloquent\Builder|static
  20252. * @static
  20253. */
  20254. public static function withWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  20255. {
  20256. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20257. return $instance->withWhereHas($relation, $callback, $operator, $count);
  20258. }
  20259. /**
  20260. * Add a relationship count / exists condition to the query with where clauses and an "or".
  20261. *
  20262. * @param string $relation
  20263. * @param \Closure|null $callback
  20264. * @param string $operator
  20265. * @param int $count
  20266. * @return \Illuminate\Database\Eloquent\Builder|static
  20267. * @static
  20268. */
  20269. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  20270. {
  20271. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20272. return $instance->orWhereHas($relation, $callback, $operator, $count);
  20273. }
  20274. /**
  20275. * Add a relationship count / exists condition to the query with where clauses.
  20276. *
  20277. * @param string $relation
  20278. * @param \Closure|null $callback
  20279. * @return \Illuminate\Database\Eloquent\Builder|static
  20280. * @static
  20281. */
  20282. public static function whereDoesntHave($relation, $callback = null)
  20283. {
  20284. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20285. return $instance->whereDoesntHave($relation, $callback);
  20286. }
  20287. /**
  20288. * Add a relationship count / exists condition to the query with where clauses and an "or".
  20289. *
  20290. * @param string $relation
  20291. * @param \Closure|null $callback
  20292. * @return \Illuminate\Database\Eloquent\Builder|static
  20293. * @static
  20294. */
  20295. public static function orWhereDoesntHave($relation, $callback = null)
  20296. {
  20297. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20298. return $instance->orWhereDoesntHave($relation, $callback);
  20299. }
  20300. /**
  20301. * Add a polymorphic relationship count / exists condition to the query.
  20302. *
  20303. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20304. * @param string|array $types
  20305. * @param string $operator
  20306. * @param int $count
  20307. * @param string $boolean
  20308. * @param \Closure|null $callback
  20309. * @return \Illuminate\Database\Eloquent\Builder|static
  20310. * @static
  20311. */
  20312. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  20313. {
  20314. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20315. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  20316. }
  20317. /**
  20318. * Add a polymorphic relationship count / exists condition to the query with an "or".
  20319. *
  20320. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20321. * @param string|array $types
  20322. * @param string $operator
  20323. * @param int $count
  20324. * @return \Illuminate\Database\Eloquent\Builder|static
  20325. * @static
  20326. */
  20327. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  20328. {
  20329. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20330. return $instance->orHasMorph($relation, $types, $operator, $count);
  20331. }
  20332. /**
  20333. * Add a polymorphic relationship count / exists condition to the query.
  20334. *
  20335. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20336. * @param string|array $types
  20337. * @param string $boolean
  20338. * @param \Closure|null $callback
  20339. * @return \Illuminate\Database\Eloquent\Builder|static
  20340. * @static
  20341. */
  20342. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  20343. {
  20344. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20345. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  20346. }
  20347. /**
  20348. * Add a polymorphic relationship count / exists condition to the query with an "or".
  20349. *
  20350. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20351. * @param string|array $types
  20352. * @return \Illuminate\Database\Eloquent\Builder|static
  20353. * @static
  20354. */
  20355. public static function orDoesntHaveMorph($relation, $types)
  20356. {
  20357. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20358. return $instance->orDoesntHaveMorph($relation, $types);
  20359. }
  20360. /**
  20361. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  20362. *
  20363. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20364. * @param string|array $types
  20365. * @param \Closure|null $callback
  20366. * @param string $operator
  20367. * @param int $count
  20368. * @return \Illuminate\Database\Eloquent\Builder|static
  20369. * @static
  20370. */
  20371. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  20372. {
  20373. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20374. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  20375. }
  20376. /**
  20377. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  20378. *
  20379. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20380. * @param string|array $types
  20381. * @param \Closure|null $callback
  20382. * @param string $operator
  20383. * @param int $count
  20384. * @return \Illuminate\Database\Eloquent\Builder|static
  20385. * @static
  20386. */
  20387. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  20388. {
  20389. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20390. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  20391. }
  20392. /**
  20393. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  20394. *
  20395. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20396. * @param string|array $types
  20397. * @param \Closure|null $callback
  20398. * @return \Illuminate\Database\Eloquent\Builder|static
  20399. * @static
  20400. */
  20401. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  20402. {
  20403. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20404. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  20405. }
  20406. /**
  20407. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  20408. *
  20409. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20410. * @param string|array $types
  20411. * @param \Closure|null $callback
  20412. * @return \Illuminate\Database\Eloquent\Builder|static
  20413. * @static
  20414. */
  20415. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  20416. {
  20417. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20418. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  20419. }
  20420. /**
  20421. * Add a basic where clause to a relationship query.
  20422. *
  20423. * @param string $relation
  20424. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  20425. * @param mixed $operator
  20426. * @param mixed $value
  20427. * @return \Illuminate\Database\Eloquent\Builder|static
  20428. * @static
  20429. */
  20430. public static function whereRelation($relation, $column, $operator = null, $value = null)
  20431. {
  20432. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20433. return $instance->whereRelation($relation, $column, $operator, $value);
  20434. }
  20435. /**
  20436. * Add an "or where" clause to a relationship query.
  20437. *
  20438. * @param string $relation
  20439. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  20440. * @param mixed $operator
  20441. * @param mixed $value
  20442. * @return \Illuminate\Database\Eloquent\Builder|static
  20443. * @static
  20444. */
  20445. public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  20446. {
  20447. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20448. return $instance->orWhereRelation($relation, $column, $operator, $value);
  20449. }
  20450. /**
  20451. * Add a polymorphic relationship condition to the query with a where clause.
  20452. *
  20453. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20454. * @param string|array $types
  20455. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  20456. * @param mixed $operator
  20457. * @param mixed $value
  20458. * @return \Illuminate\Database\Eloquent\Builder|static
  20459. * @static
  20460. */
  20461. public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  20462. {
  20463. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20464. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  20465. }
  20466. /**
  20467. * Add a polymorphic relationship condition to the query with an "or where" clause.
  20468. *
  20469. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20470. * @param string|array $types
  20471. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  20472. * @param mixed $operator
  20473. * @param mixed $value
  20474. * @return \Illuminate\Database\Eloquent\Builder|static
  20475. * @static
  20476. */
  20477. public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  20478. {
  20479. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20480. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  20481. }
  20482. /**
  20483. * Add a morph-to relationship condition to the query.
  20484. *
  20485. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20486. * @param \Illuminate\Database\Eloquent\Model|string $model
  20487. * @return \Illuminate\Database\Eloquent\Builder|static
  20488. * @static
  20489. */
  20490. public static function whereMorphedTo($relation, $model, $boolean = 'and')
  20491. {
  20492. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20493. return $instance->whereMorphedTo($relation, $model, $boolean);
  20494. }
  20495. /**
  20496. * Add a not morph-to relationship condition to the query.
  20497. *
  20498. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20499. * @param \Illuminate\Database\Eloquent\Model|string $model
  20500. * @return \Illuminate\Database\Eloquent\Builder|static
  20501. * @static
  20502. */
  20503. public static function whereNotMorphedTo($relation, $model, $boolean = 'and')
  20504. {
  20505. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20506. return $instance->whereNotMorphedTo($relation, $model, $boolean);
  20507. }
  20508. /**
  20509. * Add a morph-to relationship condition to the query with an "or where" clause.
  20510. *
  20511. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20512. * @param \Illuminate\Database\Eloquent\Model|string $model
  20513. * @return \Illuminate\Database\Eloquent\Builder|static
  20514. * @static
  20515. */
  20516. public static function orWhereMorphedTo($relation, $model)
  20517. {
  20518. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20519. return $instance->orWhereMorphedTo($relation, $model);
  20520. }
  20521. /**
  20522. * Add a not morph-to relationship condition to the query with an "or where" clause.
  20523. *
  20524. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  20525. * @param \Illuminate\Database\Eloquent\Model|string $model
  20526. * @return \Illuminate\Database\Eloquent\Builder|static
  20527. * @static
  20528. */
  20529. public static function orWhereNotMorphedTo($relation, $model)
  20530. {
  20531. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20532. return $instance->orWhereNotMorphedTo($relation, $model);
  20533. }
  20534. /**
  20535. * Add a "belongs to" relationship where clause to the query.
  20536. *
  20537. * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<\Illuminate\Database\Eloquent\Model> $related
  20538. * @param string|null $relationshipName
  20539. * @param string $boolean
  20540. * @return \Illuminate\Database\Eloquent\Builder|static
  20541. * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
  20542. * @static
  20543. */
  20544. public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  20545. {
  20546. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20547. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  20548. }
  20549. /**
  20550. * Add an "BelongsTo" relationship with an "or where" clause to the query.
  20551. *
  20552. * @param \Illuminate\Database\Eloquent\Model $related
  20553. * @param string|null $relationshipName
  20554. * @return \Illuminate\Database\Eloquent\Builder|static
  20555. * @throws \RuntimeException
  20556. * @static
  20557. */
  20558. public static function orWhereBelongsTo($related, $relationshipName = null)
  20559. {
  20560. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20561. return $instance->orWhereBelongsTo($related, $relationshipName);
  20562. }
  20563. /**
  20564. * Add subselect queries to include an aggregate value for a relationship.
  20565. *
  20566. * @param mixed $relations
  20567. * @param string $column
  20568. * @param string $function
  20569. * @return \Illuminate\Database\Eloquent\Builder|static
  20570. * @static
  20571. */
  20572. public static function withAggregate($relations, $column, $function = null)
  20573. {
  20574. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20575. return $instance->withAggregate($relations, $column, $function);
  20576. }
  20577. /**
  20578. * Add subselect queries to count the relations.
  20579. *
  20580. * @param mixed $relations
  20581. * @return \Illuminate\Database\Eloquent\Builder|static
  20582. * @static
  20583. */
  20584. public static function withCount($relations)
  20585. {
  20586. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20587. return $instance->withCount($relations);
  20588. }
  20589. /**
  20590. * Add subselect queries to include the max of the relation's column.
  20591. *
  20592. * @param string|array $relation
  20593. * @param string $column
  20594. * @return \Illuminate\Database\Eloquent\Builder|static
  20595. * @static
  20596. */
  20597. public static function withMax($relation, $column)
  20598. {
  20599. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20600. return $instance->withMax($relation, $column);
  20601. }
  20602. /**
  20603. * Add subselect queries to include the min of the relation's column.
  20604. *
  20605. * @param string|array $relation
  20606. * @param string $column
  20607. * @return \Illuminate\Database\Eloquent\Builder|static
  20608. * @static
  20609. */
  20610. public static function withMin($relation, $column)
  20611. {
  20612. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20613. return $instance->withMin($relation, $column);
  20614. }
  20615. /**
  20616. * Add subselect queries to include the sum of the relation's column.
  20617. *
  20618. * @param string|array $relation
  20619. * @param string $column
  20620. * @return \Illuminate\Database\Eloquent\Builder|static
  20621. * @static
  20622. */
  20623. public static function withSum($relation, $column)
  20624. {
  20625. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20626. return $instance->withSum($relation, $column);
  20627. }
  20628. /**
  20629. * Add subselect queries to include the average of the relation's column.
  20630. *
  20631. * @param string|array $relation
  20632. * @param string $column
  20633. * @return \Illuminate\Database\Eloquent\Builder|static
  20634. * @static
  20635. */
  20636. public static function withAvg($relation, $column)
  20637. {
  20638. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20639. return $instance->withAvg($relation, $column);
  20640. }
  20641. /**
  20642. * Add subselect queries to include the existence of related models.
  20643. *
  20644. * @param string|array $relation
  20645. * @return \Illuminate\Database\Eloquent\Builder|static
  20646. * @static
  20647. */
  20648. public static function withExists($relation)
  20649. {
  20650. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20651. return $instance->withExists($relation);
  20652. }
  20653. /**
  20654. * Merge the where constraints from another query to the current query.
  20655. *
  20656. * @param \Illuminate\Database\Eloquent\Builder $from
  20657. * @return \Illuminate\Database\Eloquent\Builder|static
  20658. * @static
  20659. */
  20660. public static function mergeConstraintsFrom($from)
  20661. {
  20662. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  20663. return $instance->mergeConstraintsFrom($from);
  20664. }
  20665. /**
  20666. * Set the columns to be selected.
  20667. *
  20668. * @param array|mixed $columns
  20669. * @return \Illuminate\Database\Query\Builder
  20670. * @static
  20671. */
  20672. public static function select($columns = [])
  20673. {
  20674. /** @var \Illuminate\Database\Query\Builder $instance */
  20675. return $instance->select($columns);
  20676. }
  20677. /**
  20678. * Add a subselect expression to the query.
  20679. *
  20680. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20681. * @param string $as
  20682. * @return \Illuminate\Database\Query\Builder
  20683. * @throws \InvalidArgumentException
  20684. * @static
  20685. */
  20686. public static function selectSub($query, $as)
  20687. {
  20688. /** @var \Illuminate\Database\Query\Builder $instance */
  20689. return $instance->selectSub($query, $as);
  20690. }
  20691. /**
  20692. * Add a new "raw" select expression to the query.
  20693. *
  20694. * @param string $expression
  20695. * @param array $bindings
  20696. * @return \Illuminate\Database\Query\Builder
  20697. * @static
  20698. */
  20699. public static function selectRaw($expression, $bindings = [])
  20700. {
  20701. /** @var \Illuminate\Database\Query\Builder $instance */
  20702. return $instance->selectRaw($expression, $bindings);
  20703. }
  20704. /**
  20705. * Makes "from" fetch from a subquery.
  20706. *
  20707. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20708. * @param string $as
  20709. * @return \Illuminate\Database\Query\Builder
  20710. * @throws \InvalidArgumentException
  20711. * @static
  20712. */
  20713. public static function fromSub($query, $as)
  20714. {
  20715. /** @var \Illuminate\Database\Query\Builder $instance */
  20716. return $instance->fromSub($query, $as);
  20717. }
  20718. /**
  20719. * Add a raw from clause to the query.
  20720. *
  20721. * @param string $expression
  20722. * @param mixed $bindings
  20723. * @return \Illuminate\Database\Query\Builder
  20724. * @static
  20725. */
  20726. public static function fromRaw($expression, $bindings = [])
  20727. {
  20728. /** @var \Illuminate\Database\Query\Builder $instance */
  20729. return $instance->fromRaw($expression, $bindings);
  20730. }
  20731. /**
  20732. * Add a new select column to the query.
  20733. *
  20734. * @param array|mixed $column
  20735. * @return \Illuminate\Database\Query\Builder
  20736. * @static
  20737. */
  20738. public static function addSelect($column)
  20739. {
  20740. /** @var \Illuminate\Database\Query\Builder $instance */
  20741. return $instance->addSelect($column);
  20742. }
  20743. /**
  20744. * Force the query to only return distinct results.
  20745. *
  20746. * @return \Illuminate\Database\Query\Builder
  20747. * @static
  20748. */
  20749. public static function distinct()
  20750. {
  20751. /** @var \Illuminate\Database\Query\Builder $instance */
  20752. return $instance->distinct();
  20753. }
  20754. /**
  20755. * Set the table which the query is targeting.
  20756. *
  20757. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $table
  20758. * @param string|null $as
  20759. * @return \Illuminate\Database\Query\Builder
  20760. * @static
  20761. */
  20762. public static function from($table, $as = null)
  20763. {
  20764. /** @var \Illuminate\Database\Query\Builder $instance */
  20765. return $instance->from($table, $as);
  20766. }
  20767. /**
  20768. * Add a join clause to the query.
  20769. *
  20770. * @param string $table
  20771. * @param \Closure|string $first
  20772. * @param string|null $operator
  20773. * @param string|null $second
  20774. * @param string $type
  20775. * @param bool $where
  20776. * @return \Illuminate\Database\Query\Builder
  20777. * @static
  20778. */
  20779. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  20780. {
  20781. /** @var \Illuminate\Database\Query\Builder $instance */
  20782. return $instance->join($table, $first, $operator, $second, $type, $where);
  20783. }
  20784. /**
  20785. * Add a "join where" clause to the query.
  20786. *
  20787. * @param string $table
  20788. * @param \Closure|string $first
  20789. * @param string $operator
  20790. * @param string $second
  20791. * @param string $type
  20792. * @return \Illuminate\Database\Query\Builder
  20793. * @static
  20794. */
  20795. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  20796. {
  20797. /** @var \Illuminate\Database\Query\Builder $instance */
  20798. return $instance->joinWhere($table, $first, $operator, $second, $type);
  20799. }
  20800. /**
  20801. * Add a subquery join clause to the query.
  20802. *
  20803. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20804. * @param string $as
  20805. * @param \Closure|string $first
  20806. * @param string|null $operator
  20807. * @param string|null $second
  20808. * @param string $type
  20809. * @param bool $where
  20810. * @return \Illuminate\Database\Query\Builder
  20811. * @throws \InvalidArgumentException
  20812. * @static
  20813. */
  20814. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  20815. {
  20816. /** @var \Illuminate\Database\Query\Builder $instance */
  20817. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  20818. }
  20819. /**
  20820. * Add a left join to the query.
  20821. *
  20822. * @param string $table
  20823. * @param \Closure|string $first
  20824. * @param string|null $operator
  20825. * @param string|null $second
  20826. * @return \Illuminate\Database\Query\Builder
  20827. * @static
  20828. */
  20829. public static function leftJoin($table, $first, $operator = null, $second = null)
  20830. {
  20831. /** @var \Illuminate\Database\Query\Builder $instance */
  20832. return $instance->leftJoin($table, $first, $operator, $second);
  20833. }
  20834. /**
  20835. * Add a "join where" clause to the query.
  20836. *
  20837. * @param string $table
  20838. * @param \Closure|string $first
  20839. * @param string $operator
  20840. * @param string $second
  20841. * @return \Illuminate\Database\Query\Builder
  20842. * @static
  20843. */
  20844. public static function leftJoinWhere($table, $first, $operator, $second)
  20845. {
  20846. /** @var \Illuminate\Database\Query\Builder $instance */
  20847. return $instance->leftJoinWhere($table, $first, $operator, $second);
  20848. }
  20849. /**
  20850. * Add a subquery left join to the query.
  20851. *
  20852. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20853. * @param string $as
  20854. * @param \Closure|string $first
  20855. * @param string|null $operator
  20856. * @param string|null $second
  20857. * @return \Illuminate\Database\Query\Builder
  20858. * @static
  20859. */
  20860. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  20861. {
  20862. /** @var \Illuminate\Database\Query\Builder $instance */
  20863. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  20864. }
  20865. /**
  20866. * Add a right join to the query.
  20867. *
  20868. * @param string $table
  20869. * @param \Closure|string $first
  20870. * @param string|null $operator
  20871. * @param string|null $second
  20872. * @return \Illuminate\Database\Query\Builder
  20873. * @static
  20874. */
  20875. public static function rightJoin($table, $first, $operator = null, $second = null)
  20876. {
  20877. /** @var \Illuminate\Database\Query\Builder $instance */
  20878. return $instance->rightJoin($table, $first, $operator, $second);
  20879. }
  20880. /**
  20881. * Add a "right join where" clause to the query.
  20882. *
  20883. * @param string $table
  20884. * @param \Closure|string $first
  20885. * @param string $operator
  20886. * @param string $second
  20887. * @return \Illuminate\Database\Query\Builder
  20888. * @static
  20889. */
  20890. public static function rightJoinWhere($table, $first, $operator, $second)
  20891. {
  20892. /** @var \Illuminate\Database\Query\Builder $instance */
  20893. return $instance->rightJoinWhere($table, $first, $operator, $second);
  20894. }
  20895. /**
  20896. * Add a subquery right join to the query.
  20897. *
  20898. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20899. * @param string $as
  20900. * @param \Closure|string $first
  20901. * @param string|null $operator
  20902. * @param string|null $second
  20903. * @return \Illuminate\Database\Query\Builder
  20904. * @static
  20905. */
  20906. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  20907. {
  20908. /** @var \Illuminate\Database\Query\Builder $instance */
  20909. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  20910. }
  20911. /**
  20912. * Add a "cross join" clause to the query.
  20913. *
  20914. * @param string $table
  20915. * @param \Closure|string|null $first
  20916. * @param string|null $operator
  20917. * @param string|null $second
  20918. * @return \Illuminate\Database\Query\Builder
  20919. * @static
  20920. */
  20921. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  20922. {
  20923. /** @var \Illuminate\Database\Query\Builder $instance */
  20924. return $instance->crossJoin($table, $first, $operator, $second);
  20925. }
  20926. /**
  20927. * Add a subquery cross join to the query.
  20928. *
  20929. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20930. * @param string $as
  20931. * @return \Illuminate\Database\Query\Builder
  20932. * @static
  20933. */
  20934. public static function crossJoinSub($query, $as)
  20935. {
  20936. /** @var \Illuminate\Database\Query\Builder $instance */
  20937. return $instance->crossJoinSub($query, $as);
  20938. }
  20939. /**
  20940. * Merge an array of where clauses and bindings.
  20941. *
  20942. * @param array $wheres
  20943. * @param array $bindings
  20944. * @return \Illuminate\Database\Query\Builder
  20945. * @static
  20946. */
  20947. public static function mergeWheres($wheres, $bindings)
  20948. {
  20949. /** @var \Illuminate\Database\Query\Builder $instance */
  20950. return $instance->mergeWheres($wheres, $bindings);
  20951. }
  20952. /**
  20953. * Prepare the value and operator for a where clause.
  20954. *
  20955. * @param string $value
  20956. * @param string $operator
  20957. * @param bool $useDefault
  20958. * @return array
  20959. * @throws \InvalidArgumentException
  20960. * @static
  20961. */
  20962. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  20963. {
  20964. /** @var \Illuminate\Database\Query\Builder $instance */
  20965. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  20966. }
  20967. /**
  20968. * Add a "where" clause comparing two columns to the query.
  20969. *
  20970. * @param string|array $first
  20971. * @param string|null $operator
  20972. * @param string|null $second
  20973. * @param string|null $boolean
  20974. * @return \Illuminate\Database\Query\Builder
  20975. * @static
  20976. */
  20977. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  20978. {
  20979. /** @var \Illuminate\Database\Query\Builder $instance */
  20980. return $instance->whereColumn($first, $operator, $second, $boolean);
  20981. }
  20982. /**
  20983. * Add an "or where" clause comparing two columns to the query.
  20984. *
  20985. * @param string|array $first
  20986. * @param string|null $operator
  20987. * @param string|null $second
  20988. * @return \Illuminate\Database\Query\Builder
  20989. * @static
  20990. */
  20991. public static function orWhereColumn($first, $operator = null, $second = null)
  20992. {
  20993. /** @var \Illuminate\Database\Query\Builder $instance */
  20994. return $instance->orWhereColumn($first, $operator, $second);
  20995. }
  20996. /**
  20997. * Add a raw where clause to the query.
  20998. *
  20999. * @param string $sql
  21000. * @param mixed $bindings
  21001. * @param string $boolean
  21002. * @return \Illuminate\Database\Query\Builder
  21003. * @static
  21004. */
  21005. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  21006. {
  21007. /** @var \Illuminate\Database\Query\Builder $instance */
  21008. return $instance->whereRaw($sql, $bindings, $boolean);
  21009. }
  21010. /**
  21011. * Add a raw or where clause to the query.
  21012. *
  21013. * @param string $sql
  21014. * @param mixed $bindings
  21015. * @return \Illuminate\Database\Query\Builder
  21016. * @static
  21017. */
  21018. public static function orWhereRaw($sql, $bindings = [])
  21019. {
  21020. /** @var \Illuminate\Database\Query\Builder $instance */
  21021. return $instance->orWhereRaw($sql, $bindings);
  21022. }
  21023. /**
  21024. * Add a "where in" clause to the query.
  21025. *
  21026. * @param string $column
  21027. * @param mixed $values
  21028. * @param string $boolean
  21029. * @param bool $not
  21030. * @return \Illuminate\Database\Query\Builder
  21031. * @static
  21032. */
  21033. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  21034. {
  21035. /** @var \Illuminate\Database\Query\Builder $instance */
  21036. return $instance->whereIn($column, $values, $boolean, $not);
  21037. }
  21038. /**
  21039. * Add an "or where in" clause to the query.
  21040. *
  21041. * @param string $column
  21042. * @param mixed $values
  21043. * @return \Illuminate\Database\Query\Builder
  21044. * @static
  21045. */
  21046. public static function orWhereIn($column, $values)
  21047. {
  21048. /** @var \Illuminate\Database\Query\Builder $instance */
  21049. return $instance->orWhereIn($column, $values);
  21050. }
  21051. /**
  21052. * Add a "where not in" clause to the query.
  21053. *
  21054. * @param string $column
  21055. * @param mixed $values
  21056. * @param string $boolean
  21057. * @return \Illuminate\Database\Query\Builder
  21058. * @static
  21059. */
  21060. public static function whereNotIn($column, $values, $boolean = 'and')
  21061. {
  21062. /** @var \Illuminate\Database\Query\Builder $instance */
  21063. return $instance->whereNotIn($column, $values, $boolean);
  21064. }
  21065. /**
  21066. * Add an "or where not in" clause to the query.
  21067. *
  21068. * @param string $column
  21069. * @param mixed $values
  21070. * @return \Illuminate\Database\Query\Builder
  21071. * @static
  21072. */
  21073. public static function orWhereNotIn($column, $values)
  21074. {
  21075. /** @var \Illuminate\Database\Query\Builder $instance */
  21076. return $instance->orWhereNotIn($column, $values);
  21077. }
  21078. /**
  21079. * Add a "where in raw" clause for integer values to the query.
  21080. *
  21081. * @param string $column
  21082. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  21083. * @param string $boolean
  21084. * @param bool $not
  21085. * @return \Illuminate\Database\Query\Builder
  21086. * @static
  21087. */
  21088. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  21089. {
  21090. /** @var \Illuminate\Database\Query\Builder $instance */
  21091. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  21092. }
  21093. /**
  21094. * Add an "or where in raw" clause for integer values to the query.
  21095. *
  21096. * @param string $column
  21097. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  21098. * @return \Illuminate\Database\Query\Builder
  21099. * @static
  21100. */
  21101. public static function orWhereIntegerInRaw($column, $values)
  21102. {
  21103. /** @var \Illuminate\Database\Query\Builder $instance */
  21104. return $instance->orWhereIntegerInRaw($column, $values);
  21105. }
  21106. /**
  21107. * Add a "where not in raw" clause for integer values to the query.
  21108. *
  21109. * @param string $column
  21110. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  21111. * @param string $boolean
  21112. * @return \Illuminate\Database\Query\Builder
  21113. * @static
  21114. */
  21115. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  21116. {
  21117. /** @var \Illuminate\Database\Query\Builder $instance */
  21118. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  21119. }
  21120. /**
  21121. * Add an "or where not in raw" clause for integer values to the query.
  21122. *
  21123. * @param string $column
  21124. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  21125. * @return \Illuminate\Database\Query\Builder
  21126. * @static
  21127. */
  21128. public static function orWhereIntegerNotInRaw($column, $values)
  21129. {
  21130. /** @var \Illuminate\Database\Query\Builder $instance */
  21131. return $instance->orWhereIntegerNotInRaw($column, $values);
  21132. }
  21133. /**
  21134. * Add a "where null" clause to the query.
  21135. *
  21136. * @param string|array $columns
  21137. * @param string $boolean
  21138. * @param bool $not
  21139. * @return \Illuminate\Database\Query\Builder
  21140. * @static
  21141. */
  21142. public static function whereNull($columns, $boolean = 'and', $not = false)
  21143. {
  21144. /** @var \Illuminate\Database\Query\Builder $instance */
  21145. return $instance->whereNull($columns, $boolean, $not);
  21146. }
  21147. /**
  21148. * Add an "or where null" clause to the query.
  21149. *
  21150. * @param string|array $column
  21151. * @return \Illuminate\Database\Query\Builder
  21152. * @static
  21153. */
  21154. public static function orWhereNull($column)
  21155. {
  21156. /** @var \Illuminate\Database\Query\Builder $instance */
  21157. return $instance->orWhereNull($column);
  21158. }
  21159. /**
  21160. * Add a "where not null" clause to the query.
  21161. *
  21162. * @param string|array $columns
  21163. * @param string $boolean
  21164. * @return \Illuminate\Database\Query\Builder
  21165. * @static
  21166. */
  21167. public static function whereNotNull($columns, $boolean = 'and')
  21168. {
  21169. /** @var \Illuminate\Database\Query\Builder $instance */
  21170. return $instance->whereNotNull($columns, $boolean);
  21171. }
  21172. /**
  21173. * Add a where between statement to the query.
  21174. *
  21175. * @param string|\Illuminate\Database\Query\Expression $column
  21176. * @param \Illuminate\Database\Query\iterable $values
  21177. * @param string $boolean
  21178. * @param bool $not
  21179. * @return \Illuminate\Database\Query\Builder
  21180. * @static
  21181. */
  21182. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  21183. {
  21184. /** @var \Illuminate\Database\Query\Builder $instance */
  21185. return $instance->whereBetween($column, $values, $boolean, $not);
  21186. }
  21187. /**
  21188. * Add a where between statement using columns to the query.
  21189. *
  21190. * @param string $column
  21191. * @param array $values
  21192. * @param string $boolean
  21193. * @param bool $not
  21194. * @return \Illuminate\Database\Query\Builder
  21195. * @static
  21196. */
  21197. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  21198. {
  21199. /** @var \Illuminate\Database\Query\Builder $instance */
  21200. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  21201. }
  21202. /**
  21203. * Add an or where between statement to the query.
  21204. *
  21205. * @param string $column
  21206. * @param \Illuminate\Database\Query\iterable $values
  21207. * @return \Illuminate\Database\Query\Builder
  21208. * @static
  21209. */
  21210. public static function orWhereBetween($column, $values)
  21211. {
  21212. /** @var \Illuminate\Database\Query\Builder $instance */
  21213. return $instance->orWhereBetween($column, $values);
  21214. }
  21215. /**
  21216. * Add an or where between statement using columns to the query.
  21217. *
  21218. * @param string $column
  21219. * @param array $values
  21220. * @return \Illuminate\Database\Query\Builder
  21221. * @static
  21222. */
  21223. public static function orWhereBetweenColumns($column, $values)
  21224. {
  21225. /** @var \Illuminate\Database\Query\Builder $instance */
  21226. return $instance->orWhereBetweenColumns($column, $values);
  21227. }
  21228. /**
  21229. * Add a where not between statement to the query.
  21230. *
  21231. * @param string $column
  21232. * @param \Illuminate\Database\Query\iterable $values
  21233. * @param string $boolean
  21234. * @return \Illuminate\Database\Query\Builder
  21235. * @static
  21236. */
  21237. public static function whereNotBetween($column, $values, $boolean = 'and')
  21238. {
  21239. /** @var \Illuminate\Database\Query\Builder $instance */
  21240. return $instance->whereNotBetween($column, $values, $boolean);
  21241. }
  21242. /**
  21243. * Add a where not between statement using columns to the query.
  21244. *
  21245. * @param string $column
  21246. * @param array $values
  21247. * @param string $boolean
  21248. * @return \Illuminate\Database\Query\Builder
  21249. * @static
  21250. */
  21251. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  21252. {
  21253. /** @var \Illuminate\Database\Query\Builder $instance */
  21254. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  21255. }
  21256. /**
  21257. * Add an or where not between statement to the query.
  21258. *
  21259. * @param string $column
  21260. * @param \Illuminate\Database\Query\iterable $values
  21261. * @return \Illuminate\Database\Query\Builder
  21262. * @static
  21263. */
  21264. public static function orWhereNotBetween($column, $values)
  21265. {
  21266. /** @var \Illuminate\Database\Query\Builder $instance */
  21267. return $instance->orWhereNotBetween($column, $values);
  21268. }
  21269. /**
  21270. * Add an or where not between statement using columns to the query.
  21271. *
  21272. * @param string $column
  21273. * @param array $values
  21274. * @return \Illuminate\Database\Query\Builder
  21275. * @static
  21276. */
  21277. public static function orWhereNotBetweenColumns($column, $values)
  21278. {
  21279. /** @var \Illuminate\Database\Query\Builder $instance */
  21280. return $instance->orWhereNotBetweenColumns($column, $values);
  21281. }
  21282. /**
  21283. * Add an "or where not null" clause to the query.
  21284. *
  21285. * @param string $column
  21286. * @return \Illuminate\Database\Query\Builder
  21287. * @static
  21288. */
  21289. public static function orWhereNotNull($column)
  21290. {
  21291. /** @var \Illuminate\Database\Query\Builder $instance */
  21292. return $instance->orWhereNotNull($column);
  21293. }
  21294. /**
  21295. * Add a "where date" statement to the query.
  21296. *
  21297. * @param string $column
  21298. * @param string $operator
  21299. * @param \DateTimeInterface|string|null $value
  21300. * @param string $boolean
  21301. * @return \Illuminate\Database\Query\Builder
  21302. * @static
  21303. */
  21304. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  21305. {
  21306. /** @var \Illuminate\Database\Query\Builder $instance */
  21307. return $instance->whereDate($column, $operator, $value, $boolean);
  21308. }
  21309. /**
  21310. * Add an "or where date" statement to the query.
  21311. *
  21312. * @param string $column
  21313. * @param string $operator
  21314. * @param \DateTimeInterface|string|null $value
  21315. * @return \Illuminate\Database\Query\Builder
  21316. * @static
  21317. */
  21318. public static function orWhereDate($column, $operator, $value = null)
  21319. {
  21320. /** @var \Illuminate\Database\Query\Builder $instance */
  21321. return $instance->orWhereDate($column, $operator, $value);
  21322. }
  21323. /**
  21324. * Add a "where time" statement to the query.
  21325. *
  21326. * @param string $column
  21327. * @param string $operator
  21328. * @param \DateTimeInterface|string|null $value
  21329. * @param string $boolean
  21330. * @return \Illuminate\Database\Query\Builder
  21331. * @static
  21332. */
  21333. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  21334. {
  21335. /** @var \Illuminate\Database\Query\Builder $instance */
  21336. return $instance->whereTime($column, $operator, $value, $boolean);
  21337. }
  21338. /**
  21339. * Add an "or where time" statement to the query.
  21340. *
  21341. * @param string $column
  21342. * @param string $operator
  21343. * @param \DateTimeInterface|string|null $value
  21344. * @return \Illuminate\Database\Query\Builder
  21345. * @static
  21346. */
  21347. public static function orWhereTime($column, $operator, $value = null)
  21348. {
  21349. /** @var \Illuminate\Database\Query\Builder $instance */
  21350. return $instance->orWhereTime($column, $operator, $value);
  21351. }
  21352. /**
  21353. * Add a "where day" statement to the query.
  21354. *
  21355. * @param string $column
  21356. * @param string $operator
  21357. * @param \DateTimeInterface|string|int|null $value
  21358. * @param string $boolean
  21359. * @return \Illuminate\Database\Query\Builder
  21360. * @static
  21361. */
  21362. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  21363. {
  21364. /** @var \Illuminate\Database\Query\Builder $instance */
  21365. return $instance->whereDay($column, $operator, $value, $boolean);
  21366. }
  21367. /**
  21368. * Add an "or where day" statement to the query.
  21369. *
  21370. * @param string $column
  21371. * @param string $operator
  21372. * @param \DateTimeInterface|string|int|null $value
  21373. * @return \Illuminate\Database\Query\Builder
  21374. * @static
  21375. */
  21376. public static function orWhereDay($column, $operator, $value = null)
  21377. {
  21378. /** @var \Illuminate\Database\Query\Builder $instance */
  21379. return $instance->orWhereDay($column, $operator, $value);
  21380. }
  21381. /**
  21382. * Add a "where month" statement to the query.
  21383. *
  21384. * @param string $column
  21385. * @param string $operator
  21386. * @param \DateTimeInterface|string|int|null $value
  21387. * @param string $boolean
  21388. * @return \Illuminate\Database\Query\Builder
  21389. * @static
  21390. */
  21391. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  21392. {
  21393. /** @var \Illuminate\Database\Query\Builder $instance */
  21394. return $instance->whereMonth($column, $operator, $value, $boolean);
  21395. }
  21396. /**
  21397. * Add an "or where month" statement to the query.
  21398. *
  21399. * @param string $column
  21400. * @param string $operator
  21401. * @param \DateTimeInterface|string|int|null $value
  21402. * @return \Illuminate\Database\Query\Builder
  21403. * @static
  21404. */
  21405. public static function orWhereMonth($column, $operator, $value = null)
  21406. {
  21407. /** @var \Illuminate\Database\Query\Builder $instance */
  21408. return $instance->orWhereMonth($column, $operator, $value);
  21409. }
  21410. /**
  21411. * Add a "where year" statement to the query.
  21412. *
  21413. * @param string $column
  21414. * @param string $operator
  21415. * @param \DateTimeInterface|string|int|null $value
  21416. * @param string $boolean
  21417. * @return \Illuminate\Database\Query\Builder
  21418. * @static
  21419. */
  21420. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  21421. {
  21422. /** @var \Illuminate\Database\Query\Builder $instance */
  21423. return $instance->whereYear($column, $operator, $value, $boolean);
  21424. }
  21425. /**
  21426. * Add an "or where year" statement to the query.
  21427. *
  21428. * @param string $column
  21429. * @param string $operator
  21430. * @param \DateTimeInterface|string|int|null $value
  21431. * @return \Illuminate\Database\Query\Builder
  21432. * @static
  21433. */
  21434. public static function orWhereYear($column, $operator, $value = null)
  21435. {
  21436. /** @var \Illuminate\Database\Query\Builder $instance */
  21437. return $instance->orWhereYear($column, $operator, $value);
  21438. }
  21439. /**
  21440. * Add a nested where statement to the query.
  21441. *
  21442. * @param \Closure $callback
  21443. * @param string $boolean
  21444. * @return \Illuminate\Database\Query\Builder
  21445. * @static
  21446. */
  21447. public static function whereNested($callback, $boolean = 'and')
  21448. {
  21449. /** @var \Illuminate\Database\Query\Builder $instance */
  21450. return $instance->whereNested($callback, $boolean);
  21451. }
  21452. /**
  21453. * Create a new query instance for nested where condition.
  21454. *
  21455. * @return \Illuminate\Database\Query\Builder
  21456. * @static
  21457. */
  21458. public static function forNestedWhere()
  21459. {
  21460. /** @var \Illuminate\Database\Query\Builder $instance */
  21461. return $instance->forNestedWhere();
  21462. }
  21463. /**
  21464. * Add another query builder as a nested where to the query builder.
  21465. *
  21466. * @param \Illuminate\Database\Query\Builder $query
  21467. * @param string $boolean
  21468. * @return \Illuminate\Database\Query\Builder
  21469. * @static
  21470. */
  21471. public static function addNestedWhereQuery($query, $boolean = 'and')
  21472. {
  21473. /** @var \Illuminate\Database\Query\Builder $instance */
  21474. return $instance->addNestedWhereQuery($query, $boolean);
  21475. }
  21476. /**
  21477. * Add an exists clause to the query.
  21478. *
  21479. * @param \Closure $callback
  21480. * @param string $boolean
  21481. * @param bool $not
  21482. * @return \Illuminate\Database\Query\Builder
  21483. * @static
  21484. */
  21485. public static function whereExists($callback, $boolean = 'and', $not = false)
  21486. {
  21487. /** @var \Illuminate\Database\Query\Builder $instance */
  21488. return $instance->whereExists($callback, $boolean, $not);
  21489. }
  21490. /**
  21491. * Add an or exists clause to the query.
  21492. *
  21493. * @param \Closure $callback
  21494. * @param bool $not
  21495. * @return \Illuminate\Database\Query\Builder
  21496. * @static
  21497. */
  21498. public static function orWhereExists($callback, $not = false)
  21499. {
  21500. /** @var \Illuminate\Database\Query\Builder $instance */
  21501. return $instance->orWhereExists($callback, $not);
  21502. }
  21503. /**
  21504. * Add a where not exists clause to the query.
  21505. *
  21506. * @param \Closure $callback
  21507. * @param string $boolean
  21508. * @return \Illuminate\Database\Query\Builder
  21509. * @static
  21510. */
  21511. public static function whereNotExists($callback, $boolean = 'and')
  21512. {
  21513. /** @var \Illuminate\Database\Query\Builder $instance */
  21514. return $instance->whereNotExists($callback, $boolean);
  21515. }
  21516. /**
  21517. * Add a where not exists clause to the query.
  21518. *
  21519. * @param \Closure $callback
  21520. * @return \Illuminate\Database\Query\Builder
  21521. * @static
  21522. */
  21523. public static function orWhereNotExists($callback)
  21524. {
  21525. /** @var \Illuminate\Database\Query\Builder $instance */
  21526. return $instance->orWhereNotExists($callback);
  21527. }
  21528. /**
  21529. * Add an exists clause to the query.
  21530. *
  21531. * @param \Illuminate\Database\Query\Builder $query
  21532. * @param string $boolean
  21533. * @param bool $not
  21534. * @return \Illuminate\Database\Query\Builder
  21535. * @static
  21536. */
  21537. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  21538. {
  21539. /** @var \Illuminate\Database\Query\Builder $instance */
  21540. return $instance->addWhereExistsQuery($query, $boolean, $not);
  21541. }
  21542. /**
  21543. * Adds a where condition using row values.
  21544. *
  21545. * @param array $columns
  21546. * @param string $operator
  21547. * @param array $values
  21548. * @param string $boolean
  21549. * @return \Illuminate\Database\Query\Builder
  21550. * @throws \InvalidArgumentException
  21551. * @static
  21552. */
  21553. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  21554. {
  21555. /** @var \Illuminate\Database\Query\Builder $instance */
  21556. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  21557. }
  21558. /**
  21559. * Adds an or where condition using row values.
  21560. *
  21561. * @param array $columns
  21562. * @param string $operator
  21563. * @param array $values
  21564. * @return \Illuminate\Database\Query\Builder
  21565. * @static
  21566. */
  21567. public static function orWhereRowValues($columns, $operator, $values)
  21568. {
  21569. /** @var \Illuminate\Database\Query\Builder $instance */
  21570. return $instance->orWhereRowValues($columns, $operator, $values);
  21571. }
  21572. /**
  21573. * Add a "where JSON contains" clause to the query.
  21574. *
  21575. * @param string $column
  21576. * @param mixed $value
  21577. * @param string $boolean
  21578. * @param bool $not
  21579. * @return \Illuminate\Database\Query\Builder
  21580. * @static
  21581. */
  21582. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  21583. {
  21584. /** @var \Illuminate\Database\Query\Builder $instance */
  21585. return $instance->whereJsonContains($column, $value, $boolean, $not);
  21586. }
  21587. /**
  21588. * Add an "or where JSON contains" clause to the query.
  21589. *
  21590. * @param string $column
  21591. * @param mixed $value
  21592. * @return \Illuminate\Database\Query\Builder
  21593. * @static
  21594. */
  21595. public static function orWhereJsonContains($column, $value)
  21596. {
  21597. /** @var \Illuminate\Database\Query\Builder $instance */
  21598. return $instance->orWhereJsonContains($column, $value);
  21599. }
  21600. /**
  21601. * Add a "where JSON not contains" clause to the query.
  21602. *
  21603. * @param string $column
  21604. * @param mixed $value
  21605. * @param string $boolean
  21606. * @return \Illuminate\Database\Query\Builder
  21607. * @static
  21608. */
  21609. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  21610. {
  21611. /** @var \Illuminate\Database\Query\Builder $instance */
  21612. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  21613. }
  21614. /**
  21615. * Add an "or where JSON not contains" clause to the query.
  21616. *
  21617. * @param string $column
  21618. * @param mixed $value
  21619. * @return \Illuminate\Database\Query\Builder
  21620. * @static
  21621. */
  21622. public static function orWhereJsonDoesntContain($column, $value)
  21623. {
  21624. /** @var \Illuminate\Database\Query\Builder $instance */
  21625. return $instance->orWhereJsonDoesntContain($column, $value);
  21626. }
  21627. /**
  21628. * Add a clause that determines if a JSON path exists to the query.
  21629. *
  21630. * @param string $column
  21631. * @param string $boolean
  21632. * @param bool $not
  21633. * @return \Illuminate\Database\Query\Builder
  21634. * @static
  21635. */
  21636. public static function whereJsonContainsKey($column, $boolean = 'and', $not = false)
  21637. {
  21638. /** @var \Illuminate\Database\Query\Builder $instance */
  21639. return $instance->whereJsonContainsKey($column, $boolean, $not);
  21640. }
  21641. /**
  21642. * Add an "or" clause that determines if a JSON path exists to the query.
  21643. *
  21644. * @param string $column
  21645. * @return \Illuminate\Database\Query\Builder
  21646. * @static
  21647. */
  21648. public static function orWhereJsonContainsKey($column)
  21649. {
  21650. /** @var \Illuminate\Database\Query\Builder $instance */
  21651. return $instance->orWhereJsonContainsKey($column);
  21652. }
  21653. /**
  21654. * Add a clause that determines if a JSON path does not exist to the query.
  21655. *
  21656. * @param string $column
  21657. * @param string $boolean
  21658. * @return \Illuminate\Database\Query\Builder
  21659. * @static
  21660. */
  21661. public static function whereJsonDoesntContainKey($column, $boolean = 'and')
  21662. {
  21663. /** @var \Illuminate\Database\Query\Builder $instance */
  21664. return $instance->whereJsonDoesntContainKey($column, $boolean);
  21665. }
  21666. /**
  21667. * Add an "or" clause that determines if a JSON path does not exist to the query.
  21668. *
  21669. * @param string $column
  21670. * @return \Illuminate\Database\Query\Builder
  21671. * @static
  21672. */
  21673. public static function orWhereJsonDoesntContainKey($column)
  21674. {
  21675. /** @var \Illuminate\Database\Query\Builder $instance */
  21676. return $instance->orWhereJsonDoesntContainKey($column);
  21677. }
  21678. /**
  21679. * Add a "where JSON length" clause to the query.
  21680. *
  21681. * @param string $column
  21682. * @param mixed $operator
  21683. * @param mixed $value
  21684. * @param string $boolean
  21685. * @return \Illuminate\Database\Query\Builder
  21686. * @static
  21687. */
  21688. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  21689. {
  21690. /** @var \Illuminate\Database\Query\Builder $instance */
  21691. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  21692. }
  21693. /**
  21694. * Add an "or where JSON length" clause to the query.
  21695. *
  21696. * @param string $column
  21697. * @param mixed $operator
  21698. * @param mixed $value
  21699. * @return \Illuminate\Database\Query\Builder
  21700. * @static
  21701. */
  21702. public static function orWhereJsonLength($column, $operator, $value = null)
  21703. {
  21704. /** @var \Illuminate\Database\Query\Builder $instance */
  21705. return $instance->orWhereJsonLength($column, $operator, $value);
  21706. }
  21707. /**
  21708. * Handles dynamic "where" clauses to the query.
  21709. *
  21710. * @param string $method
  21711. * @param array $parameters
  21712. * @return \Illuminate\Database\Query\Builder
  21713. * @static
  21714. */
  21715. public static function dynamicWhere($method, $parameters)
  21716. {
  21717. /** @var \Illuminate\Database\Query\Builder $instance */
  21718. return $instance->dynamicWhere($method, $parameters);
  21719. }
  21720. /**
  21721. * Add a "where fulltext" clause to the query.
  21722. *
  21723. * @param string|string[] $columns
  21724. * @param string $value
  21725. * @param string $boolean
  21726. * @return \Illuminate\Database\Query\Builder
  21727. * @static
  21728. */
  21729. public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  21730. {
  21731. /** @var \Illuminate\Database\Query\Builder $instance */
  21732. return $instance->whereFullText($columns, $value, $options, $boolean);
  21733. }
  21734. /**
  21735. * Add a "or where fulltext" clause to the query.
  21736. *
  21737. * @param string|string[] $columns
  21738. * @param string $value
  21739. * @return \Illuminate\Database\Query\Builder
  21740. * @static
  21741. */
  21742. public static function orWhereFullText($columns, $value, $options = [])
  21743. {
  21744. /** @var \Illuminate\Database\Query\Builder $instance */
  21745. return $instance->orWhereFullText($columns, $value, $options);
  21746. }
  21747. /**
  21748. * Add a "group by" clause to the query.
  21749. *
  21750. * @param array|string $groups
  21751. * @return \Illuminate\Database\Query\Builder
  21752. * @static
  21753. */
  21754. public static function groupBy(...$groups)
  21755. {
  21756. /** @var \Illuminate\Database\Query\Builder $instance */
  21757. return $instance->groupBy(...$groups);
  21758. }
  21759. /**
  21760. * Add a raw groupBy clause to the query.
  21761. *
  21762. * @param string $sql
  21763. * @param array $bindings
  21764. * @return \Illuminate\Database\Query\Builder
  21765. * @static
  21766. */
  21767. public static function groupByRaw($sql, $bindings = [])
  21768. {
  21769. /** @var \Illuminate\Database\Query\Builder $instance */
  21770. return $instance->groupByRaw($sql, $bindings);
  21771. }
  21772. /**
  21773. * Add a "having" clause to the query.
  21774. *
  21775. * @param \Closure|string $column
  21776. * @param string|int|float|null $operator
  21777. * @param string|int|float|null $value
  21778. * @param string $boolean
  21779. * @return \Illuminate\Database\Query\Builder
  21780. * @static
  21781. */
  21782. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  21783. {
  21784. /** @var \Illuminate\Database\Query\Builder $instance */
  21785. return $instance->having($column, $operator, $value, $boolean);
  21786. }
  21787. /**
  21788. * Add an "or having" clause to the query.
  21789. *
  21790. * @param \Closure|string $column
  21791. * @param string|int|float|null $operator
  21792. * @param string|int|float|null $value
  21793. * @return \Illuminate\Database\Query\Builder
  21794. * @static
  21795. */
  21796. public static function orHaving($column, $operator = null, $value = null)
  21797. {
  21798. /** @var \Illuminate\Database\Query\Builder $instance */
  21799. return $instance->orHaving($column, $operator, $value);
  21800. }
  21801. /**
  21802. * Add a nested having statement to the query.
  21803. *
  21804. * @param \Closure $callback
  21805. * @param string $boolean
  21806. * @return \Illuminate\Database\Query\Builder
  21807. * @static
  21808. */
  21809. public static function havingNested($callback, $boolean = 'and')
  21810. {
  21811. /** @var \Illuminate\Database\Query\Builder $instance */
  21812. return $instance->havingNested($callback, $boolean);
  21813. }
  21814. /**
  21815. * Add another query builder as a nested having to the query builder.
  21816. *
  21817. * @param \Illuminate\Database\Query\Builder $query
  21818. * @param string $boolean
  21819. * @return \Illuminate\Database\Query\Builder
  21820. * @static
  21821. */
  21822. public static function addNestedHavingQuery($query, $boolean = 'and')
  21823. {
  21824. /** @var \Illuminate\Database\Query\Builder $instance */
  21825. return $instance->addNestedHavingQuery($query, $boolean);
  21826. }
  21827. /**
  21828. * Add a "having null" clause to the query.
  21829. *
  21830. * @param string|array $columns
  21831. * @param string $boolean
  21832. * @param bool $not
  21833. * @return \Illuminate\Database\Query\Builder
  21834. * @static
  21835. */
  21836. public static function havingNull($columns, $boolean = 'and', $not = false)
  21837. {
  21838. /** @var \Illuminate\Database\Query\Builder $instance */
  21839. return $instance->havingNull($columns, $boolean, $not);
  21840. }
  21841. /**
  21842. * Add an "or having null" clause to the query.
  21843. *
  21844. * @param string $column
  21845. * @return \Illuminate\Database\Query\Builder
  21846. * @static
  21847. */
  21848. public static function orHavingNull($column)
  21849. {
  21850. /** @var \Illuminate\Database\Query\Builder $instance */
  21851. return $instance->orHavingNull($column);
  21852. }
  21853. /**
  21854. * Add a "having not null" clause to the query.
  21855. *
  21856. * @param string|array $columns
  21857. * @param string $boolean
  21858. * @return \Illuminate\Database\Query\Builder
  21859. * @static
  21860. */
  21861. public static function havingNotNull($columns, $boolean = 'and')
  21862. {
  21863. /** @var \Illuminate\Database\Query\Builder $instance */
  21864. return $instance->havingNotNull($columns, $boolean);
  21865. }
  21866. /**
  21867. * Add an "or having not null" clause to the query.
  21868. *
  21869. * @param string $column
  21870. * @return \Illuminate\Database\Query\Builder
  21871. * @static
  21872. */
  21873. public static function orHavingNotNull($column)
  21874. {
  21875. /** @var \Illuminate\Database\Query\Builder $instance */
  21876. return $instance->orHavingNotNull($column);
  21877. }
  21878. /**
  21879. * Add a "having between " clause to the query.
  21880. *
  21881. * @param string $column
  21882. * @param array $values
  21883. * @param string $boolean
  21884. * @param bool $not
  21885. * @return \Illuminate\Database\Query\Builder
  21886. * @static
  21887. */
  21888. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  21889. {
  21890. /** @var \Illuminate\Database\Query\Builder $instance */
  21891. return $instance->havingBetween($column, $values, $boolean, $not);
  21892. }
  21893. /**
  21894. * Add a raw having clause to the query.
  21895. *
  21896. * @param string $sql
  21897. * @param array $bindings
  21898. * @param string $boolean
  21899. * @return \Illuminate\Database\Query\Builder
  21900. * @static
  21901. */
  21902. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  21903. {
  21904. /** @var \Illuminate\Database\Query\Builder $instance */
  21905. return $instance->havingRaw($sql, $bindings, $boolean);
  21906. }
  21907. /**
  21908. * Add a raw or having clause to the query.
  21909. *
  21910. * @param string $sql
  21911. * @param array $bindings
  21912. * @return \Illuminate\Database\Query\Builder
  21913. * @static
  21914. */
  21915. public static function orHavingRaw($sql, $bindings = [])
  21916. {
  21917. /** @var \Illuminate\Database\Query\Builder $instance */
  21918. return $instance->orHavingRaw($sql, $bindings);
  21919. }
  21920. /**
  21921. * Add an "order by" clause to the query.
  21922. *
  21923. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Expression|string $column
  21924. * @param string $direction
  21925. * @return \Illuminate\Database\Query\Builder
  21926. * @throws \InvalidArgumentException
  21927. * @static
  21928. */
  21929. public static function orderBy($column, $direction = 'asc')
  21930. {
  21931. /** @var \Illuminate\Database\Query\Builder $instance */
  21932. return $instance->orderBy($column, $direction);
  21933. }
  21934. /**
  21935. * Add a descending "order by" clause to the query.
  21936. *
  21937. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Expression|string $column
  21938. * @return \Illuminate\Database\Query\Builder
  21939. * @static
  21940. */
  21941. public static function orderByDesc($column)
  21942. {
  21943. /** @var \Illuminate\Database\Query\Builder $instance */
  21944. return $instance->orderByDesc($column);
  21945. }
  21946. /**
  21947. * Put the query's results in random order.
  21948. *
  21949. * @param string $seed
  21950. * @return \Illuminate\Database\Query\Builder
  21951. * @static
  21952. */
  21953. public static function inRandomOrder($seed = '')
  21954. {
  21955. /** @var \Illuminate\Database\Query\Builder $instance */
  21956. return $instance->inRandomOrder($seed);
  21957. }
  21958. /**
  21959. * Add a raw "order by" clause to the query.
  21960. *
  21961. * @param string $sql
  21962. * @param array $bindings
  21963. * @return \Illuminate\Database\Query\Builder
  21964. * @static
  21965. */
  21966. public static function orderByRaw($sql, $bindings = [])
  21967. {
  21968. /** @var \Illuminate\Database\Query\Builder $instance */
  21969. return $instance->orderByRaw($sql, $bindings);
  21970. }
  21971. /**
  21972. * Alias to set the "offset" value of the query.
  21973. *
  21974. * @param int $value
  21975. * @return \Illuminate\Database\Query\Builder
  21976. * @static
  21977. */
  21978. public static function skip($value)
  21979. {
  21980. /** @var \Illuminate\Database\Query\Builder $instance */
  21981. return $instance->skip($value);
  21982. }
  21983. /**
  21984. * Set the "offset" value of the query.
  21985. *
  21986. * @param int $value
  21987. * @return \Illuminate\Database\Query\Builder
  21988. * @static
  21989. */
  21990. public static function offset($value)
  21991. {
  21992. /** @var \Illuminate\Database\Query\Builder $instance */
  21993. return $instance->offset($value);
  21994. }
  21995. /**
  21996. * Alias to set the "limit" value of the query.
  21997. *
  21998. * @param int $value
  21999. * @return \Illuminate\Database\Query\Builder
  22000. * @static
  22001. */
  22002. public static function take($value)
  22003. {
  22004. /** @var \Illuminate\Database\Query\Builder $instance */
  22005. return $instance->take($value);
  22006. }
  22007. /**
  22008. * Set the "limit" value of the query.
  22009. *
  22010. * @param int $value
  22011. * @return \Illuminate\Database\Query\Builder
  22012. * @static
  22013. */
  22014. public static function limit($value)
  22015. {
  22016. /** @var \Illuminate\Database\Query\Builder $instance */
  22017. return $instance->limit($value);
  22018. }
  22019. /**
  22020. * Set the limit and offset for a given page.
  22021. *
  22022. * @param int $page
  22023. * @param int $perPage
  22024. * @return \Illuminate\Database\Query\Builder
  22025. * @static
  22026. */
  22027. public static function forPage($page, $perPage = 15)
  22028. {
  22029. /** @var \Illuminate\Database\Query\Builder $instance */
  22030. return $instance->forPage($page, $perPage);
  22031. }
  22032. /**
  22033. * Constrain the query to the previous "page" of results before a given ID.
  22034. *
  22035. * @param int $perPage
  22036. * @param int|null $lastId
  22037. * @param string $column
  22038. * @return \Illuminate\Database\Query\Builder
  22039. * @static
  22040. */
  22041. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  22042. {
  22043. /** @var \Illuminate\Database\Query\Builder $instance */
  22044. return $instance->forPageBeforeId($perPage, $lastId, $column);
  22045. }
  22046. /**
  22047. * Constrain the query to the next "page" of results after a given ID.
  22048. *
  22049. * @param int $perPage
  22050. * @param int|null $lastId
  22051. * @param string $column
  22052. * @return \Illuminate\Database\Query\Builder
  22053. * @static
  22054. */
  22055. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  22056. {
  22057. /** @var \Illuminate\Database\Query\Builder $instance */
  22058. return $instance->forPageAfterId($perPage, $lastId, $column);
  22059. }
  22060. /**
  22061. * Remove all existing orders and optionally add a new order.
  22062. *
  22063. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
  22064. * @param string $direction
  22065. * @return \Illuminate\Database\Query\Builder
  22066. * @static
  22067. */
  22068. public static function reorder($column = null, $direction = 'asc')
  22069. {
  22070. /** @var \Illuminate\Database\Query\Builder $instance */
  22071. return $instance->reorder($column, $direction);
  22072. }
  22073. /**
  22074. * Add a union statement to the query.
  22075. *
  22076. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query
  22077. * @param bool $all
  22078. * @return \Illuminate\Database\Query\Builder
  22079. * @static
  22080. */
  22081. public static function union($query, $all = false)
  22082. {
  22083. /** @var \Illuminate\Database\Query\Builder $instance */
  22084. return $instance->union($query, $all);
  22085. }
  22086. /**
  22087. * Add a union all statement to the query.
  22088. *
  22089. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder $query
  22090. * @return \Illuminate\Database\Query\Builder
  22091. * @static
  22092. */
  22093. public static function unionAll($query)
  22094. {
  22095. /** @var \Illuminate\Database\Query\Builder $instance */
  22096. return $instance->unionAll($query);
  22097. }
  22098. /**
  22099. * Lock the selected rows in the table.
  22100. *
  22101. * @param string|bool $value
  22102. * @return \Illuminate\Database\Query\Builder
  22103. * @static
  22104. */
  22105. public static function lock($value = true)
  22106. {
  22107. /** @var \Illuminate\Database\Query\Builder $instance */
  22108. return $instance->lock($value);
  22109. }
  22110. /**
  22111. * Lock the selected rows in the table for updating.
  22112. *
  22113. * @return \Illuminate\Database\Query\Builder
  22114. * @static
  22115. */
  22116. public static function lockForUpdate()
  22117. {
  22118. /** @var \Illuminate\Database\Query\Builder $instance */
  22119. return $instance->lockForUpdate();
  22120. }
  22121. /**
  22122. * Share lock the selected rows in the table.
  22123. *
  22124. * @return \Illuminate\Database\Query\Builder
  22125. * @static
  22126. */
  22127. public static function sharedLock()
  22128. {
  22129. /** @var \Illuminate\Database\Query\Builder $instance */
  22130. return $instance->sharedLock();
  22131. }
  22132. /**
  22133. * Register a closure to be invoked before the query is executed.
  22134. *
  22135. * @param callable $callback
  22136. * @return \Illuminate\Database\Query\Builder
  22137. * @static
  22138. */
  22139. public static function beforeQuery($callback)
  22140. {
  22141. /** @var \Illuminate\Database\Query\Builder $instance */
  22142. return $instance->beforeQuery($callback);
  22143. }
  22144. /**
  22145. * Invoke the "before query" modification callbacks.
  22146. *
  22147. * @return void
  22148. * @static
  22149. */
  22150. public static function applyBeforeQueryCallbacks()
  22151. {
  22152. /** @var \Illuminate\Database\Query\Builder $instance */
  22153. $instance->applyBeforeQueryCallbacks();
  22154. }
  22155. /**
  22156. * Get the SQL representation of the query.
  22157. *
  22158. * @return string
  22159. * @static
  22160. */
  22161. public static function toSql()
  22162. {
  22163. /** @var \Illuminate\Database\Query\Builder $instance */
  22164. return $instance->toSql();
  22165. }
  22166. /**
  22167. * Get a single expression value from the first result of a query.
  22168. *
  22169. * @param string $expression
  22170. * @param array $bindings
  22171. * @return mixed
  22172. * @static
  22173. */
  22174. public static function rawValue($expression, $bindings = [])
  22175. {
  22176. /** @var \Illuminate\Database\Query\Builder $instance */
  22177. return $instance->rawValue($expression, $bindings);
  22178. }
  22179. /**
  22180. * Get the count of the total records for the paginator.
  22181. *
  22182. * @param array $columns
  22183. * @return int
  22184. * @static
  22185. */
  22186. public static function getCountForPagination($columns = [])
  22187. {
  22188. /** @var \Illuminate\Database\Query\Builder $instance */
  22189. return $instance->getCountForPagination($columns);
  22190. }
  22191. /**
  22192. * Concatenate values of a given column as a string.
  22193. *
  22194. * @param string $column
  22195. * @param string $glue
  22196. * @return string
  22197. * @static
  22198. */
  22199. public static function implode($column, $glue = '')
  22200. {
  22201. /** @var \Illuminate\Database\Query\Builder $instance */
  22202. return $instance->implode($column, $glue);
  22203. }
  22204. /**
  22205. * Determine if any rows exist for the current query.
  22206. *
  22207. * @return bool
  22208. * @static
  22209. */
  22210. public static function exists()
  22211. {
  22212. /** @var \Illuminate\Database\Query\Builder $instance */
  22213. return $instance->exists();
  22214. }
  22215. /**
  22216. * Determine if no rows exist for the current query.
  22217. *
  22218. * @return bool
  22219. * @static
  22220. */
  22221. public static function doesntExist()
  22222. {
  22223. /** @var \Illuminate\Database\Query\Builder $instance */
  22224. return $instance->doesntExist();
  22225. }
  22226. /**
  22227. * Execute the given callback if no rows exist for the current query.
  22228. *
  22229. * @param \Closure $callback
  22230. * @return mixed
  22231. * @static
  22232. */
  22233. public static function existsOr($callback)
  22234. {
  22235. /** @var \Illuminate\Database\Query\Builder $instance */
  22236. return $instance->existsOr($callback);
  22237. }
  22238. /**
  22239. * Execute the given callback if rows exist for the current query.
  22240. *
  22241. * @param \Closure $callback
  22242. * @return mixed
  22243. * @static
  22244. */
  22245. public static function doesntExistOr($callback)
  22246. {
  22247. /** @var \Illuminate\Database\Query\Builder $instance */
  22248. return $instance->doesntExistOr($callback);
  22249. }
  22250. /**
  22251. * Retrieve the "count" result of the query.
  22252. *
  22253. * @param string $columns
  22254. * @return int
  22255. * @static
  22256. */
  22257. public static function count($columns = '*')
  22258. {
  22259. /** @var \Illuminate\Database\Query\Builder $instance */
  22260. return $instance->count($columns);
  22261. }
  22262. /**
  22263. * Retrieve the minimum value of a given column.
  22264. *
  22265. * @param string $column
  22266. * @return mixed
  22267. * @static
  22268. */
  22269. public static function min($column)
  22270. {
  22271. /** @var \Illuminate\Database\Query\Builder $instance */
  22272. return $instance->min($column);
  22273. }
  22274. /**
  22275. * Retrieve the maximum value of a given column.
  22276. *
  22277. * @param string $column
  22278. * @return mixed
  22279. * @static
  22280. */
  22281. public static function max($column)
  22282. {
  22283. /** @var \Illuminate\Database\Query\Builder $instance */
  22284. return $instance->max($column);
  22285. }
  22286. /**
  22287. * Retrieve the sum of the values of a given column.
  22288. *
  22289. * @param string $column
  22290. * @return mixed
  22291. * @static
  22292. */
  22293. public static function sum($column)
  22294. {
  22295. /** @var \Illuminate\Database\Query\Builder $instance */
  22296. return $instance->sum($column);
  22297. }
  22298. /**
  22299. * Retrieve the average of the values of a given column.
  22300. *
  22301. * @param string $column
  22302. * @return mixed
  22303. * @static
  22304. */
  22305. public static function avg($column)
  22306. {
  22307. /** @var \Illuminate\Database\Query\Builder $instance */
  22308. return $instance->avg($column);
  22309. }
  22310. /**
  22311. * Alias for the "avg" method.
  22312. *
  22313. * @param string $column
  22314. * @return mixed
  22315. * @static
  22316. */
  22317. public static function average($column)
  22318. {
  22319. /** @var \Illuminate\Database\Query\Builder $instance */
  22320. return $instance->average($column);
  22321. }
  22322. /**
  22323. * Execute an aggregate function on the database.
  22324. *
  22325. * @param string $function
  22326. * @param array $columns
  22327. * @return mixed
  22328. * @static
  22329. */
  22330. public static function aggregate($function, $columns = [])
  22331. {
  22332. /** @var \Illuminate\Database\Query\Builder $instance */
  22333. return $instance->aggregate($function, $columns);
  22334. }
  22335. /**
  22336. * Execute a numeric aggregate function on the database.
  22337. *
  22338. * @param string $function
  22339. * @param array $columns
  22340. * @return float|int
  22341. * @static
  22342. */
  22343. public static function numericAggregate($function, $columns = [])
  22344. {
  22345. /** @var \Illuminate\Database\Query\Builder $instance */
  22346. return $instance->numericAggregate($function, $columns);
  22347. }
  22348. /**
  22349. * Insert new records into the database.
  22350. *
  22351. * @param array $values
  22352. * @return bool
  22353. * @static
  22354. */
  22355. public static function insert($values)
  22356. {
  22357. /** @var \Illuminate\Database\Query\Builder $instance */
  22358. return $instance->insert($values);
  22359. }
  22360. /**
  22361. * Insert new records into the database while ignoring errors.
  22362. *
  22363. * @param array $values
  22364. * @return int
  22365. * @static
  22366. */
  22367. public static function insertOrIgnore($values)
  22368. {
  22369. /** @var \Illuminate\Database\Query\Builder $instance */
  22370. return $instance->insertOrIgnore($values);
  22371. }
  22372. /**
  22373. * Insert a new record and get the value of the primary key.
  22374. *
  22375. * @param array $values
  22376. * @param string|null $sequence
  22377. * @return int
  22378. * @static
  22379. */
  22380. public static function insertGetId($values, $sequence = null)
  22381. {
  22382. /** @var \Illuminate\Database\Query\Builder $instance */
  22383. return $instance->insertGetId($values, $sequence);
  22384. }
  22385. /**
  22386. * Insert new records into the table using a subquery.
  22387. *
  22388. * @param array $columns
  22389. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  22390. * @return int
  22391. * @static
  22392. */
  22393. public static function insertUsing($columns, $query)
  22394. {
  22395. /** @var \Illuminate\Database\Query\Builder $instance */
  22396. return $instance->insertUsing($columns, $query);
  22397. }
  22398. /**
  22399. * Update records in a PostgreSQL database using the update from syntax.
  22400. *
  22401. * @param array $values
  22402. * @return int
  22403. * @static
  22404. */
  22405. public static function updateFrom($values)
  22406. {
  22407. /** @var \Illuminate\Database\Query\Builder $instance */
  22408. return $instance->updateFrom($values);
  22409. }
  22410. /**
  22411. * Insert or update a record matching the attributes, and fill it with values.
  22412. *
  22413. * @param array $attributes
  22414. * @param array $values
  22415. * @return bool
  22416. * @static
  22417. */
  22418. public static function updateOrInsert($attributes, $values = [])
  22419. {
  22420. /** @var \Illuminate\Database\Query\Builder $instance */
  22421. return $instance->updateOrInsert($attributes, $values);
  22422. }
  22423. /**
  22424. * Run a truncate statement on the table.
  22425. *
  22426. * @return void
  22427. * @static
  22428. */
  22429. public static function truncate()
  22430. {
  22431. /** @var \Illuminate\Database\Query\Builder $instance */
  22432. $instance->truncate();
  22433. }
  22434. /**
  22435. * Create a raw database expression.
  22436. *
  22437. * @param mixed $value
  22438. * @return \Illuminate\Database\Query\Expression
  22439. * @static
  22440. */
  22441. public static function raw($value)
  22442. {
  22443. /** @var \Illuminate\Database\Query\Builder $instance */
  22444. return $instance->raw($value);
  22445. }
  22446. /**
  22447. * Get the current query value bindings in a flattened array.
  22448. *
  22449. * @return array
  22450. * @static
  22451. */
  22452. public static function getBindings()
  22453. {
  22454. /** @var \Illuminate\Database\Query\Builder $instance */
  22455. return $instance->getBindings();
  22456. }
  22457. /**
  22458. * Get the raw array of bindings.
  22459. *
  22460. * @return array
  22461. * @static
  22462. */
  22463. public static function getRawBindings()
  22464. {
  22465. /** @var \Illuminate\Database\Query\Builder $instance */
  22466. return $instance->getRawBindings();
  22467. }
  22468. /**
  22469. * Set the bindings on the query builder.
  22470. *
  22471. * @param array $bindings
  22472. * @param string $type
  22473. * @return \Illuminate\Database\Query\Builder
  22474. * @throws \InvalidArgumentException
  22475. * @static
  22476. */
  22477. public static function setBindings($bindings, $type = 'where')
  22478. {
  22479. /** @var \Illuminate\Database\Query\Builder $instance */
  22480. return $instance->setBindings($bindings, $type);
  22481. }
  22482. /**
  22483. * Add a binding to the query.
  22484. *
  22485. * @param mixed $value
  22486. * @param string $type
  22487. * @return \Illuminate\Database\Query\Builder
  22488. * @throws \InvalidArgumentException
  22489. * @static
  22490. */
  22491. public static function addBinding($value, $type = 'where')
  22492. {
  22493. /** @var \Illuminate\Database\Query\Builder $instance */
  22494. return $instance->addBinding($value, $type);
  22495. }
  22496. /**
  22497. * Cast the given binding value.
  22498. *
  22499. * @param mixed $value
  22500. * @return mixed
  22501. * @static
  22502. */
  22503. public static function castBinding($value)
  22504. {
  22505. /** @var \Illuminate\Database\Query\Builder $instance */
  22506. return $instance->castBinding($value);
  22507. }
  22508. /**
  22509. * Merge an array of bindings into our bindings.
  22510. *
  22511. * @param \Illuminate\Database\Query\Builder $query
  22512. * @return \Illuminate\Database\Query\Builder
  22513. * @static
  22514. */
  22515. public static function mergeBindings($query)
  22516. {
  22517. /** @var \Illuminate\Database\Query\Builder $instance */
  22518. return $instance->mergeBindings($query);
  22519. }
  22520. /**
  22521. * Remove all of the expressions from a list of bindings.
  22522. *
  22523. * @param array $bindings
  22524. * @return array
  22525. * @static
  22526. */
  22527. public static function cleanBindings($bindings)
  22528. {
  22529. /** @var \Illuminate\Database\Query\Builder $instance */
  22530. return $instance->cleanBindings($bindings);
  22531. }
  22532. /**
  22533. * Get the database query processor instance.
  22534. *
  22535. * @return \Illuminate\Database\Query\Processors\Processor
  22536. * @static
  22537. */
  22538. public static function getProcessor()
  22539. {
  22540. /** @var \Illuminate\Database\Query\Builder $instance */
  22541. return $instance->getProcessor();
  22542. }
  22543. /**
  22544. * Get the query grammar instance.
  22545. *
  22546. * @return \Illuminate\Database\Query\Grammars\Grammar
  22547. * @static
  22548. */
  22549. public static function getGrammar()
  22550. {
  22551. /** @var \Illuminate\Database\Query\Builder $instance */
  22552. return $instance->getGrammar();
  22553. }
  22554. /**
  22555. * Use the "write" PDO connection when executing the query.
  22556. *
  22557. * @return \Illuminate\Database\Query\Builder
  22558. * @static
  22559. */
  22560. public static function useWritePdo()
  22561. {
  22562. /** @var \Illuminate\Database\Query\Builder $instance */
  22563. return $instance->useWritePdo();
  22564. }
  22565. /**
  22566. * Clone the query without the given properties.
  22567. *
  22568. * @param array $properties
  22569. * @return static
  22570. * @static
  22571. */
  22572. public static function cloneWithout($properties)
  22573. {
  22574. /** @var \Illuminate\Database\Query\Builder $instance */
  22575. return $instance->cloneWithout($properties);
  22576. }
  22577. /**
  22578. * Clone the query without the given bindings.
  22579. *
  22580. * @param array $except
  22581. * @return static
  22582. * @static
  22583. */
  22584. public static function cloneWithoutBindings($except)
  22585. {
  22586. /** @var \Illuminate\Database\Query\Builder $instance */
  22587. return $instance->cloneWithoutBindings($except);
  22588. }
  22589. /**
  22590. * Dump the current SQL and bindings.
  22591. *
  22592. * @return \Illuminate\Database\Query\Builder
  22593. * @static
  22594. */
  22595. public static function dump()
  22596. {
  22597. /** @var \Illuminate\Database\Query\Builder $instance */
  22598. return $instance->dump();
  22599. }
  22600. /**
  22601. * Die and dump the current SQL and bindings.
  22602. *
  22603. * @return \Illuminate\Database\Query\never
  22604. * @static
  22605. */
  22606. public static function dd()
  22607. {
  22608. /** @var \Illuminate\Database\Query\Builder $instance */
  22609. return $instance->dd();
  22610. }
  22611. /**
  22612. * Explains the query.
  22613. *
  22614. * @return \Illuminate\Support\Collection
  22615. * @static
  22616. */
  22617. public static function explain()
  22618. {
  22619. /** @var \Illuminate\Database\Query\Builder $instance */
  22620. return $instance->explain();
  22621. }
  22622. /**
  22623. * Register a custom macro.
  22624. *
  22625. * @param string $name
  22626. * @param object|callable $macro
  22627. * @return void
  22628. * @static
  22629. */
  22630. public static function macro($name, $macro)
  22631. {
  22632. \Illuminate\Database\Query\Builder::macro($name, $macro);
  22633. }
  22634. /**
  22635. * Mix another object into the class.
  22636. *
  22637. * @param object $mixin
  22638. * @param bool $replace
  22639. * @return void
  22640. * @throws \ReflectionException
  22641. * @static
  22642. */
  22643. public static function mixin($mixin, $replace = true)
  22644. {
  22645. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  22646. }
  22647. /**
  22648. * Flush the existing macros.
  22649. *
  22650. * @return void
  22651. * @static
  22652. */
  22653. public static function flushMacros()
  22654. {
  22655. \Illuminate\Database\Query\Builder::flushMacros();
  22656. }
  22657. /**
  22658. * Dynamically handle calls to the class.
  22659. *
  22660. * @param string $method
  22661. * @param array $parameters
  22662. * @return mixed
  22663. * @throws \BadMethodCallException
  22664. * @static
  22665. */
  22666. public static function macroCall($method, $parameters)
  22667. {
  22668. /** @var \Illuminate\Database\Query\Builder $instance */
  22669. return $instance->macroCall($method, $parameters);
  22670. }
  22671. }
  22672. class Event extends \Illuminate\Support\Facades\Event {}
  22673. class File extends \Illuminate\Support\Facades\File {}
  22674. class Gate extends \Illuminate\Support\Facades\Gate {}
  22675. class Hash extends \Illuminate\Support\Facades\Hash {}
  22676. class Http extends \Illuminate\Support\Facades\Http {}
  22677. class Js extends \Illuminate\Support\Js {}
  22678. class Lang extends \Illuminate\Support\Facades\Lang {}
  22679. class Log extends \Illuminate\Support\Facades\Log {}
  22680. class Mail extends \Illuminate\Support\Facades\Mail {}
  22681. class Notification extends \Illuminate\Support\Facades\Notification {}
  22682. class Password extends \Illuminate\Support\Facades\Password {}
  22683. class Queue extends \Illuminate\Support\Facades\Queue {}
  22684. class RateLimiter extends \Illuminate\Support\Facades\RateLimiter {}
  22685. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  22686. class Request extends \Illuminate\Support\Facades\Request {}
  22687. class Response extends \Illuminate\Support\Facades\Response {}
  22688. class Route extends \Illuminate\Support\Facades\Route {}
  22689. class Schema extends \Illuminate\Support\Facades\Schema {}
  22690. class Session extends \Illuminate\Support\Facades\Session {}
  22691. class Storage extends \Illuminate\Support\Facades\Storage {}
  22692. class Str extends \Illuminate\Support\Str {}
  22693. class URL extends \Illuminate\Support\Facades\URL {}
  22694. class Validator extends \Illuminate\Support\Facades\Validator {}
  22695. class View extends \Illuminate\Support\Facades\View {}
  22696. class Vite extends \Illuminate\Support\Facades\Vite {}
  22697. class Socialite extends \Laravel\Socialite\Facades\Socialite {}
  22698. class Markdown extends \GrahamCampbell\Markdown\Facades\Markdown {}
  22699. class Breadcrumbs extends \DaveJamesMiller\Breadcrumbs\Facades\Breadcrumbs {}
  22700. class Image extends \Intervention\Image\Facades\Image {}
  22701. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  22702. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  22703. class Sentry extends \Sentry\Laravel\Facade {}
  22704. class Flare extends \Spatie\LaravelIgnition\Facades\Flare {}
  22705. }