_ide_helper.php 805 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232
  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.19.0.
  7. *
  8. * This file should not be included in your code, only analyzed by your IDE!
  9. *
  10. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  11. * @see https://github.com/barryvdh/laravel-ide-helper
  12. */
  13. namespace Illuminate\Support\Facades {
  14. /**
  15. *
  16. *
  17. * @see \Illuminate\Contracts\Foundation\Application
  18. */
  19. class App {
  20. /**
  21. * Get the version number of the application.
  22. *
  23. * @return string
  24. * @static
  25. */
  26. public static function version()
  27. {
  28. /** @var \Illuminate\Foundation\Application $instance */
  29. return $instance->version();
  30. }
  31. /**
  32. * Run the given array of bootstrap classes.
  33. *
  34. * @param string[] $bootstrappers
  35. * @return void
  36. * @static
  37. */
  38. public static function bootstrapWith($bootstrappers)
  39. {
  40. /** @var \Illuminate\Foundation\Application $instance */
  41. $instance->bootstrapWith($bootstrappers);
  42. }
  43. /**
  44. * Register a callback to run after loading the environment.
  45. *
  46. * @param \Closure $callback
  47. * @return void
  48. * @static
  49. */
  50. public static function afterLoadingEnvironment($callback)
  51. {
  52. /** @var \Illuminate\Foundation\Application $instance */
  53. $instance->afterLoadingEnvironment($callback);
  54. }
  55. /**
  56. * Register a callback to run before a bootstrapper.
  57. *
  58. * @param string $bootstrapper
  59. * @param \Closure $callback
  60. * @return void
  61. * @static
  62. */
  63. public static function beforeBootstrapping($bootstrapper, $callback)
  64. {
  65. /** @var \Illuminate\Foundation\Application $instance */
  66. $instance->beforeBootstrapping($bootstrapper, $callback);
  67. }
  68. /**
  69. * Register a callback to run after a bootstrapper.
  70. *
  71. * @param string $bootstrapper
  72. * @param \Closure $callback
  73. * @return void
  74. * @static
  75. */
  76. public static function afterBootstrapping($bootstrapper, $callback)
  77. {
  78. /** @var \Illuminate\Foundation\Application $instance */
  79. $instance->afterBootstrapping($bootstrapper, $callback);
  80. }
  81. /**
  82. * Determine if the application has been bootstrapped before.
  83. *
  84. * @return bool
  85. * @static
  86. */
  87. public static function hasBeenBootstrapped()
  88. {
  89. /** @var \Illuminate\Foundation\Application $instance */
  90. return $instance->hasBeenBootstrapped();
  91. }
  92. /**
  93. * Set the base path for the application.
  94. *
  95. * @param string $basePath
  96. * @return \Illuminate\Foundation\Application
  97. * @static
  98. */
  99. public static function setBasePath($basePath)
  100. {
  101. /** @var \Illuminate\Foundation\Application $instance */
  102. return $instance->setBasePath($basePath);
  103. }
  104. /**
  105. * Get the path to the application "app" directory.
  106. *
  107. * @param string $path
  108. * @return string
  109. * @static
  110. */
  111. public static function path($path = '')
  112. {
  113. /** @var \Illuminate\Foundation\Application $instance */
  114. return $instance->path($path);
  115. }
  116. /**
  117. * Set the application directory.
  118. *
  119. * @param string $path
  120. * @return \Illuminate\Foundation\Application
  121. * @static
  122. */
  123. public static function useAppPath($path)
  124. {
  125. /** @var \Illuminate\Foundation\Application $instance */
  126. return $instance->useAppPath($path);
  127. }
  128. /**
  129. * Get the base path of the Laravel installation.
  130. *
  131. * @param string $path
  132. * @return string
  133. * @static
  134. */
  135. public static function basePath($path = '')
  136. {
  137. /** @var \Illuminate\Foundation\Application $instance */
  138. return $instance->basePath($path);
  139. }
  140. /**
  141. * Get the path to the bootstrap directory.
  142. *
  143. * @param string $path
  144. * @return string
  145. * @static
  146. */
  147. public static function bootstrapPath($path = '')
  148. {
  149. /** @var \Illuminate\Foundation\Application $instance */
  150. return $instance->bootstrapPath($path);
  151. }
  152. /**
  153. * Get the path to the application configuration files.
  154. *
  155. * @param string $path
  156. * @return string
  157. * @static
  158. */
  159. public static function configPath($path = '')
  160. {
  161. /** @var \Illuminate\Foundation\Application $instance */
  162. return $instance->configPath($path);
  163. }
  164. /**
  165. * Get the path to the database directory.
  166. *
  167. * @param string $path
  168. * @return string
  169. * @static
  170. */
  171. public static function databasePath($path = '')
  172. {
  173. /** @var \Illuminate\Foundation\Application $instance */
  174. return $instance->databasePath($path);
  175. }
  176. /**
  177. * Set the database directory.
  178. *
  179. * @param string $path
  180. * @return \Illuminate\Foundation\Application
  181. * @static
  182. */
  183. public static function useDatabasePath($path)
  184. {
  185. /** @var \Illuminate\Foundation\Application $instance */
  186. return $instance->useDatabasePath($path);
  187. }
  188. /**
  189. * Get the path to the language files.
  190. *
  191. * @param string $path
  192. * @return string
  193. * @static
  194. */
  195. public static function langPath($path = '')
  196. {
  197. /** @var \Illuminate\Foundation\Application $instance */
  198. return $instance->langPath($path);
  199. }
  200. /**
  201. * Set the language file directory.
  202. *
  203. * @param string $path
  204. * @return \Illuminate\Foundation\Application
  205. * @static
  206. */
  207. public static function useLangPath($path)
  208. {
  209. /** @var \Illuminate\Foundation\Application $instance */
  210. return $instance->useLangPath($path);
  211. }
  212. /**
  213. * Get the path to the public / web directory.
  214. *
  215. * @return string
  216. * @static
  217. */
  218. public static function publicPath()
  219. {
  220. /** @var \Illuminate\Foundation\Application $instance */
  221. return $instance->publicPath();
  222. }
  223. /**
  224. * Get the path to the storage directory.
  225. *
  226. * @param string $path
  227. * @return string
  228. * @static
  229. */
  230. public static function storagePath($path = '')
  231. {
  232. /** @var \Illuminate\Foundation\Application $instance */
  233. return $instance->storagePath($path);
  234. }
  235. /**
  236. * Set the storage directory.
  237. *
  238. * @param string $path
  239. * @return \Illuminate\Foundation\Application
  240. * @static
  241. */
  242. public static function useStoragePath($path)
  243. {
  244. /** @var \Illuminate\Foundation\Application $instance */
  245. return $instance->useStoragePath($path);
  246. }
  247. /**
  248. * Get the path to the resources directory.
  249. *
  250. * @param string $path
  251. * @return string
  252. * @static
  253. */
  254. public static function resourcePath($path = '')
  255. {
  256. /** @var \Illuminate\Foundation\Application $instance */
  257. return $instance->resourcePath($path);
  258. }
  259. /**
  260. * Get the path to the views directory.
  261. *
  262. * This method returns the first configured path in the array of view paths.
  263. *
  264. * @param string $path
  265. * @return string
  266. * @static
  267. */
  268. public static function viewPath($path = '')
  269. {
  270. /** @var \Illuminate\Foundation\Application $instance */
  271. return $instance->viewPath($path);
  272. }
  273. /**
  274. * Get the path to the environment file directory.
  275. *
  276. * @return string
  277. * @static
  278. */
  279. public static function environmentPath()
  280. {
  281. /** @var \Illuminate\Foundation\Application $instance */
  282. return $instance->environmentPath();
  283. }
  284. /**
  285. * Set the directory for the environment file.
  286. *
  287. * @param string $path
  288. * @return \Illuminate\Foundation\Application
  289. * @static
  290. */
  291. public static function useEnvironmentPath($path)
  292. {
  293. /** @var \Illuminate\Foundation\Application $instance */
  294. return $instance->useEnvironmentPath($path);
  295. }
  296. /**
  297. * Set the environment file to be loaded during bootstrapping.
  298. *
  299. * @param string $file
  300. * @return \Illuminate\Foundation\Application
  301. * @static
  302. */
  303. public static function loadEnvironmentFrom($file)
  304. {
  305. /** @var \Illuminate\Foundation\Application $instance */
  306. return $instance->loadEnvironmentFrom($file);
  307. }
  308. /**
  309. * Get the environment file the application is using.
  310. *
  311. * @return string
  312. * @static
  313. */
  314. public static function environmentFile()
  315. {
  316. /** @var \Illuminate\Foundation\Application $instance */
  317. return $instance->environmentFile();
  318. }
  319. /**
  320. * Get the fully qualified path to the environment file.
  321. *
  322. * @return string
  323. * @static
  324. */
  325. public static function environmentFilePath()
  326. {
  327. /** @var \Illuminate\Foundation\Application $instance */
  328. return $instance->environmentFilePath();
  329. }
  330. /**
  331. * Get or check the current application environment.
  332. *
  333. * @param string|array $environments
  334. * @return string|bool
  335. * @static
  336. */
  337. public static function environment(...$environments)
  338. {
  339. /** @var \Illuminate\Foundation\Application $instance */
  340. return $instance->environment(...$environments);
  341. }
  342. /**
  343. * Determine if the application is in the local environment.
  344. *
  345. * @return bool
  346. * @static
  347. */
  348. public static function isLocal()
  349. {
  350. /** @var \Illuminate\Foundation\Application $instance */
  351. return $instance->isLocal();
  352. }
  353. /**
  354. * Determine if the application is in the production environment.
  355. *
  356. * @return bool
  357. * @static
  358. */
  359. public static function isProduction()
  360. {
  361. /** @var \Illuminate\Foundation\Application $instance */
  362. return $instance->isProduction();
  363. }
  364. /**
  365. * Detect the application's current environment.
  366. *
  367. * @param \Closure $callback
  368. * @return string
  369. * @static
  370. */
  371. public static function detectEnvironment($callback)
  372. {
  373. /** @var \Illuminate\Foundation\Application $instance */
  374. return $instance->detectEnvironment($callback);
  375. }
  376. /**
  377. * Determine if the application is running in the console.
  378. *
  379. * @return bool
  380. * @static
  381. */
  382. public static function runningInConsole()
  383. {
  384. /** @var \Illuminate\Foundation\Application $instance */
  385. return $instance->runningInConsole();
  386. }
  387. /**
  388. * Determine if the application is running unit tests.
  389. *
  390. * @return bool
  391. * @static
  392. */
  393. public static function runningUnitTests()
  394. {
  395. /** @var \Illuminate\Foundation\Application $instance */
  396. return $instance->runningUnitTests();
  397. }
  398. /**
  399. * Determine if the application is running with debug mode enabled.
  400. *
  401. * @return bool
  402. * @static
  403. */
  404. public static function hasDebugModeEnabled()
  405. {
  406. /** @var \Illuminate\Foundation\Application $instance */
  407. return $instance->hasDebugModeEnabled();
  408. }
  409. /**
  410. * Register all of the configured providers.
  411. *
  412. * @return void
  413. * @static
  414. */
  415. public static function registerConfiguredProviders()
  416. {
  417. /** @var \Illuminate\Foundation\Application $instance */
  418. $instance->registerConfiguredProviders();
  419. }
  420. /**
  421. * Register a service provider with the application.
  422. *
  423. * @param \Illuminate\Support\ServiceProvider|string $provider
  424. * @param bool $force
  425. * @return \Illuminate\Support\ServiceProvider
  426. * @static
  427. */
  428. public static function register($provider, $force = false)
  429. {
  430. /** @var \Illuminate\Foundation\Application $instance */
  431. return $instance->register($provider, $force);
  432. }
  433. /**
  434. * Get the registered service provider instance if it exists.
  435. *
  436. * @param \Illuminate\Support\ServiceProvider|string $provider
  437. * @return \Illuminate\Support\ServiceProvider|null
  438. * @static
  439. */
  440. public static function getProvider($provider)
  441. {
  442. /** @var \Illuminate\Foundation\Application $instance */
  443. return $instance->getProvider($provider);
  444. }
  445. /**
  446. * Get the registered service provider instances if any exist.
  447. *
  448. * @param \Illuminate\Support\ServiceProvider|string $provider
  449. * @return array
  450. * @static
  451. */
  452. public static function getProviders($provider)
  453. {
  454. /** @var \Illuminate\Foundation\Application $instance */
  455. return $instance->getProviders($provider);
  456. }
  457. /**
  458. * Resolve a service provider instance from the class name.
  459. *
  460. * @param string $provider
  461. * @return \Illuminate\Support\ServiceProvider
  462. * @static
  463. */
  464. public static function resolveProvider($provider)
  465. {
  466. /** @var \Illuminate\Foundation\Application $instance */
  467. return $instance->resolveProvider($provider);
  468. }
  469. /**
  470. * Load and boot all of the remaining deferred providers.
  471. *
  472. * @return void
  473. * @static
  474. */
  475. public static function loadDeferredProviders()
  476. {
  477. /** @var \Illuminate\Foundation\Application $instance */
  478. $instance->loadDeferredProviders();
  479. }
  480. /**
  481. * Load the provider for a deferred service.
  482. *
  483. * @param string $service
  484. * @return void
  485. * @static
  486. */
  487. public static function loadDeferredProvider($service)
  488. {
  489. /** @var \Illuminate\Foundation\Application $instance */
  490. $instance->loadDeferredProvider($service);
  491. }
  492. /**
  493. * Register a deferred provider and service.
  494. *
  495. * @param string $provider
  496. * @param string|null $service
  497. * @return void
  498. * @static
  499. */
  500. public static function registerDeferredProvider($provider, $service = null)
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. $instance->registerDeferredProvider($provider, $service);
  504. }
  505. /**
  506. * Resolve the given type from the container.
  507. *
  508. * @param string $abstract
  509. * @param array $parameters
  510. * @return mixed
  511. * @static
  512. */
  513. public static function make($abstract, $parameters = [])
  514. {
  515. /** @var \Illuminate\Foundation\Application $instance */
  516. return $instance->make($abstract, $parameters);
  517. }
  518. /**
  519. * Determine if the given abstract type has been bound.
  520. *
  521. * @param string $abstract
  522. * @return bool
  523. * @static
  524. */
  525. public static function bound($abstract)
  526. {
  527. /** @var \Illuminate\Foundation\Application $instance */
  528. return $instance->bound($abstract);
  529. }
  530. /**
  531. * Determine if the application has booted.
  532. *
  533. * @return bool
  534. * @static
  535. */
  536. public static function isBooted()
  537. {
  538. /** @var \Illuminate\Foundation\Application $instance */
  539. return $instance->isBooted();
  540. }
  541. /**
  542. * Boot the application's service providers.
  543. *
  544. * @return void
  545. * @static
  546. */
  547. public static function boot()
  548. {
  549. /** @var \Illuminate\Foundation\Application $instance */
  550. $instance->boot();
  551. }
  552. /**
  553. * Register a new boot listener.
  554. *
  555. * @param callable $callback
  556. * @return void
  557. * @static
  558. */
  559. public static function booting($callback)
  560. {
  561. /** @var \Illuminate\Foundation\Application $instance */
  562. $instance->booting($callback);
  563. }
  564. /**
  565. * Register a new "booted" listener.
  566. *
  567. * @param callable $callback
  568. * @return void
  569. * @static
  570. */
  571. public static function booted($callback)
  572. {
  573. /** @var \Illuminate\Foundation\Application $instance */
  574. $instance->booted($callback);
  575. }
  576. /**
  577. * {@inheritdoc}
  578. *
  579. * @return \Symfony\Component\HttpFoundation\Response
  580. * @static
  581. */
  582. public static function handle($request, $type = 1, $catch = true)
  583. {
  584. /** @var \Illuminate\Foundation\Application $instance */
  585. return $instance->handle($request, $type, $catch);
  586. }
  587. /**
  588. * Determine if middleware has been disabled for the application.
  589. *
  590. * @return bool
  591. * @static
  592. */
  593. public static function shouldSkipMiddleware()
  594. {
  595. /** @var \Illuminate\Foundation\Application $instance */
  596. return $instance->shouldSkipMiddleware();
  597. }
  598. /**
  599. * Get the path to the cached services.php file.
  600. *
  601. * @return string
  602. * @static
  603. */
  604. public static function getCachedServicesPath()
  605. {
  606. /** @var \Illuminate\Foundation\Application $instance */
  607. return $instance->getCachedServicesPath();
  608. }
  609. /**
  610. * Get the path to the cached packages.php file.
  611. *
  612. * @return string
  613. * @static
  614. */
  615. public static function getCachedPackagesPath()
  616. {
  617. /** @var \Illuminate\Foundation\Application $instance */
  618. return $instance->getCachedPackagesPath();
  619. }
  620. /**
  621. * Determine if the application configuration is cached.
  622. *
  623. * @return bool
  624. * @static
  625. */
  626. public static function configurationIsCached()
  627. {
  628. /** @var \Illuminate\Foundation\Application $instance */
  629. return $instance->configurationIsCached();
  630. }
  631. /**
  632. * Get the path to the configuration cache file.
  633. *
  634. * @return string
  635. * @static
  636. */
  637. public static function getCachedConfigPath()
  638. {
  639. /** @var \Illuminate\Foundation\Application $instance */
  640. return $instance->getCachedConfigPath();
  641. }
  642. /**
  643. * Determine if the application routes are cached.
  644. *
  645. * @return bool
  646. * @static
  647. */
  648. public static function routesAreCached()
  649. {
  650. /** @var \Illuminate\Foundation\Application $instance */
  651. return $instance->routesAreCached();
  652. }
  653. /**
  654. * Get the path to the routes cache file.
  655. *
  656. * @return string
  657. * @static
  658. */
  659. public static function getCachedRoutesPath()
  660. {
  661. /** @var \Illuminate\Foundation\Application $instance */
  662. return $instance->getCachedRoutesPath();
  663. }
  664. /**
  665. * Determine if the application events are cached.
  666. *
  667. * @return bool
  668. * @static
  669. */
  670. public static function eventsAreCached()
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. return $instance->eventsAreCached();
  674. }
  675. /**
  676. * Get the path to the events cache file.
  677. *
  678. * @return string
  679. * @static
  680. */
  681. public static function getCachedEventsPath()
  682. {
  683. /** @var \Illuminate\Foundation\Application $instance */
  684. return $instance->getCachedEventsPath();
  685. }
  686. /**
  687. * Add new prefix to list of absolute path prefixes.
  688. *
  689. * @param string $prefix
  690. * @return \Illuminate\Foundation\Application
  691. * @static
  692. */
  693. public static function addAbsoluteCachePathPrefix($prefix)
  694. {
  695. /** @var \Illuminate\Foundation\Application $instance */
  696. return $instance->addAbsoluteCachePathPrefix($prefix);
  697. }
  698. /**
  699. * Get an instance of the maintenance mode manager implementation.
  700. *
  701. * @return \Illuminate\Contracts\Foundation\MaintenanceMode
  702. * @static
  703. */
  704. public static function maintenanceMode()
  705. {
  706. /** @var \Illuminate\Foundation\Application $instance */
  707. return $instance->maintenanceMode();
  708. }
  709. /**
  710. * Determine if the application is currently down for maintenance.
  711. *
  712. * @return bool
  713. * @static
  714. */
  715. public static function isDownForMaintenance()
  716. {
  717. /** @var \Illuminate\Foundation\Application $instance */
  718. return $instance->isDownForMaintenance();
  719. }
  720. /**
  721. * Throw an HttpException with the given data.
  722. *
  723. * @param int $code
  724. * @param string $message
  725. * @param array $headers
  726. * @return \Illuminate\Foundation\never
  727. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  728. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  729. * @static
  730. */
  731. public static function abort($code, $message = '', $headers = [])
  732. {
  733. /** @var \Illuminate\Foundation\Application $instance */
  734. return $instance->abort($code, $message, $headers);
  735. }
  736. /**
  737. * Register a terminating callback with the application.
  738. *
  739. * @param callable|string $callback
  740. * @return \Illuminate\Foundation\Application
  741. * @static
  742. */
  743. public static function terminating($callback)
  744. {
  745. /** @var \Illuminate\Foundation\Application $instance */
  746. return $instance->terminating($callback);
  747. }
  748. /**
  749. * Terminate the application.
  750. *
  751. * @return void
  752. * @static
  753. */
  754. public static function terminate()
  755. {
  756. /** @var \Illuminate\Foundation\Application $instance */
  757. $instance->terminate();
  758. }
  759. /**
  760. * Get the service providers that have been loaded.
  761. *
  762. * @return array
  763. * @static
  764. */
  765. public static function getLoadedProviders()
  766. {
  767. /** @var \Illuminate\Foundation\Application $instance */
  768. return $instance->getLoadedProviders();
  769. }
  770. /**
  771. * Determine if the given service provider is loaded.
  772. *
  773. * @param string $provider
  774. * @return bool
  775. * @static
  776. */
  777. public static function providerIsLoaded($provider)
  778. {
  779. /** @var \Illuminate\Foundation\Application $instance */
  780. return $instance->providerIsLoaded($provider);
  781. }
  782. /**
  783. * Get the application's deferred services.
  784. *
  785. * @return array
  786. * @static
  787. */
  788. public static function getDeferredServices()
  789. {
  790. /** @var \Illuminate\Foundation\Application $instance */
  791. return $instance->getDeferredServices();
  792. }
  793. /**
  794. * Set the application's deferred services.
  795. *
  796. * @param array $services
  797. * @return void
  798. * @static
  799. */
  800. public static function setDeferredServices($services)
  801. {
  802. /** @var \Illuminate\Foundation\Application $instance */
  803. $instance->setDeferredServices($services);
  804. }
  805. /**
  806. * Add an array of services to the application's deferred services.
  807. *
  808. * @param array $services
  809. * @return void
  810. * @static
  811. */
  812. public static function addDeferredServices($services)
  813. {
  814. /** @var \Illuminate\Foundation\Application $instance */
  815. $instance->addDeferredServices($services);
  816. }
  817. /**
  818. * Determine if the given service is a deferred service.
  819. *
  820. * @param string $service
  821. * @return bool
  822. * @static
  823. */
  824. public static function isDeferredService($service)
  825. {
  826. /** @var \Illuminate\Foundation\Application $instance */
  827. return $instance->isDeferredService($service);
  828. }
  829. /**
  830. * Configure the real-time facade namespace.
  831. *
  832. * @param string $namespace
  833. * @return void
  834. * @static
  835. */
  836. public static function provideFacades($namespace)
  837. {
  838. /** @var \Illuminate\Foundation\Application $instance */
  839. $instance->provideFacades($namespace);
  840. }
  841. /**
  842. * Get the current application locale.
  843. *
  844. * @return string
  845. * @static
  846. */
  847. public static function getLocale()
  848. {
  849. /** @var \Illuminate\Foundation\Application $instance */
  850. return $instance->getLocale();
  851. }
  852. /**
  853. * Get the current application locale.
  854. *
  855. * @return string
  856. * @static
  857. */
  858. public static function currentLocale()
  859. {
  860. /** @var \Illuminate\Foundation\Application $instance */
  861. return $instance->currentLocale();
  862. }
  863. /**
  864. * Get the current application fallback locale.
  865. *
  866. * @return string
  867. * @static
  868. */
  869. public static function getFallbackLocale()
  870. {
  871. /** @var \Illuminate\Foundation\Application $instance */
  872. return $instance->getFallbackLocale();
  873. }
  874. /**
  875. * Set the current application locale.
  876. *
  877. * @param string $locale
  878. * @return void
  879. * @static
  880. */
  881. public static function setLocale($locale)
  882. {
  883. /** @var \Illuminate\Foundation\Application $instance */
  884. $instance->setLocale($locale);
  885. }
  886. /**
  887. * Set the current application fallback locale.
  888. *
  889. * @param string $fallbackLocale
  890. * @return void
  891. * @static
  892. */
  893. public static function setFallbackLocale($fallbackLocale)
  894. {
  895. /** @var \Illuminate\Foundation\Application $instance */
  896. $instance->setFallbackLocale($fallbackLocale);
  897. }
  898. /**
  899. * Determine if the application locale is the given locale.
  900. *
  901. * @param string $locale
  902. * @return bool
  903. * @static
  904. */
  905. public static function isLocale($locale)
  906. {
  907. /** @var \Illuminate\Foundation\Application $instance */
  908. return $instance->isLocale($locale);
  909. }
  910. /**
  911. * Register the core class aliases in the container.
  912. *
  913. * @return void
  914. * @static
  915. */
  916. public static function registerCoreContainerAliases()
  917. {
  918. /** @var \Illuminate\Foundation\Application $instance */
  919. $instance->registerCoreContainerAliases();
  920. }
  921. /**
  922. * Flush the container of all bindings and resolved instances.
  923. *
  924. * @return void
  925. * @static
  926. */
  927. public static function flush()
  928. {
  929. /** @var \Illuminate\Foundation\Application $instance */
  930. $instance->flush();
  931. }
  932. /**
  933. * Get the application namespace.
  934. *
  935. * @return string
  936. * @throws \RuntimeException
  937. * @static
  938. */
  939. public static function getNamespace()
  940. {
  941. /** @var \Illuminate\Foundation\Application $instance */
  942. return $instance->getNamespace();
  943. }
  944. /**
  945. * Define a contextual binding.
  946. *
  947. * @param array|string $concrete
  948. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  949. * @static
  950. */
  951. public static function when($concrete)
  952. { //Method inherited from \Illuminate\Container\Container
  953. /** @var \Illuminate\Foundation\Application $instance */
  954. return $instance->when($concrete);
  955. }
  956. /**
  957. * Returns true if the container can return an entry for the given identifier.
  958. *
  959. * Returns false otherwise.
  960. *
  961. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  962. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  963. *
  964. * @return bool
  965. * @param string $id Identifier of the entry to look for.
  966. * @return bool
  967. * @static
  968. */
  969. public static function has($id)
  970. { //Method inherited from \Illuminate\Container\Container
  971. /** @var \Illuminate\Foundation\Application $instance */
  972. return $instance->has($id);
  973. }
  974. /**
  975. * Determine if the given abstract type has been resolved.
  976. *
  977. * @param string $abstract
  978. * @return bool
  979. * @static
  980. */
  981. public static function resolved($abstract)
  982. { //Method inherited from \Illuminate\Container\Container
  983. /** @var \Illuminate\Foundation\Application $instance */
  984. return $instance->resolved($abstract);
  985. }
  986. /**
  987. * Determine if a given type is shared.
  988. *
  989. * @param string $abstract
  990. * @return bool
  991. * @static
  992. */
  993. public static function isShared($abstract)
  994. { //Method inherited from \Illuminate\Container\Container
  995. /** @var \Illuminate\Foundation\Application $instance */
  996. return $instance->isShared($abstract);
  997. }
  998. /**
  999. * Determine if a given string is an alias.
  1000. *
  1001. * @param string $name
  1002. * @return bool
  1003. * @static
  1004. */
  1005. public static function isAlias($name)
  1006. { //Method inherited from \Illuminate\Container\Container
  1007. /** @var \Illuminate\Foundation\Application $instance */
  1008. return $instance->isAlias($name);
  1009. }
  1010. /**
  1011. * Register a binding with the container.
  1012. *
  1013. * @param string $abstract
  1014. * @param \Closure|string|null $concrete
  1015. * @param bool $shared
  1016. * @return void
  1017. * @throws \TypeError
  1018. * @static
  1019. */
  1020. public static function bind($abstract, $concrete = null, $shared = false)
  1021. { //Method inherited from \Illuminate\Container\Container
  1022. /** @var \Illuminate\Foundation\Application $instance */
  1023. $instance->bind($abstract, $concrete, $shared);
  1024. }
  1025. /**
  1026. * Determine if the container has a method binding.
  1027. *
  1028. * @param string $method
  1029. * @return bool
  1030. * @static
  1031. */
  1032. public static function hasMethodBinding($method)
  1033. { //Method inherited from \Illuminate\Container\Container
  1034. /** @var \Illuminate\Foundation\Application $instance */
  1035. return $instance->hasMethodBinding($method);
  1036. }
  1037. /**
  1038. * Bind a callback to resolve with Container::call.
  1039. *
  1040. * @param array|string $method
  1041. * @param \Closure $callback
  1042. * @return void
  1043. * @static
  1044. */
  1045. public static function bindMethod($method, $callback)
  1046. { //Method inherited from \Illuminate\Container\Container
  1047. /** @var \Illuminate\Foundation\Application $instance */
  1048. $instance->bindMethod($method, $callback);
  1049. }
  1050. /**
  1051. * Get the method binding for the given method.
  1052. *
  1053. * @param string $method
  1054. * @param mixed $instance
  1055. * @return mixed
  1056. * @static
  1057. */
  1058. public static function callMethodBinding($method, $instance)
  1059. { //Method inherited from \Illuminate\Container\Container
  1060. /** @var \Illuminate\Foundation\Application $instance */
  1061. return $instance->callMethodBinding($method, $instance);
  1062. }
  1063. /**
  1064. * Add a contextual binding to the container.
  1065. *
  1066. * @param string $concrete
  1067. * @param string $abstract
  1068. * @param \Closure|string $implementation
  1069. * @return void
  1070. * @static
  1071. */
  1072. public static function addContextualBinding($concrete, $abstract, $implementation)
  1073. { //Method inherited from \Illuminate\Container\Container
  1074. /** @var \Illuminate\Foundation\Application $instance */
  1075. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1076. }
  1077. /**
  1078. * Register a binding if it hasn't already been registered.
  1079. *
  1080. * @param string $abstract
  1081. * @param \Closure|string|null $concrete
  1082. * @param bool $shared
  1083. * @return void
  1084. * @static
  1085. */
  1086. public static function bindIf($abstract, $concrete = null, $shared = false)
  1087. { //Method inherited from \Illuminate\Container\Container
  1088. /** @var \Illuminate\Foundation\Application $instance */
  1089. $instance->bindIf($abstract, $concrete, $shared);
  1090. }
  1091. /**
  1092. * Register a shared binding in the container.
  1093. *
  1094. * @param string $abstract
  1095. * @param \Closure|string|null $concrete
  1096. * @return void
  1097. * @static
  1098. */
  1099. public static function singleton($abstract, $concrete = null)
  1100. { //Method inherited from \Illuminate\Container\Container
  1101. /** @var \Illuminate\Foundation\Application $instance */
  1102. $instance->singleton($abstract, $concrete);
  1103. }
  1104. /**
  1105. * Register a shared binding if it hasn't already been registered.
  1106. *
  1107. * @param string $abstract
  1108. * @param \Closure|string|null $concrete
  1109. * @return void
  1110. * @static
  1111. */
  1112. public static function singletonIf($abstract, $concrete = null)
  1113. { //Method inherited from \Illuminate\Container\Container
  1114. /** @var \Illuminate\Foundation\Application $instance */
  1115. $instance->singletonIf($abstract, $concrete);
  1116. }
  1117. /**
  1118. * Register a scoped binding in the container.
  1119. *
  1120. * @param string $abstract
  1121. * @param \Closure|string|null $concrete
  1122. * @return void
  1123. * @static
  1124. */
  1125. public static function scoped($abstract, $concrete = null)
  1126. { //Method inherited from \Illuminate\Container\Container
  1127. /** @var \Illuminate\Foundation\Application $instance */
  1128. $instance->scoped($abstract, $concrete);
  1129. }
  1130. /**
  1131. * Register a scoped binding if it hasn't already been registered.
  1132. *
  1133. * @param string $abstract
  1134. * @param \Closure|string|null $concrete
  1135. * @return void
  1136. * @static
  1137. */
  1138. public static function scopedIf($abstract, $concrete = null)
  1139. { //Method inherited from \Illuminate\Container\Container
  1140. /** @var \Illuminate\Foundation\Application $instance */
  1141. $instance->scopedIf($abstract, $concrete);
  1142. }
  1143. /**
  1144. * "Extend" an abstract type in the container.
  1145. *
  1146. * @param string $abstract
  1147. * @param \Closure $closure
  1148. * @return void
  1149. * @throws \InvalidArgumentException
  1150. * @static
  1151. */
  1152. public static function extend($abstract, $closure)
  1153. { //Method inherited from \Illuminate\Container\Container
  1154. /** @var \Illuminate\Foundation\Application $instance */
  1155. $instance->extend($abstract, $closure);
  1156. }
  1157. /**
  1158. * Register an existing instance as shared in the container.
  1159. *
  1160. * @param string $abstract
  1161. * @param mixed $instance
  1162. * @return mixed
  1163. * @static
  1164. */
  1165. public static function instance($abstract, $instance)
  1166. { //Method inherited from \Illuminate\Container\Container
  1167. /** @var \Illuminate\Foundation\Application $instance */
  1168. return $instance->instance($abstract, $instance);
  1169. }
  1170. /**
  1171. * Assign a set of tags to a given binding.
  1172. *
  1173. * @param array|string $abstracts
  1174. * @param array|mixed $tags
  1175. * @return void
  1176. * @static
  1177. */
  1178. public static function tag($abstracts, $tags)
  1179. { //Method inherited from \Illuminate\Container\Container
  1180. /** @var \Illuminate\Foundation\Application $instance */
  1181. $instance->tag($abstracts, $tags);
  1182. }
  1183. /**
  1184. * Resolve all of the bindings for a given tag.
  1185. *
  1186. * @param string $tag
  1187. * @return \Illuminate\Container\iterable
  1188. * @static
  1189. */
  1190. public static function tagged($tag)
  1191. { //Method inherited from \Illuminate\Container\Container
  1192. /** @var \Illuminate\Foundation\Application $instance */
  1193. return $instance->tagged($tag);
  1194. }
  1195. /**
  1196. * Alias a type to a different name.
  1197. *
  1198. * @param string $abstract
  1199. * @param string $alias
  1200. * @return void
  1201. * @throws \LogicException
  1202. * @static
  1203. */
  1204. public static function alias($abstract, $alias)
  1205. { //Method inherited from \Illuminate\Container\Container
  1206. /** @var \Illuminate\Foundation\Application $instance */
  1207. $instance->alias($abstract, $alias);
  1208. }
  1209. /**
  1210. * Bind a new callback to an abstract's rebind event.
  1211. *
  1212. * @param string $abstract
  1213. * @param \Closure $callback
  1214. * @return mixed
  1215. * @static
  1216. */
  1217. public static function rebinding($abstract, $callback)
  1218. { //Method inherited from \Illuminate\Container\Container
  1219. /** @var \Illuminate\Foundation\Application $instance */
  1220. return $instance->rebinding($abstract, $callback);
  1221. }
  1222. /**
  1223. * Refresh an instance on the given target and method.
  1224. *
  1225. * @param string $abstract
  1226. * @param mixed $target
  1227. * @param string $method
  1228. * @return mixed
  1229. * @static
  1230. */
  1231. public static function refresh($abstract, $target, $method)
  1232. { //Method inherited from \Illuminate\Container\Container
  1233. /** @var \Illuminate\Foundation\Application $instance */
  1234. return $instance->refresh($abstract, $target, $method);
  1235. }
  1236. /**
  1237. * Wrap the given closure such that its dependencies will be injected when executed.
  1238. *
  1239. * @param \Closure $callback
  1240. * @param array $parameters
  1241. * @return \Closure
  1242. * @static
  1243. */
  1244. public static function wrap($callback, $parameters = [])
  1245. { //Method inherited from \Illuminate\Container\Container
  1246. /** @var \Illuminate\Foundation\Application $instance */
  1247. return $instance->wrap($callback, $parameters);
  1248. }
  1249. /**
  1250. * Call the given Closure / class@method and inject its dependencies.
  1251. *
  1252. * @param callable|string $callback
  1253. * @param \Illuminate\Container\array<string, mixed> $parameters
  1254. * @param string|null $defaultMethod
  1255. * @return mixed
  1256. * @throws \InvalidArgumentException
  1257. * @static
  1258. */
  1259. public static function call($callback, $parameters = [], $defaultMethod = null)
  1260. { //Method inherited from \Illuminate\Container\Container
  1261. /** @var \Illuminate\Foundation\Application $instance */
  1262. return $instance->call($callback, $parameters, $defaultMethod);
  1263. }
  1264. /**
  1265. * Get a closure to resolve the given type from the container.
  1266. *
  1267. * @param string $abstract
  1268. * @return \Closure
  1269. * @static
  1270. */
  1271. public static function factory($abstract)
  1272. { //Method inherited from \Illuminate\Container\Container
  1273. /** @var \Illuminate\Foundation\Application $instance */
  1274. return $instance->factory($abstract);
  1275. }
  1276. /**
  1277. * An alias function name for make().
  1278. *
  1279. * @param string|callable $abstract
  1280. * @param array $parameters
  1281. * @return mixed
  1282. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1283. * @static
  1284. */
  1285. public static function makeWith($abstract, $parameters = [])
  1286. { //Method inherited from \Illuminate\Container\Container
  1287. /** @var \Illuminate\Foundation\Application $instance */
  1288. return $instance->makeWith($abstract, $parameters);
  1289. }
  1290. /**
  1291. * Finds an entry of the container by its identifier and returns it.
  1292. *
  1293. * @return mixed
  1294. * @param string $id Identifier of the entry to look for.
  1295. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1296. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1297. * @return mixed Entry.
  1298. * @static
  1299. */
  1300. public static function get($id)
  1301. { //Method inherited from \Illuminate\Container\Container
  1302. /** @var \Illuminate\Foundation\Application $instance */
  1303. return $instance->get($id);
  1304. }
  1305. /**
  1306. * Instantiate a concrete instance of the given type.
  1307. *
  1308. * @param \Closure|string $concrete
  1309. * @return mixed
  1310. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1311. * @throws \Illuminate\Contracts\Container\CircularDependencyException
  1312. * @static
  1313. */
  1314. public static function build($concrete)
  1315. { //Method inherited from \Illuminate\Container\Container
  1316. /** @var \Illuminate\Foundation\Application $instance */
  1317. return $instance->build($concrete);
  1318. }
  1319. /**
  1320. * Register a new before resolving callback for all types.
  1321. *
  1322. * @param \Closure|string $abstract
  1323. * @param \Closure|null $callback
  1324. * @return void
  1325. * @static
  1326. */
  1327. public static function beforeResolving($abstract, $callback = null)
  1328. { //Method inherited from \Illuminate\Container\Container
  1329. /** @var \Illuminate\Foundation\Application $instance */
  1330. $instance->beforeResolving($abstract, $callback);
  1331. }
  1332. /**
  1333. * Register a new resolving callback.
  1334. *
  1335. * @param \Closure|string $abstract
  1336. * @param \Closure|null $callback
  1337. * @return void
  1338. * @static
  1339. */
  1340. public static function resolving($abstract, $callback = null)
  1341. { //Method inherited from \Illuminate\Container\Container
  1342. /** @var \Illuminate\Foundation\Application $instance */
  1343. $instance->resolving($abstract, $callback);
  1344. }
  1345. /**
  1346. * Register a new after resolving callback for all types.
  1347. *
  1348. * @param \Closure|string $abstract
  1349. * @param \Closure|null $callback
  1350. * @return void
  1351. * @static
  1352. */
  1353. public static function afterResolving($abstract, $callback = null)
  1354. { //Method inherited from \Illuminate\Container\Container
  1355. /** @var \Illuminate\Foundation\Application $instance */
  1356. $instance->afterResolving($abstract, $callback);
  1357. }
  1358. /**
  1359. * Get the container's bindings.
  1360. *
  1361. * @return array
  1362. * @static
  1363. */
  1364. public static function getBindings()
  1365. { //Method inherited from \Illuminate\Container\Container
  1366. /** @var \Illuminate\Foundation\Application $instance */
  1367. return $instance->getBindings();
  1368. }
  1369. /**
  1370. * Get the alias for an abstract if available.
  1371. *
  1372. * @param string $abstract
  1373. * @return string
  1374. * @static
  1375. */
  1376. public static function getAlias($abstract)
  1377. { //Method inherited from \Illuminate\Container\Container
  1378. /** @var \Illuminate\Foundation\Application $instance */
  1379. return $instance->getAlias($abstract);
  1380. }
  1381. /**
  1382. * Remove all of the extender callbacks for a given type.
  1383. *
  1384. * @param string $abstract
  1385. * @return void
  1386. * @static
  1387. */
  1388. public static function forgetExtenders($abstract)
  1389. { //Method inherited from \Illuminate\Container\Container
  1390. /** @var \Illuminate\Foundation\Application $instance */
  1391. $instance->forgetExtenders($abstract);
  1392. }
  1393. /**
  1394. * Remove a resolved instance from the instance cache.
  1395. *
  1396. * @param string $abstract
  1397. * @return void
  1398. * @static
  1399. */
  1400. public static function forgetInstance($abstract)
  1401. { //Method inherited from \Illuminate\Container\Container
  1402. /** @var \Illuminate\Foundation\Application $instance */
  1403. $instance->forgetInstance($abstract);
  1404. }
  1405. /**
  1406. * Clear all of the instances from the container.
  1407. *
  1408. * @return void
  1409. * @static
  1410. */
  1411. public static function forgetInstances()
  1412. { //Method inherited from \Illuminate\Container\Container
  1413. /** @var \Illuminate\Foundation\Application $instance */
  1414. $instance->forgetInstances();
  1415. }
  1416. /**
  1417. * Clear all of the scoped instances from the container.
  1418. *
  1419. * @return void
  1420. * @static
  1421. */
  1422. public static function forgetScopedInstances()
  1423. { //Method inherited from \Illuminate\Container\Container
  1424. /** @var \Illuminate\Foundation\Application $instance */
  1425. $instance->forgetScopedInstances();
  1426. }
  1427. /**
  1428. * Get the globally available instance of the container.
  1429. *
  1430. * @return static
  1431. * @static
  1432. */
  1433. public static function getInstance()
  1434. { //Method inherited from \Illuminate\Container\Container
  1435. return \Illuminate\Foundation\Application::getInstance();
  1436. }
  1437. /**
  1438. * Set the shared instance of the container.
  1439. *
  1440. * @param \Illuminate\Contracts\Container\Container|null $container
  1441. * @return \Illuminate\Contracts\Container\Container|static
  1442. * @static
  1443. */
  1444. public static function setInstance($container = null)
  1445. { //Method inherited from \Illuminate\Container\Container
  1446. return \Illuminate\Foundation\Application::setInstance($container);
  1447. }
  1448. /**
  1449. * Determine if a given offset exists.
  1450. *
  1451. * @param string $key
  1452. * @return bool
  1453. * @static
  1454. */
  1455. public static function offsetExists($key)
  1456. { //Method inherited from \Illuminate\Container\Container
  1457. /** @var \Illuminate\Foundation\Application $instance */
  1458. return $instance->offsetExists($key);
  1459. }
  1460. /**
  1461. * Get the value at a given offset.
  1462. *
  1463. * @param string $key
  1464. * @return mixed
  1465. * @static
  1466. */
  1467. public static function offsetGet($key)
  1468. { //Method inherited from \Illuminate\Container\Container
  1469. /** @var \Illuminate\Foundation\Application $instance */
  1470. return $instance->offsetGet($key);
  1471. }
  1472. /**
  1473. * Set the value at a given offset.
  1474. *
  1475. * @param string $key
  1476. * @param mixed $value
  1477. * @return void
  1478. * @static
  1479. */
  1480. public static function offsetSet($key, $value)
  1481. { //Method inherited from \Illuminate\Container\Container
  1482. /** @var \Illuminate\Foundation\Application $instance */
  1483. $instance->offsetSet($key, $value);
  1484. }
  1485. /**
  1486. * Unset the value at a given offset.
  1487. *
  1488. * @param string $key
  1489. * @return void
  1490. * @static
  1491. */
  1492. public static function offsetUnset($key)
  1493. { //Method inherited from \Illuminate\Container\Container
  1494. /** @var \Illuminate\Foundation\Application $instance */
  1495. $instance->offsetUnset($key);
  1496. }
  1497. }
  1498. /**
  1499. *
  1500. *
  1501. * @see \Illuminate\Contracts\Console\Kernel
  1502. */
  1503. class Artisan {
  1504. /**
  1505. * Run the console application.
  1506. *
  1507. * @param \Symfony\Component\Console\Input\InputInterface $input
  1508. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1509. * @return int
  1510. * @static
  1511. */
  1512. public static function handle($input, $output = null)
  1513. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1514. /** @var \App\Console\Kernel $instance */
  1515. return $instance->handle($input, $output);
  1516. }
  1517. /**
  1518. * Terminate the application.
  1519. *
  1520. * @param \Symfony\Component\Console\Input\InputInterface $input
  1521. * @param int $status
  1522. * @return void
  1523. * @static
  1524. */
  1525. public static function terminate($input, $status)
  1526. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1527. /** @var \App\Console\Kernel $instance */
  1528. $instance->terminate($input, $status);
  1529. }
  1530. /**
  1531. * Register a Closure based command with the application.
  1532. *
  1533. * @param string $signature
  1534. * @param \Closure $callback
  1535. * @return \Illuminate\Foundation\Console\ClosureCommand
  1536. * @static
  1537. */
  1538. public static function command($signature, $callback)
  1539. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1540. /** @var \App\Console\Kernel $instance */
  1541. return $instance->command($signature, $callback);
  1542. }
  1543. /**
  1544. * Register the given command with the console application.
  1545. *
  1546. * @param \Symfony\Component\Console\Command\Command $command
  1547. * @return void
  1548. * @static
  1549. */
  1550. public static function registerCommand($command)
  1551. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1552. /** @var \App\Console\Kernel $instance */
  1553. $instance->registerCommand($command);
  1554. }
  1555. /**
  1556. * Run an Artisan console command by name.
  1557. *
  1558. * @param string $command
  1559. * @param array $parameters
  1560. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1561. * @return int
  1562. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1563. * @static
  1564. */
  1565. public static function call($command, $parameters = [], $outputBuffer = null)
  1566. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1567. /** @var \App\Console\Kernel $instance */
  1568. return $instance->call($command, $parameters, $outputBuffer);
  1569. }
  1570. /**
  1571. * Queue the given console command.
  1572. *
  1573. * @param string $command
  1574. * @param array $parameters
  1575. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1576. * @static
  1577. */
  1578. public static function queue($command, $parameters = [])
  1579. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1580. /** @var \App\Console\Kernel $instance */
  1581. return $instance->queue($command, $parameters);
  1582. }
  1583. /**
  1584. * Get all of the commands registered with the console.
  1585. *
  1586. * @return array
  1587. * @static
  1588. */
  1589. public static function all()
  1590. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1591. /** @var \App\Console\Kernel $instance */
  1592. return $instance->all();
  1593. }
  1594. /**
  1595. * Get the output for the last run command.
  1596. *
  1597. * @return string
  1598. * @static
  1599. */
  1600. public static function output()
  1601. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1602. /** @var \App\Console\Kernel $instance */
  1603. return $instance->output();
  1604. }
  1605. /**
  1606. * Bootstrap the application for artisan commands.
  1607. *
  1608. * @return void
  1609. * @static
  1610. */
  1611. public static function bootstrap()
  1612. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1613. /** @var \App\Console\Kernel $instance */
  1614. $instance->bootstrap();
  1615. }
  1616. /**
  1617. * Set the Artisan application instance.
  1618. *
  1619. * @param \Illuminate\Console\Application $artisan
  1620. * @return void
  1621. * @static
  1622. */
  1623. public static function setArtisan($artisan)
  1624. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1625. /** @var \App\Console\Kernel $instance */
  1626. $instance->setArtisan($artisan);
  1627. }
  1628. }
  1629. /**
  1630. *
  1631. *
  1632. * @see \Illuminate\Auth\AuthManager
  1633. * @see \Illuminate\Contracts\Auth\Factory
  1634. * @see \Illuminate\Contracts\Auth\Guard
  1635. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1636. */
  1637. class Auth {
  1638. /**
  1639. * Attempt to get the guard from the local cache.
  1640. *
  1641. * @param string|null $name
  1642. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1643. * @static
  1644. */
  1645. public static function guard($name = null)
  1646. {
  1647. /** @var \Illuminate\Auth\AuthManager $instance */
  1648. return $instance->guard($name);
  1649. }
  1650. /**
  1651. * Create a session based authentication guard.
  1652. *
  1653. * @param string $name
  1654. * @param array $config
  1655. * @return \Illuminate\Auth\SessionGuard
  1656. * @static
  1657. */
  1658. public static function createSessionDriver($name, $config)
  1659. {
  1660. /** @var \Illuminate\Auth\AuthManager $instance */
  1661. return $instance->createSessionDriver($name, $config);
  1662. }
  1663. /**
  1664. * Create a token based authentication guard.
  1665. *
  1666. * @param string $name
  1667. * @param array $config
  1668. * @return \Illuminate\Auth\TokenGuard
  1669. * @static
  1670. */
  1671. public static function createTokenDriver($name, $config)
  1672. {
  1673. /** @var \Illuminate\Auth\AuthManager $instance */
  1674. return $instance->createTokenDriver($name, $config);
  1675. }
  1676. /**
  1677. * Get the default authentication driver name.
  1678. *
  1679. * @return string
  1680. * @static
  1681. */
  1682. public static function getDefaultDriver()
  1683. {
  1684. /** @var \Illuminate\Auth\AuthManager $instance */
  1685. return $instance->getDefaultDriver();
  1686. }
  1687. /**
  1688. * Set the default guard driver the factory should serve.
  1689. *
  1690. * @param string $name
  1691. * @return void
  1692. * @static
  1693. */
  1694. public static function shouldUse($name)
  1695. {
  1696. /** @var \Illuminate\Auth\AuthManager $instance */
  1697. $instance->shouldUse($name);
  1698. }
  1699. /**
  1700. * Set the default authentication driver name.
  1701. *
  1702. * @param string $name
  1703. * @return void
  1704. * @static
  1705. */
  1706. public static function setDefaultDriver($name)
  1707. {
  1708. /** @var \Illuminate\Auth\AuthManager $instance */
  1709. $instance->setDefaultDriver($name);
  1710. }
  1711. /**
  1712. * Register a new callback based request guard.
  1713. *
  1714. * @param string $driver
  1715. * @param callable $callback
  1716. * @return \Illuminate\Auth\AuthManager
  1717. * @static
  1718. */
  1719. public static function viaRequest($driver, $callback)
  1720. {
  1721. /** @var \Illuminate\Auth\AuthManager $instance */
  1722. return $instance->viaRequest($driver, $callback);
  1723. }
  1724. /**
  1725. * Get the user resolver callback.
  1726. *
  1727. * @return \Closure
  1728. * @static
  1729. */
  1730. public static function userResolver()
  1731. {
  1732. /** @var \Illuminate\Auth\AuthManager $instance */
  1733. return $instance->userResolver();
  1734. }
  1735. /**
  1736. * Set the callback to be used to resolve users.
  1737. *
  1738. * @param \Closure $userResolver
  1739. * @return \Illuminate\Auth\AuthManager
  1740. * @static
  1741. */
  1742. public static function resolveUsersUsing($userResolver)
  1743. {
  1744. /** @var \Illuminate\Auth\AuthManager $instance */
  1745. return $instance->resolveUsersUsing($userResolver);
  1746. }
  1747. /**
  1748. * Register a custom driver creator Closure.
  1749. *
  1750. * @param string $driver
  1751. * @param \Closure $callback
  1752. * @return \Illuminate\Auth\AuthManager
  1753. * @static
  1754. */
  1755. public static function extend($driver, $callback)
  1756. {
  1757. /** @var \Illuminate\Auth\AuthManager $instance */
  1758. return $instance->extend($driver, $callback);
  1759. }
  1760. /**
  1761. * Register a custom provider creator Closure.
  1762. *
  1763. * @param string $name
  1764. * @param \Closure $callback
  1765. * @return \Illuminate\Auth\AuthManager
  1766. * @static
  1767. */
  1768. public static function provider($name, $callback)
  1769. {
  1770. /** @var \Illuminate\Auth\AuthManager $instance */
  1771. return $instance->provider($name, $callback);
  1772. }
  1773. /**
  1774. * Determines if any guards have already been resolved.
  1775. *
  1776. * @return bool
  1777. * @static
  1778. */
  1779. public static function hasResolvedGuards()
  1780. {
  1781. /** @var \Illuminate\Auth\AuthManager $instance */
  1782. return $instance->hasResolvedGuards();
  1783. }
  1784. /**
  1785. * Forget all of the resolved guard instances.
  1786. *
  1787. * @return \Illuminate\Auth\AuthManager
  1788. * @static
  1789. */
  1790. public static function forgetGuards()
  1791. {
  1792. /** @var \Illuminate\Auth\AuthManager $instance */
  1793. return $instance->forgetGuards();
  1794. }
  1795. /**
  1796. * Set the application instance used by the manager.
  1797. *
  1798. * @param \Illuminate\Contracts\Foundation\Application $app
  1799. * @return \Illuminate\Auth\AuthManager
  1800. * @static
  1801. */
  1802. public static function setApplication($app)
  1803. {
  1804. /** @var \Illuminate\Auth\AuthManager $instance */
  1805. return $instance->setApplication($app);
  1806. }
  1807. /**
  1808. * Create the user provider implementation for the driver.
  1809. *
  1810. * @param string|null $provider
  1811. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1812. * @throws \InvalidArgumentException
  1813. * @static
  1814. */
  1815. public static function createUserProvider($provider = null)
  1816. {
  1817. /** @var \Illuminate\Auth\AuthManager $instance */
  1818. return $instance->createUserProvider($provider);
  1819. }
  1820. /**
  1821. * Get the default user provider name.
  1822. *
  1823. * @return string
  1824. * @static
  1825. */
  1826. public static function getDefaultUserProvider()
  1827. {
  1828. /** @var \Illuminate\Auth\AuthManager $instance */
  1829. return $instance->getDefaultUserProvider();
  1830. }
  1831. /**
  1832. * Get the currently authenticated user.
  1833. *
  1834. * @return \App\Models\User|null
  1835. * @static
  1836. */
  1837. public static function user()
  1838. {
  1839. /** @var \Illuminate\Auth\SessionGuard $instance */
  1840. return $instance->user();
  1841. }
  1842. /**
  1843. * Get the ID for the currently authenticated user.
  1844. *
  1845. * @return int|string|null
  1846. * @static
  1847. */
  1848. public static function id()
  1849. {
  1850. /** @var \Illuminate\Auth\SessionGuard $instance */
  1851. return $instance->id();
  1852. }
  1853. /**
  1854. * Log a user into the application without sessions or cookies.
  1855. *
  1856. * @param array $credentials
  1857. * @return bool
  1858. * @static
  1859. */
  1860. public static function once($credentials = [])
  1861. {
  1862. /** @var \Illuminate\Auth\SessionGuard $instance */
  1863. return $instance->once($credentials);
  1864. }
  1865. /**
  1866. * Log the given user ID into the application without sessions or cookies.
  1867. *
  1868. * @param mixed $id
  1869. * @return \App\Models\User|false
  1870. * @static
  1871. */
  1872. public static function onceUsingId($id)
  1873. {
  1874. /** @var \Illuminate\Auth\SessionGuard $instance */
  1875. return $instance->onceUsingId($id);
  1876. }
  1877. /**
  1878. * Validate a user's credentials.
  1879. *
  1880. * @param array $credentials
  1881. * @return bool
  1882. * @static
  1883. */
  1884. public static function validate($credentials = [])
  1885. {
  1886. /** @var \Illuminate\Auth\SessionGuard $instance */
  1887. return $instance->validate($credentials);
  1888. }
  1889. /**
  1890. * Attempt to authenticate using HTTP Basic Auth.
  1891. *
  1892. * @param string $field
  1893. * @param array $extraConditions
  1894. * @return \Symfony\Component\HttpFoundation\Response|null
  1895. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1896. * @static
  1897. */
  1898. public static function basic($field = 'email', $extraConditions = [])
  1899. {
  1900. /** @var \Illuminate\Auth\SessionGuard $instance */
  1901. return $instance->basic($field, $extraConditions);
  1902. }
  1903. /**
  1904. * Perform a stateless HTTP Basic login attempt.
  1905. *
  1906. * @param string $field
  1907. * @param array $extraConditions
  1908. * @return \Symfony\Component\HttpFoundation\Response|null
  1909. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1910. * @static
  1911. */
  1912. public static function onceBasic($field = 'email', $extraConditions = [])
  1913. {
  1914. /** @var \Illuminate\Auth\SessionGuard $instance */
  1915. return $instance->onceBasic($field, $extraConditions);
  1916. }
  1917. /**
  1918. * Attempt to authenticate a user using the given credentials.
  1919. *
  1920. * @param array $credentials
  1921. * @param bool $remember
  1922. * @return bool
  1923. * @static
  1924. */
  1925. public static function attempt($credentials = [], $remember = false)
  1926. {
  1927. /** @var \Illuminate\Auth\SessionGuard $instance */
  1928. return $instance->attempt($credentials, $remember);
  1929. }
  1930. /**
  1931. * Attempt to authenticate a user with credentials and additional callbacks.
  1932. *
  1933. * @param array $credentials
  1934. * @param array|callable $callbacks
  1935. * @param bool $remember
  1936. * @return bool
  1937. * @static
  1938. */
  1939. public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
  1940. {
  1941. /** @var \Illuminate\Auth\SessionGuard $instance */
  1942. return $instance->attemptWhen($credentials, $callbacks, $remember);
  1943. }
  1944. /**
  1945. * Log the given user ID into the application.
  1946. *
  1947. * @param mixed $id
  1948. * @param bool $remember
  1949. * @return \App\Models\User|false
  1950. * @static
  1951. */
  1952. public static function loginUsingId($id, $remember = false)
  1953. {
  1954. /** @var \Illuminate\Auth\SessionGuard $instance */
  1955. return $instance->loginUsingId($id, $remember);
  1956. }
  1957. /**
  1958. * Log a user into the application.
  1959. *
  1960. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1961. * @param bool $remember
  1962. * @return void
  1963. * @static
  1964. */
  1965. public static function login($user, $remember = false)
  1966. {
  1967. /** @var \Illuminate\Auth\SessionGuard $instance */
  1968. $instance->login($user, $remember);
  1969. }
  1970. /**
  1971. * Log the user out of the application.
  1972. *
  1973. * @return void
  1974. * @static
  1975. */
  1976. public static function logout()
  1977. {
  1978. /** @var \Illuminate\Auth\SessionGuard $instance */
  1979. $instance->logout();
  1980. }
  1981. /**
  1982. * Log the user out of the application on their current device only.
  1983. *
  1984. * This method does not cycle the "remember" token.
  1985. *
  1986. * @return void
  1987. * @static
  1988. */
  1989. public static function logoutCurrentDevice()
  1990. {
  1991. /** @var \Illuminate\Auth\SessionGuard $instance */
  1992. $instance->logoutCurrentDevice();
  1993. }
  1994. /**
  1995. * Invalidate other sessions for the current user.
  1996. *
  1997. * The application must be using the AuthenticateSession middleware.
  1998. *
  1999. * @param string $password
  2000. * @param string $attribute
  2001. * @return \App\Models\User|null
  2002. * @throws \Illuminate\Auth\AuthenticationException
  2003. * @static
  2004. */
  2005. public static function logoutOtherDevices($password, $attribute = 'password')
  2006. {
  2007. /** @var \Illuminate\Auth\SessionGuard $instance */
  2008. return $instance->logoutOtherDevices($password, $attribute);
  2009. }
  2010. /**
  2011. * Register an authentication attempt event listener.
  2012. *
  2013. * @param mixed $callback
  2014. * @return void
  2015. * @static
  2016. */
  2017. public static function attempting($callback)
  2018. {
  2019. /** @var \Illuminate\Auth\SessionGuard $instance */
  2020. $instance->attempting($callback);
  2021. }
  2022. /**
  2023. * Get the last user we attempted to authenticate.
  2024. *
  2025. * @return \App\Models\User
  2026. * @static
  2027. */
  2028. public static function getLastAttempted()
  2029. {
  2030. /** @var \Illuminate\Auth\SessionGuard $instance */
  2031. return $instance->getLastAttempted();
  2032. }
  2033. /**
  2034. * Get a unique identifier for the auth session value.
  2035. *
  2036. * @return string
  2037. * @static
  2038. */
  2039. public static function getName()
  2040. {
  2041. /** @var \Illuminate\Auth\SessionGuard $instance */
  2042. return $instance->getName();
  2043. }
  2044. /**
  2045. * Get the name of the cookie used to store the "recaller".
  2046. *
  2047. * @return string
  2048. * @static
  2049. */
  2050. public static function getRecallerName()
  2051. {
  2052. /** @var \Illuminate\Auth\SessionGuard $instance */
  2053. return $instance->getRecallerName();
  2054. }
  2055. /**
  2056. * Determine if the user was authenticated via "remember me" cookie.
  2057. *
  2058. * @return bool
  2059. * @static
  2060. */
  2061. public static function viaRemember()
  2062. {
  2063. /** @var \Illuminate\Auth\SessionGuard $instance */
  2064. return $instance->viaRemember();
  2065. }
  2066. /**
  2067. * Set the number of minutes the remember me cookie should be valid for.
  2068. *
  2069. * @param int $minutes
  2070. * @return \Illuminate\Auth\SessionGuard
  2071. * @static
  2072. */
  2073. public static function setRememberDuration($minutes)
  2074. {
  2075. /** @var \Illuminate\Auth\SessionGuard $instance */
  2076. return $instance->setRememberDuration($minutes);
  2077. }
  2078. /**
  2079. * Get the cookie creator instance used by the guard.
  2080. *
  2081. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  2082. * @throws \RuntimeException
  2083. * @static
  2084. */
  2085. public static function getCookieJar()
  2086. {
  2087. /** @var \Illuminate\Auth\SessionGuard $instance */
  2088. return $instance->getCookieJar();
  2089. }
  2090. /**
  2091. * Set the cookie creator instance used by the guard.
  2092. *
  2093. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  2094. * @return void
  2095. * @static
  2096. */
  2097. public static function setCookieJar($cookie)
  2098. {
  2099. /** @var \Illuminate\Auth\SessionGuard $instance */
  2100. $instance->setCookieJar($cookie);
  2101. }
  2102. /**
  2103. * Get the event dispatcher instance.
  2104. *
  2105. * @return \Illuminate\Contracts\Events\Dispatcher
  2106. * @static
  2107. */
  2108. public static function getDispatcher()
  2109. {
  2110. /** @var \Illuminate\Auth\SessionGuard $instance */
  2111. return $instance->getDispatcher();
  2112. }
  2113. /**
  2114. * Set the event dispatcher instance.
  2115. *
  2116. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2117. * @return void
  2118. * @static
  2119. */
  2120. public static function setDispatcher($events)
  2121. {
  2122. /** @var \Illuminate\Auth\SessionGuard $instance */
  2123. $instance->setDispatcher($events);
  2124. }
  2125. /**
  2126. * Get the session store used by the guard.
  2127. *
  2128. * @return \Illuminate\Contracts\Session\Session
  2129. * @static
  2130. */
  2131. public static function getSession()
  2132. {
  2133. /** @var \Illuminate\Auth\SessionGuard $instance */
  2134. return $instance->getSession();
  2135. }
  2136. /**
  2137. * Return the currently cached user.
  2138. *
  2139. * @return \App\Models\User|null
  2140. * @static
  2141. */
  2142. public static function getUser()
  2143. {
  2144. /** @var \Illuminate\Auth\SessionGuard $instance */
  2145. return $instance->getUser();
  2146. }
  2147. /**
  2148. * Set the current user.
  2149. *
  2150. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2151. * @return \Illuminate\Auth\SessionGuard
  2152. * @static
  2153. */
  2154. public static function setUser($user)
  2155. {
  2156. /** @var \Illuminate\Auth\SessionGuard $instance */
  2157. return $instance->setUser($user);
  2158. }
  2159. /**
  2160. * Get the current request instance.
  2161. *
  2162. * @return \Symfony\Component\HttpFoundation\Request
  2163. * @static
  2164. */
  2165. public static function getRequest()
  2166. {
  2167. /** @var \Illuminate\Auth\SessionGuard $instance */
  2168. return $instance->getRequest();
  2169. }
  2170. /**
  2171. * Set the current request instance.
  2172. *
  2173. * @param \Symfony\Component\HttpFoundation\Request $request
  2174. * @return \Illuminate\Auth\SessionGuard
  2175. * @static
  2176. */
  2177. public static function setRequest($request)
  2178. {
  2179. /** @var \Illuminate\Auth\SessionGuard $instance */
  2180. return $instance->setRequest($request);
  2181. }
  2182. /**
  2183. * Determine if the current user is authenticated. If not, throw an exception.
  2184. *
  2185. * @return \App\Models\User
  2186. * @throws \Illuminate\Auth\AuthenticationException
  2187. * @static
  2188. */
  2189. public static function authenticate()
  2190. {
  2191. /** @var \Illuminate\Auth\SessionGuard $instance */
  2192. return $instance->authenticate();
  2193. }
  2194. /**
  2195. * Determine if the guard has a user instance.
  2196. *
  2197. * @return bool
  2198. * @static
  2199. */
  2200. public static function hasUser()
  2201. {
  2202. /** @var \Illuminate\Auth\SessionGuard $instance */
  2203. return $instance->hasUser();
  2204. }
  2205. /**
  2206. * Determine if the current user is authenticated.
  2207. *
  2208. * @return bool
  2209. * @static
  2210. */
  2211. public static function check()
  2212. {
  2213. /** @var \Illuminate\Auth\SessionGuard $instance */
  2214. return $instance->check();
  2215. }
  2216. /**
  2217. * Determine if the current user is a guest.
  2218. *
  2219. * @return bool
  2220. * @static
  2221. */
  2222. public static function guest()
  2223. {
  2224. /** @var \Illuminate\Auth\SessionGuard $instance */
  2225. return $instance->guest();
  2226. }
  2227. /**
  2228. * Get the user provider used by the guard.
  2229. *
  2230. * @return \Illuminate\Contracts\Auth\UserProvider
  2231. * @static
  2232. */
  2233. public static function getProvider()
  2234. {
  2235. /** @var \Illuminate\Auth\SessionGuard $instance */
  2236. return $instance->getProvider();
  2237. }
  2238. /**
  2239. * Set the user provider used by the guard.
  2240. *
  2241. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2242. * @return void
  2243. * @static
  2244. */
  2245. public static function setProvider($provider)
  2246. {
  2247. /** @var \Illuminate\Auth\SessionGuard $instance */
  2248. $instance->setProvider($provider);
  2249. }
  2250. /**
  2251. * Register a custom macro.
  2252. *
  2253. * @param string $name
  2254. * @param object|callable $macro
  2255. * @return void
  2256. * @static
  2257. */
  2258. public static function macro($name, $macro)
  2259. {
  2260. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2261. }
  2262. /**
  2263. * Mix another object into the class.
  2264. *
  2265. * @param object $mixin
  2266. * @param bool $replace
  2267. * @return void
  2268. * @throws \ReflectionException
  2269. * @static
  2270. */
  2271. public static function mixin($mixin, $replace = true)
  2272. {
  2273. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2274. }
  2275. /**
  2276. * Checks if macro is registered.
  2277. *
  2278. * @param string $name
  2279. * @return bool
  2280. * @static
  2281. */
  2282. public static function hasMacro($name)
  2283. {
  2284. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2285. }
  2286. /**
  2287. * Flush the existing macros.
  2288. *
  2289. * @return void
  2290. * @static
  2291. */
  2292. public static function flushMacros()
  2293. {
  2294. \Illuminate\Auth\SessionGuard::flushMacros();
  2295. }
  2296. }
  2297. /**
  2298. *
  2299. *
  2300. * @see \Illuminate\View\Compilers\BladeCompiler
  2301. */
  2302. class Blade {
  2303. /**
  2304. * Compile the view at the given path.
  2305. *
  2306. * @param string|null $path
  2307. * @return void
  2308. * @static
  2309. */
  2310. public static function compile($path = null)
  2311. {
  2312. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2313. $instance->compile($path);
  2314. }
  2315. /**
  2316. * Get the path currently being compiled.
  2317. *
  2318. * @return string
  2319. * @static
  2320. */
  2321. public static function getPath()
  2322. {
  2323. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2324. return $instance->getPath();
  2325. }
  2326. /**
  2327. * Set the path currently being compiled.
  2328. *
  2329. * @param string $path
  2330. * @return void
  2331. * @static
  2332. */
  2333. public static function setPath($path)
  2334. {
  2335. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2336. $instance->setPath($path);
  2337. }
  2338. /**
  2339. * Compile the given Blade template contents.
  2340. *
  2341. * @param string $value
  2342. * @return string
  2343. * @static
  2344. */
  2345. public static function compileString($value)
  2346. {
  2347. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2348. return $instance->compileString($value);
  2349. }
  2350. /**
  2351. * Evaluate and render a Blade string to HTML.
  2352. *
  2353. * @param string $string
  2354. * @param array $data
  2355. * @param bool $deleteCachedView
  2356. * @return string
  2357. * @static
  2358. */
  2359. public static function render($string, $data = [], $deleteCachedView = false)
  2360. {
  2361. return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
  2362. }
  2363. /**
  2364. * Render a component instance to HTML.
  2365. *
  2366. * @param \Illuminate\View\Component $component
  2367. * @return string
  2368. * @static
  2369. */
  2370. public static function renderComponent($component)
  2371. {
  2372. return \Illuminate\View\Compilers\BladeCompiler::renderComponent($component);
  2373. }
  2374. /**
  2375. * Strip the parentheses from the given expression.
  2376. *
  2377. * @param string $expression
  2378. * @return string
  2379. * @static
  2380. */
  2381. public static function stripParentheses($expression)
  2382. {
  2383. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2384. return $instance->stripParentheses($expression);
  2385. }
  2386. /**
  2387. * Register a custom Blade compiler.
  2388. *
  2389. * @param callable $compiler
  2390. * @return void
  2391. * @static
  2392. */
  2393. public static function extend($compiler)
  2394. {
  2395. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2396. $instance->extend($compiler);
  2397. }
  2398. /**
  2399. * Get the extensions used by the compiler.
  2400. *
  2401. * @return array
  2402. * @static
  2403. */
  2404. public static function getExtensions()
  2405. {
  2406. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2407. return $instance->getExtensions();
  2408. }
  2409. /**
  2410. * Register an "if" statement directive.
  2411. *
  2412. * @param string $name
  2413. * @param callable $callback
  2414. * @return void
  2415. * @static
  2416. */
  2417. public static function if($name, $callback)
  2418. {
  2419. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2420. $instance->if($name, $callback);
  2421. }
  2422. /**
  2423. * Check the result of a condition.
  2424. *
  2425. * @param string $name
  2426. * @param array $parameters
  2427. * @return bool
  2428. * @static
  2429. */
  2430. public static function check($name, ...$parameters)
  2431. {
  2432. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2433. return $instance->check($name, ...$parameters);
  2434. }
  2435. /**
  2436. * Register a class-based component alias directive.
  2437. *
  2438. * @param string $class
  2439. * @param string|null $alias
  2440. * @param string $prefix
  2441. * @return void
  2442. * @static
  2443. */
  2444. public static function component($class, $alias = null, $prefix = '')
  2445. {
  2446. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2447. $instance->component($class, $alias, $prefix);
  2448. }
  2449. /**
  2450. * Register an array of class-based components.
  2451. *
  2452. * @param array $components
  2453. * @param string $prefix
  2454. * @return void
  2455. * @static
  2456. */
  2457. public static function components($components, $prefix = '')
  2458. {
  2459. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2460. $instance->components($components, $prefix);
  2461. }
  2462. /**
  2463. * Get the registered class component aliases.
  2464. *
  2465. * @return array
  2466. * @static
  2467. */
  2468. public static function getClassComponentAliases()
  2469. {
  2470. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2471. return $instance->getClassComponentAliases();
  2472. }
  2473. /**
  2474. * Register an anonymous component namespace.
  2475. *
  2476. * @param string $directory
  2477. * @param string|null $prefix
  2478. * @return void
  2479. * @static
  2480. */
  2481. public static function anonymousComponentNamespace($directory, $prefix = null)
  2482. {
  2483. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2484. $instance->anonymousComponentNamespace($directory, $prefix);
  2485. }
  2486. /**
  2487. * Register a class-based component namespace.
  2488. *
  2489. * @param string $namespace
  2490. * @param string $prefix
  2491. * @return void
  2492. * @static
  2493. */
  2494. public static function componentNamespace($namespace, $prefix)
  2495. {
  2496. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2497. $instance->componentNamespace($namespace, $prefix);
  2498. }
  2499. /**
  2500. * Get the registered anonymous component namespaces.
  2501. *
  2502. * @return array
  2503. * @static
  2504. */
  2505. public static function getAnonymousComponentNamespaces()
  2506. {
  2507. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2508. return $instance->getAnonymousComponentNamespaces();
  2509. }
  2510. /**
  2511. * Get the registered class component namespaces.
  2512. *
  2513. * @return array
  2514. * @static
  2515. */
  2516. public static function getClassComponentNamespaces()
  2517. {
  2518. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2519. return $instance->getClassComponentNamespaces();
  2520. }
  2521. /**
  2522. * Register a component alias directive.
  2523. *
  2524. * @param string $path
  2525. * @param string|null $alias
  2526. * @return void
  2527. * @static
  2528. */
  2529. public static function aliasComponent($path, $alias = null)
  2530. {
  2531. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2532. $instance->aliasComponent($path, $alias);
  2533. }
  2534. /**
  2535. * Register an include alias directive.
  2536. *
  2537. * @param string $path
  2538. * @param string|null $alias
  2539. * @return void
  2540. * @static
  2541. */
  2542. public static function include($path, $alias = null)
  2543. {
  2544. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2545. $instance->include($path, $alias);
  2546. }
  2547. /**
  2548. * Register an include alias directive.
  2549. *
  2550. * @param string $path
  2551. * @param string|null $alias
  2552. * @return void
  2553. * @static
  2554. */
  2555. public static function aliasInclude($path, $alias = null)
  2556. {
  2557. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2558. $instance->aliasInclude($path, $alias);
  2559. }
  2560. /**
  2561. * Register a handler for custom directives.
  2562. *
  2563. * @param string $name
  2564. * @param callable $handler
  2565. * @return void
  2566. * @throws \InvalidArgumentException
  2567. * @static
  2568. */
  2569. public static function directive($name, $handler)
  2570. {
  2571. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2572. $instance->directive($name, $handler);
  2573. }
  2574. /**
  2575. * Get the list of custom directives.
  2576. *
  2577. * @return array
  2578. * @static
  2579. */
  2580. public static function getCustomDirectives()
  2581. {
  2582. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2583. return $instance->getCustomDirectives();
  2584. }
  2585. /**
  2586. * Register a new precompiler.
  2587. *
  2588. * @param callable $precompiler
  2589. * @return void
  2590. * @static
  2591. */
  2592. public static function precompiler($precompiler)
  2593. {
  2594. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2595. $instance->precompiler($precompiler);
  2596. }
  2597. /**
  2598. * Set the echo format to be used by the compiler.
  2599. *
  2600. * @param string $format
  2601. * @return void
  2602. * @static
  2603. */
  2604. public static function setEchoFormat($format)
  2605. {
  2606. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2607. $instance->setEchoFormat($format);
  2608. }
  2609. /**
  2610. * Set the "echo" format to double encode entities.
  2611. *
  2612. * @return void
  2613. * @static
  2614. */
  2615. public static function withDoubleEncoding()
  2616. {
  2617. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2618. $instance->withDoubleEncoding();
  2619. }
  2620. /**
  2621. * Set the "echo" format to not double encode entities.
  2622. *
  2623. * @return void
  2624. * @static
  2625. */
  2626. public static function withoutDoubleEncoding()
  2627. {
  2628. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2629. $instance->withoutDoubleEncoding();
  2630. }
  2631. /**
  2632. * Indicate that component tags should not be compiled.
  2633. *
  2634. * @return void
  2635. * @static
  2636. */
  2637. public static function withoutComponentTags()
  2638. {
  2639. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2640. $instance->withoutComponentTags();
  2641. }
  2642. /**
  2643. * Get the path to the compiled version of a view.
  2644. *
  2645. * @param string $path
  2646. * @return string
  2647. * @static
  2648. */
  2649. public static function getCompiledPath($path)
  2650. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2651. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2652. return $instance->getCompiledPath($path);
  2653. }
  2654. /**
  2655. * Determine if the view at the given path is expired.
  2656. *
  2657. * @param string $path
  2658. * @return bool
  2659. * @static
  2660. */
  2661. public static function isExpired($path)
  2662. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2663. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2664. return $instance->isExpired($path);
  2665. }
  2666. /**
  2667. * Get a new component hash for a component name.
  2668. *
  2669. * @param string $component
  2670. * @return string
  2671. * @static
  2672. */
  2673. public static function newComponentHash($component)
  2674. {
  2675. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2676. }
  2677. /**
  2678. * Compile a class component opening.
  2679. *
  2680. * @param string $component
  2681. * @param string $alias
  2682. * @param string $data
  2683. * @param string $hash
  2684. * @return string
  2685. * @static
  2686. */
  2687. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2688. {
  2689. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2690. }
  2691. /**
  2692. * Compile the end-component statements into valid PHP.
  2693. *
  2694. * @return string
  2695. * @static
  2696. */
  2697. public static function compileEndComponentClass()
  2698. {
  2699. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2700. return $instance->compileEndComponentClass();
  2701. }
  2702. /**
  2703. * Sanitize the given component attribute value.
  2704. *
  2705. * @param mixed $value
  2706. * @return mixed
  2707. * @static
  2708. */
  2709. public static function sanitizeComponentAttribute($value)
  2710. {
  2711. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2712. }
  2713. /**
  2714. * Compile an end-once block into valid PHP.
  2715. *
  2716. * @return string
  2717. * @static
  2718. */
  2719. public static function compileEndOnce()
  2720. {
  2721. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2722. return $instance->compileEndOnce();
  2723. }
  2724. /**
  2725. * Add a handler to be executed before echoing a given class.
  2726. *
  2727. * @param string|callable $class
  2728. * @param callable|null $handler
  2729. * @return void
  2730. * @static
  2731. */
  2732. public static function stringable($class, $handler = null)
  2733. {
  2734. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2735. $instance->stringable($class, $handler);
  2736. }
  2737. /**
  2738. * Compile Blade echos into valid PHP.
  2739. *
  2740. * @param string $value
  2741. * @return string
  2742. * @static
  2743. */
  2744. public static function compileEchos($value)
  2745. {
  2746. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2747. return $instance->compileEchos($value);
  2748. }
  2749. /**
  2750. * Apply the echo handler for the value if it exists.
  2751. *
  2752. * @param string $value
  2753. * @return string
  2754. * @static
  2755. */
  2756. public static function applyEchoHandler($value)
  2757. {
  2758. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2759. return $instance->applyEchoHandler($value);
  2760. }
  2761. }
  2762. /**
  2763. *
  2764. *
  2765. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2766. * @method static mixed auth(\Illuminate\Http\Request $request)
  2767. * @method static void resolveAuthenticatedUserUsing(Closure $callback)
  2768. * @see \Illuminate\Contracts\Broadcasting\Factory
  2769. */
  2770. class Broadcast {
  2771. /**
  2772. * Register the routes for handling broadcast channel authentication and sockets.
  2773. *
  2774. * @param array|null $attributes
  2775. * @return void
  2776. * @static
  2777. */
  2778. public static function routes($attributes = null)
  2779. {
  2780. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2781. $instance->routes($attributes);
  2782. }
  2783. /**
  2784. * Register the routes for handling broadcast user authentication.
  2785. *
  2786. * @param array|null $attributes
  2787. * @return void
  2788. * @static
  2789. */
  2790. public static function userRoutes($attributes = null)
  2791. {
  2792. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2793. $instance->userRoutes($attributes);
  2794. }
  2795. /**
  2796. * Register the routes for handling broadcast authentication and sockets.
  2797. *
  2798. * Alias of "routes" method.
  2799. *
  2800. * @param array|null $attributes
  2801. * @return void
  2802. * @static
  2803. */
  2804. public static function channelRoutes($attributes = null)
  2805. {
  2806. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2807. $instance->channelRoutes($attributes);
  2808. }
  2809. /**
  2810. * Get the socket ID for the given request.
  2811. *
  2812. * @param \Illuminate\Http\Request|null $request
  2813. * @return string|null
  2814. * @static
  2815. */
  2816. public static function socket($request = null)
  2817. {
  2818. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2819. return $instance->socket($request);
  2820. }
  2821. /**
  2822. * Begin broadcasting an event.
  2823. *
  2824. * @param mixed|null $event
  2825. * @return \Illuminate\Broadcasting\PendingBroadcast
  2826. * @static
  2827. */
  2828. public static function event($event = null)
  2829. {
  2830. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2831. return $instance->event($event);
  2832. }
  2833. /**
  2834. * Queue the given event for broadcast.
  2835. *
  2836. * @param mixed $event
  2837. * @return void
  2838. * @static
  2839. */
  2840. public static function queue($event)
  2841. {
  2842. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2843. $instance->queue($event);
  2844. }
  2845. /**
  2846. * Get a driver instance.
  2847. *
  2848. * @param string|null $driver
  2849. * @return mixed
  2850. * @static
  2851. */
  2852. public static function connection($driver = null)
  2853. {
  2854. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2855. return $instance->connection($driver);
  2856. }
  2857. /**
  2858. * Get a driver instance.
  2859. *
  2860. * @param string|null $name
  2861. * @return mixed
  2862. * @static
  2863. */
  2864. public static function driver($name = null)
  2865. {
  2866. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2867. return $instance->driver($name);
  2868. }
  2869. /**
  2870. * Get a Pusher instance for the given configuration.
  2871. *
  2872. * @param array $config
  2873. * @return \Pusher\Pusher
  2874. * @static
  2875. */
  2876. public static function pusher($config)
  2877. {
  2878. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2879. return $instance->pusher($config);
  2880. }
  2881. /**
  2882. * Get an Ably instance for the given configuration.
  2883. *
  2884. * @param array $config
  2885. * @return \Ably\AblyRest
  2886. * @static
  2887. */
  2888. public static function ably($config)
  2889. {
  2890. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2891. return $instance->ably($config);
  2892. }
  2893. /**
  2894. * Get the default driver name.
  2895. *
  2896. * @return string
  2897. * @static
  2898. */
  2899. public static function getDefaultDriver()
  2900. {
  2901. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2902. return $instance->getDefaultDriver();
  2903. }
  2904. /**
  2905. * Set the default driver name.
  2906. *
  2907. * @param string $name
  2908. * @return void
  2909. * @static
  2910. */
  2911. public static function setDefaultDriver($name)
  2912. {
  2913. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2914. $instance->setDefaultDriver($name);
  2915. }
  2916. /**
  2917. * Disconnect the given disk and remove from local cache.
  2918. *
  2919. * @param string|null $name
  2920. * @return void
  2921. * @static
  2922. */
  2923. public static function purge($name = null)
  2924. {
  2925. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2926. $instance->purge($name);
  2927. }
  2928. /**
  2929. * Register a custom driver creator Closure.
  2930. *
  2931. * @param string $driver
  2932. * @param \Closure $callback
  2933. * @return \Illuminate\Broadcasting\BroadcastManager
  2934. * @static
  2935. */
  2936. public static function extend($driver, $callback)
  2937. {
  2938. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2939. return $instance->extend($driver, $callback);
  2940. }
  2941. /**
  2942. * Get the application instance used by the manager.
  2943. *
  2944. * @return \Illuminate\Contracts\Foundation\Application
  2945. * @static
  2946. */
  2947. public static function getApplication()
  2948. {
  2949. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2950. return $instance->getApplication();
  2951. }
  2952. /**
  2953. * Set the application instance used by the manager.
  2954. *
  2955. * @param \Illuminate\Contracts\Foundation\Application $app
  2956. * @return \Illuminate\Broadcasting\BroadcastManager
  2957. * @static
  2958. */
  2959. public static function setApplication($app)
  2960. {
  2961. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2962. return $instance->setApplication($app);
  2963. }
  2964. /**
  2965. * Forget all of the resolved driver instances.
  2966. *
  2967. * @return \Illuminate\Broadcasting\BroadcastManager
  2968. * @static
  2969. */
  2970. public static function forgetDrivers()
  2971. {
  2972. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2973. return $instance->forgetDrivers();
  2974. }
  2975. }
  2976. /**
  2977. *
  2978. *
  2979. * @see \Illuminate\Contracts\Bus\Dispatcher
  2980. */
  2981. class Bus {
  2982. /**
  2983. * Dispatch a command to its appropriate handler.
  2984. *
  2985. * @param mixed $command
  2986. * @return mixed
  2987. * @static
  2988. */
  2989. public static function dispatch($command)
  2990. {
  2991. /** @var \Illuminate\Bus\Dispatcher $instance */
  2992. return $instance->dispatch($command);
  2993. }
  2994. /**
  2995. * Dispatch a command to its appropriate handler in the current process.
  2996. *
  2997. * Queueable jobs will be dispatched to the "sync" queue.
  2998. *
  2999. * @param mixed $command
  3000. * @param mixed $handler
  3001. * @return mixed
  3002. * @static
  3003. */
  3004. public static function dispatchSync($command, $handler = null)
  3005. {
  3006. /** @var \Illuminate\Bus\Dispatcher $instance */
  3007. return $instance->dispatchSync($command, $handler);
  3008. }
  3009. /**
  3010. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  3011. *
  3012. * @param mixed $command
  3013. * @param mixed $handler
  3014. * @return mixed
  3015. * @static
  3016. */
  3017. public static function dispatchNow($command, $handler = null)
  3018. {
  3019. /** @var \Illuminate\Bus\Dispatcher $instance */
  3020. return $instance->dispatchNow($command, $handler);
  3021. }
  3022. /**
  3023. * Attempt to find the batch with the given ID.
  3024. *
  3025. * @param string $batchId
  3026. * @return \Illuminate\Bus\Batch|null
  3027. * @static
  3028. */
  3029. public static function findBatch($batchId)
  3030. {
  3031. /** @var \Illuminate\Bus\Dispatcher $instance */
  3032. return $instance->findBatch($batchId);
  3033. }
  3034. /**
  3035. * Create a new batch of queueable jobs.
  3036. *
  3037. * @param \Illuminate\Support\Collection|array|mixed $jobs
  3038. * @return \Illuminate\Bus\PendingBatch
  3039. * @static
  3040. */
  3041. public static function batch($jobs)
  3042. {
  3043. /** @var \Illuminate\Bus\Dispatcher $instance */
  3044. return $instance->batch($jobs);
  3045. }
  3046. /**
  3047. * Create a new chain of queueable jobs.
  3048. *
  3049. * @param \Illuminate\Support\Collection|array $jobs
  3050. * @return \Illuminate\Foundation\Bus\PendingChain
  3051. * @static
  3052. */
  3053. public static function chain($jobs)
  3054. {
  3055. /** @var \Illuminate\Bus\Dispatcher $instance */
  3056. return $instance->chain($jobs);
  3057. }
  3058. /**
  3059. * Determine if the given command has a handler.
  3060. *
  3061. * @param mixed $command
  3062. * @return bool
  3063. * @static
  3064. */
  3065. public static function hasCommandHandler($command)
  3066. {
  3067. /** @var \Illuminate\Bus\Dispatcher $instance */
  3068. return $instance->hasCommandHandler($command);
  3069. }
  3070. /**
  3071. * Retrieve the handler for a command.
  3072. *
  3073. * @param mixed $command
  3074. * @return bool|mixed
  3075. * @static
  3076. */
  3077. public static function getCommandHandler($command)
  3078. {
  3079. /** @var \Illuminate\Bus\Dispatcher $instance */
  3080. return $instance->getCommandHandler($command);
  3081. }
  3082. /**
  3083. * Dispatch a command to its appropriate handler behind a queue.
  3084. *
  3085. * @param mixed $command
  3086. * @return mixed
  3087. * @throws \RuntimeException
  3088. * @static
  3089. */
  3090. public static function dispatchToQueue($command)
  3091. {
  3092. /** @var \Illuminate\Bus\Dispatcher $instance */
  3093. return $instance->dispatchToQueue($command);
  3094. }
  3095. /**
  3096. * Dispatch a command to its appropriate handler after the current process.
  3097. *
  3098. * @param mixed $command
  3099. * @param mixed $handler
  3100. * @return void
  3101. * @static
  3102. */
  3103. public static function dispatchAfterResponse($command, $handler = null)
  3104. {
  3105. /** @var \Illuminate\Bus\Dispatcher $instance */
  3106. $instance->dispatchAfterResponse($command, $handler);
  3107. }
  3108. /**
  3109. * Set the pipes through which commands should be piped before dispatching.
  3110. *
  3111. * @param array $pipes
  3112. * @return \Illuminate\Bus\Dispatcher
  3113. * @static
  3114. */
  3115. public static function pipeThrough($pipes)
  3116. {
  3117. /** @var \Illuminate\Bus\Dispatcher $instance */
  3118. return $instance->pipeThrough($pipes);
  3119. }
  3120. /**
  3121. * Map a command to a handler.
  3122. *
  3123. * @param array $map
  3124. * @return \Illuminate\Bus\Dispatcher
  3125. * @static
  3126. */
  3127. public static function map($map)
  3128. {
  3129. /** @var \Illuminate\Bus\Dispatcher $instance */
  3130. return $instance->map($map);
  3131. }
  3132. /**
  3133. * Assert if a job was dispatched based on a truth-test callback.
  3134. *
  3135. * @param string|\Closure $command
  3136. * @param callable|int|null $callback
  3137. * @return void
  3138. * @static
  3139. */
  3140. public static function assertDispatched($command, $callback = null)
  3141. {
  3142. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3143. $instance->assertDispatched($command, $callback);
  3144. }
  3145. /**
  3146. * Assert if a job was pushed a number of times.
  3147. *
  3148. * @param string $command
  3149. * @param int $times
  3150. * @return void
  3151. * @static
  3152. */
  3153. public static function assertDispatchedTimes($command, $times = 1)
  3154. {
  3155. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3156. $instance->assertDispatchedTimes($command, $times);
  3157. }
  3158. /**
  3159. * Determine if a job was dispatched based on a truth-test callback.
  3160. *
  3161. * @param string|\Closure $command
  3162. * @param callable|null $callback
  3163. * @return void
  3164. * @static
  3165. */
  3166. public static function assertNotDispatched($command, $callback = null)
  3167. {
  3168. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3169. $instance->assertNotDispatched($command, $callback);
  3170. }
  3171. /**
  3172. * Assert that no jobs were dispatched.
  3173. *
  3174. * @return void
  3175. * @static
  3176. */
  3177. public static function assertNothingDispatched()
  3178. {
  3179. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3180. $instance->assertNothingDispatched();
  3181. }
  3182. /**
  3183. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3184. *
  3185. * @param string|\Closure $command
  3186. * @param callable|int|null $callback
  3187. * @return void
  3188. * @static
  3189. */
  3190. public static function assertDispatchedSync($command, $callback = null)
  3191. {
  3192. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3193. $instance->assertDispatchedSync($command, $callback);
  3194. }
  3195. /**
  3196. * Assert if a job was pushed synchronously a number of times.
  3197. *
  3198. * @param string $command
  3199. * @param int $times
  3200. * @return void
  3201. * @static
  3202. */
  3203. public static function assertDispatchedSyncTimes($command, $times = 1)
  3204. {
  3205. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3206. $instance->assertDispatchedSyncTimes($command, $times);
  3207. }
  3208. /**
  3209. * Determine if a job was dispatched based on a truth-test callback.
  3210. *
  3211. * @param string|\Closure $command
  3212. * @param callable|null $callback
  3213. * @return void
  3214. * @static
  3215. */
  3216. public static function assertNotDispatchedSync($command, $callback = null)
  3217. {
  3218. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3219. $instance->assertNotDispatchedSync($command, $callback);
  3220. }
  3221. /**
  3222. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3223. *
  3224. * @param string|\Closure $command
  3225. * @param callable|int|null $callback
  3226. * @return void
  3227. * @static
  3228. */
  3229. public static function assertDispatchedAfterResponse($command, $callback = null)
  3230. {
  3231. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3232. $instance->assertDispatchedAfterResponse($command, $callback);
  3233. }
  3234. /**
  3235. * Assert if a job was pushed after the response was sent a number of times.
  3236. *
  3237. * @param string $command
  3238. * @param int $times
  3239. * @return void
  3240. * @static
  3241. */
  3242. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3243. {
  3244. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3245. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3246. }
  3247. /**
  3248. * Determine if a job was dispatched based on a truth-test callback.
  3249. *
  3250. * @param string|\Closure $command
  3251. * @param callable|null $callback
  3252. * @return void
  3253. * @static
  3254. */
  3255. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3256. {
  3257. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3258. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3259. }
  3260. /**
  3261. * Assert if a chain of jobs was dispatched.
  3262. *
  3263. * @param array $expectedChain
  3264. * @return void
  3265. * @static
  3266. */
  3267. public static function assertChained($expectedChain)
  3268. {
  3269. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3270. $instance->assertChained($expectedChain);
  3271. }
  3272. /**
  3273. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3274. *
  3275. * @param string|\Closure $command
  3276. * @param callable|null $callback
  3277. * @return void
  3278. * @static
  3279. */
  3280. public static function assertDispatchedWithoutChain($command, $callback = null)
  3281. {
  3282. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3283. $instance->assertDispatchedWithoutChain($command, $callback);
  3284. }
  3285. /**
  3286. * Assert if a batch was dispatched based on a truth-test callback.
  3287. *
  3288. * @param callable $callback
  3289. * @return void
  3290. * @static
  3291. */
  3292. public static function assertBatched($callback)
  3293. {
  3294. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3295. $instance->assertBatched($callback);
  3296. }
  3297. /**
  3298. * Assert the number of batches that have been dispatched.
  3299. *
  3300. * @param int $count
  3301. * @return void
  3302. * @static
  3303. */
  3304. public static function assertBatchCount($count)
  3305. {
  3306. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3307. $instance->assertBatchCount($count);
  3308. }
  3309. /**
  3310. * Get all of the jobs matching a truth-test callback.
  3311. *
  3312. * @param string $command
  3313. * @param callable|null $callback
  3314. * @return \Illuminate\Support\Collection
  3315. * @static
  3316. */
  3317. public static function dispatched($command, $callback = null)
  3318. {
  3319. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3320. return $instance->dispatched($command, $callback);
  3321. }
  3322. /**
  3323. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3324. *
  3325. * @param string $command
  3326. * @param callable|null $callback
  3327. * @return \Illuminate\Support\Collection
  3328. * @static
  3329. */
  3330. public static function dispatchedSync($command, $callback = null)
  3331. {
  3332. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3333. return $instance->dispatchedSync($command, $callback);
  3334. }
  3335. /**
  3336. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3337. *
  3338. * @param string $command
  3339. * @param callable|null $callback
  3340. * @return \Illuminate\Support\Collection
  3341. * @static
  3342. */
  3343. public static function dispatchedAfterResponse($command, $callback = null)
  3344. {
  3345. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3346. return $instance->dispatchedAfterResponse($command, $callback);
  3347. }
  3348. /**
  3349. * Get all of the pending batches matching a truth-test callback.
  3350. *
  3351. * @param callable $callback
  3352. * @return \Illuminate\Support\Collection
  3353. * @static
  3354. */
  3355. public static function batched($callback)
  3356. {
  3357. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3358. return $instance->batched($callback);
  3359. }
  3360. /**
  3361. * Determine if there are any stored commands for a given class.
  3362. *
  3363. * @param string $command
  3364. * @return bool
  3365. * @static
  3366. */
  3367. public static function hasDispatched($command)
  3368. {
  3369. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3370. return $instance->hasDispatched($command);
  3371. }
  3372. /**
  3373. * Determine if there are any stored commands for a given class.
  3374. *
  3375. * @param string $command
  3376. * @return bool
  3377. * @static
  3378. */
  3379. public static function hasDispatchedSync($command)
  3380. {
  3381. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3382. return $instance->hasDispatchedSync($command);
  3383. }
  3384. /**
  3385. * Determine if there are any stored commands for a given class.
  3386. *
  3387. * @param string $command
  3388. * @return bool
  3389. * @static
  3390. */
  3391. public static function hasDispatchedAfterResponse($command)
  3392. {
  3393. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3394. return $instance->hasDispatchedAfterResponse($command);
  3395. }
  3396. /**
  3397. * Record the fake pending batch dispatch.
  3398. *
  3399. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  3400. * @return \Illuminate\Bus\Batch
  3401. * @static
  3402. */
  3403. public static function recordPendingBatch($pendingBatch)
  3404. {
  3405. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3406. return $instance->recordPendingBatch($pendingBatch);
  3407. }
  3408. }
  3409. /**
  3410. *
  3411. *
  3412. * @see \Illuminate\Cache\CacheManager
  3413. * @see \Illuminate\Cache\Repository
  3414. */
  3415. class Cache {
  3416. /**
  3417. * Get a cache store instance by name, wrapped in a repository.
  3418. *
  3419. * @param string|null $name
  3420. * @return \Illuminate\Contracts\Cache\Repository
  3421. * @static
  3422. */
  3423. public static function store($name = null)
  3424. {
  3425. /** @var \Illuminate\Cache\CacheManager $instance */
  3426. return $instance->store($name);
  3427. }
  3428. /**
  3429. * Get a cache driver instance.
  3430. *
  3431. * @param string|null $driver
  3432. * @return \Illuminate\Contracts\Cache\Repository
  3433. * @static
  3434. */
  3435. public static function driver($driver = null)
  3436. {
  3437. /** @var \Illuminate\Cache\CacheManager $instance */
  3438. return $instance->driver($driver);
  3439. }
  3440. /**
  3441. * Create a new cache repository with the given implementation.
  3442. *
  3443. * @param \Illuminate\Contracts\Cache\Store $store
  3444. * @return \Illuminate\Cache\Repository
  3445. * @static
  3446. */
  3447. public static function repository($store)
  3448. {
  3449. /** @var \Illuminate\Cache\CacheManager $instance */
  3450. return $instance->repository($store);
  3451. }
  3452. /**
  3453. * Re-set the event dispatcher on all resolved cache repositories.
  3454. *
  3455. * @return void
  3456. * @static
  3457. */
  3458. public static function refreshEventDispatcher()
  3459. {
  3460. /** @var \Illuminate\Cache\CacheManager $instance */
  3461. $instance->refreshEventDispatcher();
  3462. }
  3463. /**
  3464. * Get the default cache driver name.
  3465. *
  3466. * @return string
  3467. * @static
  3468. */
  3469. public static function getDefaultDriver()
  3470. {
  3471. /** @var \Illuminate\Cache\CacheManager $instance */
  3472. return $instance->getDefaultDriver();
  3473. }
  3474. /**
  3475. * Set the default cache driver name.
  3476. *
  3477. * @param string $name
  3478. * @return void
  3479. * @static
  3480. */
  3481. public static function setDefaultDriver($name)
  3482. {
  3483. /** @var \Illuminate\Cache\CacheManager $instance */
  3484. $instance->setDefaultDriver($name);
  3485. }
  3486. /**
  3487. * Unset the given driver instances.
  3488. *
  3489. * @param array|string|null $name
  3490. * @return \Illuminate\Cache\CacheManager
  3491. * @static
  3492. */
  3493. public static function forgetDriver($name = null)
  3494. {
  3495. /** @var \Illuminate\Cache\CacheManager $instance */
  3496. return $instance->forgetDriver($name);
  3497. }
  3498. /**
  3499. * Disconnect the given driver and remove from local cache.
  3500. *
  3501. * @param string|null $name
  3502. * @return void
  3503. * @static
  3504. */
  3505. public static function purge($name = null)
  3506. {
  3507. /** @var \Illuminate\Cache\CacheManager $instance */
  3508. $instance->purge($name);
  3509. }
  3510. /**
  3511. * Register a custom driver creator Closure.
  3512. *
  3513. * @param string $driver
  3514. * @param \Closure $callback
  3515. * @return \Illuminate\Cache\CacheManager
  3516. * @static
  3517. */
  3518. public static function extend($driver, $callback)
  3519. {
  3520. /** @var \Illuminate\Cache\CacheManager $instance */
  3521. return $instance->extend($driver, $callback);
  3522. }
  3523. /**
  3524. * Determine if an item exists in the cache.
  3525. *
  3526. * @param string $key
  3527. * @return bool
  3528. * @static
  3529. */
  3530. public static function has($key)
  3531. {
  3532. /** @var \Illuminate\Cache\Repository $instance */
  3533. return $instance->has($key);
  3534. }
  3535. /**
  3536. * Determine if an item doesn't exist in the cache.
  3537. *
  3538. * @param string $key
  3539. * @return bool
  3540. * @static
  3541. */
  3542. public static function missing($key)
  3543. {
  3544. /** @var \Illuminate\Cache\Repository $instance */
  3545. return $instance->missing($key);
  3546. }
  3547. /**
  3548. * Retrieve an item from the cache by key.
  3549. *
  3550. * @param array|string $key
  3551. * @param mixed $default
  3552. * @return mixed
  3553. * @static
  3554. */
  3555. public static function get($key, $default = null)
  3556. {
  3557. /** @var \Illuminate\Cache\Repository $instance */
  3558. return $instance->get($key, $default);
  3559. }
  3560. /**
  3561. * Retrieve multiple items from the cache by key.
  3562. *
  3563. * Items not found in the cache will have a null value.
  3564. *
  3565. * @param array $keys
  3566. * @return array
  3567. * @static
  3568. */
  3569. public static function many($keys)
  3570. {
  3571. /** @var \Illuminate\Cache\Repository $instance */
  3572. return $instance->many($keys);
  3573. }
  3574. /**
  3575. * Obtains multiple cache items by their unique keys.
  3576. *
  3577. * @return \Illuminate\Cache\iterable
  3578. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  3579. * @param mixed $default Default value to return for keys that do not exist.
  3580. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  3581. * @throws \Psr\SimpleCache\InvalidArgumentException
  3582. * MUST be thrown if $keys is neither an array nor a Traversable,
  3583. * or if any of the $keys are not a legal value.
  3584. * @static
  3585. */
  3586. public static function getMultiple($keys, $default = null)
  3587. {
  3588. /** @var \Illuminate\Cache\Repository $instance */
  3589. return $instance->getMultiple($keys, $default);
  3590. }
  3591. /**
  3592. * Retrieve an item from the cache and delete it.
  3593. *
  3594. * @param string $key
  3595. * @param mixed $default
  3596. * @return mixed
  3597. * @static
  3598. */
  3599. public static function pull($key, $default = null)
  3600. {
  3601. /** @var \Illuminate\Cache\Repository $instance */
  3602. return $instance->pull($key, $default);
  3603. }
  3604. /**
  3605. * Store an item in the cache.
  3606. *
  3607. * @param array|string $key
  3608. * @param mixed $value
  3609. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3610. * @return bool
  3611. * @static
  3612. */
  3613. public static function put($key, $value, $ttl = null)
  3614. {
  3615. /** @var \Illuminate\Cache\Repository $instance */
  3616. return $instance->put($key, $value, $ttl);
  3617. }
  3618. /**
  3619. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3620. *
  3621. * @return bool
  3622. * @param string $key The key of the item to store.
  3623. * @param mixed $value The value of the item to store, must be serializable.
  3624. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3625. * the driver supports TTL then the library may set a default value
  3626. * for it or let the driver take care of that.
  3627. * @return bool True on success and false on failure.
  3628. * @throws \Psr\SimpleCache\InvalidArgumentException
  3629. * MUST be thrown if the $key string is not a legal value.
  3630. * @static
  3631. */
  3632. public static function set($key, $value, $ttl = null)
  3633. {
  3634. /** @var \Illuminate\Cache\Repository $instance */
  3635. return $instance->set($key, $value, $ttl);
  3636. }
  3637. /**
  3638. * Store multiple items in the cache for a given number of seconds.
  3639. *
  3640. * @param array $values
  3641. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3642. * @return bool
  3643. * @static
  3644. */
  3645. public static function putMany($values, $ttl = null)
  3646. {
  3647. /** @var \Illuminate\Cache\Repository $instance */
  3648. return $instance->putMany($values, $ttl);
  3649. }
  3650. /**
  3651. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3652. *
  3653. * @return bool
  3654. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  3655. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3656. * the driver supports TTL then the library may set a default value
  3657. * for it or let the driver take care of that.
  3658. * @return bool True on success and false on failure.
  3659. * @throws \Psr\SimpleCache\InvalidArgumentException
  3660. * MUST be thrown if $values is neither an array nor a Traversable,
  3661. * or if any of the $values are not a legal value.
  3662. * @static
  3663. */
  3664. public static function setMultiple($values, $ttl = null)
  3665. {
  3666. /** @var \Illuminate\Cache\Repository $instance */
  3667. return $instance->setMultiple($values, $ttl);
  3668. }
  3669. /**
  3670. * Store an item in the cache if the key does not exist.
  3671. *
  3672. * @param string $key
  3673. * @param mixed $value
  3674. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3675. * @return bool
  3676. * @static
  3677. */
  3678. public static function add($key, $value, $ttl = null)
  3679. {
  3680. /** @var \Illuminate\Cache\Repository $instance */
  3681. return $instance->add($key, $value, $ttl);
  3682. }
  3683. /**
  3684. * Increment the value of an item in the cache.
  3685. *
  3686. * @param string $key
  3687. * @param mixed $value
  3688. * @return int|bool
  3689. * @static
  3690. */
  3691. public static function increment($key, $value = 1)
  3692. {
  3693. /** @var \Illuminate\Cache\Repository $instance */
  3694. return $instance->increment($key, $value);
  3695. }
  3696. /**
  3697. * Decrement the value of an item in the cache.
  3698. *
  3699. * @param string $key
  3700. * @param mixed $value
  3701. * @return int|bool
  3702. * @static
  3703. */
  3704. public static function decrement($key, $value = 1)
  3705. {
  3706. /** @var \Illuminate\Cache\Repository $instance */
  3707. return $instance->decrement($key, $value);
  3708. }
  3709. /**
  3710. * Store an item in the cache indefinitely.
  3711. *
  3712. * @param string $key
  3713. * @param mixed $value
  3714. * @return bool
  3715. * @static
  3716. */
  3717. public static function forever($key, $value)
  3718. {
  3719. /** @var \Illuminate\Cache\Repository $instance */
  3720. return $instance->forever($key, $value);
  3721. }
  3722. /**
  3723. * Get an item from the cache, or execute the given Closure and store the result.
  3724. *
  3725. * @param string $key
  3726. * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
  3727. * @param \Closure $callback
  3728. * @return mixed
  3729. * @static
  3730. */
  3731. public static function remember($key, $ttl, $callback)
  3732. {
  3733. /** @var \Illuminate\Cache\Repository $instance */
  3734. return $instance->remember($key, $ttl, $callback);
  3735. }
  3736. /**
  3737. * Get an item from the cache, or execute the given Closure and store the result forever.
  3738. *
  3739. * @param string $key
  3740. * @param \Closure $callback
  3741. * @return mixed
  3742. * @static
  3743. */
  3744. public static function sear($key, $callback)
  3745. {
  3746. /** @var \Illuminate\Cache\Repository $instance */
  3747. return $instance->sear($key, $callback);
  3748. }
  3749. /**
  3750. * Get an item from the cache, or execute the given Closure and store the result forever.
  3751. *
  3752. * @param string $key
  3753. * @param \Closure $callback
  3754. * @return mixed
  3755. * @static
  3756. */
  3757. public static function rememberForever($key, $callback)
  3758. {
  3759. /** @var \Illuminate\Cache\Repository $instance */
  3760. return $instance->rememberForever($key, $callback);
  3761. }
  3762. /**
  3763. * Remove an item from the cache.
  3764. *
  3765. * @param string $key
  3766. * @return bool
  3767. * @static
  3768. */
  3769. public static function forget($key)
  3770. {
  3771. /** @var \Illuminate\Cache\Repository $instance */
  3772. return $instance->forget($key);
  3773. }
  3774. /**
  3775. * Delete an item from the cache by its unique key.
  3776. *
  3777. * @return bool
  3778. * @param string $key The unique cache key of the item to delete.
  3779. * @return bool True if the item was successfully removed. False if there was an error.
  3780. * @throws \Psr\SimpleCache\InvalidArgumentException
  3781. * MUST be thrown if the $key string is not a legal value.
  3782. * @static
  3783. */
  3784. public static function delete($key)
  3785. {
  3786. /** @var \Illuminate\Cache\Repository $instance */
  3787. return $instance->delete($key);
  3788. }
  3789. /**
  3790. * Deletes multiple cache items in a single operation.
  3791. *
  3792. * @return bool
  3793. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  3794. * @return bool True if the items were successfully removed. False if there was an error.
  3795. * @throws \Psr\SimpleCache\InvalidArgumentException
  3796. * MUST be thrown if $keys is neither an array nor a Traversable,
  3797. * or if any of the $keys are not a legal value.
  3798. * @static
  3799. */
  3800. public static function deleteMultiple($keys)
  3801. {
  3802. /** @var \Illuminate\Cache\Repository $instance */
  3803. return $instance->deleteMultiple($keys);
  3804. }
  3805. /**
  3806. * Wipes clean the entire cache's keys.
  3807. *
  3808. * @return bool
  3809. * @return bool True on success and false on failure.
  3810. * @static
  3811. */
  3812. public static function clear()
  3813. {
  3814. /** @var \Illuminate\Cache\Repository $instance */
  3815. return $instance->clear();
  3816. }
  3817. /**
  3818. * Begin executing a new tags operation if the store supports it.
  3819. *
  3820. * @param array|mixed $names
  3821. * @return \Illuminate\Cache\TaggedCache
  3822. * @throws \BadMethodCallException
  3823. * @static
  3824. */
  3825. public static function tags($names)
  3826. {
  3827. /** @var \Illuminate\Cache\Repository $instance */
  3828. return $instance->tags($names);
  3829. }
  3830. /**
  3831. * Determine if the current store supports tags.
  3832. *
  3833. * @return bool
  3834. * @static
  3835. */
  3836. public static function supportsTags()
  3837. {
  3838. /** @var \Illuminate\Cache\Repository $instance */
  3839. return $instance->supportsTags();
  3840. }
  3841. /**
  3842. * Get the default cache time.
  3843. *
  3844. * @return int|null
  3845. * @static
  3846. */
  3847. public static function getDefaultCacheTime()
  3848. {
  3849. /** @var \Illuminate\Cache\Repository $instance */
  3850. return $instance->getDefaultCacheTime();
  3851. }
  3852. /**
  3853. * Set the default cache time in seconds.
  3854. *
  3855. * @param int|null $seconds
  3856. * @return \Illuminate\Cache\Repository
  3857. * @static
  3858. */
  3859. public static function setDefaultCacheTime($seconds)
  3860. {
  3861. /** @var \Illuminate\Cache\Repository $instance */
  3862. return $instance->setDefaultCacheTime($seconds);
  3863. }
  3864. /**
  3865. * Get the cache store implementation.
  3866. *
  3867. * @return \Illuminate\Contracts\Cache\Store
  3868. * @static
  3869. */
  3870. public static function getStore()
  3871. {
  3872. /** @var \Illuminate\Cache\Repository $instance */
  3873. return $instance->getStore();
  3874. }
  3875. /**
  3876. * Get the event dispatcher instance.
  3877. *
  3878. * @return \Illuminate\Contracts\Events\Dispatcher
  3879. * @static
  3880. */
  3881. public static function getEventDispatcher()
  3882. {
  3883. /** @var \Illuminate\Cache\Repository $instance */
  3884. return $instance->getEventDispatcher();
  3885. }
  3886. /**
  3887. * Set the event dispatcher instance.
  3888. *
  3889. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3890. * @return void
  3891. * @static
  3892. */
  3893. public static function setEventDispatcher($events)
  3894. {
  3895. /** @var \Illuminate\Cache\Repository $instance */
  3896. $instance->setEventDispatcher($events);
  3897. }
  3898. /**
  3899. * Determine if a cached value exists.
  3900. *
  3901. * @param string $key
  3902. * @return bool
  3903. * @static
  3904. */
  3905. public static function offsetExists($key)
  3906. {
  3907. /** @var \Illuminate\Cache\Repository $instance */
  3908. return $instance->offsetExists($key);
  3909. }
  3910. /**
  3911. * Retrieve an item from the cache by key.
  3912. *
  3913. * @param string $key
  3914. * @return mixed
  3915. * @static
  3916. */
  3917. public static function offsetGet($key)
  3918. {
  3919. /** @var \Illuminate\Cache\Repository $instance */
  3920. return $instance->offsetGet($key);
  3921. }
  3922. /**
  3923. * Store an item in the cache for the default time.
  3924. *
  3925. * @param string $key
  3926. * @param mixed $value
  3927. * @return void
  3928. * @static
  3929. */
  3930. public static function offsetSet($key, $value)
  3931. {
  3932. /** @var \Illuminate\Cache\Repository $instance */
  3933. $instance->offsetSet($key, $value);
  3934. }
  3935. /**
  3936. * Remove an item from the cache.
  3937. *
  3938. * @param string $key
  3939. * @return void
  3940. * @static
  3941. */
  3942. public static function offsetUnset($key)
  3943. {
  3944. /** @var \Illuminate\Cache\Repository $instance */
  3945. $instance->offsetUnset($key);
  3946. }
  3947. /**
  3948. * Register a custom macro.
  3949. *
  3950. * @param string $name
  3951. * @param object|callable $macro
  3952. * @return void
  3953. * @static
  3954. */
  3955. public static function macro($name, $macro)
  3956. {
  3957. \Illuminate\Cache\Repository::macro($name, $macro);
  3958. }
  3959. /**
  3960. * Mix another object into the class.
  3961. *
  3962. * @param object $mixin
  3963. * @param bool $replace
  3964. * @return void
  3965. * @throws \ReflectionException
  3966. * @static
  3967. */
  3968. public static function mixin($mixin, $replace = true)
  3969. {
  3970. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3971. }
  3972. /**
  3973. * Checks if macro is registered.
  3974. *
  3975. * @param string $name
  3976. * @return bool
  3977. * @static
  3978. */
  3979. public static function hasMacro($name)
  3980. {
  3981. return \Illuminate\Cache\Repository::hasMacro($name);
  3982. }
  3983. /**
  3984. * Flush the existing macros.
  3985. *
  3986. * @return void
  3987. * @static
  3988. */
  3989. public static function flushMacros()
  3990. {
  3991. \Illuminate\Cache\Repository::flushMacros();
  3992. }
  3993. /**
  3994. * Dynamically handle calls to the class.
  3995. *
  3996. * @param string $method
  3997. * @param array $parameters
  3998. * @return mixed
  3999. * @throws \BadMethodCallException
  4000. * @static
  4001. */
  4002. public static function macroCall($method, $parameters)
  4003. {
  4004. /** @var \Illuminate\Cache\Repository $instance */
  4005. return $instance->macroCall($method, $parameters);
  4006. }
  4007. /**
  4008. * Remove all items from the cache.
  4009. *
  4010. * @return bool
  4011. * @static
  4012. */
  4013. public static function flush()
  4014. {
  4015. /** @var \Illuminate\Cache\FileStore $instance */
  4016. return $instance->flush();
  4017. }
  4018. /**
  4019. * Get the Filesystem instance.
  4020. *
  4021. * @return \Illuminate\Filesystem\Filesystem
  4022. * @static
  4023. */
  4024. public static function getFilesystem()
  4025. {
  4026. /** @var \Illuminate\Cache\FileStore $instance */
  4027. return $instance->getFilesystem();
  4028. }
  4029. /**
  4030. * Get the working directory of the cache.
  4031. *
  4032. * @return string
  4033. * @static
  4034. */
  4035. public static function getDirectory()
  4036. {
  4037. /** @var \Illuminate\Cache\FileStore $instance */
  4038. return $instance->getDirectory();
  4039. }
  4040. /**
  4041. * Get the cache key prefix.
  4042. *
  4043. * @return string
  4044. * @static
  4045. */
  4046. public static function getPrefix()
  4047. {
  4048. /** @var \Illuminate\Cache\FileStore $instance */
  4049. return $instance->getPrefix();
  4050. }
  4051. /**
  4052. * Get a lock instance.
  4053. *
  4054. * @param string $name
  4055. * @param int $seconds
  4056. * @param string|null $owner
  4057. * @return \Illuminate\Contracts\Cache\Lock
  4058. * @static
  4059. */
  4060. public static function lock($name, $seconds = 0, $owner = null)
  4061. {
  4062. /** @var \Illuminate\Cache\FileStore $instance */
  4063. return $instance->lock($name, $seconds, $owner);
  4064. }
  4065. /**
  4066. * Restore a lock instance using the owner identifier.
  4067. *
  4068. * @param string $name
  4069. * @param string $owner
  4070. * @return \Illuminate\Contracts\Cache\Lock
  4071. * @static
  4072. */
  4073. public static function restoreLock($name, $owner)
  4074. {
  4075. /** @var \Illuminate\Cache\FileStore $instance */
  4076. return $instance->restoreLock($name, $owner);
  4077. }
  4078. }
  4079. /**
  4080. *
  4081. *
  4082. * @see \Illuminate\Config\Repository
  4083. */
  4084. class Config {
  4085. /**
  4086. * Determine if the given configuration value exists.
  4087. *
  4088. * @param string $key
  4089. * @return bool
  4090. * @static
  4091. */
  4092. public static function has($key)
  4093. {
  4094. /** @var \Illuminate\Config\Repository $instance */
  4095. return $instance->has($key);
  4096. }
  4097. /**
  4098. * Get the specified configuration value.
  4099. *
  4100. * @param array|string $key
  4101. * @param mixed $default
  4102. * @return mixed
  4103. * @static
  4104. */
  4105. public static function get($key, $default = null)
  4106. {
  4107. /** @var \Illuminate\Config\Repository $instance */
  4108. return $instance->get($key, $default);
  4109. }
  4110. /**
  4111. * Get many configuration values.
  4112. *
  4113. * @param array $keys
  4114. * @return array
  4115. * @static
  4116. */
  4117. public static function getMany($keys)
  4118. {
  4119. /** @var \Illuminate\Config\Repository $instance */
  4120. return $instance->getMany($keys);
  4121. }
  4122. /**
  4123. * Set a given configuration value.
  4124. *
  4125. * @param array|string $key
  4126. * @param mixed $value
  4127. * @return void
  4128. * @static
  4129. */
  4130. public static function set($key, $value = null)
  4131. {
  4132. /** @var \Illuminate\Config\Repository $instance */
  4133. $instance->set($key, $value);
  4134. }
  4135. /**
  4136. * Prepend a value onto an array configuration value.
  4137. *
  4138. * @param string $key
  4139. * @param mixed $value
  4140. * @return void
  4141. * @static
  4142. */
  4143. public static function prepend($key, $value)
  4144. {
  4145. /** @var \Illuminate\Config\Repository $instance */
  4146. $instance->prepend($key, $value);
  4147. }
  4148. /**
  4149. * Push a value onto an array configuration value.
  4150. *
  4151. * @param string $key
  4152. * @param mixed $value
  4153. * @return void
  4154. * @static
  4155. */
  4156. public static function push($key, $value)
  4157. {
  4158. /** @var \Illuminate\Config\Repository $instance */
  4159. $instance->push($key, $value);
  4160. }
  4161. /**
  4162. * Get all of the configuration items for the application.
  4163. *
  4164. * @return array
  4165. * @static
  4166. */
  4167. public static function all()
  4168. {
  4169. /** @var \Illuminate\Config\Repository $instance */
  4170. return $instance->all();
  4171. }
  4172. /**
  4173. * Determine if the given configuration option exists.
  4174. *
  4175. * @param string $key
  4176. * @return bool
  4177. * @static
  4178. */
  4179. public static function offsetExists($key)
  4180. {
  4181. /** @var \Illuminate\Config\Repository $instance */
  4182. return $instance->offsetExists($key);
  4183. }
  4184. /**
  4185. * Get a configuration option.
  4186. *
  4187. * @param string $key
  4188. * @return mixed
  4189. * @static
  4190. */
  4191. public static function offsetGet($key)
  4192. {
  4193. /** @var \Illuminate\Config\Repository $instance */
  4194. return $instance->offsetGet($key);
  4195. }
  4196. /**
  4197. * Set a configuration option.
  4198. *
  4199. * @param string $key
  4200. * @param mixed $value
  4201. * @return void
  4202. * @static
  4203. */
  4204. public static function offsetSet($key, $value)
  4205. {
  4206. /** @var \Illuminate\Config\Repository $instance */
  4207. $instance->offsetSet($key, $value);
  4208. }
  4209. /**
  4210. * Unset a configuration option.
  4211. *
  4212. * @param string $key
  4213. * @return void
  4214. * @static
  4215. */
  4216. public static function offsetUnset($key)
  4217. {
  4218. /** @var \Illuminate\Config\Repository $instance */
  4219. $instance->offsetUnset($key);
  4220. }
  4221. }
  4222. /**
  4223. *
  4224. *
  4225. * @see \Illuminate\Cookie\CookieJar
  4226. */
  4227. class Cookie {
  4228. /**
  4229. * Create a new cookie instance.
  4230. *
  4231. * @param string $name
  4232. * @param string $value
  4233. * @param int $minutes
  4234. * @param string|null $path
  4235. * @param string|null $domain
  4236. * @param bool|null $secure
  4237. * @param bool $httpOnly
  4238. * @param bool $raw
  4239. * @param string|null $sameSite
  4240. * @return \Symfony\Component\HttpFoundation\Cookie
  4241. * @static
  4242. */
  4243. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4244. {
  4245. /** @var \Illuminate\Cookie\CookieJar $instance */
  4246. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4247. }
  4248. /**
  4249. * Create a cookie that lasts "forever" (five years).
  4250. *
  4251. * @param string $name
  4252. * @param string $value
  4253. * @param string|null $path
  4254. * @param string|null $domain
  4255. * @param bool|null $secure
  4256. * @param bool $httpOnly
  4257. * @param bool $raw
  4258. * @param string|null $sameSite
  4259. * @return \Symfony\Component\HttpFoundation\Cookie
  4260. * @static
  4261. */
  4262. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4263. {
  4264. /** @var \Illuminate\Cookie\CookieJar $instance */
  4265. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4266. }
  4267. /**
  4268. * Expire the given cookie.
  4269. *
  4270. * @param string $name
  4271. * @param string|null $path
  4272. * @param string|null $domain
  4273. * @return \Symfony\Component\HttpFoundation\Cookie
  4274. * @static
  4275. */
  4276. public static function forget($name, $path = null, $domain = null)
  4277. {
  4278. /** @var \Illuminate\Cookie\CookieJar $instance */
  4279. return $instance->forget($name, $path, $domain);
  4280. }
  4281. /**
  4282. * Determine if a cookie has been queued.
  4283. *
  4284. * @param string $key
  4285. * @param string|null $path
  4286. * @return bool
  4287. * @static
  4288. */
  4289. public static function hasQueued($key, $path = null)
  4290. {
  4291. /** @var \Illuminate\Cookie\CookieJar $instance */
  4292. return $instance->hasQueued($key, $path);
  4293. }
  4294. /**
  4295. * Get a queued cookie instance.
  4296. *
  4297. * @param string $key
  4298. * @param mixed $default
  4299. * @param string|null $path
  4300. * @return \Symfony\Component\HttpFoundation\Cookie|null
  4301. * @static
  4302. */
  4303. public static function queued($key, $default = null, $path = null)
  4304. {
  4305. /** @var \Illuminate\Cookie\CookieJar $instance */
  4306. return $instance->queued($key, $default, $path);
  4307. }
  4308. /**
  4309. * Queue a cookie to send with the next response.
  4310. *
  4311. * @param array $parameters
  4312. * @return void
  4313. * @static
  4314. */
  4315. public static function queue(...$parameters)
  4316. {
  4317. /** @var \Illuminate\Cookie\CookieJar $instance */
  4318. $instance->queue(...$parameters);
  4319. }
  4320. /**
  4321. * Queue a cookie to expire with the next response.
  4322. *
  4323. * @param string $name
  4324. * @param string|null $path
  4325. * @param string|null $domain
  4326. * @return void
  4327. * @static
  4328. */
  4329. public static function expire($name, $path = null, $domain = null)
  4330. {
  4331. /** @var \Illuminate\Cookie\CookieJar $instance */
  4332. $instance->expire($name, $path, $domain);
  4333. }
  4334. /**
  4335. * Remove a cookie from the queue.
  4336. *
  4337. * @param string $name
  4338. * @param string|null $path
  4339. * @return void
  4340. * @static
  4341. */
  4342. public static function unqueue($name, $path = null)
  4343. {
  4344. /** @var \Illuminate\Cookie\CookieJar $instance */
  4345. $instance->unqueue($name, $path);
  4346. }
  4347. /**
  4348. * Set the default path and domain for the jar.
  4349. *
  4350. * @param string $path
  4351. * @param string $domain
  4352. * @param bool $secure
  4353. * @param string|null $sameSite
  4354. * @return \Illuminate\Cookie\CookieJar
  4355. * @static
  4356. */
  4357. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  4358. {
  4359. /** @var \Illuminate\Cookie\CookieJar $instance */
  4360. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  4361. }
  4362. /**
  4363. * Get the cookies which have been queued for the next request.
  4364. *
  4365. * @return \Symfony\Component\HttpFoundation\Cookie[]
  4366. * @static
  4367. */
  4368. public static function getQueuedCookies()
  4369. {
  4370. /** @var \Illuminate\Cookie\CookieJar $instance */
  4371. return $instance->getQueuedCookies();
  4372. }
  4373. /**
  4374. * Flush the cookies which have been queued for the next request.
  4375. *
  4376. * @return \Illuminate\Cookie\CookieJar
  4377. * @static
  4378. */
  4379. public static function flushQueuedCookies()
  4380. {
  4381. /** @var \Illuminate\Cookie\CookieJar $instance */
  4382. return $instance->flushQueuedCookies();
  4383. }
  4384. /**
  4385. * Register a custom macro.
  4386. *
  4387. * @param string $name
  4388. * @param object|callable $macro
  4389. * @return void
  4390. * @static
  4391. */
  4392. public static function macro($name, $macro)
  4393. {
  4394. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  4395. }
  4396. /**
  4397. * Mix another object into the class.
  4398. *
  4399. * @param object $mixin
  4400. * @param bool $replace
  4401. * @return void
  4402. * @throws \ReflectionException
  4403. * @static
  4404. */
  4405. public static function mixin($mixin, $replace = true)
  4406. {
  4407. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  4408. }
  4409. /**
  4410. * Checks if macro is registered.
  4411. *
  4412. * @param string $name
  4413. * @return bool
  4414. * @static
  4415. */
  4416. public static function hasMacro($name)
  4417. {
  4418. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  4419. }
  4420. /**
  4421. * Flush the existing macros.
  4422. *
  4423. * @return void
  4424. * @static
  4425. */
  4426. public static function flushMacros()
  4427. {
  4428. \Illuminate\Cookie\CookieJar::flushMacros();
  4429. }
  4430. }
  4431. /**
  4432. *
  4433. *
  4434. * @see \Illuminate\Encryption\Encrypter
  4435. */
  4436. class Crypt {
  4437. /**
  4438. * Determine if the given key and cipher combination is valid.
  4439. *
  4440. * @param string $key
  4441. * @param string $cipher
  4442. * @return bool
  4443. * @static
  4444. */
  4445. public static function supported($key, $cipher)
  4446. {
  4447. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  4448. }
  4449. /**
  4450. * Create a new encryption key for the given cipher.
  4451. *
  4452. * @param string $cipher
  4453. * @return string
  4454. * @static
  4455. */
  4456. public static function generateKey($cipher)
  4457. {
  4458. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  4459. }
  4460. /**
  4461. * Encrypt the given value.
  4462. *
  4463. * @param mixed $value
  4464. * @param bool $serialize
  4465. * @return string
  4466. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4467. * @static
  4468. */
  4469. public static function encrypt($value, $serialize = true)
  4470. {
  4471. /** @var \Illuminate\Encryption\Encrypter $instance */
  4472. return $instance->encrypt($value, $serialize);
  4473. }
  4474. /**
  4475. * Encrypt a string without serialization.
  4476. *
  4477. * @param string $value
  4478. * @return string
  4479. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4480. * @static
  4481. */
  4482. public static function encryptString($value)
  4483. {
  4484. /** @var \Illuminate\Encryption\Encrypter $instance */
  4485. return $instance->encryptString($value);
  4486. }
  4487. /**
  4488. * Decrypt the given value.
  4489. *
  4490. * @param string $payload
  4491. * @param bool $unserialize
  4492. * @return mixed
  4493. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4494. * @static
  4495. */
  4496. public static function decrypt($payload, $unserialize = true)
  4497. {
  4498. /** @var \Illuminate\Encryption\Encrypter $instance */
  4499. return $instance->decrypt($payload, $unserialize);
  4500. }
  4501. /**
  4502. * Decrypt the given string without unserialization.
  4503. *
  4504. * @param string $payload
  4505. * @return string
  4506. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4507. * @static
  4508. */
  4509. public static function decryptString($payload)
  4510. {
  4511. /** @var \Illuminate\Encryption\Encrypter $instance */
  4512. return $instance->decryptString($payload);
  4513. }
  4514. /**
  4515. * Get the encryption key that the encrypter is currently using.
  4516. *
  4517. * @return string
  4518. * @static
  4519. */
  4520. public static function getKey()
  4521. {
  4522. /** @var \Illuminate\Encryption\Encrypter $instance */
  4523. return $instance->getKey();
  4524. }
  4525. }
  4526. /**
  4527. *
  4528. *
  4529. * @see https://carbon.nesbot.com/docs/
  4530. * @see https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Factory.php
  4531. * @method static \Illuminate\Support\Carbon create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null)
  4532. * @method static \Illuminate\Support\Carbon createFromDate($year = null, $month = null, $day = null, $tz = null)
  4533. * @method static \Illuminate\Support\Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null)
  4534. * @method static \Illuminate\Support\Carbon createFromTimeString($time, $tz = null)
  4535. * @method static \Illuminate\Support\Carbon createFromTimestamp($timestamp, $tz = null)
  4536. * @method static \Illuminate\Support\Carbon createFromTimestampMs($timestamp, $tz = null)
  4537. * @method static \Illuminate\Support\Carbon createFromTimestampUTC($timestamp)
  4538. * @method static \Illuminate\Support\Carbon createMidnightDate($year = null, $month = null, $day = null, $tz = null)
  4539. * @method static void disableHumanDiffOption($humanDiffOption)
  4540. * @method static void enableHumanDiffOption($humanDiffOption)
  4541. * @method static \Illuminate\Support\Carbon fromSerialized($value)
  4542. * @method static array getLastErrors()
  4543. * @method static \Illuminate\Support\Carbon|null getTestNow()
  4544. * @method static \Illuminate\Support\Carbon instance($date)
  4545. * @method static bool isMutable()
  4546. * @method static \Illuminate\Support\Carbon maxValue()
  4547. * @method static \Illuminate\Support\Carbon minValue()
  4548. * @method static \Illuminate\Support\Carbon now($tz = null)
  4549. * @method static \Illuminate\Support\Carbon parse($time = null, $tz = null)
  4550. * @method static void setHumanDiffOptions($humanDiffOptions)
  4551. * @method static void setTestNow($testNow = null)
  4552. * @method static void setUtf8($utf8)
  4553. * @method static \Illuminate\Support\Carbon today($tz = null)
  4554. * @method static \Illuminate\Support\Carbon tomorrow($tz = null)
  4555. * @method static void useStrictMode($strictModeEnabled = true)
  4556. * @method static \Illuminate\Support\Carbon yesterday($tz = null)
  4557. * @method static \Illuminate\Support\Carbon|false createFromFormat($format, $time, $tz = null)
  4558. * @method static \Illuminate\Support\Carbon|false createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null)
  4559. * @method static \Illuminate\Support\Carbon|null make($var)
  4560. * @method static \Symfony\Component\Translation\TranslatorInterface getTranslator()
  4561. * @method static array getAvailableLocales()
  4562. * @method static array getDays()
  4563. * @method static array getIsoUnits()
  4564. * @method static array getWeekendDays()
  4565. * @method static bool hasFormat($date, $format)
  4566. * @method static bool hasMacro($name)
  4567. * @method static bool hasRelativeKeywords($time)
  4568. * @method static bool hasTestNow()
  4569. * @method static bool isImmutable()
  4570. * @method static bool isModifiableUnit($unit)
  4571. * @method static bool isStrictModeEnabled()
  4572. * @method static bool localeHasDiffOneDayWords($locale)
  4573. * @method static bool localeHasDiffSyntax($locale)
  4574. * @method static bool localeHasDiffTwoDayWords($locale)
  4575. * @method static bool localeHasPeriodSyntax($locale)
  4576. * @method static bool localeHasShortUnits($locale)
  4577. * @method static bool setLocale($locale)
  4578. * @method static bool shouldOverflowMonths()
  4579. * @method static bool shouldOverflowYears()
  4580. * @method static int getHumanDiffOptions()
  4581. * @method static int getMidDayAt()
  4582. * @method static int getWeekEndsAt()
  4583. * @method static int getWeekStartsAt()
  4584. * @method static mixed executeWithLocale($locale, $func)
  4585. * @method static string getLocale()
  4586. * @method static string pluralUnit(string $unit)
  4587. * @method static string singularUnit(string $unit)
  4588. * @method static void macro($name, $macro)
  4589. * @method static void mixin($mixin)
  4590. * @method static void resetMonthsOverflow()
  4591. * @method static void resetToStringFormat()
  4592. * @method static void resetYearsOverflow()
  4593. * @method static void serializeUsing($callback)
  4594. * @method static void setMidDayAt($hour)
  4595. * @method static void setToStringFormat($format)
  4596. * @method static void setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator)
  4597. * @method static void setWeekEndsAt($day)
  4598. * @method static void setWeekStartsAt($day)
  4599. * @method static void setWeekendDays($days)
  4600. * @method static void useMonthsOverflow($monthsOverflow = true)
  4601. * @method static void useYearsOverflow($yearsOverflow = true)
  4602. */
  4603. class Date {
  4604. /**
  4605. * Use the given handler when generating dates (class name, callable, or factory).
  4606. *
  4607. * @param mixed $handler
  4608. * @return mixed
  4609. * @throws \InvalidArgumentException
  4610. * @static
  4611. */
  4612. public static function use($handler)
  4613. {
  4614. return \Illuminate\Support\DateFactory::use($handler);
  4615. }
  4616. /**
  4617. * Use the default date class when generating dates.
  4618. *
  4619. * @return void
  4620. * @static
  4621. */
  4622. public static function useDefault()
  4623. {
  4624. \Illuminate\Support\DateFactory::useDefault();
  4625. }
  4626. /**
  4627. * Execute the given callable on each date creation.
  4628. *
  4629. * @param callable $callable
  4630. * @return void
  4631. * @static
  4632. */
  4633. public static function useCallable($callable)
  4634. {
  4635. \Illuminate\Support\DateFactory::useCallable($callable);
  4636. }
  4637. /**
  4638. * Use the given date type (class) when generating dates.
  4639. *
  4640. * @param string $dateClass
  4641. * @return void
  4642. * @static
  4643. */
  4644. public static function useClass($dateClass)
  4645. {
  4646. \Illuminate\Support\DateFactory::useClass($dateClass);
  4647. }
  4648. /**
  4649. * Use the given Carbon factory when generating dates.
  4650. *
  4651. * @param object $factory
  4652. * @return void
  4653. * @static
  4654. */
  4655. public static function useFactory($factory)
  4656. {
  4657. \Illuminate\Support\DateFactory::useFactory($factory);
  4658. }
  4659. }
  4660. /**
  4661. *
  4662. *
  4663. * @see \Illuminate\Database\DatabaseManager
  4664. * @see \Illuminate\Database\Connection
  4665. */
  4666. class DB {
  4667. /**
  4668. * Get a database connection instance.
  4669. *
  4670. * @param string|null $name
  4671. * @return \Illuminate\Database\Connection
  4672. * @static
  4673. */
  4674. public static function connection($name = null)
  4675. {
  4676. /** @var \Illuminate\Database\DatabaseManager $instance */
  4677. return $instance->connection($name);
  4678. }
  4679. /**
  4680. * Register a custom Doctrine type.
  4681. *
  4682. * @param string $class
  4683. * @param string $name
  4684. * @param string $type
  4685. * @return void
  4686. * @throws \Doctrine\DBAL\DBALException
  4687. * @throws \RuntimeException
  4688. * @static
  4689. */
  4690. public static function registerDoctrineType($class, $name, $type)
  4691. {
  4692. /** @var \Illuminate\Database\DatabaseManager $instance */
  4693. $instance->registerDoctrineType($class, $name, $type);
  4694. }
  4695. /**
  4696. * Disconnect from the given database and remove from local cache.
  4697. *
  4698. * @param string|null $name
  4699. * @return void
  4700. * @static
  4701. */
  4702. public static function purge($name = null)
  4703. {
  4704. /** @var \Illuminate\Database\DatabaseManager $instance */
  4705. $instance->purge($name);
  4706. }
  4707. /**
  4708. * Disconnect from the given database.
  4709. *
  4710. * @param string|null $name
  4711. * @return void
  4712. * @static
  4713. */
  4714. public static function disconnect($name = null)
  4715. {
  4716. /** @var \Illuminate\Database\DatabaseManager $instance */
  4717. $instance->disconnect($name);
  4718. }
  4719. /**
  4720. * Reconnect to the given database.
  4721. *
  4722. * @param string|null $name
  4723. * @return \Illuminate\Database\Connection
  4724. * @static
  4725. */
  4726. public static function reconnect($name = null)
  4727. {
  4728. /** @var \Illuminate\Database\DatabaseManager $instance */
  4729. return $instance->reconnect($name);
  4730. }
  4731. /**
  4732. * Set the default database connection for the callback execution.
  4733. *
  4734. * @param string $name
  4735. * @param callable $callback
  4736. * @return mixed
  4737. * @static
  4738. */
  4739. public static function usingConnection($name, $callback)
  4740. {
  4741. /** @var \Illuminate\Database\DatabaseManager $instance */
  4742. return $instance->usingConnection($name, $callback);
  4743. }
  4744. /**
  4745. * Get the default connection name.
  4746. *
  4747. * @return string
  4748. * @static
  4749. */
  4750. public static function getDefaultConnection()
  4751. {
  4752. /** @var \Illuminate\Database\DatabaseManager $instance */
  4753. return $instance->getDefaultConnection();
  4754. }
  4755. /**
  4756. * Set the default connection name.
  4757. *
  4758. * @param string $name
  4759. * @return void
  4760. * @static
  4761. */
  4762. public static function setDefaultConnection($name)
  4763. {
  4764. /** @var \Illuminate\Database\DatabaseManager $instance */
  4765. $instance->setDefaultConnection($name);
  4766. }
  4767. /**
  4768. * Get all of the support drivers.
  4769. *
  4770. * @return string[]
  4771. * @static
  4772. */
  4773. public static function supportedDrivers()
  4774. {
  4775. /** @var \Illuminate\Database\DatabaseManager $instance */
  4776. return $instance->supportedDrivers();
  4777. }
  4778. /**
  4779. * Get all of the drivers that are actually available.
  4780. *
  4781. * @return string[]
  4782. * @static
  4783. */
  4784. public static function availableDrivers()
  4785. {
  4786. /** @var \Illuminate\Database\DatabaseManager $instance */
  4787. return $instance->availableDrivers();
  4788. }
  4789. /**
  4790. * Register an extension connection resolver.
  4791. *
  4792. * @param string $name
  4793. * @param callable $resolver
  4794. * @return void
  4795. * @static
  4796. */
  4797. public static function extend($name, $resolver)
  4798. {
  4799. /** @var \Illuminate\Database\DatabaseManager $instance */
  4800. $instance->extend($name, $resolver);
  4801. }
  4802. /**
  4803. * Remove an extension connection resolver.
  4804. *
  4805. * @param string $name
  4806. * @return void
  4807. * @static
  4808. */
  4809. public static function forgetExtension($name)
  4810. {
  4811. /** @var \Illuminate\Database\DatabaseManager $instance */
  4812. $instance->forgetExtension($name);
  4813. }
  4814. /**
  4815. * Return all of the created connections.
  4816. *
  4817. * @return \Illuminate\Database\array<string, \Illuminate\Database\Connection>
  4818. * @static
  4819. */
  4820. public static function getConnections()
  4821. {
  4822. /** @var \Illuminate\Database\DatabaseManager $instance */
  4823. return $instance->getConnections();
  4824. }
  4825. /**
  4826. * Set the database reconnector callback.
  4827. *
  4828. * @param callable $reconnector
  4829. * @return void
  4830. * @static
  4831. */
  4832. public static function setReconnector($reconnector)
  4833. {
  4834. /** @var \Illuminate\Database\DatabaseManager $instance */
  4835. $instance->setReconnector($reconnector);
  4836. }
  4837. /**
  4838. * Set the application instance used by the manager.
  4839. *
  4840. * @param \Illuminate\Contracts\Foundation\Application $app
  4841. * @return \Illuminate\Database\DatabaseManager
  4842. * @static
  4843. */
  4844. public static function setApplication($app)
  4845. {
  4846. /** @var \Illuminate\Database\DatabaseManager $instance */
  4847. return $instance->setApplication($app);
  4848. }
  4849. /**
  4850. * Register a custom macro.
  4851. *
  4852. * @param string $name
  4853. * @param object|callable $macro
  4854. * @return void
  4855. * @static
  4856. */
  4857. public static function macro($name, $macro)
  4858. {
  4859. \Illuminate\Database\DatabaseManager::macro($name, $macro);
  4860. }
  4861. /**
  4862. * Mix another object into the class.
  4863. *
  4864. * @param object $mixin
  4865. * @param bool $replace
  4866. * @return void
  4867. * @throws \ReflectionException
  4868. * @static
  4869. */
  4870. public static function mixin($mixin, $replace = true)
  4871. {
  4872. \Illuminate\Database\DatabaseManager::mixin($mixin, $replace);
  4873. }
  4874. /**
  4875. * Checks if macro is registered.
  4876. *
  4877. * @param string $name
  4878. * @return bool
  4879. * @static
  4880. */
  4881. public static function hasMacro($name)
  4882. {
  4883. return \Illuminate\Database\DatabaseManager::hasMacro($name);
  4884. }
  4885. /**
  4886. * Flush the existing macros.
  4887. *
  4888. * @return void
  4889. * @static
  4890. */
  4891. public static function flushMacros()
  4892. {
  4893. \Illuminate\Database\DatabaseManager::flushMacros();
  4894. }
  4895. /**
  4896. * Dynamically handle calls to the class.
  4897. *
  4898. * @param string $method
  4899. * @param array $parameters
  4900. * @return mixed
  4901. * @throws \BadMethodCallException
  4902. * @static
  4903. */
  4904. public static function macroCall($method, $parameters)
  4905. {
  4906. /** @var \Illuminate\Database\DatabaseManager $instance */
  4907. return $instance->macroCall($method, $parameters);
  4908. }
  4909. /**
  4910. * Determine if the connected database is a MariaDB database.
  4911. *
  4912. * @return bool
  4913. * @static
  4914. */
  4915. public static function isMaria()
  4916. {
  4917. /** @var \Illuminate\Database\MySqlConnection $instance */
  4918. return $instance->isMaria();
  4919. }
  4920. /**
  4921. * Get a schema builder instance for the connection.
  4922. *
  4923. * @return \Illuminate\Database\Schema\MySqlBuilder
  4924. * @static
  4925. */
  4926. public static function getSchemaBuilder()
  4927. {
  4928. /** @var \Illuminate\Database\MySqlConnection $instance */
  4929. return $instance->getSchemaBuilder();
  4930. }
  4931. /**
  4932. * Get the schema state for the connection.
  4933. *
  4934. * @param \Illuminate\Filesystem\Filesystem|null $files
  4935. * @param callable|null $processFactory
  4936. * @return \Illuminate\Database\Schema\MySqlSchemaState
  4937. * @static
  4938. */
  4939. public static function getSchemaState($files = null, $processFactory = null)
  4940. {
  4941. /** @var \Illuminate\Database\MySqlConnection $instance */
  4942. return $instance->getSchemaState($files, $processFactory);
  4943. }
  4944. /**
  4945. * Set the query grammar to the default implementation.
  4946. *
  4947. * @return void
  4948. * @static
  4949. */
  4950. public static function useDefaultQueryGrammar()
  4951. { //Method inherited from \Illuminate\Database\Connection
  4952. /** @var \Illuminate\Database\MySqlConnection $instance */
  4953. $instance->useDefaultQueryGrammar();
  4954. }
  4955. /**
  4956. * Set the schema grammar to the default implementation.
  4957. *
  4958. * @return void
  4959. * @static
  4960. */
  4961. public static function useDefaultSchemaGrammar()
  4962. { //Method inherited from \Illuminate\Database\Connection
  4963. /** @var \Illuminate\Database\MySqlConnection $instance */
  4964. $instance->useDefaultSchemaGrammar();
  4965. }
  4966. /**
  4967. * Set the query post processor to the default implementation.
  4968. *
  4969. * @return void
  4970. * @static
  4971. */
  4972. public static function useDefaultPostProcessor()
  4973. { //Method inherited from \Illuminate\Database\Connection
  4974. /** @var \Illuminate\Database\MySqlConnection $instance */
  4975. $instance->useDefaultPostProcessor();
  4976. }
  4977. /**
  4978. * Begin a fluent query against a database table.
  4979. *
  4980. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  4981. * @param string|null $as
  4982. * @return \Illuminate\Database\Query\Builder
  4983. * @static
  4984. */
  4985. public static function table($table, $as = null)
  4986. { //Method inherited from \Illuminate\Database\Connection
  4987. /** @var \Illuminate\Database\MySqlConnection $instance */
  4988. return $instance->table($table, $as);
  4989. }
  4990. /**
  4991. * Get a new query builder instance.
  4992. *
  4993. * @return \Illuminate\Database\Query\Builder
  4994. * @static
  4995. */
  4996. public static function query()
  4997. { //Method inherited from \Illuminate\Database\Connection
  4998. /** @var \Illuminate\Database\MySqlConnection $instance */
  4999. return $instance->query();
  5000. }
  5001. /**
  5002. * Run a select statement and return a single result.
  5003. *
  5004. * @param string $query
  5005. * @param array $bindings
  5006. * @param bool $useReadPdo
  5007. * @return mixed
  5008. * @static
  5009. */
  5010. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  5011. { //Method inherited from \Illuminate\Database\Connection
  5012. /** @var \Illuminate\Database\MySqlConnection $instance */
  5013. return $instance->selectOne($query, $bindings, $useReadPdo);
  5014. }
  5015. /**
  5016. * Run a select statement and return the first column of the first row.
  5017. *
  5018. * @param string $query
  5019. * @param array $bindings
  5020. * @param bool $useReadPdo
  5021. * @return mixed
  5022. * @throws \Illuminate\Database\MultipleColumnsSelectedException
  5023. * @static
  5024. */
  5025. public static function scalar($query, $bindings = [], $useReadPdo = true)
  5026. { //Method inherited from \Illuminate\Database\Connection
  5027. /** @var \Illuminate\Database\MySqlConnection $instance */
  5028. return $instance->scalar($query, $bindings, $useReadPdo);
  5029. }
  5030. /**
  5031. * Run a select statement against the database.
  5032. *
  5033. * @param string $query
  5034. * @param array $bindings
  5035. * @return array
  5036. * @static
  5037. */
  5038. public static function selectFromWriteConnection($query, $bindings = [])
  5039. { //Method inherited from \Illuminate\Database\Connection
  5040. /** @var \Illuminate\Database\MySqlConnection $instance */
  5041. return $instance->selectFromWriteConnection($query, $bindings);
  5042. }
  5043. /**
  5044. * Run a select statement against the database.
  5045. *
  5046. * @param string $query
  5047. * @param array $bindings
  5048. * @param bool $useReadPdo
  5049. * @return array
  5050. * @static
  5051. */
  5052. public static function select($query, $bindings = [], $useReadPdo = true)
  5053. { //Method inherited from \Illuminate\Database\Connection
  5054. /** @var \Illuminate\Database\MySqlConnection $instance */
  5055. return $instance->select($query, $bindings, $useReadPdo);
  5056. }
  5057. /**
  5058. * Run a select statement against the database and returns a generator.
  5059. *
  5060. * @param string $query
  5061. * @param array $bindings
  5062. * @param bool $useReadPdo
  5063. * @return \Generator
  5064. * @static
  5065. */
  5066. public static function cursor($query, $bindings = [], $useReadPdo = true)
  5067. { //Method inherited from \Illuminate\Database\Connection
  5068. /** @var \Illuminate\Database\MySqlConnection $instance */
  5069. return $instance->cursor($query, $bindings, $useReadPdo);
  5070. }
  5071. /**
  5072. * Run an insert statement against the database.
  5073. *
  5074. * @param string $query
  5075. * @param array $bindings
  5076. * @return bool
  5077. * @static
  5078. */
  5079. public static function insert($query, $bindings = [])
  5080. { //Method inherited from \Illuminate\Database\Connection
  5081. /** @var \Illuminate\Database\MySqlConnection $instance */
  5082. return $instance->insert($query, $bindings);
  5083. }
  5084. /**
  5085. * Run an update statement against the database.
  5086. *
  5087. * @param string $query
  5088. * @param array $bindings
  5089. * @return int
  5090. * @static
  5091. */
  5092. public static function update($query, $bindings = [])
  5093. { //Method inherited from \Illuminate\Database\Connection
  5094. /** @var \Illuminate\Database\MySqlConnection $instance */
  5095. return $instance->update($query, $bindings);
  5096. }
  5097. /**
  5098. * Run a delete statement against the database.
  5099. *
  5100. * @param string $query
  5101. * @param array $bindings
  5102. * @return int
  5103. * @static
  5104. */
  5105. public static function delete($query, $bindings = [])
  5106. { //Method inherited from \Illuminate\Database\Connection
  5107. /** @var \Illuminate\Database\MySqlConnection $instance */
  5108. return $instance->delete($query, $bindings);
  5109. }
  5110. /**
  5111. * Execute an SQL statement and return the boolean result.
  5112. *
  5113. * @param string $query
  5114. * @param array $bindings
  5115. * @return bool
  5116. * @static
  5117. */
  5118. public static function statement($query, $bindings = [])
  5119. { //Method inherited from \Illuminate\Database\Connection
  5120. /** @var \Illuminate\Database\MySqlConnection $instance */
  5121. return $instance->statement($query, $bindings);
  5122. }
  5123. /**
  5124. * Run an SQL statement and get the number of rows affected.
  5125. *
  5126. * @param string $query
  5127. * @param array $bindings
  5128. * @return int
  5129. * @static
  5130. */
  5131. public static function affectingStatement($query, $bindings = [])
  5132. { //Method inherited from \Illuminate\Database\Connection
  5133. /** @var \Illuminate\Database\MySqlConnection $instance */
  5134. return $instance->affectingStatement($query, $bindings);
  5135. }
  5136. /**
  5137. * Run a raw, unprepared query against the PDO connection.
  5138. *
  5139. * @param string $query
  5140. * @return bool
  5141. * @static
  5142. */
  5143. public static function unprepared($query)
  5144. { //Method inherited from \Illuminate\Database\Connection
  5145. /** @var \Illuminate\Database\MySqlConnection $instance */
  5146. return $instance->unprepared($query);
  5147. }
  5148. /**
  5149. * Execute the given callback in "dry run" mode.
  5150. *
  5151. * @param \Closure $callback
  5152. * @return array
  5153. * @static
  5154. */
  5155. public static function pretend($callback)
  5156. { //Method inherited from \Illuminate\Database\Connection
  5157. /** @var \Illuminate\Database\MySqlConnection $instance */
  5158. return $instance->pretend($callback);
  5159. }
  5160. /**
  5161. * Bind values to their parameters in the given statement.
  5162. *
  5163. * @param \PDOStatement $statement
  5164. * @param array $bindings
  5165. * @return void
  5166. * @static
  5167. */
  5168. public static function bindValues($statement, $bindings)
  5169. { //Method inherited from \Illuminate\Database\Connection
  5170. /** @var \Illuminate\Database\MySqlConnection $instance */
  5171. $instance->bindValues($statement, $bindings);
  5172. }
  5173. /**
  5174. * Prepare the query bindings for execution.
  5175. *
  5176. * @param array $bindings
  5177. * @return array
  5178. * @static
  5179. */
  5180. public static function prepareBindings($bindings)
  5181. { //Method inherited from \Illuminate\Database\Connection
  5182. /** @var \Illuminate\Database\MySqlConnection $instance */
  5183. return $instance->prepareBindings($bindings);
  5184. }
  5185. /**
  5186. * Log a query in the connection's query log.
  5187. *
  5188. * @param string $query
  5189. * @param array $bindings
  5190. * @param float|null $time
  5191. * @return void
  5192. * @static
  5193. */
  5194. public static function logQuery($query, $bindings, $time = null)
  5195. { //Method inherited from \Illuminate\Database\Connection
  5196. /** @var \Illuminate\Database\MySqlConnection $instance */
  5197. $instance->logQuery($query, $bindings, $time);
  5198. }
  5199. /**
  5200. * Register a callback to be invoked when the connection queries for longer than a given amount of time.
  5201. *
  5202. * @param \DateTimeInterface|\Carbon\CarbonInterval|float|int $threshold
  5203. * @param callable $handler
  5204. * @return void
  5205. * @static
  5206. */
  5207. public static function whenQueryingForLongerThan($threshold, $handler)
  5208. { //Method inherited from \Illuminate\Database\Connection
  5209. /** @var \Illuminate\Database\MySqlConnection $instance */
  5210. $instance->whenQueryingForLongerThan($threshold, $handler);
  5211. }
  5212. /**
  5213. * Allow all the query duration handlers to run again, even if they have already run.
  5214. *
  5215. * @return void
  5216. * @static
  5217. */
  5218. public static function allowQueryDurationHandlersToRunAgain()
  5219. { //Method inherited from \Illuminate\Database\Connection
  5220. /** @var \Illuminate\Database\MySqlConnection $instance */
  5221. $instance->allowQueryDurationHandlersToRunAgain();
  5222. }
  5223. /**
  5224. * Get the duration of all run queries in milliseconds.
  5225. *
  5226. * @return float
  5227. * @static
  5228. */
  5229. public static function totalQueryDuration()
  5230. { //Method inherited from \Illuminate\Database\Connection
  5231. /** @var \Illuminate\Database\MySqlConnection $instance */
  5232. return $instance->totalQueryDuration();
  5233. }
  5234. /**
  5235. * Reset the duration of all run queries.
  5236. *
  5237. * @return void
  5238. * @static
  5239. */
  5240. public static function resetTotalQueryDuration()
  5241. { //Method inherited from \Illuminate\Database\Connection
  5242. /** @var \Illuminate\Database\MySqlConnection $instance */
  5243. $instance->resetTotalQueryDuration();
  5244. }
  5245. /**
  5246. * Register a hook to be run just before a database query is executed.
  5247. *
  5248. * @param \Closure $callback
  5249. * @return \Illuminate\Database\MySqlConnection
  5250. * @static
  5251. */
  5252. public static function beforeExecuting($callback)
  5253. { //Method inherited from \Illuminate\Database\Connection
  5254. /** @var \Illuminate\Database\MySqlConnection $instance */
  5255. return $instance->beforeExecuting($callback);
  5256. }
  5257. /**
  5258. * Register a database query listener with the connection.
  5259. *
  5260. * @param \Closure $callback
  5261. * @return void
  5262. * @static
  5263. */
  5264. public static function listen($callback)
  5265. { //Method inherited from \Illuminate\Database\Connection
  5266. /** @var \Illuminate\Database\MySqlConnection $instance */
  5267. $instance->listen($callback);
  5268. }
  5269. /**
  5270. * Get a new raw query expression.
  5271. *
  5272. * @param mixed $value
  5273. * @return \Illuminate\Database\Query\Expression
  5274. * @static
  5275. */
  5276. public static function raw($value)
  5277. { //Method inherited from \Illuminate\Database\Connection
  5278. /** @var \Illuminate\Database\MySqlConnection $instance */
  5279. return $instance->raw($value);
  5280. }
  5281. /**
  5282. * Determine if the database connection has modified any database records.
  5283. *
  5284. * @return bool
  5285. * @static
  5286. */
  5287. public static function hasModifiedRecords()
  5288. { //Method inherited from \Illuminate\Database\Connection
  5289. /** @var \Illuminate\Database\MySqlConnection $instance */
  5290. return $instance->hasModifiedRecords();
  5291. }
  5292. /**
  5293. * Indicate if any records have been modified.
  5294. *
  5295. * @param bool $value
  5296. * @return void
  5297. * @static
  5298. */
  5299. public static function recordsHaveBeenModified($value = true)
  5300. { //Method inherited from \Illuminate\Database\Connection
  5301. /** @var \Illuminate\Database\MySqlConnection $instance */
  5302. $instance->recordsHaveBeenModified($value);
  5303. }
  5304. /**
  5305. * Set the record modification state.
  5306. *
  5307. * @param bool $value
  5308. * @return \Illuminate\Database\MySqlConnection
  5309. * @static
  5310. */
  5311. public static function setRecordModificationState($value)
  5312. { //Method inherited from \Illuminate\Database\Connection
  5313. /** @var \Illuminate\Database\MySqlConnection $instance */
  5314. return $instance->setRecordModificationState($value);
  5315. }
  5316. /**
  5317. * Reset the record modification state.
  5318. *
  5319. * @return void
  5320. * @static
  5321. */
  5322. public static function forgetRecordModificationState()
  5323. { //Method inherited from \Illuminate\Database\Connection
  5324. /** @var \Illuminate\Database\MySqlConnection $instance */
  5325. $instance->forgetRecordModificationState();
  5326. }
  5327. /**
  5328. * Indicate that the connection should use the write PDO connection for reads.
  5329. *
  5330. * @param bool $value
  5331. * @return \Illuminate\Database\MySqlConnection
  5332. * @static
  5333. */
  5334. public static function useWriteConnectionWhenReading($value = true)
  5335. { //Method inherited from \Illuminate\Database\Connection
  5336. /** @var \Illuminate\Database\MySqlConnection $instance */
  5337. return $instance->useWriteConnectionWhenReading($value);
  5338. }
  5339. /**
  5340. * Is Doctrine available?
  5341. *
  5342. * @return bool
  5343. * @static
  5344. */
  5345. public static function isDoctrineAvailable()
  5346. { //Method inherited from \Illuminate\Database\Connection
  5347. /** @var \Illuminate\Database\MySqlConnection $instance */
  5348. return $instance->isDoctrineAvailable();
  5349. }
  5350. /**
  5351. * Get a Doctrine Schema Column instance.
  5352. *
  5353. * @param string $table
  5354. * @param string $column
  5355. * @return \Doctrine\DBAL\Schema\Column
  5356. * @static
  5357. */
  5358. public static function getDoctrineColumn($table, $column)
  5359. { //Method inherited from \Illuminate\Database\Connection
  5360. /** @var \Illuminate\Database\MySqlConnection $instance */
  5361. return $instance->getDoctrineColumn($table, $column);
  5362. }
  5363. /**
  5364. * Get the Doctrine DBAL schema manager for the connection.
  5365. *
  5366. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  5367. * @static
  5368. */
  5369. public static function getDoctrineSchemaManager()
  5370. { //Method inherited from \Illuminate\Database\Connection
  5371. /** @var \Illuminate\Database\MySqlConnection $instance */
  5372. return $instance->getDoctrineSchemaManager();
  5373. }
  5374. /**
  5375. * Get the Doctrine DBAL database connection instance.
  5376. *
  5377. * @return \Doctrine\DBAL\Connection
  5378. * @static
  5379. */
  5380. public static function getDoctrineConnection()
  5381. { //Method inherited from \Illuminate\Database\Connection
  5382. /** @var \Illuminate\Database\MySqlConnection $instance */
  5383. return $instance->getDoctrineConnection();
  5384. }
  5385. /**
  5386. * Get the current PDO connection.
  5387. *
  5388. * @return \PDO
  5389. * @static
  5390. */
  5391. public static function getPdo()
  5392. { //Method inherited from \Illuminate\Database\Connection
  5393. /** @var \Illuminate\Database\MySqlConnection $instance */
  5394. return $instance->getPdo();
  5395. }
  5396. /**
  5397. * Get the current PDO connection parameter without executing any reconnect logic.
  5398. *
  5399. * @return \PDO|\Closure|null
  5400. * @static
  5401. */
  5402. public static function getRawPdo()
  5403. { //Method inherited from \Illuminate\Database\Connection
  5404. /** @var \Illuminate\Database\MySqlConnection $instance */
  5405. return $instance->getRawPdo();
  5406. }
  5407. /**
  5408. * Get the current PDO connection used for reading.
  5409. *
  5410. * @return \PDO
  5411. * @static
  5412. */
  5413. public static function getReadPdo()
  5414. { //Method inherited from \Illuminate\Database\Connection
  5415. /** @var \Illuminate\Database\MySqlConnection $instance */
  5416. return $instance->getReadPdo();
  5417. }
  5418. /**
  5419. * Get the current read PDO connection parameter without executing any reconnect logic.
  5420. *
  5421. * @return \PDO|\Closure|null
  5422. * @static
  5423. */
  5424. public static function getRawReadPdo()
  5425. { //Method inherited from \Illuminate\Database\Connection
  5426. /** @var \Illuminate\Database\MySqlConnection $instance */
  5427. return $instance->getRawReadPdo();
  5428. }
  5429. /**
  5430. * Set the PDO connection.
  5431. *
  5432. * @param \PDO|\Closure|null $pdo
  5433. * @return \Illuminate\Database\MySqlConnection
  5434. * @static
  5435. */
  5436. public static function setPdo($pdo)
  5437. { //Method inherited from \Illuminate\Database\Connection
  5438. /** @var \Illuminate\Database\MySqlConnection $instance */
  5439. return $instance->setPdo($pdo);
  5440. }
  5441. /**
  5442. * Set the PDO connection used for reading.
  5443. *
  5444. * @param \PDO|\Closure|null $pdo
  5445. * @return \Illuminate\Database\MySqlConnection
  5446. * @static
  5447. */
  5448. public static function setReadPdo($pdo)
  5449. { //Method inherited from \Illuminate\Database\Connection
  5450. /** @var \Illuminate\Database\MySqlConnection $instance */
  5451. return $instance->setReadPdo($pdo);
  5452. }
  5453. /**
  5454. * Get the database connection name.
  5455. *
  5456. * @return string|null
  5457. * @static
  5458. */
  5459. public static function getName()
  5460. { //Method inherited from \Illuminate\Database\Connection
  5461. /** @var \Illuminate\Database\MySqlConnection $instance */
  5462. return $instance->getName();
  5463. }
  5464. /**
  5465. * Get the database connection full name.
  5466. *
  5467. * @return string|null
  5468. * @static
  5469. */
  5470. public static function getNameWithReadWriteType()
  5471. { //Method inherited from \Illuminate\Database\Connection
  5472. /** @var \Illuminate\Database\MySqlConnection $instance */
  5473. return $instance->getNameWithReadWriteType();
  5474. }
  5475. /**
  5476. * Get an option from the configuration options.
  5477. *
  5478. * @param string|null $option
  5479. * @return mixed
  5480. * @static
  5481. */
  5482. public static function getConfig($option = null)
  5483. { //Method inherited from \Illuminate\Database\Connection
  5484. /** @var \Illuminate\Database\MySqlConnection $instance */
  5485. return $instance->getConfig($option);
  5486. }
  5487. /**
  5488. * Get the PDO driver name.
  5489. *
  5490. * @return string
  5491. * @static
  5492. */
  5493. public static function getDriverName()
  5494. { //Method inherited from \Illuminate\Database\Connection
  5495. /** @var \Illuminate\Database\MySqlConnection $instance */
  5496. return $instance->getDriverName();
  5497. }
  5498. /**
  5499. * Get the query grammar used by the connection.
  5500. *
  5501. * @return \Illuminate\Database\Query\Grammars\Grammar
  5502. * @static
  5503. */
  5504. public static function getQueryGrammar()
  5505. { //Method inherited from \Illuminate\Database\Connection
  5506. /** @var \Illuminate\Database\MySqlConnection $instance */
  5507. return $instance->getQueryGrammar();
  5508. }
  5509. /**
  5510. * Set the query grammar used by the connection.
  5511. *
  5512. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  5513. * @return \Illuminate\Database\MySqlConnection
  5514. * @static
  5515. */
  5516. public static function setQueryGrammar($grammar)
  5517. { //Method inherited from \Illuminate\Database\Connection
  5518. /** @var \Illuminate\Database\MySqlConnection $instance */
  5519. return $instance->setQueryGrammar($grammar);
  5520. }
  5521. /**
  5522. * Get the schema grammar used by the connection.
  5523. *
  5524. * @return \Illuminate\Database\Schema\Grammars\Grammar
  5525. * @static
  5526. */
  5527. public static function getSchemaGrammar()
  5528. { //Method inherited from \Illuminate\Database\Connection
  5529. /** @var \Illuminate\Database\MySqlConnection $instance */
  5530. return $instance->getSchemaGrammar();
  5531. }
  5532. /**
  5533. * Set the schema grammar used by the connection.
  5534. *
  5535. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  5536. * @return \Illuminate\Database\MySqlConnection
  5537. * @static
  5538. */
  5539. public static function setSchemaGrammar($grammar)
  5540. { //Method inherited from \Illuminate\Database\Connection
  5541. /** @var \Illuminate\Database\MySqlConnection $instance */
  5542. return $instance->setSchemaGrammar($grammar);
  5543. }
  5544. /**
  5545. * Get the query post processor used by the connection.
  5546. *
  5547. * @return \Illuminate\Database\Query\Processors\Processor
  5548. * @static
  5549. */
  5550. public static function getPostProcessor()
  5551. { //Method inherited from \Illuminate\Database\Connection
  5552. /** @var \Illuminate\Database\MySqlConnection $instance */
  5553. return $instance->getPostProcessor();
  5554. }
  5555. /**
  5556. * Set the query post processor used by the connection.
  5557. *
  5558. * @param \Illuminate\Database\Query\Processors\Processor $processor
  5559. * @return \Illuminate\Database\MySqlConnection
  5560. * @static
  5561. */
  5562. public static function setPostProcessor($processor)
  5563. { //Method inherited from \Illuminate\Database\Connection
  5564. /** @var \Illuminate\Database\MySqlConnection $instance */
  5565. return $instance->setPostProcessor($processor);
  5566. }
  5567. /**
  5568. * Get the event dispatcher used by the connection.
  5569. *
  5570. * @return \Illuminate\Contracts\Events\Dispatcher
  5571. * @static
  5572. */
  5573. public static function getEventDispatcher()
  5574. { //Method inherited from \Illuminate\Database\Connection
  5575. /** @var \Illuminate\Database\MySqlConnection $instance */
  5576. return $instance->getEventDispatcher();
  5577. }
  5578. /**
  5579. * Set the event dispatcher instance on the connection.
  5580. *
  5581. * @param \Illuminate\Contracts\Events\Dispatcher $events
  5582. * @return \Illuminate\Database\MySqlConnection
  5583. * @static
  5584. */
  5585. public static function setEventDispatcher($events)
  5586. { //Method inherited from \Illuminate\Database\Connection
  5587. /** @var \Illuminate\Database\MySqlConnection $instance */
  5588. return $instance->setEventDispatcher($events);
  5589. }
  5590. /**
  5591. * Unset the event dispatcher for this connection.
  5592. *
  5593. * @return void
  5594. * @static
  5595. */
  5596. public static function unsetEventDispatcher()
  5597. { //Method inherited from \Illuminate\Database\Connection
  5598. /** @var \Illuminate\Database\MySqlConnection $instance */
  5599. $instance->unsetEventDispatcher();
  5600. }
  5601. /**
  5602. * Set the transaction manager instance on the connection.
  5603. *
  5604. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  5605. * @return \Illuminate\Database\MySqlConnection
  5606. * @static
  5607. */
  5608. public static function setTransactionManager($manager)
  5609. { //Method inherited from \Illuminate\Database\Connection
  5610. /** @var \Illuminate\Database\MySqlConnection $instance */
  5611. return $instance->setTransactionManager($manager);
  5612. }
  5613. /**
  5614. * Unset the transaction manager for this connection.
  5615. *
  5616. * @return void
  5617. * @static
  5618. */
  5619. public static function unsetTransactionManager()
  5620. { //Method inherited from \Illuminate\Database\Connection
  5621. /** @var \Illuminate\Database\MySqlConnection $instance */
  5622. $instance->unsetTransactionManager();
  5623. }
  5624. /**
  5625. * Determine if the connection is in a "dry run".
  5626. *
  5627. * @return bool
  5628. * @static
  5629. */
  5630. public static function pretending()
  5631. { //Method inherited from \Illuminate\Database\Connection
  5632. /** @var \Illuminate\Database\MySqlConnection $instance */
  5633. return $instance->pretending();
  5634. }
  5635. /**
  5636. * Get the connection query log.
  5637. *
  5638. * @return array
  5639. * @static
  5640. */
  5641. public static function getQueryLog()
  5642. { //Method inherited from \Illuminate\Database\Connection
  5643. /** @var \Illuminate\Database\MySqlConnection $instance */
  5644. return $instance->getQueryLog();
  5645. }
  5646. /**
  5647. * Clear the query log.
  5648. *
  5649. * @return void
  5650. * @static
  5651. */
  5652. public static function flushQueryLog()
  5653. { //Method inherited from \Illuminate\Database\Connection
  5654. /** @var \Illuminate\Database\MySqlConnection $instance */
  5655. $instance->flushQueryLog();
  5656. }
  5657. /**
  5658. * Enable the query log on the connection.
  5659. *
  5660. * @return void
  5661. * @static
  5662. */
  5663. public static function enableQueryLog()
  5664. { //Method inherited from \Illuminate\Database\Connection
  5665. /** @var \Illuminate\Database\MySqlConnection $instance */
  5666. $instance->enableQueryLog();
  5667. }
  5668. /**
  5669. * Disable the query log on the connection.
  5670. *
  5671. * @return void
  5672. * @static
  5673. */
  5674. public static function disableQueryLog()
  5675. { //Method inherited from \Illuminate\Database\Connection
  5676. /** @var \Illuminate\Database\MySqlConnection $instance */
  5677. $instance->disableQueryLog();
  5678. }
  5679. /**
  5680. * Determine whether we're logging queries.
  5681. *
  5682. * @return bool
  5683. * @static
  5684. */
  5685. public static function logging()
  5686. { //Method inherited from \Illuminate\Database\Connection
  5687. /** @var \Illuminate\Database\MySqlConnection $instance */
  5688. return $instance->logging();
  5689. }
  5690. /**
  5691. * Get the name of the connected database.
  5692. *
  5693. * @return string
  5694. * @static
  5695. */
  5696. public static function getDatabaseName()
  5697. { //Method inherited from \Illuminate\Database\Connection
  5698. /** @var \Illuminate\Database\MySqlConnection $instance */
  5699. return $instance->getDatabaseName();
  5700. }
  5701. /**
  5702. * Set the name of the connected database.
  5703. *
  5704. * @param string $database
  5705. * @return \Illuminate\Database\MySqlConnection
  5706. * @static
  5707. */
  5708. public static function setDatabaseName($database)
  5709. { //Method inherited from \Illuminate\Database\Connection
  5710. /** @var \Illuminate\Database\MySqlConnection $instance */
  5711. return $instance->setDatabaseName($database);
  5712. }
  5713. /**
  5714. * Set the read / write type of the connection.
  5715. *
  5716. * @param string|null $readWriteType
  5717. * @return \Illuminate\Database\MySqlConnection
  5718. * @static
  5719. */
  5720. public static function setReadWriteType($readWriteType)
  5721. { //Method inherited from \Illuminate\Database\Connection
  5722. /** @var \Illuminate\Database\MySqlConnection $instance */
  5723. return $instance->setReadWriteType($readWriteType);
  5724. }
  5725. /**
  5726. * Get the table prefix for the connection.
  5727. *
  5728. * @return string
  5729. * @static
  5730. */
  5731. public static function getTablePrefix()
  5732. { //Method inherited from \Illuminate\Database\Connection
  5733. /** @var \Illuminate\Database\MySqlConnection $instance */
  5734. return $instance->getTablePrefix();
  5735. }
  5736. /**
  5737. * Set the table prefix in use by the connection.
  5738. *
  5739. * @param string $prefix
  5740. * @return \Illuminate\Database\MySqlConnection
  5741. * @static
  5742. */
  5743. public static function setTablePrefix($prefix)
  5744. { //Method inherited from \Illuminate\Database\Connection
  5745. /** @var \Illuminate\Database\MySqlConnection $instance */
  5746. return $instance->setTablePrefix($prefix);
  5747. }
  5748. /**
  5749. * Set the table prefix and return the grammar.
  5750. *
  5751. * @param \Illuminate\Database\Grammar $grammar
  5752. * @return \Illuminate\Database\Grammar
  5753. * @static
  5754. */
  5755. public static function withTablePrefix($grammar)
  5756. { //Method inherited from \Illuminate\Database\Connection
  5757. /** @var \Illuminate\Database\MySqlConnection $instance */
  5758. return $instance->withTablePrefix($grammar);
  5759. }
  5760. /**
  5761. * Register a connection resolver.
  5762. *
  5763. * @param string $driver
  5764. * @param \Closure $callback
  5765. * @return void
  5766. * @static
  5767. */
  5768. public static function resolverFor($driver, $callback)
  5769. { //Method inherited from \Illuminate\Database\Connection
  5770. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  5771. }
  5772. /**
  5773. * Get the connection resolver for the given driver.
  5774. *
  5775. * @param string $driver
  5776. * @return mixed
  5777. * @static
  5778. */
  5779. public static function getResolver($driver)
  5780. { //Method inherited from \Illuminate\Database\Connection
  5781. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  5782. }
  5783. /**
  5784. * Execute a Closure within a transaction.
  5785. *
  5786. * @param \Closure $callback
  5787. * @param int $attempts
  5788. * @return mixed
  5789. * @throws \Throwable
  5790. * @static
  5791. */
  5792. public static function transaction($callback, $attempts = 1)
  5793. { //Method inherited from \Illuminate\Database\Connection
  5794. /** @var \Illuminate\Database\MySqlConnection $instance */
  5795. return $instance->transaction($callback, $attempts);
  5796. }
  5797. /**
  5798. * Start a new database transaction.
  5799. *
  5800. * @return void
  5801. * @throws \Throwable
  5802. * @static
  5803. */
  5804. public static function beginTransaction()
  5805. { //Method inherited from \Illuminate\Database\Connection
  5806. /** @var \Illuminate\Database\MySqlConnection $instance */
  5807. $instance->beginTransaction();
  5808. }
  5809. /**
  5810. * Commit the active database transaction.
  5811. *
  5812. * @return void
  5813. * @throws \Throwable
  5814. * @static
  5815. */
  5816. public static function commit()
  5817. { //Method inherited from \Illuminate\Database\Connection
  5818. /** @var \Illuminate\Database\MySqlConnection $instance */
  5819. $instance->commit();
  5820. }
  5821. /**
  5822. * Rollback the active database transaction.
  5823. *
  5824. * @param int|null $toLevel
  5825. * @return void
  5826. * @throws \Throwable
  5827. * @static
  5828. */
  5829. public static function rollBack($toLevel = null)
  5830. { //Method inherited from \Illuminate\Database\Connection
  5831. /** @var \Illuminate\Database\MySqlConnection $instance */
  5832. $instance->rollBack($toLevel);
  5833. }
  5834. /**
  5835. * Get the number of active transactions.
  5836. *
  5837. * @return int
  5838. * @static
  5839. */
  5840. public static function transactionLevel()
  5841. { //Method inherited from \Illuminate\Database\Connection
  5842. /** @var \Illuminate\Database\MySqlConnection $instance */
  5843. return $instance->transactionLevel();
  5844. }
  5845. /**
  5846. * Execute the callback after a transaction commits.
  5847. *
  5848. * @param callable $callback
  5849. * @return void
  5850. * @throws \RuntimeException
  5851. * @static
  5852. */
  5853. public static function afterCommit($callback)
  5854. { //Method inherited from \Illuminate\Database\Connection
  5855. /** @var \Illuminate\Database\MySqlConnection $instance */
  5856. $instance->afterCommit($callback);
  5857. }
  5858. }
  5859. /**
  5860. *
  5861. *
  5862. * @see \Illuminate\Events\Dispatcher
  5863. */
  5864. class Event {
  5865. /**
  5866. * Register an event listener with the dispatcher.
  5867. *
  5868. * @param \Closure|string|array $events
  5869. * @param \Closure|string|array|null $listener
  5870. * @return void
  5871. * @static
  5872. */
  5873. public static function listen($events, $listener = null)
  5874. {
  5875. /** @var \Illuminate\Events\Dispatcher $instance */
  5876. $instance->listen($events, $listener);
  5877. }
  5878. /**
  5879. * Determine if a given event has listeners.
  5880. *
  5881. * @param string $eventName
  5882. * @return bool
  5883. * @static
  5884. */
  5885. public static function hasListeners($eventName)
  5886. {
  5887. /** @var \Illuminate\Events\Dispatcher $instance */
  5888. return $instance->hasListeners($eventName);
  5889. }
  5890. /**
  5891. * Determine if the given event has any wildcard listeners.
  5892. *
  5893. * @param string $eventName
  5894. * @return bool
  5895. * @static
  5896. */
  5897. public static function hasWildcardListeners($eventName)
  5898. {
  5899. /** @var \Illuminate\Events\Dispatcher $instance */
  5900. return $instance->hasWildcardListeners($eventName);
  5901. }
  5902. /**
  5903. * Register an event and payload to be fired later.
  5904. *
  5905. * @param string $event
  5906. * @param object|array $payload
  5907. * @return void
  5908. * @static
  5909. */
  5910. public static function push($event, $payload = [])
  5911. {
  5912. /** @var \Illuminate\Events\Dispatcher $instance */
  5913. $instance->push($event, $payload);
  5914. }
  5915. /**
  5916. * Flush a set of pushed events.
  5917. *
  5918. * @param string $event
  5919. * @return void
  5920. * @static
  5921. */
  5922. public static function flush($event)
  5923. {
  5924. /** @var \Illuminate\Events\Dispatcher $instance */
  5925. $instance->flush($event);
  5926. }
  5927. /**
  5928. * Register an event subscriber with the dispatcher.
  5929. *
  5930. * @param object|string $subscriber
  5931. * @return void
  5932. * @static
  5933. */
  5934. public static function subscribe($subscriber)
  5935. {
  5936. /** @var \Illuminate\Events\Dispatcher $instance */
  5937. $instance->subscribe($subscriber);
  5938. }
  5939. /**
  5940. * Fire an event until the first non-null response is returned.
  5941. *
  5942. * @param string|object $event
  5943. * @param mixed $payload
  5944. * @return array|null
  5945. * @static
  5946. */
  5947. public static function until($event, $payload = [])
  5948. {
  5949. /** @var \Illuminate\Events\Dispatcher $instance */
  5950. return $instance->until($event, $payload);
  5951. }
  5952. /**
  5953. * Fire an event and call the listeners.
  5954. *
  5955. * @param string|object $event
  5956. * @param mixed $payload
  5957. * @param bool $halt
  5958. * @return array|null
  5959. * @static
  5960. */
  5961. public static function dispatch($event, $payload = [], $halt = false)
  5962. {
  5963. /** @var \Illuminate\Events\Dispatcher $instance */
  5964. return $instance->dispatch($event, $payload, $halt);
  5965. }
  5966. /**
  5967. * Get all of the listeners for a given event name.
  5968. *
  5969. * @param string $eventName
  5970. * @return array
  5971. * @static
  5972. */
  5973. public static function getListeners($eventName)
  5974. {
  5975. /** @var \Illuminate\Events\Dispatcher $instance */
  5976. return $instance->getListeners($eventName);
  5977. }
  5978. /**
  5979. * Register an event listener with the dispatcher.
  5980. *
  5981. * @param \Closure|string|array $listener
  5982. * @param bool $wildcard
  5983. * @return \Closure
  5984. * @static
  5985. */
  5986. public static function makeListener($listener, $wildcard = false)
  5987. {
  5988. /** @var \Illuminate\Events\Dispatcher $instance */
  5989. return $instance->makeListener($listener, $wildcard);
  5990. }
  5991. /**
  5992. * Create a class based listener using the IoC container.
  5993. *
  5994. * @param string $listener
  5995. * @param bool $wildcard
  5996. * @return \Closure
  5997. * @static
  5998. */
  5999. public static function createClassListener($listener, $wildcard = false)
  6000. {
  6001. /** @var \Illuminate\Events\Dispatcher $instance */
  6002. return $instance->createClassListener($listener, $wildcard);
  6003. }
  6004. /**
  6005. * Remove a set of listeners from the dispatcher.
  6006. *
  6007. * @param string $event
  6008. * @return void
  6009. * @static
  6010. */
  6011. public static function forget($event)
  6012. {
  6013. /** @var \Illuminate\Events\Dispatcher $instance */
  6014. $instance->forget($event);
  6015. }
  6016. /**
  6017. * Forget all of the pushed listeners.
  6018. *
  6019. * @return void
  6020. * @static
  6021. */
  6022. public static function forgetPushed()
  6023. {
  6024. /** @var \Illuminate\Events\Dispatcher $instance */
  6025. $instance->forgetPushed();
  6026. }
  6027. /**
  6028. * Set the queue resolver implementation.
  6029. *
  6030. * @param callable $resolver
  6031. * @return \Illuminate\Events\Dispatcher
  6032. * @static
  6033. */
  6034. public static function setQueueResolver($resolver)
  6035. {
  6036. /** @var \Illuminate\Events\Dispatcher $instance */
  6037. return $instance->setQueueResolver($resolver);
  6038. }
  6039. /**
  6040. * Gets the raw, unprepared listeners.
  6041. *
  6042. * @return array
  6043. * @static
  6044. */
  6045. public static function getRawListeners()
  6046. {
  6047. /** @var \Illuminate\Events\Dispatcher $instance */
  6048. return $instance->getRawListeners();
  6049. }
  6050. /**
  6051. * Register a custom macro.
  6052. *
  6053. * @param string $name
  6054. * @param object|callable $macro
  6055. * @return void
  6056. * @static
  6057. */
  6058. public static function macro($name, $macro)
  6059. {
  6060. \Illuminate\Events\Dispatcher::macro($name, $macro);
  6061. }
  6062. /**
  6063. * Mix another object into the class.
  6064. *
  6065. * @param object $mixin
  6066. * @param bool $replace
  6067. * @return void
  6068. * @throws \ReflectionException
  6069. * @static
  6070. */
  6071. public static function mixin($mixin, $replace = true)
  6072. {
  6073. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  6074. }
  6075. /**
  6076. * Checks if macro is registered.
  6077. *
  6078. * @param string $name
  6079. * @return bool
  6080. * @static
  6081. */
  6082. public static function hasMacro($name)
  6083. {
  6084. return \Illuminate\Events\Dispatcher::hasMacro($name);
  6085. }
  6086. /**
  6087. * Flush the existing macros.
  6088. *
  6089. * @return void
  6090. * @static
  6091. */
  6092. public static function flushMacros()
  6093. {
  6094. \Illuminate\Events\Dispatcher::flushMacros();
  6095. }
  6096. /**
  6097. * Assert if an event has a listener attached to it.
  6098. *
  6099. * @param string $expectedEvent
  6100. * @param string|array $expectedListener
  6101. * @return void
  6102. * @static
  6103. */
  6104. public static function assertListening($expectedEvent, $expectedListener)
  6105. {
  6106. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6107. $instance->assertListening($expectedEvent, $expectedListener);
  6108. }
  6109. /**
  6110. * Assert if an event was dispatched based on a truth-test callback.
  6111. *
  6112. * @param string|\Closure $event
  6113. * @param callable|int|null $callback
  6114. * @return void
  6115. * @static
  6116. */
  6117. public static function assertDispatched($event, $callback = null)
  6118. {
  6119. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6120. $instance->assertDispatched($event, $callback);
  6121. }
  6122. /**
  6123. * Assert if an event was dispatched a number of times.
  6124. *
  6125. * @param string $event
  6126. * @param int $times
  6127. * @return void
  6128. * @static
  6129. */
  6130. public static function assertDispatchedTimes($event, $times = 1)
  6131. {
  6132. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6133. $instance->assertDispatchedTimes($event, $times);
  6134. }
  6135. /**
  6136. * Determine if an event was dispatched based on a truth-test callback.
  6137. *
  6138. * @param string|\Closure $event
  6139. * @param callable|null $callback
  6140. * @return void
  6141. * @static
  6142. */
  6143. public static function assertNotDispatched($event, $callback = null)
  6144. {
  6145. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6146. $instance->assertNotDispatched($event, $callback);
  6147. }
  6148. /**
  6149. * Assert that no events were dispatched.
  6150. *
  6151. * @return void
  6152. * @static
  6153. */
  6154. public static function assertNothingDispatched()
  6155. {
  6156. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6157. $instance->assertNothingDispatched();
  6158. }
  6159. /**
  6160. * Get all of the events matching a truth-test callback.
  6161. *
  6162. * @param string $event
  6163. * @param callable|null $callback
  6164. * @return \Illuminate\Support\Collection
  6165. * @static
  6166. */
  6167. public static function dispatched($event, $callback = null)
  6168. {
  6169. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6170. return $instance->dispatched($event, $callback);
  6171. }
  6172. /**
  6173. * Determine if the given event has been dispatched.
  6174. *
  6175. * @param string $event
  6176. * @return bool
  6177. * @static
  6178. */
  6179. public static function hasDispatched($event)
  6180. {
  6181. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  6182. return $instance->hasDispatched($event);
  6183. }
  6184. }
  6185. /**
  6186. *
  6187. *
  6188. * @see \Illuminate\Filesystem\Filesystem
  6189. */
  6190. class File {
  6191. /**
  6192. * Determine if a file or directory exists.
  6193. *
  6194. * @param string $path
  6195. * @return bool
  6196. * @static
  6197. */
  6198. public static function exists($path)
  6199. {
  6200. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6201. return $instance->exists($path);
  6202. }
  6203. /**
  6204. * Determine if a file or directory is missing.
  6205. *
  6206. * @param string $path
  6207. * @return bool
  6208. * @static
  6209. */
  6210. public static function missing($path)
  6211. {
  6212. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6213. return $instance->missing($path);
  6214. }
  6215. /**
  6216. * Get the contents of a file.
  6217. *
  6218. * @param string $path
  6219. * @param bool $lock
  6220. * @return string
  6221. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6222. * @static
  6223. */
  6224. public static function get($path, $lock = false)
  6225. {
  6226. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6227. return $instance->get($path, $lock);
  6228. }
  6229. /**
  6230. * Get contents of a file with shared access.
  6231. *
  6232. * @param string $path
  6233. * @return string
  6234. * @static
  6235. */
  6236. public static function sharedGet($path)
  6237. {
  6238. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6239. return $instance->sharedGet($path);
  6240. }
  6241. /**
  6242. * Get the returned value of a file.
  6243. *
  6244. * @param string $path
  6245. * @param array $data
  6246. * @return mixed
  6247. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6248. * @static
  6249. */
  6250. public static function getRequire($path, $data = [])
  6251. {
  6252. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6253. return $instance->getRequire($path, $data);
  6254. }
  6255. /**
  6256. * Require the given file once.
  6257. *
  6258. * @param string $path
  6259. * @param array $data
  6260. * @return mixed
  6261. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6262. * @static
  6263. */
  6264. public static function requireOnce($path, $data = [])
  6265. {
  6266. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6267. return $instance->requireOnce($path, $data);
  6268. }
  6269. /**
  6270. * Get the contents of a file one line at a time.
  6271. *
  6272. * @param string $path
  6273. * @return \Illuminate\Support\LazyCollection
  6274. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  6275. * @static
  6276. */
  6277. public static function lines($path)
  6278. {
  6279. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6280. return $instance->lines($path);
  6281. }
  6282. /**
  6283. * Get the MD5 hash of the file at the given path.
  6284. *
  6285. * @param string $path
  6286. * @return string
  6287. * @static
  6288. */
  6289. public static function hash($path)
  6290. {
  6291. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6292. return $instance->hash($path);
  6293. }
  6294. /**
  6295. * Write the contents of a file.
  6296. *
  6297. * @param string $path
  6298. * @param string $contents
  6299. * @param bool $lock
  6300. * @return int|bool
  6301. * @static
  6302. */
  6303. public static function put($path, $contents, $lock = false)
  6304. {
  6305. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6306. return $instance->put($path, $contents, $lock);
  6307. }
  6308. /**
  6309. * Write the contents of a file, replacing it atomically if it already exists.
  6310. *
  6311. * @param string $path
  6312. * @param string $content
  6313. * @return void
  6314. * @static
  6315. */
  6316. public static function replace($path, $content)
  6317. {
  6318. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6319. $instance->replace($path, $content);
  6320. }
  6321. /**
  6322. * Replace a given string within a given file.
  6323. *
  6324. * @param array|string $search
  6325. * @param array|string $replace
  6326. * @param string $path
  6327. * @return void
  6328. * @static
  6329. */
  6330. public static function replaceInFile($search, $replace, $path)
  6331. {
  6332. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6333. $instance->replaceInFile($search, $replace, $path);
  6334. }
  6335. /**
  6336. * Prepend to a file.
  6337. *
  6338. * @param string $path
  6339. * @param string $data
  6340. * @return int
  6341. * @static
  6342. */
  6343. public static function prepend($path, $data)
  6344. {
  6345. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6346. return $instance->prepend($path, $data);
  6347. }
  6348. /**
  6349. * Append to a file.
  6350. *
  6351. * @param string $path
  6352. * @param string $data
  6353. * @return int
  6354. * @static
  6355. */
  6356. public static function append($path, $data)
  6357. {
  6358. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6359. return $instance->append($path, $data);
  6360. }
  6361. /**
  6362. * Get or set UNIX mode of a file or directory.
  6363. *
  6364. * @param string $path
  6365. * @param int|null $mode
  6366. * @return mixed
  6367. * @static
  6368. */
  6369. public static function chmod($path, $mode = null)
  6370. {
  6371. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6372. return $instance->chmod($path, $mode);
  6373. }
  6374. /**
  6375. * Delete the file at a given path.
  6376. *
  6377. * @param string|array $paths
  6378. * @return bool
  6379. * @static
  6380. */
  6381. public static function delete($paths)
  6382. {
  6383. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6384. return $instance->delete($paths);
  6385. }
  6386. /**
  6387. * Move a file to a new location.
  6388. *
  6389. * @param string $path
  6390. * @param string $target
  6391. * @return bool
  6392. * @static
  6393. */
  6394. public static function move($path, $target)
  6395. {
  6396. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6397. return $instance->move($path, $target);
  6398. }
  6399. /**
  6400. * Copy a file to a new location.
  6401. *
  6402. * @param string $path
  6403. * @param string $target
  6404. * @return bool
  6405. * @static
  6406. */
  6407. public static function copy($path, $target)
  6408. {
  6409. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6410. return $instance->copy($path, $target);
  6411. }
  6412. /**
  6413. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  6414. *
  6415. * @param string $target
  6416. * @param string $link
  6417. * @return void
  6418. * @static
  6419. */
  6420. public static function link($target, $link)
  6421. {
  6422. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6423. $instance->link($target, $link);
  6424. }
  6425. /**
  6426. * Create a relative symlink to the target file or directory.
  6427. *
  6428. * @param string $target
  6429. * @param string $link
  6430. * @return void
  6431. * @throws \RuntimeException
  6432. * @static
  6433. */
  6434. public static function relativeLink($target, $link)
  6435. {
  6436. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6437. $instance->relativeLink($target, $link);
  6438. }
  6439. /**
  6440. * Extract the file name from a file path.
  6441. *
  6442. * @param string $path
  6443. * @return string
  6444. * @static
  6445. */
  6446. public static function name($path)
  6447. {
  6448. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6449. return $instance->name($path);
  6450. }
  6451. /**
  6452. * Extract the trailing name component from a file path.
  6453. *
  6454. * @param string $path
  6455. * @return string
  6456. * @static
  6457. */
  6458. public static function basename($path)
  6459. {
  6460. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6461. return $instance->basename($path);
  6462. }
  6463. /**
  6464. * Extract the parent directory from a file path.
  6465. *
  6466. * @param string $path
  6467. * @return string
  6468. * @static
  6469. */
  6470. public static function dirname($path)
  6471. {
  6472. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6473. return $instance->dirname($path);
  6474. }
  6475. /**
  6476. * Extract the file extension from a file path.
  6477. *
  6478. * @param string $path
  6479. * @return string
  6480. * @static
  6481. */
  6482. public static function extension($path)
  6483. {
  6484. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6485. return $instance->extension($path);
  6486. }
  6487. /**
  6488. * Guess the file extension from the mime-type of a given file.
  6489. *
  6490. * @param string $path
  6491. * @return string|null
  6492. * @throws \RuntimeException
  6493. * @static
  6494. */
  6495. public static function guessExtension($path)
  6496. {
  6497. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6498. return $instance->guessExtension($path);
  6499. }
  6500. /**
  6501. * Get the file type of a given file.
  6502. *
  6503. * @param string $path
  6504. * @return string
  6505. * @static
  6506. */
  6507. public static function type($path)
  6508. {
  6509. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6510. return $instance->type($path);
  6511. }
  6512. /**
  6513. * Get the mime-type of a given file.
  6514. *
  6515. * @param string $path
  6516. * @return string|false
  6517. * @static
  6518. */
  6519. public static function mimeType($path)
  6520. {
  6521. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6522. return $instance->mimeType($path);
  6523. }
  6524. /**
  6525. * Get the file size of a given file.
  6526. *
  6527. * @param string $path
  6528. * @return int
  6529. * @static
  6530. */
  6531. public static function size($path)
  6532. {
  6533. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6534. return $instance->size($path);
  6535. }
  6536. /**
  6537. * Get the file's last modification time.
  6538. *
  6539. * @param string $path
  6540. * @return int
  6541. * @static
  6542. */
  6543. public static function lastModified($path)
  6544. {
  6545. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6546. return $instance->lastModified($path);
  6547. }
  6548. /**
  6549. * Determine if the given path is a directory.
  6550. *
  6551. * @param string $directory
  6552. * @return bool
  6553. * @static
  6554. */
  6555. public static function isDirectory($directory)
  6556. {
  6557. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6558. return $instance->isDirectory($directory);
  6559. }
  6560. /**
  6561. * Determine if the given path is a directory that does not contain any other files or directories.
  6562. *
  6563. * @param string $directory
  6564. * @param bool $ignoreDotFiles
  6565. * @return bool
  6566. * @static
  6567. */
  6568. public static function isEmptyDirectory($directory, $ignoreDotFiles = false)
  6569. {
  6570. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6571. return $instance->isEmptyDirectory($directory, $ignoreDotFiles);
  6572. }
  6573. /**
  6574. * Determine if the given path is readable.
  6575. *
  6576. * @param string $path
  6577. * @return bool
  6578. * @static
  6579. */
  6580. public static function isReadable($path)
  6581. {
  6582. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6583. return $instance->isReadable($path);
  6584. }
  6585. /**
  6586. * Determine if the given path is writable.
  6587. *
  6588. * @param string $path
  6589. * @return bool
  6590. * @static
  6591. */
  6592. public static function isWritable($path)
  6593. {
  6594. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6595. return $instance->isWritable($path);
  6596. }
  6597. /**
  6598. * Determine if two files are the same by comparing their hashes.
  6599. *
  6600. * @param string $firstFile
  6601. * @param string $secondFile
  6602. * @return bool
  6603. * @static
  6604. */
  6605. public static function hasSameHash($firstFile, $secondFile)
  6606. {
  6607. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6608. return $instance->hasSameHash($firstFile, $secondFile);
  6609. }
  6610. /**
  6611. * Determine if the given path is a file.
  6612. *
  6613. * @param string $file
  6614. * @return bool
  6615. * @static
  6616. */
  6617. public static function isFile($file)
  6618. {
  6619. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6620. return $instance->isFile($file);
  6621. }
  6622. /**
  6623. * Find path names matching a given pattern.
  6624. *
  6625. * @param string $pattern
  6626. * @param int $flags
  6627. * @return array
  6628. * @static
  6629. */
  6630. public static function glob($pattern, $flags = 0)
  6631. {
  6632. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6633. return $instance->glob($pattern, $flags);
  6634. }
  6635. /**
  6636. * Get an array of all files in a directory.
  6637. *
  6638. * @param string $directory
  6639. * @param bool $hidden
  6640. * @return \Symfony\Component\Finder\SplFileInfo[]
  6641. * @static
  6642. */
  6643. public static function files($directory, $hidden = false)
  6644. {
  6645. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6646. return $instance->files($directory, $hidden);
  6647. }
  6648. /**
  6649. * Get all of the files from the given directory (recursive).
  6650. *
  6651. * @param string $directory
  6652. * @param bool $hidden
  6653. * @return \Symfony\Component\Finder\SplFileInfo[]
  6654. * @static
  6655. */
  6656. public static function allFiles($directory, $hidden = false)
  6657. {
  6658. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6659. return $instance->allFiles($directory, $hidden);
  6660. }
  6661. /**
  6662. * Get all of the directories within a given directory.
  6663. *
  6664. * @param string $directory
  6665. * @return array
  6666. * @static
  6667. */
  6668. public static function directories($directory)
  6669. {
  6670. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6671. return $instance->directories($directory);
  6672. }
  6673. /**
  6674. * Ensure a directory exists.
  6675. *
  6676. * @param string $path
  6677. * @param int $mode
  6678. * @param bool $recursive
  6679. * @return void
  6680. * @static
  6681. */
  6682. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  6683. {
  6684. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6685. $instance->ensureDirectoryExists($path, $mode, $recursive);
  6686. }
  6687. /**
  6688. * Create a directory.
  6689. *
  6690. * @param string $path
  6691. * @param int $mode
  6692. * @param bool $recursive
  6693. * @param bool $force
  6694. * @return bool
  6695. * @static
  6696. */
  6697. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  6698. {
  6699. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6700. return $instance->makeDirectory($path, $mode, $recursive, $force);
  6701. }
  6702. /**
  6703. * Move a directory.
  6704. *
  6705. * @param string $from
  6706. * @param string $to
  6707. * @param bool $overwrite
  6708. * @return bool
  6709. * @static
  6710. */
  6711. public static function moveDirectory($from, $to, $overwrite = false)
  6712. {
  6713. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6714. return $instance->moveDirectory($from, $to, $overwrite);
  6715. }
  6716. /**
  6717. * Copy a directory from one location to another.
  6718. *
  6719. * @param string $directory
  6720. * @param string $destination
  6721. * @param int|null $options
  6722. * @return bool
  6723. * @static
  6724. */
  6725. public static function copyDirectory($directory, $destination, $options = null)
  6726. {
  6727. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6728. return $instance->copyDirectory($directory, $destination, $options);
  6729. }
  6730. /**
  6731. * Recursively delete a directory.
  6732. *
  6733. * The directory itself may be optionally preserved.
  6734. *
  6735. * @param string $directory
  6736. * @param bool $preserve
  6737. * @return bool
  6738. * @static
  6739. */
  6740. public static function deleteDirectory($directory, $preserve = false)
  6741. {
  6742. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6743. return $instance->deleteDirectory($directory, $preserve);
  6744. }
  6745. /**
  6746. * Remove all of the directories within a given directory.
  6747. *
  6748. * @param string $directory
  6749. * @return bool
  6750. * @static
  6751. */
  6752. public static function deleteDirectories($directory)
  6753. {
  6754. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6755. return $instance->deleteDirectories($directory);
  6756. }
  6757. /**
  6758. * Empty the specified directory of all files and folders.
  6759. *
  6760. * @param string $directory
  6761. * @return bool
  6762. * @static
  6763. */
  6764. public static function cleanDirectory($directory)
  6765. {
  6766. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6767. return $instance->cleanDirectory($directory);
  6768. }
  6769. /**
  6770. * Register a custom macro.
  6771. *
  6772. * @param string $name
  6773. * @param object|callable $macro
  6774. * @return void
  6775. * @static
  6776. */
  6777. public static function macro($name, $macro)
  6778. {
  6779. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  6780. }
  6781. /**
  6782. * Mix another object into the class.
  6783. *
  6784. * @param object $mixin
  6785. * @param bool $replace
  6786. * @return void
  6787. * @throws \ReflectionException
  6788. * @static
  6789. */
  6790. public static function mixin($mixin, $replace = true)
  6791. {
  6792. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  6793. }
  6794. /**
  6795. * Checks if macro is registered.
  6796. *
  6797. * @param string $name
  6798. * @return bool
  6799. * @static
  6800. */
  6801. public static function hasMacro($name)
  6802. {
  6803. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  6804. }
  6805. /**
  6806. * Flush the existing macros.
  6807. *
  6808. * @return void
  6809. * @static
  6810. */
  6811. public static function flushMacros()
  6812. {
  6813. \Illuminate\Filesystem\Filesystem::flushMacros();
  6814. }
  6815. }
  6816. /**
  6817. *
  6818. *
  6819. * @see \Illuminate\Contracts\Auth\Access\Gate
  6820. */
  6821. class Gate {
  6822. /**
  6823. * Determine if a given ability has been defined.
  6824. *
  6825. * @param string|array $ability
  6826. * @return bool
  6827. * @static
  6828. */
  6829. public static function has($ability)
  6830. {
  6831. /** @var \Illuminate\Auth\Access\Gate $instance */
  6832. return $instance->has($ability);
  6833. }
  6834. /**
  6835. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
  6836. *
  6837. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  6838. * @param string|null $message
  6839. * @param string|null $code
  6840. * @return \Illuminate\Auth\Access\Response
  6841. * @throws \Illuminate\Auth\Access\AuthorizationException
  6842. * @static
  6843. */
  6844. public static function allowIf($condition, $message = null, $code = null)
  6845. {
  6846. /** @var \Illuminate\Auth\Access\Gate $instance */
  6847. return $instance->allowIf($condition, $message, $code);
  6848. }
  6849. /**
  6850. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
  6851. *
  6852. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  6853. * @param string|null $message
  6854. * @param string|null $code
  6855. * @return \Illuminate\Auth\Access\Response
  6856. * @throws \Illuminate\Auth\Access\AuthorizationException
  6857. * @static
  6858. */
  6859. public static function denyIf($condition, $message = null, $code = null)
  6860. {
  6861. /** @var \Illuminate\Auth\Access\Gate $instance */
  6862. return $instance->denyIf($condition, $message, $code);
  6863. }
  6864. /**
  6865. * Define a new ability.
  6866. *
  6867. * @param string $ability
  6868. * @param callable|array|string $callback
  6869. * @return \Illuminate\Auth\Access\Gate
  6870. * @throws \InvalidArgumentException
  6871. * @static
  6872. */
  6873. public static function define($ability, $callback)
  6874. {
  6875. /** @var \Illuminate\Auth\Access\Gate $instance */
  6876. return $instance->define($ability, $callback);
  6877. }
  6878. /**
  6879. * Define abilities for a resource.
  6880. *
  6881. * @param string $name
  6882. * @param string $class
  6883. * @param array|null $abilities
  6884. * @return \Illuminate\Auth\Access\Gate
  6885. * @static
  6886. */
  6887. public static function resource($name, $class, $abilities = null)
  6888. {
  6889. /** @var \Illuminate\Auth\Access\Gate $instance */
  6890. return $instance->resource($name, $class, $abilities);
  6891. }
  6892. /**
  6893. * Define a policy class for a given class type.
  6894. *
  6895. * @param string $class
  6896. * @param string $policy
  6897. * @return \Illuminate\Auth\Access\Gate
  6898. * @static
  6899. */
  6900. public static function policy($class, $policy)
  6901. {
  6902. /** @var \Illuminate\Auth\Access\Gate $instance */
  6903. return $instance->policy($class, $policy);
  6904. }
  6905. /**
  6906. * Register a callback to run before all Gate checks.
  6907. *
  6908. * @param callable $callback
  6909. * @return \Illuminate\Auth\Access\Gate
  6910. * @static
  6911. */
  6912. public static function before($callback)
  6913. {
  6914. /** @var \Illuminate\Auth\Access\Gate $instance */
  6915. return $instance->before($callback);
  6916. }
  6917. /**
  6918. * Register a callback to run after all Gate checks.
  6919. *
  6920. * @param callable $callback
  6921. * @return \Illuminate\Auth\Access\Gate
  6922. * @static
  6923. */
  6924. public static function after($callback)
  6925. {
  6926. /** @var \Illuminate\Auth\Access\Gate $instance */
  6927. return $instance->after($callback);
  6928. }
  6929. /**
  6930. * Determine if the given ability should be granted for the current user.
  6931. *
  6932. * @param string $ability
  6933. * @param array|mixed $arguments
  6934. * @return bool
  6935. * @static
  6936. */
  6937. public static function allows($ability, $arguments = [])
  6938. {
  6939. /** @var \Illuminate\Auth\Access\Gate $instance */
  6940. return $instance->allows($ability, $arguments);
  6941. }
  6942. /**
  6943. * Determine if the given ability should be denied for the current user.
  6944. *
  6945. * @param string $ability
  6946. * @param array|mixed $arguments
  6947. * @return bool
  6948. * @static
  6949. */
  6950. public static function denies($ability, $arguments = [])
  6951. {
  6952. /** @var \Illuminate\Auth\Access\Gate $instance */
  6953. return $instance->denies($ability, $arguments);
  6954. }
  6955. /**
  6956. * Determine if all of the given abilities should be granted for the current user.
  6957. *
  6958. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6959. * @param array|mixed $arguments
  6960. * @return bool
  6961. * @static
  6962. */
  6963. public static function check($abilities, $arguments = [])
  6964. {
  6965. /** @var \Illuminate\Auth\Access\Gate $instance */
  6966. return $instance->check($abilities, $arguments);
  6967. }
  6968. /**
  6969. * Determine if any one of the given abilities should be granted for the current user.
  6970. *
  6971. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6972. * @param array|mixed $arguments
  6973. * @return bool
  6974. * @static
  6975. */
  6976. public static function any($abilities, $arguments = [])
  6977. {
  6978. /** @var \Illuminate\Auth\Access\Gate $instance */
  6979. return $instance->any($abilities, $arguments);
  6980. }
  6981. /**
  6982. * Determine if all of the given abilities should be denied for the current user.
  6983. *
  6984. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6985. * @param array|mixed $arguments
  6986. * @return bool
  6987. * @static
  6988. */
  6989. public static function none($abilities, $arguments = [])
  6990. {
  6991. /** @var \Illuminate\Auth\Access\Gate $instance */
  6992. return $instance->none($abilities, $arguments);
  6993. }
  6994. /**
  6995. * Determine if the given ability should be granted for the current user.
  6996. *
  6997. * @param string $ability
  6998. * @param array|mixed $arguments
  6999. * @return \Illuminate\Auth\Access\Response
  7000. * @throws \Illuminate\Auth\Access\AuthorizationException
  7001. * @static
  7002. */
  7003. public static function authorize($ability, $arguments = [])
  7004. {
  7005. /** @var \Illuminate\Auth\Access\Gate $instance */
  7006. return $instance->authorize($ability, $arguments);
  7007. }
  7008. /**
  7009. * Inspect the user for the given ability.
  7010. *
  7011. * @param string $ability
  7012. * @param array|mixed $arguments
  7013. * @return \Illuminate\Auth\Access\Response
  7014. * @static
  7015. */
  7016. public static function inspect($ability, $arguments = [])
  7017. {
  7018. /** @var \Illuminate\Auth\Access\Gate $instance */
  7019. return $instance->inspect($ability, $arguments);
  7020. }
  7021. /**
  7022. * Get the raw result from the authorization callback.
  7023. *
  7024. * @param string $ability
  7025. * @param array|mixed $arguments
  7026. * @return mixed
  7027. * @throws \Illuminate\Auth\Access\AuthorizationException
  7028. * @static
  7029. */
  7030. public static function raw($ability, $arguments = [])
  7031. {
  7032. /** @var \Illuminate\Auth\Access\Gate $instance */
  7033. return $instance->raw($ability, $arguments);
  7034. }
  7035. /**
  7036. * Get a policy instance for a given class.
  7037. *
  7038. * @param object|string $class
  7039. * @return mixed
  7040. * @static
  7041. */
  7042. public static function getPolicyFor($class)
  7043. {
  7044. /** @var \Illuminate\Auth\Access\Gate $instance */
  7045. return $instance->getPolicyFor($class);
  7046. }
  7047. /**
  7048. * Specify a callback to be used to guess policy names.
  7049. *
  7050. * @param callable $callback
  7051. * @return \Illuminate\Auth\Access\Gate
  7052. * @static
  7053. */
  7054. public static function guessPolicyNamesUsing($callback)
  7055. {
  7056. /** @var \Illuminate\Auth\Access\Gate $instance */
  7057. return $instance->guessPolicyNamesUsing($callback);
  7058. }
  7059. /**
  7060. * Build a policy class instance of the given type.
  7061. *
  7062. * @param object|string $class
  7063. * @return mixed
  7064. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  7065. * @static
  7066. */
  7067. public static function resolvePolicy($class)
  7068. {
  7069. /** @var \Illuminate\Auth\Access\Gate $instance */
  7070. return $instance->resolvePolicy($class);
  7071. }
  7072. /**
  7073. * Get a gate instance for the given user.
  7074. *
  7075. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  7076. * @return static
  7077. * @static
  7078. */
  7079. public static function forUser($user)
  7080. {
  7081. /** @var \Illuminate\Auth\Access\Gate $instance */
  7082. return $instance->forUser($user);
  7083. }
  7084. /**
  7085. * Get all of the defined abilities.
  7086. *
  7087. * @return array
  7088. * @static
  7089. */
  7090. public static function abilities()
  7091. {
  7092. /** @var \Illuminate\Auth\Access\Gate $instance */
  7093. return $instance->abilities();
  7094. }
  7095. /**
  7096. * Get all of the defined policies.
  7097. *
  7098. * @return array
  7099. * @static
  7100. */
  7101. public static function policies()
  7102. {
  7103. /** @var \Illuminate\Auth\Access\Gate $instance */
  7104. return $instance->policies();
  7105. }
  7106. /**
  7107. * Set the container instance used by the gate.
  7108. *
  7109. * @param \Illuminate\Contracts\Container\Container $container
  7110. * @return \Illuminate\Auth\Access\Gate
  7111. * @static
  7112. */
  7113. public static function setContainer($container)
  7114. {
  7115. /** @var \Illuminate\Auth\Access\Gate $instance */
  7116. return $instance->setContainer($container);
  7117. }
  7118. }
  7119. /**
  7120. *
  7121. *
  7122. * @see \Illuminate\Hashing\HashManager
  7123. */
  7124. class Hash {
  7125. /**
  7126. * Create an instance of the Bcrypt hash Driver.
  7127. *
  7128. * @return \Illuminate\Hashing\BcryptHasher
  7129. * @static
  7130. */
  7131. public static function createBcryptDriver()
  7132. {
  7133. /** @var \Illuminate\Hashing\HashManager $instance */
  7134. return $instance->createBcryptDriver();
  7135. }
  7136. /**
  7137. * Create an instance of the Argon2i hash Driver.
  7138. *
  7139. * @return \Illuminate\Hashing\ArgonHasher
  7140. * @static
  7141. */
  7142. public static function createArgonDriver()
  7143. {
  7144. /** @var \Illuminate\Hashing\HashManager $instance */
  7145. return $instance->createArgonDriver();
  7146. }
  7147. /**
  7148. * Create an instance of the Argon2id hash Driver.
  7149. *
  7150. * @return \Illuminate\Hashing\Argon2IdHasher
  7151. * @static
  7152. */
  7153. public static function createArgon2idDriver()
  7154. {
  7155. /** @var \Illuminate\Hashing\HashManager $instance */
  7156. return $instance->createArgon2idDriver();
  7157. }
  7158. /**
  7159. * Get information about the given hashed value.
  7160. *
  7161. * @param string $hashedValue
  7162. * @return array
  7163. * @static
  7164. */
  7165. public static function info($hashedValue)
  7166. {
  7167. /** @var \Illuminate\Hashing\HashManager $instance */
  7168. return $instance->info($hashedValue);
  7169. }
  7170. /**
  7171. * Hash the given value.
  7172. *
  7173. * @param string $value
  7174. * @param array $options
  7175. * @return string
  7176. * @static
  7177. */
  7178. public static function make($value, $options = [])
  7179. {
  7180. /** @var \Illuminate\Hashing\HashManager $instance */
  7181. return $instance->make($value, $options);
  7182. }
  7183. /**
  7184. * Check the given plain value against a hash.
  7185. *
  7186. * @param string $value
  7187. * @param string $hashedValue
  7188. * @param array $options
  7189. * @return bool
  7190. * @static
  7191. */
  7192. public static function check($value, $hashedValue, $options = [])
  7193. {
  7194. /** @var \Illuminate\Hashing\HashManager $instance */
  7195. return $instance->check($value, $hashedValue, $options);
  7196. }
  7197. /**
  7198. * Check if the given hash has been hashed using the given options.
  7199. *
  7200. * @param string $hashedValue
  7201. * @param array $options
  7202. * @return bool
  7203. * @static
  7204. */
  7205. public static function needsRehash($hashedValue, $options = [])
  7206. {
  7207. /** @var \Illuminate\Hashing\HashManager $instance */
  7208. return $instance->needsRehash($hashedValue, $options);
  7209. }
  7210. /**
  7211. * Get the default driver name.
  7212. *
  7213. * @return string
  7214. * @static
  7215. */
  7216. public static function getDefaultDriver()
  7217. {
  7218. /** @var \Illuminate\Hashing\HashManager $instance */
  7219. return $instance->getDefaultDriver();
  7220. }
  7221. /**
  7222. * Get a driver instance.
  7223. *
  7224. * @param string|null $driver
  7225. * @return mixed
  7226. * @throws \InvalidArgumentException
  7227. * @static
  7228. */
  7229. public static function driver($driver = null)
  7230. { //Method inherited from \Illuminate\Support\Manager
  7231. /** @var \Illuminate\Hashing\HashManager $instance */
  7232. return $instance->driver($driver);
  7233. }
  7234. /**
  7235. * Register a custom driver creator Closure.
  7236. *
  7237. * @param string $driver
  7238. * @param \Closure $callback
  7239. * @return \Illuminate\Hashing\HashManager
  7240. * @static
  7241. */
  7242. public static function extend($driver, $callback)
  7243. { //Method inherited from \Illuminate\Support\Manager
  7244. /** @var \Illuminate\Hashing\HashManager $instance */
  7245. return $instance->extend($driver, $callback);
  7246. }
  7247. /**
  7248. * Get all of the created "drivers".
  7249. *
  7250. * @return array
  7251. * @static
  7252. */
  7253. public static function getDrivers()
  7254. { //Method inherited from \Illuminate\Support\Manager
  7255. /** @var \Illuminate\Hashing\HashManager $instance */
  7256. return $instance->getDrivers();
  7257. }
  7258. /**
  7259. * Get the container instance used by the manager.
  7260. *
  7261. * @return \Illuminate\Contracts\Container\Container
  7262. * @static
  7263. */
  7264. public static function getContainer()
  7265. { //Method inherited from \Illuminate\Support\Manager
  7266. /** @var \Illuminate\Hashing\HashManager $instance */
  7267. return $instance->getContainer();
  7268. }
  7269. /**
  7270. * Set the container instance used by the manager.
  7271. *
  7272. * @param \Illuminate\Contracts\Container\Container $container
  7273. * @return \Illuminate\Hashing\HashManager
  7274. * @static
  7275. */
  7276. public static function setContainer($container)
  7277. { //Method inherited from \Illuminate\Support\Manager
  7278. /** @var \Illuminate\Hashing\HashManager $instance */
  7279. return $instance->setContainer($container);
  7280. }
  7281. /**
  7282. * Forget all of the resolved driver instances.
  7283. *
  7284. * @return \Illuminate\Hashing\HashManager
  7285. * @static
  7286. */
  7287. public static function forgetDrivers()
  7288. { //Method inherited from \Illuminate\Support\Manager
  7289. /** @var \Illuminate\Hashing\HashManager $instance */
  7290. return $instance->forgetDrivers();
  7291. }
  7292. }
  7293. /**
  7294. *
  7295. *
  7296. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  7297. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  7298. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  7299. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  7300. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  7301. * @method static \Illuminate\Http\Client\PendingRequest async()
  7302. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string $contents = '', string|null $filename = null, array $headers = [])
  7303. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  7304. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  7305. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  7306. * @method static \Illuminate\Http\Client\PendingRequest connectTimeout(int $seconds)
  7307. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  7308. * @method static \Illuminate\Http\Client\PendingRequest dd()
  7309. * @method static \Illuminate\Http\Client\PendingRequest dump()
  7310. * @method static \Illuminate\Http\Client\PendingRequest maxRedirects(int $max)
  7311. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleepMilliseconds = 0, ?callable $when = null, bool $throw = true)
  7312. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  7313. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  7314. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  7315. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  7316. * @method static \Illuminate\Http\Client\PendingRequest withBody(resource|string $content, string $contentType)
  7317. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  7318. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  7319. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  7320. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  7321. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  7322. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  7323. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string $userAgent)
  7324. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  7325. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  7326. * @method static \Illuminate\Http\Client\PendingRequest throw(callable $callback = null)
  7327. * @method static \Illuminate\Http\Client\PendingRequest throwIf($condition)
  7328. * @method \Illuminate\Http\Client\PendingRequest throwUnless($condition)
  7329. * @method static array pool(callable $callback)
  7330. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  7331. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  7332. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  7333. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  7334. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  7335. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  7336. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  7337. * @see \Illuminate\Http\Client\Factory
  7338. */
  7339. class Http {
  7340. /**
  7341. * Create a new response instance for use during stubbing.
  7342. *
  7343. * @param array|string|null $body
  7344. * @param int $status
  7345. * @param array $headers
  7346. * @return \GuzzleHttp\Promise\PromiseInterface
  7347. * @static
  7348. */
  7349. public static function response($body = null, $status = 200, $headers = [])
  7350. {
  7351. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  7352. }
  7353. /**
  7354. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  7355. *
  7356. * @param array $responses
  7357. * @return \Illuminate\Http\Client\ResponseSequence
  7358. * @static
  7359. */
  7360. public static function sequence($responses = [])
  7361. {
  7362. /** @var \Illuminate\Http\Client\Factory $instance */
  7363. return $instance->sequence($responses);
  7364. }
  7365. /**
  7366. * Register a stub callable that will intercept requests and be able to return stub responses.
  7367. *
  7368. * @param callable|array $callback
  7369. * @return \Illuminate\Http\Client\Factory
  7370. * @static
  7371. */
  7372. public static function fake($callback = null)
  7373. {
  7374. /** @var \Illuminate\Http\Client\Factory $instance */
  7375. return $instance->fake($callback);
  7376. }
  7377. /**
  7378. * Register a response sequence for the given URL pattern.
  7379. *
  7380. * @param string $url
  7381. * @return \Illuminate\Http\Client\ResponseSequence
  7382. * @static
  7383. */
  7384. public static function fakeSequence($url = '*')
  7385. {
  7386. /** @var \Illuminate\Http\Client\Factory $instance */
  7387. return $instance->fakeSequence($url);
  7388. }
  7389. /**
  7390. * Stub the given URL using the given callback.
  7391. *
  7392. * @param string $url
  7393. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  7394. * @return \Illuminate\Http\Client\Factory
  7395. * @static
  7396. */
  7397. public static function stubUrl($url, $callback)
  7398. {
  7399. /** @var \Illuminate\Http\Client\Factory $instance */
  7400. return $instance->stubUrl($url, $callback);
  7401. }
  7402. /**
  7403. * Indicate that an exception should not be thrown if any request is not faked.
  7404. *
  7405. * @param bool $prevent
  7406. * @return \Illuminate\Http\Client\Factory
  7407. * @static
  7408. */
  7409. public static function preventStrayRequests($prevent = true)
  7410. {
  7411. /** @var \Illuminate\Http\Client\Factory $instance */
  7412. return $instance->preventStrayRequests($prevent);
  7413. }
  7414. /**
  7415. * Indicate that an exception should not be thrown if any request is not faked.
  7416. *
  7417. * @return \Illuminate\Http\Client\Factory
  7418. * @static
  7419. */
  7420. public static function allowStrayRequests()
  7421. {
  7422. /** @var \Illuminate\Http\Client\Factory $instance */
  7423. return $instance->allowStrayRequests();
  7424. }
  7425. /**
  7426. * Record a request response pair.
  7427. *
  7428. * @param \Illuminate\Http\Client\Request $request
  7429. * @param \Illuminate\Http\Client\Response $response
  7430. * @return void
  7431. * @static
  7432. */
  7433. public static function recordRequestResponsePair($request, $response)
  7434. {
  7435. /** @var \Illuminate\Http\Client\Factory $instance */
  7436. $instance->recordRequestResponsePair($request, $response);
  7437. }
  7438. /**
  7439. * Assert that a request / response pair was recorded matching a given truth test.
  7440. *
  7441. * @param callable $callback
  7442. * @return void
  7443. * @static
  7444. */
  7445. public static function assertSent($callback)
  7446. {
  7447. /** @var \Illuminate\Http\Client\Factory $instance */
  7448. $instance->assertSent($callback);
  7449. }
  7450. /**
  7451. * Assert that the given request was sent in the given order.
  7452. *
  7453. * @param array $callbacks
  7454. * @return void
  7455. * @static
  7456. */
  7457. public static function assertSentInOrder($callbacks)
  7458. {
  7459. /** @var \Illuminate\Http\Client\Factory $instance */
  7460. $instance->assertSentInOrder($callbacks);
  7461. }
  7462. /**
  7463. * Assert that a request / response pair was not recorded matching a given truth test.
  7464. *
  7465. * @param callable $callback
  7466. * @return void
  7467. * @static
  7468. */
  7469. public static function assertNotSent($callback)
  7470. {
  7471. /** @var \Illuminate\Http\Client\Factory $instance */
  7472. $instance->assertNotSent($callback);
  7473. }
  7474. /**
  7475. * Assert that no request / response pair was recorded.
  7476. *
  7477. * @return void
  7478. * @static
  7479. */
  7480. public static function assertNothingSent()
  7481. {
  7482. /** @var \Illuminate\Http\Client\Factory $instance */
  7483. $instance->assertNothingSent();
  7484. }
  7485. /**
  7486. * Assert how many requests have been recorded.
  7487. *
  7488. * @param int $count
  7489. * @return void
  7490. * @static
  7491. */
  7492. public static function assertSentCount($count)
  7493. {
  7494. /** @var \Illuminate\Http\Client\Factory $instance */
  7495. $instance->assertSentCount($count);
  7496. }
  7497. /**
  7498. * Assert that every created response sequence is empty.
  7499. *
  7500. * @return void
  7501. * @static
  7502. */
  7503. public static function assertSequencesAreEmpty()
  7504. {
  7505. /** @var \Illuminate\Http\Client\Factory $instance */
  7506. $instance->assertSequencesAreEmpty();
  7507. }
  7508. /**
  7509. * Get a collection of the request / response pairs matching the given truth test.
  7510. *
  7511. * @param callable $callback
  7512. * @return \Illuminate\Support\Collection
  7513. * @static
  7514. */
  7515. public static function recorded($callback = null)
  7516. {
  7517. /** @var \Illuminate\Http\Client\Factory $instance */
  7518. return $instance->recorded($callback);
  7519. }
  7520. /**
  7521. * Get the current event dispatcher implementation.
  7522. *
  7523. * @return \Illuminate\Contracts\Events\Dispatcher|null
  7524. * @static
  7525. */
  7526. public static function getDispatcher()
  7527. {
  7528. /** @var \Illuminate\Http\Client\Factory $instance */
  7529. return $instance->getDispatcher();
  7530. }
  7531. /**
  7532. * Register a custom macro.
  7533. *
  7534. * @param string $name
  7535. * @param object|callable $macro
  7536. * @return void
  7537. * @static
  7538. */
  7539. public static function macro($name, $macro)
  7540. {
  7541. \Illuminate\Http\Client\Factory::macro($name, $macro);
  7542. }
  7543. /**
  7544. * Mix another object into the class.
  7545. *
  7546. * @param object $mixin
  7547. * @param bool $replace
  7548. * @return void
  7549. * @throws \ReflectionException
  7550. * @static
  7551. */
  7552. public static function mixin($mixin, $replace = true)
  7553. {
  7554. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  7555. }
  7556. /**
  7557. * Checks if macro is registered.
  7558. *
  7559. * @param string $name
  7560. * @return bool
  7561. * @static
  7562. */
  7563. public static function hasMacro($name)
  7564. {
  7565. return \Illuminate\Http\Client\Factory::hasMacro($name);
  7566. }
  7567. /**
  7568. * Flush the existing macros.
  7569. *
  7570. * @return void
  7571. * @static
  7572. */
  7573. public static function flushMacros()
  7574. {
  7575. \Illuminate\Http\Client\Factory::flushMacros();
  7576. }
  7577. /**
  7578. * Dynamically handle calls to the class.
  7579. *
  7580. * @param string $method
  7581. * @param array $parameters
  7582. * @return mixed
  7583. * @throws \BadMethodCallException
  7584. * @static
  7585. */
  7586. public static function macroCall($method, $parameters)
  7587. {
  7588. /** @var \Illuminate\Http\Client\Factory $instance */
  7589. return $instance->macroCall($method, $parameters);
  7590. }
  7591. }
  7592. /**
  7593. *
  7594. *
  7595. * @see \Illuminate\Translation\Translator
  7596. */
  7597. class Lang {
  7598. /**
  7599. * Determine if a translation exists for a given locale.
  7600. *
  7601. * @param string $key
  7602. * @param string|null $locale
  7603. * @return bool
  7604. * @static
  7605. */
  7606. public static function hasForLocale($key, $locale = null)
  7607. {
  7608. /** @var \Illuminate\Translation\Translator $instance */
  7609. return $instance->hasForLocale($key, $locale);
  7610. }
  7611. /**
  7612. * Determine if a translation exists.
  7613. *
  7614. * @param string $key
  7615. * @param string|null $locale
  7616. * @param bool $fallback
  7617. * @return bool
  7618. * @static
  7619. */
  7620. public static function has($key, $locale = null, $fallback = true)
  7621. {
  7622. /** @var \Illuminate\Translation\Translator $instance */
  7623. return $instance->has($key, $locale, $fallback);
  7624. }
  7625. /**
  7626. * Get the translation for the given key.
  7627. *
  7628. * @param string $key
  7629. * @param array $replace
  7630. * @param string|null $locale
  7631. * @param bool $fallback
  7632. * @return string|array
  7633. * @static
  7634. */
  7635. public static function get($key, $replace = [], $locale = null, $fallback = true)
  7636. {
  7637. /** @var \Illuminate\Translation\Translator $instance */
  7638. return $instance->get($key, $replace, $locale, $fallback);
  7639. }
  7640. /**
  7641. * Get a translation according to an integer value.
  7642. *
  7643. * @param string $key
  7644. * @param \Countable|int|array $number
  7645. * @param array $replace
  7646. * @param string|null $locale
  7647. * @return string
  7648. * @static
  7649. */
  7650. public static function choice($key, $number, $replace = [], $locale = null)
  7651. {
  7652. /** @var \Illuminate\Translation\Translator $instance */
  7653. return $instance->choice($key, $number, $replace, $locale);
  7654. }
  7655. /**
  7656. * Add translation lines to the given locale.
  7657. *
  7658. * @param array $lines
  7659. * @param string $locale
  7660. * @param string $namespace
  7661. * @return void
  7662. * @static
  7663. */
  7664. public static function addLines($lines, $locale, $namespace = '*')
  7665. {
  7666. /** @var \Illuminate\Translation\Translator $instance */
  7667. $instance->addLines($lines, $locale, $namespace);
  7668. }
  7669. /**
  7670. * Load the specified language group.
  7671. *
  7672. * @param string $namespace
  7673. * @param string $group
  7674. * @param string $locale
  7675. * @return void
  7676. * @static
  7677. */
  7678. public static function load($namespace, $group, $locale)
  7679. {
  7680. /** @var \Illuminate\Translation\Translator $instance */
  7681. $instance->load($namespace, $group, $locale);
  7682. }
  7683. /**
  7684. * Add a new namespace to the loader.
  7685. *
  7686. * @param string $namespace
  7687. * @param string $hint
  7688. * @return void
  7689. * @static
  7690. */
  7691. public static function addNamespace($namespace, $hint)
  7692. {
  7693. /** @var \Illuminate\Translation\Translator $instance */
  7694. $instance->addNamespace($namespace, $hint);
  7695. }
  7696. /**
  7697. * Add a new JSON path to the loader.
  7698. *
  7699. * @param string $path
  7700. * @return void
  7701. * @static
  7702. */
  7703. public static function addJsonPath($path)
  7704. {
  7705. /** @var \Illuminate\Translation\Translator $instance */
  7706. $instance->addJsonPath($path);
  7707. }
  7708. /**
  7709. * Parse a key into namespace, group, and item.
  7710. *
  7711. * @param string $key
  7712. * @return array
  7713. * @static
  7714. */
  7715. public static function parseKey($key)
  7716. {
  7717. /** @var \Illuminate\Translation\Translator $instance */
  7718. return $instance->parseKey($key);
  7719. }
  7720. /**
  7721. * Specify a callback that should be invoked to determined the applicable locale array.
  7722. *
  7723. * @param callable $callback
  7724. * @return void
  7725. * @static
  7726. */
  7727. public static function determineLocalesUsing($callback)
  7728. {
  7729. /** @var \Illuminate\Translation\Translator $instance */
  7730. $instance->determineLocalesUsing($callback);
  7731. }
  7732. /**
  7733. * Get the message selector instance.
  7734. *
  7735. * @return \Illuminate\Translation\MessageSelector
  7736. * @static
  7737. */
  7738. public static function getSelector()
  7739. {
  7740. /** @var \Illuminate\Translation\Translator $instance */
  7741. return $instance->getSelector();
  7742. }
  7743. /**
  7744. * Set the message selector instance.
  7745. *
  7746. * @param \Illuminate\Translation\MessageSelector $selector
  7747. * @return void
  7748. * @static
  7749. */
  7750. public static function setSelector($selector)
  7751. {
  7752. /** @var \Illuminate\Translation\Translator $instance */
  7753. $instance->setSelector($selector);
  7754. }
  7755. /**
  7756. * Get the language line loader implementation.
  7757. *
  7758. * @return \Illuminate\Contracts\Translation\Loader
  7759. * @static
  7760. */
  7761. public static function getLoader()
  7762. {
  7763. /** @var \Illuminate\Translation\Translator $instance */
  7764. return $instance->getLoader();
  7765. }
  7766. /**
  7767. * Get the default locale being used.
  7768. *
  7769. * @return string
  7770. * @static
  7771. */
  7772. public static function locale()
  7773. {
  7774. /** @var \Illuminate\Translation\Translator $instance */
  7775. return $instance->locale();
  7776. }
  7777. /**
  7778. * Get the default locale being used.
  7779. *
  7780. * @return string
  7781. * @static
  7782. */
  7783. public static function getLocale()
  7784. {
  7785. /** @var \Illuminate\Translation\Translator $instance */
  7786. return $instance->getLocale();
  7787. }
  7788. /**
  7789. * Set the default locale.
  7790. *
  7791. * @param string $locale
  7792. * @return void
  7793. * @throws \InvalidArgumentException
  7794. * @static
  7795. */
  7796. public static function setLocale($locale)
  7797. {
  7798. /** @var \Illuminate\Translation\Translator $instance */
  7799. $instance->setLocale($locale);
  7800. }
  7801. /**
  7802. * Get the fallback locale being used.
  7803. *
  7804. * @return string
  7805. * @static
  7806. */
  7807. public static function getFallback()
  7808. {
  7809. /** @var \Illuminate\Translation\Translator $instance */
  7810. return $instance->getFallback();
  7811. }
  7812. /**
  7813. * Set the fallback locale being used.
  7814. *
  7815. * @param string $fallback
  7816. * @return void
  7817. * @static
  7818. */
  7819. public static function setFallback($fallback)
  7820. {
  7821. /** @var \Illuminate\Translation\Translator $instance */
  7822. $instance->setFallback($fallback);
  7823. }
  7824. /**
  7825. * Set the loaded translation groups.
  7826. *
  7827. * @param array $loaded
  7828. * @return void
  7829. * @static
  7830. */
  7831. public static function setLoaded($loaded)
  7832. {
  7833. /** @var \Illuminate\Translation\Translator $instance */
  7834. $instance->setLoaded($loaded);
  7835. }
  7836. /**
  7837. * Set the parsed value of a key.
  7838. *
  7839. * @param string $key
  7840. * @param array $parsed
  7841. * @return void
  7842. * @static
  7843. */
  7844. public static function setParsedKey($key, $parsed)
  7845. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7846. /** @var \Illuminate\Translation\Translator $instance */
  7847. $instance->setParsedKey($key, $parsed);
  7848. }
  7849. /**
  7850. * Flush the cache of parsed keys.
  7851. *
  7852. * @return void
  7853. * @static
  7854. */
  7855. public static function flushParsedKeys()
  7856. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7857. /** @var \Illuminate\Translation\Translator $instance */
  7858. $instance->flushParsedKeys();
  7859. }
  7860. /**
  7861. * Register a custom macro.
  7862. *
  7863. * @param string $name
  7864. * @param object|callable $macro
  7865. * @return void
  7866. * @static
  7867. */
  7868. public static function macro($name, $macro)
  7869. {
  7870. \Illuminate\Translation\Translator::macro($name, $macro);
  7871. }
  7872. /**
  7873. * Mix another object into the class.
  7874. *
  7875. * @param object $mixin
  7876. * @param bool $replace
  7877. * @return void
  7878. * @throws \ReflectionException
  7879. * @static
  7880. */
  7881. public static function mixin($mixin, $replace = true)
  7882. {
  7883. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  7884. }
  7885. /**
  7886. * Checks if macro is registered.
  7887. *
  7888. * @param string $name
  7889. * @return bool
  7890. * @static
  7891. */
  7892. public static function hasMacro($name)
  7893. {
  7894. return \Illuminate\Translation\Translator::hasMacro($name);
  7895. }
  7896. /**
  7897. * Flush the existing macros.
  7898. *
  7899. * @return void
  7900. * @static
  7901. */
  7902. public static function flushMacros()
  7903. {
  7904. \Illuminate\Translation\Translator::flushMacros();
  7905. }
  7906. }
  7907. /**
  7908. *
  7909. *
  7910. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  7911. * @method static \Illuminate\Log\Logger withoutContext()
  7912. * @method static void write(string $level, string $message, array $context = [])
  7913. * @method static void listen(\Closure $callback)
  7914. * @see \Illuminate\Log\Logger
  7915. */
  7916. class Log {
  7917. /**
  7918. * Build an on-demand log channel.
  7919. *
  7920. * @param array $config
  7921. * @return \Psr\Log\LoggerInterface
  7922. * @static
  7923. */
  7924. public static function build($config)
  7925. {
  7926. /** @var \Illuminate\Log\LogManager $instance */
  7927. return $instance->build($config);
  7928. }
  7929. /**
  7930. * Create a new, on-demand aggregate logger instance.
  7931. *
  7932. * @param array $channels
  7933. * @param string|null $channel
  7934. * @return \Psr\Log\LoggerInterface
  7935. * @static
  7936. */
  7937. public static function stack($channels, $channel = null)
  7938. {
  7939. /** @var \Illuminate\Log\LogManager $instance */
  7940. return $instance->stack($channels, $channel);
  7941. }
  7942. /**
  7943. * Get a log channel instance.
  7944. *
  7945. * @param string|null $channel
  7946. * @return \Psr\Log\LoggerInterface
  7947. * @static
  7948. */
  7949. public static function channel($channel = null)
  7950. {
  7951. /** @var \Illuminate\Log\LogManager $instance */
  7952. return $instance->channel($channel);
  7953. }
  7954. /**
  7955. * Get a log driver instance.
  7956. *
  7957. * @param string|null $driver
  7958. * @return \Psr\Log\LoggerInterface
  7959. * @static
  7960. */
  7961. public static function driver($driver = null)
  7962. {
  7963. /** @var \Illuminate\Log\LogManager $instance */
  7964. return $instance->driver($driver);
  7965. }
  7966. /**
  7967. * Share context across channels and stacks.
  7968. *
  7969. * @param array $context
  7970. * @return \Illuminate\Log\LogManager
  7971. * @static
  7972. */
  7973. public static function shareContext($context)
  7974. {
  7975. /** @var \Illuminate\Log\LogManager $instance */
  7976. return $instance->shareContext($context);
  7977. }
  7978. /**
  7979. * The context shared across channels and stacks.
  7980. *
  7981. * @return array
  7982. * @static
  7983. */
  7984. public static function sharedContext()
  7985. {
  7986. /** @var \Illuminate\Log\LogManager $instance */
  7987. return $instance->sharedContext();
  7988. }
  7989. /**
  7990. * Flush the shared context.
  7991. *
  7992. * @return \Illuminate\Log\LogManager
  7993. * @static
  7994. */
  7995. public static function flushSharedContext()
  7996. {
  7997. /** @var \Illuminate\Log\LogManager $instance */
  7998. return $instance->flushSharedContext();
  7999. }
  8000. /**
  8001. * Get the default log driver name.
  8002. *
  8003. * @return string|null
  8004. * @static
  8005. */
  8006. public static function getDefaultDriver()
  8007. {
  8008. /** @var \Illuminate\Log\LogManager $instance */
  8009. return $instance->getDefaultDriver();
  8010. }
  8011. /**
  8012. * Set the default log driver name.
  8013. *
  8014. * @param string $name
  8015. * @return void
  8016. * @static
  8017. */
  8018. public static function setDefaultDriver($name)
  8019. {
  8020. /** @var \Illuminate\Log\LogManager $instance */
  8021. $instance->setDefaultDriver($name);
  8022. }
  8023. /**
  8024. * Register a custom driver creator Closure.
  8025. *
  8026. * @param string $driver
  8027. * @param \Closure $callback
  8028. * @return \Illuminate\Log\LogManager
  8029. * @static
  8030. */
  8031. public static function extend($driver, $callback)
  8032. {
  8033. /** @var \Illuminate\Log\LogManager $instance */
  8034. return $instance->extend($driver, $callback);
  8035. }
  8036. /**
  8037. * Unset the given channel instance.
  8038. *
  8039. * @param string|null $driver
  8040. * @return \Illuminate\Log\LogManager
  8041. * @static
  8042. */
  8043. public static function forgetChannel($driver = null)
  8044. {
  8045. /** @var \Illuminate\Log\LogManager $instance */
  8046. return $instance->forgetChannel($driver);
  8047. }
  8048. /**
  8049. * Get all of the resolved log channels.
  8050. *
  8051. * @return array
  8052. * @static
  8053. */
  8054. public static function getChannels()
  8055. {
  8056. /** @var \Illuminate\Log\LogManager $instance */
  8057. return $instance->getChannels();
  8058. }
  8059. /**
  8060. * System is unusable.
  8061. *
  8062. * @param string $message
  8063. * @param array $context
  8064. * @return void
  8065. * @static
  8066. */
  8067. public static function emergency($message, $context = [])
  8068. {
  8069. /** @var \Illuminate\Log\LogManager $instance */
  8070. $instance->emergency($message, $context);
  8071. }
  8072. /**
  8073. * Action must be taken immediately.
  8074. *
  8075. * Example: Entire website down, database unavailable, etc. This should
  8076. * trigger the SMS alerts and wake you up.
  8077. *
  8078. * @param string $message
  8079. * @param array $context
  8080. * @return void
  8081. * @static
  8082. */
  8083. public static function alert($message, $context = [])
  8084. {
  8085. /** @var \Illuminate\Log\LogManager $instance */
  8086. $instance->alert($message, $context);
  8087. }
  8088. /**
  8089. * Critical conditions.
  8090. *
  8091. * Example: Application component unavailable, unexpected exception.
  8092. *
  8093. * @param string $message
  8094. * @param array $context
  8095. * @return void
  8096. * @static
  8097. */
  8098. public static function critical($message, $context = [])
  8099. {
  8100. /** @var \Illuminate\Log\LogManager $instance */
  8101. $instance->critical($message, $context);
  8102. }
  8103. /**
  8104. * Runtime errors that do not require immediate action but should typically
  8105. * be logged and monitored.
  8106. *
  8107. * @param string $message
  8108. * @param array $context
  8109. * @return void
  8110. * @static
  8111. */
  8112. public static function error($message, $context = [])
  8113. {
  8114. /** @var \Illuminate\Log\LogManager $instance */
  8115. $instance->error($message, $context);
  8116. }
  8117. /**
  8118. * Exceptional occurrences that are not errors.
  8119. *
  8120. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  8121. * that are not necessarily wrong.
  8122. *
  8123. * @param string $message
  8124. * @param array $context
  8125. * @return void
  8126. * @static
  8127. */
  8128. public static function warning($message, $context = [])
  8129. {
  8130. /** @var \Illuminate\Log\LogManager $instance */
  8131. $instance->warning($message, $context);
  8132. }
  8133. /**
  8134. * Normal but significant events.
  8135. *
  8136. * @param string $message
  8137. * @param array $context
  8138. * @return void
  8139. * @static
  8140. */
  8141. public static function notice($message, $context = [])
  8142. {
  8143. /** @var \Illuminate\Log\LogManager $instance */
  8144. $instance->notice($message, $context);
  8145. }
  8146. /**
  8147. * Interesting events.
  8148. *
  8149. * Example: User logs in, SQL logs.
  8150. *
  8151. * @param string $message
  8152. * @param array $context
  8153. * @return void
  8154. * @static
  8155. */
  8156. public static function info($message, $context = [])
  8157. {
  8158. /** @var \Illuminate\Log\LogManager $instance */
  8159. $instance->info($message, $context);
  8160. }
  8161. /**
  8162. * Detailed debug information.
  8163. *
  8164. * @param string $message
  8165. * @param array $context
  8166. * @return void
  8167. * @static
  8168. */
  8169. public static function debug($message, $context = [])
  8170. {
  8171. /** @var \Illuminate\Log\LogManager $instance */
  8172. $instance->debug($message, $context);
  8173. }
  8174. /**
  8175. * Logs with an arbitrary level.
  8176. *
  8177. * @param mixed $level
  8178. * @param string $message
  8179. * @param array $context
  8180. * @return void
  8181. * @static
  8182. */
  8183. public static function log($level, $message, $context = [])
  8184. {
  8185. /** @var \Illuminate\Log\LogManager $instance */
  8186. $instance->log($level, $message, $context);
  8187. }
  8188. }
  8189. /**
  8190. *
  8191. *
  8192. * @method static void alwaysFrom(string $address, string|null $name = null)
  8193. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  8194. * @method static void alwaysReturnPath(string $address)
  8195. * @method static void alwaysTo(string $address, string|null $name = null)
  8196. * @method static \Illuminate\Mail\SentMessage|null plain(string $view, array $data, $callback)
  8197. * @method static \Illuminate\Mail\SentMessage|null html(string $html, $callback)
  8198. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  8199. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  8200. * @see \Illuminate\Mail\Mailer
  8201. * @see \Illuminate\Support\Testing\Fakes\MailFake
  8202. */
  8203. class Mail {
  8204. /**
  8205. * Get a mailer instance by name.
  8206. *
  8207. * @param string|null $name
  8208. * @return \Illuminate\Contracts\Mail\Mailer
  8209. * @static
  8210. */
  8211. public static function mailer($name = null)
  8212. {
  8213. /** @var \Illuminate\Mail\MailManager $instance */
  8214. return $instance->mailer($name);
  8215. }
  8216. /**
  8217. * Get a mailer driver instance.
  8218. *
  8219. * @param string|null $driver
  8220. * @return \Illuminate\Mail\Mailer
  8221. * @static
  8222. */
  8223. public static function driver($driver = null)
  8224. {
  8225. /** @var \Illuminate\Mail\MailManager $instance */
  8226. return $instance->driver($driver);
  8227. }
  8228. /**
  8229. * Create a new transport instance.
  8230. *
  8231. * @param array $config
  8232. * @return \Symfony\Component\Mailer\Transport\TransportInterface
  8233. * @throws \InvalidArgumentException
  8234. * @static
  8235. */
  8236. public static function createSymfonyTransport($config)
  8237. {
  8238. /** @var \Illuminate\Mail\MailManager $instance */
  8239. return $instance->createSymfonyTransport($config);
  8240. }
  8241. /**
  8242. * Get the default mail driver name.
  8243. *
  8244. * @return string
  8245. * @static
  8246. */
  8247. public static function getDefaultDriver()
  8248. {
  8249. /** @var \Illuminate\Mail\MailManager $instance */
  8250. return $instance->getDefaultDriver();
  8251. }
  8252. /**
  8253. * Set the default mail driver name.
  8254. *
  8255. * @param string $name
  8256. * @return void
  8257. * @static
  8258. */
  8259. public static function setDefaultDriver($name)
  8260. {
  8261. /** @var \Illuminate\Mail\MailManager $instance */
  8262. $instance->setDefaultDriver($name);
  8263. }
  8264. /**
  8265. * Disconnect the given mailer and remove from local cache.
  8266. *
  8267. * @param string|null $name
  8268. * @return void
  8269. * @static
  8270. */
  8271. public static function purge($name = null)
  8272. {
  8273. /** @var \Illuminate\Mail\MailManager $instance */
  8274. $instance->purge($name);
  8275. }
  8276. /**
  8277. * Register a custom transport creator Closure.
  8278. *
  8279. * @param string $driver
  8280. * @param \Closure $callback
  8281. * @return \Illuminate\Mail\MailManager
  8282. * @static
  8283. */
  8284. public static function extend($driver, $callback)
  8285. {
  8286. /** @var \Illuminate\Mail\MailManager $instance */
  8287. return $instance->extend($driver, $callback);
  8288. }
  8289. /**
  8290. * Get the application instance used by the manager.
  8291. *
  8292. * @return \Illuminate\Contracts\Foundation\Application
  8293. * @static
  8294. */
  8295. public static function getApplication()
  8296. {
  8297. /** @var \Illuminate\Mail\MailManager $instance */
  8298. return $instance->getApplication();
  8299. }
  8300. /**
  8301. * Set the application instance used by the manager.
  8302. *
  8303. * @param \Illuminate\Contracts\Foundation\Application $app
  8304. * @return \Illuminate\Mail\MailManager
  8305. * @static
  8306. */
  8307. public static function setApplication($app)
  8308. {
  8309. /** @var \Illuminate\Mail\MailManager $instance */
  8310. return $instance->setApplication($app);
  8311. }
  8312. /**
  8313. * Forget all of the resolved mailer instances.
  8314. *
  8315. * @return \Illuminate\Mail\MailManager
  8316. * @static
  8317. */
  8318. public static function forgetMailers()
  8319. {
  8320. /** @var \Illuminate\Mail\MailManager $instance */
  8321. return $instance->forgetMailers();
  8322. }
  8323. /**
  8324. * Assert if a mailable was sent based on a truth-test callback.
  8325. *
  8326. * @param string|\Closure $mailable
  8327. * @param callable|int|null $callback
  8328. * @return void
  8329. * @static
  8330. */
  8331. public static function assertSent($mailable, $callback = null)
  8332. {
  8333. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8334. $instance->assertSent($mailable, $callback);
  8335. }
  8336. /**
  8337. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  8338. *
  8339. * @param string|\Closure $mailable
  8340. * @param callable|null $callback
  8341. * @return void
  8342. * @static
  8343. */
  8344. public static function assertNotOutgoing($mailable, $callback = null)
  8345. {
  8346. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8347. $instance->assertNotOutgoing($mailable, $callback);
  8348. }
  8349. /**
  8350. * Determine if a mailable was not sent based on a truth-test callback.
  8351. *
  8352. * @param string|\Closure $mailable
  8353. * @param callable|null $callback
  8354. * @return void
  8355. * @static
  8356. */
  8357. public static function assertNotSent($mailable, $callback = null)
  8358. {
  8359. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8360. $instance->assertNotSent($mailable, $callback);
  8361. }
  8362. /**
  8363. * Assert that no mailables were sent or queued to be sent.
  8364. *
  8365. * @return void
  8366. * @static
  8367. */
  8368. public static function assertNothingOutgoing()
  8369. {
  8370. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8371. $instance->assertNothingOutgoing();
  8372. }
  8373. /**
  8374. * Assert that no mailables were sent.
  8375. *
  8376. * @return void
  8377. * @static
  8378. */
  8379. public static function assertNothingSent()
  8380. {
  8381. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8382. $instance->assertNothingSent();
  8383. }
  8384. /**
  8385. * Assert if a mailable was queued based on a truth-test callback.
  8386. *
  8387. * @param string|\Closure $mailable
  8388. * @param callable|int|null $callback
  8389. * @return void
  8390. * @static
  8391. */
  8392. public static function assertQueued($mailable, $callback = null)
  8393. {
  8394. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8395. $instance->assertQueued($mailable, $callback);
  8396. }
  8397. /**
  8398. * Determine if a mailable was not queued based on a truth-test callback.
  8399. *
  8400. * @param string|\Closure $mailable
  8401. * @param callable|null $callback
  8402. * @return void
  8403. * @static
  8404. */
  8405. public static function assertNotQueued($mailable, $callback = null)
  8406. {
  8407. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8408. $instance->assertNotQueued($mailable, $callback);
  8409. }
  8410. /**
  8411. * Assert that no mailables were queued.
  8412. *
  8413. * @return void
  8414. * @static
  8415. */
  8416. public static function assertNothingQueued()
  8417. {
  8418. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8419. $instance->assertNothingQueued();
  8420. }
  8421. /**
  8422. * Get all of the mailables matching a truth-test callback.
  8423. *
  8424. * @param string|\Closure $mailable
  8425. * @param callable|null $callback
  8426. * @return \Illuminate\Support\Collection
  8427. * @static
  8428. */
  8429. public static function sent($mailable, $callback = null)
  8430. {
  8431. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8432. return $instance->sent($mailable, $callback);
  8433. }
  8434. /**
  8435. * Determine if the given mailable has been sent.
  8436. *
  8437. * @param string $mailable
  8438. * @return bool
  8439. * @static
  8440. */
  8441. public static function hasSent($mailable)
  8442. {
  8443. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8444. return $instance->hasSent($mailable);
  8445. }
  8446. /**
  8447. * Get all of the queued mailables matching a truth-test callback.
  8448. *
  8449. * @param string|\Closure $mailable
  8450. * @param callable|null $callback
  8451. * @return \Illuminate\Support\Collection
  8452. * @static
  8453. */
  8454. public static function queued($mailable, $callback = null)
  8455. {
  8456. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8457. return $instance->queued($mailable, $callback);
  8458. }
  8459. /**
  8460. * Determine if the given mailable has been queued.
  8461. *
  8462. * @param string $mailable
  8463. * @return bool
  8464. * @static
  8465. */
  8466. public static function hasQueued($mailable)
  8467. {
  8468. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8469. return $instance->hasQueued($mailable);
  8470. }
  8471. /**
  8472. * Begin the process of mailing a mailable class instance.
  8473. *
  8474. * @param mixed $users
  8475. * @return \Illuminate\Mail\PendingMail
  8476. * @static
  8477. */
  8478. public static function to($users)
  8479. {
  8480. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8481. return $instance->to($users);
  8482. }
  8483. /**
  8484. * Begin the process of mailing a mailable class instance.
  8485. *
  8486. * @param mixed $users
  8487. * @return \Illuminate\Mail\PendingMail
  8488. * @static
  8489. */
  8490. public static function bcc($users)
  8491. {
  8492. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8493. return $instance->bcc($users);
  8494. }
  8495. /**
  8496. * Send a new message with only a raw text part.
  8497. *
  8498. * @param string $text
  8499. * @param \Closure|string $callback
  8500. * @return void
  8501. * @static
  8502. */
  8503. public static function raw($text, $callback)
  8504. {
  8505. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8506. $instance->raw($text, $callback);
  8507. }
  8508. /**
  8509. * Send a new message using a view.
  8510. *
  8511. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8512. * @param array $data
  8513. * @param \Closure|string|null $callback
  8514. * @return void
  8515. * @static
  8516. */
  8517. public static function send($view, $data = [], $callback = null)
  8518. {
  8519. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8520. $instance->send($view, $data, $callback);
  8521. }
  8522. /**
  8523. * Queue a new e-mail message for sending.
  8524. *
  8525. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8526. * @param string|null $queue
  8527. * @return mixed
  8528. * @static
  8529. */
  8530. public static function queue($view, $queue = null)
  8531. {
  8532. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8533. return $instance->queue($view, $queue);
  8534. }
  8535. /**
  8536. * Queue a new e-mail message for sending after (n) seconds.
  8537. *
  8538. * @param \DateTimeInterface|\DateInterval|int $delay
  8539. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8540. * @param string|null $queue
  8541. * @return mixed
  8542. * @static
  8543. */
  8544. public static function later($delay, $view, $queue = null)
  8545. {
  8546. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8547. return $instance->later($delay, $view, $queue);
  8548. }
  8549. /**
  8550. * Get the array of failed recipients.
  8551. *
  8552. * @return array
  8553. * @static
  8554. */
  8555. public static function failures()
  8556. {
  8557. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8558. return $instance->failures();
  8559. }
  8560. }
  8561. /**
  8562. *
  8563. *
  8564. * @see \Illuminate\Notifications\ChannelManager
  8565. */
  8566. class Notification {
  8567. /**
  8568. * Send the given notification to the given notifiable entities.
  8569. *
  8570. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8571. * @param mixed $notification
  8572. * @return void
  8573. * @static
  8574. */
  8575. public static function send($notifiables, $notification)
  8576. {
  8577. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8578. $instance->send($notifiables, $notification);
  8579. }
  8580. /**
  8581. * Send the given notification immediately.
  8582. *
  8583. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8584. * @param mixed $notification
  8585. * @param array|null $channels
  8586. * @return void
  8587. * @static
  8588. */
  8589. public static function sendNow($notifiables, $notification, $channels = null)
  8590. {
  8591. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8592. $instance->sendNow($notifiables, $notification, $channels);
  8593. }
  8594. /**
  8595. * Get a channel instance.
  8596. *
  8597. * @param string|null $name
  8598. * @return mixed
  8599. * @static
  8600. */
  8601. public static function channel($name = null)
  8602. {
  8603. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8604. return $instance->channel($name);
  8605. }
  8606. /**
  8607. * Get the default channel driver name.
  8608. *
  8609. * @return string
  8610. * @static
  8611. */
  8612. public static function getDefaultDriver()
  8613. {
  8614. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8615. return $instance->getDefaultDriver();
  8616. }
  8617. /**
  8618. * Get the default channel driver name.
  8619. *
  8620. * @return string
  8621. * @static
  8622. */
  8623. public static function deliversVia()
  8624. {
  8625. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8626. return $instance->deliversVia();
  8627. }
  8628. /**
  8629. * Set the default channel driver name.
  8630. *
  8631. * @param string $channel
  8632. * @return void
  8633. * @static
  8634. */
  8635. public static function deliverVia($channel)
  8636. {
  8637. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8638. $instance->deliverVia($channel);
  8639. }
  8640. /**
  8641. * Set the locale of notifications.
  8642. *
  8643. * @param string $locale
  8644. * @return \Illuminate\Notifications\ChannelManager
  8645. * @static
  8646. */
  8647. public static function locale($locale)
  8648. {
  8649. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8650. return $instance->locale($locale);
  8651. }
  8652. /**
  8653. * Get a driver instance.
  8654. *
  8655. * @param string|null $driver
  8656. * @return mixed
  8657. * @throws \InvalidArgumentException
  8658. * @static
  8659. */
  8660. public static function driver($driver = null)
  8661. { //Method inherited from \Illuminate\Support\Manager
  8662. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8663. return $instance->driver($driver);
  8664. }
  8665. /**
  8666. * Register a custom driver creator Closure.
  8667. *
  8668. * @param string $driver
  8669. * @param \Closure $callback
  8670. * @return \Illuminate\Notifications\ChannelManager
  8671. * @static
  8672. */
  8673. public static function extend($driver, $callback)
  8674. { //Method inherited from \Illuminate\Support\Manager
  8675. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8676. return $instance->extend($driver, $callback);
  8677. }
  8678. /**
  8679. * Get all of the created "drivers".
  8680. *
  8681. * @return array
  8682. * @static
  8683. */
  8684. public static function getDrivers()
  8685. { //Method inherited from \Illuminate\Support\Manager
  8686. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8687. return $instance->getDrivers();
  8688. }
  8689. /**
  8690. * Get the container instance used by the manager.
  8691. *
  8692. * @return \Illuminate\Contracts\Container\Container
  8693. * @static
  8694. */
  8695. public static function getContainer()
  8696. { //Method inherited from \Illuminate\Support\Manager
  8697. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8698. return $instance->getContainer();
  8699. }
  8700. /**
  8701. * Set the container instance used by the manager.
  8702. *
  8703. * @param \Illuminate\Contracts\Container\Container $container
  8704. * @return \Illuminate\Notifications\ChannelManager
  8705. * @static
  8706. */
  8707. public static function setContainer($container)
  8708. { //Method inherited from \Illuminate\Support\Manager
  8709. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8710. return $instance->setContainer($container);
  8711. }
  8712. /**
  8713. * Forget all of the resolved driver instances.
  8714. *
  8715. * @return \Illuminate\Notifications\ChannelManager
  8716. * @static
  8717. */
  8718. public static function forgetDrivers()
  8719. { //Method inherited from \Illuminate\Support\Manager
  8720. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8721. return $instance->forgetDrivers();
  8722. }
  8723. /**
  8724. * Assert if a notification was sent on-demand based on a truth-test callback.
  8725. *
  8726. * @param string|\Closure $notification
  8727. * @param callable|null $callback
  8728. * @return void
  8729. * @throws \Exception
  8730. * @static
  8731. */
  8732. public static function assertSentOnDemand($notification, $callback = null)
  8733. {
  8734. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8735. $instance->assertSentOnDemand($notification, $callback);
  8736. }
  8737. /**
  8738. * Assert if a notification was sent based on a truth-test callback.
  8739. *
  8740. * @param mixed $notifiable
  8741. * @param string|\Closure $notification
  8742. * @param callable|null $callback
  8743. * @return void
  8744. * @throws \Exception
  8745. * @static
  8746. */
  8747. public static function assertSentTo($notifiable, $notification, $callback = null)
  8748. {
  8749. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8750. $instance->assertSentTo($notifiable, $notification, $callback);
  8751. }
  8752. /**
  8753. * Assert if a notification was sent on-demand a number of times.
  8754. *
  8755. * @param string $notification
  8756. * @param int $times
  8757. * @return void
  8758. * @static
  8759. */
  8760. public static function assertSentOnDemandTimes($notification, $times = 1)
  8761. {
  8762. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8763. $instance->assertSentOnDemandTimes($notification, $times);
  8764. }
  8765. /**
  8766. * Assert if a notification was sent a number of times.
  8767. *
  8768. * @param mixed $notifiable
  8769. * @param string $notification
  8770. * @param int $times
  8771. * @return void
  8772. * @static
  8773. */
  8774. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  8775. {
  8776. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8777. $instance->assertSentToTimes($notifiable, $notification, $times);
  8778. }
  8779. /**
  8780. * Determine if a notification was sent based on a truth-test callback.
  8781. *
  8782. * @param mixed $notifiable
  8783. * @param string|\Closure $notification
  8784. * @param callable|null $callback
  8785. * @return void
  8786. * @throws \Exception
  8787. * @static
  8788. */
  8789. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  8790. {
  8791. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8792. $instance->assertNotSentTo($notifiable, $notification, $callback);
  8793. }
  8794. /**
  8795. * Assert that no notifications were sent.
  8796. *
  8797. * @return void
  8798. * @static
  8799. */
  8800. public static function assertNothingSent()
  8801. {
  8802. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8803. $instance->assertNothingSent();
  8804. }
  8805. /**
  8806. * Assert that no notifications were sent to the given notifiable.
  8807. *
  8808. * @param mixed $notifiable
  8809. * @return void
  8810. * @throws \Exception
  8811. * @static
  8812. */
  8813. public static function assertNothingSentTo($notifiable)
  8814. {
  8815. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8816. $instance->assertNothingSentTo($notifiable);
  8817. }
  8818. /**
  8819. * Assert the total amount of times a notification was sent.
  8820. *
  8821. * @param string $notification
  8822. * @param int $expectedCount
  8823. * @return void
  8824. * @static
  8825. */
  8826. public static function assertSentTimes($notification, $expectedCount)
  8827. {
  8828. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8829. $instance->assertSentTimes($notification, $expectedCount);
  8830. }
  8831. /**
  8832. * Assert the total count of notification that were sent.
  8833. *
  8834. * @param int $expectedCount
  8835. * @return void
  8836. * @static
  8837. */
  8838. public static function assertCount($expectedCount)
  8839. {
  8840. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8841. $instance->assertCount($expectedCount);
  8842. }
  8843. /**
  8844. * Assert the total amount of times a notification was sent.
  8845. *
  8846. * @param int $expectedCount
  8847. * @param string $notification
  8848. * @return void
  8849. * @deprecated Use the assertSentTimes method instead
  8850. * @static
  8851. */
  8852. public static function assertTimesSent($expectedCount, $notification)
  8853. {
  8854. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8855. $instance->assertTimesSent($expectedCount, $notification);
  8856. }
  8857. /**
  8858. * Get all of the notifications matching a truth-test callback.
  8859. *
  8860. * @param mixed $notifiable
  8861. * @param string $notification
  8862. * @param callable|null $callback
  8863. * @return \Illuminate\Support\Collection
  8864. * @static
  8865. */
  8866. public static function sent($notifiable, $notification, $callback = null)
  8867. {
  8868. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8869. return $instance->sent($notifiable, $notification, $callback);
  8870. }
  8871. /**
  8872. * Determine if there are more notifications left to inspect.
  8873. *
  8874. * @param mixed $notifiable
  8875. * @param string $notification
  8876. * @return bool
  8877. * @static
  8878. */
  8879. public static function hasSent($notifiable, $notification)
  8880. {
  8881. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8882. return $instance->hasSent($notifiable, $notification);
  8883. }
  8884. /**
  8885. * Register a custom macro.
  8886. *
  8887. * @param string $name
  8888. * @param object|callable $macro
  8889. * @return void
  8890. * @static
  8891. */
  8892. public static function macro($name, $macro)
  8893. {
  8894. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  8895. }
  8896. /**
  8897. * Mix another object into the class.
  8898. *
  8899. * @param object $mixin
  8900. * @param bool $replace
  8901. * @return void
  8902. * @throws \ReflectionException
  8903. * @static
  8904. */
  8905. public static function mixin($mixin, $replace = true)
  8906. {
  8907. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  8908. }
  8909. /**
  8910. * Checks if macro is registered.
  8911. *
  8912. * @param string $name
  8913. * @return bool
  8914. * @static
  8915. */
  8916. public static function hasMacro($name)
  8917. {
  8918. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  8919. }
  8920. /**
  8921. * Flush the existing macros.
  8922. *
  8923. * @return void
  8924. * @static
  8925. */
  8926. public static function flushMacros()
  8927. {
  8928. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  8929. }
  8930. }
  8931. /**
  8932. *
  8933. *
  8934. * @method static mixed reset(array $credentials, \Closure $callback)
  8935. * @method static string sendResetLink(array $credentials, \Closure $callback = null)
  8936. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  8937. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8938. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8939. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  8940. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  8941. * @see \Illuminate\Auth\Passwords\PasswordBroker
  8942. */
  8943. class Password {
  8944. /**
  8945. * Attempt to get the broker from the local cache.
  8946. *
  8947. * @param string|null $name
  8948. * @return \Illuminate\Contracts\Auth\PasswordBroker
  8949. * @static
  8950. */
  8951. public static function broker($name = null)
  8952. {
  8953. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8954. return $instance->broker($name);
  8955. }
  8956. /**
  8957. * Get the default password broker name.
  8958. *
  8959. * @return string
  8960. * @static
  8961. */
  8962. public static function getDefaultDriver()
  8963. {
  8964. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8965. return $instance->getDefaultDriver();
  8966. }
  8967. /**
  8968. * Set the default password broker name.
  8969. *
  8970. * @param string $name
  8971. * @return void
  8972. * @static
  8973. */
  8974. public static function setDefaultDriver($name)
  8975. {
  8976. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8977. $instance->setDefaultDriver($name);
  8978. }
  8979. }
  8980. /**
  8981. *
  8982. *
  8983. * @see \Illuminate\Queue\QueueManager
  8984. * @see \Illuminate\Queue\Queue
  8985. */
  8986. class Queue {
  8987. /**
  8988. * Register an event listener for the before job event.
  8989. *
  8990. * @param mixed $callback
  8991. * @return void
  8992. * @static
  8993. */
  8994. public static function before($callback)
  8995. {
  8996. /** @var \Illuminate\Queue\QueueManager $instance */
  8997. $instance->before($callback);
  8998. }
  8999. /**
  9000. * Register an event listener for the after job event.
  9001. *
  9002. * @param mixed $callback
  9003. * @return void
  9004. * @static
  9005. */
  9006. public static function after($callback)
  9007. {
  9008. /** @var \Illuminate\Queue\QueueManager $instance */
  9009. $instance->after($callback);
  9010. }
  9011. /**
  9012. * Register an event listener for the exception occurred job event.
  9013. *
  9014. * @param mixed $callback
  9015. * @return void
  9016. * @static
  9017. */
  9018. public static function exceptionOccurred($callback)
  9019. {
  9020. /** @var \Illuminate\Queue\QueueManager $instance */
  9021. $instance->exceptionOccurred($callback);
  9022. }
  9023. /**
  9024. * Register an event listener for the daemon queue loop.
  9025. *
  9026. * @param mixed $callback
  9027. * @return void
  9028. * @static
  9029. */
  9030. public static function looping($callback)
  9031. {
  9032. /** @var \Illuminate\Queue\QueueManager $instance */
  9033. $instance->looping($callback);
  9034. }
  9035. /**
  9036. * Register an event listener for the failed job event.
  9037. *
  9038. * @param mixed $callback
  9039. * @return void
  9040. * @static
  9041. */
  9042. public static function failing($callback)
  9043. {
  9044. /** @var \Illuminate\Queue\QueueManager $instance */
  9045. $instance->failing($callback);
  9046. }
  9047. /**
  9048. * Register an event listener for the daemon queue stopping.
  9049. *
  9050. * @param mixed $callback
  9051. * @return void
  9052. * @static
  9053. */
  9054. public static function stopping($callback)
  9055. {
  9056. /** @var \Illuminate\Queue\QueueManager $instance */
  9057. $instance->stopping($callback);
  9058. }
  9059. /**
  9060. * Determine if the driver is connected.
  9061. *
  9062. * @param string|null $name
  9063. * @return bool
  9064. * @static
  9065. */
  9066. public static function connected($name = null)
  9067. {
  9068. /** @var \Illuminate\Queue\QueueManager $instance */
  9069. return $instance->connected($name);
  9070. }
  9071. /**
  9072. * Resolve a queue connection instance.
  9073. *
  9074. * @param string|null $name
  9075. * @return \Illuminate\Contracts\Queue\Queue
  9076. * @static
  9077. */
  9078. public static function connection($name = null)
  9079. {
  9080. /** @var \Illuminate\Queue\QueueManager $instance */
  9081. return $instance->connection($name);
  9082. }
  9083. /**
  9084. * Add a queue connection resolver.
  9085. *
  9086. * @param string $driver
  9087. * @param \Closure $resolver
  9088. * @return void
  9089. * @static
  9090. */
  9091. public static function extend($driver, $resolver)
  9092. {
  9093. /** @var \Illuminate\Queue\QueueManager $instance */
  9094. $instance->extend($driver, $resolver);
  9095. }
  9096. /**
  9097. * Add a queue connection resolver.
  9098. *
  9099. * @param string $driver
  9100. * @param \Closure $resolver
  9101. * @return void
  9102. * @static
  9103. */
  9104. public static function addConnector($driver, $resolver)
  9105. {
  9106. /** @var \Illuminate\Queue\QueueManager $instance */
  9107. $instance->addConnector($driver, $resolver);
  9108. }
  9109. /**
  9110. * Get the name of the default queue connection.
  9111. *
  9112. * @return string
  9113. * @static
  9114. */
  9115. public static function getDefaultDriver()
  9116. {
  9117. /** @var \Illuminate\Queue\QueueManager $instance */
  9118. return $instance->getDefaultDriver();
  9119. }
  9120. /**
  9121. * Set the name of the default queue connection.
  9122. *
  9123. * @param string $name
  9124. * @return void
  9125. * @static
  9126. */
  9127. public static function setDefaultDriver($name)
  9128. {
  9129. /** @var \Illuminate\Queue\QueueManager $instance */
  9130. $instance->setDefaultDriver($name);
  9131. }
  9132. /**
  9133. * Get the full name for the given connection.
  9134. *
  9135. * @param string|null $connection
  9136. * @return string
  9137. * @static
  9138. */
  9139. public static function getName($connection = null)
  9140. {
  9141. /** @var \Illuminate\Queue\QueueManager $instance */
  9142. return $instance->getName($connection);
  9143. }
  9144. /**
  9145. * Get the application instance used by the manager.
  9146. *
  9147. * @return \Illuminate\Contracts\Foundation\Application
  9148. * @static
  9149. */
  9150. public static function getApplication()
  9151. {
  9152. /** @var \Illuminate\Queue\QueueManager $instance */
  9153. return $instance->getApplication();
  9154. }
  9155. /**
  9156. * Set the application instance used by the manager.
  9157. *
  9158. * @param \Illuminate\Contracts\Foundation\Application $app
  9159. * @return \Illuminate\Queue\QueueManager
  9160. * @static
  9161. */
  9162. public static function setApplication($app)
  9163. {
  9164. /** @var \Illuminate\Queue\QueueManager $instance */
  9165. return $instance->setApplication($app);
  9166. }
  9167. /**
  9168. * Assert if a job was pushed based on a truth-test callback.
  9169. *
  9170. * @param string|\Closure $job
  9171. * @param callable|int|null $callback
  9172. * @return void
  9173. * @static
  9174. */
  9175. public static function assertPushed($job, $callback = null)
  9176. {
  9177. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9178. $instance->assertPushed($job, $callback);
  9179. }
  9180. /**
  9181. * Assert if a job was pushed based on a truth-test callback.
  9182. *
  9183. * @param string $queue
  9184. * @param string|\Closure $job
  9185. * @param callable|null $callback
  9186. * @return void
  9187. * @static
  9188. */
  9189. public static function assertPushedOn($queue, $job, $callback = null)
  9190. {
  9191. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9192. $instance->assertPushedOn($queue, $job, $callback);
  9193. }
  9194. /**
  9195. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  9196. *
  9197. * @param string $job
  9198. * @param array $expectedChain
  9199. * @param callable|null $callback
  9200. * @return void
  9201. * @static
  9202. */
  9203. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  9204. {
  9205. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9206. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  9207. }
  9208. /**
  9209. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  9210. *
  9211. * @param string $job
  9212. * @param callable|null $callback
  9213. * @return void
  9214. * @static
  9215. */
  9216. public static function assertPushedWithoutChain($job, $callback = null)
  9217. {
  9218. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9219. $instance->assertPushedWithoutChain($job, $callback);
  9220. }
  9221. /**
  9222. * Determine if a job was pushed based on a truth-test callback.
  9223. *
  9224. * @param string|\Closure $job
  9225. * @param callable|null $callback
  9226. * @return void
  9227. * @static
  9228. */
  9229. public static function assertNotPushed($job, $callback = null)
  9230. {
  9231. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9232. $instance->assertNotPushed($job, $callback);
  9233. }
  9234. /**
  9235. * Assert that no jobs were pushed.
  9236. *
  9237. * @return void
  9238. * @static
  9239. */
  9240. public static function assertNothingPushed()
  9241. {
  9242. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9243. $instance->assertNothingPushed();
  9244. }
  9245. /**
  9246. * Get all of the jobs matching a truth-test callback.
  9247. *
  9248. * @param string $job
  9249. * @param callable|null $callback
  9250. * @return \Illuminate\Support\Collection
  9251. * @static
  9252. */
  9253. public static function pushed($job, $callback = null)
  9254. {
  9255. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9256. return $instance->pushed($job, $callback);
  9257. }
  9258. /**
  9259. * Determine if there are any stored jobs for a given class.
  9260. *
  9261. * @param string $job
  9262. * @return bool
  9263. * @static
  9264. */
  9265. public static function hasPushed($job)
  9266. {
  9267. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9268. return $instance->hasPushed($job);
  9269. }
  9270. /**
  9271. * Get the size of the queue.
  9272. *
  9273. * @param string|null $queue
  9274. * @return int
  9275. * @static
  9276. */
  9277. public static function size($queue = null)
  9278. {
  9279. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9280. return $instance->size($queue);
  9281. }
  9282. /**
  9283. * Push a new job onto the queue.
  9284. *
  9285. * @param string|object $job
  9286. * @param mixed $data
  9287. * @param string|null $queue
  9288. * @return mixed
  9289. * @static
  9290. */
  9291. public static function push($job, $data = '', $queue = null)
  9292. {
  9293. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9294. return $instance->push($job, $data, $queue);
  9295. }
  9296. /**
  9297. * Determine if a job should be faked or actually dispatched.
  9298. *
  9299. * @param object $job
  9300. * @return bool
  9301. * @static
  9302. */
  9303. public static function shouldFakeJob($job)
  9304. {
  9305. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9306. return $instance->shouldFakeJob($job);
  9307. }
  9308. /**
  9309. * Push a raw payload onto the queue.
  9310. *
  9311. * @param string $payload
  9312. * @param string|null $queue
  9313. * @param array $options
  9314. * @return mixed
  9315. * @static
  9316. */
  9317. public static function pushRaw($payload, $queue = null, $options = [])
  9318. {
  9319. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9320. return $instance->pushRaw($payload, $queue, $options);
  9321. }
  9322. /**
  9323. * Push a new job onto the queue after (n) seconds.
  9324. *
  9325. * @param \DateTimeInterface|\DateInterval|int $delay
  9326. * @param string|object $job
  9327. * @param mixed $data
  9328. * @param string|null $queue
  9329. * @return mixed
  9330. * @static
  9331. */
  9332. public static function later($delay, $job, $data = '', $queue = null)
  9333. {
  9334. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9335. return $instance->later($delay, $job, $data, $queue);
  9336. }
  9337. /**
  9338. * Push a new job onto the queue.
  9339. *
  9340. * @param string $queue
  9341. * @param string|object $job
  9342. * @param mixed $data
  9343. * @return mixed
  9344. * @static
  9345. */
  9346. public static function pushOn($queue, $job, $data = '')
  9347. {
  9348. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9349. return $instance->pushOn($queue, $job, $data);
  9350. }
  9351. /**
  9352. * Push a new job onto a specific queue after (n) seconds.
  9353. *
  9354. * @param string $queue
  9355. * @param \DateTimeInterface|\DateInterval|int $delay
  9356. * @param string|object $job
  9357. * @param mixed $data
  9358. * @return mixed
  9359. * @static
  9360. */
  9361. public static function laterOn($queue, $delay, $job, $data = '')
  9362. {
  9363. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9364. return $instance->laterOn($queue, $delay, $job, $data);
  9365. }
  9366. /**
  9367. * Pop the next job off of the queue.
  9368. *
  9369. * @param string|null $queue
  9370. * @return \Illuminate\Contracts\Queue\Job|null
  9371. * @static
  9372. */
  9373. public static function pop($queue = null)
  9374. {
  9375. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9376. return $instance->pop($queue);
  9377. }
  9378. /**
  9379. * Push an array of jobs onto the queue.
  9380. *
  9381. * @param array $jobs
  9382. * @param mixed $data
  9383. * @param string|null $queue
  9384. * @return mixed
  9385. * @static
  9386. */
  9387. public static function bulk($jobs, $data = '', $queue = null)
  9388. {
  9389. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9390. return $instance->bulk($jobs, $data, $queue);
  9391. }
  9392. /**
  9393. * Get the jobs that have been pushed.
  9394. *
  9395. * @return array
  9396. * @static
  9397. */
  9398. public static function pushedJobs()
  9399. {
  9400. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9401. return $instance->pushedJobs();
  9402. }
  9403. /**
  9404. * Get the connection name for the queue.
  9405. *
  9406. * @return string
  9407. * @static
  9408. */
  9409. public static function getConnectionName()
  9410. {
  9411. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9412. return $instance->getConnectionName();
  9413. }
  9414. /**
  9415. * Set the connection name for the queue.
  9416. *
  9417. * @param string $name
  9418. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  9419. * @static
  9420. */
  9421. public static function setConnectionName($name)
  9422. {
  9423. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  9424. return $instance->setConnectionName($name);
  9425. }
  9426. /**
  9427. * Get the backoff for an object-based queue handler.
  9428. *
  9429. * @param mixed $job
  9430. * @return mixed
  9431. * @static
  9432. */
  9433. public static function getJobBackoff($job)
  9434. { //Method inherited from \Illuminate\Queue\Queue
  9435. /** @var \Illuminate\Queue\SyncQueue $instance */
  9436. return $instance->getJobBackoff($job);
  9437. }
  9438. /**
  9439. * Get the expiration timestamp for an object-based queue handler.
  9440. *
  9441. * @param mixed $job
  9442. * @return mixed
  9443. * @static
  9444. */
  9445. public static function getJobExpiration($job)
  9446. { //Method inherited from \Illuminate\Queue\Queue
  9447. /** @var \Illuminate\Queue\SyncQueue $instance */
  9448. return $instance->getJobExpiration($job);
  9449. }
  9450. /**
  9451. * Register a callback to be executed when creating job payloads.
  9452. *
  9453. * @param callable|null $callback
  9454. * @return void
  9455. * @static
  9456. */
  9457. public static function createPayloadUsing($callback)
  9458. { //Method inherited from \Illuminate\Queue\Queue
  9459. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  9460. }
  9461. /**
  9462. * Get the container instance being used by the connection.
  9463. *
  9464. * @return \Illuminate\Container\Container
  9465. * @static
  9466. */
  9467. public static function getContainer()
  9468. { //Method inherited from \Illuminate\Queue\Queue
  9469. /** @var \Illuminate\Queue\SyncQueue $instance */
  9470. return $instance->getContainer();
  9471. }
  9472. /**
  9473. * Set the IoC container instance.
  9474. *
  9475. * @param \Illuminate\Container\Container $container
  9476. * @return void
  9477. * @static
  9478. */
  9479. public static function setContainer($container)
  9480. { //Method inherited from \Illuminate\Queue\Queue
  9481. /** @var \Illuminate\Queue\SyncQueue $instance */
  9482. $instance->setContainer($container);
  9483. }
  9484. }
  9485. /**
  9486. *
  9487. *
  9488. * @see \Illuminate\Cache\RateLimiter
  9489. */
  9490. class RateLimiter {
  9491. /**
  9492. * Register a named limiter configuration.
  9493. *
  9494. * @param string $name
  9495. * @param \Closure $callback
  9496. * @return \Illuminate\Cache\RateLimiter
  9497. * @static
  9498. */
  9499. public static function for($name, $callback)
  9500. {
  9501. /** @var \Illuminate\Cache\RateLimiter $instance */
  9502. return $instance->for($name, $callback);
  9503. }
  9504. /**
  9505. * Get the given named rate limiter.
  9506. *
  9507. * @param string $name
  9508. * @return \Closure
  9509. * @static
  9510. */
  9511. public static function limiter($name)
  9512. {
  9513. /** @var \Illuminate\Cache\RateLimiter $instance */
  9514. return $instance->limiter($name);
  9515. }
  9516. /**
  9517. * Attempts to execute a callback if it's not limited.
  9518. *
  9519. * @param string $key
  9520. * @param int $maxAttempts
  9521. * @param \Closure $callback
  9522. * @param int $decaySeconds
  9523. * @return mixed
  9524. * @static
  9525. */
  9526. public static function attempt($key, $maxAttempts, $callback, $decaySeconds = 60)
  9527. {
  9528. /** @var \Illuminate\Cache\RateLimiter $instance */
  9529. return $instance->attempt($key, $maxAttempts, $callback, $decaySeconds);
  9530. }
  9531. /**
  9532. * Determine if the given key has been "accessed" too many times.
  9533. *
  9534. * @param string $key
  9535. * @param int $maxAttempts
  9536. * @return bool
  9537. * @static
  9538. */
  9539. public static function tooManyAttempts($key, $maxAttempts)
  9540. {
  9541. /** @var \Illuminate\Cache\RateLimiter $instance */
  9542. return $instance->tooManyAttempts($key, $maxAttempts);
  9543. }
  9544. /**
  9545. * Increment the counter for a given key for a given decay time.
  9546. *
  9547. * @param string $key
  9548. * @param int $decaySeconds
  9549. * @return int
  9550. * @static
  9551. */
  9552. public static function hit($key, $decaySeconds = 60)
  9553. {
  9554. /** @var \Illuminate\Cache\RateLimiter $instance */
  9555. return $instance->hit($key, $decaySeconds);
  9556. }
  9557. /**
  9558. * Get the number of attempts for the given key.
  9559. *
  9560. * @param string $key
  9561. * @return mixed
  9562. * @static
  9563. */
  9564. public static function attempts($key)
  9565. {
  9566. /** @var \Illuminate\Cache\RateLimiter $instance */
  9567. return $instance->attempts($key);
  9568. }
  9569. /**
  9570. * Reset the number of attempts for the given key.
  9571. *
  9572. * @param string $key
  9573. * @return mixed
  9574. * @static
  9575. */
  9576. public static function resetAttempts($key)
  9577. {
  9578. /** @var \Illuminate\Cache\RateLimiter $instance */
  9579. return $instance->resetAttempts($key);
  9580. }
  9581. /**
  9582. * Get the number of retries left for the given key.
  9583. *
  9584. * @param string $key
  9585. * @param int $maxAttempts
  9586. * @return int
  9587. * @static
  9588. */
  9589. public static function remaining($key, $maxAttempts)
  9590. {
  9591. /** @var \Illuminate\Cache\RateLimiter $instance */
  9592. return $instance->remaining($key, $maxAttempts);
  9593. }
  9594. /**
  9595. * Get the number of retries left for the given key.
  9596. *
  9597. * @param string $key
  9598. * @param int $maxAttempts
  9599. * @return int
  9600. * @static
  9601. */
  9602. public static function retriesLeft($key, $maxAttempts)
  9603. {
  9604. /** @var \Illuminate\Cache\RateLimiter $instance */
  9605. return $instance->retriesLeft($key, $maxAttempts);
  9606. }
  9607. /**
  9608. * Clear the hits and lockout timer for the given key.
  9609. *
  9610. * @param string $key
  9611. * @return void
  9612. * @static
  9613. */
  9614. public static function clear($key)
  9615. {
  9616. /** @var \Illuminate\Cache\RateLimiter $instance */
  9617. $instance->clear($key);
  9618. }
  9619. /**
  9620. * Get the number of seconds until the "key" is accessible again.
  9621. *
  9622. * @param string $key
  9623. * @return int
  9624. * @static
  9625. */
  9626. public static function availableIn($key)
  9627. {
  9628. /** @var \Illuminate\Cache\RateLimiter $instance */
  9629. return $instance->availableIn($key);
  9630. }
  9631. /**
  9632. * Clean the rate limiter key from unicode characters.
  9633. *
  9634. * @param string $key
  9635. * @return string
  9636. * @static
  9637. */
  9638. public static function cleanRateLimiterKey($key)
  9639. {
  9640. /** @var \Illuminate\Cache\RateLimiter $instance */
  9641. return $instance->cleanRateLimiterKey($key);
  9642. }
  9643. }
  9644. /**
  9645. *
  9646. *
  9647. * @see \Illuminate\Routing\Redirector
  9648. */
  9649. class Redirect {
  9650. /**
  9651. * Create a new redirect response to the "home" route.
  9652. *
  9653. * @param int $status
  9654. * @return \Illuminate\Http\RedirectResponse
  9655. * @deprecated Will be removed in a future Laravel version.
  9656. * @static
  9657. */
  9658. public static function home($status = 302)
  9659. {
  9660. /** @var \Illuminate\Routing\Redirector $instance */
  9661. return $instance->home($status);
  9662. }
  9663. /**
  9664. * Create a new redirect response to the previous location.
  9665. *
  9666. * @param int $status
  9667. * @param array $headers
  9668. * @param mixed $fallback
  9669. * @return \Illuminate\Http\RedirectResponse
  9670. * @static
  9671. */
  9672. public static function back($status = 302, $headers = [], $fallback = false)
  9673. {
  9674. /** @var \Illuminate\Routing\Redirector $instance */
  9675. return $instance->back($status, $headers, $fallback);
  9676. }
  9677. /**
  9678. * Create a new redirect response to the current URI.
  9679. *
  9680. * @param int $status
  9681. * @param array $headers
  9682. * @return \Illuminate\Http\RedirectResponse
  9683. * @static
  9684. */
  9685. public static function refresh($status = 302, $headers = [])
  9686. {
  9687. /** @var \Illuminate\Routing\Redirector $instance */
  9688. return $instance->refresh($status, $headers);
  9689. }
  9690. /**
  9691. * Create a new redirect response, while putting the current URL in the session.
  9692. *
  9693. * @param string $path
  9694. * @param int $status
  9695. * @param array $headers
  9696. * @param bool|null $secure
  9697. * @return \Illuminate\Http\RedirectResponse
  9698. * @static
  9699. */
  9700. public static function guest($path, $status = 302, $headers = [], $secure = null)
  9701. {
  9702. /** @var \Illuminate\Routing\Redirector $instance */
  9703. return $instance->guest($path, $status, $headers, $secure);
  9704. }
  9705. /**
  9706. * Create a new redirect response to the previously intended location.
  9707. *
  9708. * @param mixed $default
  9709. * @param int $status
  9710. * @param array $headers
  9711. * @param bool|null $secure
  9712. * @return \Illuminate\Http\RedirectResponse
  9713. * @static
  9714. */
  9715. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  9716. {
  9717. /** @var \Illuminate\Routing\Redirector $instance */
  9718. return $instance->intended($default, $status, $headers, $secure);
  9719. }
  9720. /**
  9721. * Set the intended url.
  9722. *
  9723. * @param string $url
  9724. * @return \Illuminate\Routing\Redirector
  9725. * @static
  9726. */
  9727. public static function setIntendedUrl($url)
  9728. {
  9729. /** @var \Illuminate\Routing\Redirector $instance */
  9730. return $instance->setIntendedUrl($url);
  9731. }
  9732. /**
  9733. * Create a new redirect response to the given path.
  9734. *
  9735. * @param string $path
  9736. * @param int $status
  9737. * @param array $headers
  9738. * @param bool|null $secure
  9739. * @return \Illuminate\Http\RedirectResponse
  9740. * @static
  9741. */
  9742. public static function to($path, $status = 302, $headers = [], $secure = null)
  9743. {
  9744. /** @var \Illuminate\Routing\Redirector $instance */
  9745. return $instance->to($path, $status, $headers, $secure);
  9746. }
  9747. /**
  9748. * Create a new redirect response to an external URL (no validation).
  9749. *
  9750. * @param string $path
  9751. * @param int $status
  9752. * @param array $headers
  9753. * @return \Illuminate\Http\RedirectResponse
  9754. * @static
  9755. */
  9756. public static function away($path, $status = 302, $headers = [])
  9757. {
  9758. /** @var \Illuminate\Routing\Redirector $instance */
  9759. return $instance->away($path, $status, $headers);
  9760. }
  9761. /**
  9762. * Create a new redirect response to the given HTTPS path.
  9763. *
  9764. * @param string $path
  9765. * @param int $status
  9766. * @param array $headers
  9767. * @return \Illuminate\Http\RedirectResponse
  9768. * @static
  9769. */
  9770. public static function secure($path, $status = 302, $headers = [])
  9771. {
  9772. /** @var \Illuminate\Routing\Redirector $instance */
  9773. return $instance->secure($path, $status, $headers);
  9774. }
  9775. /**
  9776. * Create a new redirect response to a named route.
  9777. *
  9778. * @param string $route
  9779. * @param mixed $parameters
  9780. * @param int $status
  9781. * @param array $headers
  9782. * @return \Illuminate\Http\RedirectResponse
  9783. * @static
  9784. */
  9785. public static function route($route, $parameters = [], $status = 302, $headers = [])
  9786. {
  9787. /** @var \Illuminate\Routing\Redirector $instance */
  9788. return $instance->route($route, $parameters, $status, $headers);
  9789. }
  9790. /**
  9791. * Create a new redirect response to a signed named route.
  9792. *
  9793. * @param string $route
  9794. * @param mixed $parameters
  9795. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9796. * @param int $status
  9797. * @param array $headers
  9798. * @return \Illuminate\Http\RedirectResponse
  9799. * @static
  9800. */
  9801. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  9802. {
  9803. /** @var \Illuminate\Routing\Redirector $instance */
  9804. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  9805. }
  9806. /**
  9807. * Create a new redirect response to a signed named route.
  9808. *
  9809. * @param string $route
  9810. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9811. * @param mixed $parameters
  9812. * @param int $status
  9813. * @param array $headers
  9814. * @return \Illuminate\Http\RedirectResponse
  9815. * @static
  9816. */
  9817. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  9818. {
  9819. /** @var \Illuminate\Routing\Redirector $instance */
  9820. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  9821. }
  9822. /**
  9823. * Create a new redirect response to a controller action.
  9824. *
  9825. * @param string|array $action
  9826. * @param mixed $parameters
  9827. * @param int $status
  9828. * @param array $headers
  9829. * @return \Illuminate\Http\RedirectResponse
  9830. * @static
  9831. */
  9832. public static function action($action, $parameters = [], $status = 302, $headers = [])
  9833. {
  9834. /** @var \Illuminate\Routing\Redirector $instance */
  9835. return $instance->action($action, $parameters, $status, $headers);
  9836. }
  9837. /**
  9838. * Get the URL generator instance.
  9839. *
  9840. * @return \Illuminate\Routing\UrlGenerator
  9841. * @static
  9842. */
  9843. public static function getUrlGenerator()
  9844. {
  9845. /** @var \Illuminate\Routing\Redirector $instance */
  9846. return $instance->getUrlGenerator();
  9847. }
  9848. /**
  9849. * Set the active session store.
  9850. *
  9851. * @param \Illuminate\Session\Store $session
  9852. * @return void
  9853. * @static
  9854. */
  9855. public static function setSession($session)
  9856. {
  9857. /** @var \Illuminate\Routing\Redirector $instance */
  9858. $instance->setSession($session);
  9859. }
  9860. /**
  9861. * Register a custom macro.
  9862. *
  9863. * @param string $name
  9864. * @param object|callable $macro
  9865. * @return void
  9866. * @static
  9867. */
  9868. public static function macro($name, $macro)
  9869. {
  9870. \Illuminate\Routing\Redirector::macro($name, $macro);
  9871. }
  9872. /**
  9873. * Mix another object into the class.
  9874. *
  9875. * @param object $mixin
  9876. * @param bool $replace
  9877. * @return void
  9878. * @throws \ReflectionException
  9879. * @static
  9880. */
  9881. public static function mixin($mixin, $replace = true)
  9882. {
  9883. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  9884. }
  9885. /**
  9886. * Checks if macro is registered.
  9887. *
  9888. * @param string $name
  9889. * @return bool
  9890. * @static
  9891. */
  9892. public static function hasMacro($name)
  9893. {
  9894. return \Illuminate\Routing\Redirector::hasMacro($name);
  9895. }
  9896. /**
  9897. * Flush the existing macros.
  9898. *
  9899. * @return void
  9900. * @static
  9901. */
  9902. public static function flushMacros()
  9903. {
  9904. \Illuminate\Routing\Redirector::flushMacros();
  9905. }
  9906. }
  9907. /**
  9908. *
  9909. *
  9910. * @method static mixed filterFiles(mixed $files)
  9911. * @see \Illuminate\Http\Request
  9912. */
  9913. class Request {
  9914. /**
  9915. * Create a new Illuminate HTTP request from server variables.
  9916. *
  9917. * @return static
  9918. * @static
  9919. */
  9920. public static function capture()
  9921. {
  9922. return \Illuminate\Http\Request::capture();
  9923. }
  9924. /**
  9925. * Return the Request instance.
  9926. *
  9927. * @return \Illuminate\Http\Request
  9928. * @static
  9929. */
  9930. public static function instance()
  9931. {
  9932. /** @var \Illuminate\Http\Request $instance */
  9933. return $instance->instance();
  9934. }
  9935. /**
  9936. * Get the request method.
  9937. *
  9938. * @return string
  9939. * @static
  9940. */
  9941. public static function method()
  9942. {
  9943. /** @var \Illuminate\Http\Request $instance */
  9944. return $instance->method();
  9945. }
  9946. /**
  9947. * Get the root URL for the application.
  9948. *
  9949. * @return string
  9950. * @static
  9951. */
  9952. public static function root()
  9953. {
  9954. /** @var \Illuminate\Http\Request $instance */
  9955. return $instance->root();
  9956. }
  9957. /**
  9958. * Get the URL (no query string) for the request.
  9959. *
  9960. * @return string
  9961. * @static
  9962. */
  9963. public static function url()
  9964. {
  9965. /** @var \Illuminate\Http\Request $instance */
  9966. return $instance->url();
  9967. }
  9968. /**
  9969. * Get the full URL for the request.
  9970. *
  9971. * @return string
  9972. * @static
  9973. */
  9974. public static function fullUrl()
  9975. {
  9976. /** @var \Illuminate\Http\Request $instance */
  9977. return $instance->fullUrl();
  9978. }
  9979. /**
  9980. * Get the full URL for the request with the added query string parameters.
  9981. *
  9982. * @param array $query
  9983. * @return string
  9984. * @static
  9985. */
  9986. public static function fullUrlWithQuery($query)
  9987. {
  9988. /** @var \Illuminate\Http\Request $instance */
  9989. return $instance->fullUrlWithQuery($query);
  9990. }
  9991. /**
  9992. * Get the full URL for the request without the given query string parameters.
  9993. *
  9994. * @param array|string $keys
  9995. * @return string
  9996. * @static
  9997. */
  9998. public static function fullUrlWithoutQuery($keys)
  9999. {
  10000. /** @var \Illuminate\Http\Request $instance */
  10001. return $instance->fullUrlWithoutQuery($keys);
  10002. }
  10003. /**
  10004. * Get the current path info for the request.
  10005. *
  10006. * @return string
  10007. * @static
  10008. */
  10009. public static function path()
  10010. {
  10011. /** @var \Illuminate\Http\Request $instance */
  10012. return $instance->path();
  10013. }
  10014. /**
  10015. * Get the current decoded path info for the request.
  10016. *
  10017. * @return string
  10018. * @static
  10019. */
  10020. public static function decodedPath()
  10021. {
  10022. /** @var \Illuminate\Http\Request $instance */
  10023. return $instance->decodedPath();
  10024. }
  10025. /**
  10026. * Get a segment from the URI (1 based index).
  10027. *
  10028. * @param int $index
  10029. * @param string|null $default
  10030. * @return string|null
  10031. * @static
  10032. */
  10033. public static function segment($index, $default = null)
  10034. {
  10035. /** @var \Illuminate\Http\Request $instance */
  10036. return $instance->segment($index, $default);
  10037. }
  10038. /**
  10039. * Get all of the segments for the request path.
  10040. *
  10041. * @return array
  10042. * @static
  10043. */
  10044. public static function segments()
  10045. {
  10046. /** @var \Illuminate\Http\Request $instance */
  10047. return $instance->segments();
  10048. }
  10049. /**
  10050. * Determine if the current request URI matches a pattern.
  10051. *
  10052. * @param mixed $patterns
  10053. * @return bool
  10054. * @static
  10055. */
  10056. public static function is(...$patterns)
  10057. {
  10058. /** @var \Illuminate\Http\Request $instance */
  10059. return $instance->is(...$patterns);
  10060. }
  10061. /**
  10062. * Determine if the route name matches a given pattern.
  10063. *
  10064. * @param mixed $patterns
  10065. * @return bool
  10066. * @static
  10067. */
  10068. public static function routeIs(...$patterns)
  10069. {
  10070. /** @var \Illuminate\Http\Request $instance */
  10071. return $instance->routeIs(...$patterns);
  10072. }
  10073. /**
  10074. * Determine if the current request URL and query string match a pattern.
  10075. *
  10076. * @param mixed $patterns
  10077. * @return bool
  10078. * @static
  10079. */
  10080. public static function fullUrlIs(...$patterns)
  10081. {
  10082. /** @var \Illuminate\Http\Request $instance */
  10083. return $instance->fullUrlIs(...$patterns);
  10084. }
  10085. /**
  10086. * Get the host name.
  10087. *
  10088. * @return string
  10089. * @static
  10090. */
  10091. public static function host()
  10092. {
  10093. /** @var \Illuminate\Http\Request $instance */
  10094. return $instance->host();
  10095. }
  10096. /**
  10097. * Get the HTTP host being requested.
  10098. *
  10099. * @return string
  10100. * @static
  10101. */
  10102. public static function httpHost()
  10103. {
  10104. /** @var \Illuminate\Http\Request $instance */
  10105. return $instance->httpHost();
  10106. }
  10107. /**
  10108. * Get the scheme and HTTP host.
  10109. *
  10110. * @return string
  10111. * @static
  10112. */
  10113. public static function schemeAndHttpHost()
  10114. {
  10115. /** @var \Illuminate\Http\Request $instance */
  10116. return $instance->schemeAndHttpHost();
  10117. }
  10118. /**
  10119. * Determine if the request is the result of an AJAX call.
  10120. *
  10121. * @return bool
  10122. * @static
  10123. */
  10124. public static function ajax()
  10125. {
  10126. /** @var \Illuminate\Http\Request $instance */
  10127. return $instance->ajax();
  10128. }
  10129. /**
  10130. * Determine if the request is the result of a PJAX call.
  10131. *
  10132. * @return bool
  10133. * @static
  10134. */
  10135. public static function pjax()
  10136. {
  10137. /** @var \Illuminate\Http\Request $instance */
  10138. return $instance->pjax();
  10139. }
  10140. /**
  10141. * Determine if the request is the result of a prefetch call.
  10142. *
  10143. * @return bool
  10144. * @static
  10145. */
  10146. public static function prefetch()
  10147. {
  10148. /** @var \Illuminate\Http\Request $instance */
  10149. return $instance->prefetch();
  10150. }
  10151. /**
  10152. * Determine if the request is over HTTPS.
  10153. *
  10154. * @return bool
  10155. * @static
  10156. */
  10157. public static function secure()
  10158. {
  10159. /** @var \Illuminate\Http\Request $instance */
  10160. return $instance->secure();
  10161. }
  10162. /**
  10163. * Get the client IP address.
  10164. *
  10165. * @return string|null
  10166. * @static
  10167. */
  10168. public static function ip()
  10169. {
  10170. /** @var \Illuminate\Http\Request $instance */
  10171. return $instance->ip();
  10172. }
  10173. /**
  10174. * Get the client IP addresses.
  10175. *
  10176. * @return array
  10177. * @static
  10178. */
  10179. public static function ips()
  10180. {
  10181. /** @var \Illuminate\Http\Request $instance */
  10182. return $instance->ips();
  10183. }
  10184. /**
  10185. * Get the client user agent.
  10186. *
  10187. * @return string|null
  10188. * @static
  10189. */
  10190. public static function userAgent()
  10191. {
  10192. /** @var \Illuminate\Http\Request $instance */
  10193. return $instance->userAgent();
  10194. }
  10195. /**
  10196. * Merge new input into the current request's input array.
  10197. *
  10198. * @param array $input
  10199. * @return \Illuminate\Http\Request
  10200. * @static
  10201. */
  10202. public static function merge($input)
  10203. {
  10204. /** @var \Illuminate\Http\Request $instance */
  10205. return $instance->merge($input);
  10206. }
  10207. /**
  10208. * Merge new input into the request's input, but only when that key is missing from the request.
  10209. *
  10210. * @param array $input
  10211. * @return \Illuminate\Http\Request
  10212. * @static
  10213. */
  10214. public static function mergeIfMissing($input)
  10215. {
  10216. /** @var \Illuminate\Http\Request $instance */
  10217. return $instance->mergeIfMissing($input);
  10218. }
  10219. /**
  10220. * Replace the input for the current request.
  10221. *
  10222. * @param array $input
  10223. * @return \Illuminate\Http\Request
  10224. * @static
  10225. */
  10226. public static function replace($input)
  10227. {
  10228. /** @var \Illuminate\Http\Request $instance */
  10229. return $instance->replace($input);
  10230. }
  10231. /**
  10232. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  10233. *
  10234. * Instead, you may use the "input" method.
  10235. *
  10236. * @param string $key
  10237. * @param mixed $default
  10238. * @return mixed
  10239. * @static
  10240. */
  10241. public static function get($key, $default = null)
  10242. {
  10243. /** @var \Illuminate\Http\Request $instance */
  10244. return $instance->get($key, $default);
  10245. }
  10246. /**
  10247. * Get the JSON payload for the request.
  10248. *
  10249. * @param string|null $key
  10250. * @param mixed $default
  10251. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  10252. * @static
  10253. */
  10254. public static function json($key = null, $default = null)
  10255. {
  10256. /** @var \Illuminate\Http\Request $instance */
  10257. return $instance->json($key, $default);
  10258. }
  10259. /**
  10260. * Create a new request instance from the given Laravel request.
  10261. *
  10262. * @param \Illuminate\Http\Request $from
  10263. * @param \Illuminate\Http\Request|null $to
  10264. * @return static
  10265. * @static
  10266. */
  10267. public static function createFrom($from, $to = null)
  10268. {
  10269. return \Illuminate\Http\Request::createFrom($from, $to);
  10270. }
  10271. /**
  10272. * Create an Illuminate request from a Symfony instance.
  10273. *
  10274. * @param \Symfony\Component\HttpFoundation\Request $request
  10275. * @return static
  10276. * @static
  10277. */
  10278. public static function createFromBase($request)
  10279. {
  10280. return \Illuminate\Http\Request::createFromBase($request);
  10281. }
  10282. /**
  10283. * Clones a request and overrides some of its parameters.
  10284. *
  10285. * @return static
  10286. * @param array $query The GET parameters
  10287. * @param array $request The POST parameters
  10288. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  10289. * @param array $cookies The COOKIE parameters
  10290. * @param array $files The FILES parameters
  10291. * @param array $server The SERVER parameters
  10292. * @static
  10293. */
  10294. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  10295. {
  10296. /** @var \Illuminate\Http\Request $instance */
  10297. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  10298. }
  10299. /**
  10300. * Whether the request contains a Session object.
  10301. *
  10302. * This method does not give any information about the state of the session object,
  10303. * like whether the session is started or not. It is just a way to check if this Request
  10304. * is associated with a Session instance.
  10305. *
  10306. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  10307. * @static
  10308. */
  10309. public static function hasSession($skipIfUninitialized = false)
  10310. {
  10311. /** @var \Illuminate\Http\Request $instance */
  10312. return $instance->hasSession($skipIfUninitialized);
  10313. }
  10314. /**
  10315. * Gets the Session.
  10316. *
  10317. * @static
  10318. */
  10319. public static function getSession()
  10320. {
  10321. /** @var \Illuminate\Http\Request $instance */
  10322. return $instance->getSession();
  10323. }
  10324. /**
  10325. * Get the session associated with the request.
  10326. *
  10327. * @return \Illuminate\Contracts\Session\Session
  10328. * @throws \RuntimeException
  10329. * @static
  10330. */
  10331. public static function session()
  10332. {
  10333. /** @var \Illuminate\Http\Request $instance */
  10334. return $instance->session();
  10335. }
  10336. /**
  10337. * Set the session instance on the request.
  10338. *
  10339. * @param \Illuminate\Contracts\Session\Session $session
  10340. * @return void
  10341. * @static
  10342. */
  10343. public static function setLaravelSession($session)
  10344. {
  10345. /** @var \Illuminate\Http\Request $instance */
  10346. $instance->setLaravelSession($session);
  10347. }
  10348. /**
  10349. * Get the user making the request.
  10350. *
  10351. * @param string|null $guard
  10352. * @return mixed
  10353. * @static
  10354. */
  10355. public static function user($guard = null)
  10356. {
  10357. /** @var \Illuminate\Http\Request $instance */
  10358. return $instance->user($guard);
  10359. }
  10360. /**
  10361. * Get the route handling the request.
  10362. *
  10363. * @param string|null $param
  10364. * @param mixed $default
  10365. * @return \Illuminate\Routing\Route|object|string|null
  10366. * @static
  10367. */
  10368. public static function route($param = null, $default = null)
  10369. {
  10370. /** @var \Illuminate\Http\Request $instance */
  10371. return $instance->route($param, $default);
  10372. }
  10373. /**
  10374. * Get a unique fingerprint for the request / route / IP address.
  10375. *
  10376. * @return string
  10377. * @throws \RuntimeException
  10378. * @static
  10379. */
  10380. public static function fingerprint()
  10381. {
  10382. /** @var \Illuminate\Http\Request $instance */
  10383. return $instance->fingerprint();
  10384. }
  10385. /**
  10386. * Set the JSON payload for the request.
  10387. *
  10388. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  10389. * @return \Illuminate\Http\Request
  10390. * @static
  10391. */
  10392. public static function setJson($json)
  10393. {
  10394. /** @var \Illuminate\Http\Request $instance */
  10395. return $instance->setJson($json);
  10396. }
  10397. /**
  10398. * Get the user resolver callback.
  10399. *
  10400. * @return \Closure
  10401. * @static
  10402. */
  10403. public static function getUserResolver()
  10404. {
  10405. /** @var \Illuminate\Http\Request $instance */
  10406. return $instance->getUserResolver();
  10407. }
  10408. /**
  10409. * Set the user resolver callback.
  10410. *
  10411. * @param \Closure $callback
  10412. * @return \Illuminate\Http\Request
  10413. * @static
  10414. */
  10415. public static function setUserResolver($callback)
  10416. {
  10417. /** @var \Illuminate\Http\Request $instance */
  10418. return $instance->setUserResolver($callback);
  10419. }
  10420. /**
  10421. * Get the route resolver callback.
  10422. *
  10423. * @return \Closure
  10424. * @static
  10425. */
  10426. public static function getRouteResolver()
  10427. {
  10428. /** @var \Illuminate\Http\Request $instance */
  10429. return $instance->getRouteResolver();
  10430. }
  10431. /**
  10432. * Set the route resolver callback.
  10433. *
  10434. * @param \Closure $callback
  10435. * @return \Illuminate\Http\Request
  10436. * @static
  10437. */
  10438. public static function setRouteResolver($callback)
  10439. {
  10440. /** @var \Illuminate\Http\Request $instance */
  10441. return $instance->setRouteResolver($callback);
  10442. }
  10443. /**
  10444. * Get all of the input and files for the request.
  10445. *
  10446. * @return array
  10447. * @static
  10448. */
  10449. public static function toArray()
  10450. {
  10451. /** @var \Illuminate\Http\Request $instance */
  10452. return $instance->toArray();
  10453. }
  10454. /**
  10455. * Determine if the given offset exists.
  10456. *
  10457. * @param string $offset
  10458. * @return bool
  10459. * @static
  10460. */
  10461. public static function offsetExists($offset)
  10462. {
  10463. /** @var \Illuminate\Http\Request $instance */
  10464. return $instance->offsetExists($offset);
  10465. }
  10466. /**
  10467. * Get the value at the given offset.
  10468. *
  10469. * @param string $offset
  10470. * @return mixed
  10471. * @static
  10472. */
  10473. public static function offsetGet($offset)
  10474. {
  10475. /** @var \Illuminate\Http\Request $instance */
  10476. return $instance->offsetGet($offset);
  10477. }
  10478. /**
  10479. * Set the value at the given offset.
  10480. *
  10481. * @param string $offset
  10482. * @param mixed $value
  10483. * @return void
  10484. * @static
  10485. */
  10486. public static function offsetSet($offset, $value)
  10487. {
  10488. /** @var \Illuminate\Http\Request $instance */
  10489. $instance->offsetSet($offset, $value);
  10490. }
  10491. /**
  10492. * Remove the value at the given offset.
  10493. *
  10494. * @param string $offset
  10495. * @return void
  10496. * @static
  10497. */
  10498. public static function offsetUnset($offset)
  10499. {
  10500. /** @var \Illuminate\Http\Request $instance */
  10501. $instance->offsetUnset($offset);
  10502. }
  10503. /**
  10504. * Sets the parameters for this request.
  10505. *
  10506. * This method also re-initializes all properties.
  10507. *
  10508. * @param array $query The GET parameters
  10509. * @param array $request The POST parameters
  10510. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  10511. * @param array $cookies The COOKIE parameters
  10512. * @param array $files The FILES parameters
  10513. * @param array $server The SERVER parameters
  10514. * @param string|resource|null $content The raw body data
  10515. * @static
  10516. */
  10517. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  10518. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10519. /** @var \Illuminate\Http\Request $instance */
  10520. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  10521. }
  10522. /**
  10523. * Creates a new request with values from PHP's super globals.
  10524. *
  10525. * @static
  10526. */
  10527. public static function createFromGlobals()
  10528. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10529. return \Illuminate\Http\Request::createFromGlobals();
  10530. }
  10531. /**
  10532. * Creates a Request based on a given URI and configuration.
  10533. *
  10534. * The information contained in the URI always take precedence
  10535. * over the other information (server and parameters).
  10536. *
  10537. * @param string $uri The URI
  10538. * @param string $method The HTTP method
  10539. * @param array $parameters The query (GET) or request (POST) parameters
  10540. * @param array $cookies The request cookies ($_COOKIE)
  10541. * @param array $files The request files ($_FILES)
  10542. * @param array $server The server parameters ($_SERVER)
  10543. * @param string|resource|null $content The raw body data
  10544. * @static
  10545. */
  10546. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  10547. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10548. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  10549. }
  10550. /**
  10551. * Sets a callable able to create a Request instance.
  10552. *
  10553. * This is mainly useful when you need to override the Request class
  10554. * to keep BC with an existing system. It should not be used for any
  10555. * other purpose.
  10556. *
  10557. * @static
  10558. */
  10559. public static function setFactory($callable)
  10560. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10561. return \Illuminate\Http\Request::setFactory($callable);
  10562. }
  10563. /**
  10564. * Overrides the PHP global variables according to this request instance.
  10565. *
  10566. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  10567. * $_FILES is never overridden, see rfc1867
  10568. *
  10569. * @static
  10570. */
  10571. public static function overrideGlobals()
  10572. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10573. /** @var \Illuminate\Http\Request $instance */
  10574. return $instance->overrideGlobals();
  10575. }
  10576. /**
  10577. * Sets a list of trusted proxies.
  10578. *
  10579. * You should only list the reverse proxies that you manage directly.
  10580. *
  10581. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  10582. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  10583. * @static
  10584. */
  10585. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  10586. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10587. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  10588. }
  10589. /**
  10590. * Gets the list of trusted proxies.
  10591. *
  10592. * @static
  10593. */
  10594. public static function getTrustedProxies()
  10595. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10596. return \Illuminate\Http\Request::getTrustedProxies();
  10597. }
  10598. /**
  10599. * Gets the set of trusted headers from trusted proxies.
  10600. *
  10601. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  10602. * @static
  10603. */
  10604. public static function getTrustedHeaderSet()
  10605. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10606. return \Illuminate\Http\Request::getTrustedHeaderSet();
  10607. }
  10608. /**
  10609. * Sets a list of trusted host patterns.
  10610. *
  10611. * You should only list the hosts you manage using regexs.
  10612. *
  10613. * @param array $hostPatterns A list of trusted host patterns
  10614. * @static
  10615. */
  10616. public static function setTrustedHosts($hostPatterns)
  10617. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10618. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  10619. }
  10620. /**
  10621. * Gets the list of trusted host patterns.
  10622. *
  10623. * @static
  10624. */
  10625. public static function getTrustedHosts()
  10626. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10627. return \Illuminate\Http\Request::getTrustedHosts();
  10628. }
  10629. /**
  10630. * Normalizes a query string.
  10631. *
  10632. * It builds a normalized query string, where keys/value pairs are alphabetized,
  10633. * have consistent escaping and unneeded delimiters are removed.
  10634. *
  10635. * @static
  10636. */
  10637. public static function normalizeQueryString($qs)
  10638. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10639. return \Illuminate\Http\Request::normalizeQueryString($qs);
  10640. }
  10641. /**
  10642. * Enables support for the _method request parameter to determine the intended HTTP method.
  10643. *
  10644. * Be warned that enabling this feature might lead to CSRF issues in your code.
  10645. * Check that you are using CSRF tokens when required.
  10646. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  10647. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  10648. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  10649. *
  10650. * The HTTP method can only be overridden when the real HTTP method is POST.
  10651. *
  10652. * @static
  10653. */
  10654. public static function enableHttpMethodParameterOverride()
  10655. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10656. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  10657. }
  10658. /**
  10659. * Checks whether support for the _method request parameter is enabled.
  10660. *
  10661. * @static
  10662. */
  10663. public static function getHttpMethodParameterOverride()
  10664. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10665. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  10666. }
  10667. /**
  10668. * Whether the request contains a Session which was started in one of the
  10669. * previous requests.
  10670. *
  10671. * @static
  10672. */
  10673. public static function hasPreviousSession()
  10674. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10675. /** @var \Illuminate\Http\Request $instance */
  10676. return $instance->hasPreviousSession();
  10677. }
  10678. /**
  10679. *
  10680. *
  10681. * @static
  10682. */
  10683. public static function setSession($session)
  10684. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10685. /** @var \Illuminate\Http\Request $instance */
  10686. return $instance->setSession($session);
  10687. }
  10688. /**
  10689. *
  10690. *
  10691. * @internal
  10692. * @param \Symfony\Component\HttpFoundation\callable(): SessionInterface $factory
  10693. * @static
  10694. */
  10695. public static function setSessionFactory($factory)
  10696. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10697. /** @var \Illuminate\Http\Request $instance */
  10698. return $instance->setSessionFactory($factory);
  10699. }
  10700. /**
  10701. * Returns the client IP addresses.
  10702. *
  10703. * In the returned array the most trusted IP address is first, and the
  10704. * least trusted one last. The "real" client IP address is the last one,
  10705. * but this is also the least trusted one. Trusted proxies are stripped.
  10706. *
  10707. * Use this method carefully; you should use getClientIp() instead.
  10708. *
  10709. * @see getClientIp()
  10710. * @static
  10711. */
  10712. public static function getClientIps()
  10713. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10714. /** @var \Illuminate\Http\Request $instance */
  10715. return $instance->getClientIps();
  10716. }
  10717. /**
  10718. * Returns the client IP address.
  10719. *
  10720. * This method can read the client IP address from the "X-Forwarded-For" header
  10721. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  10722. * header value is a comma+space separated list of IP addresses, the left-most
  10723. * being the original client, and each successive proxy that passed the request
  10724. * adding the IP address where it received the request from.
  10725. *
  10726. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  10727. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  10728. * argument of the Request::setTrustedProxies() method instead.
  10729. *
  10730. * @see getClientIps()
  10731. * @see https://wikipedia.org/wiki/X-Forwarded-For
  10732. * @static
  10733. */
  10734. public static function getClientIp()
  10735. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10736. /** @var \Illuminate\Http\Request $instance */
  10737. return $instance->getClientIp();
  10738. }
  10739. /**
  10740. * Returns current script name.
  10741. *
  10742. * @static
  10743. */
  10744. public static function getScriptName()
  10745. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10746. /** @var \Illuminate\Http\Request $instance */
  10747. return $instance->getScriptName();
  10748. }
  10749. /**
  10750. * Returns the path being requested relative to the executed script.
  10751. *
  10752. * The path info always starts with a /.
  10753. *
  10754. * Suppose this request is instantiated from /mysite on localhost:
  10755. *
  10756. * * http://localhost/mysite returns an empty string
  10757. * * http://localhost/mysite/about returns '/about'
  10758. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  10759. * * http://localhost/mysite/about?var=1 returns '/about'
  10760. *
  10761. * @return string The raw path (i.e. not urldecoded)
  10762. * @static
  10763. */
  10764. public static function getPathInfo()
  10765. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10766. /** @var \Illuminate\Http\Request $instance */
  10767. return $instance->getPathInfo();
  10768. }
  10769. /**
  10770. * Returns the root path from which this request is executed.
  10771. *
  10772. * Suppose that an index.php file instantiates this request object:
  10773. *
  10774. * * http://localhost/index.php returns an empty string
  10775. * * http://localhost/index.php/page returns an empty string
  10776. * * http://localhost/web/index.php returns '/web'
  10777. * * http://localhost/we%20b/index.php returns '/we%20b'
  10778. *
  10779. * @return string The raw path (i.e. not urldecoded)
  10780. * @static
  10781. */
  10782. public static function getBasePath()
  10783. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10784. /** @var \Illuminate\Http\Request $instance */
  10785. return $instance->getBasePath();
  10786. }
  10787. /**
  10788. * Returns the root URL from which this request is executed.
  10789. *
  10790. * The base URL never ends with a /.
  10791. *
  10792. * This is similar to getBasePath(), except that it also includes the
  10793. * script filename (e.g. index.php) if one exists.
  10794. *
  10795. * @return string The raw URL (i.e. not urldecoded)
  10796. * @static
  10797. */
  10798. public static function getBaseUrl()
  10799. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10800. /** @var \Illuminate\Http\Request $instance */
  10801. return $instance->getBaseUrl();
  10802. }
  10803. /**
  10804. * Gets the request's scheme.
  10805. *
  10806. * @static
  10807. */
  10808. public static function getScheme()
  10809. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10810. /** @var \Illuminate\Http\Request $instance */
  10811. return $instance->getScheme();
  10812. }
  10813. /**
  10814. * Returns the port on which the request is made.
  10815. *
  10816. * This method can read the client port from the "X-Forwarded-Port" header
  10817. * when trusted proxies were set via "setTrustedProxies()".
  10818. *
  10819. * The "X-Forwarded-Port" header must contain the client port.
  10820. *
  10821. * @return int|string|null Can be a string if fetched from the server bag
  10822. * @static
  10823. */
  10824. public static function getPort()
  10825. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10826. /** @var \Illuminate\Http\Request $instance */
  10827. return $instance->getPort();
  10828. }
  10829. /**
  10830. * Returns the user.
  10831. *
  10832. * @static
  10833. */
  10834. public static function getUser()
  10835. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10836. /** @var \Illuminate\Http\Request $instance */
  10837. return $instance->getUser();
  10838. }
  10839. /**
  10840. * Returns the password.
  10841. *
  10842. * @static
  10843. */
  10844. public static function getPassword()
  10845. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10846. /** @var \Illuminate\Http\Request $instance */
  10847. return $instance->getPassword();
  10848. }
  10849. /**
  10850. * Gets the user info.
  10851. *
  10852. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  10853. * @static
  10854. */
  10855. public static function getUserInfo()
  10856. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10857. /** @var \Illuminate\Http\Request $instance */
  10858. return $instance->getUserInfo();
  10859. }
  10860. /**
  10861. * Returns the HTTP host being requested.
  10862. *
  10863. * The port name will be appended to the host if it's non-standard.
  10864. *
  10865. * @static
  10866. */
  10867. public static function getHttpHost()
  10868. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10869. /** @var \Illuminate\Http\Request $instance */
  10870. return $instance->getHttpHost();
  10871. }
  10872. /**
  10873. * Returns the requested URI (path and query string).
  10874. *
  10875. * @return string The raw URI (i.e. not URI decoded)
  10876. * @static
  10877. */
  10878. public static function getRequestUri()
  10879. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10880. /** @var \Illuminate\Http\Request $instance */
  10881. return $instance->getRequestUri();
  10882. }
  10883. /**
  10884. * Gets the scheme and HTTP host.
  10885. *
  10886. * If the URL was called with basic authentication, the user
  10887. * and the password are not added to the generated string.
  10888. *
  10889. * @static
  10890. */
  10891. public static function getSchemeAndHttpHost()
  10892. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10893. /** @var \Illuminate\Http\Request $instance */
  10894. return $instance->getSchemeAndHttpHost();
  10895. }
  10896. /**
  10897. * Generates a normalized URI (URL) for the Request.
  10898. *
  10899. * @see getQueryString()
  10900. * @static
  10901. */
  10902. public static function getUri()
  10903. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10904. /** @var \Illuminate\Http\Request $instance */
  10905. return $instance->getUri();
  10906. }
  10907. /**
  10908. * Generates a normalized URI for the given path.
  10909. *
  10910. * @param string $path A path to use instead of the current one
  10911. * @static
  10912. */
  10913. public static function getUriForPath($path)
  10914. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10915. /** @var \Illuminate\Http\Request $instance */
  10916. return $instance->getUriForPath($path);
  10917. }
  10918. /**
  10919. * Returns the path as relative reference from the current Request path.
  10920. *
  10921. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  10922. * Both paths must be absolute and not contain relative parts.
  10923. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  10924. * Furthermore, they can be used to reduce the link size in documents.
  10925. *
  10926. * Example target paths, given a base path of "/a/b/c/d":
  10927. * - "/a/b/c/d" -> ""
  10928. * - "/a/b/c/" -> "./"
  10929. * - "/a/b/" -> "../"
  10930. * - "/a/b/c/other" -> "other"
  10931. * - "/a/x/y" -> "../../x/y"
  10932. *
  10933. * @static
  10934. */
  10935. public static function getRelativeUriForPath($path)
  10936. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10937. /** @var \Illuminate\Http\Request $instance */
  10938. return $instance->getRelativeUriForPath($path);
  10939. }
  10940. /**
  10941. * Generates the normalized query string for the Request.
  10942. *
  10943. * It builds a normalized query string, where keys/value pairs are alphabetized
  10944. * and have consistent escaping.
  10945. *
  10946. * @static
  10947. */
  10948. public static function getQueryString()
  10949. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10950. /** @var \Illuminate\Http\Request $instance */
  10951. return $instance->getQueryString();
  10952. }
  10953. /**
  10954. * Checks whether the request is secure or not.
  10955. *
  10956. * This method can read the client protocol from the "X-Forwarded-Proto" header
  10957. * when trusted proxies were set via "setTrustedProxies()".
  10958. *
  10959. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  10960. *
  10961. * @static
  10962. */
  10963. public static function isSecure()
  10964. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10965. /** @var \Illuminate\Http\Request $instance */
  10966. return $instance->isSecure();
  10967. }
  10968. /**
  10969. * Returns the host name.
  10970. *
  10971. * This method can read the client host name from the "X-Forwarded-Host" header
  10972. * when trusted proxies were set via "setTrustedProxies()".
  10973. *
  10974. * The "X-Forwarded-Host" header must contain the client host name.
  10975. *
  10976. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  10977. * @static
  10978. */
  10979. public static function getHost()
  10980. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10981. /** @var \Illuminate\Http\Request $instance */
  10982. return $instance->getHost();
  10983. }
  10984. /**
  10985. * Sets the request method.
  10986. *
  10987. * @static
  10988. */
  10989. public static function setMethod($method)
  10990. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10991. /** @var \Illuminate\Http\Request $instance */
  10992. return $instance->setMethod($method);
  10993. }
  10994. /**
  10995. * Gets the request "intended" method.
  10996. *
  10997. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  10998. * then it is used to determine the "real" intended HTTP method.
  10999. *
  11000. * The _method request parameter can also be used to determine the HTTP method,
  11001. * but only if enableHttpMethodParameterOverride() has been called.
  11002. *
  11003. * The method is always an uppercased string.
  11004. *
  11005. * @see getRealMethod()
  11006. * @static
  11007. */
  11008. public static function getMethod()
  11009. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11010. /** @var \Illuminate\Http\Request $instance */
  11011. return $instance->getMethod();
  11012. }
  11013. /**
  11014. * Gets the "real" request method.
  11015. *
  11016. * @see getMethod()
  11017. * @static
  11018. */
  11019. public static function getRealMethod()
  11020. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11021. /** @var \Illuminate\Http\Request $instance */
  11022. return $instance->getRealMethod();
  11023. }
  11024. /**
  11025. * Gets the mime type associated with the format.
  11026. *
  11027. * @static
  11028. */
  11029. public static function getMimeType($format)
  11030. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11031. /** @var \Illuminate\Http\Request $instance */
  11032. return $instance->getMimeType($format);
  11033. }
  11034. /**
  11035. * Gets the mime types associated with the format.
  11036. *
  11037. * @static
  11038. */
  11039. public static function getMimeTypes($format)
  11040. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11041. return \Illuminate\Http\Request::getMimeTypes($format);
  11042. }
  11043. /**
  11044. * Gets the format associated with the mime type.
  11045. *
  11046. * @static
  11047. */
  11048. public static function getFormat($mimeType)
  11049. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11050. /** @var \Illuminate\Http\Request $instance */
  11051. return $instance->getFormat($mimeType);
  11052. }
  11053. /**
  11054. * Associates a format with mime types.
  11055. *
  11056. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  11057. * @static
  11058. */
  11059. public static function setFormat($format, $mimeTypes)
  11060. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11061. /** @var \Illuminate\Http\Request $instance */
  11062. return $instance->setFormat($format, $mimeTypes);
  11063. }
  11064. /**
  11065. * Gets the request format.
  11066. *
  11067. * Here is the process to determine the format:
  11068. *
  11069. * * format defined by the user (with setRequestFormat())
  11070. * * _format request attribute
  11071. * * $default
  11072. *
  11073. * @see getPreferredFormat
  11074. * @static
  11075. */
  11076. public static function getRequestFormat($default = 'html')
  11077. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11078. /** @var \Illuminate\Http\Request $instance */
  11079. return $instance->getRequestFormat($default);
  11080. }
  11081. /**
  11082. * Sets the request format.
  11083. *
  11084. * @static
  11085. */
  11086. public static function setRequestFormat($format)
  11087. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11088. /** @var \Illuminate\Http\Request $instance */
  11089. return $instance->setRequestFormat($format);
  11090. }
  11091. /**
  11092. * Gets the format associated with the request.
  11093. *
  11094. * @static
  11095. */
  11096. public static function getContentType()
  11097. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11098. /** @var \Illuminate\Http\Request $instance */
  11099. return $instance->getContentType();
  11100. }
  11101. /**
  11102. * Sets the default locale.
  11103. *
  11104. * @static
  11105. */
  11106. public static function setDefaultLocale($locale)
  11107. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11108. /** @var \Illuminate\Http\Request $instance */
  11109. return $instance->setDefaultLocale($locale);
  11110. }
  11111. /**
  11112. * Get the default locale.
  11113. *
  11114. * @static
  11115. */
  11116. public static function getDefaultLocale()
  11117. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11118. /** @var \Illuminate\Http\Request $instance */
  11119. return $instance->getDefaultLocale();
  11120. }
  11121. /**
  11122. * Sets the locale.
  11123. *
  11124. * @static
  11125. */
  11126. public static function setLocale($locale)
  11127. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11128. /** @var \Illuminate\Http\Request $instance */
  11129. return $instance->setLocale($locale);
  11130. }
  11131. /**
  11132. * Get the locale.
  11133. *
  11134. * @static
  11135. */
  11136. public static function getLocale()
  11137. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11138. /** @var \Illuminate\Http\Request $instance */
  11139. return $instance->getLocale();
  11140. }
  11141. /**
  11142. * Checks if the request method is of specified type.
  11143. *
  11144. * @param string $method Uppercase request method (GET, POST etc)
  11145. * @static
  11146. */
  11147. public static function isMethod($method)
  11148. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11149. /** @var \Illuminate\Http\Request $instance */
  11150. return $instance->isMethod($method);
  11151. }
  11152. /**
  11153. * Checks whether or not the method is safe.
  11154. *
  11155. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  11156. * @static
  11157. */
  11158. public static function isMethodSafe()
  11159. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11160. /** @var \Illuminate\Http\Request $instance */
  11161. return $instance->isMethodSafe();
  11162. }
  11163. /**
  11164. * Checks whether or not the method is idempotent.
  11165. *
  11166. * @static
  11167. */
  11168. public static function isMethodIdempotent()
  11169. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11170. /** @var \Illuminate\Http\Request $instance */
  11171. return $instance->isMethodIdempotent();
  11172. }
  11173. /**
  11174. * Checks whether the method is cacheable or not.
  11175. *
  11176. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  11177. * @static
  11178. */
  11179. public static function isMethodCacheable()
  11180. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11181. /** @var \Illuminate\Http\Request $instance */
  11182. return $instance->isMethodCacheable();
  11183. }
  11184. /**
  11185. * Returns the protocol version.
  11186. *
  11187. * If the application is behind a proxy, the protocol version used in the
  11188. * requests between the client and the proxy and between the proxy and the
  11189. * server might be different. This returns the former (from the "Via" header)
  11190. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  11191. * the latter (from the "SERVER_PROTOCOL" server parameter).
  11192. *
  11193. * @static
  11194. */
  11195. public static function getProtocolVersion()
  11196. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11197. /** @var \Illuminate\Http\Request $instance */
  11198. return $instance->getProtocolVersion();
  11199. }
  11200. /**
  11201. * Returns the request body content.
  11202. *
  11203. * @param bool $asResource If true, a resource will be returned
  11204. * @return string|resource
  11205. * @static
  11206. */
  11207. public static function getContent($asResource = false)
  11208. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11209. /** @var \Illuminate\Http\Request $instance */
  11210. return $instance->getContent($asResource);
  11211. }
  11212. /**
  11213. * Gets the Etags.
  11214. *
  11215. * @static
  11216. */
  11217. public static function getETags()
  11218. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11219. /** @var \Illuminate\Http\Request $instance */
  11220. return $instance->getETags();
  11221. }
  11222. /**
  11223. *
  11224. *
  11225. * @static
  11226. */
  11227. public static function isNoCache()
  11228. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11229. /** @var \Illuminate\Http\Request $instance */
  11230. return $instance->isNoCache();
  11231. }
  11232. /**
  11233. * Gets the preferred format for the response by inspecting, in the following order:
  11234. * * the request format set using setRequestFormat;
  11235. * * the values of the Accept HTTP header.
  11236. *
  11237. * Note that if you use this method, you should send the "Vary: Accept" header
  11238. * in the response to prevent any issues with intermediary HTTP caches.
  11239. *
  11240. * @static
  11241. */
  11242. public static function getPreferredFormat($default = 'html')
  11243. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11244. /** @var \Illuminate\Http\Request $instance */
  11245. return $instance->getPreferredFormat($default);
  11246. }
  11247. /**
  11248. * Returns the preferred language.
  11249. *
  11250. * @param string[] $locales An array of ordered available locales
  11251. * @static
  11252. */
  11253. public static function getPreferredLanguage($locales = null)
  11254. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11255. /** @var \Illuminate\Http\Request $instance */
  11256. return $instance->getPreferredLanguage($locales);
  11257. }
  11258. /**
  11259. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  11260. *
  11261. * @static
  11262. */
  11263. public static function getLanguages()
  11264. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11265. /** @var \Illuminate\Http\Request $instance */
  11266. return $instance->getLanguages();
  11267. }
  11268. /**
  11269. * Gets a list of charsets acceptable by the client browser in preferable order.
  11270. *
  11271. * @static
  11272. */
  11273. public static function getCharsets()
  11274. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11275. /** @var \Illuminate\Http\Request $instance */
  11276. return $instance->getCharsets();
  11277. }
  11278. /**
  11279. * Gets a list of encodings acceptable by the client browser in preferable order.
  11280. *
  11281. * @static
  11282. */
  11283. public static function getEncodings()
  11284. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11285. /** @var \Illuminate\Http\Request $instance */
  11286. return $instance->getEncodings();
  11287. }
  11288. /**
  11289. * Gets a list of content types acceptable by the client browser in preferable order.
  11290. *
  11291. * @static
  11292. */
  11293. public static function getAcceptableContentTypes()
  11294. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11295. /** @var \Illuminate\Http\Request $instance */
  11296. return $instance->getAcceptableContentTypes();
  11297. }
  11298. /**
  11299. * Returns true if the request is an XMLHttpRequest.
  11300. *
  11301. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  11302. * It is known to work with common JavaScript frameworks:
  11303. *
  11304. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  11305. * @static
  11306. */
  11307. public static function isXmlHttpRequest()
  11308. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11309. /** @var \Illuminate\Http\Request $instance */
  11310. return $instance->isXmlHttpRequest();
  11311. }
  11312. /**
  11313. * Checks whether the client browser prefers safe content or not according to RFC8674.
  11314. *
  11315. * @see https://tools.ietf.org/html/rfc8674
  11316. * @static
  11317. */
  11318. public static function preferSafeContent()
  11319. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11320. /** @var \Illuminate\Http\Request $instance */
  11321. return $instance->preferSafeContent();
  11322. }
  11323. /**
  11324. * Indicates whether this request originated from a trusted proxy.
  11325. *
  11326. * This can be useful to determine whether or not to trust the
  11327. * contents of a proxy-specific header.
  11328. *
  11329. * @static
  11330. */
  11331. public static function isFromTrustedProxy()
  11332. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  11333. /** @var \Illuminate\Http\Request $instance */
  11334. return $instance->isFromTrustedProxy();
  11335. }
  11336. /**
  11337. * Determine if the request is sending JSON.
  11338. *
  11339. * @return bool
  11340. * @static
  11341. */
  11342. public static function isJson()
  11343. {
  11344. /** @var \Illuminate\Http\Request $instance */
  11345. return $instance->isJson();
  11346. }
  11347. /**
  11348. * Determine if the current request probably expects a JSON response.
  11349. *
  11350. * @return bool
  11351. * @static
  11352. */
  11353. public static function expectsJson()
  11354. {
  11355. /** @var \Illuminate\Http\Request $instance */
  11356. return $instance->expectsJson();
  11357. }
  11358. /**
  11359. * Determine if the current request is asking for JSON.
  11360. *
  11361. * @return bool
  11362. * @static
  11363. */
  11364. public static function wantsJson()
  11365. {
  11366. /** @var \Illuminate\Http\Request $instance */
  11367. return $instance->wantsJson();
  11368. }
  11369. /**
  11370. * Determines whether the current requests accepts a given content type.
  11371. *
  11372. * @param string|array $contentTypes
  11373. * @return bool
  11374. * @static
  11375. */
  11376. public static function accepts($contentTypes)
  11377. {
  11378. /** @var \Illuminate\Http\Request $instance */
  11379. return $instance->accepts($contentTypes);
  11380. }
  11381. /**
  11382. * Return the most suitable content type from the given array based on content negotiation.
  11383. *
  11384. * @param string|array $contentTypes
  11385. * @return string|null
  11386. * @static
  11387. */
  11388. public static function prefers($contentTypes)
  11389. {
  11390. /** @var \Illuminate\Http\Request $instance */
  11391. return $instance->prefers($contentTypes);
  11392. }
  11393. /**
  11394. * Determine if the current request accepts any content type.
  11395. *
  11396. * @return bool
  11397. * @static
  11398. */
  11399. public static function acceptsAnyContentType()
  11400. {
  11401. /** @var \Illuminate\Http\Request $instance */
  11402. return $instance->acceptsAnyContentType();
  11403. }
  11404. /**
  11405. * Determines whether a request accepts JSON.
  11406. *
  11407. * @return bool
  11408. * @static
  11409. */
  11410. public static function acceptsJson()
  11411. {
  11412. /** @var \Illuminate\Http\Request $instance */
  11413. return $instance->acceptsJson();
  11414. }
  11415. /**
  11416. * Determines whether a request accepts HTML.
  11417. *
  11418. * @return bool
  11419. * @static
  11420. */
  11421. public static function acceptsHtml()
  11422. {
  11423. /** @var \Illuminate\Http\Request $instance */
  11424. return $instance->acceptsHtml();
  11425. }
  11426. /**
  11427. * Determine if the given content types match.
  11428. *
  11429. * @param string $actual
  11430. * @param string $type
  11431. * @return bool
  11432. * @static
  11433. */
  11434. public static function matchesType($actual, $type)
  11435. {
  11436. return \Illuminate\Http\Request::matchesType($actual, $type);
  11437. }
  11438. /**
  11439. * Get the data format expected in the response.
  11440. *
  11441. * @param string $default
  11442. * @return string
  11443. * @static
  11444. */
  11445. public static function format($default = 'html')
  11446. {
  11447. /** @var \Illuminate\Http\Request $instance */
  11448. return $instance->format($default);
  11449. }
  11450. /**
  11451. * Retrieve an old input item.
  11452. *
  11453. * @param string|null $key
  11454. * @param \Illuminate\Database\Eloquent\Model|string|array|null $default
  11455. * @return string|array|null
  11456. * @static
  11457. */
  11458. public static function old($key = null, $default = null)
  11459. {
  11460. /** @var \Illuminate\Http\Request $instance */
  11461. return $instance->old($key, $default);
  11462. }
  11463. /**
  11464. * Flash the input for the current request to the session.
  11465. *
  11466. * @return void
  11467. * @static
  11468. */
  11469. public static function flash()
  11470. {
  11471. /** @var \Illuminate\Http\Request $instance */
  11472. $instance->flash();
  11473. }
  11474. /**
  11475. * Flash only some of the input to the session.
  11476. *
  11477. * @param array|mixed $keys
  11478. * @return void
  11479. * @static
  11480. */
  11481. public static function flashOnly($keys)
  11482. {
  11483. /** @var \Illuminate\Http\Request $instance */
  11484. $instance->flashOnly($keys);
  11485. }
  11486. /**
  11487. * Flash only some of the input to the session.
  11488. *
  11489. * @param array|mixed $keys
  11490. * @return void
  11491. * @static
  11492. */
  11493. public static function flashExcept($keys)
  11494. {
  11495. /** @var \Illuminate\Http\Request $instance */
  11496. $instance->flashExcept($keys);
  11497. }
  11498. /**
  11499. * Flush all of the old input from the session.
  11500. *
  11501. * @return void
  11502. * @static
  11503. */
  11504. public static function flush()
  11505. {
  11506. /** @var \Illuminate\Http\Request $instance */
  11507. $instance->flush();
  11508. }
  11509. /**
  11510. * Retrieve a server variable from the request.
  11511. *
  11512. * @param string|null $key
  11513. * @param string|array|null $default
  11514. * @return string|array|null
  11515. * @static
  11516. */
  11517. public static function server($key = null, $default = null)
  11518. {
  11519. /** @var \Illuminate\Http\Request $instance */
  11520. return $instance->server($key, $default);
  11521. }
  11522. /**
  11523. * Determine if a header is set on the request.
  11524. *
  11525. * @param string $key
  11526. * @return bool
  11527. * @static
  11528. */
  11529. public static function hasHeader($key)
  11530. {
  11531. /** @var \Illuminate\Http\Request $instance */
  11532. return $instance->hasHeader($key);
  11533. }
  11534. /**
  11535. * Retrieve a header from the request.
  11536. *
  11537. * @param string|null $key
  11538. * @param string|array|null $default
  11539. * @return string|array|null
  11540. * @static
  11541. */
  11542. public static function header($key = null, $default = null)
  11543. {
  11544. /** @var \Illuminate\Http\Request $instance */
  11545. return $instance->header($key, $default);
  11546. }
  11547. /**
  11548. * Get the bearer token from the request headers.
  11549. *
  11550. * @return string|null
  11551. * @static
  11552. */
  11553. public static function bearerToken()
  11554. {
  11555. /** @var \Illuminate\Http\Request $instance */
  11556. return $instance->bearerToken();
  11557. }
  11558. /**
  11559. * Determine if the request contains a given input item key.
  11560. *
  11561. * @param string|array $key
  11562. * @return bool
  11563. * @static
  11564. */
  11565. public static function exists($key)
  11566. {
  11567. /** @var \Illuminate\Http\Request $instance */
  11568. return $instance->exists($key);
  11569. }
  11570. /**
  11571. * Determine if the request contains a given input item key.
  11572. *
  11573. * @param string|array $key
  11574. * @return bool
  11575. * @static
  11576. */
  11577. public static function has($key)
  11578. {
  11579. /** @var \Illuminate\Http\Request $instance */
  11580. return $instance->has($key);
  11581. }
  11582. /**
  11583. * Determine if the request contains any of the given inputs.
  11584. *
  11585. * @param string|array $keys
  11586. * @return bool
  11587. * @static
  11588. */
  11589. public static function hasAny($keys)
  11590. {
  11591. /** @var \Illuminate\Http\Request $instance */
  11592. return $instance->hasAny($keys);
  11593. }
  11594. /**
  11595. * Apply the callback if the request contains the given input item key.
  11596. *
  11597. * @param string $key
  11598. * @param callable $callback
  11599. * @param callable|null $default
  11600. * @return $this|mixed
  11601. * @static
  11602. */
  11603. public static function whenHas($key, $callback, $default = null)
  11604. {
  11605. /** @var \Illuminate\Http\Request $instance */
  11606. return $instance->whenHas($key, $callback, $default);
  11607. }
  11608. /**
  11609. * Determine if the request contains a non-empty value for an input item.
  11610. *
  11611. * @param string|array $key
  11612. * @return bool
  11613. * @static
  11614. */
  11615. public static function filled($key)
  11616. {
  11617. /** @var \Illuminate\Http\Request $instance */
  11618. return $instance->filled($key);
  11619. }
  11620. /**
  11621. * Determine if the request contains an empty value for an input item.
  11622. *
  11623. * @param string|array $key
  11624. * @return bool
  11625. * @static
  11626. */
  11627. public static function isNotFilled($key)
  11628. {
  11629. /** @var \Illuminate\Http\Request $instance */
  11630. return $instance->isNotFilled($key);
  11631. }
  11632. /**
  11633. * Determine if the request contains a non-empty value for any of the given inputs.
  11634. *
  11635. * @param string|array $keys
  11636. * @return bool
  11637. * @static
  11638. */
  11639. public static function anyFilled($keys)
  11640. {
  11641. /** @var \Illuminate\Http\Request $instance */
  11642. return $instance->anyFilled($keys);
  11643. }
  11644. /**
  11645. * Apply the callback if the request contains a non-empty value for the given input item key.
  11646. *
  11647. * @param string $key
  11648. * @param callable $callback
  11649. * @param callable|null $default
  11650. * @return $this|mixed
  11651. * @static
  11652. */
  11653. public static function whenFilled($key, $callback, $default = null)
  11654. {
  11655. /** @var \Illuminate\Http\Request $instance */
  11656. return $instance->whenFilled($key, $callback, $default);
  11657. }
  11658. /**
  11659. * Determine if the request is missing a given input item key.
  11660. *
  11661. * @param string|array $key
  11662. * @return bool
  11663. * @static
  11664. */
  11665. public static function missing($key)
  11666. {
  11667. /** @var \Illuminate\Http\Request $instance */
  11668. return $instance->missing($key);
  11669. }
  11670. /**
  11671. * Get the keys for all of the input and files.
  11672. *
  11673. * @return array
  11674. * @static
  11675. */
  11676. public static function keys()
  11677. {
  11678. /** @var \Illuminate\Http\Request $instance */
  11679. return $instance->keys();
  11680. }
  11681. /**
  11682. * Get all of the input and files for the request.
  11683. *
  11684. * @param array|mixed|null $keys
  11685. * @return array
  11686. * @static
  11687. */
  11688. public static function all($keys = null)
  11689. {
  11690. /** @var \Illuminate\Http\Request $instance */
  11691. return $instance->all($keys);
  11692. }
  11693. /**
  11694. * Retrieve an input item from the request.
  11695. *
  11696. * @param string|null $key
  11697. * @param mixed $default
  11698. * @return mixed
  11699. * @static
  11700. */
  11701. public static function input($key = null, $default = null)
  11702. {
  11703. /** @var \Illuminate\Http\Request $instance */
  11704. return $instance->input($key, $default);
  11705. }
  11706. /**
  11707. * Retrieve input from the request as a Stringable instance.
  11708. *
  11709. * @param string $key
  11710. * @param mixed $default
  11711. * @return \Illuminate\Support\Stringable
  11712. * @static
  11713. */
  11714. public static function str($key, $default = null)
  11715. {
  11716. /** @var \Illuminate\Http\Request $instance */
  11717. return $instance->str($key, $default);
  11718. }
  11719. /**
  11720. * Retrieve input from the request as a Stringable instance.
  11721. *
  11722. * @param string $key
  11723. * @param mixed $default
  11724. * @return \Illuminate\Support\Stringable
  11725. * @static
  11726. */
  11727. public static function string($key, $default = null)
  11728. {
  11729. /** @var \Illuminate\Http\Request $instance */
  11730. return $instance->string($key, $default);
  11731. }
  11732. /**
  11733. * Retrieve input as a boolean value.
  11734. *
  11735. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  11736. *
  11737. * @param string|null $key
  11738. * @param bool $default
  11739. * @return bool
  11740. * @static
  11741. */
  11742. public static function boolean($key = null, $default = false)
  11743. {
  11744. /** @var \Illuminate\Http\Request $instance */
  11745. return $instance->boolean($key, $default);
  11746. }
  11747. /**
  11748. * Retrieve input from the request as a Carbon instance.
  11749. *
  11750. * @param string $key
  11751. * @param string|null $format
  11752. * @param string|null $tz
  11753. * @return \Illuminate\Support\Carbon|null
  11754. * @static
  11755. */
  11756. public static function date($key, $format = null, $tz = null)
  11757. {
  11758. /** @var \Illuminate\Http\Request $instance */
  11759. return $instance->date($key, $format, $tz);
  11760. }
  11761. /**
  11762. * Retrieve input from the request as a collection.
  11763. *
  11764. * @param array|string|null $key
  11765. * @return \Illuminate\Support\Collection
  11766. * @static
  11767. */
  11768. public static function collect($key = null)
  11769. {
  11770. /** @var \Illuminate\Http\Request $instance */
  11771. return $instance->collect($key);
  11772. }
  11773. /**
  11774. * Get a subset containing the provided keys with values from the input data.
  11775. *
  11776. * @param array|mixed $keys
  11777. * @return array
  11778. * @static
  11779. */
  11780. public static function only($keys)
  11781. {
  11782. /** @var \Illuminate\Http\Request $instance */
  11783. return $instance->only($keys);
  11784. }
  11785. /**
  11786. * Get all of the input except for a specified array of items.
  11787. *
  11788. * @param array|mixed $keys
  11789. * @return array
  11790. * @static
  11791. */
  11792. public static function except($keys)
  11793. {
  11794. /** @var \Illuminate\Http\Request $instance */
  11795. return $instance->except($keys);
  11796. }
  11797. /**
  11798. * Retrieve a query string item from the request.
  11799. *
  11800. * @param string|null $key
  11801. * @param string|array|null $default
  11802. * @return string|array|null
  11803. * @static
  11804. */
  11805. public static function query($key = null, $default = null)
  11806. {
  11807. /** @var \Illuminate\Http\Request $instance */
  11808. return $instance->query($key, $default);
  11809. }
  11810. /**
  11811. * Retrieve a request payload item from the request.
  11812. *
  11813. * @param string|null $key
  11814. * @param string|array|null $default
  11815. * @return string|array|null
  11816. * @static
  11817. */
  11818. public static function post($key = null, $default = null)
  11819. {
  11820. /** @var \Illuminate\Http\Request $instance */
  11821. return $instance->post($key, $default);
  11822. }
  11823. /**
  11824. * Determine if a cookie is set on the request.
  11825. *
  11826. * @param string $key
  11827. * @return bool
  11828. * @static
  11829. */
  11830. public static function hasCookie($key)
  11831. {
  11832. /** @var \Illuminate\Http\Request $instance */
  11833. return $instance->hasCookie($key);
  11834. }
  11835. /**
  11836. * Retrieve a cookie from the request.
  11837. *
  11838. * @param string|null $key
  11839. * @param string|array|null $default
  11840. * @return string|array|null
  11841. * @static
  11842. */
  11843. public static function cookie($key = null, $default = null)
  11844. {
  11845. /** @var \Illuminate\Http\Request $instance */
  11846. return $instance->cookie($key, $default);
  11847. }
  11848. /**
  11849. * Get an array of all of the files on the request.
  11850. *
  11851. * @return array
  11852. * @static
  11853. */
  11854. public static function allFiles()
  11855. {
  11856. /** @var \Illuminate\Http\Request $instance */
  11857. return $instance->allFiles();
  11858. }
  11859. /**
  11860. * Determine if the uploaded data contains a file.
  11861. *
  11862. * @param string $key
  11863. * @return bool
  11864. * @static
  11865. */
  11866. public static function hasFile($key)
  11867. {
  11868. /** @var \Illuminate\Http\Request $instance */
  11869. return $instance->hasFile($key);
  11870. }
  11871. /**
  11872. * Retrieve a file from the request.
  11873. *
  11874. * @param string|null $key
  11875. * @param mixed $default
  11876. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  11877. * @static
  11878. */
  11879. public static function file($key = null, $default = null)
  11880. {
  11881. /** @var \Illuminate\Http\Request $instance */
  11882. return $instance->file($key, $default);
  11883. }
  11884. /**
  11885. * Dump the request items and end the script.
  11886. *
  11887. * @param mixed $keys
  11888. * @return void
  11889. * @static
  11890. */
  11891. public static function dd(...$keys)
  11892. {
  11893. /** @var \Illuminate\Http\Request $instance */
  11894. $instance->dd(...$keys);
  11895. }
  11896. /**
  11897. * Dump the items.
  11898. *
  11899. * @param mixed $keys
  11900. * @return \Illuminate\Http\Request
  11901. * @static
  11902. */
  11903. public static function dump($keys = [])
  11904. {
  11905. /** @var \Illuminate\Http\Request $instance */
  11906. return $instance->dump($keys);
  11907. }
  11908. /**
  11909. * Register a custom macro.
  11910. *
  11911. * @param string $name
  11912. * @param object|callable $macro
  11913. * @return void
  11914. * @static
  11915. */
  11916. public static function macro($name, $macro)
  11917. {
  11918. \Illuminate\Http\Request::macro($name, $macro);
  11919. }
  11920. /**
  11921. * Mix another object into the class.
  11922. *
  11923. * @param object $mixin
  11924. * @param bool $replace
  11925. * @return void
  11926. * @throws \ReflectionException
  11927. * @static
  11928. */
  11929. public static function mixin($mixin, $replace = true)
  11930. {
  11931. \Illuminate\Http\Request::mixin($mixin, $replace);
  11932. }
  11933. /**
  11934. * Checks if macro is registered.
  11935. *
  11936. * @param string $name
  11937. * @return bool
  11938. * @static
  11939. */
  11940. public static function hasMacro($name)
  11941. {
  11942. return \Illuminate\Http\Request::hasMacro($name);
  11943. }
  11944. /**
  11945. * Flush the existing macros.
  11946. *
  11947. * @return void
  11948. * @static
  11949. */
  11950. public static function flushMacros()
  11951. {
  11952. \Illuminate\Http\Request::flushMacros();
  11953. }
  11954. /**
  11955. *
  11956. *
  11957. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11958. * @param array $rules
  11959. * @param mixed $params
  11960. * @static
  11961. */
  11962. public static function validate($rules, ...$params)
  11963. {
  11964. return \Illuminate\Http\Request::validate($rules, ...$params);
  11965. }
  11966. /**
  11967. *
  11968. *
  11969. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11970. * @param string $errorBag
  11971. * @param array $rules
  11972. * @param mixed $params
  11973. * @static
  11974. */
  11975. public static function validateWithBag($errorBag, $rules, ...$params)
  11976. {
  11977. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  11978. }
  11979. /**
  11980. *
  11981. *
  11982. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11983. * @param mixed $absolute
  11984. * @static
  11985. */
  11986. public static function hasValidSignature($absolute = true)
  11987. {
  11988. return \Illuminate\Http\Request::hasValidSignature($absolute);
  11989. }
  11990. /**
  11991. *
  11992. *
  11993. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11994. * @static
  11995. */
  11996. public static function hasValidRelativeSignature()
  11997. {
  11998. return \Illuminate\Http\Request::hasValidRelativeSignature();
  11999. }
  12000. /**
  12001. *
  12002. *
  12003. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  12004. * @param mixed $ignoreQuery
  12005. * @param mixed $absolute
  12006. * @static
  12007. */
  12008. public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  12009. {
  12010. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  12011. }
  12012. }
  12013. /**
  12014. *
  12015. *
  12016. * @see \Illuminate\Contracts\Routing\ResponseFactory
  12017. */
  12018. class Response {
  12019. /**
  12020. * Create a new response instance.
  12021. *
  12022. * @param mixed $content
  12023. * @param int $status
  12024. * @param array $headers
  12025. * @return \Illuminate\Http\Response
  12026. * @static
  12027. */
  12028. public static function make($content = '', $status = 200, $headers = [])
  12029. {
  12030. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12031. return $instance->make($content, $status, $headers);
  12032. }
  12033. /**
  12034. * Create a new "no content" response.
  12035. *
  12036. * @param int $status
  12037. * @param array $headers
  12038. * @return \Illuminate\Http\Response
  12039. * @static
  12040. */
  12041. public static function noContent($status = 204, $headers = [])
  12042. {
  12043. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12044. return $instance->noContent($status, $headers);
  12045. }
  12046. /**
  12047. * Create a new response for a given view.
  12048. *
  12049. * @param string|array $view
  12050. * @param array $data
  12051. * @param int $status
  12052. * @param array $headers
  12053. * @return \Illuminate\Http\Response
  12054. * @static
  12055. */
  12056. public static function view($view, $data = [], $status = 200, $headers = [])
  12057. {
  12058. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12059. return $instance->view($view, $data, $status, $headers);
  12060. }
  12061. /**
  12062. * Create a new JSON response instance.
  12063. *
  12064. * @param mixed $data
  12065. * @param int $status
  12066. * @param array $headers
  12067. * @param int $options
  12068. * @return \Illuminate\Http\JsonResponse
  12069. * @static
  12070. */
  12071. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  12072. {
  12073. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12074. return $instance->json($data, $status, $headers, $options);
  12075. }
  12076. /**
  12077. * Create a new JSONP response instance.
  12078. *
  12079. * @param string $callback
  12080. * @param mixed $data
  12081. * @param int $status
  12082. * @param array $headers
  12083. * @param int $options
  12084. * @return \Illuminate\Http\JsonResponse
  12085. * @static
  12086. */
  12087. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  12088. {
  12089. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12090. return $instance->jsonp($callback, $data, $status, $headers, $options);
  12091. }
  12092. /**
  12093. * Create a new streamed response instance.
  12094. *
  12095. * @param \Closure $callback
  12096. * @param int $status
  12097. * @param array $headers
  12098. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12099. * @static
  12100. */
  12101. public static function stream($callback, $status = 200, $headers = [])
  12102. {
  12103. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12104. return $instance->stream($callback, $status, $headers);
  12105. }
  12106. /**
  12107. * Create a new streamed response instance as a file download.
  12108. *
  12109. * @param \Closure $callback
  12110. * @param string|null $name
  12111. * @param array $headers
  12112. * @param string|null $disposition
  12113. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12114. * @static
  12115. */
  12116. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  12117. {
  12118. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12119. return $instance->streamDownload($callback, $name, $headers, $disposition);
  12120. }
  12121. /**
  12122. * Create a new file download response.
  12123. *
  12124. * @param \SplFileInfo|string $file
  12125. * @param string|null $name
  12126. * @param array $headers
  12127. * @param string|null $disposition
  12128. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  12129. * @static
  12130. */
  12131. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  12132. {
  12133. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12134. return $instance->download($file, $name, $headers, $disposition);
  12135. }
  12136. /**
  12137. * Return the raw contents of a binary file.
  12138. *
  12139. * @param \SplFileInfo|string $file
  12140. * @param array $headers
  12141. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  12142. * @static
  12143. */
  12144. public static function file($file, $headers = [])
  12145. {
  12146. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12147. return $instance->file($file, $headers);
  12148. }
  12149. /**
  12150. * Create a new redirect response to the given path.
  12151. *
  12152. * @param string $path
  12153. * @param int $status
  12154. * @param array $headers
  12155. * @param bool|null $secure
  12156. * @return \Illuminate\Http\RedirectResponse
  12157. * @static
  12158. */
  12159. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  12160. {
  12161. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12162. return $instance->redirectTo($path, $status, $headers, $secure);
  12163. }
  12164. /**
  12165. * Create a new redirect response to a named route.
  12166. *
  12167. * @param string $route
  12168. * @param mixed $parameters
  12169. * @param int $status
  12170. * @param array $headers
  12171. * @return \Illuminate\Http\RedirectResponse
  12172. * @static
  12173. */
  12174. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  12175. {
  12176. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12177. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  12178. }
  12179. /**
  12180. * Create a new redirect response to a controller action.
  12181. *
  12182. * @param string $action
  12183. * @param mixed $parameters
  12184. * @param int $status
  12185. * @param array $headers
  12186. * @return \Illuminate\Http\RedirectResponse
  12187. * @static
  12188. */
  12189. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  12190. {
  12191. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12192. return $instance->redirectToAction($action, $parameters, $status, $headers);
  12193. }
  12194. /**
  12195. * Create a new redirect response, while putting the current URL in the session.
  12196. *
  12197. * @param string $path
  12198. * @param int $status
  12199. * @param array $headers
  12200. * @param bool|null $secure
  12201. * @return \Illuminate\Http\RedirectResponse
  12202. * @static
  12203. */
  12204. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  12205. {
  12206. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12207. return $instance->redirectGuest($path, $status, $headers, $secure);
  12208. }
  12209. /**
  12210. * Create a new redirect response to the previously intended location.
  12211. *
  12212. * @param string $default
  12213. * @param int $status
  12214. * @param array $headers
  12215. * @param bool|null $secure
  12216. * @return \Illuminate\Http\RedirectResponse
  12217. * @static
  12218. */
  12219. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  12220. {
  12221. /** @var \Illuminate\Routing\ResponseFactory $instance */
  12222. return $instance->redirectToIntended($default, $status, $headers, $secure);
  12223. }
  12224. /**
  12225. * Register a custom macro.
  12226. *
  12227. * @param string $name
  12228. * @param object|callable $macro
  12229. * @return void
  12230. * @static
  12231. */
  12232. public static function macro($name, $macro)
  12233. {
  12234. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  12235. }
  12236. /**
  12237. * Mix another object into the class.
  12238. *
  12239. * @param object $mixin
  12240. * @param bool $replace
  12241. * @return void
  12242. * @throws \ReflectionException
  12243. * @static
  12244. */
  12245. public static function mixin($mixin, $replace = true)
  12246. {
  12247. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  12248. }
  12249. /**
  12250. * Checks if macro is registered.
  12251. *
  12252. * @param string $name
  12253. * @return bool
  12254. * @static
  12255. */
  12256. public static function hasMacro($name)
  12257. {
  12258. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  12259. }
  12260. /**
  12261. * Flush the existing macros.
  12262. *
  12263. * @return void
  12264. * @static
  12265. */
  12266. public static function flushMacros()
  12267. {
  12268. \Illuminate\Routing\ResponseFactory::flushMacros();
  12269. }
  12270. }
  12271. /**
  12272. *
  12273. *
  12274. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  12275. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  12276. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  12277. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  12278. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  12279. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  12280. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  12281. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  12282. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  12283. * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
  12284. * @see \Illuminate\Routing\Router
  12285. */
  12286. class Route {
  12287. /**
  12288. * Register a new GET route with the router.
  12289. *
  12290. * @param string $uri
  12291. * @param array|string|callable|null $action
  12292. * @return \Illuminate\Routing\Route
  12293. * @static
  12294. */
  12295. public static function get($uri, $action = null)
  12296. {
  12297. /** @var \Illuminate\Routing\Router $instance */
  12298. return $instance->get($uri, $action);
  12299. }
  12300. /**
  12301. * Register a new POST route with the router.
  12302. *
  12303. * @param string $uri
  12304. * @param array|string|callable|null $action
  12305. * @return \Illuminate\Routing\Route
  12306. * @static
  12307. */
  12308. public static function post($uri, $action = null)
  12309. {
  12310. /** @var \Illuminate\Routing\Router $instance */
  12311. return $instance->post($uri, $action);
  12312. }
  12313. /**
  12314. * Register a new PUT route with the router.
  12315. *
  12316. * @param string $uri
  12317. * @param array|string|callable|null $action
  12318. * @return \Illuminate\Routing\Route
  12319. * @static
  12320. */
  12321. public static function put($uri, $action = null)
  12322. {
  12323. /** @var \Illuminate\Routing\Router $instance */
  12324. return $instance->put($uri, $action);
  12325. }
  12326. /**
  12327. * Register a new PATCH route with the router.
  12328. *
  12329. * @param string $uri
  12330. * @param array|string|callable|null $action
  12331. * @return \Illuminate\Routing\Route
  12332. * @static
  12333. */
  12334. public static function patch($uri, $action = null)
  12335. {
  12336. /** @var \Illuminate\Routing\Router $instance */
  12337. return $instance->patch($uri, $action);
  12338. }
  12339. /**
  12340. * Register a new DELETE route with the router.
  12341. *
  12342. * @param string $uri
  12343. * @param array|string|callable|null $action
  12344. * @return \Illuminate\Routing\Route
  12345. * @static
  12346. */
  12347. public static function delete($uri, $action = null)
  12348. {
  12349. /** @var \Illuminate\Routing\Router $instance */
  12350. return $instance->delete($uri, $action);
  12351. }
  12352. /**
  12353. * Register a new OPTIONS route with the router.
  12354. *
  12355. * @param string $uri
  12356. * @param array|string|callable|null $action
  12357. * @return \Illuminate\Routing\Route
  12358. * @static
  12359. */
  12360. public static function options($uri, $action = null)
  12361. {
  12362. /** @var \Illuminate\Routing\Router $instance */
  12363. return $instance->options($uri, $action);
  12364. }
  12365. /**
  12366. * Register a new route responding to all verbs.
  12367. *
  12368. * @param string $uri
  12369. * @param array|string|callable|null $action
  12370. * @return \Illuminate\Routing\Route
  12371. * @static
  12372. */
  12373. public static function any($uri, $action = null)
  12374. {
  12375. /** @var \Illuminate\Routing\Router $instance */
  12376. return $instance->any($uri, $action);
  12377. }
  12378. /**
  12379. * Register a new Fallback route with the router.
  12380. *
  12381. * @param array|string|callable|null $action
  12382. * @return \Illuminate\Routing\Route
  12383. * @static
  12384. */
  12385. public static function fallback($action)
  12386. {
  12387. /** @var \Illuminate\Routing\Router $instance */
  12388. return $instance->fallback($action);
  12389. }
  12390. /**
  12391. * Create a redirect from one URI to another.
  12392. *
  12393. * @param string $uri
  12394. * @param string $destination
  12395. * @param int $status
  12396. * @return \Illuminate\Routing\Route
  12397. * @static
  12398. */
  12399. public static function redirect($uri, $destination, $status = 302)
  12400. {
  12401. /** @var \Illuminate\Routing\Router $instance */
  12402. return $instance->redirect($uri, $destination, $status);
  12403. }
  12404. /**
  12405. * Create a permanent redirect from one URI to another.
  12406. *
  12407. * @param string $uri
  12408. * @param string $destination
  12409. * @return \Illuminate\Routing\Route
  12410. * @static
  12411. */
  12412. public static function permanentRedirect($uri, $destination)
  12413. {
  12414. /** @var \Illuminate\Routing\Router $instance */
  12415. return $instance->permanentRedirect($uri, $destination);
  12416. }
  12417. /**
  12418. * Register a new route that returns a view.
  12419. *
  12420. * @param string $uri
  12421. * @param string $view
  12422. * @param array $data
  12423. * @param int|array $status
  12424. * @param array $headers
  12425. * @return \Illuminate\Routing\Route
  12426. * @static
  12427. */
  12428. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  12429. {
  12430. /** @var \Illuminate\Routing\Router $instance */
  12431. return $instance->view($uri, $view, $data, $status, $headers);
  12432. }
  12433. /**
  12434. * Register a new route with the given verbs.
  12435. *
  12436. * @param array|string $methods
  12437. * @param string $uri
  12438. * @param array|string|callable|null $action
  12439. * @return \Illuminate\Routing\Route
  12440. * @static
  12441. */
  12442. public static function match($methods, $uri, $action = null)
  12443. {
  12444. /** @var \Illuminate\Routing\Router $instance */
  12445. return $instance->match($methods, $uri, $action);
  12446. }
  12447. /**
  12448. * Register an array of resource controllers.
  12449. *
  12450. * @param array $resources
  12451. * @param array $options
  12452. * @return void
  12453. * @static
  12454. */
  12455. public static function resources($resources, $options = [])
  12456. {
  12457. /** @var \Illuminate\Routing\Router $instance */
  12458. $instance->resources($resources, $options);
  12459. }
  12460. /**
  12461. * Route a resource to a controller.
  12462. *
  12463. * @param string $name
  12464. * @param string $controller
  12465. * @param array $options
  12466. * @return \Illuminate\Routing\PendingResourceRegistration
  12467. * @static
  12468. */
  12469. public static function resource($name, $controller, $options = [])
  12470. {
  12471. /** @var \Illuminate\Routing\Router $instance */
  12472. return $instance->resource($name, $controller, $options);
  12473. }
  12474. /**
  12475. * Register an array of API resource controllers.
  12476. *
  12477. * @param array $resources
  12478. * @param array $options
  12479. * @return void
  12480. * @static
  12481. */
  12482. public static function apiResources($resources, $options = [])
  12483. {
  12484. /** @var \Illuminate\Routing\Router $instance */
  12485. $instance->apiResources($resources, $options);
  12486. }
  12487. /**
  12488. * Route an API resource to a controller.
  12489. *
  12490. * @param string $name
  12491. * @param string $controller
  12492. * @param array $options
  12493. * @return \Illuminate\Routing\PendingResourceRegistration
  12494. * @static
  12495. */
  12496. public static function apiResource($name, $controller, $options = [])
  12497. {
  12498. /** @var \Illuminate\Routing\Router $instance */
  12499. return $instance->apiResource($name, $controller, $options);
  12500. }
  12501. /**
  12502. * Create a route group with shared attributes.
  12503. *
  12504. * @param array $attributes
  12505. * @param \Closure|array|string $routes
  12506. * @return void
  12507. * @static
  12508. */
  12509. public static function group($attributes, $routes)
  12510. {
  12511. /** @var \Illuminate\Routing\Router $instance */
  12512. $instance->group($attributes, $routes);
  12513. }
  12514. /**
  12515. * Merge the given array with the last group stack.
  12516. *
  12517. * @param array $new
  12518. * @param bool $prependExistingPrefix
  12519. * @return array
  12520. * @static
  12521. */
  12522. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  12523. {
  12524. /** @var \Illuminate\Routing\Router $instance */
  12525. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  12526. }
  12527. /**
  12528. * Get the prefix from the last group on the stack.
  12529. *
  12530. * @return string
  12531. * @static
  12532. */
  12533. public static function getLastGroupPrefix()
  12534. {
  12535. /** @var \Illuminate\Routing\Router $instance */
  12536. return $instance->getLastGroupPrefix();
  12537. }
  12538. /**
  12539. * Add a route to the underlying route collection.
  12540. *
  12541. * @param array|string $methods
  12542. * @param string $uri
  12543. * @param array|string|callable|null $action
  12544. * @return \Illuminate\Routing\Route
  12545. * @static
  12546. */
  12547. public static function addRoute($methods, $uri, $action)
  12548. {
  12549. /** @var \Illuminate\Routing\Router $instance */
  12550. return $instance->addRoute($methods, $uri, $action);
  12551. }
  12552. /**
  12553. * Create a new Route object.
  12554. *
  12555. * @param array|string $methods
  12556. * @param string $uri
  12557. * @param mixed $action
  12558. * @return \Illuminate\Routing\Route
  12559. * @static
  12560. */
  12561. public static function newRoute($methods, $uri, $action)
  12562. {
  12563. /** @var \Illuminate\Routing\Router $instance */
  12564. return $instance->newRoute($methods, $uri, $action);
  12565. }
  12566. /**
  12567. * Return the response returned by the given route.
  12568. *
  12569. * @param string $name
  12570. * @return \Symfony\Component\HttpFoundation\Response
  12571. * @static
  12572. */
  12573. public static function respondWithRoute($name)
  12574. {
  12575. /** @var \Illuminate\Routing\Router $instance */
  12576. return $instance->respondWithRoute($name);
  12577. }
  12578. /**
  12579. * Dispatch the request to the application.
  12580. *
  12581. * @param \Illuminate\Http\Request $request
  12582. * @return \Symfony\Component\HttpFoundation\Response
  12583. * @static
  12584. */
  12585. public static function dispatch($request)
  12586. {
  12587. /** @var \Illuminate\Routing\Router $instance */
  12588. return $instance->dispatch($request);
  12589. }
  12590. /**
  12591. * Dispatch the request to a route and return the response.
  12592. *
  12593. * @param \Illuminate\Http\Request $request
  12594. * @return \Symfony\Component\HttpFoundation\Response
  12595. * @static
  12596. */
  12597. public static function dispatchToRoute($request)
  12598. {
  12599. /** @var \Illuminate\Routing\Router $instance */
  12600. return $instance->dispatchToRoute($request);
  12601. }
  12602. /**
  12603. * Gather the middleware for the given route with resolved class names.
  12604. *
  12605. * @param \Illuminate\Routing\Route $route
  12606. * @return array
  12607. * @static
  12608. */
  12609. public static function gatherRouteMiddleware($route)
  12610. {
  12611. /** @var \Illuminate\Routing\Router $instance */
  12612. return $instance->gatherRouteMiddleware($route);
  12613. }
  12614. /**
  12615. * Resolve a flat array of middleware classes from the provided array.
  12616. *
  12617. * @param array $middleware
  12618. * @param array $excluded
  12619. * @return array
  12620. * @static
  12621. */
  12622. public static function resolveMiddleware($middleware, $excluded = [])
  12623. {
  12624. /** @var \Illuminate\Routing\Router $instance */
  12625. return $instance->resolveMiddleware($middleware, $excluded);
  12626. }
  12627. /**
  12628. * Create a response instance from the given value.
  12629. *
  12630. * @param \Symfony\Component\HttpFoundation\Request $request
  12631. * @param mixed $response
  12632. * @return \Symfony\Component\HttpFoundation\Response
  12633. * @static
  12634. */
  12635. public static function prepareResponse($request, $response)
  12636. {
  12637. /** @var \Illuminate\Routing\Router $instance */
  12638. return $instance->prepareResponse($request, $response);
  12639. }
  12640. /**
  12641. * Static version of prepareResponse.
  12642. *
  12643. * @param \Symfony\Component\HttpFoundation\Request $request
  12644. * @param mixed $response
  12645. * @return \Symfony\Component\HttpFoundation\Response
  12646. * @static
  12647. */
  12648. public static function toResponse($request, $response)
  12649. {
  12650. return \Illuminate\Routing\Router::toResponse($request, $response);
  12651. }
  12652. /**
  12653. * Substitute the route bindings onto the route.
  12654. *
  12655. * @param \Illuminate\Routing\Route $route
  12656. * @return \Illuminate\Routing\Route
  12657. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  12658. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  12659. * @static
  12660. */
  12661. public static function substituteBindings($route)
  12662. {
  12663. /** @var \Illuminate\Routing\Router $instance */
  12664. return $instance->substituteBindings($route);
  12665. }
  12666. /**
  12667. * Substitute the implicit route bindings for the given route.
  12668. *
  12669. * @param \Illuminate\Routing\Route $route
  12670. * @return void
  12671. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  12672. * @throws \Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException
  12673. * @static
  12674. */
  12675. public static function substituteImplicitBindings($route)
  12676. {
  12677. /** @var \Illuminate\Routing\Router $instance */
  12678. $instance->substituteImplicitBindings($route);
  12679. }
  12680. /**
  12681. * Register a route matched event listener.
  12682. *
  12683. * @param string|callable $callback
  12684. * @return void
  12685. * @static
  12686. */
  12687. public static function matched($callback)
  12688. {
  12689. /** @var \Illuminate\Routing\Router $instance */
  12690. $instance->matched($callback);
  12691. }
  12692. /**
  12693. * Get all of the defined middleware short-hand names.
  12694. *
  12695. * @return array
  12696. * @static
  12697. */
  12698. public static function getMiddleware()
  12699. {
  12700. /** @var \Illuminate\Routing\Router $instance */
  12701. return $instance->getMiddleware();
  12702. }
  12703. /**
  12704. * Register a short-hand name for a middleware.
  12705. *
  12706. * @param string $name
  12707. * @param string $class
  12708. * @return \Illuminate\Routing\Router
  12709. * @static
  12710. */
  12711. public static function aliasMiddleware($name, $class)
  12712. {
  12713. /** @var \Illuminate\Routing\Router $instance */
  12714. return $instance->aliasMiddleware($name, $class);
  12715. }
  12716. /**
  12717. * Check if a middlewareGroup with the given name exists.
  12718. *
  12719. * @param string $name
  12720. * @return bool
  12721. * @static
  12722. */
  12723. public static function hasMiddlewareGroup($name)
  12724. {
  12725. /** @var \Illuminate\Routing\Router $instance */
  12726. return $instance->hasMiddlewareGroup($name);
  12727. }
  12728. /**
  12729. * Get all of the defined middleware groups.
  12730. *
  12731. * @return array
  12732. * @static
  12733. */
  12734. public static function getMiddlewareGroups()
  12735. {
  12736. /** @var \Illuminate\Routing\Router $instance */
  12737. return $instance->getMiddlewareGroups();
  12738. }
  12739. /**
  12740. * Register a group of middleware.
  12741. *
  12742. * @param string $name
  12743. * @param array $middleware
  12744. * @return \Illuminate\Routing\Router
  12745. * @static
  12746. */
  12747. public static function middlewareGroup($name, $middleware)
  12748. {
  12749. /** @var \Illuminate\Routing\Router $instance */
  12750. return $instance->middlewareGroup($name, $middleware);
  12751. }
  12752. /**
  12753. * Add a middleware to the beginning of a middleware group.
  12754. *
  12755. * If the middleware is already in the group, it will not be added again.
  12756. *
  12757. * @param string $group
  12758. * @param string $middleware
  12759. * @return \Illuminate\Routing\Router
  12760. * @static
  12761. */
  12762. public static function prependMiddlewareToGroup($group, $middleware)
  12763. {
  12764. /** @var \Illuminate\Routing\Router $instance */
  12765. return $instance->prependMiddlewareToGroup($group, $middleware);
  12766. }
  12767. /**
  12768. * Add a middleware to the end of a middleware group.
  12769. *
  12770. * If the middleware is already in the group, it will not be added again.
  12771. *
  12772. * @param string $group
  12773. * @param string $middleware
  12774. * @return \Illuminate\Routing\Router
  12775. * @static
  12776. */
  12777. public static function pushMiddlewareToGroup($group, $middleware)
  12778. {
  12779. /** @var \Illuminate\Routing\Router $instance */
  12780. return $instance->pushMiddlewareToGroup($group, $middleware);
  12781. }
  12782. /**
  12783. * Flush the router's middleware groups.
  12784. *
  12785. * @return \Illuminate\Routing\Router
  12786. * @static
  12787. */
  12788. public static function flushMiddlewareGroups()
  12789. {
  12790. /** @var \Illuminate\Routing\Router $instance */
  12791. return $instance->flushMiddlewareGroups();
  12792. }
  12793. /**
  12794. * Add a new route parameter binder.
  12795. *
  12796. * @param string $key
  12797. * @param string|callable $binder
  12798. * @return void
  12799. * @static
  12800. */
  12801. public static function bind($key, $binder)
  12802. {
  12803. /** @var \Illuminate\Routing\Router $instance */
  12804. $instance->bind($key, $binder);
  12805. }
  12806. /**
  12807. * Register a model binder for a wildcard.
  12808. *
  12809. * @param string $key
  12810. * @param string $class
  12811. * @param \Closure|null $callback
  12812. * @return void
  12813. * @static
  12814. */
  12815. public static function model($key, $class, $callback = null)
  12816. {
  12817. /** @var \Illuminate\Routing\Router $instance */
  12818. $instance->model($key, $class, $callback);
  12819. }
  12820. /**
  12821. * Get the binding callback for a given binding.
  12822. *
  12823. * @param string $key
  12824. * @return \Closure|null
  12825. * @static
  12826. */
  12827. public static function getBindingCallback($key)
  12828. {
  12829. /** @var \Illuminate\Routing\Router $instance */
  12830. return $instance->getBindingCallback($key);
  12831. }
  12832. /**
  12833. * Get the global "where" patterns.
  12834. *
  12835. * @return array
  12836. * @static
  12837. */
  12838. public static function getPatterns()
  12839. {
  12840. /** @var \Illuminate\Routing\Router $instance */
  12841. return $instance->getPatterns();
  12842. }
  12843. /**
  12844. * Set a global where pattern on all routes.
  12845. *
  12846. * @param string $key
  12847. * @param string $pattern
  12848. * @return void
  12849. * @static
  12850. */
  12851. public static function pattern($key, $pattern)
  12852. {
  12853. /** @var \Illuminate\Routing\Router $instance */
  12854. $instance->pattern($key, $pattern);
  12855. }
  12856. /**
  12857. * Set a group of global where patterns on all routes.
  12858. *
  12859. * @param array $patterns
  12860. * @return void
  12861. * @static
  12862. */
  12863. public static function patterns($patterns)
  12864. {
  12865. /** @var \Illuminate\Routing\Router $instance */
  12866. $instance->patterns($patterns);
  12867. }
  12868. /**
  12869. * Determine if the router currently has a group stack.
  12870. *
  12871. * @return bool
  12872. * @static
  12873. */
  12874. public static function hasGroupStack()
  12875. {
  12876. /** @var \Illuminate\Routing\Router $instance */
  12877. return $instance->hasGroupStack();
  12878. }
  12879. /**
  12880. * Get the current group stack for the router.
  12881. *
  12882. * @return array
  12883. * @static
  12884. */
  12885. public static function getGroupStack()
  12886. {
  12887. /** @var \Illuminate\Routing\Router $instance */
  12888. return $instance->getGroupStack();
  12889. }
  12890. /**
  12891. * Get a route parameter for the current route.
  12892. *
  12893. * @param string $key
  12894. * @param string|null $default
  12895. * @return mixed
  12896. * @static
  12897. */
  12898. public static function input($key, $default = null)
  12899. {
  12900. /** @var \Illuminate\Routing\Router $instance */
  12901. return $instance->input($key, $default);
  12902. }
  12903. /**
  12904. * Get the request currently being dispatched.
  12905. *
  12906. * @return \Illuminate\Http\Request
  12907. * @static
  12908. */
  12909. public static function getCurrentRequest()
  12910. {
  12911. /** @var \Illuminate\Routing\Router $instance */
  12912. return $instance->getCurrentRequest();
  12913. }
  12914. /**
  12915. * Get the currently dispatched route instance.
  12916. *
  12917. * @return \Illuminate\Routing\Route|null
  12918. * @static
  12919. */
  12920. public static function getCurrentRoute()
  12921. {
  12922. /** @var \Illuminate\Routing\Router $instance */
  12923. return $instance->getCurrentRoute();
  12924. }
  12925. /**
  12926. * Get the currently dispatched route instance.
  12927. *
  12928. * @return \Illuminate\Routing\Route|null
  12929. * @static
  12930. */
  12931. public static function current()
  12932. {
  12933. /** @var \Illuminate\Routing\Router $instance */
  12934. return $instance->current();
  12935. }
  12936. /**
  12937. * Check if a route with the given name exists.
  12938. *
  12939. * @param string|array $name
  12940. * @return bool
  12941. * @static
  12942. */
  12943. public static function has($name)
  12944. {
  12945. /** @var \Illuminate\Routing\Router $instance */
  12946. return $instance->has($name);
  12947. }
  12948. /**
  12949. * Get the current route name.
  12950. *
  12951. * @return string|null
  12952. * @static
  12953. */
  12954. public static function currentRouteName()
  12955. {
  12956. /** @var \Illuminate\Routing\Router $instance */
  12957. return $instance->currentRouteName();
  12958. }
  12959. /**
  12960. * Alias for the "currentRouteNamed" method.
  12961. *
  12962. * @param mixed $patterns
  12963. * @return bool
  12964. * @static
  12965. */
  12966. public static function is(...$patterns)
  12967. {
  12968. /** @var \Illuminate\Routing\Router $instance */
  12969. return $instance->is(...$patterns);
  12970. }
  12971. /**
  12972. * Determine if the current route matches a pattern.
  12973. *
  12974. * @param mixed $patterns
  12975. * @return bool
  12976. * @static
  12977. */
  12978. public static function currentRouteNamed(...$patterns)
  12979. {
  12980. /** @var \Illuminate\Routing\Router $instance */
  12981. return $instance->currentRouteNamed(...$patterns);
  12982. }
  12983. /**
  12984. * Get the current route action.
  12985. *
  12986. * @return string|null
  12987. * @static
  12988. */
  12989. public static function currentRouteAction()
  12990. {
  12991. /** @var \Illuminate\Routing\Router $instance */
  12992. return $instance->currentRouteAction();
  12993. }
  12994. /**
  12995. * Alias for the "currentRouteUses" method.
  12996. *
  12997. * @param array $patterns
  12998. * @return bool
  12999. * @static
  13000. */
  13001. public static function uses(...$patterns)
  13002. {
  13003. /** @var \Illuminate\Routing\Router $instance */
  13004. return $instance->uses(...$patterns);
  13005. }
  13006. /**
  13007. * Determine if the current route action matches a given action.
  13008. *
  13009. * @param string $action
  13010. * @return bool
  13011. * @static
  13012. */
  13013. public static function currentRouteUses($action)
  13014. {
  13015. /** @var \Illuminate\Routing\Router $instance */
  13016. return $instance->currentRouteUses($action);
  13017. }
  13018. /**
  13019. * Set the unmapped global resource parameters to singular.
  13020. *
  13021. * @param bool $singular
  13022. * @return void
  13023. * @static
  13024. */
  13025. public static function singularResourceParameters($singular = true)
  13026. {
  13027. /** @var \Illuminate\Routing\Router $instance */
  13028. $instance->singularResourceParameters($singular);
  13029. }
  13030. /**
  13031. * Set the global resource parameter mapping.
  13032. *
  13033. * @param array $parameters
  13034. * @return void
  13035. * @static
  13036. */
  13037. public static function resourceParameters($parameters = [])
  13038. {
  13039. /** @var \Illuminate\Routing\Router $instance */
  13040. $instance->resourceParameters($parameters);
  13041. }
  13042. /**
  13043. * Get or set the verbs used in the resource URIs.
  13044. *
  13045. * @param array $verbs
  13046. * @return array|null
  13047. * @static
  13048. */
  13049. public static function resourceVerbs($verbs = [])
  13050. {
  13051. /** @var \Illuminate\Routing\Router $instance */
  13052. return $instance->resourceVerbs($verbs);
  13053. }
  13054. /**
  13055. * Get the underlying route collection.
  13056. *
  13057. * @return \Illuminate\Routing\RouteCollectionInterface
  13058. * @static
  13059. */
  13060. public static function getRoutes()
  13061. {
  13062. /** @var \Illuminate\Routing\Router $instance */
  13063. return $instance->getRoutes();
  13064. }
  13065. /**
  13066. * Set the route collection instance.
  13067. *
  13068. * @param \Illuminate\Routing\RouteCollection $routes
  13069. * @return void
  13070. * @static
  13071. */
  13072. public static function setRoutes($routes)
  13073. {
  13074. /** @var \Illuminate\Routing\Router $instance */
  13075. $instance->setRoutes($routes);
  13076. }
  13077. /**
  13078. * Set the compiled route collection instance.
  13079. *
  13080. * @param array $routes
  13081. * @return void
  13082. * @static
  13083. */
  13084. public static function setCompiledRoutes($routes)
  13085. {
  13086. /** @var \Illuminate\Routing\Router $instance */
  13087. $instance->setCompiledRoutes($routes);
  13088. }
  13089. /**
  13090. * Remove any duplicate middleware from the given array.
  13091. *
  13092. * @param array $middleware
  13093. * @return array
  13094. * @static
  13095. */
  13096. public static function uniqueMiddleware($middleware)
  13097. {
  13098. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  13099. }
  13100. /**
  13101. * Set the container instance used by the router.
  13102. *
  13103. * @param \Illuminate\Container\Container $container
  13104. * @return \Illuminate\Routing\Router
  13105. * @static
  13106. */
  13107. public static function setContainer($container)
  13108. {
  13109. /** @var \Illuminate\Routing\Router $instance */
  13110. return $instance->setContainer($container);
  13111. }
  13112. /**
  13113. * Register a custom macro.
  13114. *
  13115. * @param string $name
  13116. * @param object|callable $macro
  13117. * @return void
  13118. * @static
  13119. */
  13120. public static function macro($name, $macro)
  13121. {
  13122. \Illuminate\Routing\Router::macro($name, $macro);
  13123. }
  13124. /**
  13125. * Mix another object into the class.
  13126. *
  13127. * @param object $mixin
  13128. * @param bool $replace
  13129. * @return void
  13130. * @throws \ReflectionException
  13131. * @static
  13132. */
  13133. public static function mixin($mixin, $replace = true)
  13134. {
  13135. \Illuminate\Routing\Router::mixin($mixin, $replace);
  13136. }
  13137. /**
  13138. * Checks if macro is registered.
  13139. *
  13140. * @param string $name
  13141. * @return bool
  13142. * @static
  13143. */
  13144. public static function hasMacro($name)
  13145. {
  13146. return \Illuminate\Routing\Router::hasMacro($name);
  13147. }
  13148. /**
  13149. * Flush the existing macros.
  13150. *
  13151. * @return void
  13152. * @static
  13153. */
  13154. public static function flushMacros()
  13155. {
  13156. \Illuminate\Routing\Router::flushMacros();
  13157. }
  13158. /**
  13159. * Dynamically handle calls to the class.
  13160. *
  13161. * @param string $method
  13162. * @param array $parameters
  13163. * @return mixed
  13164. * @throws \BadMethodCallException
  13165. * @static
  13166. */
  13167. public static function macroCall($method, $parameters)
  13168. {
  13169. /** @var \Illuminate\Routing\Router $instance */
  13170. return $instance->macroCall($method, $parameters);
  13171. }
  13172. /**
  13173. *
  13174. *
  13175. * @see \Spatie\Feed\FeedServiceProvider::registerRouteMacro()
  13176. * @param mixed $baseUrl
  13177. * @static
  13178. */
  13179. public static function feeds($baseUrl = '')
  13180. {
  13181. return \Illuminate\Routing\Router::feeds($baseUrl);
  13182. }
  13183. }
  13184. /**
  13185. *
  13186. *
  13187. * @see \Illuminate\Database\Schema\Builder
  13188. */
  13189. class Schema {
  13190. /**
  13191. * Create a database in the schema.
  13192. *
  13193. * @param string $name
  13194. * @return bool
  13195. * @static
  13196. */
  13197. public static function createDatabase($name)
  13198. {
  13199. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13200. return $instance->createDatabase($name);
  13201. }
  13202. /**
  13203. * Drop a database from the schema if the database exists.
  13204. *
  13205. * @param string $name
  13206. * @return bool
  13207. * @static
  13208. */
  13209. public static function dropDatabaseIfExists($name)
  13210. {
  13211. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13212. return $instance->dropDatabaseIfExists($name);
  13213. }
  13214. /**
  13215. * Determine if the given table exists.
  13216. *
  13217. * @param string $table
  13218. * @return bool
  13219. * @static
  13220. */
  13221. public static function hasTable($table)
  13222. {
  13223. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13224. return $instance->hasTable($table);
  13225. }
  13226. /**
  13227. * Get the column listing for a given table.
  13228. *
  13229. * @param string $table
  13230. * @return array
  13231. * @static
  13232. */
  13233. public static function getColumnListing($table)
  13234. {
  13235. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13236. return $instance->getColumnListing($table);
  13237. }
  13238. /**
  13239. * Drop all tables from the database.
  13240. *
  13241. * @return void
  13242. * @static
  13243. */
  13244. public static function dropAllTables()
  13245. {
  13246. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13247. $instance->dropAllTables();
  13248. }
  13249. /**
  13250. * Drop all views from the database.
  13251. *
  13252. * @return void
  13253. * @static
  13254. */
  13255. public static function dropAllViews()
  13256. {
  13257. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13258. $instance->dropAllViews();
  13259. }
  13260. /**
  13261. * Get all of the table names for the database.
  13262. *
  13263. * @return array
  13264. * @static
  13265. */
  13266. public static function getAllTables()
  13267. {
  13268. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13269. return $instance->getAllTables();
  13270. }
  13271. /**
  13272. * Get all of the view names for the database.
  13273. *
  13274. * @return array
  13275. * @static
  13276. */
  13277. public static function getAllViews()
  13278. {
  13279. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13280. return $instance->getAllViews();
  13281. }
  13282. /**
  13283. * Set the default string length for migrations.
  13284. *
  13285. * @param int $length
  13286. * @return void
  13287. * @static
  13288. */
  13289. public static function defaultStringLength($length)
  13290. { //Method inherited from \Illuminate\Database\Schema\Builder
  13291. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  13292. }
  13293. /**
  13294. * Set the default morph key type for migrations.
  13295. *
  13296. * @param string $type
  13297. * @return void
  13298. * @throws \InvalidArgumentException
  13299. * @static
  13300. */
  13301. public static function defaultMorphKeyType($type)
  13302. { //Method inherited from \Illuminate\Database\Schema\Builder
  13303. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  13304. }
  13305. /**
  13306. * Set the default morph key type for migrations to UUIDs.
  13307. *
  13308. * @return void
  13309. * @static
  13310. */
  13311. public static function morphUsingUuids()
  13312. { //Method inherited from \Illuminate\Database\Schema\Builder
  13313. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  13314. }
  13315. /**
  13316. * Determine if the given table has a given column.
  13317. *
  13318. * @param string $table
  13319. * @param string $column
  13320. * @return bool
  13321. * @static
  13322. */
  13323. public static function hasColumn($table, $column)
  13324. { //Method inherited from \Illuminate\Database\Schema\Builder
  13325. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13326. return $instance->hasColumn($table, $column);
  13327. }
  13328. /**
  13329. * Determine if the given table has given columns.
  13330. *
  13331. * @param string $table
  13332. * @param array $columns
  13333. * @return bool
  13334. * @static
  13335. */
  13336. public static function hasColumns($table, $columns)
  13337. { //Method inherited from \Illuminate\Database\Schema\Builder
  13338. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13339. return $instance->hasColumns($table, $columns);
  13340. }
  13341. /**
  13342. * Execute a table builder callback if the given table has a given column.
  13343. *
  13344. * @param string $table
  13345. * @param string $column
  13346. * @param \Closure $callback
  13347. * @return void
  13348. * @static
  13349. */
  13350. public static function whenTableHasColumn($table, $column, $callback)
  13351. { //Method inherited from \Illuminate\Database\Schema\Builder
  13352. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13353. $instance->whenTableHasColumn($table, $column, $callback);
  13354. }
  13355. /**
  13356. * Execute a table builder callback if the given table doesn't have a given column.
  13357. *
  13358. * @param string $table
  13359. * @param string $column
  13360. * @param \Closure $callback
  13361. * @return void
  13362. * @static
  13363. */
  13364. public static function whenTableDoesntHaveColumn($table, $column, $callback)
  13365. { //Method inherited from \Illuminate\Database\Schema\Builder
  13366. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13367. $instance->whenTableDoesntHaveColumn($table, $column, $callback);
  13368. }
  13369. /**
  13370. * Get the data type for the given column name.
  13371. *
  13372. * @param string $table
  13373. * @param string $column
  13374. * @return string
  13375. * @static
  13376. */
  13377. public static function getColumnType($table, $column)
  13378. { //Method inherited from \Illuminate\Database\Schema\Builder
  13379. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13380. return $instance->getColumnType($table, $column);
  13381. }
  13382. /**
  13383. * Modify a table on the schema.
  13384. *
  13385. * @param string $table
  13386. * @param \Closure $callback
  13387. * @return void
  13388. * @static
  13389. */
  13390. public static function table($table, $callback)
  13391. { //Method inherited from \Illuminate\Database\Schema\Builder
  13392. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13393. $instance->table($table, $callback);
  13394. }
  13395. /**
  13396. * Create a new table on the schema.
  13397. *
  13398. * @param string $table
  13399. * @param \Closure $callback
  13400. * @return void
  13401. * @static
  13402. */
  13403. public static function create($table, $callback)
  13404. { //Method inherited from \Illuminate\Database\Schema\Builder
  13405. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13406. $instance->create($table, $callback);
  13407. }
  13408. /**
  13409. * Drop a table from the schema.
  13410. *
  13411. * @param string $table
  13412. * @return void
  13413. * @static
  13414. */
  13415. public static function drop($table)
  13416. { //Method inherited from \Illuminate\Database\Schema\Builder
  13417. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13418. $instance->drop($table);
  13419. }
  13420. /**
  13421. * Drop a table from the schema if it exists.
  13422. *
  13423. * @param string $table
  13424. * @return void
  13425. * @static
  13426. */
  13427. public static function dropIfExists($table)
  13428. { //Method inherited from \Illuminate\Database\Schema\Builder
  13429. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13430. $instance->dropIfExists($table);
  13431. }
  13432. /**
  13433. * Drop columns from a table schema.
  13434. *
  13435. * @param string $table
  13436. * @param string|array $columns
  13437. * @return void
  13438. * @static
  13439. */
  13440. public static function dropColumns($table, $columns)
  13441. { //Method inherited from \Illuminate\Database\Schema\Builder
  13442. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13443. $instance->dropColumns($table, $columns);
  13444. }
  13445. /**
  13446. * Drop all types from the database.
  13447. *
  13448. * @return void
  13449. * @throws \LogicException
  13450. * @static
  13451. */
  13452. public static function dropAllTypes()
  13453. { //Method inherited from \Illuminate\Database\Schema\Builder
  13454. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13455. $instance->dropAllTypes();
  13456. }
  13457. /**
  13458. * Rename a table on the schema.
  13459. *
  13460. * @param string $from
  13461. * @param string $to
  13462. * @return void
  13463. * @static
  13464. */
  13465. public static function rename($from, $to)
  13466. { //Method inherited from \Illuminate\Database\Schema\Builder
  13467. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13468. $instance->rename($from, $to);
  13469. }
  13470. /**
  13471. * Enable foreign key constraints.
  13472. *
  13473. * @return bool
  13474. * @static
  13475. */
  13476. public static function enableForeignKeyConstraints()
  13477. { //Method inherited from \Illuminate\Database\Schema\Builder
  13478. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13479. return $instance->enableForeignKeyConstraints();
  13480. }
  13481. /**
  13482. * Disable foreign key constraints.
  13483. *
  13484. * @return bool
  13485. * @static
  13486. */
  13487. public static function disableForeignKeyConstraints()
  13488. { //Method inherited from \Illuminate\Database\Schema\Builder
  13489. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13490. return $instance->disableForeignKeyConstraints();
  13491. }
  13492. /**
  13493. * Get the database connection instance.
  13494. *
  13495. * @return \Illuminate\Database\Connection
  13496. * @static
  13497. */
  13498. public static function getConnection()
  13499. { //Method inherited from \Illuminate\Database\Schema\Builder
  13500. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13501. return $instance->getConnection();
  13502. }
  13503. /**
  13504. * Set the database connection instance.
  13505. *
  13506. * @param \Illuminate\Database\Connection $connection
  13507. * @return \Illuminate\Database\Schema\MySqlBuilder
  13508. * @static
  13509. */
  13510. public static function setConnection($connection)
  13511. { //Method inherited from \Illuminate\Database\Schema\Builder
  13512. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13513. return $instance->setConnection($connection);
  13514. }
  13515. /**
  13516. * Set the Schema Blueprint resolver callback.
  13517. *
  13518. * @param \Closure $resolver
  13519. * @return void
  13520. * @static
  13521. */
  13522. public static function blueprintResolver($resolver)
  13523. { //Method inherited from \Illuminate\Database\Schema\Builder
  13524. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  13525. $instance->blueprintResolver($resolver);
  13526. }
  13527. }
  13528. /**
  13529. *
  13530. *
  13531. * @see \Illuminate\Session\SessionManager
  13532. * @see \Illuminate\Session\Store
  13533. */
  13534. class Session {
  13535. /**
  13536. * Determine if requests for the same session should wait for each to finish before executing.
  13537. *
  13538. * @return bool
  13539. * @static
  13540. */
  13541. public static function shouldBlock()
  13542. {
  13543. /** @var \Illuminate\Session\SessionManager $instance */
  13544. return $instance->shouldBlock();
  13545. }
  13546. /**
  13547. * Get the name of the cache store / driver that should be used to acquire session locks.
  13548. *
  13549. * @return string|null
  13550. * @static
  13551. */
  13552. public static function blockDriver()
  13553. {
  13554. /** @var \Illuminate\Session\SessionManager $instance */
  13555. return $instance->blockDriver();
  13556. }
  13557. /**
  13558. * Get the session configuration.
  13559. *
  13560. * @return array
  13561. * @static
  13562. */
  13563. public static function getSessionConfig()
  13564. {
  13565. /** @var \Illuminate\Session\SessionManager $instance */
  13566. return $instance->getSessionConfig();
  13567. }
  13568. /**
  13569. * Get the default session driver name.
  13570. *
  13571. * @return string
  13572. * @static
  13573. */
  13574. public static function getDefaultDriver()
  13575. {
  13576. /** @var \Illuminate\Session\SessionManager $instance */
  13577. return $instance->getDefaultDriver();
  13578. }
  13579. /**
  13580. * Set the default session driver name.
  13581. *
  13582. * @param string $name
  13583. * @return void
  13584. * @static
  13585. */
  13586. public static function setDefaultDriver($name)
  13587. {
  13588. /** @var \Illuminate\Session\SessionManager $instance */
  13589. $instance->setDefaultDriver($name);
  13590. }
  13591. /**
  13592. * Get a driver instance.
  13593. *
  13594. * @param string|null $driver
  13595. * @return mixed
  13596. * @throws \InvalidArgumentException
  13597. * @static
  13598. */
  13599. public static function driver($driver = null)
  13600. { //Method inherited from \Illuminate\Support\Manager
  13601. /** @var \Illuminate\Session\SessionManager $instance */
  13602. return $instance->driver($driver);
  13603. }
  13604. /**
  13605. * Register a custom driver creator Closure.
  13606. *
  13607. * @param string $driver
  13608. * @param \Closure $callback
  13609. * @return \Illuminate\Session\SessionManager
  13610. * @static
  13611. */
  13612. public static function extend($driver, $callback)
  13613. { //Method inherited from \Illuminate\Support\Manager
  13614. /** @var \Illuminate\Session\SessionManager $instance */
  13615. return $instance->extend($driver, $callback);
  13616. }
  13617. /**
  13618. * Get all of the created "drivers".
  13619. *
  13620. * @return array
  13621. * @static
  13622. */
  13623. public static function getDrivers()
  13624. { //Method inherited from \Illuminate\Support\Manager
  13625. /** @var \Illuminate\Session\SessionManager $instance */
  13626. return $instance->getDrivers();
  13627. }
  13628. /**
  13629. * Get the container instance used by the manager.
  13630. *
  13631. * @return \Illuminate\Contracts\Container\Container
  13632. * @static
  13633. */
  13634. public static function getContainer()
  13635. { //Method inherited from \Illuminate\Support\Manager
  13636. /** @var \Illuminate\Session\SessionManager $instance */
  13637. return $instance->getContainer();
  13638. }
  13639. /**
  13640. * Set the container instance used by the manager.
  13641. *
  13642. * @param \Illuminate\Contracts\Container\Container $container
  13643. * @return \Illuminate\Session\SessionManager
  13644. * @static
  13645. */
  13646. public static function setContainer($container)
  13647. { //Method inherited from \Illuminate\Support\Manager
  13648. /** @var \Illuminate\Session\SessionManager $instance */
  13649. return $instance->setContainer($container);
  13650. }
  13651. /**
  13652. * Forget all of the resolved driver instances.
  13653. *
  13654. * @return \Illuminate\Session\SessionManager
  13655. * @static
  13656. */
  13657. public static function forgetDrivers()
  13658. { //Method inherited from \Illuminate\Support\Manager
  13659. /** @var \Illuminate\Session\SessionManager $instance */
  13660. return $instance->forgetDrivers();
  13661. }
  13662. /**
  13663. * Start the session, reading the data from a handler.
  13664. *
  13665. * @return bool
  13666. * @static
  13667. */
  13668. public static function start()
  13669. {
  13670. /** @var \Illuminate\Session\Store $instance */
  13671. return $instance->start();
  13672. }
  13673. /**
  13674. * Save the session data to storage.
  13675. *
  13676. * @return void
  13677. * @static
  13678. */
  13679. public static function save()
  13680. {
  13681. /** @var \Illuminate\Session\Store $instance */
  13682. $instance->save();
  13683. }
  13684. /**
  13685. * Age the flash data for the session.
  13686. *
  13687. * @return void
  13688. * @static
  13689. */
  13690. public static function ageFlashData()
  13691. {
  13692. /** @var \Illuminate\Session\Store $instance */
  13693. $instance->ageFlashData();
  13694. }
  13695. /**
  13696. * Get all of the session data.
  13697. *
  13698. * @return array
  13699. * @static
  13700. */
  13701. public static function all()
  13702. {
  13703. /** @var \Illuminate\Session\Store $instance */
  13704. return $instance->all();
  13705. }
  13706. /**
  13707. * Get a subset of the session data.
  13708. *
  13709. * @param array $keys
  13710. * @return array
  13711. * @static
  13712. */
  13713. public static function only($keys)
  13714. {
  13715. /** @var \Illuminate\Session\Store $instance */
  13716. return $instance->only($keys);
  13717. }
  13718. /**
  13719. * Checks if a key exists.
  13720. *
  13721. * @param string|array $key
  13722. * @return bool
  13723. * @static
  13724. */
  13725. public static function exists($key)
  13726. {
  13727. /** @var \Illuminate\Session\Store $instance */
  13728. return $instance->exists($key);
  13729. }
  13730. /**
  13731. * Determine if the given key is missing from the session data.
  13732. *
  13733. * @param string|array $key
  13734. * @return bool
  13735. * @static
  13736. */
  13737. public static function missing($key)
  13738. {
  13739. /** @var \Illuminate\Session\Store $instance */
  13740. return $instance->missing($key);
  13741. }
  13742. /**
  13743. * Checks if a key is present and not null.
  13744. *
  13745. * @param string|array $key
  13746. * @return bool
  13747. * @static
  13748. */
  13749. public static function has($key)
  13750. {
  13751. /** @var \Illuminate\Session\Store $instance */
  13752. return $instance->has($key);
  13753. }
  13754. /**
  13755. * Get an item from the session.
  13756. *
  13757. * @param string $key
  13758. * @param mixed $default
  13759. * @return mixed
  13760. * @static
  13761. */
  13762. public static function get($key, $default = null)
  13763. {
  13764. /** @var \Illuminate\Session\Store $instance */
  13765. return $instance->get($key, $default);
  13766. }
  13767. /**
  13768. * Get the value of a given key and then forget it.
  13769. *
  13770. * @param string $key
  13771. * @param mixed $default
  13772. * @return mixed
  13773. * @static
  13774. */
  13775. public static function pull($key, $default = null)
  13776. {
  13777. /** @var \Illuminate\Session\Store $instance */
  13778. return $instance->pull($key, $default);
  13779. }
  13780. /**
  13781. * Determine if the session contains old input.
  13782. *
  13783. * @param string|null $key
  13784. * @return bool
  13785. * @static
  13786. */
  13787. public static function hasOldInput($key = null)
  13788. {
  13789. /** @var \Illuminate\Session\Store $instance */
  13790. return $instance->hasOldInput($key);
  13791. }
  13792. /**
  13793. * Get the requested item from the flashed input array.
  13794. *
  13795. * @param string|null $key
  13796. * @param mixed $default
  13797. * @return mixed
  13798. * @static
  13799. */
  13800. public static function getOldInput($key = null, $default = null)
  13801. {
  13802. /** @var \Illuminate\Session\Store $instance */
  13803. return $instance->getOldInput($key, $default);
  13804. }
  13805. /**
  13806. * Replace the given session attributes entirely.
  13807. *
  13808. * @param array $attributes
  13809. * @return void
  13810. * @static
  13811. */
  13812. public static function replace($attributes)
  13813. {
  13814. /** @var \Illuminate\Session\Store $instance */
  13815. $instance->replace($attributes);
  13816. }
  13817. /**
  13818. * Put a key / value pair or array of key / value pairs in the session.
  13819. *
  13820. * @param string|array $key
  13821. * @param mixed $value
  13822. * @return void
  13823. * @static
  13824. */
  13825. public static function put($key, $value = null)
  13826. {
  13827. /** @var \Illuminate\Session\Store $instance */
  13828. $instance->put($key, $value);
  13829. }
  13830. /**
  13831. * Get an item from the session, or store the default value.
  13832. *
  13833. * @param string $key
  13834. * @param \Closure $callback
  13835. * @return mixed
  13836. * @static
  13837. */
  13838. public static function remember($key, $callback)
  13839. {
  13840. /** @var \Illuminate\Session\Store $instance */
  13841. return $instance->remember($key, $callback);
  13842. }
  13843. /**
  13844. * Push a value onto a session array.
  13845. *
  13846. * @param string $key
  13847. * @param mixed $value
  13848. * @return void
  13849. * @static
  13850. */
  13851. public static function push($key, $value)
  13852. {
  13853. /** @var \Illuminate\Session\Store $instance */
  13854. $instance->push($key, $value);
  13855. }
  13856. /**
  13857. * Increment the value of an item in the session.
  13858. *
  13859. * @param string $key
  13860. * @param int $amount
  13861. * @return mixed
  13862. * @static
  13863. */
  13864. public static function increment($key, $amount = 1)
  13865. {
  13866. /** @var \Illuminate\Session\Store $instance */
  13867. return $instance->increment($key, $amount);
  13868. }
  13869. /**
  13870. * Decrement the value of an item in the session.
  13871. *
  13872. * @param string $key
  13873. * @param int $amount
  13874. * @return int
  13875. * @static
  13876. */
  13877. public static function decrement($key, $amount = 1)
  13878. {
  13879. /** @var \Illuminate\Session\Store $instance */
  13880. return $instance->decrement($key, $amount);
  13881. }
  13882. /**
  13883. * Flash a key / value pair to the session.
  13884. *
  13885. * @param string $key
  13886. * @param mixed $value
  13887. * @return void
  13888. * @static
  13889. */
  13890. public static function flash($key, $value = true)
  13891. {
  13892. /** @var \Illuminate\Session\Store $instance */
  13893. $instance->flash($key, $value);
  13894. }
  13895. /**
  13896. * Flash a key / value pair to the session for immediate use.
  13897. *
  13898. * @param string $key
  13899. * @param mixed $value
  13900. * @return void
  13901. * @static
  13902. */
  13903. public static function now($key, $value)
  13904. {
  13905. /** @var \Illuminate\Session\Store $instance */
  13906. $instance->now($key, $value);
  13907. }
  13908. /**
  13909. * Reflash all of the session flash data.
  13910. *
  13911. * @return void
  13912. * @static
  13913. */
  13914. public static function reflash()
  13915. {
  13916. /** @var \Illuminate\Session\Store $instance */
  13917. $instance->reflash();
  13918. }
  13919. /**
  13920. * Reflash a subset of the current flash data.
  13921. *
  13922. * @param array|mixed $keys
  13923. * @return void
  13924. * @static
  13925. */
  13926. public static function keep($keys = null)
  13927. {
  13928. /** @var \Illuminate\Session\Store $instance */
  13929. $instance->keep($keys);
  13930. }
  13931. /**
  13932. * Flash an input array to the session.
  13933. *
  13934. * @param array $value
  13935. * @return void
  13936. * @static
  13937. */
  13938. public static function flashInput($value)
  13939. {
  13940. /** @var \Illuminate\Session\Store $instance */
  13941. $instance->flashInput($value);
  13942. }
  13943. /**
  13944. * Remove an item from the session, returning its value.
  13945. *
  13946. * @param string $key
  13947. * @return mixed
  13948. * @static
  13949. */
  13950. public static function remove($key)
  13951. {
  13952. /** @var \Illuminate\Session\Store $instance */
  13953. return $instance->remove($key);
  13954. }
  13955. /**
  13956. * Remove one or many items from the session.
  13957. *
  13958. * @param string|array $keys
  13959. * @return void
  13960. * @static
  13961. */
  13962. public static function forget($keys)
  13963. {
  13964. /** @var \Illuminate\Session\Store $instance */
  13965. $instance->forget($keys);
  13966. }
  13967. /**
  13968. * Remove all of the items from the session.
  13969. *
  13970. * @return void
  13971. * @static
  13972. */
  13973. public static function flush()
  13974. {
  13975. /** @var \Illuminate\Session\Store $instance */
  13976. $instance->flush();
  13977. }
  13978. /**
  13979. * Flush the session data and regenerate the ID.
  13980. *
  13981. * @return bool
  13982. * @static
  13983. */
  13984. public static function invalidate()
  13985. {
  13986. /** @var \Illuminate\Session\Store $instance */
  13987. return $instance->invalidate();
  13988. }
  13989. /**
  13990. * Generate a new session identifier.
  13991. *
  13992. * @param bool $destroy
  13993. * @return bool
  13994. * @static
  13995. */
  13996. public static function regenerate($destroy = false)
  13997. {
  13998. /** @var \Illuminate\Session\Store $instance */
  13999. return $instance->regenerate($destroy);
  14000. }
  14001. /**
  14002. * Generate a new session ID for the session.
  14003. *
  14004. * @param bool $destroy
  14005. * @return bool
  14006. * @static
  14007. */
  14008. public static function migrate($destroy = false)
  14009. {
  14010. /** @var \Illuminate\Session\Store $instance */
  14011. return $instance->migrate($destroy);
  14012. }
  14013. /**
  14014. * Determine if the session has been started.
  14015. *
  14016. * @return bool
  14017. * @static
  14018. */
  14019. public static function isStarted()
  14020. {
  14021. /** @var \Illuminate\Session\Store $instance */
  14022. return $instance->isStarted();
  14023. }
  14024. /**
  14025. * Get the name of the session.
  14026. *
  14027. * @return string
  14028. * @static
  14029. */
  14030. public static function getName()
  14031. {
  14032. /** @var \Illuminate\Session\Store $instance */
  14033. return $instance->getName();
  14034. }
  14035. /**
  14036. * Set the name of the session.
  14037. *
  14038. * @param string $name
  14039. * @return void
  14040. * @static
  14041. */
  14042. public static function setName($name)
  14043. {
  14044. /** @var \Illuminate\Session\Store $instance */
  14045. $instance->setName($name);
  14046. }
  14047. /**
  14048. * Get the current session ID.
  14049. *
  14050. * @return string
  14051. * @static
  14052. */
  14053. public static function getId()
  14054. {
  14055. /** @var \Illuminate\Session\Store $instance */
  14056. return $instance->getId();
  14057. }
  14058. /**
  14059. * Set the session ID.
  14060. *
  14061. * @param string $id
  14062. * @return void
  14063. * @static
  14064. */
  14065. public static function setId($id)
  14066. {
  14067. /** @var \Illuminate\Session\Store $instance */
  14068. $instance->setId($id);
  14069. }
  14070. /**
  14071. * Determine if this is a valid session ID.
  14072. *
  14073. * @param string $id
  14074. * @return bool
  14075. * @static
  14076. */
  14077. public static function isValidId($id)
  14078. {
  14079. /** @var \Illuminate\Session\Store $instance */
  14080. return $instance->isValidId($id);
  14081. }
  14082. /**
  14083. * Set the existence of the session on the handler if applicable.
  14084. *
  14085. * @param bool $value
  14086. * @return void
  14087. * @static
  14088. */
  14089. public static function setExists($value)
  14090. {
  14091. /** @var \Illuminate\Session\Store $instance */
  14092. $instance->setExists($value);
  14093. }
  14094. /**
  14095. * Get the CSRF token value.
  14096. *
  14097. * @return string
  14098. * @static
  14099. */
  14100. public static function token()
  14101. {
  14102. /** @var \Illuminate\Session\Store $instance */
  14103. return $instance->token();
  14104. }
  14105. /**
  14106. * Regenerate the CSRF token value.
  14107. *
  14108. * @return void
  14109. * @static
  14110. */
  14111. public static function regenerateToken()
  14112. {
  14113. /** @var \Illuminate\Session\Store $instance */
  14114. $instance->regenerateToken();
  14115. }
  14116. /**
  14117. * Get the previous URL from the session.
  14118. *
  14119. * @return string|null
  14120. * @static
  14121. */
  14122. public static function previousUrl()
  14123. {
  14124. /** @var \Illuminate\Session\Store $instance */
  14125. return $instance->previousUrl();
  14126. }
  14127. /**
  14128. * Set the "previous" URL in the session.
  14129. *
  14130. * @param string $url
  14131. * @return void
  14132. * @static
  14133. */
  14134. public static function setPreviousUrl($url)
  14135. {
  14136. /** @var \Illuminate\Session\Store $instance */
  14137. $instance->setPreviousUrl($url);
  14138. }
  14139. /**
  14140. * Specify that the user has confirmed their password.
  14141. *
  14142. * @return void
  14143. * @static
  14144. */
  14145. public static function passwordConfirmed()
  14146. {
  14147. /** @var \Illuminate\Session\Store $instance */
  14148. $instance->passwordConfirmed();
  14149. }
  14150. /**
  14151. * Get the underlying session handler implementation.
  14152. *
  14153. * @return \SessionHandlerInterface
  14154. * @static
  14155. */
  14156. public static function getHandler()
  14157. {
  14158. /** @var \Illuminate\Session\Store $instance */
  14159. return $instance->getHandler();
  14160. }
  14161. /**
  14162. * Determine if the session handler needs a request.
  14163. *
  14164. * @return bool
  14165. * @static
  14166. */
  14167. public static function handlerNeedsRequest()
  14168. {
  14169. /** @var \Illuminate\Session\Store $instance */
  14170. return $instance->handlerNeedsRequest();
  14171. }
  14172. /**
  14173. * Set the request on the handler instance.
  14174. *
  14175. * @param \Illuminate\Http\Request $request
  14176. * @return void
  14177. * @static
  14178. */
  14179. public static function setRequestOnHandler($request)
  14180. {
  14181. /** @var \Illuminate\Session\Store $instance */
  14182. $instance->setRequestOnHandler($request);
  14183. }
  14184. }
  14185. /**
  14186. *
  14187. *
  14188. * @see \Illuminate\Filesystem\FilesystemManager
  14189. */
  14190. class Storage {
  14191. /**
  14192. * Get a filesystem instance.
  14193. *
  14194. * @param string|null $name
  14195. * @return \Illuminate\Filesystem\FilesystemAdapter
  14196. * @static
  14197. */
  14198. public static function drive($name = null)
  14199. {
  14200. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14201. return $instance->drive($name);
  14202. }
  14203. /**
  14204. * Get a filesystem instance.
  14205. *
  14206. * @param string|null $name
  14207. * @return \Illuminate\Filesystem\FilesystemAdapter
  14208. * @static
  14209. */
  14210. public static function disk($name = null)
  14211. {
  14212. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14213. return $instance->disk($name);
  14214. }
  14215. /**
  14216. * Get a default cloud filesystem instance.
  14217. *
  14218. * @return \Illuminate\Filesystem\FilesystemAdapter
  14219. * @static
  14220. */
  14221. public static function cloud()
  14222. {
  14223. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14224. return $instance->cloud();
  14225. }
  14226. /**
  14227. * Build an on-demand disk.
  14228. *
  14229. * @param string|array $config
  14230. * @return \Illuminate\Filesystem\FilesystemAdapter
  14231. * @static
  14232. */
  14233. public static function build($config)
  14234. {
  14235. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14236. return $instance->build($config);
  14237. }
  14238. /**
  14239. * Create an instance of the local driver.
  14240. *
  14241. * @param array $config
  14242. * @return \Illuminate\Filesystem\FilesystemAdapter
  14243. * @static
  14244. */
  14245. public static function createLocalDriver($config)
  14246. {
  14247. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14248. return $instance->createLocalDriver($config);
  14249. }
  14250. /**
  14251. * Create an instance of the ftp driver.
  14252. *
  14253. * @param array $config
  14254. * @return \Illuminate\Filesystem\FilesystemAdapter
  14255. * @static
  14256. */
  14257. public static function createFtpDriver($config)
  14258. {
  14259. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14260. return $instance->createFtpDriver($config);
  14261. }
  14262. /**
  14263. * Create an instance of the sftp driver.
  14264. *
  14265. * @param array $config
  14266. * @return \Illuminate\Filesystem\FilesystemAdapter
  14267. * @static
  14268. */
  14269. public static function createSftpDriver($config)
  14270. {
  14271. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14272. return $instance->createSftpDriver($config);
  14273. }
  14274. /**
  14275. * Create an instance of the Amazon S3 driver.
  14276. *
  14277. * @param array $config
  14278. * @return \Illuminate\Contracts\Filesystem\Cloud
  14279. * @static
  14280. */
  14281. public static function createS3Driver($config)
  14282. {
  14283. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14284. return $instance->createS3Driver($config);
  14285. }
  14286. /**
  14287. * Set the given disk instance.
  14288. *
  14289. * @param string $name
  14290. * @param mixed $disk
  14291. * @return \Illuminate\Filesystem\FilesystemManager
  14292. * @static
  14293. */
  14294. public static function set($name, $disk)
  14295. {
  14296. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14297. return $instance->set($name, $disk);
  14298. }
  14299. /**
  14300. * Get the default driver name.
  14301. *
  14302. * @return string
  14303. * @static
  14304. */
  14305. public static function getDefaultDriver()
  14306. {
  14307. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14308. return $instance->getDefaultDriver();
  14309. }
  14310. /**
  14311. * Get the default cloud driver name.
  14312. *
  14313. * @return string
  14314. * @static
  14315. */
  14316. public static function getDefaultCloudDriver()
  14317. {
  14318. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14319. return $instance->getDefaultCloudDriver();
  14320. }
  14321. /**
  14322. * Unset the given disk instances.
  14323. *
  14324. * @param array|string $disk
  14325. * @return \Illuminate\Filesystem\FilesystemManager
  14326. * @static
  14327. */
  14328. public static function forgetDisk($disk)
  14329. {
  14330. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14331. return $instance->forgetDisk($disk);
  14332. }
  14333. /**
  14334. * Disconnect the given disk and remove from local cache.
  14335. *
  14336. * @param string|null $name
  14337. * @return void
  14338. * @static
  14339. */
  14340. public static function purge($name = null)
  14341. {
  14342. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14343. $instance->purge($name);
  14344. }
  14345. /**
  14346. * Register a custom driver creator Closure.
  14347. *
  14348. * @param string $driver
  14349. * @param \Closure $callback
  14350. * @return \Illuminate\Filesystem\FilesystemManager
  14351. * @static
  14352. */
  14353. public static function extend($driver, $callback)
  14354. {
  14355. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14356. return $instance->extend($driver, $callback);
  14357. }
  14358. /**
  14359. * Set the application instance used by the manager.
  14360. *
  14361. * @param \Illuminate\Contracts\Foundation\Application $app
  14362. * @return \Illuminate\Filesystem\FilesystemManager
  14363. * @static
  14364. */
  14365. public static function setApplication($app)
  14366. {
  14367. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  14368. return $instance->setApplication($app);
  14369. }
  14370. /**
  14371. * Assert that the given file or directory exists.
  14372. *
  14373. * @param string|array $path
  14374. * @param string|null $content
  14375. * @return \Illuminate\Filesystem\FilesystemAdapter
  14376. * @static
  14377. */
  14378. public static function assertExists($path, $content = null)
  14379. {
  14380. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14381. return $instance->assertExists($path, $content);
  14382. }
  14383. /**
  14384. * Assert that the given file or directory does not exist.
  14385. *
  14386. * @param string|array $path
  14387. * @return \Illuminate\Filesystem\FilesystemAdapter
  14388. * @static
  14389. */
  14390. public static function assertMissing($path)
  14391. {
  14392. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14393. return $instance->assertMissing($path);
  14394. }
  14395. /**
  14396. * Assert that the given directory is empty.
  14397. *
  14398. * @param string $path
  14399. * @return \Illuminate\Filesystem\FilesystemAdapter
  14400. * @static
  14401. */
  14402. public static function assertDirectoryEmpty($path)
  14403. {
  14404. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14405. return $instance->assertDirectoryEmpty($path);
  14406. }
  14407. /**
  14408. * Determine if a file or directory exists.
  14409. *
  14410. * @param string $path
  14411. * @return bool
  14412. * @static
  14413. */
  14414. public static function exists($path)
  14415. {
  14416. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14417. return $instance->exists($path);
  14418. }
  14419. /**
  14420. * Determine if a file or directory is missing.
  14421. *
  14422. * @param string $path
  14423. * @return bool
  14424. * @static
  14425. */
  14426. public static function missing($path)
  14427. {
  14428. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14429. return $instance->missing($path);
  14430. }
  14431. /**
  14432. * Determine if a file exists.
  14433. *
  14434. * @param string $path
  14435. * @return bool
  14436. * @static
  14437. */
  14438. public static function fileExists($path)
  14439. {
  14440. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14441. return $instance->fileExists($path);
  14442. }
  14443. /**
  14444. * Determine if a file is missing.
  14445. *
  14446. * @param string $path
  14447. * @return bool
  14448. * @static
  14449. */
  14450. public static function fileMissing($path)
  14451. {
  14452. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14453. return $instance->fileMissing($path);
  14454. }
  14455. /**
  14456. * Determine if a directory exists.
  14457. *
  14458. * @param string $path
  14459. * @return bool
  14460. * @static
  14461. */
  14462. public static function directoryExists($path)
  14463. {
  14464. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14465. return $instance->directoryExists($path);
  14466. }
  14467. /**
  14468. * Determine if a directory is missing.
  14469. *
  14470. * @param string $path
  14471. * @return bool
  14472. * @static
  14473. */
  14474. public static function directoryMissing($path)
  14475. {
  14476. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14477. return $instance->directoryMissing($path);
  14478. }
  14479. /**
  14480. * Get the full path for the file at the given "short" path.
  14481. *
  14482. * @param string $path
  14483. * @return string
  14484. * @static
  14485. */
  14486. public static function path($path)
  14487. {
  14488. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14489. return $instance->path($path);
  14490. }
  14491. /**
  14492. * Get the contents of a file.
  14493. *
  14494. * @param string $path
  14495. * @return string|null
  14496. * @static
  14497. */
  14498. public static function get($path)
  14499. {
  14500. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14501. return $instance->get($path);
  14502. }
  14503. /**
  14504. * Create a streamed response for a given file.
  14505. *
  14506. * @param string $path
  14507. * @param string|null $name
  14508. * @param array $headers
  14509. * @param string|null $disposition
  14510. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  14511. * @static
  14512. */
  14513. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  14514. {
  14515. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14516. return $instance->response($path, $name, $headers, $disposition);
  14517. }
  14518. /**
  14519. * Create a streamed download response for a given file.
  14520. *
  14521. * @param string $path
  14522. * @param string|null $name
  14523. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  14524. * @static
  14525. */
  14526. public static function download($path, $name = null, $headers = [])
  14527. {
  14528. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14529. return $instance->download($path, $name, $headers);
  14530. }
  14531. /**
  14532. * Write the contents of a file.
  14533. *
  14534. * @param string $path
  14535. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  14536. * @param mixed $options
  14537. * @return string|bool
  14538. * @static
  14539. */
  14540. public static function put($path, $contents, $options = [])
  14541. {
  14542. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14543. return $instance->put($path, $contents, $options);
  14544. }
  14545. /**
  14546. * Store the uploaded file on the disk.
  14547. *
  14548. * @param string $path
  14549. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  14550. * @param mixed $options
  14551. * @return string|false
  14552. * @static
  14553. */
  14554. public static function putFile($path, $file, $options = [])
  14555. {
  14556. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14557. return $instance->putFile($path, $file, $options);
  14558. }
  14559. /**
  14560. * Store the uploaded file on the disk with a given name.
  14561. *
  14562. * @param string $path
  14563. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  14564. * @param string $name
  14565. * @param mixed $options
  14566. * @return string|false
  14567. * @static
  14568. */
  14569. public static function putFileAs($path, $file, $name, $options = [])
  14570. {
  14571. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14572. return $instance->putFileAs($path, $file, $name, $options);
  14573. }
  14574. /**
  14575. * Get the visibility for the given path.
  14576. *
  14577. * @param string $path
  14578. * @return string
  14579. * @static
  14580. */
  14581. public static function getVisibility($path)
  14582. {
  14583. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14584. return $instance->getVisibility($path);
  14585. }
  14586. /**
  14587. * Set the visibility for the given path.
  14588. *
  14589. * @param string $path
  14590. * @param string $visibility
  14591. * @return bool
  14592. * @static
  14593. */
  14594. public static function setVisibility($path, $visibility)
  14595. {
  14596. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14597. return $instance->setVisibility($path, $visibility);
  14598. }
  14599. /**
  14600. * Prepend to a file.
  14601. *
  14602. * @param string $path
  14603. * @param string $data
  14604. * @param string $separator
  14605. * @return bool
  14606. * @static
  14607. */
  14608. public static function prepend($path, $data, $separator = '
  14609. ')
  14610. {
  14611. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14612. return $instance->prepend($path, $data, $separator);
  14613. }
  14614. /**
  14615. * Append to a file.
  14616. *
  14617. * @param string $path
  14618. * @param string $data
  14619. * @param string $separator
  14620. * @return bool
  14621. * @static
  14622. */
  14623. public static function append($path, $data, $separator = '
  14624. ')
  14625. {
  14626. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14627. return $instance->append($path, $data, $separator);
  14628. }
  14629. /**
  14630. * Delete the file at a given path.
  14631. *
  14632. * @param string|array $paths
  14633. * @return bool
  14634. * @static
  14635. */
  14636. public static function delete($paths)
  14637. {
  14638. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14639. return $instance->delete($paths);
  14640. }
  14641. /**
  14642. * Copy a file to a new location.
  14643. *
  14644. * @param string $from
  14645. * @param string $to
  14646. * @return bool
  14647. * @static
  14648. */
  14649. public static function copy($from, $to)
  14650. {
  14651. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14652. return $instance->copy($from, $to);
  14653. }
  14654. /**
  14655. * Move a file to a new location.
  14656. *
  14657. * @param string $from
  14658. * @param string $to
  14659. * @return bool
  14660. * @static
  14661. */
  14662. public static function move($from, $to)
  14663. {
  14664. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14665. return $instance->move($from, $to);
  14666. }
  14667. /**
  14668. * Get the file size of a given file.
  14669. *
  14670. * @param string $path
  14671. * @return int
  14672. * @static
  14673. */
  14674. public static function size($path)
  14675. {
  14676. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14677. return $instance->size($path);
  14678. }
  14679. /**
  14680. * Get the mime-type of a given file.
  14681. *
  14682. * @param string $path
  14683. * @return string|false
  14684. * @static
  14685. */
  14686. public static function mimeType($path)
  14687. {
  14688. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14689. return $instance->mimeType($path);
  14690. }
  14691. /**
  14692. * Get the file's last modification time.
  14693. *
  14694. * @param string $path
  14695. * @return int
  14696. * @static
  14697. */
  14698. public static function lastModified($path)
  14699. {
  14700. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14701. return $instance->lastModified($path);
  14702. }
  14703. /**
  14704. * Get a resource to read the file.
  14705. *
  14706. * @param string $path
  14707. * @return resource|null The path resource or null on failure.
  14708. * @static
  14709. */
  14710. public static function readStream($path)
  14711. {
  14712. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14713. return $instance->readStream($path);
  14714. }
  14715. /**
  14716. * Write a new file using a stream.
  14717. *
  14718. * @param string $path
  14719. * @param resource $resource
  14720. * @param array $options
  14721. * @return bool
  14722. * @static
  14723. */
  14724. public static function writeStream($path, $resource, $options = [])
  14725. {
  14726. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14727. return $instance->writeStream($path, $resource, $options);
  14728. }
  14729. /**
  14730. * Get the URL for the file at the given path.
  14731. *
  14732. * @param string $path
  14733. * @return string
  14734. * @throws \RuntimeException
  14735. * @static
  14736. */
  14737. public static function url($path)
  14738. {
  14739. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14740. return $instance->url($path);
  14741. }
  14742. /**
  14743. * Get a temporary URL for the file at the given path.
  14744. *
  14745. * @param string $path
  14746. * @param \DateTimeInterface $expiration
  14747. * @param array $options
  14748. * @return string
  14749. * @throws \RuntimeException
  14750. * @static
  14751. */
  14752. public static function temporaryUrl($path, $expiration, $options = [])
  14753. {
  14754. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14755. return $instance->temporaryUrl($path, $expiration, $options);
  14756. }
  14757. /**
  14758. * Get an array of all files in a directory.
  14759. *
  14760. * @param string|null $directory
  14761. * @param bool $recursive
  14762. * @return array
  14763. * @static
  14764. */
  14765. public static function files($directory = null, $recursive = false)
  14766. {
  14767. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14768. return $instance->files($directory, $recursive);
  14769. }
  14770. /**
  14771. * Get all of the files from the given directory (recursive).
  14772. *
  14773. * @param string|null $directory
  14774. * @return array
  14775. * @static
  14776. */
  14777. public static function allFiles($directory = null)
  14778. {
  14779. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14780. return $instance->allFiles($directory);
  14781. }
  14782. /**
  14783. * Get all of the directories within a given directory.
  14784. *
  14785. * @param string|null $directory
  14786. * @param bool $recursive
  14787. * @return array
  14788. * @static
  14789. */
  14790. public static function directories($directory = null, $recursive = false)
  14791. {
  14792. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14793. return $instance->directories($directory, $recursive);
  14794. }
  14795. /**
  14796. * Get all the directories within a given directory (recursive).
  14797. *
  14798. * @param string|null $directory
  14799. * @return array
  14800. * @static
  14801. */
  14802. public static function allDirectories($directory = null)
  14803. {
  14804. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14805. return $instance->allDirectories($directory);
  14806. }
  14807. /**
  14808. * Create a directory.
  14809. *
  14810. * @param string $path
  14811. * @return bool
  14812. * @static
  14813. */
  14814. public static function makeDirectory($path)
  14815. {
  14816. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14817. return $instance->makeDirectory($path);
  14818. }
  14819. /**
  14820. * Recursively delete a directory.
  14821. *
  14822. * @param string $directory
  14823. * @return bool
  14824. * @static
  14825. */
  14826. public static function deleteDirectory($directory)
  14827. {
  14828. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14829. return $instance->deleteDirectory($directory);
  14830. }
  14831. /**
  14832. * Get the Flysystem driver.
  14833. *
  14834. * @return \League\Flysystem\FilesystemOperator
  14835. * @static
  14836. */
  14837. public static function getDriver()
  14838. {
  14839. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14840. return $instance->getDriver();
  14841. }
  14842. /**
  14843. * Get the Flysystem adapter.
  14844. *
  14845. * @return \League\Flysystem\FilesystemAdapter
  14846. * @static
  14847. */
  14848. public static function getAdapter()
  14849. {
  14850. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14851. return $instance->getAdapter();
  14852. }
  14853. /**
  14854. * Get the configuration values.
  14855. *
  14856. * @return array
  14857. * @static
  14858. */
  14859. public static function getConfig()
  14860. {
  14861. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14862. return $instance->getConfig();
  14863. }
  14864. /**
  14865. * Define a custom temporary URL builder callback.
  14866. *
  14867. * @param \Closure $callback
  14868. * @return void
  14869. * @static
  14870. */
  14871. public static function buildTemporaryUrlsUsing($callback)
  14872. {
  14873. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14874. $instance->buildTemporaryUrlsUsing($callback);
  14875. }
  14876. /**
  14877. * Register a custom macro.
  14878. *
  14879. * @param string $name
  14880. * @param object|callable $macro
  14881. * @return void
  14882. * @static
  14883. */
  14884. public static function macro($name, $macro)
  14885. {
  14886. \Illuminate\Filesystem\FilesystemAdapter::macro($name, $macro);
  14887. }
  14888. /**
  14889. * Mix another object into the class.
  14890. *
  14891. * @param object $mixin
  14892. * @param bool $replace
  14893. * @return void
  14894. * @throws \ReflectionException
  14895. * @static
  14896. */
  14897. public static function mixin($mixin, $replace = true)
  14898. {
  14899. \Illuminate\Filesystem\FilesystemAdapter::mixin($mixin, $replace);
  14900. }
  14901. /**
  14902. * Checks if macro is registered.
  14903. *
  14904. * @param string $name
  14905. * @return bool
  14906. * @static
  14907. */
  14908. public static function hasMacro($name)
  14909. {
  14910. return \Illuminate\Filesystem\FilesystemAdapter::hasMacro($name);
  14911. }
  14912. /**
  14913. * Flush the existing macros.
  14914. *
  14915. * @return void
  14916. * @static
  14917. */
  14918. public static function flushMacros()
  14919. {
  14920. \Illuminate\Filesystem\FilesystemAdapter::flushMacros();
  14921. }
  14922. /**
  14923. * Dynamically handle calls to the class.
  14924. *
  14925. * @param string $method
  14926. * @param array $parameters
  14927. * @return mixed
  14928. * @throws \BadMethodCallException
  14929. * @static
  14930. */
  14931. public static function macroCall($method, $parameters)
  14932. {
  14933. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14934. return $instance->macroCall($method, $parameters);
  14935. }
  14936. }
  14937. /**
  14938. *
  14939. *
  14940. * @see \Illuminate\Routing\UrlGenerator
  14941. */
  14942. class URL {
  14943. /**
  14944. * Get the full URL for the current request.
  14945. *
  14946. * @return string
  14947. * @static
  14948. */
  14949. public static function full()
  14950. {
  14951. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14952. return $instance->full();
  14953. }
  14954. /**
  14955. * Get the current URL for the request.
  14956. *
  14957. * @return string
  14958. * @static
  14959. */
  14960. public static function current()
  14961. {
  14962. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14963. return $instance->current();
  14964. }
  14965. /**
  14966. * Get the URL for the previous request.
  14967. *
  14968. * @param mixed $fallback
  14969. * @return string
  14970. * @static
  14971. */
  14972. public static function previous($fallback = false)
  14973. {
  14974. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14975. return $instance->previous($fallback);
  14976. }
  14977. /**
  14978. * Get the previous path info for the request.
  14979. *
  14980. * @param mixed $fallback
  14981. * @return string
  14982. * @static
  14983. */
  14984. public static function previousPath($fallback = false)
  14985. {
  14986. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14987. return $instance->previousPath($fallback);
  14988. }
  14989. /**
  14990. * Generate an absolute URL to the given path.
  14991. *
  14992. * @param string $path
  14993. * @param mixed $extra
  14994. * @param bool|null $secure
  14995. * @return string
  14996. * @static
  14997. */
  14998. public static function to($path, $extra = [], $secure = null)
  14999. {
  15000. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15001. return $instance->to($path, $extra, $secure);
  15002. }
  15003. /**
  15004. * Generate a secure, absolute URL to the given path.
  15005. *
  15006. * @param string $path
  15007. * @param array $parameters
  15008. * @return string
  15009. * @static
  15010. */
  15011. public static function secure($path, $parameters = [])
  15012. {
  15013. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15014. return $instance->secure($path, $parameters);
  15015. }
  15016. /**
  15017. * Generate the URL to an application asset.
  15018. *
  15019. * @param string $path
  15020. * @param bool|null $secure
  15021. * @return string
  15022. * @static
  15023. */
  15024. public static function asset($path, $secure = null)
  15025. {
  15026. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15027. return $instance->asset($path, $secure);
  15028. }
  15029. /**
  15030. * Generate the URL to a secure asset.
  15031. *
  15032. * @param string $path
  15033. * @return string
  15034. * @static
  15035. */
  15036. public static function secureAsset($path)
  15037. {
  15038. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15039. return $instance->secureAsset($path);
  15040. }
  15041. /**
  15042. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  15043. *
  15044. * @param string $root
  15045. * @param string $path
  15046. * @param bool|null $secure
  15047. * @return string
  15048. * @static
  15049. */
  15050. public static function assetFrom($root, $path, $secure = null)
  15051. {
  15052. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15053. return $instance->assetFrom($root, $path, $secure);
  15054. }
  15055. /**
  15056. * Get the default scheme for a raw URL.
  15057. *
  15058. * @param bool|null $secure
  15059. * @return string
  15060. * @static
  15061. */
  15062. public static function formatScheme($secure = null)
  15063. {
  15064. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15065. return $instance->formatScheme($secure);
  15066. }
  15067. /**
  15068. * Create a signed route URL for a named route.
  15069. *
  15070. * @param string $name
  15071. * @param mixed $parameters
  15072. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  15073. * @param bool $absolute
  15074. * @return string
  15075. * @throws \InvalidArgumentException
  15076. * @static
  15077. */
  15078. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  15079. {
  15080. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15081. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  15082. }
  15083. /**
  15084. * Create a temporary signed route URL for a named route.
  15085. *
  15086. * @param string $name
  15087. * @param \DateTimeInterface|\DateInterval|int $expiration
  15088. * @param array $parameters
  15089. * @param bool $absolute
  15090. * @return string
  15091. * @static
  15092. */
  15093. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  15094. {
  15095. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15096. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  15097. }
  15098. /**
  15099. * Determine if the given request has a valid signature.
  15100. *
  15101. * @param \Illuminate\Http\Request $request
  15102. * @param bool $absolute
  15103. * @param array $ignoreQuery
  15104. * @return bool
  15105. * @static
  15106. */
  15107. public static function hasValidSignature($request, $absolute = true, $ignoreQuery = [])
  15108. {
  15109. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15110. return $instance->hasValidSignature($request, $absolute, $ignoreQuery);
  15111. }
  15112. /**
  15113. * Determine if the given request has a valid signature for a relative URL.
  15114. *
  15115. * @param \Illuminate\Http\Request $request
  15116. * @param array $ignoreQuery
  15117. * @return bool
  15118. * @static
  15119. */
  15120. public static function hasValidRelativeSignature($request, $ignoreQuery = [])
  15121. {
  15122. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15123. return $instance->hasValidRelativeSignature($request, $ignoreQuery);
  15124. }
  15125. /**
  15126. * Determine if the signature from the given request matches the URL.
  15127. *
  15128. * @param \Illuminate\Http\Request $request
  15129. * @param bool $absolute
  15130. * @param array $ignoreQuery
  15131. * @return bool
  15132. * @static
  15133. */
  15134. public static function hasCorrectSignature($request, $absolute = true, $ignoreQuery = [])
  15135. {
  15136. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15137. return $instance->hasCorrectSignature($request, $absolute, $ignoreQuery);
  15138. }
  15139. /**
  15140. * Determine if the expires timestamp from the given request is not from the past.
  15141. *
  15142. * @param \Illuminate\Http\Request $request
  15143. * @return bool
  15144. * @static
  15145. */
  15146. public static function signatureHasNotExpired($request)
  15147. {
  15148. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15149. return $instance->signatureHasNotExpired($request);
  15150. }
  15151. /**
  15152. * Get the URL to a named route.
  15153. *
  15154. * @param string $name
  15155. * @param mixed $parameters
  15156. * @param bool $absolute
  15157. * @return string
  15158. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  15159. * @static
  15160. */
  15161. public static function route($name, $parameters = [], $absolute = true)
  15162. {
  15163. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15164. return $instance->route($name, $parameters, $absolute);
  15165. }
  15166. /**
  15167. * Get the URL for a given route instance.
  15168. *
  15169. * @param \Illuminate\Routing\Route $route
  15170. * @param mixed $parameters
  15171. * @param bool $absolute
  15172. * @return string
  15173. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  15174. * @static
  15175. */
  15176. public static function toRoute($route, $parameters, $absolute)
  15177. {
  15178. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15179. return $instance->toRoute($route, $parameters, $absolute);
  15180. }
  15181. /**
  15182. * Get the URL to a controller action.
  15183. *
  15184. * @param string|array $action
  15185. * @param mixed $parameters
  15186. * @param bool $absolute
  15187. * @return string
  15188. * @throws \InvalidArgumentException
  15189. * @static
  15190. */
  15191. public static function action($action, $parameters = [], $absolute = true)
  15192. {
  15193. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15194. return $instance->action($action, $parameters, $absolute);
  15195. }
  15196. /**
  15197. * Format the array of URL parameters.
  15198. *
  15199. * @param mixed|array $parameters
  15200. * @return array
  15201. * @static
  15202. */
  15203. public static function formatParameters($parameters)
  15204. {
  15205. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15206. return $instance->formatParameters($parameters);
  15207. }
  15208. /**
  15209. * Get the base URL for the request.
  15210. *
  15211. * @param string $scheme
  15212. * @param string|null $root
  15213. * @return string
  15214. * @static
  15215. */
  15216. public static function formatRoot($scheme, $root = null)
  15217. {
  15218. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15219. return $instance->formatRoot($scheme, $root);
  15220. }
  15221. /**
  15222. * Format the given URL segments into a single URL.
  15223. *
  15224. * @param string $root
  15225. * @param string $path
  15226. * @param \Illuminate\Routing\Route|null $route
  15227. * @return string
  15228. * @static
  15229. */
  15230. public static function format($root, $path, $route = null)
  15231. {
  15232. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15233. return $instance->format($root, $path, $route);
  15234. }
  15235. /**
  15236. * Determine if the given path is a valid URL.
  15237. *
  15238. * @param string $path
  15239. * @return bool
  15240. * @static
  15241. */
  15242. public static function isValidUrl($path)
  15243. {
  15244. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15245. return $instance->isValidUrl($path);
  15246. }
  15247. /**
  15248. * Set the default named parameters used by the URL generator.
  15249. *
  15250. * @param array $defaults
  15251. * @return void
  15252. * @static
  15253. */
  15254. public static function defaults($defaults)
  15255. {
  15256. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15257. $instance->defaults($defaults);
  15258. }
  15259. /**
  15260. * Get the default named parameters used by the URL generator.
  15261. *
  15262. * @return array
  15263. * @static
  15264. */
  15265. public static function getDefaultParameters()
  15266. {
  15267. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15268. return $instance->getDefaultParameters();
  15269. }
  15270. /**
  15271. * Force the scheme for URLs.
  15272. *
  15273. * @param string|null $scheme
  15274. * @return void
  15275. * @static
  15276. */
  15277. public static function forceScheme($scheme)
  15278. {
  15279. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15280. $instance->forceScheme($scheme);
  15281. }
  15282. /**
  15283. * Set the forced root URL.
  15284. *
  15285. * @param string|null $root
  15286. * @return void
  15287. * @static
  15288. */
  15289. public static function forceRootUrl($root)
  15290. {
  15291. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15292. $instance->forceRootUrl($root);
  15293. }
  15294. /**
  15295. * Set a callback to be used to format the host of generated URLs.
  15296. *
  15297. * @param \Closure $callback
  15298. * @return \Illuminate\Routing\UrlGenerator
  15299. * @static
  15300. */
  15301. public static function formatHostUsing($callback)
  15302. {
  15303. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15304. return $instance->formatHostUsing($callback);
  15305. }
  15306. /**
  15307. * Set a callback to be used to format the path of generated URLs.
  15308. *
  15309. * @param \Closure $callback
  15310. * @return \Illuminate\Routing\UrlGenerator
  15311. * @static
  15312. */
  15313. public static function formatPathUsing($callback)
  15314. {
  15315. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15316. return $instance->formatPathUsing($callback);
  15317. }
  15318. /**
  15319. * Get the path formatter being used by the URL generator.
  15320. *
  15321. * @return \Closure
  15322. * @static
  15323. */
  15324. public static function pathFormatter()
  15325. {
  15326. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15327. return $instance->pathFormatter();
  15328. }
  15329. /**
  15330. * Get the request instance.
  15331. *
  15332. * @return \Illuminate\Http\Request
  15333. * @static
  15334. */
  15335. public static function getRequest()
  15336. {
  15337. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15338. return $instance->getRequest();
  15339. }
  15340. /**
  15341. * Set the current request instance.
  15342. *
  15343. * @param \Illuminate\Http\Request $request
  15344. * @return void
  15345. * @static
  15346. */
  15347. public static function setRequest($request)
  15348. {
  15349. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15350. $instance->setRequest($request);
  15351. }
  15352. /**
  15353. * Set the route collection.
  15354. *
  15355. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  15356. * @return \Illuminate\Routing\UrlGenerator
  15357. * @static
  15358. */
  15359. public static function setRoutes($routes)
  15360. {
  15361. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15362. return $instance->setRoutes($routes);
  15363. }
  15364. /**
  15365. * Set the session resolver for the generator.
  15366. *
  15367. * @param callable $sessionResolver
  15368. * @return \Illuminate\Routing\UrlGenerator
  15369. * @static
  15370. */
  15371. public static function setSessionResolver($sessionResolver)
  15372. {
  15373. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15374. return $instance->setSessionResolver($sessionResolver);
  15375. }
  15376. /**
  15377. * Set the encryption key resolver.
  15378. *
  15379. * @param callable $keyResolver
  15380. * @return \Illuminate\Routing\UrlGenerator
  15381. * @static
  15382. */
  15383. public static function setKeyResolver($keyResolver)
  15384. {
  15385. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15386. return $instance->setKeyResolver($keyResolver);
  15387. }
  15388. /**
  15389. * Get the root controller namespace.
  15390. *
  15391. * @return string
  15392. * @static
  15393. */
  15394. public static function getRootControllerNamespace()
  15395. {
  15396. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15397. return $instance->getRootControllerNamespace();
  15398. }
  15399. /**
  15400. * Set the root controller namespace.
  15401. *
  15402. * @param string $rootNamespace
  15403. * @return \Illuminate\Routing\UrlGenerator
  15404. * @static
  15405. */
  15406. public static function setRootControllerNamespace($rootNamespace)
  15407. {
  15408. /** @var \Illuminate\Routing\UrlGenerator $instance */
  15409. return $instance->setRootControllerNamespace($rootNamespace);
  15410. }
  15411. /**
  15412. * Register a custom macro.
  15413. *
  15414. * @param string $name
  15415. * @param object|callable $macro
  15416. * @return void
  15417. * @static
  15418. */
  15419. public static function macro($name, $macro)
  15420. {
  15421. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  15422. }
  15423. /**
  15424. * Mix another object into the class.
  15425. *
  15426. * @param object $mixin
  15427. * @param bool $replace
  15428. * @return void
  15429. * @throws \ReflectionException
  15430. * @static
  15431. */
  15432. public static function mixin($mixin, $replace = true)
  15433. {
  15434. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  15435. }
  15436. /**
  15437. * Checks if macro is registered.
  15438. *
  15439. * @param string $name
  15440. * @return bool
  15441. * @static
  15442. */
  15443. public static function hasMacro($name)
  15444. {
  15445. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  15446. }
  15447. /**
  15448. * Flush the existing macros.
  15449. *
  15450. * @return void
  15451. * @static
  15452. */
  15453. public static function flushMacros()
  15454. {
  15455. \Illuminate\Routing\UrlGenerator::flushMacros();
  15456. }
  15457. }
  15458. /**
  15459. *
  15460. *
  15461. * @see \Illuminate\Validation\Factory
  15462. */
  15463. class Validator {
  15464. /**
  15465. * Create a new Validator instance.
  15466. *
  15467. * @param array $data
  15468. * @param array $rules
  15469. * @param array $messages
  15470. * @param array $customAttributes
  15471. * @return \Illuminate\Validation\Validator
  15472. * @static
  15473. */
  15474. public static function make($data, $rules, $messages = [], $customAttributes = [])
  15475. {
  15476. /** @var \Illuminate\Validation\Factory $instance */
  15477. return $instance->make($data, $rules, $messages, $customAttributes);
  15478. }
  15479. /**
  15480. * Validate the given data against the provided rules.
  15481. *
  15482. * @param array $data
  15483. * @param array $rules
  15484. * @param array $messages
  15485. * @param array $customAttributes
  15486. * @return array
  15487. * @throws \Illuminate\Validation\ValidationException
  15488. * @static
  15489. */
  15490. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  15491. {
  15492. /** @var \Illuminate\Validation\Factory $instance */
  15493. return $instance->validate($data, $rules, $messages, $customAttributes);
  15494. }
  15495. /**
  15496. * Register a custom validator extension.
  15497. *
  15498. * @param string $rule
  15499. * @param \Closure|string $extension
  15500. * @param string|null $message
  15501. * @return void
  15502. * @static
  15503. */
  15504. public static function extend($rule, $extension, $message = null)
  15505. {
  15506. /** @var \Illuminate\Validation\Factory $instance */
  15507. $instance->extend($rule, $extension, $message);
  15508. }
  15509. /**
  15510. * Register a custom implicit validator extension.
  15511. *
  15512. * @param string $rule
  15513. * @param \Closure|string $extension
  15514. * @param string|null $message
  15515. * @return void
  15516. * @static
  15517. */
  15518. public static function extendImplicit($rule, $extension, $message = null)
  15519. {
  15520. /** @var \Illuminate\Validation\Factory $instance */
  15521. $instance->extendImplicit($rule, $extension, $message);
  15522. }
  15523. /**
  15524. * Register a custom dependent validator extension.
  15525. *
  15526. * @param string $rule
  15527. * @param \Closure|string $extension
  15528. * @param string|null $message
  15529. * @return void
  15530. * @static
  15531. */
  15532. public static function extendDependent($rule, $extension, $message = null)
  15533. {
  15534. /** @var \Illuminate\Validation\Factory $instance */
  15535. $instance->extendDependent($rule, $extension, $message);
  15536. }
  15537. /**
  15538. * Register a custom validator message replacer.
  15539. *
  15540. * @param string $rule
  15541. * @param \Closure|string $replacer
  15542. * @return void
  15543. * @static
  15544. */
  15545. public static function replacer($rule, $replacer)
  15546. {
  15547. /** @var \Illuminate\Validation\Factory $instance */
  15548. $instance->replacer($rule, $replacer);
  15549. }
  15550. /**
  15551. * Indicate that unvalidated array keys should be included in validated data when the parent array is validated.
  15552. *
  15553. * @return void
  15554. * @static
  15555. */
  15556. public static function includeUnvalidatedArrayKeys()
  15557. {
  15558. /** @var \Illuminate\Validation\Factory $instance */
  15559. $instance->includeUnvalidatedArrayKeys();
  15560. }
  15561. /**
  15562. * Indicate that unvalidated array keys should be excluded from the validated data, even if the parent array was validated.
  15563. *
  15564. * @return void
  15565. * @static
  15566. */
  15567. public static function excludeUnvalidatedArrayKeys()
  15568. {
  15569. /** @var \Illuminate\Validation\Factory $instance */
  15570. $instance->excludeUnvalidatedArrayKeys();
  15571. }
  15572. /**
  15573. * Set the Validator instance resolver.
  15574. *
  15575. * @param \Closure $resolver
  15576. * @return void
  15577. * @static
  15578. */
  15579. public static function resolver($resolver)
  15580. {
  15581. /** @var \Illuminate\Validation\Factory $instance */
  15582. $instance->resolver($resolver);
  15583. }
  15584. /**
  15585. * Get the Translator implementation.
  15586. *
  15587. * @return \Illuminate\Contracts\Translation\Translator
  15588. * @static
  15589. */
  15590. public static function getTranslator()
  15591. {
  15592. /** @var \Illuminate\Validation\Factory $instance */
  15593. return $instance->getTranslator();
  15594. }
  15595. /**
  15596. * Get the Presence Verifier implementation.
  15597. *
  15598. * @return \Illuminate\Validation\PresenceVerifierInterface
  15599. * @static
  15600. */
  15601. public static function getPresenceVerifier()
  15602. {
  15603. /** @var \Illuminate\Validation\Factory $instance */
  15604. return $instance->getPresenceVerifier();
  15605. }
  15606. /**
  15607. * Set the Presence Verifier implementation.
  15608. *
  15609. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  15610. * @return void
  15611. * @static
  15612. */
  15613. public static function setPresenceVerifier($presenceVerifier)
  15614. {
  15615. /** @var \Illuminate\Validation\Factory $instance */
  15616. $instance->setPresenceVerifier($presenceVerifier);
  15617. }
  15618. /**
  15619. * Get the container instance used by the validation factory.
  15620. *
  15621. * @return \Illuminate\Contracts\Container\Container|null
  15622. * @static
  15623. */
  15624. public static function getContainer()
  15625. {
  15626. /** @var \Illuminate\Validation\Factory $instance */
  15627. return $instance->getContainer();
  15628. }
  15629. /**
  15630. * Set the container instance used by the validation factory.
  15631. *
  15632. * @param \Illuminate\Contracts\Container\Container $container
  15633. * @return \Illuminate\Validation\Factory
  15634. * @static
  15635. */
  15636. public static function setContainer($container)
  15637. {
  15638. /** @var \Illuminate\Validation\Factory $instance */
  15639. return $instance->setContainer($container);
  15640. }
  15641. }
  15642. /**
  15643. *
  15644. *
  15645. * @see \Illuminate\View\Factory
  15646. */
  15647. class View {
  15648. /**
  15649. * Get the evaluated view contents for the given view.
  15650. *
  15651. * @param string $path
  15652. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  15653. * @param array $mergeData
  15654. * @return \Illuminate\Contracts\View\View
  15655. * @static
  15656. */
  15657. public static function file($path, $data = [], $mergeData = [])
  15658. {
  15659. /** @var \Illuminate\View\Factory $instance */
  15660. return $instance->file($path, $data, $mergeData);
  15661. }
  15662. /**
  15663. * Get the evaluated view contents for the given view.
  15664. *
  15665. * @param string $view
  15666. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  15667. * @param array $mergeData
  15668. * @return \Illuminate\Contracts\View\View
  15669. * @static
  15670. */
  15671. public static function make($view, $data = [], $mergeData = [])
  15672. {
  15673. /** @var \Illuminate\View\Factory $instance */
  15674. return $instance->make($view, $data, $mergeData);
  15675. }
  15676. /**
  15677. * Get the first view that actually exists from the given list.
  15678. *
  15679. * @param array $views
  15680. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  15681. * @param array $mergeData
  15682. * @return \Illuminate\Contracts\View\View
  15683. * @throws \InvalidArgumentException
  15684. * @static
  15685. */
  15686. public static function first($views, $data = [], $mergeData = [])
  15687. {
  15688. /** @var \Illuminate\View\Factory $instance */
  15689. return $instance->first($views, $data, $mergeData);
  15690. }
  15691. /**
  15692. * Get the rendered content of the view based on a given condition.
  15693. *
  15694. * @param bool $condition
  15695. * @param string $view
  15696. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  15697. * @param array $mergeData
  15698. * @return string
  15699. * @static
  15700. */
  15701. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  15702. {
  15703. /** @var \Illuminate\View\Factory $instance */
  15704. return $instance->renderWhen($condition, $view, $data, $mergeData);
  15705. }
  15706. /**
  15707. * Get the rendered content of the view based on the negation of a given condition.
  15708. *
  15709. * @param bool $condition
  15710. * @param string $view
  15711. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  15712. * @param array $mergeData
  15713. * @return string
  15714. * @static
  15715. */
  15716. public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  15717. {
  15718. /** @var \Illuminate\View\Factory $instance */
  15719. return $instance->renderUnless($condition, $view, $data, $mergeData);
  15720. }
  15721. /**
  15722. * Get the rendered contents of a partial from a loop.
  15723. *
  15724. * @param string $view
  15725. * @param array $data
  15726. * @param string $iterator
  15727. * @param string $empty
  15728. * @return string
  15729. * @static
  15730. */
  15731. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  15732. {
  15733. /** @var \Illuminate\View\Factory $instance */
  15734. return $instance->renderEach($view, $data, $iterator, $empty);
  15735. }
  15736. /**
  15737. * Determine if a given view exists.
  15738. *
  15739. * @param string $view
  15740. * @return bool
  15741. * @static
  15742. */
  15743. public static function exists($view)
  15744. {
  15745. /** @var \Illuminate\View\Factory $instance */
  15746. return $instance->exists($view);
  15747. }
  15748. /**
  15749. * Get the appropriate view engine for the given path.
  15750. *
  15751. * @param string $path
  15752. * @return \Illuminate\Contracts\View\Engine
  15753. * @throws \InvalidArgumentException
  15754. * @static
  15755. */
  15756. public static function getEngineFromPath($path)
  15757. {
  15758. /** @var \Illuminate\View\Factory $instance */
  15759. return $instance->getEngineFromPath($path);
  15760. }
  15761. /**
  15762. * Add a piece of shared data to the environment.
  15763. *
  15764. * @param array|string $key
  15765. * @param mixed|null $value
  15766. * @return mixed
  15767. * @static
  15768. */
  15769. public static function share($key, $value = null)
  15770. {
  15771. /** @var \Illuminate\View\Factory $instance */
  15772. return $instance->share($key, $value);
  15773. }
  15774. /**
  15775. * Increment the rendering counter.
  15776. *
  15777. * @return void
  15778. * @static
  15779. */
  15780. public static function incrementRender()
  15781. {
  15782. /** @var \Illuminate\View\Factory $instance */
  15783. $instance->incrementRender();
  15784. }
  15785. /**
  15786. * Decrement the rendering counter.
  15787. *
  15788. * @return void
  15789. * @static
  15790. */
  15791. public static function decrementRender()
  15792. {
  15793. /** @var \Illuminate\View\Factory $instance */
  15794. $instance->decrementRender();
  15795. }
  15796. /**
  15797. * Check if there are no active render operations.
  15798. *
  15799. * @return bool
  15800. * @static
  15801. */
  15802. public static function doneRendering()
  15803. {
  15804. /** @var \Illuminate\View\Factory $instance */
  15805. return $instance->doneRendering();
  15806. }
  15807. /**
  15808. * Determine if the given once token has been rendered.
  15809. *
  15810. * @param string $id
  15811. * @return bool
  15812. * @static
  15813. */
  15814. public static function hasRenderedOnce($id)
  15815. {
  15816. /** @var \Illuminate\View\Factory $instance */
  15817. return $instance->hasRenderedOnce($id);
  15818. }
  15819. /**
  15820. * Mark the given once token as having been rendered.
  15821. *
  15822. * @param string $id
  15823. * @return void
  15824. * @static
  15825. */
  15826. public static function markAsRenderedOnce($id)
  15827. {
  15828. /** @var \Illuminate\View\Factory $instance */
  15829. $instance->markAsRenderedOnce($id);
  15830. }
  15831. /**
  15832. * Add a location to the array of view locations.
  15833. *
  15834. * @param string $location
  15835. * @return void
  15836. * @static
  15837. */
  15838. public static function addLocation($location)
  15839. {
  15840. /** @var \Illuminate\View\Factory $instance */
  15841. $instance->addLocation($location);
  15842. }
  15843. /**
  15844. * Add a new namespace to the loader.
  15845. *
  15846. * @param string $namespace
  15847. * @param string|array $hints
  15848. * @return \Illuminate\View\Factory
  15849. * @static
  15850. */
  15851. public static function addNamespace($namespace, $hints)
  15852. {
  15853. /** @var \Illuminate\View\Factory $instance */
  15854. return $instance->addNamespace($namespace, $hints);
  15855. }
  15856. /**
  15857. * Prepend a new namespace to the loader.
  15858. *
  15859. * @param string $namespace
  15860. * @param string|array $hints
  15861. * @return \Illuminate\View\Factory
  15862. * @static
  15863. */
  15864. public static function prependNamespace($namespace, $hints)
  15865. {
  15866. /** @var \Illuminate\View\Factory $instance */
  15867. return $instance->prependNamespace($namespace, $hints);
  15868. }
  15869. /**
  15870. * Replace the namespace hints for the given namespace.
  15871. *
  15872. * @param string $namespace
  15873. * @param string|array $hints
  15874. * @return \Illuminate\View\Factory
  15875. * @static
  15876. */
  15877. public static function replaceNamespace($namespace, $hints)
  15878. {
  15879. /** @var \Illuminate\View\Factory $instance */
  15880. return $instance->replaceNamespace($namespace, $hints);
  15881. }
  15882. /**
  15883. * Register a valid view extension and its engine.
  15884. *
  15885. * @param string $extension
  15886. * @param string $engine
  15887. * @param \Closure|null $resolver
  15888. * @return void
  15889. * @static
  15890. */
  15891. public static function addExtension($extension, $engine, $resolver = null)
  15892. {
  15893. /** @var \Illuminate\View\Factory $instance */
  15894. $instance->addExtension($extension, $engine, $resolver);
  15895. }
  15896. /**
  15897. * Flush all of the factory state like sections and stacks.
  15898. *
  15899. * @return void
  15900. * @static
  15901. */
  15902. public static function flushState()
  15903. {
  15904. /** @var \Illuminate\View\Factory $instance */
  15905. $instance->flushState();
  15906. }
  15907. /**
  15908. * Flush all of the section contents if done rendering.
  15909. *
  15910. * @return void
  15911. * @static
  15912. */
  15913. public static function flushStateIfDoneRendering()
  15914. {
  15915. /** @var \Illuminate\View\Factory $instance */
  15916. $instance->flushStateIfDoneRendering();
  15917. }
  15918. /**
  15919. * Get the extension to engine bindings.
  15920. *
  15921. * @return array
  15922. * @static
  15923. */
  15924. public static function getExtensions()
  15925. {
  15926. /** @var \Illuminate\View\Factory $instance */
  15927. return $instance->getExtensions();
  15928. }
  15929. /**
  15930. * Get the engine resolver instance.
  15931. *
  15932. * @return \Illuminate\View\Engines\EngineResolver
  15933. * @static
  15934. */
  15935. public static function getEngineResolver()
  15936. {
  15937. /** @var \Illuminate\View\Factory $instance */
  15938. return $instance->getEngineResolver();
  15939. }
  15940. /**
  15941. * Get the view finder instance.
  15942. *
  15943. * @return \Illuminate\View\ViewFinderInterface
  15944. * @static
  15945. */
  15946. public static function getFinder()
  15947. {
  15948. /** @var \Illuminate\View\Factory $instance */
  15949. return $instance->getFinder();
  15950. }
  15951. /**
  15952. * Set the view finder instance.
  15953. *
  15954. * @param \Illuminate\View\ViewFinderInterface $finder
  15955. * @return void
  15956. * @static
  15957. */
  15958. public static function setFinder($finder)
  15959. {
  15960. /** @var \Illuminate\View\Factory $instance */
  15961. $instance->setFinder($finder);
  15962. }
  15963. /**
  15964. * Flush the cache of views located by the finder.
  15965. *
  15966. * @return void
  15967. * @static
  15968. */
  15969. public static function flushFinderCache()
  15970. {
  15971. /** @var \Illuminate\View\Factory $instance */
  15972. $instance->flushFinderCache();
  15973. }
  15974. /**
  15975. * Get the event dispatcher instance.
  15976. *
  15977. * @return \Illuminate\Contracts\Events\Dispatcher
  15978. * @static
  15979. */
  15980. public static function getDispatcher()
  15981. {
  15982. /** @var \Illuminate\View\Factory $instance */
  15983. return $instance->getDispatcher();
  15984. }
  15985. /**
  15986. * Set the event dispatcher instance.
  15987. *
  15988. * @param \Illuminate\Contracts\Events\Dispatcher $events
  15989. * @return void
  15990. * @static
  15991. */
  15992. public static function setDispatcher($events)
  15993. {
  15994. /** @var \Illuminate\View\Factory $instance */
  15995. $instance->setDispatcher($events);
  15996. }
  15997. /**
  15998. * Get the IoC container instance.
  15999. *
  16000. * @return \Illuminate\Contracts\Container\Container
  16001. * @static
  16002. */
  16003. public static function getContainer()
  16004. {
  16005. /** @var \Illuminate\View\Factory $instance */
  16006. return $instance->getContainer();
  16007. }
  16008. /**
  16009. * Set the IoC container instance.
  16010. *
  16011. * @param \Illuminate\Contracts\Container\Container $container
  16012. * @return void
  16013. * @static
  16014. */
  16015. public static function setContainer($container)
  16016. {
  16017. /** @var \Illuminate\View\Factory $instance */
  16018. $instance->setContainer($container);
  16019. }
  16020. /**
  16021. * Get an item from the shared data.
  16022. *
  16023. * @param string $key
  16024. * @param mixed $default
  16025. * @return mixed
  16026. * @static
  16027. */
  16028. public static function shared($key, $default = null)
  16029. {
  16030. /** @var \Illuminate\View\Factory $instance */
  16031. return $instance->shared($key, $default);
  16032. }
  16033. /**
  16034. * Get all of the shared data for the environment.
  16035. *
  16036. * @return array
  16037. * @static
  16038. */
  16039. public static function getShared()
  16040. {
  16041. /** @var \Illuminate\View\Factory $instance */
  16042. return $instance->getShared();
  16043. }
  16044. /**
  16045. * Register a custom macro.
  16046. *
  16047. * @param string $name
  16048. * @param object|callable $macro
  16049. * @return void
  16050. * @static
  16051. */
  16052. public static function macro($name, $macro)
  16053. {
  16054. \Illuminate\View\Factory::macro($name, $macro);
  16055. }
  16056. /**
  16057. * Mix another object into the class.
  16058. *
  16059. * @param object $mixin
  16060. * @param bool $replace
  16061. * @return void
  16062. * @throws \ReflectionException
  16063. * @static
  16064. */
  16065. public static function mixin($mixin, $replace = true)
  16066. {
  16067. \Illuminate\View\Factory::mixin($mixin, $replace);
  16068. }
  16069. /**
  16070. * Checks if macro is registered.
  16071. *
  16072. * @param string $name
  16073. * @return bool
  16074. * @static
  16075. */
  16076. public static function hasMacro($name)
  16077. {
  16078. return \Illuminate\View\Factory::hasMacro($name);
  16079. }
  16080. /**
  16081. * Flush the existing macros.
  16082. *
  16083. * @return void
  16084. * @static
  16085. */
  16086. public static function flushMacros()
  16087. {
  16088. \Illuminate\View\Factory::flushMacros();
  16089. }
  16090. /**
  16091. * Start a component rendering process.
  16092. *
  16093. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  16094. * @param array $data
  16095. * @return void
  16096. * @static
  16097. */
  16098. public static function startComponent($view, $data = [])
  16099. {
  16100. /** @var \Illuminate\View\Factory $instance */
  16101. $instance->startComponent($view, $data);
  16102. }
  16103. /**
  16104. * Get the first view that actually exists from the given list, and start a component.
  16105. *
  16106. * @param array $names
  16107. * @param array $data
  16108. * @return void
  16109. * @static
  16110. */
  16111. public static function startComponentFirst($names, $data = [])
  16112. {
  16113. /** @var \Illuminate\View\Factory $instance */
  16114. $instance->startComponentFirst($names, $data);
  16115. }
  16116. /**
  16117. * Render the current component.
  16118. *
  16119. * @return string
  16120. * @static
  16121. */
  16122. public static function renderComponent()
  16123. {
  16124. /** @var \Illuminate\View\Factory $instance */
  16125. return $instance->renderComponent();
  16126. }
  16127. /**
  16128. * Get an item from the component data that exists above the current component.
  16129. *
  16130. * @param string $key
  16131. * @param mixed $default
  16132. * @return mixed|null
  16133. * @static
  16134. */
  16135. public static function getConsumableComponentData($key, $default = null)
  16136. {
  16137. /** @var \Illuminate\View\Factory $instance */
  16138. return $instance->getConsumableComponentData($key, $default);
  16139. }
  16140. /**
  16141. * Start the slot rendering process.
  16142. *
  16143. * @param string $name
  16144. * @param string|null $content
  16145. * @param array $attributes
  16146. * @return void
  16147. * @static
  16148. */
  16149. public static function slot($name, $content = null, $attributes = [])
  16150. {
  16151. /** @var \Illuminate\View\Factory $instance */
  16152. $instance->slot($name, $content, $attributes);
  16153. }
  16154. /**
  16155. * Save the slot content for rendering.
  16156. *
  16157. * @return void
  16158. * @static
  16159. */
  16160. public static function endSlot()
  16161. {
  16162. /** @var \Illuminate\View\Factory $instance */
  16163. $instance->endSlot();
  16164. }
  16165. /**
  16166. * Register a view creator event.
  16167. *
  16168. * @param array|string $views
  16169. * @param \Closure|string $callback
  16170. * @return array
  16171. * @static
  16172. */
  16173. public static function creator($views, $callback)
  16174. {
  16175. /** @var \Illuminate\View\Factory $instance */
  16176. return $instance->creator($views, $callback);
  16177. }
  16178. /**
  16179. * Register multiple view composers via an array.
  16180. *
  16181. * @param array $composers
  16182. * @return array
  16183. * @static
  16184. */
  16185. public static function composers($composers)
  16186. {
  16187. /** @var \Illuminate\View\Factory $instance */
  16188. return $instance->composers($composers);
  16189. }
  16190. /**
  16191. * Register a view composer event.
  16192. *
  16193. * @param array|string $views
  16194. * @param \Closure|string $callback
  16195. * @return array
  16196. * @static
  16197. */
  16198. public static function composer($views, $callback)
  16199. {
  16200. /** @var \Illuminate\View\Factory $instance */
  16201. return $instance->composer($views, $callback);
  16202. }
  16203. /**
  16204. * Call the composer for a given view.
  16205. *
  16206. * @param \Illuminate\Contracts\View\View $view
  16207. * @return void
  16208. * @static
  16209. */
  16210. public static function callComposer($view)
  16211. {
  16212. /** @var \Illuminate\View\Factory $instance */
  16213. $instance->callComposer($view);
  16214. }
  16215. /**
  16216. * Call the creator for a given view.
  16217. *
  16218. * @param \Illuminate\Contracts\View\View $view
  16219. * @return void
  16220. * @static
  16221. */
  16222. public static function callCreator($view)
  16223. {
  16224. /** @var \Illuminate\View\Factory $instance */
  16225. $instance->callCreator($view);
  16226. }
  16227. /**
  16228. * Start injecting content into a section.
  16229. *
  16230. * @param string $section
  16231. * @param string|null $content
  16232. * @return void
  16233. * @static
  16234. */
  16235. public static function startSection($section, $content = null)
  16236. {
  16237. /** @var \Illuminate\View\Factory $instance */
  16238. $instance->startSection($section, $content);
  16239. }
  16240. /**
  16241. * Inject inline content into a section.
  16242. *
  16243. * @param string $section
  16244. * @param string $content
  16245. * @return void
  16246. * @static
  16247. */
  16248. public static function inject($section, $content)
  16249. {
  16250. /** @var \Illuminate\View\Factory $instance */
  16251. $instance->inject($section, $content);
  16252. }
  16253. /**
  16254. * Stop injecting content into a section and return its contents.
  16255. *
  16256. * @return string
  16257. * @static
  16258. */
  16259. public static function yieldSection()
  16260. {
  16261. /** @var \Illuminate\View\Factory $instance */
  16262. return $instance->yieldSection();
  16263. }
  16264. /**
  16265. * Stop injecting content into a section.
  16266. *
  16267. * @param bool $overwrite
  16268. * @return string
  16269. * @throws \InvalidArgumentException
  16270. * @static
  16271. */
  16272. public static function stopSection($overwrite = false)
  16273. {
  16274. /** @var \Illuminate\View\Factory $instance */
  16275. return $instance->stopSection($overwrite);
  16276. }
  16277. /**
  16278. * Stop injecting content into a section and append it.
  16279. *
  16280. * @return string
  16281. * @throws \InvalidArgumentException
  16282. * @static
  16283. */
  16284. public static function appendSection()
  16285. {
  16286. /** @var \Illuminate\View\Factory $instance */
  16287. return $instance->appendSection();
  16288. }
  16289. /**
  16290. * Get the string contents of a section.
  16291. *
  16292. * @param string $section
  16293. * @param string $default
  16294. * @return string
  16295. * @static
  16296. */
  16297. public static function yieldContent($section, $default = '')
  16298. {
  16299. /** @var \Illuminate\View\Factory $instance */
  16300. return $instance->yieldContent($section, $default);
  16301. }
  16302. /**
  16303. * Get the parent placeholder for the current request.
  16304. *
  16305. * @param string $section
  16306. * @return string
  16307. * @static
  16308. */
  16309. public static function parentPlaceholder($section = '')
  16310. {
  16311. return \Illuminate\View\Factory::parentPlaceholder($section);
  16312. }
  16313. /**
  16314. * Check if section exists.
  16315. *
  16316. * @param string $name
  16317. * @return bool
  16318. * @static
  16319. */
  16320. public static function hasSection($name)
  16321. {
  16322. /** @var \Illuminate\View\Factory $instance */
  16323. return $instance->hasSection($name);
  16324. }
  16325. /**
  16326. * Check if section does not exist.
  16327. *
  16328. * @param string $name
  16329. * @return bool
  16330. * @static
  16331. */
  16332. public static function sectionMissing($name)
  16333. {
  16334. /** @var \Illuminate\View\Factory $instance */
  16335. return $instance->sectionMissing($name);
  16336. }
  16337. /**
  16338. * Get the contents of a section.
  16339. *
  16340. * @param string $name
  16341. * @param string|null $default
  16342. * @return mixed
  16343. * @static
  16344. */
  16345. public static function getSection($name, $default = null)
  16346. {
  16347. /** @var \Illuminate\View\Factory $instance */
  16348. return $instance->getSection($name, $default);
  16349. }
  16350. /**
  16351. * Get the entire array of sections.
  16352. *
  16353. * @return array
  16354. * @static
  16355. */
  16356. public static function getSections()
  16357. {
  16358. /** @var \Illuminate\View\Factory $instance */
  16359. return $instance->getSections();
  16360. }
  16361. /**
  16362. * Flush all of the sections.
  16363. *
  16364. * @return void
  16365. * @static
  16366. */
  16367. public static function flushSections()
  16368. {
  16369. /** @var \Illuminate\View\Factory $instance */
  16370. $instance->flushSections();
  16371. }
  16372. /**
  16373. * Add new loop to the stack.
  16374. *
  16375. * @param \Countable|array $data
  16376. * @return void
  16377. * @static
  16378. */
  16379. public static function addLoop($data)
  16380. {
  16381. /** @var \Illuminate\View\Factory $instance */
  16382. $instance->addLoop($data);
  16383. }
  16384. /**
  16385. * Increment the top loop's indices.
  16386. *
  16387. * @return void
  16388. * @static
  16389. */
  16390. public static function incrementLoopIndices()
  16391. {
  16392. /** @var \Illuminate\View\Factory $instance */
  16393. $instance->incrementLoopIndices();
  16394. }
  16395. /**
  16396. * Pop a loop from the top of the loop stack.
  16397. *
  16398. * @return void
  16399. * @static
  16400. */
  16401. public static function popLoop()
  16402. {
  16403. /** @var \Illuminate\View\Factory $instance */
  16404. $instance->popLoop();
  16405. }
  16406. /**
  16407. * Get an instance of the last loop in the stack.
  16408. *
  16409. * @return \stdClass|null
  16410. * @static
  16411. */
  16412. public static function getLastLoop()
  16413. {
  16414. /** @var \Illuminate\View\Factory $instance */
  16415. return $instance->getLastLoop();
  16416. }
  16417. /**
  16418. * Get the entire loop stack.
  16419. *
  16420. * @return array
  16421. * @static
  16422. */
  16423. public static function getLoopStack()
  16424. {
  16425. /** @var \Illuminate\View\Factory $instance */
  16426. return $instance->getLoopStack();
  16427. }
  16428. /**
  16429. * Start injecting content into a push section.
  16430. *
  16431. * @param string $section
  16432. * @param string $content
  16433. * @return void
  16434. * @static
  16435. */
  16436. public static function startPush($section, $content = '')
  16437. {
  16438. /** @var \Illuminate\View\Factory $instance */
  16439. $instance->startPush($section, $content);
  16440. }
  16441. /**
  16442. * Stop injecting content into a push section.
  16443. *
  16444. * @return string
  16445. * @throws \InvalidArgumentException
  16446. * @static
  16447. */
  16448. public static function stopPush()
  16449. {
  16450. /** @var \Illuminate\View\Factory $instance */
  16451. return $instance->stopPush();
  16452. }
  16453. /**
  16454. * Start prepending content into a push section.
  16455. *
  16456. * @param string $section
  16457. * @param string $content
  16458. * @return void
  16459. * @static
  16460. */
  16461. public static function startPrepend($section, $content = '')
  16462. {
  16463. /** @var \Illuminate\View\Factory $instance */
  16464. $instance->startPrepend($section, $content);
  16465. }
  16466. /**
  16467. * Stop prepending content into a push section.
  16468. *
  16469. * @return string
  16470. * @throws \InvalidArgumentException
  16471. * @static
  16472. */
  16473. public static function stopPrepend()
  16474. {
  16475. /** @var \Illuminate\View\Factory $instance */
  16476. return $instance->stopPrepend();
  16477. }
  16478. /**
  16479. * Get the string contents of a push section.
  16480. *
  16481. * @param string $section
  16482. * @param string $default
  16483. * @return string
  16484. * @static
  16485. */
  16486. public static function yieldPushContent($section, $default = '')
  16487. {
  16488. /** @var \Illuminate\View\Factory $instance */
  16489. return $instance->yieldPushContent($section, $default);
  16490. }
  16491. /**
  16492. * Flush all of the stacks.
  16493. *
  16494. * @return void
  16495. * @static
  16496. */
  16497. public static function flushStacks()
  16498. {
  16499. /** @var \Illuminate\View\Factory $instance */
  16500. $instance->flushStacks();
  16501. }
  16502. /**
  16503. * Start a translation block.
  16504. *
  16505. * @param array $replacements
  16506. * @return void
  16507. * @static
  16508. */
  16509. public static function startTranslation($replacements = [])
  16510. {
  16511. /** @var \Illuminate\View\Factory $instance */
  16512. $instance->startTranslation($replacements);
  16513. }
  16514. /**
  16515. * Render the current translation.
  16516. *
  16517. * @return string
  16518. * @static
  16519. */
  16520. public static function renderTranslation()
  16521. {
  16522. /** @var \Illuminate\View\Factory $instance */
  16523. return $instance->renderTranslation();
  16524. }
  16525. }
  16526. }
  16527. namespace Illuminate\Support {
  16528. /**
  16529. *
  16530. *
  16531. */
  16532. class Arr {
  16533. }
  16534. /**
  16535. *
  16536. *
  16537. */
  16538. class Js {
  16539. }
  16540. /**
  16541. *
  16542. *
  16543. */
  16544. class Str {
  16545. /**
  16546. *
  16547. *
  16548. * @see \Baijunyao\LaravelSupport\Str::isFalse()
  16549. * @param mixed $false
  16550. * @return bool
  16551. * @static
  16552. */
  16553. public static function isFalse($false)
  16554. {
  16555. return \Illuminate\Support\Str::isFalse($false);
  16556. }
  16557. /**
  16558. *
  16559. *
  16560. * @see \Baijunyao\LaravelSupport\Str::isJsonArray()
  16561. * @param mixed $json
  16562. * @return bool
  16563. * @static
  16564. */
  16565. public static function isJsonArray($json)
  16566. {
  16567. return \Illuminate\Support\Str::isJsonArray($json);
  16568. }
  16569. /**
  16570. *
  16571. *
  16572. * @see \Baijunyao\LaravelSupport\Str::isJsonObject()
  16573. * @param mixed $json
  16574. * @return bool
  16575. * @static
  16576. */
  16577. public static function isJsonObject($json)
  16578. {
  16579. return \Illuminate\Support\Str::isJsonObject($json);
  16580. }
  16581. /**
  16582. *
  16583. *
  16584. * @see \Baijunyao\LaravelSupport\Str::isNull()
  16585. * @param mixed $null
  16586. * @return bool
  16587. * @static
  16588. */
  16589. public static function isNull($null)
  16590. {
  16591. return \Illuminate\Support\Str::isNull($null);
  16592. }
  16593. /**
  16594. *
  16595. *
  16596. * @see \Baijunyao\LaravelSupport\Str::isTrue()
  16597. * @param mixed $true
  16598. * @return bool
  16599. * @static
  16600. */
  16601. public static function isTrue($true)
  16602. {
  16603. return \Illuminate\Support\Str::isTrue($true);
  16604. }
  16605. }
  16606. /**
  16607. *
  16608. *
  16609. * @template TKey of array-key
  16610. * @template TValue
  16611. * @implements \ArrayAccess<TKey, TValue>
  16612. * @implements \Illuminate\Support\Enumerable<TKey, TValue>
  16613. */
  16614. class Collection {
  16615. /**
  16616. *
  16617. *
  16618. * @see \App\Models\Article::observe()
  16619. * @static
  16620. */
  16621. public static function searchable()
  16622. {
  16623. return \Illuminate\Support\Collection::searchable();
  16624. }
  16625. /**
  16626. *
  16627. *
  16628. * @see \App\Models\Article::updateTimestamps()
  16629. * @static
  16630. */
  16631. public static function unsearchable()
  16632. {
  16633. return \Illuminate\Support\Collection::unsearchable();
  16634. }
  16635. }
  16636. }
  16637. namespace Laravel\Socialite\Facades {
  16638. /**
  16639. *
  16640. *
  16641. * @see \Laravel\Socialite\SocialiteManager
  16642. */
  16643. class Socialite {
  16644. /**
  16645. * Get a driver instance.
  16646. *
  16647. * @param string $driver
  16648. * @return mixed
  16649. * @static
  16650. */
  16651. public static function with($driver)
  16652. {
  16653. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16654. return $instance->with($driver);
  16655. }
  16656. /**
  16657. * Build an OAuth 2 provider instance.
  16658. *
  16659. * @param string $provider
  16660. * @param array $config
  16661. * @return \Laravel\Socialite\Two\AbstractProvider
  16662. * @static
  16663. */
  16664. public static function buildProvider($provider, $config)
  16665. {
  16666. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16667. return $instance->buildProvider($provider, $config);
  16668. }
  16669. /**
  16670. * Format the server configuration.
  16671. *
  16672. * @param array $config
  16673. * @return array
  16674. * @static
  16675. */
  16676. public static function formatConfig($config)
  16677. {
  16678. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16679. return $instance->formatConfig($config);
  16680. }
  16681. /**
  16682. * Forget all of the resolved driver instances.
  16683. *
  16684. * @return \Laravel\Socialite\SocialiteManager
  16685. * @static
  16686. */
  16687. public static function forgetDrivers()
  16688. {
  16689. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16690. return $instance->forgetDrivers();
  16691. }
  16692. /**
  16693. * Set the container instance used by the manager.
  16694. *
  16695. * @param \Illuminate\Contracts\Container\Container $container
  16696. * @return \Laravel\Socialite\SocialiteManager
  16697. * @static
  16698. */
  16699. public static function setContainer($container)
  16700. {
  16701. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16702. return $instance->setContainer($container);
  16703. }
  16704. /**
  16705. * Get the default driver name.
  16706. *
  16707. * @return string
  16708. * @throws \InvalidArgumentException
  16709. * @static
  16710. */
  16711. public static function getDefaultDriver()
  16712. {
  16713. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16714. return $instance->getDefaultDriver();
  16715. }
  16716. /**
  16717. * Get a driver instance.
  16718. *
  16719. * @param string|null $driver
  16720. * @return mixed
  16721. * @throws \InvalidArgumentException
  16722. * @static
  16723. */
  16724. public static function driver($driver = null)
  16725. { //Method inherited from \Illuminate\Support\Manager
  16726. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16727. return $instance->driver($driver);
  16728. }
  16729. /**
  16730. * Register a custom driver creator Closure.
  16731. *
  16732. * @param string $driver
  16733. * @param \Closure $callback
  16734. * @return \Laravel\Socialite\SocialiteManager
  16735. * @static
  16736. */
  16737. public static function extend($driver, $callback)
  16738. { //Method inherited from \Illuminate\Support\Manager
  16739. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16740. return $instance->extend($driver, $callback);
  16741. }
  16742. /**
  16743. * Get all of the created "drivers".
  16744. *
  16745. * @return array
  16746. * @static
  16747. */
  16748. public static function getDrivers()
  16749. { //Method inherited from \Illuminate\Support\Manager
  16750. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16751. return $instance->getDrivers();
  16752. }
  16753. /**
  16754. * Get the container instance used by the manager.
  16755. *
  16756. * @return \Illuminate\Contracts\Container\Container
  16757. * @static
  16758. */
  16759. public static function getContainer()
  16760. { //Method inherited from \Illuminate\Support\Manager
  16761. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16762. return $instance->getContainer();
  16763. }
  16764. }
  16765. }
  16766. namespace GrahamCampbell\Markdown\Facades {
  16767. /**
  16768. *
  16769. *
  16770. * @author Graham Campbell <hello@gjcampbell.co.uk>
  16771. */
  16772. class Markdown {
  16773. /**
  16774. *
  16775. *
  16776. * @static
  16777. */
  16778. public static function getEnvironment()
  16779. {
  16780. /** @var \League\CommonMark\MarkdownConverter $instance */
  16781. return $instance->getEnvironment();
  16782. }
  16783. /**
  16784. * Converts Markdown to HTML.
  16785. *
  16786. * @param string $input The Markdown to convert
  16787. * @return \League\CommonMark\Output\RenderedContentInterface Rendered HTML
  16788. * @throws \RuntimeException
  16789. * @static
  16790. */
  16791. public static function convert($input)
  16792. {
  16793. /** @var \League\CommonMark\MarkdownConverter $instance */
  16794. return $instance->convert($input);
  16795. }
  16796. /**
  16797. * Converts Markdown to HTML.
  16798. *
  16799. * @deprecated since 2.2; use {@link convert()} instead
  16800. * @param string $markdown The Markdown to convert
  16801. * @return \League\CommonMark\Output\RenderedContentInterface Rendered HTML
  16802. * @throws \RuntimeException
  16803. * @static
  16804. */
  16805. public static function convertToHtml($markdown)
  16806. {
  16807. /** @var \League\CommonMark\MarkdownConverter $instance */
  16808. return $instance->convertToHtml($markdown);
  16809. }
  16810. }
  16811. }
  16812. namespace DaveJamesMiller\Breadcrumbs\Facades {
  16813. /**
  16814. * Breadcrumbs facade - allows easy access to the Manager instance.
  16815. *
  16816. * @method static array getCurrentRoute()
  16817. * @mixin \Illuminate\Support\Traits\Macroable
  16818. * @see BreadcrumbsManager
  16819. */
  16820. class Breadcrumbs {
  16821. /**
  16822. * Register a breadcrumb-generating callback for a page.
  16823. *
  16824. * @param string $name The name of the page.
  16825. * @param callable $callback The callback, which should accept a Generator instance as the first parameter and may
  16826. * accept additional parameters.
  16827. * @return void
  16828. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\DuplicateBreadcrumbException If the given name has already been
  16829. * used.
  16830. * @static
  16831. */
  16832. public static function for($name, $callback)
  16833. {
  16834. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16835. $instance->for($name, $callback);
  16836. }
  16837. /**
  16838. * Register a breadcrumb-generating callback for a page.
  16839. *
  16840. * For backwards-compatibility with v5.0.0 and below.
  16841. *
  16842. * @param string $name The name of the page.
  16843. * @param callable $callback The callback, which should accept a Generator instance as the first parameter and may
  16844. * accept additional parameters.
  16845. * @return void
  16846. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\DuplicateBreadcrumbException If the given name has already been
  16847. * used.
  16848. * @see self::for()
  16849. * @static
  16850. */
  16851. public static function register($name, $callback)
  16852. {
  16853. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16854. $instance->register($name, $callback);
  16855. }
  16856. /**
  16857. * Register a closure to call before generating breadcrumbs for the current page.
  16858. *
  16859. * For example, this can be used to always prepend the homepage without needing to manually add it to each page.
  16860. *
  16861. * @param callable $callback The callback, which should accept a Generator instance as the first and only parameter.
  16862. * @return void
  16863. * @static
  16864. */
  16865. public static function before($callback)
  16866. {
  16867. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16868. $instance->before($callback);
  16869. }
  16870. /**
  16871. * Register a closure to call after generating breadcrumbs for the current page.
  16872. *
  16873. * For example, this can be used to append the current page number when using pagination.
  16874. *
  16875. * @param callable $callback The callback, which should accept a Generator instance as the first and only parameter.
  16876. * @return void
  16877. * @static
  16878. */
  16879. public static function after($callback)
  16880. {
  16881. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16882. $instance->after($callback);
  16883. }
  16884. /**
  16885. * Check if a breadcrumb with the given name exists.
  16886. *
  16887. * If no name is given, defaults to the current route name.
  16888. *
  16889. * @param string|null $name The page name.
  16890. * @return bool Whether there is a registered callback with that name.
  16891. * @static
  16892. */
  16893. public static function exists($name = null)
  16894. {
  16895. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16896. return $instance->exists($name);
  16897. }
  16898. /**
  16899. * Generate a set of breadcrumbs for a page.
  16900. *
  16901. * @param string|null $name The name of the current page.
  16902. * @param mixed $params The parameters to pass to the closure for the current page.
  16903. * @return \Illuminate\Support\Collection The generated breadcrumbs.
  16904. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route
  16905. * doesn't have an associated name.
  16906. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names
  16907. * are) not registered.
  16908. * @static
  16909. */
  16910. public static function generate($name = null, ...$params)
  16911. {
  16912. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16913. return $instance->generate($name, ...$params);
  16914. }
  16915. /**
  16916. * Render breadcrumbs for a page with the specified view.
  16917. *
  16918. * @param string $view The name of the view to render.
  16919. * @param string|null $name The name of the current page.
  16920. * @param mixed $params The parameters to pass to the closure for the current page.
  16921. * @return \Illuminate\Support\HtmlString The generated HTML.
  16922. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  16923. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route doesn't have an associated name.
  16924. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\ViewNotSetException if no view has been set.
  16925. * @static
  16926. */
  16927. public static function view($view, $name = null, ...$params)
  16928. {
  16929. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16930. return $instance->view($view, $name, ...$params);
  16931. }
  16932. /**
  16933. * Render breadcrumbs for a page with the default view.
  16934. *
  16935. * @param string|null $name The name of the current page.
  16936. * @param mixed $params The parameters to pass to the closure for the current page.
  16937. * @return \Illuminate\Support\HtmlString The generated HTML.
  16938. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  16939. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route doesn't have an associated name.
  16940. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\ViewNotSetException if no view has been set.
  16941. * @static
  16942. */
  16943. public static function render($name = null, ...$params)
  16944. {
  16945. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16946. return $instance->render($name, ...$params);
  16947. }
  16948. /**
  16949. * Get the last breadcrumb for the current page.
  16950. *
  16951. * Optionally pass a
  16952. *
  16953. * @return \stdClass|null The breadcrumb for the current page.
  16954. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if the current route doesn't have an associated name.
  16955. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  16956. * @static
  16957. */
  16958. public static function current()
  16959. {
  16960. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16961. return $instance->current();
  16962. }
  16963. /**
  16964. * Set the current route name and parameters to use when calling render() or generate() with no parameters.
  16965. *
  16966. * @param string $name The name of the current page.
  16967. * @param mixed $params The parameters to pass to the closure for the current page.
  16968. * @return void
  16969. * @static
  16970. */
  16971. public static function setCurrentRoute($name, ...$params)
  16972. {
  16973. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16974. $instance->setCurrentRoute($name, ...$params);
  16975. }
  16976. /**
  16977. * Clear the previously set route name and parameters to use when calling render() or generate() with no parameters.
  16978. *
  16979. * Next time it will revert to the default behaviour of using the current route from Laravel.
  16980. *
  16981. * @return void
  16982. * @static
  16983. */
  16984. public static function clearCurrentRoute()
  16985. {
  16986. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16987. $instance->clearCurrentRoute();
  16988. }
  16989. /**
  16990. * Register a custom macro.
  16991. *
  16992. * @param string $name
  16993. * @param object|callable $macro
  16994. * @return void
  16995. * @static
  16996. */
  16997. public static function macro($name, $macro)
  16998. {
  16999. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::macro($name, $macro);
  17000. }
  17001. /**
  17002. * Mix another object into the class.
  17003. *
  17004. * @param object $mixin
  17005. * @param bool $replace
  17006. * @return void
  17007. * @throws \ReflectionException
  17008. * @static
  17009. */
  17010. public static function mixin($mixin, $replace = true)
  17011. {
  17012. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::mixin($mixin, $replace);
  17013. }
  17014. /**
  17015. * Checks if macro is registered.
  17016. *
  17017. * @param string $name
  17018. * @return bool
  17019. * @static
  17020. */
  17021. public static function hasMacro($name)
  17022. {
  17023. return \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::hasMacro($name);
  17024. }
  17025. /**
  17026. * Flush the existing macros.
  17027. *
  17028. * @return void
  17029. * @static
  17030. */
  17031. public static function flushMacros()
  17032. {
  17033. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::flushMacros();
  17034. }
  17035. }
  17036. }
  17037. namespace Intervention\Image\Facades {
  17038. /**
  17039. *
  17040. *
  17041. */
  17042. class Image {
  17043. /**
  17044. * Overrides configuration settings
  17045. *
  17046. * @param array $config
  17047. * @return self
  17048. * @static
  17049. */
  17050. public static function configure($config = [])
  17051. {
  17052. /** @var \Intervention\Image\ImageManager $instance */
  17053. return $instance->configure($config);
  17054. }
  17055. /**
  17056. * Initiates an Image instance from different input types
  17057. *
  17058. * @param mixed $data
  17059. * @return \Intervention\Image\Image
  17060. * @static
  17061. */
  17062. public static function make($data)
  17063. {
  17064. /** @var \Intervention\Image\ImageManager $instance */
  17065. return $instance->make($data);
  17066. }
  17067. /**
  17068. * Creates an empty image canvas
  17069. *
  17070. * @param int $width
  17071. * @param int $height
  17072. * @param mixed $background
  17073. * @return \Intervention\Image\Image
  17074. * @static
  17075. */
  17076. public static function canvas($width, $height, $background = null)
  17077. {
  17078. /** @var \Intervention\Image\ImageManager $instance */
  17079. return $instance->canvas($width, $height, $background);
  17080. }
  17081. /**
  17082. * Create new cached image and run callback
  17083. * (requires additional package intervention/imagecache)
  17084. *
  17085. * @param \Closure $callback
  17086. * @param int $lifetime
  17087. * @param boolean $returnObj
  17088. * @return \Image
  17089. * @static
  17090. */
  17091. public static function cache($callback, $lifetime = null, $returnObj = false)
  17092. {
  17093. /** @var \Intervention\Image\ImageManager $instance */
  17094. return $instance->cache($callback, $lifetime, $returnObj);
  17095. }
  17096. }
  17097. }
  17098. namespace Jenssegers\Agent\Facades {
  17099. /**
  17100. *
  17101. *
  17102. */
  17103. class Agent {
  17104. /**
  17105. * Get all detection rules. These rules include the additional
  17106. * platforms and browsers and utilities.
  17107. *
  17108. * @return array
  17109. * @static
  17110. */
  17111. public static function getDetectionRulesExtended()
  17112. {
  17113. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  17114. }
  17115. /**
  17116. *
  17117. *
  17118. * @static
  17119. */
  17120. public static function getRules()
  17121. {
  17122. /** @var \Jenssegers\Agent\Agent $instance */
  17123. return $instance->getRules();
  17124. }
  17125. /**
  17126. *
  17127. *
  17128. * @return \Jaybizzle\CrawlerDetect\CrawlerDetect
  17129. * @static
  17130. */
  17131. public static function getCrawlerDetect()
  17132. {
  17133. /** @var \Jenssegers\Agent\Agent $instance */
  17134. return $instance->getCrawlerDetect();
  17135. }
  17136. /**
  17137. *
  17138. *
  17139. * @static
  17140. */
  17141. public static function getBrowsers()
  17142. {
  17143. return \Jenssegers\Agent\Agent::getBrowsers();
  17144. }
  17145. /**
  17146. *
  17147. *
  17148. * @static
  17149. */
  17150. public static function getOperatingSystems()
  17151. {
  17152. return \Jenssegers\Agent\Agent::getOperatingSystems();
  17153. }
  17154. /**
  17155. *
  17156. *
  17157. * @static
  17158. */
  17159. public static function getPlatforms()
  17160. {
  17161. return \Jenssegers\Agent\Agent::getPlatforms();
  17162. }
  17163. /**
  17164. *
  17165. *
  17166. * @static
  17167. */
  17168. public static function getDesktopDevices()
  17169. {
  17170. return \Jenssegers\Agent\Agent::getDesktopDevices();
  17171. }
  17172. /**
  17173. *
  17174. *
  17175. * @static
  17176. */
  17177. public static function getProperties()
  17178. {
  17179. return \Jenssegers\Agent\Agent::getProperties();
  17180. }
  17181. /**
  17182. * Get accept languages.
  17183. *
  17184. * @param string $acceptLanguage
  17185. * @return array
  17186. * @static
  17187. */
  17188. public static function languages($acceptLanguage = null)
  17189. {
  17190. /** @var \Jenssegers\Agent\Agent $instance */
  17191. return $instance->languages($acceptLanguage);
  17192. }
  17193. /**
  17194. * Get the browser name.
  17195. *
  17196. * @param string|null $userAgent
  17197. * @return string|bool
  17198. * @static
  17199. */
  17200. public static function browser($userAgent = null)
  17201. {
  17202. /** @var \Jenssegers\Agent\Agent $instance */
  17203. return $instance->browser($userAgent);
  17204. }
  17205. /**
  17206. * Get the platform name.
  17207. *
  17208. * @param string|null $userAgent
  17209. * @return string|bool
  17210. * @static
  17211. */
  17212. public static function platform($userAgent = null)
  17213. {
  17214. /** @var \Jenssegers\Agent\Agent $instance */
  17215. return $instance->platform($userAgent);
  17216. }
  17217. /**
  17218. * Get the device name.
  17219. *
  17220. * @param string|null $userAgent
  17221. * @return string|bool
  17222. * @static
  17223. */
  17224. public static function device($userAgent = null)
  17225. {
  17226. /** @var \Jenssegers\Agent\Agent $instance */
  17227. return $instance->device($userAgent);
  17228. }
  17229. /**
  17230. * Check if the device is a desktop computer.
  17231. *
  17232. * @param string|null $userAgent deprecated
  17233. * @param array $httpHeaders deprecated
  17234. * @return bool
  17235. * @static
  17236. */
  17237. public static function isDesktop($userAgent = null, $httpHeaders = null)
  17238. {
  17239. /** @var \Jenssegers\Agent\Agent $instance */
  17240. return $instance->isDesktop($userAgent, $httpHeaders);
  17241. }
  17242. /**
  17243. * Check if the device is a mobile phone.
  17244. *
  17245. * @param string|null $userAgent deprecated
  17246. * @param array $httpHeaders deprecated
  17247. * @return bool
  17248. * @static
  17249. */
  17250. public static function isPhone($userAgent = null, $httpHeaders = null)
  17251. {
  17252. /** @var \Jenssegers\Agent\Agent $instance */
  17253. return $instance->isPhone($userAgent, $httpHeaders);
  17254. }
  17255. /**
  17256. * Get the robot name.
  17257. *
  17258. * @param string|null $userAgent
  17259. * @return string|bool
  17260. * @static
  17261. */
  17262. public static function robot($userAgent = null)
  17263. {
  17264. /** @var \Jenssegers\Agent\Agent $instance */
  17265. return $instance->robot($userAgent);
  17266. }
  17267. /**
  17268. * Check if device is a robot.
  17269. *
  17270. * @param string|null $userAgent
  17271. * @return bool
  17272. * @static
  17273. */
  17274. public static function isRobot($userAgent = null)
  17275. {
  17276. /** @var \Jenssegers\Agent\Agent $instance */
  17277. return $instance->isRobot($userAgent);
  17278. }
  17279. /**
  17280. * Get the device type
  17281. *
  17282. * @param null $userAgent
  17283. * @param null $httpHeaders
  17284. * @return string
  17285. * @static
  17286. */
  17287. public static function deviceType($userAgent = null, $httpHeaders = null)
  17288. {
  17289. /** @var \Jenssegers\Agent\Agent $instance */
  17290. return $instance->deviceType($userAgent, $httpHeaders);
  17291. }
  17292. /**
  17293. *
  17294. *
  17295. * @static
  17296. */
  17297. public static function version($propertyName, $type = 'text')
  17298. {
  17299. /** @var \Jenssegers\Agent\Agent $instance */
  17300. return $instance->version($propertyName, $type);
  17301. }
  17302. /**
  17303. * Get the current script version.
  17304. *
  17305. * This is useful for the demo.php file,
  17306. * so people can check on what version they are testing
  17307. * for mobile devices.
  17308. *
  17309. * @return string The version number in semantic version format.
  17310. * @static
  17311. */
  17312. public static function getScriptVersion()
  17313. { //Method inherited from \Mobile_Detect
  17314. return \Jenssegers\Agent\Agent::getScriptVersion();
  17315. }
  17316. /**
  17317. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  17318. *
  17319. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  17320. * the headers. The default null is left for backwards compatibility.
  17321. * @static
  17322. */
  17323. public static function setHttpHeaders($httpHeaders = null)
  17324. { //Method inherited from \Mobile_Detect
  17325. /** @var \Jenssegers\Agent\Agent $instance */
  17326. return $instance->setHttpHeaders($httpHeaders);
  17327. }
  17328. /**
  17329. * Retrieves the HTTP headers.
  17330. *
  17331. * @return array
  17332. * @static
  17333. */
  17334. public static function getHttpHeaders()
  17335. { //Method inherited from \Mobile_Detect
  17336. /** @var \Jenssegers\Agent\Agent $instance */
  17337. return $instance->getHttpHeaders();
  17338. }
  17339. /**
  17340. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  17341. *
  17342. * Simply null is returned.
  17343. *
  17344. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  17345. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  17346. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  17347. * @return string|null The value of the header.
  17348. * @static
  17349. */
  17350. public static function getHttpHeader($header)
  17351. { //Method inherited from \Mobile_Detect
  17352. /** @var \Jenssegers\Agent\Agent $instance */
  17353. return $instance->getHttpHeader($header);
  17354. }
  17355. /**
  17356. *
  17357. *
  17358. * @static
  17359. */
  17360. public static function getMobileHeaders()
  17361. { //Method inherited from \Mobile_Detect
  17362. /** @var \Jenssegers\Agent\Agent $instance */
  17363. return $instance->getMobileHeaders();
  17364. }
  17365. /**
  17366. * Get all possible HTTP headers that
  17367. * can contain the User-Agent string.
  17368. *
  17369. * @return array List of HTTP headers.
  17370. * @static
  17371. */
  17372. public static function getUaHttpHeaders()
  17373. { //Method inherited from \Mobile_Detect
  17374. /** @var \Jenssegers\Agent\Agent $instance */
  17375. return $instance->getUaHttpHeaders();
  17376. }
  17377. /**
  17378. * Set CloudFront headers
  17379. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  17380. *
  17381. * @param array $cfHeaders List of HTTP headers
  17382. * @return boolean If there were CloudFront headers to be set
  17383. * @static
  17384. */
  17385. public static function setCfHeaders($cfHeaders = null)
  17386. { //Method inherited from \Mobile_Detect
  17387. /** @var \Jenssegers\Agent\Agent $instance */
  17388. return $instance->setCfHeaders($cfHeaders);
  17389. }
  17390. /**
  17391. * Retrieves the cloudfront headers.
  17392. *
  17393. * @return array
  17394. * @static
  17395. */
  17396. public static function getCfHeaders()
  17397. { //Method inherited from \Mobile_Detect
  17398. /** @var \Jenssegers\Agent\Agent $instance */
  17399. return $instance->getCfHeaders();
  17400. }
  17401. /**
  17402. * Set the User-Agent to be used.
  17403. *
  17404. * @param string $userAgent The user agent string to set.
  17405. * @return string|null
  17406. * @static
  17407. */
  17408. public static function setUserAgent($userAgent = null)
  17409. { //Method inherited from \Mobile_Detect
  17410. /** @var \Jenssegers\Agent\Agent $instance */
  17411. return $instance->setUserAgent($userAgent);
  17412. }
  17413. /**
  17414. * Retrieve the User-Agent.
  17415. *
  17416. * @return string|null The user agent if it's set.
  17417. * @static
  17418. */
  17419. public static function getUserAgent()
  17420. { //Method inherited from \Mobile_Detect
  17421. /** @var \Jenssegers\Agent\Agent $instance */
  17422. return $instance->getUserAgent();
  17423. }
  17424. /**
  17425. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  17426. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  17427. *
  17428. * @deprecated since version 2.6.9
  17429. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  17430. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  17431. * @static
  17432. */
  17433. public static function setDetectionType($type = null)
  17434. { //Method inherited from \Mobile_Detect
  17435. /** @var \Jenssegers\Agent\Agent $instance */
  17436. return $instance->setDetectionType($type);
  17437. }
  17438. /**
  17439. *
  17440. *
  17441. * @static
  17442. */
  17443. public static function getMatchingRegex()
  17444. { //Method inherited from \Mobile_Detect
  17445. /** @var \Jenssegers\Agent\Agent $instance */
  17446. return $instance->getMatchingRegex();
  17447. }
  17448. /**
  17449. *
  17450. *
  17451. * @static
  17452. */
  17453. public static function getMatchesArray()
  17454. { //Method inherited from \Mobile_Detect
  17455. /** @var \Jenssegers\Agent\Agent $instance */
  17456. return $instance->getMatchesArray();
  17457. }
  17458. /**
  17459. * Retrieve the list of known phone devices.
  17460. *
  17461. * @return array List of phone devices.
  17462. * @static
  17463. */
  17464. public static function getPhoneDevices()
  17465. { //Method inherited from \Mobile_Detect
  17466. return \Jenssegers\Agent\Agent::getPhoneDevices();
  17467. }
  17468. /**
  17469. * Retrieve the list of known tablet devices.
  17470. *
  17471. * @return array List of tablet devices.
  17472. * @static
  17473. */
  17474. public static function getTabletDevices()
  17475. { //Method inherited from \Mobile_Detect
  17476. return \Jenssegers\Agent\Agent::getTabletDevices();
  17477. }
  17478. /**
  17479. * Alias for getBrowsers() method.
  17480. *
  17481. * @return array List of user agents.
  17482. * @static
  17483. */
  17484. public static function getUserAgents()
  17485. { //Method inherited from \Mobile_Detect
  17486. return \Jenssegers\Agent\Agent::getUserAgents();
  17487. }
  17488. /**
  17489. * Retrieve the list of known utilities.
  17490. *
  17491. * @return array List of utilities.
  17492. * @static
  17493. */
  17494. public static function getUtilities()
  17495. { //Method inherited from \Mobile_Detect
  17496. return \Jenssegers\Agent\Agent::getUtilities();
  17497. }
  17498. /**
  17499. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  17500. *
  17501. * @deprecated since version 2.6.9
  17502. * @return array All the rules (but not extended).
  17503. * @static
  17504. */
  17505. public static function getMobileDetectionRules()
  17506. { //Method inherited from \Mobile_Detect
  17507. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  17508. }
  17509. /**
  17510. * Method gets the mobile detection rules + utilities.
  17511. *
  17512. * The reason this is separate is because utilities rules
  17513. * don't necessary imply mobile. This method is used inside
  17514. * the new $detect->is('stuff') method.
  17515. *
  17516. * @deprecated since version 2.6.9
  17517. * @return array All the rules + extended.
  17518. * @static
  17519. */
  17520. public static function getMobileDetectionRulesExtended()
  17521. { //Method inherited from \Mobile_Detect
  17522. /** @var \Jenssegers\Agent\Agent $instance */
  17523. return $instance->getMobileDetectionRulesExtended();
  17524. }
  17525. /**
  17526. * Check the HTTP headers for signs of mobile.
  17527. *
  17528. * This is the fastest mobile check possible; it's used
  17529. * inside isMobile() method.
  17530. *
  17531. * @return bool
  17532. * @static
  17533. */
  17534. public static function checkHttpHeadersForMobile()
  17535. { //Method inherited from \Mobile_Detect
  17536. /** @var \Jenssegers\Agent\Agent $instance */
  17537. return $instance->checkHttpHeadersForMobile();
  17538. }
  17539. /**
  17540. * Check if the device is mobile.
  17541. *
  17542. * Returns true if any type of mobile device detected, including special ones
  17543. *
  17544. * @param null $userAgent deprecated
  17545. * @param null $httpHeaders deprecated
  17546. * @return bool
  17547. * @static
  17548. */
  17549. public static function isMobile($userAgent = null, $httpHeaders = null)
  17550. { //Method inherited from \Mobile_Detect
  17551. /** @var \Jenssegers\Agent\Agent $instance */
  17552. return $instance->isMobile($userAgent, $httpHeaders);
  17553. }
  17554. /**
  17555. * Check if the device is a tablet.
  17556. *
  17557. * Return true if any type of tablet device is detected.
  17558. *
  17559. * @param string $userAgent deprecated
  17560. * @param array $httpHeaders deprecated
  17561. * @return bool
  17562. * @static
  17563. */
  17564. public static function isTablet($userAgent = null, $httpHeaders = null)
  17565. { //Method inherited from \Mobile_Detect
  17566. /** @var \Jenssegers\Agent\Agent $instance */
  17567. return $instance->isTablet($userAgent, $httpHeaders);
  17568. }
  17569. /**
  17570. * This method checks for a certain property in the
  17571. * userAgent.
  17572. *
  17573. * @todo : The httpHeaders part is not yet used.
  17574. * @param string $key
  17575. * @param string $userAgent deprecated
  17576. * @param string $httpHeaders deprecated
  17577. * @return bool|int|null
  17578. * @static
  17579. */
  17580. public static function is($key, $userAgent = null, $httpHeaders = null)
  17581. { //Method inherited from \Mobile_Detect
  17582. /** @var \Jenssegers\Agent\Agent $instance */
  17583. return $instance->is($key, $userAgent, $httpHeaders);
  17584. }
  17585. /**
  17586. * Some detection rules are relative (not standard),
  17587. * because of the diversity of devices, vendors and
  17588. * their conventions in representing the User-Agent or
  17589. * the HTTP headers.
  17590. *
  17591. * This method will be used to check custom regexes against
  17592. * the User-Agent string.
  17593. *
  17594. * @param $regex
  17595. * @param string $userAgent
  17596. * @return bool
  17597. * @todo : search in the HTTP headers too.
  17598. * @static
  17599. */
  17600. public static function match($regex, $userAgent = null)
  17601. { //Method inherited from \Mobile_Detect
  17602. /** @var \Jenssegers\Agent\Agent $instance */
  17603. return $instance->match($regex, $userAgent);
  17604. }
  17605. /**
  17606. * Prepare the version number.
  17607. *
  17608. * @todo Remove the error supression from str_replace() call.
  17609. * @param string $ver The string version, like "2.6.21.2152";
  17610. * @return float
  17611. * @static
  17612. */
  17613. public static function prepareVersionNo($ver)
  17614. { //Method inherited from \Mobile_Detect
  17615. /** @var \Jenssegers\Agent\Agent $instance */
  17616. return $instance->prepareVersionNo($ver);
  17617. }
  17618. /**
  17619. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  17620. *
  17621. * @deprecated This is no longer being maintained, it was an experiment at the time.
  17622. * @return string One of the self::MOBILE_GRADE_* constants.
  17623. * @static
  17624. */
  17625. public static function mobileGrade()
  17626. { //Method inherited from \Mobile_Detect
  17627. /** @var \Jenssegers\Agent\Agent $instance */
  17628. return $instance->mobileGrade();
  17629. }
  17630. }
  17631. }
  17632. namespace Mews\Purifier\Facades {
  17633. /**
  17634. *
  17635. *
  17636. * @see \Mews\Purifier
  17637. */
  17638. class Purifier {
  17639. /**
  17640. *
  17641. *
  17642. * @param $dirty
  17643. * @param null $config
  17644. * @param \Closure|null $postCreateConfigHook
  17645. * @return mixed
  17646. * @static
  17647. */
  17648. public static function clean($dirty, $config = null, $postCreateConfigHook = null)
  17649. {
  17650. /** @var \Mews\Purifier\Purifier $instance */
  17651. return $instance->clean($dirty, $config, $postCreateConfigHook);
  17652. }
  17653. /**
  17654. * Get HTMLPurifier instance.
  17655. *
  17656. * @return \HTMLPurifier
  17657. * @static
  17658. */
  17659. public static function getInstance()
  17660. {
  17661. /** @var \Mews\Purifier\Purifier $instance */
  17662. return $instance->getInstance();
  17663. }
  17664. }
  17665. }
  17666. namespace Sentry\Laravel {
  17667. /**
  17668. *
  17669. *
  17670. * @see \Sentry\State\HubInterface
  17671. */
  17672. class Facade {
  17673. /**
  17674. * Gets the client bound to the top of the stack.
  17675. *
  17676. * @static
  17677. */
  17678. public static function getClient()
  17679. {
  17680. /** @var \Sentry\State\Hub $instance */
  17681. return $instance->getClient();
  17682. }
  17683. /**
  17684. * Gets the ID of the last captured event.
  17685. *
  17686. * @static
  17687. */
  17688. public static function getLastEventId()
  17689. {
  17690. /** @var \Sentry\State\Hub $instance */
  17691. return $instance->getLastEventId();
  17692. }
  17693. /**
  17694. * Creates a new scope to store context information that will be layered on
  17695. * top of the current one. It is isolated, i.e. all breadcrumbs and context
  17696. * information added to this scope will be removed once the scope ends. Be
  17697. * sure to always remove this scope with {@see Hub::popScope} when the
  17698. * operation finishes or throws.
  17699. *
  17700. * @static
  17701. */
  17702. public static function pushScope()
  17703. {
  17704. /** @var \Sentry\State\Hub $instance */
  17705. return $instance->pushScope();
  17706. }
  17707. /**
  17708. * Removes a previously pushed scope from the stack. This restores the state
  17709. * before the scope was pushed. All breadcrumbs and context information added
  17710. * since the last call to {@see Hub::pushScope} are discarded.
  17711. *
  17712. * @static
  17713. */
  17714. public static function popScope()
  17715. {
  17716. /** @var \Sentry\State\Hub $instance */
  17717. return $instance->popScope();
  17718. }
  17719. /**
  17720. * Creates a new scope with and executes the given operation within. The scope
  17721. * is automatically removed once the operation finishes or throws.
  17722. *
  17723. * @param callable $callback The callback to be executed
  17724. * @return mixed|void The callback's return value, upon successful execution
  17725. * @psalm-template T
  17726. * @psalm-param callable(Scope): T $callback
  17727. * @psalm-return T
  17728. * @static
  17729. */
  17730. public static function withScope($callback)
  17731. {
  17732. /** @var \Sentry\State\Hub $instance */
  17733. return $instance->withScope($callback);
  17734. }
  17735. /**
  17736. * Calls the given callback passing to it the current scope so that any
  17737. * operation can be run within its context.
  17738. *
  17739. * @param callable $callback The callback to be executed
  17740. * @static
  17741. */
  17742. public static function configureScope($callback)
  17743. {
  17744. /** @var \Sentry\State\Hub $instance */
  17745. return $instance->configureScope($callback);
  17746. }
  17747. /**
  17748. * Binds the given client to the current scope.
  17749. *
  17750. * @param \Sentry\ClientInterface $client The client
  17751. * @static
  17752. */
  17753. public static function bindClient($client)
  17754. {
  17755. /** @var \Sentry\State\Hub $instance */
  17756. return $instance->bindClient($client);
  17757. }
  17758. /**
  17759. * Captures a message event and sends it to Sentry.
  17760. *
  17761. * @param string $message The message
  17762. * @param \Sentry\Severity|null $level The severity level of the message
  17763. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  17764. * @static
  17765. */
  17766. public static function captureMessage($message, $level = null, $hint = null)
  17767. {
  17768. /** @var \Sentry\State\Hub $instance */
  17769. return $instance->captureMessage($message, $level, $hint);
  17770. }
  17771. /**
  17772. * Captures an exception event and sends it to Sentry.
  17773. *
  17774. * @param \Throwable $exception The exception
  17775. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  17776. * @static
  17777. */
  17778. public static function captureException($exception, $hint = null)
  17779. {
  17780. /** @var \Sentry\State\Hub $instance */
  17781. return $instance->captureException($exception, $hint);
  17782. }
  17783. /**
  17784. * Captures a new event using the provided data.
  17785. *
  17786. * @param \Event $event The event being captured
  17787. * @param \Sentry\EventHint|null $hint May contain additional information about the event
  17788. * @static
  17789. */
  17790. public static function captureEvent($event, $hint = null)
  17791. {
  17792. /** @var \Sentry\State\Hub $instance */
  17793. return $instance->captureEvent($event, $hint);
  17794. }
  17795. /**
  17796. * Captures an event that logs the last occurred error.
  17797. *
  17798. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  17799. * @static
  17800. */
  17801. public static function captureLastError($hint = null)
  17802. {
  17803. /** @var \Sentry\State\Hub $instance */
  17804. return $instance->captureLastError($hint);
  17805. }
  17806. /**
  17807. * Records a new breadcrumb which will be attached to future events. They
  17808. * will be added to subsequent events to provide more context on user's
  17809. * actions prior to an error or crash.
  17810. *
  17811. * @param \Sentry\Breadcrumb $breadcrumb The breadcrumb to record
  17812. * @return bool Whether the breadcrumb was actually added to the current scope
  17813. * @static
  17814. */
  17815. public static function addBreadcrumb($breadcrumb)
  17816. {
  17817. /** @var \Sentry\State\Hub $instance */
  17818. return $instance->addBreadcrumb($breadcrumb);
  17819. }
  17820. /**
  17821. * Gets the integration whose FQCN matches the given one if it's available on the current client.
  17822. *
  17823. * @param string $className The FQCN of the integration
  17824. * @psalm-template T of IntegrationInterface
  17825. * @psalm-param class-string<T> $className
  17826. * @psalm-return T|null
  17827. * @static
  17828. */
  17829. public static function getIntegration($className)
  17830. {
  17831. /** @var \Sentry\State\Hub $instance */
  17832. return $instance->getIntegration($className);
  17833. }
  17834. /**
  17835. * Starts a new `Transaction` and returns it. This is the entry point to manual
  17836. * tracing instrumentation.
  17837. *
  17838. * A tree structure can be built by adding child spans to the transaction, and
  17839. * child spans to other spans. To start a new child span within the transaction
  17840. * or any span, call the respective `startChild()` method.
  17841. *
  17842. * Every child span must be finished before the transaction is finished,
  17843. * otherwise the unfinished spans are discarded.
  17844. *
  17845. * The transaction must be finished with a call to its `finish()` method, at
  17846. * which point the transaction with all its finished child spans will be sent to
  17847. * Sentry.
  17848. *
  17849. * @param \Sentry\State\array<string, mixed> $customSamplingContext Additional context that will be passed to the {@see SamplingContext}
  17850. * @param \Sentry\Tracing\TransactionContext $context Properties of the new transaction
  17851. * @param \Sentry\State\array<string, mixed> $customSamplingContext Additional context that will be passed to the {@see SamplingContext}
  17852. * @static
  17853. */
  17854. public static function startTransaction($context, $customSamplingContext = [])
  17855. {
  17856. /** @var \Sentry\State\Hub $instance */
  17857. return $instance->startTransaction($context, $customSamplingContext);
  17858. }
  17859. /**
  17860. * Returns the transaction that is on the Hub.
  17861. *
  17862. * @static
  17863. */
  17864. public static function getTransaction()
  17865. {
  17866. /** @var \Sentry\State\Hub $instance */
  17867. return $instance->getTransaction();
  17868. }
  17869. /**
  17870. * Sets the span on the Hub.
  17871. *
  17872. * @param \Sentry\Tracing\Span|null $span The span
  17873. * @static
  17874. */
  17875. public static function setSpan($span)
  17876. {
  17877. /** @var \Sentry\State\Hub $instance */
  17878. return $instance->setSpan($span);
  17879. }
  17880. /**
  17881. * Returns the span that is on the Hub.
  17882. *
  17883. * @static
  17884. */
  17885. public static function getSpan()
  17886. {
  17887. /** @var \Sentry\State\Hub $instance */
  17888. return $instance->getSpan();
  17889. }
  17890. }
  17891. }
  17892. namespace Spatie\LaravelIgnition\Facades {
  17893. /**
  17894. *
  17895. *
  17896. * @see \Spatie\FlareClient\Flare
  17897. */
  17898. class Flare {
  17899. /**
  17900. *
  17901. *
  17902. * @static
  17903. */
  17904. public static function make($apiKey = null, $contextDetector = null)
  17905. {
  17906. return \Spatie\FlareClient\Flare::make($apiKey, $contextDetector);
  17907. }
  17908. /**
  17909. *
  17910. *
  17911. * @static
  17912. */
  17913. public static function setApiToken($apiToken)
  17914. {
  17915. /** @var \Spatie\FlareClient\Flare $instance */
  17916. return $instance->setApiToken($apiToken);
  17917. }
  17918. /**
  17919. *
  17920. *
  17921. * @static
  17922. */
  17923. public static function apiTokenSet()
  17924. {
  17925. /** @var \Spatie\FlareClient\Flare $instance */
  17926. return $instance->apiTokenSet();
  17927. }
  17928. /**
  17929. *
  17930. *
  17931. * @static
  17932. */
  17933. public static function setBaseUrl($baseUrl)
  17934. {
  17935. /** @var \Spatie\FlareClient\Flare $instance */
  17936. return $instance->setBaseUrl($baseUrl);
  17937. }
  17938. /**
  17939. *
  17940. *
  17941. * @static
  17942. */
  17943. public static function setStage($stage)
  17944. {
  17945. /** @var \Spatie\FlareClient\Flare $instance */
  17946. return $instance->setStage($stage);
  17947. }
  17948. /**
  17949. *
  17950. *
  17951. * @static
  17952. */
  17953. public static function sendReportsImmediately()
  17954. {
  17955. /** @var \Spatie\FlareClient\Flare $instance */
  17956. return $instance->sendReportsImmediately();
  17957. }
  17958. /**
  17959. *
  17960. *
  17961. * @static
  17962. */
  17963. public static function determineVersionUsing($determineVersionCallable)
  17964. {
  17965. /** @var \Spatie\FlareClient\Flare $instance */
  17966. return $instance->determineVersionUsing($determineVersionCallable);
  17967. }
  17968. /**
  17969. *
  17970. *
  17971. * @static
  17972. */
  17973. public static function reportErrorLevels($reportErrorLevels)
  17974. {
  17975. /** @var \Spatie\FlareClient\Flare $instance */
  17976. return $instance->reportErrorLevels($reportErrorLevels);
  17977. }
  17978. /**
  17979. *
  17980. *
  17981. * @static
  17982. */
  17983. public static function filterExceptionsUsing($filterExceptionsCallable)
  17984. {
  17985. /** @var \Spatie\FlareClient\Flare $instance */
  17986. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  17987. }
  17988. /**
  17989. *
  17990. *
  17991. * @static
  17992. */
  17993. public static function filterReportsUsing($filterReportsCallable)
  17994. {
  17995. /** @var \Spatie\FlareClient\Flare $instance */
  17996. return $instance->filterReportsUsing($filterReportsCallable);
  17997. }
  17998. /**
  17999. *
  18000. *
  18001. * @static
  18002. */
  18003. public static function version()
  18004. {
  18005. /** @var \Spatie\FlareClient\Flare $instance */
  18006. return $instance->version();
  18007. }
  18008. /**
  18009. *
  18010. *
  18011. * @return \Spatie\FlareClient\array<int, FlareMiddleware|class-string<FlareMiddleware>>
  18012. * @static
  18013. */
  18014. public static function getMiddleware()
  18015. {
  18016. /** @var \Spatie\FlareClient\Flare $instance */
  18017. return $instance->getMiddleware();
  18018. }
  18019. /**
  18020. *
  18021. *
  18022. * @static
  18023. */
  18024. public static function setContextProviderDetector($contextDetector)
  18025. {
  18026. /** @var \Spatie\FlareClient\Flare $instance */
  18027. return $instance->setContextProviderDetector($contextDetector);
  18028. }
  18029. /**
  18030. *
  18031. *
  18032. * @static
  18033. */
  18034. public static function setContainer($container)
  18035. {
  18036. /** @var \Spatie\FlareClient\Flare $instance */
  18037. return $instance->setContainer($container);
  18038. }
  18039. /**
  18040. *
  18041. *
  18042. * @static
  18043. */
  18044. public static function registerFlareHandlers()
  18045. {
  18046. /** @var \Spatie\FlareClient\Flare $instance */
  18047. return $instance->registerFlareHandlers();
  18048. }
  18049. /**
  18050. *
  18051. *
  18052. * @static
  18053. */
  18054. public static function registerExceptionHandler()
  18055. {
  18056. /** @var \Spatie\FlareClient\Flare $instance */
  18057. return $instance->registerExceptionHandler();
  18058. }
  18059. /**
  18060. *
  18061. *
  18062. * @static
  18063. */
  18064. public static function registerErrorHandler()
  18065. {
  18066. /** @var \Spatie\FlareClient\Flare $instance */
  18067. return $instance->registerErrorHandler();
  18068. }
  18069. /**
  18070. *
  18071. *
  18072. * @param \Spatie\FlareClient\FlareMiddleware\FlareMiddleware|\Spatie\FlareClient\array<FlareMiddleware>|\Spatie\FlareClient\class-string<FlareMiddleware> $middleware
  18073. * @return \Spatie\FlareClient\Flare
  18074. * @static
  18075. */
  18076. public static function registerMiddleware($middleware)
  18077. {
  18078. /** @var \Spatie\FlareClient\Flare $instance */
  18079. return $instance->registerMiddleware($middleware);
  18080. }
  18081. /**
  18082. *
  18083. *
  18084. * @return \Spatie\FlareClient\array<int,FlareMiddleware|\Spatie\FlareClient\class-string<FlareMiddleware>>
  18085. * @static
  18086. */
  18087. public static function getMiddlewares()
  18088. {
  18089. /** @var \Spatie\FlareClient\Flare $instance */
  18090. return $instance->getMiddlewares();
  18091. }
  18092. /**
  18093. *
  18094. *
  18095. * @param string $name
  18096. * @param string $messageLevel
  18097. * @param \Spatie\FlareClient\array<int, mixed> $metaData
  18098. * @return \Spatie\FlareClient\Flare
  18099. * @static
  18100. */
  18101. public static function glow($name, $messageLevel = 'info', $metaData = [])
  18102. {
  18103. /** @var \Spatie\FlareClient\Flare $instance */
  18104. return $instance->glow($name, $messageLevel, $metaData);
  18105. }
  18106. /**
  18107. *
  18108. *
  18109. * @static
  18110. */
  18111. public static function handleException($throwable)
  18112. {
  18113. /** @var \Spatie\FlareClient\Flare $instance */
  18114. return $instance->handleException($throwable);
  18115. }
  18116. /**
  18117. *
  18118. *
  18119. * @return mixed
  18120. * @static
  18121. */
  18122. public static function handleError($code, $message, $file = '', $line = 0)
  18123. {
  18124. /** @var \Spatie\FlareClient\Flare $instance */
  18125. return $instance->handleError($code, $message, $file, $line);
  18126. }
  18127. /**
  18128. *
  18129. *
  18130. * @static
  18131. */
  18132. public static function applicationPath($applicationPath)
  18133. {
  18134. /** @var \Spatie\FlareClient\Flare $instance */
  18135. return $instance->applicationPath($applicationPath);
  18136. }
  18137. /**
  18138. *
  18139. *
  18140. * @static
  18141. */
  18142. public static function report($throwable, $callback = null, $report = null)
  18143. {
  18144. /** @var \Spatie\FlareClient\Flare $instance */
  18145. return $instance->report($throwable, $callback, $report);
  18146. }
  18147. /**
  18148. *
  18149. *
  18150. * @static
  18151. */
  18152. public static function reportMessage($message, $logLevel, $callback = null)
  18153. {
  18154. /** @var \Spatie\FlareClient\Flare $instance */
  18155. return $instance->reportMessage($message, $logLevel, $callback);
  18156. }
  18157. /**
  18158. *
  18159. *
  18160. * @static
  18161. */
  18162. public static function sendTestReport($throwable)
  18163. {
  18164. /** @var \Spatie\FlareClient\Flare $instance */
  18165. return $instance->sendTestReport($throwable);
  18166. }
  18167. /**
  18168. *
  18169. *
  18170. * @static
  18171. */
  18172. public static function reset()
  18173. {
  18174. /** @var \Spatie\FlareClient\Flare $instance */
  18175. return $instance->reset();
  18176. }
  18177. /**
  18178. *
  18179. *
  18180. * @static
  18181. */
  18182. public static function anonymizeIp()
  18183. {
  18184. /** @var \Spatie\FlareClient\Flare $instance */
  18185. return $instance->anonymizeIp();
  18186. }
  18187. /**
  18188. *
  18189. *
  18190. * @param \Spatie\FlareClient\array<int, string> $fieldNames
  18191. * @return \Spatie\FlareClient\Flare
  18192. * @static
  18193. */
  18194. public static function censorRequestBodyFields($fieldNames)
  18195. {
  18196. /** @var \Spatie\FlareClient\Flare $instance */
  18197. return $instance->censorRequestBodyFields($fieldNames);
  18198. }
  18199. /**
  18200. *
  18201. *
  18202. * @static
  18203. */
  18204. public static function createReport($throwable)
  18205. {
  18206. /** @var \Spatie\FlareClient\Flare $instance */
  18207. return $instance->createReport($throwable);
  18208. }
  18209. /**
  18210. *
  18211. *
  18212. * @static
  18213. */
  18214. public static function createReportFromMessage($message, $logLevel)
  18215. {
  18216. /** @var \Spatie\FlareClient\Flare $instance */
  18217. return $instance->createReportFromMessage($message, $logLevel);
  18218. }
  18219. /**
  18220. *
  18221. *
  18222. * @static
  18223. */
  18224. public static function stage($stage)
  18225. {
  18226. /** @var \Spatie\FlareClient\Flare $instance */
  18227. return $instance->stage($stage);
  18228. }
  18229. /**
  18230. *
  18231. *
  18232. * @static
  18233. */
  18234. public static function messageLevel($messageLevel)
  18235. {
  18236. /** @var \Spatie\FlareClient\Flare $instance */
  18237. return $instance->messageLevel($messageLevel);
  18238. }
  18239. /**
  18240. *
  18241. *
  18242. * @param string $groupName
  18243. * @param mixed $default
  18244. * @return \Spatie\FlareClient\array<int, mixed>
  18245. * @static
  18246. */
  18247. public static function getGroup($groupName = 'context', $default = [])
  18248. {
  18249. /** @var \Spatie\FlareClient\Flare $instance */
  18250. return $instance->getGroup($groupName, $default);
  18251. }
  18252. /**
  18253. *
  18254. *
  18255. * @static
  18256. */
  18257. public static function context($key, $value)
  18258. {
  18259. /** @var \Spatie\FlareClient\Flare $instance */
  18260. return $instance->context($key, $value);
  18261. }
  18262. /**
  18263. *
  18264. *
  18265. * @param string $groupName
  18266. * @param \Spatie\FlareClient\array<string, mixed> $properties
  18267. * @return \Spatie\FlareClient\Flare
  18268. * @static
  18269. */
  18270. public static function group($groupName, $properties)
  18271. {
  18272. /** @var \Spatie\FlareClient\Flare $instance */
  18273. return $instance->group($groupName, $properties);
  18274. }
  18275. }
  18276. }
  18277. namespace Illuminate\Http {
  18278. /**
  18279. *
  18280. *
  18281. */
  18282. class Request {
  18283. /**
  18284. *
  18285. *
  18286. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  18287. * @param array $rules
  18288. * @param mixed $params
  18289. * @static
  18290. */
  18291. public static function validate($rules, ...$params)
  18292. {
  18293. return \Illuminate\Http\Request::validate($rules, ...$params);
  18294. }
  18295. /**
  18296. *
  18297. *
  18298. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  18299. * @param string $errorBag
  18300. * @param array $rules
  18301. * @param mixed $params
  18302. * @static
  18303. */
  18304. public static function validateWithBag($errorBag, $rules, ...$params)
  18305. {
  18306. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  18307. }
  18308. /**
  18309. *
  18310. *
  18311. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  18312. * @param mixed $absolute
  18313. * @static
  18314. */
  18315. public static function hasValidSignature($absolute = true)
  18316. {
  18317. return \Illuminate\Http\Request::hasValidSignature($absolute);
  18318. }
  18319. /**
  18320. *
  18321. *
  18322. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  18323. * @static
  18324. */
  18325. public static function hasValidRelativeSignature()
  18326. {
  18327. return \Illuminate\Http\Request::hasValidRelativeSignature();
  18328. }
  18329. /**
  18330. *
  18331. *
  18332. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  18333. * @param mixed $ignoreQuery
  18334. * @param mixed $absolute
  18335. * @static
  18336. */
  18337. public static function hasValidSignatureWhileIgnoring($ignoreQuery = [], $absolute = true)
  18338. {
  18339. return \Illuminate\Http\Request::hasValidSignatureWhileIgnoring($ignoreQuery, $absolute);
  18340. }
  18341. }
  18342. }
  18343. namespace Illuminate\Database\Schema {
  18344. /**
  18345. *
  18346. *
  18347. */
  18348. class Blueprint {
  18349. /**
  18350. *
  18351. *
  18352. * @see \Kalnoy\Nestedset\NestedSetServiceProvider::register()
  18353. * @static
  18354. */
  18355. public static function nestedSet()
  18356. {
  18357. return \Illuminate\Database\Schema\Blueprint::nestedSet();
  18358. }
  18359. /**
  18360. *
  18361. *
  18362. * @see \Kalnoy\Nestedset\NestedSetServiceProvider::register()
  18363. * @static
  18364. */
  18365. public static function dropNestedSet()
  18366. {
  18367. return \Illuminate\Database\Schema\Blueprint::dropNestedSet();
  18368. }
  18369. }
  18370. }
  18371. namespace Illuminate\Routing {
  18372. /**
  18373. *
  18374. *
  18375. * @mixin \Illuminate\Routing\RouteRegistrar
  18376. */
  18377. class Router {
  18378. /**
  18379. *
  18380. *
  18381. * @see \Spatie\Feed\FeedServiceProvider::registerRouteMacro()
  18382. * @param mixed $baseUrl
  18383. * @static
  18384. */
  18385. public static function feeds($baseUrl = '')
  18386. {
  18387. return \Illuminate\Routing\Router::feeds($baseUrl);
  18388. }
  18389. }
  18390. }
  18391. namespace {
  18392. class App extends \Illuminate\Support\Facades\App {}
  18393. class Arr extends \Illuminate\Support\Arr {}
  18394. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  18395. class Auth extends \Illuminate\Support\Facades\Auth {}
  18396. class Blade extends \Illuminate\Support\Facades\Blade {}
  18397. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  18398. class Bus extends \Illuminate\Support\Facades\Bus {}
  18399. class Cache extends \Illuminate\Support\Facades\Cache {}
  18400. class Config extends \Illuminate\Support\Facades\Config {}
  18401. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  18402. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  18403. class Date extends \Illuminate\Support\Facades\Date {}
  18404. class DB extends \Illuminate\Support\Facades\DB {}
  18405. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  18406. /**
  18407. * Create and return an un-saved model instance.
  18408. *
  18409. * @param array $attributes
  18410. * @return \Illuminate\Database\Eloquent\Model|static
  18411. * @static
  18412. */
  18413. public static function make($attributes = [])
  18414. {
  18415. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18416. return $instance->make($attributes);
  18417. }
  18418. /**
  18419. * Register a new global scope.
  18420. *
  18421. * @param string $identifier
  18422. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  18423. * @return \Illuminate\Database\Eloquent\Builder|static
  18424. * @static
  18425. */
  18426. public static function withGlobalScope($identifier, $scope)
  18427. {
  18428. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18429. return $instance->withGlobalScope($identifier, $scope);
  18430. }
  18431. /**
  18432. * Remove a registered global scope.
  18433. *
  18434. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  18435. * @return \Illuminate\Database\Eloquent\Builder|static
  18436. * @static
  18437. */
  18438. public static function withoutGlobalScope($scope)
  18439. {
  18440. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18441. return $instance->withoutGlobalScope($scope);
  18442. }
  18443. /**
  18444. * Remove all or passed registered global scopes.
  18445. *
  18446. * @param array|null $scopes
  18447. * @return \Illuminate\Database\Eloquent\Builder|static
  18448. * @static
  18449. */
  18450. public static function withoutGlobalScopes($scopes = null)
  18451. {
  18452. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18453. return $instance->withoutGlobalScopes($scopes);
  18454. }
  18455. /**
  18456. * Get an array of global scopes that were removed from the query.
  18457. *
  18458. * @return array
  18459. * @static
  18460. */
  18461. public static function removedScopes()
  18462. {
  18463. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18464. return $instance->removedScopes();
  18465. }
  18466. /**
  18467. * Add a where clause on the primary key to the query.
  18468. *
  18469. * @param mixed $id
  18470. * @return \Illuminate\Database\Eloquent\Builder|static
  18471. * @static
  18472. */
  18473. public static function whereKey($id)
  18474. {
  18475. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18476. return $instance->whereKey($id);
  18477. }
  18478. /**
  18479. * Add a where clause on the primary key to the query.
  18480. *
  18481. * @param mixed $id
  18482. * @return \Illuminate\Database\Eloquent\Builder|static
  18483. * @static
  18484. */
  18485. public static function whereKeyNot($id)
  18486. {
  18487. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18488. return $instance->whereKeyNot($id);
  18489. }
  18490. /**
  18491. * Add a basic where clause to the query.
  18492. *
  18493. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18494. * @param mixed $operator
  18495. * @param mixed $value
  18496. * @param string $boolean
  18497. * @return \Illuminate\Database\Eloquent\Builder|static
  18498. * @static
  18499. */
  18500. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  18501. {
  18502. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18503. return $instance->where($column, $operator, $value, $boolean);
  18504. }
  18505. /**
  18506. * Add a basic where clause to the query, and return the first result.
  18507. *
  18508. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18509. * @param mixed $operator
  18510. * @param mixed $value
  18511. * @param string $boolean
  18512. * @return \Illuminate\Database\Eloquent\Model|static|null
  18513. * @static
  18514. */
  18515. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  18516. {
  18517. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18518. return $instance->firstWhere($column, $operator, $value, $boolean);
  18519. }
  18520. /**
  18521. * Add an "or where" clause to the query.
  18522. *
  18523. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  18524. * @param mixed $operator
  18525. * @param mixed $value
  18526. * @return \Illuminate\Database\Eloquent\Builder|static
  18527. * @static
  18528. */
  18529. public static function orWhere($column, $operator = null, $value = null)
  18530. {
  18531. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18532. return $instance->orWhere($column, $operator, $value);
  18533. }
  18534. /**
  18535. * Add a basic "where not" clause to the query.
  18536. *
  18537. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18538. * @param mixed $operator
  18539. * @param mixed $value
  18540. * @param string $boolean
  18541. * @return \Illuminate\Database\Eloquent\Builder|static
  18542. * @static
  18543. */
  18544. public static function whereNot($column, $operator = null, $value = null, $boolean = 'and')
  18545. {
  18546. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18547. return $instance->whereNot($column, $operator, $value, $boolean);
  18548. }
  18549. /**
  18550. * Add an "or where not" clause to the query.
  18551. *
  18552. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  18553. * @param mixed $operator
  18554. * @param mixed $value
  18555. * @return \Illuminate\Database\Eloquent\Builder|static
  18556. * @static
  18557. */
  18558. public static function orWhereNot($column, $operator = null, $value = null)
  18559. {
  18560. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18561. return $instance->orWhereNot($column, $operator, $value);
  18562. }
  18563. /**
  18564. * Add an "order by" clause for a timestamp to the query.
  18565. *
  18566. * @param string|\Illuminate\Database\Query\Expression $column
  18567. * @return \Illuminate\Database\Eloquent\Builder|static
  18568. * @static
  18569. */
  18570. public static function latest($column = null)
  18571. {
  18572. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18573. return $instance->latest($column);
  18574. }
  18575. /**
  18576. * Add an "order by" clause for a timestamp to the query.
  18577. *
  18578. * @param string|\Illuminate\Database\Query\Expression $column
  18579. * @return \Illuminate\Database\Eloquent\Builder|static
  18580. * @static
  18581. */
  18582. public static function oldest($column = null)
  18583. {
  18584. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18585. return $instance->oldest($column);
  18586. }
  18587. /**
  18588. * Create a collection of models from plain arrays.
  18589. *
  18590. * @param array $items
  18591. * @return \Illuminate\Database\Eloquent\Collection
  18592. * @static
  18593. */
  18594. public static function hydrate($items)
  18595. {
  18596. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18597. return $instance->hydrate($items);
  18598. }
  18599. /**
  18600. * Create a collection of models from a raw query.
  18601. *
  18602. * @param string $query
  18603. * @param array $bindings
  18604. * @return \Illuminate\Database\Eloquent\Collection
  18605. * @static
  18606. */
  18607. public static function fromQuery($query, $bindings = [])
  18608. {
  18609. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18610. return $instance->fromQuery($query, $bindings);
  18611. }
  18612. /**
  18613. * Find a model by its primary key.
  18614. *
  18615. * @param mixed $id
  18616. * @param array|string $columns
  18617. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  18618. * @static
  18619. */
  18620. public static function find($id, $columns = [])
  18621. {
  18622. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18623. return $instance->find($id, $columns);
  18624. }
  18625. /**
  18626. * Find multiple models by their primary keys.
  18627. *
  18628. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  18629. * @param array|string $columns
  18630. * @return \Illuminate\Database\Eloquent\Collection
  18631. * @static
  18632. */
  18633. public static function findMany($ids, $columns = [])
  18634. {
  18635. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18636. return $instance->findMany($ids, $columns);
  18637. }
  18638. /**
  18639. * Find a model by its primary key or throw an exception.
  18640. *
  18641. * @param mixed $id
  18642. * @param array|string $columns
  18643. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  18644. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  18645. * @static
  18646. */
  18647. public static function findOrFail($id, $columns = [])
  18648. {
  18649. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18650. return $instance->findOrFail($id, $columns);
  18651. }
  18652. /**
  18653. * Find a model by its primary key or return fresh model instance.
  18654. *
  18655. * @param mixed $id
  18656. * @param array|string $columns
  18657. * @return \Illuminate\Database\Eloquent\Model|static
  18658. * @static
  18659. */
  18660. public static function findOrNew($id, $columns = [])
  18661. {
  18662. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18663. return $instance->findOrNew($id, $columns);
  18664. }
  18665. /**
  18666. * Find a model by its primary key or call a callback.
  18667. *
  18668. * @param mixed $id
  18669. * @param \Closure|array|string $columns
  18670. * @param \Closure|null $callback
  18671. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|mixed
  18672. * @static
  18673. */
  18674. public static function findOr($id, $columns = [], $callback = null)
  18675. {
  18676. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18677. return $instance->findOr($id, $columns, $callback);
  18678. }
  18679. /**
  18680. * Get the first record matching the attributes or instantiate it.
  18681. *
  18682. * @param array $attributes
  18683. * @param array $values
  18684. * @return \Illuminate\Database\Eloquent\Model|static
  18685. * @static
  18686. */
  18687. public static function firstOrNew($attributes = [], $values = [])
  18688. {
  18689. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18690. return $instance->firstOrNew($attributes, $values);
  18691. }
  18692. /**
  18693. * Get the first record matching the attributes or create it.
  18694. *
  18695. * @param array $attributes
  18696. * @param array $values
  18697. * @return \Illuminate\Database\Eloquent\Model|static
  18698. * @static
  18699. */
  18700. public static function firstOrCreate($attributes = [], $values = [])
  18701. {
  18702. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18703. return $instance->firstOrCreate($attributes, $values);
  18704. }
  18705. /**
  18706. * Create or update a record matching the attributes, and fill it with values.
  18707. *
  18708. * @param array $attributes
  18709. * @param array $values
  18710. * @return \Illuminate\Database\Eloquent\Model|static
  18711. * @static
  18712. */
  18713. public static function updateOrCreate($attributes, $values = [])
  18714. {
  18715. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18716. return $instance->updateOrCreate($attributes, $values);
  18717. }
  18718. /**
  18719. * Execute the query and get the first result or throw an exception.
  18720. *
  18721. * @param array|string $columns
  18722. * @return \Illuminate\Database\Eloquent\Model|static
  18723. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  18724. * @static
  18725. */
  18726. public static function firstOrFail($columns = [])
  18727. {
  18728. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18729. return $instance->firstOrFail($columns);
  18730. }
  18731. /**
  18732. * Execute the query and get the first result or call a callback.
  18733. *
  18734. * @param \Closure|array|string $columns
  18735. * @param \Closure|null $callback
  18736. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  18737. * @static
  18738. */
  18739. public static function firstOr($columns = [], $callback = null)
  18740. {
  18741. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18742. return $instance->firstOr($columns, $callback);
  18743. }
  18744. /**
  18745. * Execute the query and get the first result if it's the sole matching record.
  18746. *
  18747. * @param array|string $columns
  18748. * @return \Illuminate\Database\Eloquent\Model
  18749. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  18750. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18751. * @static
  18752. */
  18753. public static function sole($columns = [])
  18754. {
  18755. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18756. return $instance->sole($columns);
  18757. }
  18758. /**
  18759. * Get a single column's value from the first result of a query.
  18760. *
  18761. * @param string|\Illuminate\Database\Query\Expression $column
  18762. * @return mixed
  18763. * @static
  18764. */
  18765. public static function value($column)
  18766. {
  18767. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18768. return $instance->value($column);
  18769. }
  18770. /**
  18771. * Get a single column's value from the first result of a query if it's the sole matching record.
  18772. *
  18773. * @param string|\Illuminate\Database\Query\Expression $column
  18774. * @return mixed
  18775. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  18776. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18777. * @static
  18778. */
  18779. public static function soleValue($column)
  18780. {
  18781. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18782. return $instance->soleValue($column);
  18783. }
  18784. /**
  18785. * Get a single column's value from the first result of the query or throw an exception.
  18786. *
  18787. * @param string|\Illuminate\Database\Query\Expression $column
  18788. * @return mixed
  18789. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException<\Illuminate\Database\Eloquent\Model>
  18790. * @static
  18791. */
  18792. public static function valueOrFail($column)
  18793. {
  18794. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18795. return $instance->valueOrFail($column);
  18796. }
  18797. /**
  18798. * Execute the query as a "select" statement.
  18799. *
  18800. * @param array|string $columns
  18801. * @return \Illuminate\Database\Eloquent\Collection|static[]
  18802. * @static
  18803. */
  18804. public static function get($columns = [])
  18805. {
  18806. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18807. return $instance->get($columns);
  18808. }
  18809. /**
  18810. * Get the hydrated models without eager loading.
  18811. *
  18812. * @param array|string $columns
  18813. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  18814. * @static
  18815. */
  18816. public static function getModels($columns = [])
  18817. {
  18818. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18819. return $instance->getModels($columns);
  18820. }
  18821. /**
  18822. * Eager load the relationships for the models.
  18823. *
  18824. * @param array $models
  18825. * @return array
  18826. * @static
  18827. */
  18828. public static function eagerLoadRelations($models)
  18829. {
  18830. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18831. return $instance->eagerLoadRelations($models);
  18832. }
  18833. /**
  18834. * Get a lazy collection for the given query.
  18835. *
  18836. * @return \Illuminate\Support\LazyCollection
  18837. * @static
  18838. */
  18839. public static function cursor()
  18840. {
  18841. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18842. return $instance->cursor();
  18843. }
  18844. /**
  18845. * Get an array with the values of a given column.
  18846. *
  18847. * @param string|\Illuminate\Database\Query\Expression $column
  18848. * @param string|null $key
  18849. * @return \Illuminate\Support\Collection
  18850. * @static
  18851. */
  18852. public static function pluck($column, $key = null)
  18853. {
  18854. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18855. return $instance->pluck($column, $key);
  18856. }
  18857. /**
  18858. * Paginate the given query.
  18859. *
  18860. * @param int|null|\Closure $perPage
  18861. * @param array|string $columns
  18862. * @param string $pageName
  18863. * @param int|null $page
  18864. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  18865. * @throws \InvalidArgumentException
  18866. * @static
  18867. */
  18868. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  18869. {
  18870. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18871. return $instance->paginate($perPage, $columns, $pageName, $page);
  18872. }
  18873. /**
  18874. * Paginate the given query into a simple paginator.
  18875. *
  18876. * @param int|null $perPage
  18877. * @param array|string $columns
  18878. * @param string $pageName
  18879. * @param int|null $page
  18880. * @return \Illuminate\Contracts\Pagination\Paginator
  18881. * @static
  18882. */
  18883. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  18884. {
  18885. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18886. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  18887. }
  18888. /**
  18889. * Paginate the given query into a cursor paginator.
  18890. *
  18891. * @param int|null $perPage
  18892. * @param array|string $columns
  18893. * @param string $cursorName
  18894. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  18895. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  18896. * @static
  18897. */
  18898. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  18899. {
  18900. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18901. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  18902. }
  18903. /**
  18904. * Save a new model and return the instance.
  18905. *
  18906. * @param array $attributes
  18907. * @return \Illuminate\Database\Eloquent\Model|$this
  18908. * @static
  18909. */
  18910. public static function create($attributes = [])
  18911. {
  18912. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18913. return $instance->create($attributes);
  18914. }
  18915. /**
  18916. * Save a new model and return the instance. Allow mass-assignment.
  18917. *
  18918. * @param array $attributes
  18919. * @return \Illuminate\Database\Eloquent\Model|$this
  18920. * @static
  18921. */
  18922. public static function forceCreate($attributes)
  18923. {
  18924. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18925. return $instance->forceCreate($attributes);
  18926. }
  18927. /**
  18928. * Insert new records or update the existing ones.
  18929. *
  18930. * @param array $values
  18931. * @param array|string $uniqueBy
  18932. * @param array|null $update
  18933. * @return int
  18934. * @static
  18935. */
  18936. public static function upsert($values, $uniqueBy, $update = null)
  18937. {
  18938. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18939. return $instance->upsert($values, $uniqueBy, $update);
  18940. }
  18941. /**
  18942. * Register a replacement for the default delete function.
  18943. *
  18944. * @param \Closure $callback
  18945. * @return void
  18946. * @static
  18947. */
  18948. public static function onDelete($callback)
  18949. {
  18950. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18951. $instance->onDelete($callback);
  18952. }
  18953. /**
  18954. * Call the given local model scopes.
  18955. *
  18956. * @param array|string $scopes
  18957. * @return static|mixed
  18958. * @static
  18959. */
  18960. public static function scopes($scopes)
  18961. {
  18962. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18963. return $instance->scopes($scopes);
  18964. }
  18965. /**
  18966. * Apply the scopes to the Eloquent builder instance and return it.
  18967. *
  18968. * @return static
  18969. * @static
  18970. */
  18971. public static function applyScopes()
  18972. {
  18973. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18974. return $instance->applyScopes();
  18975. }
  18976. /**
  18977. * Prevent the specified relations from being eager loaded.
  18978. *
  18979. * @param mixed $relations
  18980. * @return \Illuminate\Database\Eloquent\Builder|static
  18981. * @static
  18982. */
  18983. public static function without($relations)
  18984. {
  18985. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18986. return $instance->without($relations);
  18987. }
  18988. /**
  18989. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  18990. *
  18991. * @param mixed $relations
  18992. * @return \Illuminate\Database\Eloquent\Builder|static
  18993. * @static
  18994. */
  18995. public static function withOnly($relations)
  18996. {
  18997. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18998. return $instance->withOnly($relations);
  18999. }
  19000. /**
  19001. * Create a new instance of the model being queried.
  19002. *
  19003. * @param array $attributes
  19004. * @return \Illuminate\Database\Eloquent\Model|static
  19005. * @static
  19006. */
  19007. public static function newModelInstance($attributes = [])
  19008. {
  19009. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19010. return $instance->newModelInstance($attributes);
  19011. }
  19012. /**
  19013. * Apply query-time casts to the model instance.
  19014. *
  19015. * @param array $casts
  19016. * @return \Illuminate\Database\Eloquent\Builder|static
  19017. * @static
  19018. */
  19019. public static function withCasts($casts)
  19020. {
  19021. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19022. return $instance->withCasts($casts);
  19023. }
  19024. /**
  19025. * Get the underlying query builder instance.
  19026. *
  19027. * @return \Illuminate\Database\Query\Builder
  19028. * @static
  19029. */
  19030. public static function getQuery()
  19031. {
  19032. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19033. return $instance->getQuery();
  19034. }
  19035. /**
  19036. * Set the underlying query builder instance.
  19037. *
  19038. * @param \Illuminate\Database\Query\Builder $query
  19039. * @return \Illuminate\Database\Eloquent\Builder|static
  19040. * @static
  19041. */
  19042. public static function setQuery($query)
  19043. {
  19044. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19045. return $instance->setQuery($query);
  19046. }
  19047. /**
  19048. * Get a base query builder instance.
  19049. *
  19050. * @return \Illuminate\Database\Query\Builder
  19051. * @static
  19052. */
  19053. public static function toBase()
  19054. {
  19055. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19056. return $instance->toBase();
  19057. }
  19058. /**
  19059. * Get the relationships being eagerly loaded.
  19060. *
  19061. * @return array
  19062. * @static
  19063. */
  19064. public static function getEagerLoads()
  19065. {
  19066. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19067. return $instance->getEagerLoads();
  19068. }
  19069. /**
  19070. * Set the relationships being eagerly loaded.
  19071. *
  19072. * @param array $eagerLoad
  19073. * @return \Illuminate\Database\Eloquent\Builder|static
  19074. * @static
  19075. */
  19076. public static function setEagerLoads($eagerLoad)
  19077. {
  19078. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19079. return $instance->setEagerLoads($eagerLoad);
  19080. }
  19081. /**
  19082. * Indicate that the given relationships should not be eagerly loaded.
  19083. *
  19084. * @param array $relations
  19085. * @return \Illuminate\Database\Eloquent\Builder|static
  19086. * @static
  19087. */
  19088. public static function withoutEagerLoad($relations)
  19089. {
  19090. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19091. return $instance->withoutEagerLoad($relations);
  19092. }
  19093. /**
  19094. * Flush the relationships being eagerly loaded.
  19095. *
  19096. * @return \Illuminate\Database\Eloquent\Builder|static
  19097. * @static
  19098. */
  19099. public static function withoutEagerLoads()
  19100. {
  19101. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19102. return $instance->withoutEagerLoads();
  19103. }
  19104. /**
  19105. * Get the model instance being queried.
  19106. *
  19107. * @return \Illuminate\Database\Eloquent\Model|static
  19108. * @static
  19109. */
  19110. public static function getModel()
  19111. {
  19112. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19113. return $instance->getModel();
  19114. }
  19115. /**
  19116. * Set a model instance for the model being queried.
  19117. *
  19118. * @param \Illuminate\Database\Eloquent\Model $model
  19119. * @return \Illuminate\Database\Eloquent\Builder|static
  19120. * @static
  19121. */
  19122. public static function setModel($model)
  19123. {
  19124. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19125. return $instance->setModel($model);
  19126. }
  19127. /**
  19128. * Get the given macro by name.
  19129. *
  19130. * @param string $name
  19131. * @return \Closure
  19132. * @static
  19133. */
  19134. public static function getMacro($name)
  19135. {
  19136. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19137. return $instance->getMacro($name);
  19138. }
  19139. /**
  19140. * Checks if a macro is registered.
  19141. *
  19142. * @param string $name
  19143. * @return bool
  19144. * @static
  19145. */
  19146. public static function hasMacro($name)
  19147. {
  19148. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19149. return $instance->hasMacro($name);
  19150. }
  19151. /**
  19152. * Get the given global macro by name.
  19153. *
  19154. * @param string $name
  19155. * @return \Closure
  19156. * @static
  19157. */
  19158. public static function getGlobalMacro($name)
  19159. {
  19160. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  19161. }
  19162. /**
  19163. * Checks if a global macro is registered.
  19164. *
  19165. * @param string $name
  19166. * @return bool
  19167. * @static
  19168. */
  19169. public static function hasGlobalMacro($name)
  19170. {
  19171. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  19172. }
  19173. /**
  19174. * Clone the Eloquent query builder.
  19175. *
  19176. * @return static
  19177. * @static
  19178. */
  19179. public static function clone()
  19180. {
  19181. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19182. return $instance->clone();
  19183. }
  19184. /**
  19185. * Chunk the results of the query.
  19186. *
  19187. * @param int $count
  19188. * @param callable $callback
  19189. * @return bool
  19190. * @static
  19191. */
  19192. public static function chunk($count, $callback)
  19193. {
  19194. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19195. return $instance->chunk($count, $callback);
  19196. }
  19197. /**
  19198. * Run a map over each item while chunking.
  19199. *
  19200. * @param callable $callback
  19201. * @param int $count
  19202. * @return \Illuminate\Support\Collection
  19203. * @static
  19204. */
  19205. public static function chunkMap($callback, $count = 1000)
  19206. {
  19207. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19208. return $instance->chunkMap($callback, $count);
  19209. }
  19210. /**
  19211. * Execute a callback over each item while chunking.
  19212. *
  19213. * @param callable $callback
  19214. * @param int $count
  19215. * @return bool
  19216. * @throws \RuntimeException
  19217. * @static
  19218. */
  19219. public static function each($callback, $count = 1000)
  19220. {
  19221. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19222. return $instance->each($callback, $count);
  19223. }
  19224. /**
  19225. * Chunk the results of a query by comparing IDs.
  19226. *
  19227. * @param int $count
  19228. * @param callable $callback
  19229. * @param string|null $column
  19230. * @param string|null $alias
  19231. * @return bool
  19232. * @static
  19233. */
  19234. public static function chunkById($count, $callback, $column = null, $alias = null)
  19235. {
  19236. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19237. return $instance->chunkById($count, $callback, $column, $alias);
  19238. }
  19239. /**
  19240. * Execute a callback over each item while chunking by ID.
  19241. *
  19242. * @param callable $callback
  19243. * @param int $count
  19244. * @param string|null $column
  19245. * @param string|null $alias
  19246. * @return bool
  19247. * @static
  19248. */
  19249. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  19250. {
  19251. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19252. return $instance->eachById($callback, $count, $column, $alias);
  19253. }
  19254. /**
  19255. * Query lazily, by chunks of the given size.
  19256. *
  19257. * @param int $chunkSize
  19258. * @return \Illuminate\Support\LazyCollection
  19259. * @throws \InvalidArgumentException
  19260. * @static
  19261. */
  19262. public static function lazy($chunkSize = 1000)
  19263. {
  19264. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19265. return $instance->lazy($chunkSize);
  19266. }
  19267. /**
  19268. * Query lazily, by chunking the results of a query by comparing IDs.
  19269. *
  19270. * @param int $chunkSize
  19271. * @param string|null $column
  19272. * @param string|null $alias
  19273. * @return \Illuminate\Support\LazyCollection
  19274. * @throws \InvalidArgumentException
  19275. * @static
  19276. */
  19277. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  19278. {
  19279. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19280. return $instance->lazyById($chunkSize, $column, $alias);
  19281. }
  19282. /**
  19283. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  19284. *
  19285. * @param int $chunkSize
  19286. * @param string|null $column
  19287. * @param string|null $alias
  19288. * @return \Illuminate\Support\LazyCollection
  19289. * @throws \InvalidArgumentException
  19290. * @static
  19291. */
  19292. public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  19293. {
  19294. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19295. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  19296. }
  19297. /**
  19298. * Execute the query and get the first result.
  19299. *
  19300. * @param array|string $columns
  19301. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  19302. * @static
  19303. */
  19304. public static function first($columns = [])
  19305. {
  19306. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19307. return $instance->first($columns);
  19308. }
  19309. /**
  19310. * Execute the query and get the first result if it's the sole matching record.
  19311. *
  19312. * @param array|string $columns
  19313. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  19314. * @throws \Illuminate\Database\RecordsNotFoundException
  19315. * @throws \Illuminate\Database\MultipleRecordsFoundException
  19316. * @static
  19317. */
  19318. public static function baseSole($columns = [])
  19319. {
  19320. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19321. return $instance->baseSole($columns);
  19322. }
  19323. /**
  19324. * Pass the query to a given callback.
  19325. *
  19326. * @param callable $callback
  19327. * @return \Illuminate\Database\Eloquent\Builder|static
  19328. * @static
  19329. */
  19330. public static function tap($callback)
  19331. {
  19332. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19333. return $instance->tap($callback);
  19334. }
  19335. /**
  19336. * Apply the callback if the given "value" is (or resolves to) truthy.
  19337. *
  19338. * @template TWhenParameter
  19339. * @template TWhenReturnType
  19340. * @param \Illuminate\Database\Eloquent\(\Closure($this): TWhenParameter)|TWhenParameter $value
  19341. * @param \Illuminate\Database\Eloquent\(callable($this, TWhenParameter): TWhenReturnType)|null $callback
  19342. * @param \Illuminate\Database\Eloquent\(callable($this, TWhenParameter): TWhenReturnType)|null $default
  19343. * @return $this|\Illuminate\Database\Eloquent\TWhenReturnType
  19344. * @static
  19345. */
  19346. public static function when($value, $callback = null, $default = null)
  19347. {
  19348. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19349. return $instance->when($value, $callback, $default);
  19350. }
  19351. /**
  19352. * Apply the callback if the given "value" is (or resolves to) falsy.
  19353. *
  19354. * @template TUnlessParameter
  19355. * @template TUnlessReturnType
  19356. * @param \Illuminate\Database\Eloquent\(\Closure($this): TUnlessParameter)|TUnlessParameter $value
  19357. * @param \Illuminate\Database\Eloquent\(callable($this, TUnlessParameter): TUnlessReturnType)|null $callback
  19358. * @param \Illuminate\Database\Eloquent\(callable($this, TUnlessParameter): TUnlessReturnType)|null $default
  19359. * @return $this|\Illuminate\Database\Eloquent\TUnlessReturnType
  19360. * @static
  19361. */
  19362. public static function unless($value, $callback = null, $default = null)
  19363. {
  19364. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19365. return $instance->unless($value, $callback, $default);
  19366. }
  19367. /**
  19368. * Add a relationship count / exists condition to the query.
  19369. *
  19370. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  19371. * @param string $operator
  19372. * @param int $count
  19373. * @param string $boolean
  19374. * @param \Closure|null $callback
  19375. * @return \Illuminate\Database\Eloquent\Builder|static
  19376. * @throws \RuntimeException
  19377. * @static
  19378. */
  19379. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  19380. {
  19381. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19382. return $instance->has($relation, $operator, $count, $boolean, $callback);
  19383. }
  19384. /**
  19385. * Add a relationship count / exists condition to the query with an "or".
  19386. *
  19387. * @param string $relation
  19388. * @param string $operator
  19389. * @param int $count
  19390. * @return \Illuminate\Database\Eloquent\Builder|static
  19391. * @static
  19392. */
  19393. public static function orHas($relation, $operator = '>=', $count = 1)
  19394. {
  19395. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19396. return $instance->orHas($relation, $operator, $count);
  19397. }
  19398. /**
  19399. * Add a relationship count / exists condition to the query.
  19400. *
  19401. * @param string $relation
  19402. * @param string $boolean
  19403. * @param \Closure|null $callback
  19404. * @return \Illuminate\Database\Eloquent\Builder|static
  19405. * @static
  19406. */
  19407. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  19408. {
  19409. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19410. return $instance->doesntHave($relation, $boolean, $callback);
  19411. }
  19412. /**
  19413. * Add a relationship count / exists condition to the query with an "or".
  19414. *
  19415. * @param string $relation
  19416. * @return \Illuminate\Database\Eloquent\Builder|static
  19417. * @static
  19418. */
  19419. public static function orDoesntHave($relation)
  19420. {
  19421. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19422. return $instance->orDoesntHave($relation);
  19423. }
  19424. /**
  19425. * Add a relationship count / exists condition to the query with where clauses.
  19426. *
  19427. * @param string $relation
  19428. * @param \Closure|null $callback
  19429. * @param string $operator
  19430. * @param int $count
  19431. * @return \Illuminate\Database\Eloquent\Builder|static
  19432. * @static
  19433. */
  19434. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  19435. {
  19436. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19437. return $instance->whereHas($relation, $callback, $operator, $count);
  19438. }
  19439. /**
  19440. * Add a relationship count / exists condition to the query with where clauses.
  19441. *
  19442. * Also load the relationship with same condition.
  19443. *
  19444. * @param string $relation
  19445. * @param \Closure|null $callback
  19446. * @param string $operator
  19447. * @param int $count
  19448. * @return \Illuminate\Database\Eloquent\Builder|static
  19449. * @static
  19450. */
  19451. public static function withWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  19452. {
  19453. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19454. return $instance->withWhereHas($relation, $callback, $operator, $count);
  19455. }
  19456. /**
  19457. * Add a relationship count / exists condition to the query with where clauses and an "or".
  19458. *
  19459. * @param string $relation
  19460. * @param \Closure|null $callback
  19461. * @param string $operator
  19462. * @param int $count
  19463. * @return \Illuminate\Database\Eloquent\Builder|static
  19464. * @static
  19465. */
  19466. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  19467. {
  19468. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19469. return $instance->orWhereHas($relation, $callback, $operator, $count);
  19470. }
  19471. /**
  19472. * Add a relationship count / exists condition to the query with where clauses.
  19473. *
  19474. * @param string $relation
  19475. * @param \Closure|null $callback
  19476. * @return \Illuminate\Database\Eloquent\Builder|static
  19477. * @static
  19478. */
  19479. public static function whereDoesntHave($relation, $callback = null)
  19480. {
  19481. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19482. return $instance->whereDoesntHave($relation, $callback);
  19483. }
  19484. /**
  19485. * Add a relationship count / exists condition to the query with where clauses and an "or".
  19486. *
  19487. * @param string $relation
  19488. * @param \Closure|null $callback
  19489. * @return \Illuminate\Database\Eloquent\Builder|static
  19490. * @static
  19491. */
  19492. public static function orWhereDoesntHave($relation, $callback = null)
  19493. {
  19494. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19495. return $instance->orWhereDoesntHave($relation, $callback);
  19496. }
  19497. /**
  19498. * Add a polymorphic relationship count / exists condition to the query.
  19499. *
  19500. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19501. * @param string|array $types
  19502. * @param string $operator
  19503. * @param int $count
  19504. * @param string $boolean
  19505. * @param \Closure|null $callback
  19506. * @return \Illuminate\Database\Eloquent\Builder|static
  19507. * @static
  19508. */
  19509. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  19510. {
  19511. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19512. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  19513. }
  19514. /**
  19515. * Add a polymorphic relationship count / exists condition to the query with an "or".
  19516. *
  19517. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19518. * @param string|array $types
  19519. * @param string $operator
  19520. * @param int $count
  19521. * @return \Illuminate\Database\Eloquent\Builder|static
  19522. * @static
  19523. */
  19524. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  19525. {
  19526. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19527. return $instance->orHasMorph($relation, $types, $operator, $count);
  19528. }
  19529. /**
  19530. * Add a polymorphic relationship count / exists condition to the query.
  19531. *
  19532. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19533. * @param string|array $types
  19534. * @param string $boolean
  19535. * @param \Closure|null $callback
  19536. * @return \Illuminate\Database\Eloquent\Builder|static
  19537. * @static
  19538. */
  19539. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  19540. {
  19541. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19542. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  19543. }
  19544. /**
  19545. * Add a polymorphic relationship count / exists condition to the query with an "or".
  19546. *
  19547. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19548. * @param string|array $types
  19549. * @return \Illuminate\Database\Eloquent\Builder|static
  19550. * @static
  19551. */
  19552. public static function orDoesntHaveMorph($relation, $types)
  19553. {
  19554. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19555. return $instance->orDoesntHaveMorph($relation, $types);
  19556. }
  19557. /**
  19558. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  19559. *
  19560. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19561. * @param string|array $types
  19562. * @param \Closure|null $callback
  19563. * @param string $operator
  19564. * @param int $count
  19565. * @return \Illuminate\Database\Eloquent\Builder|static
  19566. * @static
  19567. */
  19568. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  19569. {
  19570. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19571. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  19572. }
  19573. /**
  19574. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  19575. *
  19576. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19577. * @param string|array $types
  19578. * @param \Closure|null $callback
  19579. * @param string $operator
  19580. * @param int $count
  19581. * @return \Illuminate\Database\Eloquent\Builder|static
  19582. * @static
  19583. */
  19584. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  19585. {
  19586. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19587. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  19588. }
  19589. /**
  19590. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  19591. *
  19592. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19593. * @param string|array $types
  19594. * @param \Closure|null $callback
  19595. * @return \Illuminate\Database\Eloquent\Builder|static
  19596. * @static
  19597. */
  19598. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  19599. {
  19600. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19601. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  19602. }
  19603. /**
  19604. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  19605. *
  19606. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19607. * @param string|array $types
  19608. * @param \Closure|null $callback
  19609. * @return \Illuminate\Database\Eloquent\Builder|static
  19610. * @static
  19611. */
  19612. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  19613. {
  19614. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19615. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  19616. }
  19617. /**
  19618. * Add a basic where clause to a relationship query.
  19619. *
  19620. * @param string $relation
  19621. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19622. * @param mixed $operator
  19623. * @param mixed $value
  19624. * @return \Illuminate\Database\Eloquent\Builder|static
  19625. * @static
  19626. */
  19627. public static function whereRelation($relation, $column, $operator = null, $value = null)
  19628. {
  19629. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19630. return $instance->whereRelation($relation, $column, $operator, $value);
  19631. }
  19632. /**
  19633. * Add an "or where" clause to a relationship query.
  19634. *
  19635. * @param string $relation
  19636. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19637. * @param mixed $operator
  19638. * @param mixed $value
  19639. * @return \Illuminate\Database\Eloquent\Builder|static
  19640. * @static
  19641. */
  19642. public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  19643. {
  19644. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19645. return $instance->orWhereRelation($relation, $column, $operator, $value);
  19646. }
  19647. /**
  19648. * Add a polymorphic relationship condition to the query with a where clause.
  19649. *
  19650. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19651. * @param string|array $types
  19652. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19653. * @param mixed $operator
  19654. * @param mixed $value
  19655. * @return \Illuminate\Database\Eloquent\Builder|static
  19656. * @static
  19657. */
  19658. public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  19659. {
  19660. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19661. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  19662. }
  19663. /**
  19664. * Add a polymorphic relationship condition to the query with an "or where" clause.
  19665. *
  19666. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19667. * @param string|array $types
  19668. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19669. * @param mixed $operator
  19670. * @param mixed $value
  19671. * @return \Illuminate\Database\Eloquent\Builder|static
  19672. * @static
  19673. */
  19674. public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  19675. {
  19676. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19677. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  19678. }
  19679. /**
  19680. * Add a morph-to relationship condition to the query.
  19681. *
  19682. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19683. * @param \Illuminate\Database\Eloquent\Model|string $model
  19684. * @return \Illuminate\Database\Eloquent\Builder|static
  19685. * @static
  19686. */
  19687. public static function whereMorphedTo($relation, $model, $boolean = 'and')
  19688. {
  19689. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19690. return $instance->whereMorphedTo($relation, $model, $boolean);
  19691. }
  19692. /**
  19693. * Add a not morph-to relationship condition to the query.
  19694. *
  19695. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19696. * @param \Illuminate\Database\Eloquent\Model|string $model
  19697. * @return \Illuminate\Database\Eloquent\Builder|static
  19698. * @static
  19699. */
  19700. public static function whereNotMorphedTo($relation, $model, $boolean = 'and')
  19701. {
  19702. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19703. return $instance->whereNotMorphedTo($relation, $model, $boolean);
  19704. }
  19705. /**
  19706. * Add a morph-to relationship condition to the query with an "or where" clause.
  19707. *
  19708. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19709. * @param \Illuminate\Database\Eloquent\Model|string $model
  19710. * @return \Illuminate\Database\Eloquent\Builder|static
  19711. * @static
  19712. */
  19713. public static function orWhereMorphedTo($relation, $model)
  19714. {
  19715. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19716. return $instance->orWhereMorphedTo($relation, $model);
  19717. }
  19718. /**
  19719. * Add a not morph-to relationship condition to the query with an "or where" clause.
  19720. *
  19721. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19722. * @param \Illuminate\Database\Eloquent\Model|string $model
  19723. * @return \Illuminate\Database\Eloquent\Builder|static
  19724. * @static
  19725. */
  19726. public static function orWhereNotMorphedTo($relation, $model)
  19727. {
  19728. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19729. return $instance->orWhereNotMorphedTo($relation, $model);
  19730. }
  19731. /**
  19732. * Add a "belongs to" relationship where clause to the query.
  19733. *
  19734. * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<\Illuminate\Database\Eloquent\Model> $related
  19735. * @param string|null $relationshipName
  19736. * @param string $boolean
  19737. * @return \Illuminate\Database\Eloquent\Builder|static
  19738. * @throws \Illuminate\Database\Eloquent\RelationNotFoundException
  19739. * @static
  19740. */
  19741. public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  19742. {
  19743. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19744. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  19745. }
  19746. /**
  19747. * Add an "BelongsTo" relationship with an "or where" clause to the query.
  19748. *
  19749. * @param \Illuminate\Database\Eloquent\Model $related
  19750. * @param string|null $relationshipName
  19751. * @return \Illuminate\Database\Eloquent\Builder|static
  19752. * @throws \RuntimeException
  19753. * @static
  19754. */
  19755. public static function orWhereBelongsTo($related, $relationshipName = null)
  19756. {
  19757. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19758. return $instance->orWhereBelongsTo($related, $relationshipName);
  19759. }
  19760. /**
  19761. * Add subselect queries to include an aggregate value for a relationship.
  19762. *
  19763. * @param mixed $relations
  19764. * @param string $column
  19765. * @param string $function
  19766. * @return \Illuminate\Database\Eloquent\Builder|static
  19767. * @static
  19768. */
  19769. public static function withAggregate($relations, $column, $function = null)
  19770. {
  19771. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19772. return $instance->withAggregate($relations, $column, $function);
  19773. }
  19774. /**
  19775. * Add subselect queries to count the relations.
  19776. *
  19777. * @param mixed $relations
  19778. * @return \Illuminate\Database\Eloquent\Builder|static
  19779. * @static
  19780. */
  19781. public static function withCount($relations)
  19782. {
  19783. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19784. return $instance->withCount($relations);
  19785. }
  19786. /**
  19787. * Add subselect queries to include the max of the relation's column.
  19788. *
  19789. * @param string|array $relation
  19790. * @param string $column
  19791. * @return \Illuminate\Database\Eloquent\Builder|static
  19792. * @static
  19793. */
  19794. public static function withMax($relation, $column)
  19795. {
  19796. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19797. return $instance->withMax($relation, $column);
  19798. }
  19799. /**
  19800. * Add subselect queries to include the min of the relation's column.
  19801. *
  19802. * @param string|array $relation
  19803. * @param string $column
  19804. * @return \Illuminate\Database\Eloquent\Builder|static
  19805. * @static
  19806. */
  19807. public static function withMin($relation, $column)
  19808. {
  19809. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19810. return $instance->withMin($relation, $column);
  19811. }
  19812. /**
  19813. * Add subselect queries to include the sum of the relation's column.
  19814. *
  19815. * @param string|array $relation
  19816. * @param string $column
  19817. * @return \Illuminate\Database\Eloquent\Builder|static
  19818. * @static
  19819. */
  19820. public static function withSum($relation, $column)
  19821. {
  19822. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19823. return $instance->withSum($relation, $column);
  19824. }
  19825. /**
  19826. * Add subselect queries to include the average of the relation's column.
  19827. *
  19828. * @param string|array $relation
  19829. * @param string $column
  19830. * @return \Illuminate\Database\Eloquent\Builder|static
  19831. * @static
  19832. */
  19833. public static function withAvg($relation, $column)
  19834. {
  19835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19836. return $instance->withAvg($relation, $column);
  19837. }
  19838. /**
  19839. * Add subselect queries to include the existence of related models.
  19840. *
  19841. * @param string|array $relation
  19842. * @return \Illuminate\Database\Eloquent\Builder|static
  19843. * @static
  19844. */
  19845. public static function withExists($relation)
  19846. {
  19847. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19848. return $instance->withExists($relation);
  19849. }
  19850. /**
  19851. * Merge the where constraints from another query to the current query.
  19852. *
  19853. * @param \Illuminate\Database\Eloquent\Builder $from
  19854. * @return \Illuminate\Database\Eloquent\Builder|static
  19855. * @static
  19856. */
  19857. public static function mergeConstraintsFrom($from)
  19858. {
  19859. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19860. return $instance->mergeConstraintsFrom($from);
  19861. }
  19862. /**
  19863. * Set the columns to be selected.
  19864. *
  19865. * @param array|mixed $columns
  19866. * @return \Illuminate\Database\Query\Builder
  19867. * @static
  19868. */
  19869. public static function select($columns = [])
  19870. {
  19871. /** @var \Illuminate\Database\Query\Builder $instance */
  19872. return $instance->select($columns);
  19873. }
  19874. /**
  19875. * Add a subselect expression to the query.
  19876. *
  19877. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19878. * @param string $as
  19879. * @return \Illuminate\Database\Query\Builder
  19880. * @throws \InvalidArgumentException
  19881. * @static
  19882. */
  19883. public static function selectSub($query, $as)
  19884. {
  19885. /** @var \Illuminate\Database\Query\Builder $instance */
  19886. return $instance->selectSub($query, $as);
  19887. }
  19888. /**
  19889. * Add a new "raw" select expression to the query.
  19890. *
  19891. * @param string $expression
  19892. * @param array $bindings
  19893. * @return \Illuminate\Database\Query\Builder
  19894. * @static
  19895. */
  19896. public static function selectRaw($expression, $bindings = [])
  19897. {
  19898. /** @var \Illuminate\Database\Query\Builder $instance */
  19899. return $instance->selectRaw($expression, $bindings);
  19900. }
  19901. /**
  19902. * Makes "from" fetch from a subquery.
  19903. *
  19904. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  19905. * @param string $as
  19906. * @return \Illuminate\Database\Query\Builder
  19907. * @throws \InvalidArgumentException
  19908. * @static
  19909. */
  19910. public static function fromSub($query, $as)
  19911. {
  19912. /** @var \Illuminate\Database\Query\Builder $instance */
  19913. return $instance->fromSub($query, $as);
  19914. }
  19915. /**
  19916. * Add a raw from clause to the query.
  19917. *
  19918. * @param string $expression
  19919. * @param mixed $bindings
  19920. * @return \Illuminate\Database\Query\Builder
  19921. * @static
  19922. */
  19923. public static function fromRaw($expression, $bindings = [])
  19924. {
  19925. /** @var \Illuminate\Database\Query\Builder $instance */
  19926. return $instance->fromRaw($expression, $bindings);
  19927. }
  19928. /**
  19929. * Add a new select column to the query.
  19930. *
  19931. * @param array|mixed $column
  19932. * @return \Illuminate\Database\Query\Builder
  19933. * @static
  19934. */
  19935. public static function addSelect($column)
  19936. {
  19937. /** @var \Illuminate\Database\Query\Builder $instance */
  19938. return $instance->addSelect($column);
  19939. }
  19940. /**
  19941. * Force the query to only return distinct results.
  19942. *
  19943. * @return \Illuminate\Database\Query\Builder
  19944. * @static
  19945. */
  19946. public static function distinct()
  19947. {
  19948. /** @var \Illuminate\Database\Query\Builder $instance */
  19949. return $instance->distinct();
  19950. }
  19951. /**
  19952. * Set the table which the query is targeting.
  19953. *
  19954. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  19955. * @param string|null $as
  19956. * @return \Illuminate\Database\Query\Builder
  19957. * @static
  19958. */
  19959. public static function from($table, $as = null)
  19960. {
  19961. /** @var \Illuminate\Database\Query\Builder $instance */
  19962. return $instance->from($table, $as);
  19963. }
  19964. /**
  19965. * Add a join clause to the query.
  19966. *
  19967. * @param string $table
  19968. * @param \Closure|string $first
  19969. * @param string|null $operator
  19970. * @param string|null $second
  19971. * @param string $type
  19972. * @param bool $where
  19973. * @return \Illuminate\Database\Query\Builder
  19974. * @static
  19975. */
  19976. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19977. {
  19978. /** @var \Illuminate\Database\Query\Builder $instance */
  19979. return $instance->join($table, $first, $operator, $second, $type, $where);
  19980. }
  19981. /**
  19982. * Add a "join where" clause to the query.
  19983. *
  19984. * @param string $table
  19985. * @param \Closure|string $first
  19986. * @param string $operator
  19987. * @param string $second
  19988. * @param string $type
  19989. * @return \Illuminate\Database\Query\Builder
  19990. * @static
  19991. */
  19992. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  19993. {
  19994. /** @var \Illuminate\Database\Query\Builder $instance */
  19995. return $instance->joinWhere($table, $first, $operator, $second, $type);
  19996. }
  19997. /**
  19998. * Add a subquery join clause to the query.
  19999. *
  20000. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20001. * @param string $as
  20002. * @param \Closure|string $first
  20003. * @param string|null $operator
  20004. * @param string|null $second
  20005. * @param string $type
  20006. * @param bool $where
  20007. * @return \Illuminate\Database\Query\Builder
  20008. * @throws \InvalidArgumentException
  20009. * @static
  20010. */
  20011. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  20012. {
  20013. /** @var \Illuminate\Database\Query\Builder $instance */
  20014. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  20015. }
  20016. /**
  20017. * Add a left join to the query.
  20018. *
  20019. * @param string $table
  20020. * @param \Closure|string $first
  20021. * @param string|null $operator
  20022. * @param string|null $second
  20023. * @return \Illuminate\Database\Query\Builder
  20024. * @static
  20025. */
  20026. public static function leftJoin($table, $first, $operator = null, $second = null)
  20027. {
  20028. /** @var \Illuminate\Database\Query\Builder $instance */
  20029. return $instance->leftJoin($table, $first, $operator, $second);
  20030. }
  20031. /**
  20032. * Add a "join where" clause to the query.
  20033. *
  20034. * @param string $table
  20035. * @param \Closure|string $first
  20036. * @param string $operator
  20037. * @param string $second
  20038. * @return \Illuminate\Database\Query\Builder
  20039. * @static
  20040. */
  20041. public static function leftJoinWhere($table, $first, $operator, $second)
  20042. {
  20043. /** @var \Illuminate\Database\Query\Builder $instance */
  20044. return $instance->leftJoinWhere($table, $first, $operator, $second);
  20045. }
  20046. /**
  20047. * Add a subquery left join to the query.
  20048. *
  20049. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20050. * @param string $as
  20051. * @param \Closure|string $first
  20052. * @param string|null $operator
  20053. * @param string|null $second
  20054. * @return \Illuminate\Database\Query\Builder
  20055. * @static
  20056. */
  20057. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  20058. {
  20059. /** @var \Illuminate\Database\Query\Builder $instance */
  20060. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  20061. }
  20062. /**
  20063. * Add a right join to the query.
  20064. *
  20065. * @param string $table
  20066. * @param \Closure|string $first
  20067. * @param string|null $operator
  20068. * @param string|null $second
  20069. * @return \Illuminate\Database\Query\Builder
  20070. * @static
  20071. */
  20072. public static function rightJoin($table, $first, $operator = null, $second = null)
  20073. {
  20074. /** @var \Illuminate\Database\Query\Builder $instance */
  20075. return $instance->rightJoin($table, $first, $operator, $second);
  20076. }
  20077. /**
  20078. * Add a "right join where" clause to the query.
  20079. *
  20080. * @param string $table
  20081. * @param \Closure|string $first
  20082. * @param string $operator
  20083. * @param string $second
  20084. * @return \Illuminate\Database\Query\Builder
  20085. * @static
  20086. */
  20087. public static function rightJoinWhere($table, $first, $operator, $second)
  20088. {
  20089. /** @var \Illuminate\Database\Query\Builder $instance */
  20090. return $instance->rightJoinWhere($table, $first, $operator, $second);
  20091. }
  20092. /**
  20093. * Add a subquery right join to the query.
  20094. *
  20095. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  20096. * @param string $as
  20097. * @param \Closure|string $first
  20098. * @param string|null $operator
  20099. * @param string|null $second
  20100. * @return \Illuminate\Database\Query\Builder
  20101. * @static
  20102. */
  20103. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  20104. {
  20105. /** @var \Illuminate\Database\Query\Builder $instance */
  20106. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  20107. }
  20108. /**
  20109. * Add a "cross join" clause to the query.
  20110. *
  20111. * @param string $table
  20112. * @param \Closure|string|null $first
  20113. * @param string|null $operator
  20114. * @param string|null $second
  20115. * @return \Illuminate\Database\Query\Builder
  20116. * @static
  20117. */
  20118. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  20119. {
  20120. /** @var \Illuminate\Database\Query\Builder $instance */
  20121. return $instance->crossJoin($table, $first, $operator, $second);
  20122. }
  20123. /**
  20124. * Add a subquery cross join to the query.
  20125. *
  20126. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  20127. * @param string $as
  20128. * @return \Illuminate\Database\Query\Builder
  20129. * @static
  20130. */
  20131. public static function crossJoinSub($query, $as)
  20132. {
  20133. /** @var \Illuminate\Database\Query\Builder $instance */
  20134. return $instance->crossJoinSub($query, $as);
  20135. }
  20136. /**
  20137. * Merge an array of where clauses and bindings.
  20138. *
  20139. * @param array $wheres
  20140. * @param array $bindings
  20141. * @return \Illuminate\Database\Query\Builder
  20142. * @static
  20143. */
  20144. public static function mergeWheres($wheres, $bindings)
  20145. {
  20146. /** @var \Illuminate\Database\Query\Builder $instance */
  20147. return $instance->mergeWheres($wheres, $bindings);
  20148. }
  20149. /**
  20150. * Prepare the value and operator for a where clause.
  20151. *
  20152. * @param string $value
  20153. * @param string $operator
  20154. * @param bool $useDefault
  20155. * @return array
  20156. * @throws \InvalidArgumentException
  20157. * @static
  20158. */
  20159. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  20160. {
  20161. /** @var \Illuminate\Database\Query\Builder $instance */
  20162. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  20163. }
  20164. /**
  20165. * Add a "where" clause comparing two columns to the query.
  20166. *
  20167. * @param string|array $first
  20168. * @param string|null $operator
  20169. * @param string|null $second
  20170. * @param string|null $boolean
  20171. * @return \Illuminate\Database\Query\Builder
  20172. * @static
  20173. */
  20174. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  20175. {
  20176. /** @var \Illuminate\Database\Query\Builder $instance */
  20177. return $instance->whereColumn($first, $operator, $second, $boolean);
  20178. }
  20179. /**
  20180. * Add an "or where" clause comparing two columns to the query.
  20181. *
  20182. * @param string|array $first
  20183. * @param string|null $operator
  20184. * @param string|null $second
  20185. * @return \Illuminate\Database\Query\Builder
  20186. * @static
  20187. */
  20188. public static function orWhereColumn($first, $operator = null, $second = null)
  20189. {
  20190. /** @var \Illuminate\Database\Query\Builder $instance */
  20191. return $instance->orWhereColumn($first, $operator, $second);
  20192. }
  20193. /**
  20194. * Add a raw where clause to the query.
  20195. *
  20196. * @param string $sql
  20197. * @param mixed $bindings
  20198. * @param string $boolean
  20199. * @return \Illuminate\Database\Query\Builder
  20200. * @static
  20201. */
  20202. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  20203. {
  20204. /** @var \Illuminate\Database\Query\Builder $instance */
  20205. return $instance->whereRaw($sql, $bindings, $boolean);
  20206. }
  20207. /**
  20208. * Add a raw or where clause to the query.
  20209. *
  20210. * @param string $sql
  20211. * @param mixed $bindings
  20212. * @return \Illuminate\Database\Query\Builder
  20213. * @static
  20214. */
  20215. public static function orWhereRaw($sql, $bindings = [])
  20216. {
  20217. /** @var \Illuminate\Database\Query\Builder $instance */
  20218. return $instance->orWhereRaw($sql, $bindings);
  20219. }
  20220. /**
  20221. * Add a "where in" clause to the query.
  20222. *
  20223. * @param string $column
  20224. * @param mixed $values
  20225. * @param string $boolean
  20226. * @param bool $not
  20227. * @return \Illuminate\Database\Query\Builder
  20228. * @static
  20229. */
  20230. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  20231. {
  20232. /** @var \Illuminate\Database\Query\Builder $instance */
  20233. return $instance->whereIn($column, $values, $boolean, $not);
  20234. }
  20235. /**
  20236. * Add an "or where in" clause to the query.
  20237. *
  20238. * @param string $column
  20239. * @param mixed $values
  20240. * @return \Illuminate\Database\Query\Builder
  20241. * @static
  20242. */
  20243. public static function orWhereIn($column, $values)
  20244. {
  20245. /** @var \Illuminate\Database\Query\Builder $instance */
  20246. return $instance->orWhereIn($column, $values);
  20247. }
  20248. /**
  20249. * Add a "where not in" clause to the query.
  20250. *
  20251. * @param string $column
  20252. * @param mixed $values
  20253. * @param string $boolean
  20254. * @return \Illuminate\Database\Query\Builder
  20255. * @static
  20256. */
  20257. public static function whereNotIn($column, $values, $boolean = 'and')
  20258. {
  20259. /** @var \Illuminate\Database\Query\Builder $instance */
  20260. return $instance->whereNotIn($column, $values, $boolean);
  20261. }
  20262. /**
  20263. * Add an "or where not in" clause to the query.
  20264. *
  20265. * @param string $column
  20266. * @param mixed $values
  20267. * @return \Illuminate\Database\Query\Builder
  20268. * @static
  20269. */
  20270. public static function orWhereNotIn($column, $values)
  20271. {
  20272. /** @var \Illuminate\Database\Query\Builder $instance */
  20273. return $instance->orWhereNotIn($column, $values);
  20274. }
  20275. /**
  20276. * Add a "where in raw" clause for integer values to the query.
  20277. *
  20278. * @param string $column
  20279. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  20280. * @param string $boolean
  20281. * @param bool $not
  20282. * @return \Illuminate\Database\Query\Builder
  20283. * @static
  20284. */
  20285. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  20286. {
  20287. /** @var \Illuminate\Database\Query\Builder $instance */
  20288. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  20289. }
  20290. /**
  20291. * Add an "or where in raw" clause for integer values to the query.
  20292. *
  20293. * @param string $column
  20294. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  20295. * @return \Illuminate\Database\Query\Builder
  20296. * @static
  20297. */
  20298. public static function orWhereIntegerInRaw($column, $values)
  20299. {
  20300. /** @var \Illuminate\Database\Query\Builder $instance */
  20301. return $instance->orWhereIntegerInRaw($column, $values);
  20302. }
  20303. /**
  20304. * Add a "where not in raw" clause for integer values to the query.
  20305. *
  20306. * @param string $column
  20307. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  20308. * @param string $boolean
  20309. * @return \Illuminate\Database\Query\Builder
  20310. * @static
  20311. */
  20312. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  20313. {
  20314. /** @var \Illuminate\Database\Query\Builder $instance */
  20315. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  20316. }
  20317. /**
  20318. * Add an "or where not in raw" clause for integer values to the query.
  20319. *
  20320. * @param string $column
  20321. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  20322. * @return \Illuminate\Database\Query\Builder
  20323. * @static
  20324. */
  20325. public static function orWhereIntegerNotInRaw($column, $values)
  20326. {
  20327. /** @var \Illuminate\Database\Query\Builder $instance */
  20328. return $instance->orWhereIntegerNotInRaw($column, $values);
  20329. }
  20330. /**
  20331. * Add a "where null" clause to the query.
  20332. *
  20333. * @param string|array $columns
  20334. * @param string $boolean
  20335. * @param bool $not
  20336. * @return \Illuminate\Database\Query\Builder
  20337. * @static
  20338. */
  20339. public static function whereNull($columns, $boolean = 'and', $not = false)
  20340. {
  20341. /** @var \Illuminate\Database\Query\Builder $instance */
  20342. return $instance->whereNull($columns, $boolean, $not);
  20343. }
  20344. /**
  20345. * Add an "or where null" clause to the query.
  20346. *
  20347. * @param string|array $column
  20348. * @return \Illuminate\Database\Query\Builder
  20349. * @static
  20350. */
  20351. public static function orWhereNull($column)
  20352. {
  20353. /** @var \Illuminate\Database\Query\Builder $instance */
  20354. return $instance->orWhereNull($column);
  20355. }
  20356. /**
  20357. * Add a "where not null" clause to the query.
  20358. *
  20359. * @param string|array $columns
  20360. * @param string $boolean
  20361. * @return \Illuminate\Database\Query\Builder
  20362. * @static
  20363. */
  20364. public static function whereNotNull($columns, $boolean = 'and')
  20365. {
  20366. /** @var \Illuminate\Database\Query\Builder $instance */
  20367. return $instance->whereNotNull($columns, $boolean);
  20368. }
  20369. /**
  20370. * Add a where between statement to the query.
  20371. *
  20372. * @param string|\Illuminate\Database\Query\Expression $column
  20373. * @param \Illuminate\Database\Query\iterable $values
  20374. * @param string $boolean
  20375. * @param bool $not
  20376. * @return \Illuminate\Database\Query\Builder
  20377. * @static
  20378. */
  20379. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  20380. {
  20381. /** @var \Illuminate\Database\Query\Builder $instance */
  20382. return $instance->whereBetween($column, $values, $boolean, $not);
  20383. }
  20384. /**
  20385. * Add a where between statement using columns to the query.
  20386. *
  20387. * @param string $column
  20388. * @param array $values
  20389. * @param string $boolean
  20390. * @param bool $not
  20391. * @return \Illuminate\Database\Query\Builder
  20392. * @static
  20393. */
  20394. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  20395. {
  20396. /** @var \Illuminate\Database\Query\Builder $instance */
  20397. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  20398. }
  20399. /**
  20400. * Add an or where between statement to the query.
  20401. *
  20402. * @param string $column
  20403. * @param \Illuminate\Database\Query\iterable $values
  20404. * @return \Illuminate\Database\Query\Builder
  20405. * @static
  20406. */
  20407. public static function orWhereBetween($column, $values)
  20408. {
  20409. /** @var \Illuminate\Database\Query\Builder $instance */
  20410. return $instance->orWhereBetween($column, $values);
  20411. }
  20412. /**
  20413. * Add an or where between statement using columns to the query.
  20414. *
  20415. * @param string $column
  20416. * @param array $values
  20417. * @return \Illuminate\Database\Query\Builder
  20418. * @static
  20419. */
  20420. public static function orWhereBetweenColumns($column, $values)
  20421. {
  20422. /** @var \Illuminate\Database\Query\Builder $instance */
  20423. return $instance->orWhereBetweenColumns($column, $values);
  20424. }
  20425. /**
  20426. * Add a where not between statement to the query.
  20427. *
  20428. * @param string $column
  20429. * @param \Illuminate\Database\Query\iterable $values
  20430. * @param string $boolean
  20431. * @return \Illuminate\Database\Query\Builder
  20432. * @static
  20433. */
  20434. public static function whereNotBetween($column, $values, $boolean = 'and')
  20435. {
  20436. /** @var \Illuminate\Database\Query\Builder $instance */
  20437. return $instance->whereNotBetween($column, $values, $boolean);
  20438. }
  20439. /**
  20440. * Add a where not between statement using columns to the query.
  20441. *
  20442. * @param string $column
  20443. * @param array $values
  20444. * @param string $boolean
  20445. * @return \Illuminate\Database\Query\Builder
  20446. * @static
  20447. */
  20448. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  20449. {
  20450. /** @var \Illuminate\Database\Query\Builder $instance */
  20451. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  20452. }
  20453. /**
  20454. * Add an or where not between statement to the query.
  20455. *
  20456. * @param string $column
  20457. * @param \Illuminate\Database\Query\iterable $values
  20458. * @return \Illuminate\Database\Query\Builder
  20459. * @static
  20460. */
  20461. public static function orWhereNotBetween($column, $values)
  20462. {
  20463. /** @var \Illuminate\Database\Query\Builder $instance */
  20464. return $instance->orWhereNotBetween($column, $values);
  20465. }
  20466. /**
  20467. * Add an or where not between statement using columns to the query.
  20468. *
  20469. * @param string $column
  20470. * @param array $values
  20471. * @return \Illuminate\Database\Query\Builder
  20472. * @static
  20473. */
  20474. public static function orWhereNotBetweenColumns($column, $values)
  20475. {
  20476. /** @var \Illuminate\Database\Query\Builder $instance */
  20477. return $instance->orWhereNotBetweenColumns($column, $values);
  20478. }
  20479. /**
  20480. * Add an "or where not null" clause to the query.
  20481. *
  20482. * @param string $column
  20483. * @return \Illuminate\Database\Query\Builder
  20484. * @static
  20485. */
  20486. public static function orWhereNotNull($column)
  20487. {
  20488. /** @var \Illuminate\Database\Query\Builder $instance */
  20489. return $instance->orWhereNotNull($column);
  20490. }
  20491. /**
  20492. * Add a "where date" statement to the query.
  20493. *
  20494. * @param string $column
  20495. * @param string $operator
  20496. * @param \DateTimeInterface|string|null $value
  20497. * @param string $boolean
  20498. * @return \Illuminate\Database\Query\Builder
  20499. * @static
  20500. */
  20501. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  20502. {
  20503. /** @var \Illuminate\Database\Query\Builder $instance */
  20504. return $instance->whereDate($column, $operator, $value, $boolean);
  20505. }
  20506. /**
  20507. * Add an "or where date" statement to the query.
  20508. *
  20509. * @param string $column
  20510. * @param string $operator
  20511. * @param \DateTimeInterface|string|null $value
  20512. * @return \Illuminate\Database\Query\Builder
  20513. * @static
  20514. */
  20515. public static function orWhereDate($column, $operator, $value = null)
  20516. {
  20517. /** @var \Illuminate\Database\Query\Builder $instance */
  20518. return $instance->orWhereDate($column, $operator, $value);
  20519. }
  20520. /**
  20521. * Add a "where time" statement to the query.
  20522. *
  20523. * @param string $column
  20524. * @param string $operator
  20525. * @param \DateTimeInterface|string|null $value
  20526. * @param string $boolean
  20527. * @return \Illuminate\Database\Query\Builder
  20528. * @static
  20529. */
  20530. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  20531. {
  20532. /** @var \Illuminate\Database\Query\Builder $instance */
  20533. return $instance->whereTime($column, $operator, $value, $boolean);
  20534. }
  20535. /**
  20536. * Add an "or where time" statement to the query.
  20537. *
  20538. * @param string $column
  20539. * @param string $operator
  20540. * @param \DateTimeInterface|string|null $value
  20541. * @return \Illuminate\Database\Query\Builder
  20542. * @static
  20543. */
  20544. public static function orWhereTime($column, $operator, $value = null)
  20545. {
  20546. /** @var \Illuminate\Database\Query\Builder $instance */
  20547. return $instance->orWhereTime($column, $operator, $value);
  20548. }
  20549. /**
  20550. * Add a "where day" statement to the query.
  20551. *
  20552. * @param string $column
  20553. * @param string $operator
  20554. * @param \DateTimeInterface|string|null $value
  20555. * @param string $boolean
  20556. * @return \Illuminate\Database\Query\Builder
  20557. * @static
  20558. */
  20559. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  20560. {
  20561. /** @var \Illuminate\Database\Query\Builder $instance */
  20562. return $instance->whereDay($column, $operator, $value, $boolean);
  20563. }
  20564. /**
  20565. * Add an "or where day" statement to the query.
  20566. *
  20567. * @param string $column
  20568. * @param string $operator
  20569. * @param \DateTimeInterface|string|null $value
  20570. * @return \Illuminate\Database\Query\Builder
  20571. * @static
  20572. */
  20573. public static function orWhereDay($column, $operator, $value = null)
  20574. {
  20575. /** @var \Illuminate\Database\Query\Builder $instance */
  20576. return $instance->orWhereDay($column, $operator, $value);
  20577. }
  20578. /**
  20579. * Add a "where month" statement to the query.
  20580. *
  20581. * @param string $column
  20582. * @param string $operator
  20583. * @param \DateTimeInterface|string|null $value
  20584. * @param string $boolean
  20585. * @return \Illuminate\Database\Query\Builder
  20586. * @static
  20587. */
  20588. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  20589. {
  20590. /** @var \Illuminate\Database\Query\Builder $instance */
  20591. return $instance->whereMonth($column, $operator, $value, $boolean);
  20592. }
  20593. /**
  20594. * Add an "or where month" statement to the query.
  20595. *
  20596. * @param string $column
  20597. * @param string $operator
  20598. * @param \DateTimeInterface|string|null $value
  20599. * @return \Illuminate\Database\Query\Builder
  20600. * @static
  20601. */
  20602. public static function orWhereMonth($column, $operator, $value = null)
  20603. {
  20604. /** @var \Illuminate\Database\Query\Builder $instance */
  20605. return $instance->orWhereMonth($column, $operator, $value);
  20606. }
  20607. /**
  20608. * Add a "where year" statement to the query.
  20609. *
  20610. * @param string $column
  20611. * @param string $operator
  20612. * @param \DateTimeInterface|string|int|null $value
  20613. * @param string $boolean
  20614. * @return \Illuminate\Database\Query\Builder
  20615. * @static
  20616. */
  20617. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  20618. {
  20619. /** @var \Illuminate\Database\Query\Builder $instance */
  20620. return $instance->whereYear($column, $operator, $value, $boolean);
  20621. }
  20622. /**
  20623. * Add an "or where year" statement to the query.
  20624. *
  20625. * @param string $column
  20626. * @param string $operator
  20627. * @param \DateTimeInterface|string|int|null $value
  20628. * @return \Illuminate\Database\Query\Builder
  20629. * @static
  20630. */
  20631. public static function orWhereYear($column, $operator, $value = null)
  20632. {
  20633. /** @var \Illuminate\Database\Query\Builder $instance */
  20634. return $instance->orWhereYear($column, $operator, $value);
  20635. }
  20636. /**
  20637. * Add a nested where statement to the query.
  20638. *
  20639. * @param \Closure $callback
  20640. * @param string $boolean
  20641. * @return \Illuminate\Database\Query\Builder
  20642. * @static
  20643. */
  20644. public static function whereNested($callback, $boolean = 'and')
  20645. {
  20646. /** @var \Illuminate\Database\Query\Builder $instance */
  20647. return $instance->whereNested($callback, $boolean);
  20648. }
  20649. /**
  20650. * Create a new query instance for nested where condition.
  20651. *
  20652. * @return \Illuminate\Database\Query\Builder
  20653. * @static
  20654. */
  20655. public static function forNestedWhere()
  20656. {
  20657. /** @var \Illuminate\Database\Query\Builder $instance */
  20658. return $instance->forNestedWhere();
  20659. }
  20660. /**
  20661. * Add another query builder as a nested where to the query builder.
  20662. *
  20663. * @param \Illuminate\Database\Query\Builder $query
  20664. * @param string $boolean
  20665. * @return \Illuminate\Database\Query\Builder
  20666. * @static
  20667. */
  20668. public static function addNestedWhereQuery($query, $boolean = 'and')
  20669. {
  20670. /** @var \Illuminate\Database\Query\Builder $instance */
  20671. return $instance->addNestedWhereQuery($query, $boolean);
  20672. }
  20673. /**
  20674. * Add an exists clause to the query.
  20675. *
  20676. * @param \Closure $callback
  20677. * @param string $boolean
  20678. * @param bool $not
  20679. * @return \Illuminate\Database\Query\Builder
  20680. * @static
  20681. */
  20682. public static function whereExists($callback, $boolean = 'and', $not = false)
  20683. {
  20684. /** @var \Illuminate\Database\Query\Builder $instance */
  20685. return $instance->whereExists($callback, $boolean, $not);
  20686. }
  20687. /**
  20688. * Add an or exists clause to the query.
  20689. *
  20690. * @param \Closure $callback
  20691. * @param bool $not
  20692. * @return \Illuminate\Database\Query\Builder
  20693. * @static
  20694. */
  20695. public static function orWhereExists($callback, $not = false)
  20696. {
  20697. /** @var \Illuminate\Database\Query\Builder $instance */
  20698. return $instance->orWhereExists($callback, $not);
  20699. }
  20700. /**
  20701. * Add a where not exists clause to the query.
  20702. *
  20703. * @param \Closure $callback
  20704. * @param string $boolean
  20705. * @return \Illuminate\Database\Query\Builder
  20706. * @static
  20707. */
  20708. public static function whereNotExists($callback, $boolean = 'and')
  20709. {
  20710. /** @var \Illuminate\Database\Query\Builder $instance */
  20711. return $instance->whereNotExists($callback, $boolean);
  20712. }
  20713. /**
  20714. * Add a where not exists clause to the query.
  20715. *
  20716. * @param \Closure $callback
  20717. * @return \Illuminate\Database\Query\Builder
  20718. * @static
  20719. */
  20720. public static function orWhereNotExists($callback)
  20721. {
  20722. /** @var \Illuminate\Database\Query\Builder $instance */
  20723. return $instance->orWhereNotExists($callback);
  20724. }
  20725. /**
  20726. * Add an exists clause to the query.
  20727. *
  20728. * @param \Illuminate\Database\Query\Builder $query
  20729. * @param string $boolean
  20730. * @param bool $not
  20731. * @return \Illuminate\Database\Query\Builder
  20732. * @static
  20733. */
  20734. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  20735. {
  20736. /** @var \Illuminate\Database\Query\Builder $instance */
  20737. return $instance->addWhereExistsQuery($query, $boolean, $not);
  20738. }
  20739. /**
  20740. * Adds a where condition using row values.
  20741. *
  20742. * @param array $columns
  20743. * @param string $operator
  20744. * @param array $values
  20745. * @param string $boolean
  20746. * @return \Illuminate\Database\Query\Builder
  20747. * @throws \InvalidArgumentException
  20748. * @static
  20749. */
  20750. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  20751. {
  20752. /** @var \Illuminate\Database\Query\Builder $instance */
  20753. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  20754. }
  20755. /**
  20756. * Adds an or where condition using row values.
  20757. *
  20758. * @param array $columns
  20759. * @param string $operator
  20760. * @param array $values
  20761. * @return \Illuminate\Database\Query\Builder
  20762. * @static
  20763. */
  20764. public static function orWhereRowValues($columns, $operator, $values)
  20765. {
  20766. /** @var \Illuminate\Database\Query\Builder $instance */
  20767. return $instance->orWhereRowValues($columns, $operator, $values);
  20768. }
  20769. /**
  20770. * Add a "where JSON contains" clause to the query.
  20771. *
  20772. * @param string $column
  20773. * @param mixed $value
  20774. * @param string $boolean
  20775. * @param bool $not
  20776. * @return \Illuminate\Database\Query\Builder
  20777. * @static
  20778. */
  20779. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  20780. {
  20781. /** @var \Illuminate\Database\Query\Builder $instance */
  20782. return $instance->whereJsonContains($column, $value, $boolean, $not);
  20783. }
  20784. /**
  20785. * Add an "or where JSON contains" clause to the query.
  20786. *
  20787. * @param string $column
  20788. * @param mixed $value
  20789. * @return \Illuminate\Database\Query\Builder
  20790. * @static
  20791. */
  20792. public static function orWhereJsonContains($column, $value)
  20793. {
  20794. /** @var \Illuminate\Database\Query\Builder $instance */
  20795. return $instance->orWhereJsonContains($column, $value);
  20796. }
  20797. /**
  20798. * Add a "where JSON not contains" clause to the query.
  20799. *
  20800. * @param string $column
  20801. * @param mixed $value
  20802. * @param string $boolean
  20803. * @return \Illuminate\Database\Query\Builder
  20804. * @static
  20805. */
  20806. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  20807. {
  20808. /** @var \Illuminate\Database\Query\Builder $instance */
  20809. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  20810. }
  20811. /**
  20812. * Add an "or where JSON not contains" clause to the query.
  20813. *
  20814. * @param string $column
  20815. * @param mixed $value
  20816. * @return \Illuminate\Database\Query\Builder
  20817. * @static
  20818. */
  20819. public static function orWhereJsonDoesntContain($column, $value)
  20820. {
  20821. /** @var \Illuminate\Database\Query\Builder $instance */
  20822. return $instance->orWhereJsonDoesntContain($column, $value);
  20823. }
  20824. /**
  20825. * Add a clause that determines if a JSON path exists to the query.
  20826. *
  20827. * @param string $column
  20828. * @param string $boolean
  20829. * @param bool $not
  20830. * @return \Illuminate\Database\Query\Builder
  20831. * @static
  20832. */
  20833. public static function whereJsonContainsKey($column, $boolean = 'and', $not = false)
  20834. {
  20835. /** @var \Illuminate\Database\Query\Builder $instance */
  20836. return $instance->whereJsonContainsKey($column, $boolean, $not);
  20837. }
  20838. /**
  20839. * Add an "or" clause that determines if a JSON path exists to the query.
  20840. *
  20841. * @param string $column
  20842. * @return \Illuminate\Database\Query\Builder
  20843. * @static
  20844. */
  20845. public static function orWhereJsonContainsKey($column)
  20846. {
  20847. /** @var \Illuminate\Database\Query\Builder $instance */
  20848. return $instance->orWhereJsonContainsKey($column);
  20849. }
  20850. /**
  20851. * Add a clause that determines if a JSON path does not exist to the query.
  20852. *
  20853. * @param string $column
  20854. * @param string $boolean
  20855. * @return \Illuminate\Database\Query\Builder
  20856. * @static
  20857. */
  20858. public static function whereJsonDoesntContainKey($column, $boolean = 'and')
  20859. {
  20860. /** @var \Illuminate\Database\Query\Builder $instance */
  20861. return $instance->whereJsonDoesntContainKey($column, $boolean);
  20862. }
  20863. /**
  20864. * Add an "or" clause that determines if a JSON path does not exist to the query.
  20865. *
  20866. * @param string $column
  20867. * @return \Illuminate\Database\Query\Builder
  20868. * @static
  20869. */
  20870. public static function orWhereJsonDoesntContainKey($column)
  20871. {
  20872. /** @var \Illuminate\Database\Query\Builder $instance */
  20873. return $instance->orWhereJsonDoesntContainKey($column);
  20874. }
  20875. /**
  20876. * Add a "where JSON length" clause to the query.
  20877. *
  20878. * @param string $column
  20879. * @param mixed $operator
  20880. * @param mixed $value
  20881. * @param string $boolean
  20882. * @return \Illuminate\Database\Query\Builder
  20883. * @static
  20884. */
  20885. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  20886. {
  20887. /** @var \Illuminate\Database\Query\Builder $instance */
  20888. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  20889. }
  20890. /**
  20891. * Add an "or where JSON length" clause to the query.
  20892. *
  20893. * @param string $column
  20894. * @param mixed $operator
  20895. * @param mixed $value
  20896. * @return \Illuminate\Database\Query\Builder
  20897. * @static
  20898. */
  20899. public static function orWhereJsonLength($column, $operator, $value = null)
  20900. {
  20901. /** @var \Illuminate\Database\Query\Builder $instance */
  20902. return $instance->orWhereJsonLength($column, $operator, $value);
  20903. }
  20904. /**
  20905. * Handles dynamic "where" clauses to the query.
  20906. *
  20907. * @param string $method
  20908. * @param array $parameters
  20909. * @return \Illuminate\Database\Query\Builder
  20910. * @static
  20911. */
  20912. public static function dynamicWhere($method, $parameters)
  20913. {
  20914. /** @var \Illuminate\Database\Query\Builder $instance */
  20915. return $instance->dynamicWhere($method, $parameters);
  20916. }
  20917. /**
  20918. * Add a "where fulltext" clause to the query.
  20919. *
  20920. * @param string|string[] $columns
  20921. * @param string $value
  20922. * @param string $boolean
  20923. * @return \Illuminate\Database\Query\Builder
  20924. * @static
  20925. */
  20926. public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  20927. {
  20928. /** @var \Illuminate\Database\Query\Builder $instance */
  20929. return $instance->whereFullText($columns, $value, $options, $boolean);
  20930. }
  20931. /**
  20932. * Add a "or where fulltext" clause to the query.
  20933. *
  20934. * @param string|string[] $columns
  20935. * @param string $value
  20936. * @return \Illuminate\Database\Query\Builder
  20937. * @static
  20938. */
  20939. public static function orWhereFullText($columns, $value, $options = [])
  20940. {
  20941. /** @var \Illuminate\Database\Query\Builder $instance */
  20942. return $instance->orWhereFullText($columns, $value, $options);
  20943. }
  20944. /**
  20945. * Add a "group by" clause to the query.
  20946. *
  20947. * @param array|string $groups
  20948. * @return \Illuminate\Database\Query\Builder
  20949. * @static
  20950. */
  20951. public static function groupBy(...$groups)
  20952. {
  20953. /** @var \Illuminate\Database\Query\Builder $instance */
  20954. return $instance->groupBy(...$groups);
  20955. }
  20956. /**
  20957. * Add a raw groupBy clause to the query.
  20958. *
  20959. * @param string $sql
  20960. * @param array $bindings
  20961. * @return \Illuminate\Database\Query\Builder
  20962. * @static
  20963. */
  20964. public static function groupByRaw($sql, $bindings = [])
  20965. {
  20966. /** @var \Illuminate\Database\Query\Builder $instance */
  20967. return $instance->groupByRaw($sql, $bindings);
  20968. }
  20969. /**
  20970. * Add a "having" clause to the query.
  20971. *
  20972. * @param \Closure|string $column
  20973. * @param string|int|float|null $operator
  20974. * @param string|int|float|null $value
  20975. * @param string $boolean
  20976. * @return \Illuminate\Database\Query\Builder
  20977. * @static
  20978. */
  20979. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  20980. {
  20981. /** @var \Illuminate\Database\Query\Builder $instance */
  20982. return $instance->having($column, $operator, $value, $boolean);
  20983. }
  20984. /**
  20985. * Add an "or having" clause to the query.
  20986. *
  20987. * @param \Closure|string $column
  20988. * @param string|int|float|null $operator
  20989. * @param string|int|float|null $value
  20990. * @return \Illuminate\Database\Query\Builder
  20991. * @static
  20992. */
  20993. public static function orHaving($column, $operator = null, $value = null)
  20994. {
  20995. /** @var \Illuminate\Database\Query\Builder $instance */
  20996. return $instance->orHaving($column, $operator, $value);
  20997. }
  20998. /**
  20999. * Add a nested having statement to the query.
  21000. *
  21001. * @param \Closure $callback
  21002. * @param string $boolean
  21003. * @return \Illuminate\Database\Query\Builder
  21004. * @static
  21005. */
  21006. public static function havingNested($callback, $boolean = 'and')
  21007. {
  21008. /** @var \Illuminate\Database\Query\Builder $instance */
  21009. return $instance->havingNested($callback, $boolean);
  21010. }
  21011. /**
  21012. * Add another query builder as a nested having to the query builder.
  21013. *
  21014. * @param \Illuminate\Database\Query\Builder $query
  21015. * @param string $boolean
  21016. * @return \Illuminate\Database\Query\Builder
  21017. * @static
  21018. */
  21019. public static function addNestedHavingQuery($query, $boolean = 'and')
  21020. {
  21021. /** @var \Illuminate\Database\Query\Builder $instance */
  21022. return $instance->addNestedHavingQuery($query, $boolean);
  21023. }
  21024. /**
  21025. * Add a "having null" clause to the query.
  21026. *
  21027. * @param string|array $columns
  21028. * @param string $boolean
  21029. * @param bool $not
  21030. * @return \Illuminate\Database\Query\Builder
  21031. * @static
  21032. */
  21033. public static function havingNull($columns, $boolean = 'and', $not = false)
  21034. {
  21035. /** @var \Illuminate\Database\Query\Builder $instance */
  21036. return $instance->havingNull($columns, $boolean, $not);
  21037. }
  21038. /**
  21039. * Add an "or having null" clause to the query.
  21040. *
  21041. * @param string $column
  21042. * @return \Illuminate\Database\Query\Builder
  21043. * @static
  21044. */
  21045. public static function orHavingNull($column)
  21046. {
  21047. /** @var \Illuminate\Database\Query\Builder $instance */
  21048. return $instance->orHavingNull($column);
  21049. }
  21050. /**
  21051. * Add a "having not null" clause to the query.
  21052. *
  21053. * @param string|array $columns
  21054. * @param string $boolean
  21055. * @return \Illuminate\Database\Query\Builder
  21056. * @static
  21057. */
  21058. public static function havingNotNull($columns, $boolean = 'and')
  21059. {
  21060. /** @var \Illuminate\Database\Query\Builder $instance */
  21061. return $instance->havingNotNull($columns, $boolean);
  21062. }
  21063. /**
  21064. * Add an "or having not null" clause to the query.
  21065. *
  21066. * @param string $column
  21067. * @return \Illuminate\Database\Query\Builder
  21068. * @static
  21069. */
  21070. public static function orHavingNotNull($column)
  21071. {
  21072. /** @var \Illuminate\Database\Query\Builder $instance */
  21073. return $instance->orHavingNotNull($column);
  21074. }
  21075. /**
  21076. * Add a "having between " clause to the query.
  21077. *
  21078. * @param string $column
  21079. * @param array $values
  21080. * @param string $boolean
  21081. * @param bool $not
  21082. * @return \Illuminate\Database\Query\Builder
  21083. * @static
  21084. */
  21085. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  21086. {
  21087. /** @var \Illuminate\Database\Query\Builder $instance */
  21088. return $instance->havingBetween($column, $values, $boolean, $not);
  21089. }
  21090. /**
  21091. * Add a raw having clause to the query.
  21092. *
  21093. * @param string $sql
  21094. * @param array $bindings
  21095. * @param string $boolean
  21096. * @return \Illuminate\Database\Query\Builder
  21097. * @static
  21098. */
  21099. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  21100. {
  21101. /** @var \Illuminate\Database\Query\Builder $instance */
  21102. return $instance->havingRaw($sql, $bindings, $boolean);
  21103. }
  21104. /**
  21105. * Add a raw or having clause to the query.
  21106. *
  21107. * @param string $sql
  21108. * @param array $bindings
  21109. * @return \Illuminate\Database\Query\Builder
  21110. * @static
  21111. */
  21112. public static function orHavingRaw($sql, $bindings = [])
  21113. {
  21114. /** @var \Illuminate\Database\Query\Builder $instance */
  21115. return $instance->orHavingRaw($sql, $bindings);
  21116. }
  21117. /**
  21118. * Add an "order by" clause to the query.
  21119. *
  21120. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Expression|string $column
  21121. * @param string $direction
  21122. * @return \Illuminate\Database\Query\Builder
  21123. * @throws \InvalidArgumentException
  21124. * @static
  21125. */
  21126. public static function orderBy($column, $direction = 'asc')
  21127. {
  21128. /** @var \Illuminate\Database\Query\Builder $instance */
  21129. return $instance->orderBy($column, $direction);
  21130. }
  21131. /**
  21132. * Add a descending "order by" clause to the query.
  21133. *
  21134. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Expression|string $column
  21135. * @return \Illuminate\Database\Query\Builder
  21136. * @static
  21137. */
  21138. public static function orderByDesc($column)
  21139. {
  21140. /** @var \Illuminate\Database\Query\Builder $instance */
  21141. return $instance->orderByDesc($column);
  21142. }
  21143. /**
  21144. * Put the query's results in random order.
  21145. *
  21146. * @param string $seed
  21147. * @return \Illuminate\Database\Query\Builder
  21148. * @static
  21149. */
  21150. public static function inRandomOrder($seed = '')
  21151. {
  21152. /** @var \Illuminate\Database\Query\Builder $instance */
  21153. return $instance->inRandomOrder($seed);
  21154. }
  21155. /**
  21156. * Add a raw "order by" clause to the query.
  21157. *
  21158. * @param string $sql
  21159. * @param array $bindings
  21160. * @return \Illuminate\Database\Query\Builder
  21161. * @static
  21162. */
  21163. public static function orderByRaw($sql, $bindings = [])
  21164. {
  21165. /** @var \Illuminate\Database\Query\Builder $instance */
  21166. return $instance->orderByRaw($sql, $bindings);
  21167. }
  21168. /**
  21169. * Alias to set the "offset" value of the query.
  21170. *
  21171. * @param int $value
  21172. * @return \Illuminate\Database\Query\Builder
  21173. * @static
  21174. */
  21175. public static function skip($value)
  21176. {
  21177. /** @var \Illuminate\Database\Query\Builder $instance */
  21178. return $instance->skip($value);
  21179. }
  21180. /**
  21181. * Set the "offset" value of the query.
  21182. *
  21183. * @param int $value
  21184. * @return \Illuminate\Database\Query\Builder
  21185. * @static
  21186. */
  21187. public static function offset($value)
  21188. {
  21189. /** @var \Illuminate\Database\Query\Builder $instance */
  21190. return $instance->offset($value);
  21191. }
  21192. /**
  21193. * Alias to set the "limit" value of the query.
  21194. *
  21195. * @param int $value
  21196. * @return \Illuminate\Database\Query\Builder
  21197. * @static
  21198. */
  21199. public static function take($value)
  21200. {
  21201. /** @var \Illuminate\Database\Query\Builder $instance */
  21202. return $instance->take($value);
  21203. }
  21204. /**
  21205. * Set the "limit" value of the query.
  21206. *
  21207. * @param int $value
  21208. * @return \Illuminate\Database\Query\Builder
  21209. * @static
  21210. */
  21211. public static function limit($value)
  21212. {
  21213. /** @var \Illuminate\Database\Query\Builder $instance */
  21214. return $instance->limit($value);
  21215. }
  21216. /**
  21217. * Set the limit and offset for a given page.
  21218. *
  21219. * @param int $page
  21220. * @param int $perPage
  21221. * @return \Illuminate\Database\Query\Builder
  21222. * @static
  21223. */
  21224. public static function forPage($page, $perPage = 15)
  21225. {
  21226. /** @var \Illuminate\Database\Query\Builder $instance */
  21227. return $instance->forPage($page, $perPage);
  21228. }
  21229. /**
  21230. * Constrain the query to the previous "page" of results before a given ID.
  21231. *
  21232. * @param int $perPage
  21233. * @param int|null $lastId
  21234. * @param string $column
  21235. * @return \Illuminate\Database\Query\Builder
  21236. * @static
  21237. */
  21238. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  21239. {
  21240. /** @var \Illuminate\Database\Query\Builder $instance */
  21241. return $instance->forPageBeforeId($perPage, $lastId, $column);
  21242. }
  21243. /**
  21244. * Constrain the query to the next "page" of results after a given ID.
  21245. *
  21246. * @param int $perPage
  21247. * @param int|null $lastId
  21248. * @param string $column
  21249. * @return \Illuminate\Database\Query\Builder
  21250. * @static
  21251. */
  21252. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  21253. {
  21254. /** @var \Illuminate\Database\Query\Builder $instance */
  21255. return $instance->forPageAfterId($perPage, $lastId, $column);
  21256. }
  21257. /**
  21258. * Remove all existing orders and optionally add a new order.
  21259. *
  21260. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
  21261. * @param string $direction
  21262. * @return \Illuminate\Database\Query\Builder
  21263. * @static
  21264. */
  21265. public static function reorder($column = null, $direction = 'asc')
  21266. {
  21267. /** @var \Illuminate\Database\Query\Builder $instance */
  21268. return $instance->reorder($column, $direction);
  21269. }
  21270. /**
  21271. * Add a union statement to the query.
  21272. *
  21273. * @param \Illuminate\Database\Query\Builder|\Closure $query
  21274. * @param bool $all
  21275. * @return \Illuminate\Database\Query\Builder
  21276. * @static
  21277. */
  21278. public static function union($query, $all = false)
  21279. {
  21280. /** @var \Illuminate\Database\Query\Builder $instance */
  21281. return $instance->union($query, $all);
  21282. }
  21283. /**
  21284. * Add a union all statement to the query.
  21285. *
  21286. * @param \Illuminate\Database\Query\Builder|\Closure $query
  21287. * @return \Illuminate\Database\Query\Builder
  21288. * @static
  21289. */
  21290. public static function unionAll($query)
  21291. {
  21292. /** @var \Illuminate\Database\Query\Builder $instance */
  21293. return $instance->unionAll($query);
  21294. }
  21295. /**
  21296. * Lock the selected rows in the table.
  21297. *
  21298. * @param string|bool $value
  21299. * @return \Illuminate\Database\Query\Builder
  21300. * @static
  21301. */
  21302. public static function lock($value = true)
  21303. {
  21304. /** @var \Illuminate\Database\Query\Builder $instance */
  21305. return $instance->lock($value);
  21306. }
  21307. /**
  21308. * Lock the selected rows in the table for updating.
  21309. *
  21310. * @return \Illuminate\Database\Query\Builder
  21311. * @static
  21312. */
  21313. public static function lockForUpdate()
  21314. {
  21315. /** @var \Illuminate\Database\Query\Builder $instance */
  21316. return $instance->lockForUpdate();
  21317. }
  21318. /**
  21319. * Share lock the selected rows in the table.
  21320. *
  21321. * @return \Illuminate\Database\Query\Builder
  21322. * @static
  21323. */
  21324. public static function sharedLock()
  21325. {
  21326. /** @var \Illuminate\Database\Query\Builder $instance */
  21327. return $instance->sharedLock();
  21328. }
  21329. /**
  21330. * Register a closure to be invoked before the query is executed.
  21331. *
  21332. * @param callable $callback
  21333. * @return \Illuminate\Database\Query\Builder
  21334. * @static
  21335. */
  21336. public static function beforeQuery($callback)
  21337. {
  21338. /** @var \Illuminate\Database\Query\Builder $instance */
  21339. return $instance->beforeQuery($callback);
  21340. }
  21341. /**
  21342. * Invoke the "before query" modification callbacks.
  21343. *
  21344. * @return void
  21345. * @static
  21346. */
  21347. public static function applyBeforeQueryCallbacks()
  21348. {
  21349. /** @var \Illuminate\Database\Query\Builder $instance */
  21350. $instance->applyBeforeQueryCallbacks();
  21351. }
  21352. /**
  21353. * Get the SQL representation of the query.
  21354. *
  21355. * @return string
  21356. * @static
  21357. */
  21358. public static function toSql()
  21359. {
  21360. /** @var \Illuminate\Database\Query\Builder $instance */
  21361. return $instance->toSql();
  21362. }
  21363. /**
  21364. * Get the count of the total records for the paginator.
  21365. *
  21366. * @param array $columns
  21367. * @return int
  21368. * @static
  21369. */
  21370. public static function getCountForPagination($columns = [])
  21371. {
  21372. /** @var \Illuminate\Database\Query\Builder $instance */
  21373. return $instance->getCountForPagination($columns);
  21374. }
  21375. /**
  21376. * Concatenate values of a given column as a string.
  21377. *
  21378. * @param string $column
  21379. * @param string $glue
  21380. * @return string
  21381. * @static
  21382. */
  21383. public static function implode($column, $glue = '')
  21384. {
  21385. /** @var \Illuminate\Database\Query\Builder $instance */
  21386. return $instance->implode($column, $glue);
  21387. }
  21388. /**
  21389. * Determine if any rows exist for the current query.
  21390. *
  21391. * @return bool
  21392. * @static
  21393. */
  21394. public static function exists()
  21395. {
  21396. /** @var \Illuminate\Database\Query\Builder $instance */
  21397. return $instance->exists();
  21398. }
  21399. /**
  21400. * Determine if no rows exist for the current query.
  21401. *
  21402. * @return bool
  21403. * @static
  21404. */
  21405. public static function doesntExist()
  21406. {
  21407. /** @var \Illuminate\Database\Query\Builder $instance */
  21408. return $instance->doesntExist();
  21409. }
  21410. /**
  21411. * Execute the given callback if no rows exist for the current query.
  21412. *
  21413. * @param \Closure $callback
  21414. * @return mixed
  21415. * @static
  21416. */
  21417. public static function existsOr($callback)
  21418. {
  21419. /** @var \Illuminate\Database\Query\Builder $instance */
  21420. return $instance->existsOr($callback);
  21421. }
  21422. /**
  21423. * Execute the given callback if rows exist for the current query.
  21424. *
  21425. * @param \Closure $callback
  21426. * @return mixed
  21427. * @static
  21428. */
  21429. public static function doesntExistOr($callback)
  21430. {
  21431. /** @var \Illuminate\Database\Query\Builder $instance */
  21432. return $instance->doesntExistOr($callback);
  21433. }
  21434. /**
  21435. * Retrieve the "count" result of the query.
  21436. *
  21437. * @param string $columns
  21438. * @return int
  21439. * @static
  21440. */
  21441. public static function count($columns = '*')
  21442. {
  21443. /** @var \Illuminate\Database\Query\Builder $instance */
  21444. return $instance->count($columns);
  21445. }
  21446. /**
  21447. * Retrieve the minimum value of a given column.
  21448. *
  21449. * @param string $column
  21450. * @return mixed
  21451. * @static
  21452. */
  21453. public static function min($column)
  21454. {
  21455. /** @var \Illuminate\Database\Query\Builder $instance */
  21456. return $instance->min($column);
  21457. }
  21458. /**
  21459. * Retrieve the maximum value of a given column.
  21460. *
  21461. * @param string $column
  21462. * @return mixed
  21463. * @static
  21464. */
  21465. public static function max($column)
  21466. {
  21467. /** @var \Illuminate\Database\Query\Builder $instance */
  21468. return $instance->max($column);
  21469. }
  21470. /**
  21471. * Retrieve the sum of the values of a given column.
  21472. *
  21473. * @param string $column
  21474. * @return mixed
  21475. * @static
  21476. */
  21477. public static function sum($column)
  21478. {
  21479. /** @var \Illuminate\Database\Query\Builder $instance */
  21480. return $instance->sum($column);
  21481. }
  21482. /**
  21483. * Retrieve the average of the values of a given column.
  21484. *
  21485. * @param string $column
  21486. * @return mixed
  21487. * @static
  21488. */
  21489. public static function avg($column)
  21490. {
  21491. /** @var \Illuminate\Database\Query\Builder $instance */
  21492. return $instance->avg($column);
  21493. }
  21494. /**
  21495. * Alias for the "avg" method.
  21496. *
  21497. * @param string $column
  21498. * @return mixed
  21499. * @static
  21500. */
  21501. public static function average($column)
  21502. {
  21503. /** @var \Illuminate\Database\Query\Builder $instance */
  21504. return $instance->average($column);
  21505. }
  21506. /**
  21507. * Execute an aggregate function on the database.
  21508. *
  21509. * @param string $function
  21510. * @param array $columns
  21511. * @return mixed
  21512. * @static
  21513. */
  21514. public static function aggregate($function, $columns = [])
  21515. {
  21516. /** @var \Illuminate\Database\Query\Builder $instance */
  21517. return $instance->aggregate($function, $columns);
  21518. }
  21519. /**
  21520. * Execute a numeric aggregate function on the database.
  21521. *
  21522. * @param string $function
  21523. * @param array $columns
  21524. * @return float|int
  21525. * @static
  21526. */
  21527. public static function numericAggregate($function, $columns = [])
  21528. {
  21529. /** @var \Illuminate\Database\Query\Builder $instance */
  21530. return $instance->numericAggregate($function, $columns);
  21531. }
  21532. /**
  21533. * Insert new records into the database.
  21534. *
  21535. * @param array $values
  21536. * @return bool
  21537. * @static
  21538. */
  21539. public static function insert($values)
  21540. {
  21541. /** @var \Illuminate\Database\Query\Builder $instance */
  21542. return $instance->insert($values);
  21543. }
  21544. /**
  21545. * Insert new records into the database while ignoring errors.
  21546. *
  21547. * @param array $values
  21548. * @return int
  21549. * @static
  21550. */
  21551. public static function insertOrIgnore($values)
  21552. {
  21553. /** @var \Illuminate\Database\Query\Builder $instance */
  21554. return $instance->insertOrIgnore($values);
  21555. }
  21556. /**
  21557. * Insert a new record and get the value of the primary key.
  21558. *
  21559. * @param array $values
  21560. * @param string|null $sequence
  21561. * @return int
  21562. * @static
  21563. */
  21564. public static function insertGetId($values, $sequence = null)
  21565. {
  21566. /** @var \Illuminate\Database\Query\Builder $instance */
  21567. return $instance->insertGetId($values, $sequence);
  21568. }
  21569. /**
  21570. * Insert new records into the table using a subquery.
  21571. *
  21572. * @param array $columns
  21573. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  21574. * @return int
  21575. * @static
  21576. */
  21577. public static function insertUsing($columns, $query)
  21578. {
  21579. /** @var \Illuminate\Database\Query\Builder $instance */
  21580. return $instance->insertUsing($columns, $query);
  21581. }
  21582. /**
  21583. * Update records in a PostgreSQL database using the update from syntax.
  21584. *
  21585. * @param array $values
  21586. * @return int
  21587. * @static
  21588. */
  21589. public static function updateFrom($values)
  21590. {
  21591. /** @var \Illuminate\Database\Query\Builder $instance */
  21592. return $instance->updateFrom($values);
  21593. }
  21594. /**
  21595. * Insert or update a record matching the attributes, and fill it with values.
  21596. *
  21597. * @param array $attributes
  21598. * @param array $values
  21599. * @return bool
  21600. * @static
  21601. */
  21602. public static function updateOrInsert($attributes, $values = [])
  21603. {
  21604. /** @var \Illuminate\Database\Query\Builder $instance */
  21605. return $instance->updateOrInsert($attributes, $values);
  21606. }
  21607. /**
  21608. * Run a truncate statement on the table.
  21609. *
  21610. * @return void
  21611. * @static
  21612. */
  21613. public static function truncate()
  21614. {
  21615. /** @var \Illuminate\Database\Query\Builder $instance */
  21616. $instance->truncate();
  21617. }
  21618. /**
  21619. * Create a raw database expression.
  21620. *
  21621. * @param mixed $value
  21622. * @return \Illuminate\Database\Query\Expression
  21623. * @static
  21624. */
  21625. public static function raw($value)
  21626. {
  21627. /** @var \Illuminate\Database\Query\Builder $instance */
  21628. return $instance->raw($value);
  21629. }
  21630. /**
  21631. * Get the current query value bindings in a flattened array.
  21632. *
  21633. * @return array
  21634. * @static
  21635. */
  21636. public static function getBindings()
  21637. {
  21638. /** @var \Illuminate\Database\Query\Builder $instance */
  21639. return $instance->getBindings();
  21640. }
  21641. /**
  21642. * Get the raw array of bindings.
  21643. *
  21644. * @return array
  21645. * @static
  21646. */
  21647. public static function getRawBindings()
  21648. {
  21649. /** @var \Illuminate\Database\Query\Builder $instance */
  21650. return $instance->getRawBindings();
  21651. }
  21652. /**
  21653. * Set the bindings on the query builder.
  21654. *
  21655. * @param array $bindings
  21656. * @param string $type
  21657. * @return \Illuminate\Database\Query\Builder
  21658. * @throws \InvalidArgumentException
  21659. * @static
  21660. */
  21661. public static function setBindings($bindings, $type = 'where')
  21662. {
  21663. /** @var \Illuminate\Database\Query\Builder $instance */
  21664. return $instance->setBindings($bindings, $type);
  21665. }
  21666. /**
  21667. * Add a binding to the query.
  21668. *
  21669. * @param mixed $value
  21670. * @param string $type
  21671. * @return \Illuminate\Database\Query\Builder
  21672. * @throws \InvalidArgumentException
  21673. * @static
  21674. */
  21675. public static function addBinding($value, $type = 'where')
  21676. {
  21677. /** @var \Illuminate\Database\Query\Builder $instance */
  21678. return $instance->addBinding($value, $type);
  21679. }
  21680. /**
  21681. * Cast the given binding value.
  21682. *
  21683. * @param mixed $value
  21684. * @return mixed
  21685. * @static
  21686. */
  21687. public static function castBinding($value)
  21688. {
  21689. /** @var \Illuminate\Database\Query\Builder $instance */
  21690. return $instance->castBinding($value);
  21691. }
  21692. /**
  21693. * Merge an array of bindings into our bindings.
  21694. *
  21695. * @param \Illuminate\Database\Query\Builder $query
  21696. * @return \Illuminate\Database\Query\Builder
  21697. * @static
  21698. */
  21699. public static function mergeBindings($query)
  21700. {
  21701. /** @var \Illuminate\Database\Query\Builder $instance */
  21702. return $instance->mergeBindings($query);
  21703. }
  21704. /**
  21705. * Remove all of the expressions from a list of bindings.
  21706. *
  21707. * @param array $bindings
  21708. * @return array
  21709. * @static
  21710. */
  21711. public static function cleanBindings($bindings)
  21712. {
  21713. /** @var \Illuminate\Database\Query\Builder $instance */
  21714. return $instance->cleanBindings($bindings);
  21715. }
  21716. /**
  21717. * Get the database query processor instance.
  21718. *
  21719. * @return \Illuminate\Database\Query\Processors\Processor
  21720. * @static
  21721. */
  21722. public static function getProcessor()
  21723. {
  21724. /** @var \Illuminate\Database\Query\Builder $instance */
  21725. return $instance->getProcessor();
  21726. }
  21727. /**
  21728. * Get the query grammar instance.
  21729. *
  21730. * @return \Illuminate\Database\Query\Grammars\Grammar
  21731. * @static
  21732. */
  21733. public static function getGrammar()
  21734. {
  21735. /** @var \Illuminate\Database\Query\Builder $instance */
  21736. return $instance->getGrammar();
  21737. }
  21738. /**
  21739. * Use the "write" PDO connection when executing the query.
  21740. *
  21741. * @return \Illuminate\Database\Query\Builder
  21742. * @static
  21743. */
  21744. public static function useWritePdo()
  21745. {
  21746. /** @var \Illuminate\Database\Query\Builder $instance */
  21747. return $instance->useWritePdo();
  21748. }
  21749. /**
  21750. * Clone the query without the given properties.
  21751. *
  21752. * @param array $properties
  21753. * @return static
  21754. * @static
  21755. */
  21756. public static function cloneWithout($properties)
  21757. {
  21758. /** @var \Illuminate\Database\Query\Builder $instance */
  21759. return $instance->cloneWithout($properties);
  21760. }
  21761. /**
  21762. * Clone the query without the given bindings.
  21763. *
  21764. * @param array $except
  21765. * @return static
  21766. * @static
  21767. */
  21768. public static function cloneWithoutBindings($except)
  21769. {
  21770. /** @var \Illuminate\Database\Query\Builder $instance */
  21771. return $instance->cloneWithoutBindings($except);
  21772. }
  21773. /**
  21774. * Dump the current SQL and bindings.
  21775. *
  21776. * @return \Illuminate\Database\Query\Builder
  21777. * @static
  21778. */
  21779. public static function dump()
  21780. {
  21781. /** @var \Illuminate\Database\Query\Builder $instance */
  21782. return $instance->dump();
  21783. }
  21784. /**
  21785. * Die and dump the current SQL and bindings.
  21786. *
  21787. * @return \Illuminate\Database\Query\never
  21788. * @static
  21789. */
  21790. public static function dd()
  21791. {
  21792. /** @var \Illuminate\Database\Query\Builder $instance */
  21793. return $instance->dd();
  21794. }
  21795. /**
  21796. * Explains the query.
  21797. *
  21798. * @return \Illuminate\Support\Collection
  21799. * @static
  21800. */
  21801. public static function explain()
  21802. {
  21803. /** @var \Illuminate\Database\Query\Builder $instance */
  21804. return $instance->explain();
  21805. }
  21806. /**
  21807. * Register a custom macro.
  21808. *
  21809. * @param string $name
  21810. * @param object|callable $macro
  21811. * @return void
  21812. * @static
  21813. */
  21814. public static function macro($name, $macro)
  21815. {
  21816. \Illuminate\Database\Query\Builder::macro($name, $macro);
  21817. }
  21818. /**
  21819. * Mix another object into the class.
  21820. *
  21821. * @param object $mixin
  21822. * @param bool $replace
  21823. * @return void
  21824. * @throws \ReflectionException
  21825. * @static
  21826. */
  21827. public static function mixin($mixin, $replace = true)
  21828. {
  21829. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  21830. }
  21831. /**
  21832. * Flush the existing macros.
  21833. *
  21834. * @return void
  21835. * @static
  21836. */
  21837. public static function flushMacros()
  21838. {
  21839. \Illuminate\Database\Query\Builder::flushMacros();
  21840. }
  21841. /**
  21842. * Dynamically handle calls to the class.
  21843. *
  21844. * @param string $method
  21845. * @param array $parameters
  21846. * @return mixed
  21847. * @throws \BadMethodCallException
  21848. * @static
  21849. */
  21850. public static function macroCall($method, $parameters)
  21851. {
  21852. /** @var \Illuminate\Database\Query\Builder $instance */
  21853. return $instance->macroCall($method, $parameters);
  21854. }
  21855. }
  21856. class Event extends \Illuminate\Support\Facades\Event {}
  21857. class File extends \Illuminate\Support\Facades\File {}
  21858. class Gate extends \Illuminate\Support\Facades\Gate {}
  21859. class Hash extends \Illuminate\Support\Facades\Hash {}
  21860. class Http extends \Illuminate\Support\Facades\Http {}
  21861. class Js extends \Illuminate\Support\Js {}
  21862. class Lang extends \Illuminate\Support\Facades\Lang {}
  21863. class Log extends \Illuminate\Support\Facades\Log {}
  21864. class Mail extends \Illuminate\Support\Facades\Mail {}
  21865. class Notification extends \Illuminate\Support\Facades\Notification {}
  21866. class Password extends \Illuminate\Support\Facades\Password {}
  21867. class Queue extends \Illuminate\Support\Facades\Queue {}
  21868. class RateLimiter extends \Illuminate\Support\Facades\RateLimiter {}
  21869. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  21870. class Request extends \Illuminate\Support\Facades\Request {}
  21871. class Response extends \Illuminate\Support\Facades\Response {}
  21872. class Route extends \Illuminate\Support\Facades\Route {}
  21873. class Schema extends \Illuminate\Support\Facades\Schema {}
  21874. class Session extends \Illuminate\Support\Facades\Session {}
  21875. class Storage extends \Illuminate\Support\Facades\Storage {}
  21876. class Str extends \Illuminate\Support\Str {}
  21877. class URL extends \Illuminate\Support\Facades\URL {}
  21878. class Validator extends \Illuminate\Support\Facades\Validator {}
  21879. class View extends \Illuminate\Support\Facades\View {}
  21880. class Socialite extends \Laravel\Socialite\Facades\Socialite {}
  21881. class Markdown extends \GrahamCampbell\Markdown\Facades\Markdown {}
  21882. class Breadcrumbs extends \DaveJamesMiller\Breadcrumbs\Facades\Breadcrumbs {}
  21883. class Image extends \Intervention\Image\Facades\Image {}
  21884. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  21885. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  21886. class Sentry extends \Sentry\Laravel\Facade {}
  21887. class Flare extends \Spatie\LaravelIgnition\Facades\Flare {}
  21888. }