_ide_helper.php 709 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705
  1. <?php
  2. // @formatter:off
  3. // phpcs:ignoreFile
  4. /**
  5. * A helper file for Laravel, to provide autocomplete information to your IDE
  6. * Generated for Laravel 8.83.29.
  7. *
  8. * This file should not be included in your code, only analyzed by your IDE!
  9. *
  10. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  11. * @see https://github.com/barryvdh/laravel-ide-helper
  12. */
  13. namespace Illuminate\Support\Facades {
  14. /**
  15. *
  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. * @return string
  192. * @static
  193. */
  194. public static function langPath()
  195. {
  196. /** @var \Illuminate\Foundation\Application $instance */
  197. return $instance->langPath();
  198. }
  199. /**
  200. * Set the language file directory.
  201. *
  202. * @param string $path
  203. * @return \Illuminate\Foundation\Application
  204. * @static
  205. */
  206. public static function useLangPath($path)
  207. {
  208. /** @var \Illuminate\Foundation\Application $instance */
  209. return $instance->useLangPath($path);
  210. }
  211. /**
  212. * Get the path to the public / web directory.
  213. *
  214. * @return string
  215. * @static
  216. */
  217. public static function publicPath()
  218. {
  219. /** @var \Illuminate\Foundation\Application $instance */
  220. return $instance->publicPath();
  221. }
  222. /**
  223. * Get the path to the storage directory.
  224. *
  225. * @return string
  226. * @static
  227. */
  228. public static function storagePath()
  229. {
  230. /** @var \Illuminate\Foundation\Application $instance */
  231. return $instance->storagePath();
  232. }
  233. /**
  234. * Set the storage directory.
  235. *
  236. * @param string $path
  237. * @return \Illuminate\Foundation\Application
  238. * @static
  239. */
  240. public static function useStoragePath($path)
  241. {
  242. /** @var \Illuminate\Foundation\Application $instance */
  243. return $instance->useStoragePath($path);
  244. }
  245. /**
  246. * Get the path to the resources directory.
  247. *
  248. * @param string $path
  249. * @return string
  250. * @static
  251. */
  252. public static function resourcePath($path = '')
  253. {
  254. /** @var \Illuminate\Foundation\Application $instance */
  255. return $instance->resourcePath($path);
  256. }
  257. /**
  258. * Get the path to the views directory.
  259. *
  260. * This method returns the first configured path in the array of view paths.
  261. *
  262. * @param string $path
  263. * @return string
  264. * @static
  265. */
  266. public static function viewPath($path = '')
  267. {
  268. /** @var \Illuminate\Foundation\Application $instance */
  269. return $instance->viewPath($path);
  270. }
  271. /**
  272. * Get the path to the environment file directory.
  273. *
  274. * @return string
  275. * @static
  276. */
  277. public static function environmentPath()
  278. {
  279. /** @var \Illuminate\Foundation\Application $instance */
  280. return $instance->environmentPath();
  281. }
  282. /**
  283. * Set the directory for the environment file.
  284. *
  285. * @param string $path
  286. * @return \Illuminate\Foundation\Application
  287. * @static
  288. */
  289. public static function useEnvironmentPath($path)
  290. {
  291. /** @var \Illuminate\Foundation\Application $instance */
  292. return $instance->useEnvironmentPath($path);
  293. }
  294. /**
  295. * Set the environment file to be loaded during bootstrapping.
  296. *
  297. * @param string $file
  298. * @return \Illuminate\Foundation\Application
  299. * @static
  300. */
  301. public static function loadEnvironmentFrom($file)
  302. {
  303. /** @var \Illuminate\Foundation\Application $instance */
  304. return $instance->loadEnvironmentFrom($file);
  305. }
  306. /**
  307. * Get the environment file the application is using.
  308. *
  309. * @return string
  310. * @static
  311. */
  312. public static function environmentFile()
  313. {
  314. /** @var \Illuminate\Foundation\Application $instance */
  315. return $instance->environmentFile();
  316. }
  317. /**
  318. * Get the fully qualified path to the environment file.
  319. *
  320. * @return string
  321. * @static
  322. */
  323. public static function environmentFilePath()
  324. {
  325. /** @var \Illuminate\Foundation\Application $instance */
  326. return $instance->environmentFilePath();
  327. }
  328. /**
  329. * Get or check the current application environment.
  330. *
  331. * @param string|array $environments
  332. * @return string|bool
  333. * @static
  334. */
  335. public static function environment(...$environments)
  336. {
  337. /** @var \Illuminate\Foundation\Application $instance */
  338. return $instance->environment(...$environments);
  339. }
  340. /**
  341. * Determine if the application is in the local environment.
  342. *
  343. * @return bool
  344. * @static
  345. */
  346. public static function isLocal()
  347. {
  348. /** @var \Illuminate\Foundation\Application $instance */
  349. return $instance->isLocal();
  350. }
  351. /**
  352. * Determine if the application is in the production environment.
  353. *
  354. * @return bool
  355. * @static
  356. */
  357. public static function isProduction()
  358. {
  359. /** @var \Illuminate\Foundation\Application $instance */
  360. return $instance->isProduction();
  361. }
  362. /**
  363. * Detect the application's current environment.
  364. *
  365. * @param \Closure $callback
  366. * @return string
  367. * @static
  368. */
  369. public static function detectEnvironment($callback)
  370. {
  371. /** @var \Illuminate\Foundation\Application $instance */
  372. return $instance->detectEnvironment($callback);
  373. }
  374. /**
  375. * Determine if the application is running in the console.
  376. *
  377. * @return bool
  378. * @static
  379. */
  380. public static function runningInConsole()
  381. {
  382. /** @var \Illuminate\Foundation\Application $instance */
  383. return $instance->runningInConsole();
  384. }
  385. /**
  386. * Determine if the application is running unit tests.
  387. *
  388. * @return bool
  389. * @static
  390. */
  391. public static function runningUnitTests()
  392. {
  393. /** @var \Illuminate\Foundation\Application $instance */
  394. return $instance->runningUnitTests();
  395. }
  396. /**
  397. * Determine if the application is running with debug mode enabled.
  398. *
  399. * @return bool
  400. * @static
  401. */
  402. public static function hasDebugModeEnabled()
  403. {
  404. /** @var \Illuminate\Foundation\Application $instance */
  405. return $instance->hasDebugModeEnabled();
  406. }
  407. /**
  408. * Register all of the configured providers.
  409. *
  410. * @return void
  411. * @static
  412. */
  413. public static function registerConfiguredProviders()
  414. {
  415. /** @var \Illuminate\Foundation\Application $instance */
  416. $instance->registerConfiguredProviders();
  417. }
  418. /**
  419. * Register a service provider with the application.
  420. *
  421. * @param \Illuminate\Support\ServiceProvider|string $provider
  422. * @param bool $force
  423. * @return \Illuminate\Support\ServiceProvider
  424. * @static
  425. */
  426. public static function register($provider, $force = false)
  427. {
  428. /** @var \Illuminate\Foundation\Application $instance */
  429. return $instance->register($provider, $force);
  430. }
  431. /**
  432. * Get the registered service provider instance if it exists.
  433. *
  434. * @param \Illuminate\Support\ServiceProvider|string $provider
  435. * @return \Illuminate\Support\ServiceProvider|null
  436. * @static
  437. */
  438. public static function getProvider($provider)
  439. {
  440. /** @var \Illuminate\Foundation\Application $instance */
  441. return $instance->getProvider($provider);
  442. }
  443. /**
  444. * Get the registered service provider instances if any exist.
  445. *
  446. * @param \Illuminate\Support\ServiceProvider|string $provider
  447. * @return array
  448. * @static
  449. */
  450. public static function getProviders($provider)
  451. {
  452. /** @var \Illuminate\Foundation\Application $instance */
  453. return $instance->getProviders($provider);
  454. }
  455. /**
  456. * Resolve a service provider instance from the class name.
  457. *
  458. * @param string $provider
  459. * @return \Illuminate\Support\ServiceProvider
  460. * @static
  461. */
  462. public static function resolveProvider($provider)
  463. {
  464. /** @var \Illuminate\Foundation\Application $instance */
  465. return $instance->resolveProvider($provider);
  466. }
  467. /**
  468. * Load and boot all of the remaining deferred providers.
  469. *
  470. * @return void
  471. * @static
  472. */
  473. public static function loadDeferredProviders()
  474. {
  475. /** @var \Illuminate\Foundation\Application $instance */
  476. $instance->loadDeferredProviders();
  477. }
  478. /**
  479. * Load the provider for a deferred service.
  480. *
  481. * @param string $service
  482. * @return void
  483. * @static
  484. */
  485. public static function loadDeferredProvider($service)
  486. {
  487. /** @var \Illuminate\Foundation\Application $instance */
  488. $instance->loadDeferredProvider($service);
  489. }
  490. /**
  491. * Register a deferred provider and service.
  492. *
  493. * @param string $provider
  494. * @param string|null $service
  495. * @return void
  496. * @static
  497. */
  498. public static function registerDeferredProvider($provider, $service = null)
  499. {
  500. /** @var \Illuminate\Foundation\Application $instance */
  501. $instance->registerDeferredProvider($provider, $service);
  502. }
  503. /**
  504. * Resolve the given type from the container.
  505. *
  506. * @param string $abstract
  507. * @param array $parameters
  508. * @return mixed
  509. * @static
  510. */
  511. public static function make($abstract, $parameters = [])
  512. {
  513. /** @var \Illuminate\Foundation\Application $instance */
  514. return $instance->make($abstract, $parameters);
  515. }
  516. /**
  517. * Determine if the given abstract type has been bound.
  518. *
  519. * @param string $abstract
  520. * @return bool
  521. * @static
  522. */
  523. public static function bound($abstract)
  524. {
  525. /** @var \Illuminate\Foundation\Application $instance */
  526. return $instance->bound($abstract);
  527. }
  528. /**
  529. * Determine if the application has booted.
  530. *
  531. * @return bool
  532. * @static
  533. */
  534. public static function isBooted()
  535. {
  536. /** @var \Illuminate\Foundation\Application $instance */
  537. return $instance->isBooted();
  538. }
  539. /**
  540. * Boot the application's service providers.
  541. *
  542. * @return void
  543. * @static
  544. */
  545. public static function boot()
  546. {
  547. /** @var \Illuminate\Foundation\Application $instance */
  548. $instance->boot();
  549. }
  550. /**
  551. * Register a new boot listener.
  552. *
  553. * @param callable $callback
  554. * @return void
  555. * @static
  556. */
  557. public static function booting($callback)
  558. {
  559. /** @var \Illuminate\Foundation\Application $instance */
  560. $instance->booting($callback);
  561. }
  562. /**
  563. * Register a new "booted" listener.
  564. *
  565. * @param callable $callback
  566. * @return void
  567. * @static
  568. */
  569. public static function booted($callback)
  570. {
  571. /** @var \Illuminate\Foundation\Application $instance */
  572. $instance->booted($callback);
  573. }
  574. /**
  575. * {@inheritdoc}
  576. *
  577. * @return \Symfony\Component\HttpFoundation\Response
  578. * @static
  579. */
  580. public static function handle($request, $type = 1, $catch = true)
  581. {
  582. /** @var \Illuminate\Foundation\Application $instance */
  583. return $instance->handle($request, $type, $catch);
  584. }
  585. /**
  586. * Determine if middleware has been disabled for the application.
  587. *
  588. * @return bool
  589. * @static
  590. */
  591. public static function shouldSkipMiddleware()
  592. {
  593. /** @var \Illuminate\Foundation\Application $instance */
  594. return $instance->shouldSkipMiddleware();
  595. }
  596. /**
  597. * Get the path to the cached services.php file.
  598. *
  599. * @return string
  600. * @static
  601. */
  602. public static function getCachedServicesPath()
  603. {
  604. /** @var \Illuminate\Foundation\Application $instance */
  605. return $instance->getCachedServicesPath();
  606. }
  607. /**
  608. * Get the path to the cached packages.php file.
  609. *
  610. * @return string
  611. * @static
  612. */
  613. public static function getCachedPackagesPath()
  614. {
  615. /** @var \Illuminate\Foundation\Application $instance */
  616. return $instance->getCachedPackagesPath();
  617. }
  618. /**
  619. * Determine if the application configuration is cached.
  620. *
  621. * @return bool
  622. * @static
  623. */
  624. public static function configurationIsCached()
  625. {
  626. /** @var \Illuminate\Foundation\Application $instance */
  627. return $instance->configurationIsCached();
  628. }
  629. /**
  630. * Get the path to the configuration cache file.
  631. *
  632. * @return string
  633. * @static
  634. */
  635. public static function getCachedConfigPath()
  636. {
  637. /** @var \Illuminate\Foundation\Application $instance */
  638. return $instance->getCachedConfigPath();
  639. }
  640. /**
  641. * Determine if the application routes are cached.
  642. *
  643. * @return bool
  644. * @static
  645. */
  646. public static function routesAreCached()
  647. {
  648. /** @var \Illuminate\Foundation\Application $instance */
  649. return $instance->routesAreCached();
  650. }
  651. /**
  652. * Get the path to the routes cache file.
  653. *
  654. * @return string
  655. * @static
  656. */
  657. public static function getCachedRoutesPath()
  658. {
  659. /** @var \Illuminate\Foundation\Application $instance */
  660. return $instance->getCachedRoutesPath();
  661. }
  662. /**
  663. * Determine if the application events are cached.
  664. *
  665. * @return bool
  666. * @static
  667. */
  668. public static function eventsAreCached()
  669. {
  670. /** @var \Illuminate\Foundation\Application $instance */
  671. return $instance->eventsAreCached();
  672. }
  673. /**
  674. * Get the path to the events cache file.
  675. *
  676. * @return string
  677. * @static
  678. */
  679. public static function getCachedEventsPath()
  680. {
  681. /** @var \Illuminate\Foundation\Application $instance */
  682. return $instance->getCachedEventsPath();
  683. }
  684. /**
  685. * Add new prefix to list of absolute path prefixes.
  686. *
  687. * @param string $prefix
  688. * @return \Illuminate\Foundation\Application
  689. * @static
  690. */
  691. public static function addAbsoluteCachePathPrefix($prefix)
  692. {
  693. /** @var \Illuminate\Foundation\Application $instance */
  694. return $instance->addAbsoluteCachePathPrefix($prefix);
  695. }
  696. /**
  697. * Determine if the application is currently down for maintenance.
  698. *
  699. * @return bool
  700. * @static
  701. */
  702. public static function isDownForMaintenance()
  703. {
  704. /** @var \Illuminate\Foundation\Application $instance */
  705. return $instance->isDownForMaintenance();
  706. }
  707. /**
  708. * Throw an HttpException with the given data.
  709. *
  710. * @param int $code
  711. * @param string $message
  712. * @param array $headers
  713. * @return never
  714. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  715. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  716. * @static
  717. */
  718. public static function abort($code, $message = '', $headers = [])
  719. {
  720. /** @var \Illuminate\Foundation\Application $instance */
  721. return $instance->abort($code, $message, $headers);
  722. }
  723. /**
  724. * Register a terminating callback with the application.
  725. *
  726. * @param callable|string $callback
  727. * @return \Illuminate\Foundation\Application
  728. * @static
  729. */
  730. public static function terminating($callback)
  731. {
  732. /** @var \Illuminate\Foundation\Application $instance */
  733. return $instance->terminating($callback);
  734. }
  735. /**
  736. * Terminate the application.
  737. *
  738. * @return void
  739. * @static
  740. */
  741. public static function terminate()
  742. {
  743. /** @var \Illuminate\Foundation\Application $instance */
  744. $instance->terminate();
  745. }
  746. /**
  747. * Get the service providers that have been loaded.
  748. *
  749. * @return array
  750. * @static
  751. */
  752. public static function getLoadedProviders()
  753. {
  754. /** @var \Illuminate\Foundation\Application $instance */
  755. return $instance->getLoadedProviders();
  756. }
  757. /**
  758. * Determine if the given service provider is loaded.
  759. *
  760. * @param string $provider
  761. * @return bool
  762. * @static
  763. */
  764. public static function providerIsLoaded($provider)
  765. {
  766. /** @var \Illuminate\Foundation\Application $instance */
  767. return $instance->providerIsLoaded($provider);
  768. }
  769. /**
  770. * Get the application's deferred services.
  771. *
  772. * @return array
  773. * @static
  774. */
  775. public static function getDeferredServices()
  776. {
  777. /** @var \Illuminate\Foundation\Application $instance */
  778. return $instance->getDeferredServices();
  779. }
  780. /**
  781. * Set the application's deferred services.
  782. *
  783. * @param array $services
  784. * @return void
  785. * @static
  786. */
  787. public static function setDeferredServices($services)
  788. {
  789. /** @var \Illuminate\Foundation\Application $instance */
  790. $instance->setDeferredServices($services);
  791. }
  792. /**
  793. * Add an array of services to the application's deferred services.
  794. *
  795. * @param array $services
  796. * @return void
  797. * @static
  798. */
  799. public static function addDeferredServices($services)
  800. {
  801. /** @var \Illuminate\Foundation\Application $instance */
  802. $instance->addDeferredServices($services);
  803. }
  804. /**
  805. * Determine if the given service is a deferred service.
  806. *
  807. * @param string $service
  808. * @return bool
  809. * @static
  810. */
  811. public static function isDeferredService($service)
  812. {
  813. /** @var \Illuminate\Foundation\Application $instance */
  814. return $instance->isDeferredService($service);
  815. }
  816. /**
  817. * Configure the real-time facade namespace.
  818. *
  819. * @param string $namespace
  820. * @return void
  821. * @static
  822. */
  823. public static function provideFacades($namespace)
  824. {
  825. /** @var \Illuminate\Foundation\Application $instance */
  826. $instance->provideFacades($namespace);
  827. }
  828. /**
  829. * Get the current application locale.
  830. *
  831. * @return string
  832. * @static
  833. */
  834. public static function getLocale()
  835. {
  836. /** @var \Illuminate\Foundation\Application $instance */
  837. return $instance->getLocale();
  838. }
  839. /**
  840. * Get the current application locale.
  841. *
  842. * @return string
  843. * @static
  844. */
  845. public static function currentLocale()
  846. {
  847. /** @var \Illuminate\Foundation\Application $instance */
  848. return $instance->currentLocale();
  849. }
  850. /**
  851. * Get the current application fallback locale.
  852. *
  853. * @return string
  854. * @static
  855. */
  856. public static function getFallbackLocale()
  857. {
  858. /** @var \Illuminate\Foundation\Application $instance */
  859. return $instance->getFallbackLocale();
  860. }
  861. /**
  862. * Set the current application locale.
  863. *
  864. * @param string $locale
  865. * @return void
  866. * @static
  867. */
  868. public static function setLocale($locale)
  869. {
  870. /** @var \Illuminate\Foundation\Application $instance */
  871. $instance->setLocale($locale);
  872. }
  873. /**
  874. * Set the current application fallback locale.
  875. *
  876. * @param string $fallbackLocale
  877. * @return void
  878. * @static
  879. */
  880. public static function setFallbackLocale($fallbackLocale)
  881. {
  882. /** @var \Illuminate\Foundation\Application $instance */
  883. $instance->setFallbackLocale($fallbackLocale);
  884. }
  885. /**
  886. * Determine if the application locale is the given locale.
  887. *
  888. * @param string $locale
  889. * @return bool
  890. * @static
  891. */
  892. public static function isLocale($locale)
  893. {
  894. /** @var \Illuminate\Foundation\Application $instance */
  895. return $instance->isLocale($locale);
  896. }
  897. /**
  898. * Register the core class aliases in the container.
  899. *
  900. * @return void
  901. * @static
  902. */
  903. public static function registerCoreContainerAliases()
  904. {
  905. /** @var \Illuminate\Foundation\Application $instance */
  906. $instance->registerCoreContainerAliases();
  907. }
  908. /**
  909. * Flush the container of all bindings and resolved instances.
  910. *
  911. * @return void
  912. * @static
  913. */
  914. public static function flush()
  915. {
  916. /** @var \Illuminate\Foundation\Application $instance */
  917. $instance->flush();
  918. }
  919. /**
  920. * Get the application namespace.
  921. *
  922. * @return string
  923. * @throws \RuntimeException
  924. * @static
  925. */
  926. public static function getNamespace()
  927. {
  928. /** @var \Illuminate\Foundation\Application $instance */
  929. return $instance->getNamespace();
  930. }
  931. /**
  932. * Define a contextual binding.
  933. *
  934. * @param array|string $concrete
  935. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  936. * @static
  937. */
  938. public static function when($concrete)
  939. { //Method inherited from \Illuminate\Container\Container
  940. /** @var \Illuminate\Foundation\Application $instance */
  941. return $instance->when($concrete);
  942. }
  943. /**
  944. * Returns true if the container can return an entry for the given identifier.
  945. *
  946. * Returns false otherwise.
  947. *
  948. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  949. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  950. *
  951. * @return bool
  952. * @param string $id Identifier of the entry to look for.
  953. * @return bool
  954. * @static
  955. */
  956. public static function has($id)
  957. { //Method inherited from \Illuminate\Container\Container
  958. /** @var \Illuminate\Foundation\Application $instance */
  959. return $instance->has($id);
  960. }
  961. /**
  962. * Determine if the given abstract type has been resolved.
  963. *
  964. * @param string $abstract
  965. * @return bool
  966. * @static
  967. */
  968. public static function resolved($abstract)
  969. { //Method inherited from \Illuminate\Container\Container
  970. /** @var \Illuminate\Foundation\Application $instance */
  971. return $instance->resolved($abstract);
  972. }
  973. /**
  974. * Determine if a given type is shared.
  975. *
  976. * @param string $abstract
  977. * @return bool
  978. * @static
  979. */
  980. public static function isShared($abstract)
  981. { //Method inherited from \Illuminate\Container\Container
  982. /** @var \Illuminate\Foundation\Application $instance */
  983. return $instance->isShared($abstract);
  984. }
  985. /**
  986. * Determine if a given string is an alias.
  987. *
  988. * @param string $name
  989. * @return bool
  990. * @static
  991. */
  992. public static function isAlias($name)
  993. { //Method inherited from \Illuminate\Container\Container
  994. /** @var \Illuminate\Foundation\Application $instance */
  995. return $instance->isAlias($name);
  996. }
  997. /**
  998. * Register a binding with the container.
  999. *
  1000. * @param string $abstract
  1001. * @param \Closure|string|null $concrete
  1002. * @param bool $shared
  1003. * @return void
  1004. * @throws \TypeError
  1005. * @static
  1006. */
  1007. public static function bind($abstract, $concrete = null, $shared = false)
  1008. { //Method inherited from \Illuminate\Container\Container
  1009. /** @var \Illuminate\Foundation\Application $instance */
  1010. $instance->bind($abstract, $concrete, $shared);
  1011. }
  1012. /**
  1013. * Determine if the container has a method binding.
  1014. *
  1015. * @param string $method
  1016. * @return bool
  1017. * @static
  1018. */
  1019. public static function hasMethodBinding($method)
  1020. { //Method inherited from \Illuminate\Container\Container
  1021. /** @var \Illuminate\Foundation\Application $instance */
  1022. return $instance->hasMethodBinding($method);
  1023. }
  1024. /**
  1025. * Bind a callback to resolve with Container::call.
  1026. *
  1027. * @param array|string $method
  1028. * @param \Closure $callback
  1029. * @return void
  1030. * @static
  1031. */
  1032. public static function bindMethod($method, $callback)
  1033. { //Method inherited from \Illuminate\Container\Container
  1034. /** @var \Illuminate\Foundation\Application $instance */
  1035. $instance->bindMethod($method, $callback);
  1036. }
  1037. /**
  1038. * Get the method binding for the given method.
  1039. *
  1040. * @param string $method
  1041. * @param mixed $instance
  1042. * @return mixed
  1043. * @static
  1044. */
  1045. public static function callMethodBinding($method, $instance)
  1046. { //Method inherited from \Illuminate\Container\Container
  1047. /** @var \Illuminate\Foundation\Application $instance */
  1048. return $instance->callMethodBinding($method, $instance);
  1049. }
  1050. /**
  1051. * Add a contextual binding to the container.
  1052. *
  1053. * @param string $concrete
  1054. * @param string $abstract
  1055. * @param \Closure|string $implementation
  1056. * @return void
  1057. * @static
  1058. */
  1059. public static function addContextualBinding($concrete, $abstract, $implementation)
  1060. { //Method inherited from \Illuminate\Container\Container
  1061. /** @var \Illuminate\Foundation\Application $instance */
  1062. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1063. }
  1064. /**
  1065. * Register a binding if it hasn't already been registered.
  1066. *
  1067. * @param string $abstract
  1068. * @param \Closure|string|null $concrete
  1069. * @param bool $shared
  1070. * @return void
  1071. * @static
  1072. */
  1073. public static function bindIf($abstract, $concrete = null, $shared = false)
  1074. { //Method inherited from \Illuminate\Container\Container
  1075. /** @var \Illuminate\Foundation\Application $instance */
  1076. $instance->bindIf($abstract, $concrete, $shared);
  1077. }
  1078. /**
  1079. * Register a shared binding in the container.
  1080. *
  1081. * @param string $abstract
  1082. * @param \Closure|string|null $concrete
  1083. * @return void
  1084. * @static
  1085. */
  1086. public static function singleton($abstract, $concrete = null)
  1087. { //Method inherited from \Illuminate\Container\Container
  1088. /** @var \Illuminate\Foundation\Application $instance */
  1089. $instance->singleton($abstract, $concrete);
  1090. }
  1091. /**
  1092. * Register a shared binding if it hasn't already been registered.
  1093. *
  1094. * @param string $abstract
  1095. * @param \Closure|string|null $concrete
  1096. * @return void
  1097. * @static
  1098. */
  1099. public static function singletonIf($abstract, $concrete = null)
  1100. { //Method inherited from \Illuminate\Container\Container
  1101. /** @var \Illuminate\Foundation\Application $instance */
  1102. $instance->singletonIf($abstract, $concrete);
  1103. }
  1104. /**
  1105. * Register a scoped binding in the container.
  1106. *
  1107. * @param string $abstract
  1108. * @param \Closure|string|null $concrete
  1109. * @return void
  1110. * @static
  1111. */
  1112. public static function scoped($abstract, $concrete = null)
  1113. { //Method inherited from \Illuminate\Container\Container
  1114. /** @var \Illuminate\Foundation\Application $instance */
  1115. $instance->scoped($abstract, $concrete);
  1116. }
  1117. /**
  1118. * Register a scoped binding if it hasn't already been registered.
  1119. *
  1120. * @param string $abstract
  1121. * @param \Closure|string|null $concrete
  1122. * @return void
  1123. * @static
  1124. */
  1125. public static function scopedIf($abstract, $concrete = null)
  1126. { //Method inherited from \Illuminate\Container\Container
  1127. /** @var \Illuminate\Foundation\Application $instance */
  1128. $instance->scopedIf($abstract, $concrete);
  1129. }
  1130. /**
  1131. * "Extend" an abstract type in the container.
  1132. *
  1133. * @param string $abstract
  1134. * @param \Closure $closure
  1135. * @return void
  1136. * @throws \InvalidArgumentException
  1137. * @static
  1138. */
  1139. public static function extend($abstract, $closure)
  1140. { //Method inherited from \Illuminate\Container\Container
  1141. /** @var \Illuminate\Foundation\Application $instance */
  1142. $instance->extend($abstract, $closure);
  1143. }
  1144. /**
  1145. * Register an existing instance as shared in the container.
  1146. *
  1147. * @param string $abstract
  1148. * @param mixed $instance
  1149. * @return mixed
  1150. * @static
  1151. */
  1152. public static function instance($abstract, $instance)
  1153. { //Method inherited from \Illuminate\Container\Container
  1154. /** @var \Illuminate\Foundation\Application $instance */
  1155. return $instance->instance($abstract, $instance);
  1156. }
  1157. /**
  1158. * Assign a set of tags to a given binding.
  1159. *
  1160. * @param array|string $abstracts
  1161. * @param array|mixed $tags
  1162. * @return void
  1163. * @static
  1164. */
  1165. public static function tag($abstracts, $tags)
  1166. { //Method inherited from \Illuminate\Container\Container
  1167. /** @var \Illuminate\Foundation\Application $instance */
  1168. $instance->tag($abstracts, $tags);
  1169. }
  1170. /**
  1171. * Resolve all of the bindings for a given tag.
  1172. *
  1173. * @param string $tag
  1174. * @return iterable
  1175. * @static
  1176. */
  1177. public static function tagged($tag)
  1178. { //Method inherited from \Illuminate\Container\Container
  1179. /** @var \Illuminate\Foundation\Application $instance */
  1180. return $instance->tagged($tag);
  1181. }
  1182. /**
  1183. * Alias a type to a different name.
  1184. *
  1185. * @param string $abstract
  1186. * @param string $alias
  1187. * @return void
  1188. * @throws \LogicException
  1189. * @static
  1190. */
  1191. public static function alias($abstract, $alias)
  1192. { //Method inherited from \Illuminate\Container\Container
  1193. /** @var \Illuminate\Foundation\Application $instance */
  1194. $instance->alias($abstract, $alias);
  1195. }
  1196. /**
  1197. * Bind a new callback to an abstract's rebind event.
  1198. *
  1199. * @param string $abstract
  1200. * @param \Closure $callback
  1201. * @return mixed
  1202. * @static
  1203. */
  1204. public static function rebinding($abstract, $callback)
  1205. { //Method inherited from \Illuminate\Container\Container
  1206. /** @var \Illuminate\Foundation\Application $instance */
  1207. return $instance->rebinding($abstract, $callback);
  1208. }
  1209. /**
  1210. * Refresh an instance on the given target and method.
  1211. *
  1212. * @param string $abstract
  1213. * @param mixed $target
  1214. * @param string $method
  1215. * @return mixed
  1216. * @static
  1217. */
  1218. public static function refresh($abstract, $target, $method)
  1219. { //Method inherited from \Illuminate\Container\Container
  1220. /** @var \Illuminate\Foundation\Application $instance */
  1221. return $instance->refresh($abstract, $target, $method);
  1222. }
  1223. /**
  1224. * Wrap the given closure such that its dependencies will be injected when executed.
  1225. *
  1226. * @param \Closure $callback
  1227. * @param array $parameters
  1228. * @return \Closure
  1229. * @static
  1230. */
  1231. public static function wrap($callback, $parameters = [])
  1232. { //Method inherited from \Illuminate\Container\Container
  1233. /** @var \Illuminate\Foundation\Application $instance */
  1234. return $instance->wrap($callback, $parameters);
  1235. }
  1236. /**
  1237. * Call the given Closure / class@method and inject its dependencies.
  1238. *
  1239. * @param callable|string $callback
  1240. * @param array<string, mixed> $parameters
  1241. * @param string|null $defaultMethod
  1242. * @return mixed
  1243. * @throws \InvalidArgumentException
  1244. * @static
  1245. */
  1246. public static function call($callback, $parameters = [], $defaultMethod = null)
  1247. { //Method inherited from \Illuminate\Container\Container
  1248. /** @var \Illuminate\Foundation\Application $instance */
  1249. return $instance->call($callback, $parameters, $defaultMethod);
  1250. }
  1251. /**
  1252. * Get a closure to resolve the given type from the container.
  1253. *
  1254. * @param string $abstract
  1255. * @return \Closure
  1256. * @static
  1257. */
  1258. public static function factory($abstract)
  1259. { //Method inherited from \Illuminate\Container\Container
  1260. /** @var \Illuminate\Foundation\Application $instance */
  1261. return $instance->factory($abstract);
  1262. }
  1263. /**
  1264. * An alias function name for make().
  1265. *
  1266. * @param string|callable $abstract
  1267. * @param array $parameters
  1268. * @return mixed
  1269. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1270. * @static
  1271. */
  1272. public static function makeWith($abstract, $parameters = [])
  1273. { //Method inherited from \Illuminate\Container\Container
  1274. /** @var \Illuminate\Foundation\Application $instance */
  1275. return $instance->makeWith($abstract, $parameters);
  1276. }
  1277. /**
  1278. * Finds an entry of the container by its identifier and returns it.
  1279. *
  1280. * @return mixed
  1281. * @param string $id Identifier of the entry to look for.
  1282. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1283. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1284. * @return mixed Entry.
  1285. * @static
  1286. */
  1287. public static function get($id)
  1288. { //Method inherited from \Illuminate\Container\Container
  1289. /** @var \Illuminate\Foundation\Application $instance */
  1290. return $instance->get($id);
  1291. }
  1292. /**
  1293. * Instantiate a concrete instance of the given type.
  1294. *
  1295. * @param \Closure|string $concrete
  1296. * @return mixed
  1297. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1298. * @throws \Illuminate\Contracts\Container\CircularDependencyException
  1299. * @static
  1300. */
  1301. public static function build($concrete)
  1302. { //Method inherited from \Illuminate\Container\Container
  1303. /** @var \Illuminate\Foundation\Application $instance */
  1304. return $instance->build($concrete);
  1305. }
  1306. /**
  1307. * Register a new before resolving callback for all types.
  1308. *
  1309. * @param \Closure|string $abstract
  1310. * @param \Closure|null $callback
  1311. * @return void
  1312. * @static
  1313. */
  1314. public static function beforeResolving($abstract, $callback = null)
  1315. { //Method inherited from \Illuminate\Container\Container
  1316. /** @var \Illuminate\Foundation\Application $instance */
  1317. $instance->beforeResolving($abstract, $callback);
  1318. }
  1319. /**
  1320. * Register a new resolving callback.
  1321. *
  1322. * @param \Closure|string $abstract
  1323. * @param \Closure|null $callback
  1324. * @return void
  1325. * @static
  1326. */
  1327. public static function resolving($abstract, $callback = null)
  1328. { //Method inherited from \Illuminate\Container\Container
  1329. /** @var \Illuminate\Foundation\Application $instance */
  1330. $instance->resolving($abstract, $callback);
  1331. }
  1332. /**
  1333. * Register a new after resolving callback for all types.
  1334. *
  1335. * @param \Closure|string $abstract
  1336. * @param \Closure|null $callback
  1337. * @return void
  1338. * @static
  1339. */
  1340. public static function afterResolving($abstract, $callback = null)
  1341. { //Method inherited from \Illuminate\Container\Container
  1342. /** @var \Illuminate\Foundation\Application $instance */
  1343. $instance->afterResolving($abstract, $callback);
  1344. }
  1345. /**
  1346. * Get the container's bindings.
  1347. *
  1348. * @return array
  1349. * @static
  1350. */
  1351. public static function getBindings()
  1352. { //Method inherited from \Illuminate\Container\Container
  1353. /** @var \Illuminate\Foundation\Application $instance */
  1354. return $instance->getBindings();
  1355. }
  1356. /**
  1357. * Get the alias for an abstract if available.
  1358. *
  1359. * @param string $abstract
  1360. * @return string
  1361. * @static
  1362. */
  1363. public static function getAlias($abstract)
  1364. { //Method inherited from \Illuminate\Container\Container
  1365. /** @var \Illuminate\Foundation\Application $instance */
  1366. return $instance->getAlias($abstract);
  1367. }
  1368. /**
  1369. * Remove all of the extender callbacks for a given type.
  1370. *
  1371. * @param string $abstract
  1372. * @return void
  1373. * @static
  1374. */
  1375. public static function forgetExtenders($abstract)
  1376. { //Method inherited from \Illuminate\Container\Container
  1377. /** @var \Illuminate\Foundation\Application $instance */
  1378. $instance->forgetExtenders($abstract);
  1379. }
  1380. /**
  1381. * Remove a resolved instance from the instance cache.
  1382. *
  1383. * @param string $abstract
  1384. * @return void
  1385. * @static
  1386. */
  1387. public static function forgetInstance($abstract)
  1388. { //Method inherited from \Illuminate\Container\Container
  1389. /** @var \Illuminate\Foundation\Application $instance */
  1390. $instance->forgetInstance($abstract);
  1391. }
  1392. /**
  1393. * Clear all of the instances from the container.
  1394. *
  1395. * @return void
  1396. * @static
  1397. */
  1398. public static function forgetInstances()
  1399. { //Method inherited from \Illuminate\Container\Container
  1400. /** @var \Illuminate\Foundation\Application $instance */
  1401. $instance->forgetInstances();
  1402. }
  1403. /**
  1404. * Clear all of the scoped instances from the container.
  1405. *
  1406. * @return void
  1407. * @static
  1408. */
  1409. public static function forgetScopedInstances()
  1410. { //Method inherited from \Illuminate\Container\Container
  1411. /** @var \Illuminate\Foundation\Application $instance */
  1412. $instance->forgetScopedInstances();
  1413. }
  1414. /**
  1415. * Get the globally available instance of the container.
  1416. *
  1417. * @return static
  1418. * @static
  1419. */
  1420. public static function getInstance()
  1421. { //Method inherited from \Illuminate\Container\Container
  1422. return \Illuminate\Foundation\Application::getInstance();
  1423. }
  1424. /**
  1425. * Set the shared instance of the container.
  1426. *
  1427. * @param \Illuminate\Contracts\Container\Container|null $container
  1428. * @return \Illuminate\Contracts\Container\Container|static
  1429. * @static
  1430. */
  1431. public static function setInstance($container = null)
  1432. { //Method inherited from \Illuminate\Container\Container
  1433. return \Illuminate\Foundation\Application::setInstance($container);
  1434. }
  1435. /**
  1436. * Determine if a given offset exists.
  1437. *
  1438. * @param string $key
  1439. * @return bool
  1440. * @static
  1441. */
  1442. public static function offsetExists($key)
  1443. { //Method inherited from \Illuminate\Container\Container
  1444. /** @var \Illuminate\Foundation\Application $instance */
  1445. return $instance->offsetExists($key);
  1446. }
  1447. /**
  1448. * Get the value at a given offset.
  1449. *
  1450. * @param string $key
  1451. * @return mixed
  1452. * @static
  1453. */
  1454. public static function offsetGet($key)
  1455. { //Method inherited from \Illuminate\Container\Container
  1456. /** @var \Illuminate\Foundation\Application $instance */
  1457. return $instance->offsetGet($key);
  1458. }
  1459. /**
  1460. * Set the value at a given offset.
  1461. *
  1462. * @param string $key
  1463. * @param mixed $value
  1464. * @return void
  1465. * @static
  1466. */
  1467. public static function offsetSet($key, $value)
  1468. { //Method inherited from \Illuminate\Container\Container
  1469. /** @var \Illuminate\Foundation\Application $instance */
  1470. $instance->offsetSet($key, $value);
  1471. }
  1472. /**
  1473. * Unset the value at a given offset.
  1474. *
  1475. * @param string $key
  1476. * @return void
  1477. * @static
  1478. */
  1479. public static function offsetUnset($key)
  1480. { //Method inherited from \Illuminate\Container\Container
  1481. /** @var \Illuminate\Foundation\Application $instance */
  1482. $instance->offsetUnset($key);
  1483. }
  1484. }
  1485. /**
  1486. *
  1487. *
  1488. * @see \Illuminate\Contracts\Console\Kernel
  1489. */
  1490. class Artisan {
  1491. /**
  1492. * Run the console application.
  1493. *
  1494. * @param \Symfony\Component\Console\Input\InputInterface $input
  1495. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1496. * @return int
  1497. * @static
  1498. */
  1499. public static function handle($input, $output = null)
  1500. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1501. /** @var \App\Console\Kernel $instance */
  1502. return $instance->handle($input, $output);
  1503. }
  1504. /**
  1505. * Terminate the application.
  1506. *
  1507. * @param \Symfony\Component\Console\Input\InputInterface $input
  1508. * @param int $status
  1509. * @return void
  1510. * @static
  1511. */
  1512. public static function terminate($input, $status)
  1513. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1514. /** @var \App\Console\Kernel $instance */
  1515. $instance->terminate($input, $status);
  1516. }
  1517. /**
  1518. * Register a Closure based command with the application.
  1519. *
  1520. * @param string $signature
  1521. * @param \Closure $callback
  1522. * @return \Illuminate\Foundation\Console\ClosureCommand
  1523. * @static
  1524. */
  1525. public static function command($signature, $callback)
  1526. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1527. /** @var \App\Console\Kernel $instance */
  1528. return $instance->command($signature, $callback);
  1529. }
  1530. /**
  1531. * Register the given command with the console application.
  1532. *
  1533. * @param \Symfony\Component\Console\Command\Command $command
  1534. * @return void
  1535. * @static
  1536. */
  1537. public static function registerCommand($command)
  1538. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1539. /** @var \App\Console\Kernel $instance */
  1540. $instance->registerCommand($command);
  1541. }
  1542. /**
  1543. * Run an Artisan console command by name.
  1544. *
  1545. * @param string $command
  1546. * @param array $parameters
  1547. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1548. * @return int
  1549. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1550. * @static
  1551. */
  1552. public static function call($command, $parameters = [], $outputBuffer = null)
  1553. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1554. /** @var \App\Console\Kernel $instance */
  1555. return $instance->call($command, $parameters, $outputBuffer);
  1556. }
  1557. /**
  1558. * Queue the given console command.
  1559. *
  1560. * @param string $command
  1561. * @param array $parameters
  1562. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1563. * @static
  1564. */
  1565. public static function queue($command, $parameters = [])
  1566. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1567. /** @var \App\Console\Kernel $instance */
  1568. return $instance->queue($command, $parameters);
  1569. }
  1570. /**
  1571. * Get all of the commands registered with the console.
  1572. *
  1573. * @return array
  1574. * @static
  1575. */
  1576. public static function all()
  1577. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1578. /** @var \App\Console\Kernel $instance */
  1579. return $instance->all();
  1580. }
  1581. /**
  1582. * Get the output for the last run command.
  1583. *
  1584. * @return string
  1585. * @static
  1586. */
  1587. public static function output()
  1588. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1589. /** @var \App\Console\Kernel $instance */
  1590. return $instance->output();
  1591. }
  1592. /**
  1593. * Bootstrap the application for artisan commands.
  1594. *
  1595. * @return void
  1596. * @static
  1597. */
  1598. public static function bootstrap()
  1599. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1600. /** @var \App\Console\Kernel $instance */
  1601. $instance->bootstrap();
  1602. }
  1603. /**
  1604. * Set the Artisan application instance.
  1605. *
  1606. * @param \Illuminate\Console\Application $artisan
  1607. * @return void
  1608. * @static
  1609. */
  1610. public static function setArtisan($artisan)
  1611. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1612. /** @var \App\Console\Kernel $instance */
  1613. $instance->setArtisan($artisan);
  1614. }
  1615. }
  1616. /**
  1617. *
  1618. *
  1619. * @see \Illuminate\Auth\AuthManager
  1620. * @see \Illuminate\Contracts\Auth\Factory
  1621. * @see \Illuminate\Contracts\Auth\Guard
  1622. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1623. */
  1624. class Auth {
  1625. /**
  1626. * Attempt to get the guard from the local cache.
  1627. *
  1628. * @param string|null $name
  1629. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1630. * @static
  1631. */
  1632. public static function guard($name = null)
  1633. {
  1634. /** @var \Illuminate\Auth\AuthManager $instance */
  1635. return $instance->guard($name);
  1636. }
  1637. /**
  1638. * Create a session based authentication guard.
  1639. *
  1640. * @param string $name
  1641. * @param array $config
  1642. * @return \Illuminate\Auth\SessionGuard
  1643. * @static
  1644. */
  1645. public static function createSessionDriver($name, $config)
  1646. {
  1647. /** @var \Illuminate\Auth\AuthManager $instance */
  1648. return $instance->createSessionDriver($name, $config);
  1649. }
  1650. /**
  1651. * Create a token based authentication guard.
  1652. *
  1653. * @param string $name
  1654. * @param array $config
  1655. * @return \Illuminate\Auth\TokenGuard
  1656. * @static
  1657. */
  1658. public static function createTokenDriver($name, $config)
  1659. {
  1660. /** @var \Illuminate\Auth\AuthManager $instance */
  1661. return $instance->createTokenDriver($name, $config);
  1662. }
  1663. /**
  1664. * Get the default authentication driver name.
  1665. *
  1666. * @return string
  1667. * @static
  1668. */
  1669. public static function getDefaultDriver()
  1670. {
  1671. /** @var \Illuminate\Auth\AuthManager $instance */
  1672. return $instance->getDefaultDriver();
  1673. }
  1674. /**
  1675. * Set the default guard driver the factory should serve.
  1676. *
  1677. * @param string $name
  1678. * @return void
  1679. * @static
  1680. */
  1681. public static function shouldUse($name)
  1682. {
  1683. /** @var \Illuminate\Auth\AuthManager $instance */
  1684. $instance->shouldUse($name);
  1685. }
  1686. /**
  1687. * Set the default authentication driver name.
  1688. *
  1689. * @param string $name
  1690. * @return void
  1691. * @static
  1692. */
  1693. public static function setDefaultDriver($name)
  1694. {
  1695. /** @var \Illuminate\Auth\AuthManager $instance */
  1696. $instance->setDefaultDriver($name);
  1697. }
  1698. /**
  1699. * Register a new callback based request guard.
  1700. *
  1701. * @param string $driver
  1702. * @param callable $callback
  1703. * @return \Illuminate\Auth\AuthManager
  1704. * @static
  1705. */
  1706. public static function viaRequest($driver, $callback)
  1707. {
  1708. /** @var \Illuminate\Auth\AuthManager $instance */
  1709. return $instance->viaRequest($driver, $callback);
  1710. }
  1711. /**
  1712. * Get the user resolver callback.
  1713. *
  1714. * @return \Closure
  1715. * @static
  1716. */
  1717. public static function userResolver()
  1718. {
  1719. /** @var \Illuminate\Auth\AuthManager $instance */
  1720. return $instance->userResolver();
  1721. }
  1722. /**
  1723. * Set the callback to be used to resolve users.
  1724. *
  1725. * @param \Closure $userResolver
  1726. * @return \Illuminate\Auth\AuthManager
  1727. * @static
  1728. */
  1729. public static function resolveUsersUsing($userResolver)
  1730. {
  1731. /** @var \Illuminate\Auth\AuthManager $instance */
  1732. return $instance->resolveUsersUsing($userResolver);
  1733. }
  1734. /**
  1735. * Register a custom driver creator Closure.
  1736. *
  1737. * @param string $driver
  1738. * @param \Closure $callback
  1739. * @return \Illuminate\Auth\AuthManager
  1740. * @static
  1741. */
  1742. public static function extend($driver, $callback)
  1743. {
  1744. /** @var \Illuminate\Auth\AuthManager $instance */
  1745. return $instance->extend($driver, $callback);
  1746. }
  1747. /**
  1748. * Register a custom provider creator Closure.
  1749. *
  1750. * @param string $name
  1751. * @param \Closure $callback
  1752. * @return \Illuminate\Auth\AuthManager
  1753. * @static
  1754. */
  1755. public static function provider($name, $callback)
  1756. {
  1757. /** @var \Illuminate\Auth\AuthManager $instance */
  1758. return $instance->provider($name, $callback);
  1759. }
  1760. /**
  1761. * Determines if any guards have already been resolved.
  1762. *
  1763. * @return bool
  1764. * @static
  1765. */
  1766. public static function hasResolvedGuards()
  1767. {
  1768. /** @var \Illuminate\Auth\AuthManager $instance */
  1769. return $instance->hasResolvedGuards();
  1770. }
  1771. /**
  1772. * Forget all of the resolved guard instances.
  1773. *
  1774. * @return \Illuminate\Auth\AuthManager
  1775. * @static
  1776. */
  1777. public static function forgetGuards()
  1778. {
  1779. /** @var \Illuminate\Auth\AuthManager $instance */
  1780. return $instance->forgetGuards();
  1781. }
  1782. /**
  1783. * Set the application instance used by the manager.
  1784. *
  1785. * @param \Illuminate\Contracts\Foundation\Application $app
  1786. * @return \Illuminate\Auth\AuthManager
  1787. * @static
  1788. */
  1789. public static function setApplication($app)
  1790. {
  1791. /** @var \Illuminate\Auth\AuthManager $instance */
  1792. return $instance->setApplication($app);
  1793. }
  1794. /**
  1795. * Create the user provider implementation for the driver.
  1796. *
  1797. * @param string|null $provider
  1798. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1799. * @throws \InvalidArgumentException
  1800. * @static
  1801. */
  1802. public static function createUserProvider($provider = null)
  1803. {
  1804. /** @var \Illuminate\Auth\AuthManager $instance */
  1805. return $instance->createUserProvider($provider);
  1806. }
  1807. /**
  1808. * Get the default user provider name.
  1809. *
  1810. * @return string
  1811. * @static
  1812. */
  1813. public static function getDefaultUserProvider()
  1814. {
  1815. /** @var \Illuminate\Auth\AuthManager $instance */
  1816. return $instance->getDefaultUserProvider();
  1817. }
  1818. /**
  1819. * Get the currently authenticated user.
  1820. *
  1821. * @return \App\Models\User|null
  1822. * @static
  1823. */
  1824. public static function user()
  1825. {
  1826. /** @var \Illuminate\Auth\SessionGuard $instance */
  1827. return $instance->user();
  1828. }
  1829. /**
  1830. * Get the ID for the currently authenticated user.
  1831. *
  1832. * @return int|string|null
  1833. * @static
  1834. */
  1835. public static function id()
  1836. {
  1837. /** @var \Illuminate\Auth\SessionGuard $instance */
  1838. return $instance->id();
  1839. }
  1840. /**
  1841. * Log a user into the application without sessions or cookies.
  1842. *
  1843. * @param array $credentials
  1844. * @return bool
  1845. * @static
  1846. */
  1847. public static function once($credentials = [])
  1848. {
  1849. /** @var \Illuminate\Auth\SessionGuard $instance */
  1850. return $instance->once($credentials);
  1851. }
  1852. /**
  1853. * Log the given user ID into the application without sessions or cookies.
  1854. *
  1855. * @param mixed $id
  1856. * @return \App\Models\User|false
  1857. * @static
  1858. */
  1859. public static function onceUsingId($id)
  1860. {
  1861. /** @var \Illuminate\Auth\SessionGuard $instance */
  1862. return $instance->onceUsingId($id);
  1863. }
  1864. /**
  1865. * Validate a user's credentials.
  1866. *
  1867. * @param array $credentials
  1868. * @return bool
  1869. * @static
  1870. */
  1871. public static function validate($credentials = [])
  1872. {
  1873. /** @var \Illuminate\Auth\SessionGuard $instance */
  1874. return $instance->validate($credentials);
  1875. }
  1876. /**
  1877. * Attempt to authenticate using HTTP Basic Auth.
  1878. *
  1879. * @param string $field
  1880. * @param array $extraConditions
  1881. * @return \Symfony\Component\HttpFoundation\Response|null
  1882. * @static
  1883. */
  1884. public static function basic($field = 'email', $extraConditions = [])
  1885. {
  1886. /** @var \Illuminate\Auth\SessionGuard $instance */
  1887. return $instance->basic($field, $extraConditions);
  1888. }
  1889. /**
  1890. * Perform a stateless HTTP Basic login attempt.
  1891. *
  1892. * @param string $field
  1893. * @param array $extraConditions
  1894. * @return \Symfony\Component\HttpFoundation\Response|null
  1895. * @static
  1896. */
  1897. public static function onceBasic($field = 'email', $extraConditions = [])
  1898. {
  1899. /** @var \Illuminate\Auth\SessionGuard $instance */
  1900. return $instance->onceBasic($field, $extraConditions);
  1901. }
  1902. /**
  1903. * Attempt to authenticate a user using the given credentials.
  1904. *
  1905. * @param array $credentials
  1906. * @param bool $remember
  1907. * @return bool
  1908. * @static
  1909. */
  1910. public static function attempt($credentials = [], $remember = false)
  1911. {
  1912. /** @var \Illuminate\Auth\SessionGuard $instance */
  1913. return $instance->attempt($credentials, $remember);
  1914. }
  1915. /**
  1916. * Attempt to authenticate a user with credentials and additional callbacks.
  1917. *
  1918. * @param array $credentials
  1919. * @param array|callable $callbacks
  1920. * @param false $remember
  1921. * @return bool
  1922. * @static
  1923. */
  1924. public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
  1925. {
  1926. /** @var \Illuminate\Auth\SessionGuard $instance */
  1927. return $instance->attemptWhen($credentials, $callbacks, $remember);
  1928. }
  1929. /**
  1930. * Log the given user ID into the application.
  1931. *
  1932. * @param mixed $id
  1933. * @param bool $remember
  1934. * @return \App\Models\User|false
  1935. * @static
  1936. */
  1937. public static function loginUsingId($id, $remember = false)
  1938. {
  1939. /** @var \Illuminate\Auth\SessionGuard $instance */
  1940. return $instance->loginUsingId($id, $remember);
  1941. }
  1942. /**
  1943. * Log a user into the application.
  1944. *
  1945. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1946. * @param bool $remember
  1947. * @return void
  1948. * @static
  1949. */
  1950. public static function login($user, $remember = false)
  1951. {
  1952. /** @var \Illuminate\Auth\SessionGuard $instance */
  1953. $instance->login($user, $remember);
  1954. }
  1955. /**
  1956. * Log the user out of the application.
  1957. *
  1958. * @return void
  1959. * @static
  1960. */
  1961. public static function logout()
  1962. {
  1963. /** @var \Illuminate\Auth\SessionGuard $instance */
  1964. $instance->logout();
  1965. }
  1966. /**
  1967. * Log the user out of the application on their current device only.
  1968. *
  1969. * This method does not cycle the "remember" token.
  1970. *
  1971. * @return void
  1972. * @static
  1973. */
  1974. public static function logoutCurrentDevice()
  1975. {
  1976. /** @var \Illuminate\Auth\SessionGuard $instance */
  1977. $instance->logoutCurrentDevice();
  1978. }
  1979. /**
  1980. * Invalidate other sessions for the current user.
  1981. *
  1982. * The application must be using the AuthenticateSession middleware.
  1983. *
  1984. * @param string $password
  1985. * @param string $attribute
  1986. * @return \App\Models\User|null
  1987. * @throws \Illuminate\Auth\AuthenticationException
  1988. * @static
  1989. */
  1990. public static function logoutOtherDevices($password, $attribute = 'password')
  1991. {
  1992. /** @var \Illuminate\Auth\SessionGuard $instance */
  1993. return $instance->logoutOtherDevices($password, $attribute);
  1994. }
  1995. /**
  1996. * Register an authentication attempt event listener.
  1997. *
  1998. * @param mixed $callback
  1999. * @return void
  2000. * @static
  2001. */
  2002. public static function attempting($callback)
  2003. {
  2004. /** @var \Illuminate\Auth\SessionGuard $instance */
  2005. $instance->attempting($callback);
  2006. }
  2007. /**
  2008. * Get the last user we attempted to authenticate.
  2009. *
  2010. * @return \App\Models\User
  2011. * @static
  2012. */
  2013. public static function getLastAttempted()
  2014. {
  2015. /** @var \Illuminate\Auth\SessionGuard $instance */
  2016. return $instance->getLastAttempted();
  2017. }
  2018. /**
  2019. * Get a unique identifier for the auth session value.
  2020. *
  2021. * @return string
  2022. * @static
  2023. */
  2024. public static function getName()
  2025. {
  2026. /** @var \Illuminate\Auth\SessionGuard $instance */
  2027. return $instance->getName();
  2028. }
  2029. /**
  2030. * Get the name of the cookie used to store the "recaller".
  2031. *
  2032. * @return string
  2033. * @static
  2034. */
  2035. public static function getRecallerName()
  2036. {
  2037. /** @var \Illuminate\Auth\SessionGuard $instance */
  2038. return $instance->getRecallerName();
  2039. }
  2040. /**
  2041. * Determine if the user was authenticated via "remember me" cookie.
  2042. *
  2043. * @return bool
  2044. * @static
  2045. */
  2046. public static function viaRemember()
  2047. {
  2048. /** @var \Illuminate\Auth\SessionGuard $instance */
  2049. return $instance->viaRemember();
  2050. }
  2051. /**
  2052. * Set the number of minutes the remember me cookie should be valid for.
  2053. *
  2054. * @param int $minutes
  2055. * @return \Illuminate\Auth\SessionGuard
  2056. * @static
  2057. */
  2058. public static function setRememberDuration($minutes)
  2059. {
  2060. /** @var \Illuminate\Auth\SessionGuard $instance */
  2061. return $instance->setRememberDuration($minutes);
  2062. }
  2063. /**
  2064. * Get the cookie creator instance used by the guard.
  2065. *
  2066. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  2067. * @throws \RuntimeException
  2068. * @static
  2069. */
  2070. public static function getCookieJar()
  2071. {
  2072. /** @var \Illuminate\Auth\SessionGuard $instance */
  2073. return $instance->getCookieJar();
  2074. }
  2075. /**
  2076. * Set the cookie creator instance used by the guard.
  2077. *
  2078. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  2079. * @return void
  2080. * @static
  2081. */
  2082. public static function setCookieJar($cookie)
  2083. {
  2084. /** @var \Illuminate\Auth\SessionGuard $instance */
  2085. $instance->setCookieJar($cookie);
  2086. }
  2087. /**
  2088. * Get the event dispatcher instance.
  2089. *
  2090. * @return \Illuminate\Contracts\Events\Dispatcher
  2091. * @static
  2092. */
  2093. public static function getDispatcher()
  2094. {
  2095. /** @var \Illuminate\Auth\SessionGuard $instance */
  2096. return $instance->getDispatcher();
  2097. }
  2098. /**
  2099. * Set the event dispatcher instance.
  2100. *
  2101. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2102. * @return void
  2103. * @static
  2104. */
  2105. public static function setDispatcher($events)
  2106. {
  2107. /** @var \Illuminate\Auth\SessionGuard $instance */
  2108. $instance->setDispatcher($events);
  2109. }
  2110. /**
  2111. * Get the session store used by the guard.
  2112. *
  2113. * @return \Illuminate\Contracts\Session\Session
  2114. * @static
  2115. */
  2116. public static function getSession()
  2117. {
  2118. /** @var \Illuminate\Auth\SessionGuard $instance */
  2119. return $instance->getSession();
  2120. }
  2121. /**
  2122. * Return the currently cached user.
  2123. *
  2124. * @return \App\Models\User|null
  2125. * @static
  2126. */
  2127. public static function getUser()
  2128. {
  2129. /** @var \Illuminate\Auth\SessionGuard $instance */
  2130. return $instance->getUser();
  2131. }
  2132. /**
  2133. * Set the current user.
  2134. *
  2135. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2136. * @return \Illuminate\Auth\SessionGuard
  2137. * @static
  2138. */
  2139. public static function setUser($user)
  2140. {
  2141. /** @var \Illuminate\Auth\SessionGuard $instance */
  2142. return $instance->setUser($user);
  2143. }
  2144. /**
  2145. * Get the current request instance.
  2146. *
  2147. * @return \Symfony\Component\HttpFoundation\Request
  2148. * @static
  2149. */
  2150. public static function getRequest()
  2151. {
  2152. /** @var \Illuminate\Auth\SessionGuard $instance */
  2153. return $instance->getRequest();
  2154. }
  2155. /**
  2156. * Set the current request instance.
  2157. *
  2158. * @param \Symfony\Component\HttpFoundation\Request $request
  2159. * @return \Illuminate\Auth\SessionGuard
  2160. * @static
  2161. */
  2162. public static function setRequest($request)
  2163. {
  2164. /** @var \Illuminate\Auth\SessionGuard $instance */
  2165. return $instance->setRequest($request);
  2166. }
  2167. /**
  2168. * Get the timebox instance used by the guard.
  2169. *
  2170. * @return \Illuminate\Support\Timebox
  2171. * @static
  2172. */
  2173. public static function getTimebox()
  2174. {
  2175. /** @var \Illuminate\Auth\SessionGuard $instance */
  2176. return $instance->getTimebox();
  2177. }
  2178. /**
  2179. * Determine if the current user is authenticated. If not, throw an exception.
  2180. *
  2181. * @return \App\Models\User
  2182. * @throws \Illuminate\Auth\AuthenticationException
  2183. * @static
  2184. */
  2185. public static function authenticate()
  2186. {
  2187. /** @var \Illuminate\Auth\SessionGuard $instance */
  2188. return $instance->authenticate();
  2189. }
  2190. /**
  2191. * Determine if the guard has a user instance.
  2192. *
  2193. * @return bool
  2194. * @static
  2195. */
  2196. public static function hasUser()
  2197. {
  2198. /** @var \Illuminate\Auth\SessionGuard $instance */
  2199. return $instance->hasUser();
  2200. }
  2201. /**
  2202. * Determine if the current user is authenticated.
  2203. *
  2204. * @return bool
  2205. * @static
  2206. */
  2207. public static function check()
  2208. {
  2209. /** @var \Illuminate\Auth\SessionGuard $instance */
  2210. return $instance->check();
  2211. }
  2212. /**
  2213. * Determine if the current user is a guest.
  2214. *
  2215. * @return bool
  2216. * @static
  2217. */
  2218. public static function guest()
  2219. {
  2220. /** @var \Illuminate\Auth\SessionGuard $instance */
  2221. return $instance->guest();
  2222. }
  2223. /**
  2224. * Get the user provider used by the guard.
  2225. *
  2226. * @return \Illuminate\Contracts\Auth\UserProvider
  2227. * @static
  2228. */
  2229. public static function getProvider()
  2230. {
  2231. /** @var \Illuminate\Auth\SessionGuard $instance */
  2232. return $instance->getProvider();
  2233. }
  2234. /**
  2235. * Set the user provider used by the guard.
  2236. *
  2237. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2238. * @return void
  2239. * @static
  2240. */
  2241. public static function setProvider($provider)
  2242. {
  2243. /** @var \Illuminate\Auth\SessionGuard $instance */
  2244. $instance->setProvider($provider);
  2245. }
  2246. /**
  2247. * Register a custom macro.
  2248. *
  2249. * @param string $name
  2250. * @param object|callable $macro
  2251. * @return void
  2252. * @static
  2253. */
  2254. public static function macro($name, $macro)
  2255. {
  2256. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2257. }
  2258. /**
  2259. * Mix another object into the class.
  2260. *
  2261. * @param object $mixin
  2262. * @param bool $replace
  2263. * @return void
  2264. * @throws \ReflectionException
  2265. * @static
  2266. */
  2267. public static function mixin($mixin, $replace = true)
  2268. {
  2269. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2270. }
  2271. /**
  2272. * Checks if macro is registered.
  2273. *
  2274. * @param string $name
  2275. * @return bool
  2276. * @static
  2277. */
  2278. public static function hasMacro($name)
  2279. {
  2280. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2281. }
  2282. /**
  2283. * Flush the existing macros.
  2284. *
  2285. * @return void
  2286. * @static
  2287. */
  2288. public static function flushMacros()
  2289. {
  2290. \Illuminate\Auth\SessionGuard::flushMacros();
  2291. }
  2292. }
  2293. /**
  2294. *
  2295. *
  2296. * @see \Illuminate\View\Compilers\BladeCompiler
  2297. */
  2298. class Blade {
  2299. /**
  2300. * Compile the view at the given path.
  2301. *
  2302. * @param string|null $path
  2303. * @return void
  2304. * @static
  2305. */
  2306. public static function compile($path = null)
  2307. {
  2308. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2309. $instance->compile($path);
  2310. }
  2311. /**
  2312. * Get the path currently being compiled.
  2313. *
  2314. * @return string
  2315. * @static
  2316. */
  2317. public static function getPath()
  2318. {
  2319. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2320. return $instance->getPath();
  2321. }
  2322. /**
  2323. * Set the path currently being compiled.
  2324. *
  2325. * @param string $path
  2326. * @return void
  2327. * @static
  2328. */
  2329. public static function setPath($path)
  2330. {
  2331. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2332. $instance->setPath($path);
  2333. }
  2334. /**
  2335. * Compile the given Blade template contents.
  2336. *
  2337. * @param string $value
  2338. * @return string
  2339. * @static
  2340. */
  2341. public static function compileString($value)
  2342. {
  2343. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2344. return $instance->compileString($value);
  2345. }
  2346. /**
  2347. * Evaluate and render a Blade string to HTML.
  2348. *
  2349. * @param string $string
  2350. * @param array $data
  2351. * @param bool $deleteCachedView
  2352. * @return string
  2353. * @static
  2354. */
  2355. public static function render($string, $data = [], $deleteCachedView = false)
  2356. {
  2357. return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
  2358. }
  2359. /**
  2360. * Render a component instance to HTML.
  2361. *
  2362. * @param \Illuminate\View\Component $component
  2363. * @return string
  2364. * @static
  2365. */
  2366. public static function renderComponent($component)
  2367. {
  2368. return \Illuminate\View\Compilers\BladeCompiler::renderComponent($component);
  2369. }
  2370. /**
  2371. * Strip the parentheses from the given expression.
  2372. *
  2373. * @param string $expression
  2374. * @return string
  2375. * @static
  2376. */
  2377. public static function stripParentheses($expression)
  2378. {
  2379. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2380. return $instance->stripParentheses($expression);
  2381. }
  2382. /**
  2383. * Register a custom Blade compiler.
  2384. *
  2385. * @param callable $compiler
  2386. * @return void
  2387. * @static
  2388. */
  2389. public static function extend($compiler)
  2390. {
  2391. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2392. $instance->extend($compiler);
  2393. }
  2394. /**
  2395. * Get the extensions used by the compiler.
  2396. *
  2397. * @return array
  2398. * @static
  2399. */
  2400. public static function getExtensions()
  2401. {
  2402. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2403. return $instance->getExtensions();
  2404. }
  2405. /**
  2406. * Register an "if" statement directive.
  2407. *
  2408. * @param string $name
  2409. * @param callable $callback
  2410. * @return void
  2411. * @static
  2412. */
  2413. public static function if($name, $callback)
  2414. {
  2415. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2416. $instance->if($name, $callback);
  2417. }
  2418. /**
  2419. * Check the result of a condition.
  2420. *
  2421. * @param string $name
  2422. * @param array $parameters
  2423. * @return bool
  2424. * @static
  2425. */
  2426. public static function check($name, ...$parameters)
  2427. {
  2428. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2429. return $instance->check($name, ...$parameters);
  2430. }
  2431. /**
  2432. * Register a class-based component alias directive.
  2433. *
  2434. * @param string $class
  2435. * @param string|null $alias
  2436. * @param string $prefix
  2437. * @return void
  2438. * @static
  2439. */
  2440. public static function component($class, $alias = null, $prefix = '')
  2441. {
  2442. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2443. $instance->component($class, $alias, $prefix);
  2444. }
  2445. /**
  2446. * Register an array of class-based components.
  2447. *
  2448. * @param array $components
  2449. * @param string $prefix
  2450. * @return void
  2451. * @static
  2452. */
  2453. public static function components($components, $prefix = '')
  2454. {
  2455. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2456. $instance->components($components, $prefix);
  2457. }
  2458. /**
  2459. * Get the registered class component aliases.
  2460. *
  2461. * @return array
  2462. * @static
  2463. */
  2464. public static function getClassComponentAliases()
  2465. {
  2466. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2467. return $instance->getClassComponentAliases();
  2468. }
  2469. /**
  2470. * Register a class-based component namespace.
  2471. *
  2472. * @param string $namespace
  2473. * @param string $prefix
  2474. * @return void
  2475. * @static
  2476. */
  2477. public static function componentNamespace($namespace, $prefix)
  2478. {
  2479. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2480. $instance->componentNamespace($namespace, $prefix);
  2481. }
  2482. /**
  2483. * Get the registered class component namespaces.
  2484. *
  2485. * @return array
  2486. * @static
  2487. */
  2488. public static function getClassComponentNamespaces()
  2489. {
  2490. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2491. return $instance->getClassComponentNamespaces();
  2492. }
  2493. /**
  2494. * Register a component alias directive.
  2495. *
  2496. * @param string $path
  2497. * @param string|null $alias
  2498. * @return void
  2499. * @static
  2500. */
  2501. public static function aliasComponent($path, $alias = null)
  2502. {
  2503. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2504. $instance->aliasComponent($path, $alias);
  2505. }
  2506. /**
  2507. * Register an include alias directive.
  2508. *
  2509. * @param string $path
  2510. * @param string|null $alias
  2511. * @return void
  2512. * @static
  2513. */
  2514. public static function include($path, $alias = null)
  2515. {
  2516. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2517. $instance->include($path, $alias);
  2518. }
  2519. /**
  2520. * Register an include alias directive.
  2521. *
  2522. * @param string $path
  2523. * @param string|null $alias
  2524. * @return void
  2525. * @static
  2526. */
  2527. public static function aliasInclude($path, $alias = null)
  2528. {
  2529. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2530. $instance->aliasInclude($path, $alias);
  2531. }
  2532. /**
  2533. * Register a handler for custom directives.
  2534. *
  2535. * @param string $name
  2536. * @param callable $handler
  2537. * @return void
  2538. * @throws \InvalidArgumentException
  2539. * @static
  2540. */
  2541. public static function directive($name, $handler)
  2542. {
  2543. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2544. $instance->directive($name, $handler);
  2545. }
  2546. /**
  2547. * Get the list of custom directives.
  2548. *
  2549. * @return array
  2550. * @static
  2551. */
  2552. public static function getCustomDirectives()
  2553. {
  2554. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2555. return $instance->getCustomDirectives();
  2556. }
  2557. /**
  2558. * Register a new precompiler.
  2559. *
  2560. * @param callable $precompiler
  2561. * @return void
  2562. * @static
  2563. */
  2564. public static function precompiler($precompiler)
  2565. {
  2566. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2567. $instance->precompiler($precompiler);
  2568. }
  2569. /**
  2570. * Set the echo format to be used by the compiler.
  2571. *
  2572. * @param string $format
  2573. * @return void
  2574. * @static
  2575. */
  2576. public static function setEchoFormat($format)
  2577. {
  2578. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2579. $instance->setEchoFormat($format);
  2580. }
  2581. /**
  2582. * Set the "echo" format to double encode entities.
  2583. *
  2584. * @return void
  2585. * @static
  2586. */
  2587. public static function withDoubleEncoding()
  2588. {
  2589. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2590. $instance->withDoubleEncoding();
  2591. }
  2592. /**
  2593. * Set the "echo" format to not double encode entities.
  2594. *
  2595. * @return void
  2596. * @static
  2597. */
  2598. public static function withoutDoubleEncoding()
  2599. {
  2600. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2601. $instance->withoutDoubleEncoding();
  2602. }
  2603. /**
  2604. * Indicate that component tags should not be compiled.
  2605. *
  2606. * @return void
  2607. * @static
  2608. */
  2609. public static function withoutComponentTags()
  2610. {
  2611. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2612. $instance->withoutComponentTags();
  2613. }
  2614. /**
  2615. * Get the path to the compiled version of a view.
  2616. *
  2617. * @param string $path
  2618. * @return string
  2619. * @static
  2620. */
  2621. public static function getCompiledPath($path)
  2622. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2623. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2624. return $instance->getCompiledPath($path);
  2625. }
  2626. /**
  2627. * Determine if the view at the given path is expired.
  2628. *
  2629. * @param string $path
  2630. * @return bool
  2631. * @static
  2632. */
  2633. public static function isExpired($path)
  2634. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2635. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2636. return $instance->isExpired($path);
  2637. }
  2638. /**
  2639. * Get a new component hash for a component name.
  2640. *
  2641. * @param string $component
  2642. * @return string
  2643. * @static
  2644. */
  2645. public static function newComponentHash($component)
  2646. {
  2647. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2648. }
  2649. /**
  2650. * Compile a class component opening.
  2651. *
  2652. * @param string $component
  2653. * @param string $alias
  2654. * @param string $data
  2655. * @param string $hash
  2656. * @return string
  2657. * @static
  2658. */
  2659. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2660. {
  2661. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2662. }
  2663. /**
  2664. * Compile the end-component statements into valid PHP.
  2665. *
  2666. * @return string
  2667. * @static
  2668. */
  2669. public static function compileEndComponentClass()
  2670. {
  2671. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2672. return $instance->compileEndComponentClass();
  2673. }
  2674. /**
  2675. * Sanitize the given component attribute value.
  2676. *
  2677. * @param mixed $value
  2678. * @return mixed
  2679. * @static
  2680. */
  2681. public static function sanitizeComponentAttribute($value)
  2682. {
  2683. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2684. }
  2685. /**
  2686. * Compile an end-once block into valid PHP.
  2687. *
  2688. * @return string
  2689. * @static
  2690. */
  2691. public static function compileEndOnce()
  2692. {
  2693. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2694. return $instance->compileEndOnce();
  2695. }
  2696. /**
  2697. * Add a handler to be executed before echoing a given class.
  2698. *
  2699. * @param string|callable $class
  2700. * @param callable|null $handler
  2701. * @return void
  2702. * @static
  2703. */
  2704. public static function stringable($class, $handler = null)
  2705. {
  2706. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2707. $instance->stringable($class, $handler);
  2708. }
  2709. /**
  2710. * Compile Blade echos into valid PHP.
  2711. *
  2712. * @param string $value
  2713. * @return string
  2714. * @static
  2715. */
  2716. public static function compileEchos($value)
  2717. {
  2718. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2719. return $instance->compileEchos($value);
  2720. }
  2721. /**
  2722. * Apply the echo handler for the value if it exists.
  2723. *
  2724. * @param string $value
  2725. * @return string
  2726. * @static
  2727. */
  2728. public static function applyEchoHandler($value)
  2729. {
  2730. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2731. return $instance->applyEchoHandler($value);
  2732. }
  2733. }
  2734. /**
  2735. *
  2736. *
  2737. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2738. * @method static mixed auth(\Illuminate\Http\Request $request)
  2739. * @see \Illuminate\Contracts\Broadcasting\Factory
  2740. */
  2741. class Broadcast {
  2742. /**
  2743. * Register the routes for handling broadcast authentication and sockets.
  2744. *
  2745. * @param array|null $attributes
  2746. * @return void
  2747. * @static
  2748. */
  2749. public static function routes($attributes = null)
  2750. {
  2751. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2752. $instance->routes($attributes);
  2753. }
  2754. /**
  2755. * Get the socket ID for the given request.
  2756. *
  2757. * @param \Illuminate\Http\Request|null $request
  2758. * @return string|null
  2759. * @static
  2760. */
  2761. public static function socket($request = null)
  2762. {
  2763. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2764. return $instance->socket($request);
  2765. }
  2766. /**
  2767. * Begin broadcasting an event.
  2768. *
  2769. * @param mixed|null $event
  2770. * @return \Illuminate\Broadcasting\PendingBroadcast
  2771. * @static
  2772. */
  2773. public static function event($event = null)
  2774. {
  2775. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2776. return $instance->event($event);
  2777. }
  2778. /**
  2779. * Queue the given event for broadcast.
  2780. *
  2781. * @param mixed $event
  2782. * @return void
  2783. * @static
  2784. */
  2785. public static function queue($event)
  2786. {
  2787. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2788. $instance->queue($event);
  2789. }
  2790. /**
  2791. * Get a driver instance.
  2792. *
  2793. * @param string|null $driver
  2794. * @return mixed
  2795. * @static
  2796. */
  2797. public static function connection($driver = null)
  2798. {
  2799. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2800. return $instance->connection($driver);
  2801. }
  2802. /**
  2803. * Get a driver instance.
  2804. *
  2805. * @param string|null $name
  2806. * @return mixed
  2807. * @static
  2808. */
  2809. public static function driver($name = null)
  2810. {
  2811. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2812. return $instance->driver($name);
  2813. }
  2814. /**
  2815. * Get the default driver name.
  2816. *
  2817. * @return string
  2818. * @static
  2819. */
  2820. public static function getDefaultDriver()
  2821. {
  2822. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2823. return $instance->getDefaultDriver();
  2824. }
  2825. /**
  2826. * Set the default driver name.
  2827. *
  2828. * @param string $name
  2829. * @return void
  2830. * @static
  2831. */
  2832. public static function setDefaultDriver($name)
  2833. {
  2834. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2835. $instance->setDefaultDriver($name);
  2836. }
  2837. /**
  2838. * Disconnect the given disk and remove from local cache.
  2839. *
  2840. * @param string|null $name
  2841. * @return void
  2842. * @static
  2843. */
  2844. public static function purge($name = null)
  2845. {
  2846. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2847. $instance->purge($name);
  2848. }
  2849. /**
  2850. * Register a custom driver creator Closure.
  2851. *
  2852. * @param string $driver
  2853. * @param \Closure $callback
  2854. * @return \Illuminate\Broadcasting\BroadcastManager
  2855. * @static
  2856. */
  2857. public static function extend($driver, $callback)
  2858. {
  2859. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2860. return $instance->extend($driver, $callback);
  2861. }
  2862. /**
  2863. * Get the application instance used by the manager.
  2864. *
  2865. * @return \Illuminate\Contracts\Foundation\Application
  2866. * @static
  2867. */
  2868. public static function getApplication()
  2869. {
  2870. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2871. return $instance->getApplication();
  2872. }
  2873. /**
  2874. * Set the application instance used by the manager.
  2875. *
  2876. * @param \Illuminate\Contracts\Foundation\Application $app
  2877. * @return \Illuminate\Broadcasting\BroadcastManager
  2878. * @static
  2879. */
  2880. public static function setApplication($app)
  2881. {
  2882. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2883. return $instance->setApplication($app);
  2884. }
  2885. /**
  2886. * Forget all of the resolved driver instances.
  2887. *
  2888. * @return \Illuminate\Broadcasting\BroadcastManager
  2889. * @static
  2890. */
  2891. public static function forgetDrivers()
  2892. {
  2893. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2894. return $instance->forgetDrivers();
  2895. }
  2896. }
  2897. /**
  2898. *
  2899. *
  2900. * @see \Illuminate\Contracts\Bus\Dispatcher
  2901. */
  2902. class Bus {
  2903. /**
  2904. * Dispatch a command to its appropriate handler.
  2905. *
  2906. * @param mixed $command
  2907. * @return mixed
  2908. * @static
  2909. */
  2910. public static function dispatch($command)
  2911. {
  2912. /** @var \Illuminate\Bus\Dispatcher $instance */
  2913. return $instance->dispatch($command);
  2914. }
  2915. /**
  2916. * Dispatch a command to its appropriate handler in the current process.
  2917. *
  2918. * Queueable jobs will be dispatched to the "sync" queue.
  2919. *
  2920. * @param mixed $command
  2921. * @param mixed $handler
  2922. * @return mixed
  2923. * @static
  2924. */
  2925. public static function dispatchSync($command, $handler = null)
  2926. {
  2927. /** @var \Illuminate\Bus\Dispatcher $instance */
  2928. return $instance->dispatchSync($command, $handler);
  2929. }
  2930. /**
  2931. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  2932. *
  2933. * @param mixed $command
  2934. * @param mixed $handler
  2935. * @return mixed
  2936. * @static
  2937. */
  2938. public static function dispatchNow($command, $handler = null)
  2939. {
  2940. /** @var \Illuminate\Bus\Dispatcher $instance */
  2941. return $instance->dispatchNow($command, $handler);
  2942. }
  2943. /**
  2944. * Attempt to find the batch with the given ID.
  2945. *
  2946. * @param string $batchId
  2947. * @return \Illuminate\Bus\Batch|null
  2948. * @static
  2949. */
  2950. public static function findBatch($batchId)
  2951. {
  2952. /** @var \Illuminate\Bus\Dispatcher $instance */
  2953. return $instance->findBatch($batchId);
  2954. }
  2955. /**
  2956. * Create a new batch of queueable jobs.
  2957. *
  2958. * @param \Illuminate\Support\Collection|array|mixed $jobs
  2959. * @return \Illuminate\Bus\PendingBatch
  2960. * @static
  2961. */
  2962. public static function batch($jobs)
  2963. {
  2964. /** @var \Illuminate\Bus\Dispatcher $instance */
  2965. return $instance->batch($jobs);
  2966. }
  2967. /**
  2968. * Create a new chain of queueable jobs.
  2969. *
  2970. * @param \Illuminate\Support\Collection|array $jobs
  2971. * @return \Illuminate\Foundation\Bus\PendingChain
  2972. * @static
  2973. */
  2974. public static function chain($jobs)
  2975. {
  2976. /** @var \Illuminate\Bus\Dispatcher $instance */
  2977. return $instance->chain($jobs);
  2978. }
  2979. /**
  2980. * Determine if the given command has a handler.
  2981. *
  2982. * @param mixed $command
  2983. * @return bool
  2984. * @static
  2985. */
  2986. public static function hasCommandHandler($command)
  2987. {
  2988. /** @var \Illuminate\Bus\Dispatcher $instance */
  2989. return $instance->hasCommandHandler($command);
  2990. }
  2991. /**
  2992. * Retrieve the handler for a command.
  2993. *
  2994. * @param mixed $command
  2995. * @return bool|mixed
  2996. * @static
  2997. */
  2998. public static function getCommandHandler($command)
  2999. {
  3000. /** @var \Illuminate\Bus\Dispatcher $instance */
  3001. return $instance->getCommandHandler($command);
  3002. }
  3003. /**
  3004. * Dispatch a command to its appropriate handler behind a queue.
  3005. *
  3006. * @param mixed $command
  3007. * @return mixed
  3008. * @throws \RuntimeException
  3009. * @static
  3010. */
  3011. public static function dispatchToQueue($command)
  3012. {
  3013. /** @var \Illuminate\Bus\Dispatcher $instance */
  3014. return $instance->dispatchToQueue($command);
  3015. }
  3016. /**
  3017. * Dispatch a command to its appropriate handler after the current process.
  3018. *
  3019. * @param mixed $command
  3020. * @param mixed $handler
  3021. * @return void
  3022. * @static
  3023. */
  3024. public static function dispatchAfterResponse($command, $handler = null)
  3025. {
  3026. /** @var \Illuminate\Bus\Dispatcher $instance */
  3027. $instance->dispatchAfterResponse($command, $handler);
  3028. }
  3029. /**
  3030. * Set the pipes through which commands should be piped before dispatching.
  3031. *
  3032. * @param array $pipes
  3033. * @return \Illuminate\Bus\Dispatcher
  3034. * @static
  3035. */
  3036. public static function pipeThrough($pipes)
  3037. {
  3038. /** @var \Illuminate\Bus\Dispatcher $instance */
  3039. return $instance->pipeThrough($pipes);
  3040. }
  3041. /**
  3042. * Map a command to a handler.
  3043. *
  3044. * @param array $map
  3045. * @return \Illuminate\Bus\Dispatcher
  3046. * @static
  3047. */
  3048. public static function map($map)
  3049. {
  3050. /** @var \Illuminate\Bus\Dispatcher $instance */
  3051. return $instance->map($map);
  3052. }
  3053. /**
  3054. * Assert if a job was dispatched based on a truth-test callback.
  3055. *
  3056. * @param string|\Closure $command
  3057. * @param callable|int|null $callback
  3058. * @return void
  3059. * @static
  3060. */
  3061. public static function assertDispatched($command, $callback = null)
  3062. {
  3063. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3064. $instance->assertDispatched($command, $callback);
  3065. }
  3066. /**
  3067. * Assert if a job was pushed a number of times.
  3068. *
  3069. * @param string $command
  3070. * @param int $times
  3071. * @return void
  3072. * @static
  3073. */
  3074. public static function assertDispatchedTimes($command, $times = 1)
  3075. {
  3076. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3077. $instance->assertDispatchedTimes($command, $times);
  3078. }
  3079. /**
  3080. * Determine if a job was dispatched based on a truth-test callback.
  3081. *
  3082. * @param string|\Closure $command
  3083. * @param callable|null $callback
  3084. * @return void
  3085. * @static
  3086. */
  3087. public static function assertNotDispatched($command, $callback = null)
  3088. {
  3089. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3090. $instance->assertNotDispatched($command, $callback);
  3091. }
  3092. /**
  3093. * Assert that no jobs were dispatched.
  3094. *
  3095. * @return void
  3096. * @static
  3097. */
  3098. public static function assertNothingDispatched()
  3099. {
  3100. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3101. $instance->assertNothingDispatched();
  3102. }
  3103. /**
  3104. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3105. *
  3106. * @param string|\Closure $command
  3107. * @param callable|int|null $callback
  3108. * @return void
  3109. * @static
  3110. */
  3111. public static function assertDispatchedSync($command, $callback = null)
  3112. {
  3113. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3114. $instance->assertDispatchedSync($command, $callback);
  3115. }
  3116. /**
  3117. * Assert if a job was pushed synchronously a number of times.
  3118. *
  3119. * @param string $command
  3120. * @param int $times
  3121. * @return void
  3122. * @static
  3123. */
  3124. public static function assertDispatchedSyncTimes($command, $times = 1)
  3125. {
  3126. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3127. $instance->assertDispatchedSyncTimes($command, $times);
  3128. }
  3129. /**
  3130. * Determine if a job was dispatched based on a truth-test callback.
  3131. *
  3132. * @param string|\Closure $command
  3133. * @param callable|null $callback
  3134. * @return void
  3135. * @static
  3136. */
  3137. public static function assertNotDispatchedSync($command, $callback = null)
  3138. {
  3139. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3140. $instance->assertNotDispatchedSync($command, $callback);
  3141. }
  3142. /**
  3143. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3144. *
  3145. * @param string|\Closure $command
  3146. * @param callable|int|null $callback
  3147. * @return void
  3148. * @static
  3149. */
  3150. public static function assertDispatchedAfterResponse($command, $callback = null)
  3151. {
  3152. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3153. $instance->assertDispatchedAfterResponse($command, $callback);
  3154. }
  3155. /**
  3156. * Assert if a job was pushed after the response was sent a number of times.
  3157. *
  3158. * @param string $command
  3159. * @param int $times
  3160. * @return void
  3161. * @static
  3162. */
  3163. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3164. {
  3165. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3166. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3167. }
  3168. /**
  3169. * Determine if a job was dispatched based on a truth-test callback.
  3170. *
  3171. * @param string|\Closure $command
  3172. * @param callable|null $callback
  3173. * @return void
  3174. * @static
  3175. */
  3176. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3177. {
  3178. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3179. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3180. }
  3181. /**
  3182. * Assert if a chain of jobs was dispatched.
  3183. *
  3184. * @param array $expectedChain
  3185. * @return void
  3186. * @static
  3187. */
  3188. public static function assertChained($expectedChain)
  3189. {
  3190. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3191. $instance->assertChained($expectedChain);
  3192. }
  3193. /**
  3194. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3195. *
  3196. * @param string|\Closure $command
  3197. * @param callable|null $callback
  3198. * @return void
  3199. * @static
  3200. */
  3201. public static function assertDispatchedWithoutChain($command, $callback = null)
  3202. {
  3203. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3204. $instance->assertDispatchedWithoutChain($command, $callback);
  3205. }
  3206. /**
  3207. * Assert if a batch was dispatched based on a truth-test callback.
  3208. *
  3209. * @param callable $callback
  3210. * @return void
  3211. * @static
  3212. */
  3213. public static function assertBatched($callback)
  3214. {
  3215. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3216. $instance->assertBatched($callback);
  3217. }
  3218. /**
  3219. * Assert the number of batches that have been dispatched.
  3220. *
  3221. * @param int $count
  3222. * @return void
  3223. * @static
  3224. */
  3225. public static function assertBatchCount($count)
  3226. {
  3227. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3228. $instance->assertBatchCount($count);
  3229. }
  3230. /**
  3231. * Get all of the jobs matching a truth-test callback.
  3232. *
  3233. * @param string $command
  3234. * @param callable|null $callback
  3235. * @return \Illuminate\Support\Collection
  3236. * @static
  3237. */
  3238. public static function dispatched($command, $callback = null)
  3239. {
  3240. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3241. return $instance->dispatched($command, $callback);
  3242. }
  3243. /**
  3244. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3245. *
  3246. * @param string $command
  3247. * @param callable|null $callback
  3248. * @return \Illuminate\Support\Collection
  3249. * @static
  3250. */
  3251. public static function dispatchedSync($command, $callback = null)
  3252. {
  3253. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3254. return $instance->dispatchedSync($command, $callback);
  3255. }
  3256. /**
  3257. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3258. *
  3259. * @param string $command
  3260. * @param callable|null $callback
  3261. * @return \Illuminate\Support\Collection
  3262. * @static
  3263. */
  3264. public static function dispatchedAfterResponse($command, $callback = null)
  3265. {
  3266. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3267. return $instance->dispatchedAfterResponse($command, $callback);
  3268. }
  3269. /**
  3270. * Get all of the pending batches matching a truth-test callback.
  3271. *
  3272. * @param callable $callback
  3273. * @return \Illuminate\Support\Collection
  3274. * @static
  3275. */
  3276. public static function batched($callback)
  3277. {
  3278. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3279. return $instance->batched($callback);
  3280. }
  3281. /**
  3282. * Determine if there are any stored commands for a given class.
  3283. *
  3284. * @param string $command
  3285. * @return bool
  3286. * @static
  3287. */
  3288. public static function hasDispatched($command)
  3289. {
  3290. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3291. return $instance->hasDispatched($command);
  3292. }
  3293. /**
  3294. * Determine if there are any stored commands for a given class.
  3295. *
  3296. * @param string $command
  3297. * @return bool
  3298. * @static
  3299. */
  3300. public static function hasDispatchedSync($command)
  3301. {
  3302. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3303. return $instance->hasDispatchedSync($command);
  3304. }
  3305. /**
  3306. * Determine if there are any stored commands for a given class.
  3307. *
  3308. * @param string $command
  3309. * @return bool
  3310. * @static
  3311. */
  3312. public static function hasDispatchedAfterResponse($command)
  3313. {
  3314. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3315. return $instance->hasDispatchedAfterResponse($command);
  3316. }
  3317. /**
  3318. * Record the fake pending batch dispatch.
  3319. *
  3320. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  3321. * @return \Illuminate\Bus\Batch
  3322. * @static
  3323. */
  3324. public static function recordPendingBatch($pendingBatch)
  3325. {
  3326. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3327. return $instance->recordPendingBatch($pendingBatch);
  3328. }
  3329. }
  3330. /**
  3331. *
  3332. *
  3333. * @see \Illuminate\Cache\CacheManager
  3334. * @see \Illuminate\Cache\Repository
  3335. */
  3336. class Cache {
  3337. /**
  3338. * Get a cache store instance by name, wrapped in a repository.
  3339. *
  3340. * @param string|null $name
  3341. * @return \Illuminate\Contracts\Cache\Repository
  3342. * @static
  3343. */
  3344. public static function store($name = null)
  3345. {
  3346. /** @var \Illuminate\Cache\CacheManager $instance */
  3347. return $instance->store($name);
  3348. }
  3349. /**
  3350. * Get a cache driver instance.
  3351. *
  3352. * @param string|null $driver
  3353. * @return \Illuminate\Contracts\Cache\Repository
  3354. * @static
  3355. */
  3356. public static function driver($driver = null)
  3357. {
  3358. /** @var \Illuminate\Cache\CacheManager $instance */
  3359. return $instance->driver($driver);
  3360. }
  3361. /**
  3362. * Create a new cache repository with the given implementation.
  3363. *
  3364. * @param \Illuminate\Contracts\Cache\Store $store
  3365. * @return \Illuminate\Cache\Repository
  3366. * @static
  3367. */
  3368. public static function repository($store)
  3369. {
  3370. /** @var \Illuminate\Cache\CacheManager $instance */
  3371. return $instance->repository($store);
  3372. }
  3373. /**
  3374. * Re-set the event dispatcher on all resolved cache repositories.
  3375. *
  3376. * @return void
  3377. * @static
  3378. */
  3379. public static function refreshEventDispatcher()
  3380. {
  3381. /** @var \Illuminate\Cache\CacheManager $instance */
  3382. $instance->refreshEventDispatcher();
  3383. }
  3384. /**
  3385. * Get the default cache driver name.
  3386. *
  3387. * @return string
  3388. * @static
  3389. */
  3390. public static function getDefaultDriver()
  3391. {
  3392. /** @var \Illuminate\Cache\CacheManager $instance */
  3393. return $instance->getDefaultDriver();
  3394. }
  3395. /**
  3396. * Set the default cache driver name.
  3397. *
  3398. * @param string $name
  3399. * @return void
  3400. * @static
  3401. */
  3402. public static function setDefaultDriver($name)
  3403. {
  3404. /** @var \Illuminate\Cache\CacheManager $instance */
  3405. $instance->setDefaultDriver($name);
  3406. }
  3407. /**
  3408. * Unset the given driver instances.
  3409. *
  3410. * @param array|string|null $name
  3411. * @return \Illuminate\Cache\CacheManager
  3412. * @static
  3413. */
  3414. public static function forgetDriver($name = null)
  3415. {
  3416. /** @var \Illuminate\Cache\CacheManager $instance */
  3417. return $instance->forgetDriver($name);
  3418. }
  3419. /**
  3420. * Disconnect the given driver and remove from local cache.
  3421. *
  3422. * @param string|null $name
  3423. * @return void
  3424. * @static
  3425. */
  3426. public static function purge($name = null)
  3427. {
  3428. /** @var \Illuminate\Cache\CacheManager $instance */
  3429. $instance->purge($name);
  3430. }
  3431. /**
  3432. * Register a custom driver creator Closure.
  3433. *
  3434. * @param string $driver
  3435. * @param \Closure $callback
  3436. * @return \Illuminate\Cache\CacheManager
  3437. * @static
  3438. */
  3439. public static function extend($driver, $callback)
  3440. {
  3441. /** @var \Illuminate\Cache\CacheManager $instance */
  3442. return $instance->extend($driver, $callback);
  3443. }
  3444. /**
  3445. * Determine if an item exists in the cache.
  3446. *
  3447. * @param string $key
  3448. * @return bool
  3449. * @static
  3450. */
  3451. public static function has($key)
  3452. {
  3453. /** @var \Illuminate\Cache\Repository $instance */
  3454. return $instance->has($key);
  3455. }
  3456. /**
  3457. * Determine if an item doesn't exist in the cache.
  3458. *
  3459. * @param string $key
  3460. * @return bool
  3461. * @static
  3462. */
  3463. public static function missing($key)
  3464. {
  3465. /** @var \Illuminate\Cache\Repository $instance */
  3466. return $instance->missing($key);
  3467. }
  3468. /**
  3469. * Retrieve an item from the cache by key.
  3470. *
  3471. * @param string $key
  3472. * @param mixed $default
  3473. * @return mixed
  3474. * @static
  3475. */
  3476. public static function get($key, $default = null)
  3477. {
  3478. /** @var \Illuminate\Cache\Repository $instance */
  3479. return $instance->get($key, $default);
  3480. }
  3481. /**
  3482. * Retrieve multiple items from the cache by key.
  3483. *
  3484. * Items not found in the cache will have a null value.
  3485. *
  3486. * @param array $keys
  3487. * @return array
  3488. * @static
  3489. */
  3490. public static function many($keys)
  3491. {
  3492. /** @var \Illuminate\Cache\Repository $instance */
  3493. return $instance->many($keys);
  3494. }
  3495. /**
  3496. * Obtains multiple cache items by their unique keys.
  3497. *
  3498. * @return iterable
  3499. * @param iterable $keys A list of keys that can obtained in a single operation.
  3500. * @param mixed $default Default value to return for keys that do not exist.
  3501. * @return iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  3502. * @throws \Psr\SimpleCache\InvalidArgumentException
  3503. * MUST be thrown if $keys is neither an array nor a Traversable,
  3504. * or if any of the $keys are not a legal value.
  3505. * @static
  3506. */
  3507. public static function getMultiple($keys, $default = null)
  3508. {
  3509. /** @var \Illuminate\Cache\Repository $instance */
  3510. return $instance->getMultiple($keys, $default);
  3511. }
  3512. /**
  3513. * Retrieve an item from the cache and delete it.
  3514. *
  3515. * @param string $key
  3516. * @param mixed $default
  3517. * @return mixed
  3518. * @static
  3519. */
  3520. public static function pull($key, $default = null)
  3521. {
  3522. /** @var \Illuminate\Cache\Repository $instance */
  3523. return $instance->pull($key, $default);
  3524. }
  3525. /**
  3526. * Store an item in the cache.
  3527. *
  3528. * @param string $key
  3529. * @param mixed $value
  3530. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3531. * @return bool
  3532. * @static
  3533. */
  3534. public static function put($key, $value, $ttl = null)
  3535. {
  3536. /** @var \Illuminate\Cache\Repository $instance */
  3537. return $instance->put($key, $value, $ttl);
  3538. }
  3539. /**
  3540. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3541. *
  3542. * @return bool
  3543. * @param string $key The key of the item to store.
  3544. * @param mixed $value The value of the item to store, must be serializable.
  3545. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3546. * the driver supports TTL then the library may set a default value
  3547. * for it or let the driver take care of that.
  3548. * @return bool True on success and false on failure.
  3549. * @throws \Psr\SimpleCache\InvalidArgumentException
  3550. * MUST be thrown if the $key string is not a legal value.
  3551. * @static
  3552. */
  3553. public static function set($key, $value, $ttl = null)
  3554. {
  3555. /** @var \Illuminate\Cache\Repository $instance */
  3556. return $instance->set($key, $value, $ttl);
  3557. }
  3558. /**
  3559. * Store multiple items in the cache for a given number of seconds.
  3560. *
  3561. * @param array $values
  3562. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3563. * @return bool
  3564. * @static
  3565. */
  3566. public static function putMany($values, $ttl = null)
  3567. {
  3568. /** @var \Illuminate\Cache\Repository $instance */
  3569. return $instance->putMany($values, $ttl);
  3570. }
  3571. /**
  3572. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3573. *
  3574. * @return bool
  3575. * @param iterable $values A list of key => value pairs for a multiple-set operation.
  3576. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3577. * the driver supports TTL then the library may set a default value
  3578. * for it or let the driver take care of that.
  3579. * @return bool True on success and false on failure.
  3580. * @throws \Psr\SimpleCache\InvalidArgumentException
  3581. * MUST be thrown if $values is neither an array nor a Traversable,
  3582. * or if any of the $values are not a legal value.
  3583. * @static
  3584. */
  3585. public static function setMultiple($values, $ttl = null)
  3586. {
  3587. /** @var \Illuminate\Cache\Repository $instance */
  3588. return $instance->setMultiple($values, $ttl);
  3589. }
  3590. /**
  3591. * Store an item in the cache if the key does not exist.
  3592. *
  3593. * @param string $key
  3594. * @param mixed $value
  3595. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3596. * @return bool
  3597. * @static
  3598. */
  3599. public static function add($key, $value, $ttl = null)
  3600. {
  3601. /** @var \Illuminate\Cache\Repository $instance */
  3602. return $instance->add($key, $value, $ttl);
  3603. }
  3604. /**
  3605. * Increment the value of an item in the cache.
  3606. *
  3607. * @param string $key
  3608. * @param mixed $value
  3609. * @return int|bool
  3610. * @static
  3611. */
  3612. public static function increment($key, $value = 1)
  3613. {
  3614. /** @var \Illuminate\Cache\Repository $instance */
  3615. return $instance->increment($key, $value);
  3616. }
  3617. /**
  3618. * Decrement the value of an item in the cache.
  3619. *
  3620. * @param string $key
  3621. * @param mixed $value
  3622. * @return int|bool
  3623. * @static
  3624. */
  3625. public static function decrement($key, $value = 1)
  3626. {
  3627. /** @var \Illuminate\Cache\Repository $instance */
  3628. return $instance->decrement($key, $value);
  3629. }
  3630. /**
  3631. * Store an item in the cache indefinitely.
  3632. *
  3633. * @param string $key
  3634. * @param mixed $value
  3635. * @return bool
  3636. * @static
  3637. */
  3638. public static function forever($key, $value)
  3639. {
  3640. /** @var \Illuminate\Cache\Repository $instance */
  3641. return $instance->forever($key, $value);
  3642. }
  3643. /**
  3644. * Get an item from the cache, or execute the given Closure and store the result.
  3645. *
  3646. * @param string $key
  3647. * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
  3648. * @param \Closure $callback
  3649. * @return mixed
  3650. * @static
  3651. */
  3652. public static function remember($key, $ttl, $callback)
  3653. {
  3654. /** @var \Illuminate\Cache\Repository $instance */
  3655. return $instance->remember($key, $ttl, $callback);
  3656. }
  3657. /**
  3658. * Get an item from the cache, or execute the given Closure and store the result forever.
  3659. *
  3660. * @param string $key
  3661. * @param \Closure $callback
  3662. * @return mixed
  3663. * @static
  3664. */
  3665. public static function sear($key, $callback)
  3666. {
  3667. /** @var \Illuminate\Cache\Repository $instance */
  3668. return $instance->sear($key, $callback);
  3669. }
  3670. /**
  3671. * Get an item from the cache, or execute the given Closure and store the result forever.
  3672. *
  3673. * @param string $key
  3674. * @param \Closure $callback
  3675. * @return mixed
  3676. * @static
  3677. */
  3678. public static function rememberForever($key, $callback)
  3679. {
  3680. /** @var \Illuminate\Cache\Repository $instance */
  3681. return $instance->rememberForever($key, $callback);
  3682. }
  3683. /**
  3684. * Remove an item from the cache.
  3685. *
  3686. * @param string $key
  3687. * @return bool
  3688. * @static
  3689. */
  3690. public static function forget($key)
  3691. {
  3692. /** @var \Illuminate\Cache\Repository $instance */
  3693. return $instance->forget($key);
  3694. }
  3695. /**
  3696. * Delete an item from the cache by its unique key.
  3697. *
  3698. * @return bool
  3699. * @param string $key The unique cache key of the item to delete.
  3700. * @return bool True if the item was successfully removed. False if there was an error.
  3701. * @throws \Psr\SimpleCache\InvalidArgumentException
  3702. * MUST be thrown if the $key string is not a legal value.
  3703. * @static
  3704. */
  3705. public static function delete($key)
  3706. {
  3707. /** @var \Illuminate\Cache\Repository $instance */
  3708. return $instance->delete($key);
  3709. }
  3710. /**
  3711. * Deletes multiple cache items in a single operation.
  3712. *
  3713. * @return bool
  3714. * @param iterable $keys A list of string-based keys to be deleted.
  3715. * @return bool True if the items were successfully removed. False if there was an error.
  3716. * @throws \Psr\SimpleCache\InvalidArgumentException
  3717. * MUST be thrown if $keys is neither an array nor a Traversable,
  3718. * or if any of the $keys are not a legal value.
  3719. * @static
  3720. */
  3721. public static function deleteMultiple($keys)
  3722. {
  3723. /** @var \Illuminate\Cache\Repository $instance */
  3724. return $instance->deleteMultiple($keys);
  3725. }
  3726. /**
  3727. * Wipes clean the entire cache's keys.
  3728. *
  3729. * @return bool
  3730. * @return bool True on success and false on failure.
  3731. * @static
  3732. */
  3733. public static function clear()
  3734. {
  3735. /** @var \Illuminate\Cache\Repository $instance */
  3736. return $instance->clear();
  3737. }
  3738. /**
  3739. * Begin executing a new tags operation if the store supports it.
  3740. *
  3741. * @param array|mixed $names
  3742. * @return \Illuminate\Cache\TaggedCache
  3743. * @throws \BadMethodCallException
  3744. * @static
  3745. */
  3746. public static function tags($names)
  3747. {
  3748. /** @var \Illuminate\Cache\Repository $instance */
  3749. return $instance->tags($names);
  3750. }
  3751. /**
  3752. * Determine if the current store supports tags.
  3753. *
  3754. * @return bool
  3755. * @static
  3756. */
  3757. public static function supportsTags()
  3758. {
  3759. /** @var \Illuminate\Cache\Repository $instance */
  3760. return $instance->supportsTags();
  3761. }
  3762. /**
  3763. * Get the default cache time.
  3764. *
  3765. * @return int|null
  3766. * @static
  3767. */
  3768. public static function getDefaultCacheTime()
  3769. {
  3770. /** @var \Illuminate\Cache\Repository $instance */
  3771. return $instance->getDefaultCacheTime();
  3772. }
  3773. /**
  3774. * Set the default cache time in seconds.
  3775. *
  3776. * @param int|null $seconds
  3777. * @return \Illuminate\Cache\Repository
  3778. * @static
  3779. */
  3780. public static function setDefaultCacheTime($seconds)
  3781. {
  3782. /** @var \Illuminate\Cache\Repository $instance */
  3783. return $instance->setDefaultCacheTime($seconds);
  3784. }
  3785. /**
  3786. * Get the cache store implementation.
  3787. *
  3788. * @return \Illuminate\Contracts\Cache\Store
  3789. * @static
  3790. */
  3791. public static function getStore()
  3792. {
  3793. /** @var \Illuminate\Cache\Repository $instance */
  3794. return $instance->getStore();
  3795. }
  3796. /**
  3797. * Get the event dispatcher instance.
  3798. *
  3799. * @return \Illuminate\Contracts\Events\Dispatcher
  3800. * @static
  3801. */
  3802. public static function getEventDispatcher()
  3803. {
  3804. /** @var \Illuminate\Cache\Repository $instance */
  3805. return $instance->getEventDispatcher();
  3806. }
  3807. /**
  3808. * Set the event dispatcher instance.
  3809. *
  3810. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3811. * @return void
  3812. * @static
  3813. */
  3814. public static function setEventDispatcher($events)
  3815. {
  3816. /** @var \Illuminate\Cache\Repository $instance */
  3817. $instance->setEventDispatcher($events);
  3818. }
  3819. /**
  3820. * Determine if a cached value exists.
  3821. *
  3822. * @param string $key
  3823. * @return bool
  3824. * @static
  3825. */
  3826. public static function offsetExists($key)
  3827. {
  3828. /** @var \Illuminate\Cache\Repository $instance */
  3829. return $instance->offsetExists($key);
  3830. }
  3831. /**
  3832. * Retrieve an item from the cache by key.
  3833. *
  3834. * @param string $key
  3835. * @return mixed
  3836. * @static
  3837. */
  3838. public static function offsetGet($key)
  3839. {
  3840. /** @var \Illuminate\Cache\Repository $instance */
  3841. return $instance->offsetGet($key);
  3842. }
  3843. /**
  3844. * Store an item in the cache for the default time.
  3845. *
  3846. * @param string $key
  3847. * @param mixed $value
  3848. * @return void
  3849. * @static
  3850. */
  3851. public static function offsetSet($key, $value)
  3852. {
  3853. /** @var \Illuminate\Cache\Repository $instance */
  3854. $instance->offsetSet($key, $value);
  3855. }
  3856. /**
  3857. * Remove an item from the cache.
  3858. *
  3859. * @param string $key
  3860. * @return void
  3861. * @static
  3862. */
  3863. public static function offsetUnset($key)
  3864. {
  3865. /** @var \Illuminate\Cache\Repository $instance */
  3866. $instance->offsetUnset($key);
  3867. }
  3868. /**
  3869. * Register a custom macro.
  3870. *
  3871. * @param string $name
  3872. * @param object|callable $macro
  3873. * @return void
  3874. * @static
  3875. */
  3876. public static function macro($name, $macro)
  3877. {
  3878. \Illuminate\Cache\Repository::macro($name, $macro);
  3879. }
  3880. /**
  3881. * Mix another object into the class.
  3882. *
  3883. * @param object $mixin
  3884. * @param bool $replace
  3885. * @return void
  3886. * @throws \ReflectionException
  3887. * @static
  3888. */
  3889. public static function mixin($mixin, $replace = true)
  3890. {
  3891. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3892. }
  3893. /**
  3894. * Checks if macro is registered.
  3895. *
  3896. * @param string $name
  3897. * @return bool
  3898. * @static
  3899. */
  3900. public static function hasMacro($name)
  3901. {
  3902. return \Illuminate\Cache\Repository::hasMacro($name);
  3903. }
  3904. /**
  3905. * Flush the existing macros.
  3906. *
  3907. * @return void
  3908. * @static
  3909. */
  3910. public static function flushMacros()
  3911. {
  3912. \Illuminate\Cache\Repository::flushMacros();
  3913. }
  3914. /**
  3915. * Dynamically handle calls to the class.
  3916. *
  3917. * @param string $method
  3918. * @param array $parameters
  3919. * @return mixed
  3920. * @throws \BadMethodCallException
  3921. * @static
  3922. */
  3923. public static function macroCall($method, $parameters)
  3924. {
  3925. /** @var \Illuminate\Cache\Repository $instance */
  3926. return $instance->macroCall($method, $parameters);
  3927. }
  3928. /**
  3929. * Remove all items from the cache.
  3930. *
  3931. * @return bool
  3932. * @static
  3933. */
  3934. public static function flush()
  3935. {
  3936. /** @var \Illuminate\Cache\FileStore $instance */
  3937. return $instance->flush();
  3938. }
  3939. /**
  3940. * Get the Filesystem instance.
  3941. *
  3942. * @return \Illuminate\Filesystem\Filesystem
  3943. * @static
  3944. */
  3945. public static function getFilesystem()
  3946. {
  3947. /** @var \Illuminate\Cache\FileStore $instance */
  3948. return $instance->getFilesystem();
  3949. }
  3950. /**
  3951. * Get the working directory of the cache.
  3952. *
  3953. * @return string
  3954. * @static
  3955. */
  3956. public static function getDirectory()
  3957. {
  3958. /** @var \Illuminate\Cache\FileStore $instance */
  3959. return $instance->getDirectory();
  3960. }
  3961. /**
  3962. * Get the cache key prefix.
  3963. *
  3964. * @return string
  3965. * @static
  3966. */
  3967. public static function getPrefix()
  3968. {
  3969. /** @var \Illuminate\Cache\FileStore $instance */
  3970. return $instance->getPrefix();
  3971. }
  3972. /**
  3973. * Get a lock instance.
  3974. *
  3975. * @param string $name
  3976. * @param int $seconds
  3977. * @param string|null $owner
  3978. * @return \Illuminate\Contracts\Cache\Lock
  3979. * @static
  3980. */
  3981. public static function lock($name, $seconds = 0, $owner = null)
  3982. {
  3983. /** @var \Illuminate\Cache\FileStore $instance */
  3984. return $instance->lock($name, $seconds, $owner);
  3985. }
  3986. /**
  3987. * Restore a lock instance using the owner identifier.
  3988. *
  3989. * @param string $name
  3990. * @param string $owner
  3991. * @return \Illuminate\Contracts\Cache\Lock
  3992. * @static
  3993. */
  3994. public static function restoreLock($name, $owner)
  3995. {
  3996. /** @var \Illuminate\Cache\FileStore $instance */
  3997. return $instance->restoreLock($name, $owner);
  3998. }
  3999. }
  4000. /**
  4001. *
  4002. *
  4003. * @see \Illuminate\Config\Repository
  4004. */
  4005. class Config {
  4006. /**
  4007. * Determine if the given configuration value exists.
  4008. *
  4009. * @param string $key
  4010. * @return bool
  4011. * @static
  4012. */
  4013. public static function has($key)
  4014. {
  4015. /** @var \Illuminate\Config\Repository $instance */
  4016. return $instance->has($key);
  4017. }
  4018. /**
  4019. * Get the specified configuration value.
  4020. *
  4021. * @param array|string $key
  4022. * @param mixed $default
  4023. * @return mixed
  4024. * @static
  4025. */
  4026. public static function get($key, $default = null)
  4027. {
  4028. /** @var \Illuminate\Config\Repository $instance */
  4029. return $instance->get($key, $default);
  4030. }
  4031. /**
  4032. * Get many configuration values.
  4033. *
  4034. * @param array $keys
  4035. * @return array
  4036. * @static
  4037. */
  4038. public static function getMany($keys)
  4039. {
  4040. /** @var \Illuminate\Config\Repository $instance */
  4041. return $instance->getMany($keys);
  4042. }
  4043. /**
  4044. * Set a given configuration value.
  4045. *
  4046. * @param array|string $key
  4047. * @param mixed $value
  4048. * @return void
  4049. * @static
  4050. */
  4051. public static function set($key, $value = null)
  4052. {
  4053. /** @var \Illuminate\Config\Repository $instance */
  4054. $instance->set($key, $value);
  4055. }
  4056. /**
  4057. * Prepend a value onto an array configuration value.
  4058. *
  4059. * @param string $key
  4060. * @param mixed $value
  4061. * @return void
  4062. * @static
  4063. */
  4064. public static function prepend($key, $value)
  4065. {
  4066. /** @var \Illuminate\Config\Repository $instance */
  4067. $instance->prepend($key, $value);
  4068. }
  4069. /**
  4070. * Push a value onto an array configuration value.
  4071. *
  4072. * @param string $key
  4073. * @param mixed $value
  4074. * @return void
  4075. * @static
  4076. */
  4077. public static function push($key, $value)
  4078. {
  4079. /** @var \Illuminate\Config\Repository $instance */
  4080. $instance->push($key, $value);
  4081. }
  4082. /**
  4083. * Get all of the configuration items for the application.
  4084. *
  4085. * @return array
  4086. * @static
  4087. */
  4088. public static function all()
  4089. {
  4090. /** @var \Illuminate\Config\Repository $instance */
  4091. return $instance->all();
  4092. }
  4093. /**
  4094. * Determine if the given configuration option exists.
  4095. *
  4096. * @param string $key
  4097. * @return bool
  4098. * @static
  4099. */
  4100. public static function offsetExists($key)
  4101. {
  4102. /** @var \Illuminate\Config\Repository $instance */
  4103. return $instance->offsetExists($key);
  4104. }
  4105. /**
  4106. * Get a configuration option.
  4107. *
  4108. * @param string $key
  4109. * @return mixed
  4110. * @static
  4111. */
  4112. public static function offsetGet($key)
  4113. {
  4114. /** @var \Illuminate\Config\Repository $instance */
  4115. return $instance->offsetGet($key);
  4116. }
  4117. /**
  4118. * Set a configuration option.
  4119. *
  4120. * @param string $key
  4121. * @param mixed $value
  4122. * @return void
  4123. * @static
  4124. */
  4125. public static function offsetSet($key, $value)
  4126. {
  4127. /** @var \Illuminate\Config\Repository $instance */
  4128. $instance->offsetSet($key, $value);
  4129. }
  4130. /**
  4131. * Unset a configuration option.
  4132. *
  4133. * @param string $key
  4134. * @return void
  4135. * @static
  4136. */
  4137. public static function offsetUnset($key)
  4138. {
  4139. /** @var \Illuminate\Config\Repository $instance */
  4140. $instance->offsetUnset($key);
  4141. }
  4142. }
  4143. /**
  4144. *
  4145. *
  4146. * @see \Illuminate\Cookie\CookieJar
  4147. */
  4148. class Cookie {
  4149. /**
  4150. * Create a new cookie instance.
  4151. *
  4152. * @param string $name
  4153. * @param string $value
  4154. * @param int $minutes
  4155. * @param string|null $path
  4156. * @param string|null $domain
  4157. * @param bool|null $secure
  4158. * @param bool $httpOnly
  4159. * @param bool $raw
  4160. * @param string|null $sameSite
  4161. * @return \Symfony\Component\HttpFoundation\Cookie
  4162. * @static
  4163. */
  4164. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4165. {
  4166. /** @var \Illuminate\Cookie\CookieJar $instance */
  4167. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4168. }
  4169. /**
  4170. * Create a cookie that lasts "forever" (five years).
  4171. *
  4172. * @param string $name
  4173. * @param string $value
  4174. * @param string|null $path
  4175. * @param string|null $domain
  4176. * @param bool|null $secure
  4177. * @param bool $httpOnly
  4178. * @param bool $raw
  4179. * @param string|null $sameSite
  4180. * @return \Symfony\Component\HttpFoundation\Cookie
  4181. * @static
  4182. */
  4183. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4184. {
  4185. /** @var \Illuminate\Cookie\CookieJar $instance */
  4186. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4187. }
  4188. /**
  4189. * Expire the given cookie.
  4190. *
  4191. * @param string $name
  4192. * @param string|null $path
  4193. * @param string|null $domain
  4194. * @return \Symfony\Component\HttpFoundation\Cookie
  4195. * @static
  4196. */
  4197. public static function forget($name, $path = null, $domain = null)
  4198. {
  4199. /** @var \Illuminate\Cookie\CookieJar $instance */
  4200. return $instance->forget($name, $path, $domain);
  4201. }
  4202. /**
  4203. * Determine if a cookie has been queued.
  4204. *
  4205. * @param string $key
  4206. * @param string|null $path
  4207. * @return bool
  4208. * @static
  4209. */
  4210. public static function hasQueued($key, $path = null)
  4211. {
  4212. /** @var \Illuminate\Cookie\CookieJar $instance */
  4213. return $instance->hasQueued($key, $path);
  4214. }
  4215. /**
  4216. * Get a queued cookie instance.
  4217. *
  4218. * @param string $key
  4219. * @param mixed $default
  4220. * @param string|null $path
  4221. * @return \Symfony\Component\HttpFoundation\Cookie|null
  4222. * @static
  4223. */
  4224. public static function queued($key, $default = null, $path = null)
  4225. {
  4226. /** @var \Illuminate\Cookie\CookieJar $instance */
  4227. return $instance->queued($key, $default, $path);
  4228. }
  4229. /**
  4230. * Queue a cookie to send with the next response.
  4231. *
  4232. * @param array $parameters
  4233. * @return void
  4234. * @static
  4235. */
  4236. public static function queue(...$parameters)
  4237. {
  4238. /** @var \Illuminate\Cookie\CookieJar $instance */
  4239. $instance->queue(...$parameters);
  4240. }
  4241. /**
  4242. * Queue a cookie to expire with the next response.
  4243. *
  4244. * @param string $name
  4245. * @param string|null $path
  4246. * @param string|null $domain
  4247. * @return void
  4248. * @static
  4249. */
  4250. public static function expire($name, $path = null, $domain = null)
  4251. {
  4252. /** @var \Illuminate\Cookie\CookieJar $instance */
  4253. $instance->expire($name, $path, $domain);
  4254. }
  4255. /**
  4256. * Remove a cookie from the queue.
  4257. *
  4258. * @param string $name
  4259. * @param string|null $path
  4260. * @return void
  4261. * @static
  4262. */
  4263. public static function unqueue($name, $path = null)
  4264. {
  4265. /** @var \Illuminate\Cookie\CookieJar $instance */
  4266. $instance->unqueue($name, $path);
  4267. }
  4268. /**
  4269. * Set the default path and domain for the jar.
  4270. *
  4271. * @param string $path
  4272. * @param string $domain
  4273. * @param bool $secure
  4274. * @param string|null $sameSite
  4275. * @return \Illuminate\Cookie\CookieJar
  4276. * @static
  4277. */
  4278. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  4279. {
  4280. /** @var \Illuminate\Cookie\CookieJar $instance */
  4281. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  4282. }
  4283. /**
  4284. * Get the cookies which have been queued for the next request.
  4285. *
  4286. * @return \Symfony\Component\HttpFoundation\Cookie[]
  4287. * @static
  4288. */
  4289. public static function getQueuedCookies()
  4290. {
  4291. /** @var \Illuminate\Cookie\CookieJar $instance */
  4292. return $instance->getQueuedCookies();
  4293. }
  4294. /**
  4295. * Flush the cookies which have been queued for the next request.
  4296. *
  4297. * @return \Illuminate\Cookie\CookieJar
  4298. * @static
  4299. */
  4300. public static function flushQueuedCookies()
  4301. {
  4302. /** @var \Illuminate\Cookie\CookieJar $instance */
  4303. return $instance->flushQueuedCookies();
  4304. }
  4305. /**
  4306. * Register a custom macro.
  4307. *
  4308. * @param string $name
  4309. * @param object|callable $macro
  4310. * @return void
  4311. * @static
  4312. */
  4313. public static function macro($name, $macro)
  4314. {
  4315. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  4316. }
  4317. /**
  4318. * Mix another object into the class.
  4319. *
  4320. * @param object $mixin
  4321. * @param bool $replace
  4322. * @return void
  4323. * @throws \ReflectionException
  4324. * @static
  4325. */
  4326. public static function mixin($mixin, $replace = true)
  4327. {
  4328. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  4329. }
  4330. /**
  4331. * Checks if macro is registered.
  4332. *
  4333. * @param string $name
  4334. * @return bool
  4335. * @static
  4336. */
  4337. public static function hasMacro($name)
  4338. {
  4339. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  4340. }
  4341. /**
  4342. * Flush the existing macros.
  4343. *
  4344. * @return void
  4345. * @static
  4346. */
  4347. public static function flushMacros()
  4348. {
  4349. \Illuminate\Cookie\CookieJar::flushMacros();
  4350. }
  4351. }
  4352. /**
  4353. *
  4354. *
  4355. * @see \Illuminate\Encryption\Encrypter
  4356. */
  4357. class Crypt {
  4358. /**
  4359. * Determine if the given key and cipher combination is valid.
  4360. *
  4361. * @param string $key
  4362. * @param string $cipher
  4363. * @return bool
  4364. * @static
  4365. */
  4366. public static function supported($key, $cipher)
  4367. {
  4368. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  4369. }
  4370. /**
  4371. * Create a new encryption key for the given cipher.
  4372. *
  4373. * @param string $cipher
  4374. * @return string
  4375. * @static
  4376. */
  4377. public static function generateKey($cipher)
  4378. {
  4379. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  4380. }
  4381. /**
  4382. * Encrypt the given value.
  4383. *
  4384. * @param mixed $value
  4385. * @param bool $serialize
  4386. * @return string
  4387. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4388. * @static
  4389. */
  4390. public static function encrypt($value, $serialize = true)
  4391. {
  4392. /** @var \Illuminate\Encryption\Encrypter $instance */
  4393. return $instance->encrypt($value, $serialize);
  4394. }
  4395. /**
  4396. * Encrypt a string without serialization.
  4397. *
  4398. * @param string $value
  4399. * @return string
  4400. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4401. * @static
  4402. */
  4403. public static function encryptString($value)
  4404. {
  4405. /** @var \Illuminate\Encryption\Encrypter $instance */
  4406. return $instance->encryptString($value);
  4407. }
  4408. /**
  4409. * Decrypt the given value.
  4410. *
  4411. * @param string $payload
  4412. * @param bool $unserialize
  4413. * @return mixed
  4414. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4415. * @static
  4416. */
  4417. public static function decrypt($payload, $unserialize = true)
  4418. {
  4419. /** @var \Illuminate\Encryption\Encrypter $instance */
  4420. return $instance->decrypt($payload, $unserialize);
  4421. }
  4422. /**
  4423. * Decrypt the given string without unserialization.
  4424. *
  4425. * @param string $payload
  4426. * @return string
  4427. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4428. * @static
  4429. */
  4430. public static function decryptString($payload)
  4431. {
  4432. /** @var \Illuminate\Encryption\Encrypter $instance */
  4433. return $instance->decryptString($payload);
  4434. }
  4435. /**
  4436. * Get the encryption key.
  4437. *
  4438. * @return string
  4439. * @static
  4440. */
  4441. public static function getKey()
  4442. {
  4443. /** @var \Illuminate\Encryption\Encrypter $instance */
  4444. return $instance->getKey();
  4445. }
  4446. }
  4447. /**
  4448. *
  4449. *
  4450. * @see \Illuminate\Database\DatabaseManager
  4451. * @see \Illuminate\Database\Connection
  4452. */
  4453. class DB {
  4454. /**
  4455. * Get a database connection instance.
  4456. *
  4457. * @param string|null $name
  4458. * @return \Illuminate\Database\Connection
  4459. * @static
  4460. */
  4461. public static function connection($name = null)
  4462. {
  4463. /** @var \Illuminate\Database\DatabaseManager $instance */
  4464. return $instance->connection($name);
  4465. }
  4466. /**
  4467. * Register a custom Doctrine type.
  4468. *
  4469. * @param string $class
  4470. * @param string $name
  4471. * @param string $type
  4472. * @return void
  4473. * @throws \Doctrine\DBAL\DBALException
  4474. * @throws \RuntimeException
  4475. * @static
  4476. */
  4477. public static function registerDoctrineType($class, $name, $type)
  4478. {
  4479. /** @var \Illuminate\Database\DatabaseManager $instance */
  4480. $instance->registerDoctrineType($class, $name, $type);
  4481. }
  4482. /**
  4483. * Disconnect from the given database and remove from local cache.
  4484. *
  4485. * @param string|null $name
  4486. * @return void
  4487. * @static
  4488. */
  4489. public static function purge($name = null)
  4490. {
  4491. /** @var \Illuminate\Database\DatabaseManager $instance */
  4492. $instance->purge($name);
  4493. }
  4494. /**
  4495. * Disconnect from the given database.
  4496. *
  4497. * @param string|null $name
  4498. * @return void
  4499. * @static
  4500. */
  4501. public static function disconnect($name = null)
  4502. {
  4503. /** @var \Illuminate\Database\DatabaseManager $instance */
  4504. $instance->disconnect($name);
  4505. }
  4506. /**
  4507. * Reconnect to the given database.
  4508. *
  4509. * @param string|null $name
  4510. * @return \Illuminate\Database\Connection
  4511. * @static
  4512. */
  4513. public static function reconnect($name = null)
  4514. {
  4515. /** @var \Illuminate\Database\DatabaseManager $instance */
  4516. return $instance->reconnect($name);
  4517. }
  4518. /**
  4519. * Set the default database connection for the callback execution.
  4520. *
  4521. * @param string $name
  4522. * @param callable $callback
  4523. * @return mixed
  4524. * @static
  4525. */
  4526. public static function usingConnection($name, $callback)
  4527. {
  4528. /** @var \Illuminate\Database\DatabaseManager $instance */
  4529. return $instance->usingConnection($name, $callback);
  4530. }
  4531. /**
  4532. * Get the default connection name.
  4533. *
  4534. * @return string
  4535. * @static
  4536. */
  4537. public static function getDefaultConnection()
  4538. {
  4539. /** @var \Illuminate\Database\DatabaseManager $instance */
  4540. return $instance->getDefaultConnection();
  4541. }
  4542. /**
  4543. * Set the default connection name.
  4544. *
  4545. * @param string $name
  4546. * @return void
  4547. * @static
  4548. */
  4549. public static function setDefaultConnection($name)
  4550. {
  4551. /** @var \Illuminate\Database\DatabaseManager $instance */
  4552. $instance->setDefaultConnection($name);
  4553. }
  4554. /**
  4555. * Get all of the support drivers.
  4556. *
  4557. * @return array
  4558. * @static
  4559. */
  4560. public static function supportedDrivers()
  4561. {
  4562. /** @var \Illuminate\Database\DatabaseManager $instance */
  4563. return $instance->supportedDrivers();
  4564. }
  4565. /**
  4566. * Get all of the drivers that are actually available.
  4567. *
  4568. * @return array
  4569. * @static
  4570. */
  4571. public static function availableDrivers()
  4572. {
  4573. /** @var \Illuminate\Database\DatabaseManager $instance */
  4574. return $instance->availableDrivers();
  4575. }
  4576. /**
  4577. * Register an extension connection resolver.
  4578. *
  4579. * @param string $name
  4580. * @param callable $resolver
  4581. * @return void
  4582. * @static
  4583. */
  4584. public static function extend($name, $resolver)
  4585. {
  4586. /** @var \Illuminate\Database\DatabaseManager $instance */
  4587. $instance->extend($name, $resolver);
  4588. }
  4589. /**
  4590. * Return all of the created connections.
  4591. *
  4592. * @return array
  4593. * @static
  4594. */
  4595. public static function getConnections()
  4596. {
  4597. /** @var \Illuminate\Database\DatabaseManager $instance */
  4598. return $instance->getConnections();
  4599. }
  4600. /**
  4601. * Set the database reconnector callback.
  4602. *
  4603. * @param callable $reconnector
  4604. * @return void
  4605. * @static
  4606. */
  4607. public static function setReconnector($reconnector)
  4608. {
  4609. /** @var \Illuminate\Database\DatabaseManager $instance */
  4610. $instance->setReconnector($reconnector);
  4611. }
  4612. /**
  4613. * Set the application instance used by the manager.
  4614. *
  4615. * @param \Illuminate\Contracts\Foundation\Application $app
  4616. * @return \Illuminate\Database\DatabaseManager
  4617. * @static
  4618. */
  4619. public static function setApplication($app)
  4620. {
  4621. /** @var \Illuminate\Database\DatabaseManager $instance */
  4622. return $instance->setApplication($app);
  4623. }
  4624. /**
  4625. * Determine if the connected database is a MariaDB database.
  4626. *
  4627. * @return bool
  4628. * @static
  4629. */
  4630. public static function isMaria()
  4631. {
  4632. /** @var \Illuminate\Database\MySqlConnection $instance */
  4633. return $instance->isMaria();
  4634. }
  4635. /**
  4636. * Get a schema builder instance for the connection.
  4637. *
  4638. * @return \Illuminate\Database\Schema\MySqlBuilder
  4639. * @static
  4640. */
  4641. public static function getSchemaBuilder()
  4642. {
  4643. /** @var \Illuminate\Database\MySqlConnection $instance */
  4644. return $instance->getSchemaBuilder();
  4645. }
  4646. /**
  4647. * Get the schema state for the connection.
  4648. *
  4649. * @param \Illuminate\Filesystem\Filesystem|null $files
  4650. * @param callable|null $processFactory
  4651. * @return \Illuminate\Database\Schema\MySqlSchemaState
  4652. * @static
  4653. */
  4654. public static function getSchemaState($files = null, $processFactory = null)
  4655. {
  4656. /** @var \Illuminate\Database\MySqlConnection $instance */
  4657. return $instance->getSchemaState($files, $processFactory);
  4658. }
  4659. /**
  4660. * Set the query grammar to the default implementation.
  4661. *
  4662. * @return void
  4663. * @static
  4664. */
  4665. public static function useDefaultQueryGrammar()
  4666. { //Method inherited from \Illuminate\Database\Connection
  4667. /** @var \Illuminate\Database\MySqlConnection $instance */
  4668. $instance->useDefaultQueryGrammar();
  4669. }
  4670. /**
  4671. * Set the schema grammar to the default implementation.
  4672. *
  4673. * @return void
  4674. * @static
  4675. */
  4676. public static function useDefaultSchemaGrammar()
  4677. { //Method inherited from \Illuminate\Database\Connection
  4678. /** @var \Illuminate\Database\MySqlConnection $instance */
  4679. $instance->useDefaultSchemaGrammar();
  4680. }
  4681. /**
  4682. * Set the query post processor to the default implementation.
  4683. *
  4684. * @return void
  4685. * @static
  4686. */
  4687. public static function useDefaultPostProcessor()
  4688. { //Method inherited from \Illuminate\Database\Connection
  4689. /** @var \Illuminate\Database\MySqlConnection $instance */
  4690. $instance->useDefaultPostProcessor();
  4691. }
  4692. /**
  4693. * Begin a fluent query against a database table.
  4694. *
  4695. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  4696. * @param string|null $as
  4697. * @return \Illuminate\Database\Query\Builder
  4698. * @static
  4699. */
  4700. public static function table($table, $as = null)
  4701. { //Method inherited from \Illuminate\Database\Connection
  4702. /** @var \Illuminate\Database\MySqlConnection $instance */
  4703. return $instance->table($table, $as);
  4704. }
  4705. /**
  4706. * Get a new query builder instance.
  4707. *
  4708. * @return \Illuminate\Database\Query\Builder
  4709. * @static
  4710. */
  4711. public static function query()
  4712. { //Method inherited from \Illuminate\Database\Connection
  4713. /** @var \Illuminate\Database\MySqlConnection $instance */
  4714. return $instance->query();
  4715. }
  4716. /**
  4717. * Run a select statement and return a single result.
  4718. *
  4719. * @param string $query
  4720. * @param array $bindings
  4721. * @param bool $useReadPdo
  4722. * @return mixed
  4723. * @static
  4724. */
  4725. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  4726. { //Method inherited from \Illuminate\Database\Connection
  4727. /** @var \Illuminate\Database\MySqlConnection $instance */
  4728. return $instance->selectOne($query, $bindings, $useReadPdo);
  4729. }
  4730. /**
  4731. * Run a select statement against the database.
  4732. *
  4733. * @param string $query
  4734. * @param array $bindings
  4735. * @return array
  4736. * @static
  4737. */
  4738. public static function selectFromWriteConnection($query, $bindings = [])
  4739. { //Method inherited from \Illuminate\Database\Connection
  4740. /** @var \Illuminate\Database\MySqlConnection $instance */
  4741. return $instance->selectFromWriteConnection($query, $bindings);
  4742. }
  4743. /**
  4744. * Run a select statement against the database.
  4745. *
  4746. * @param string $query
  4747. * @param array $bindings
  4748. * @param bool $useReadPdo
  4749. * @return array
  4750. * @static
  4751. */
  4752. public static function select($query, $bindings = [], $useReadPdo = true)
  4753. { //Method inherited from \Illuminate\Database\Connection
  4754. /** @var \Illuminate\Database\MySqlConnection $instance */
  4755. return $instance->select($query, $bindings, $useReadPdo);
  4756. }
  4757. /**
  4758. * Run a select statement against the database and returns a generator.
  4759. *
  4760. * @param string $query
  4761. * @param array $bindings
  4762. * @param bool $useReadPdo
  4763. * @return \Generator
  4764. * @static
  4765. */
  4766. public static function cursor($query, $bindings = [], $useReadPdo = true)
  4767. { //Method inherited from \Illuminate\Database\Connection
  4768. /** @var \Illuminate\Database\MySqlConnection $instance */
  4769. return $instance->cursor($query, $bindings, $useReadPdo);
  4770. }
  4771. /**
  4772. * Run an insert statement against the database.
  4773. *
  4774. * @param string $query
  4775. * @param array $bindings
  4776. * @return bool
  4777. * @static
  4778. */
  4779. public static function insert($query, $bindings = [])
  4780. { //Method inherited from \Illuminate\Database\Connection
  4781. /** @var \Illuminate\Database\MySqlConnection $instance */
  4782. return $instance->insert($query, $bindings);
  4783. }
  4784. /**
  4785. * Run an update statement against the database.
  4786. *
  4787. * @param string $query
  4788. * @param array $bindings
  4789. * @return int
  4790. * @static
  4791. */
  4792. public static function update($query, $bindings = [])
  4793. { //Method inherited from \Illuminate\Database\Connection
  4794. /** @var \Illuminate\Database\MySqlConnection $instance */
  4795. return $instance->update($query, $bindings);
  4796. }
  4797. /**
  4798. * Run a delete statement against the database.
  4799. *
  4800. * @param string $query
  4801. * @param array $bindings
  4802. * @return int
  4803. * @static
  4804. */
  4805. public static function delete($query, $bindings = [])
  4806. { //Method inherited from \Illuminate\Database\Connection
  4807. /** @var \Illuminate\Database\MySqlConnection $instance */
  4808. return $instance->delete($query, $bindings);
  4809. }
  4810. /**
  4811. * Execute an SQL statement and return the boolean result.
  4812. *
  4813. * @param string $query
  4814. * @param array $bindings
  4815. * @return bool
  4816. * @static
  4817. */
  4818. public static function statement($query, $bindings = [])
  4819. { //Method inherited from \Illuminate\Database\Connection
  4820. /** @var \Illuminate\Database\MySqlConnection $instance */
  4821. return $instance->statement($query, $bindings);
  4822. }
  4823. /**
  4824. * Run an SQL statement and get the number of rows affected.
  4825. *
  4826. * @param string $query
  4827. * @param array $bindings
  4828. * @return int
  4829. * @static
  4830. */
  4831. public static function affectingStatement($query, $bindings = [])
  4832. { //Method inherited from \Illuminate\Database\Connection
  4833. /** @var \Illuminate\Database\MySqlConnection $instance */
  4834. return $instance->affectingStatement($query, $bindings);
  4835. }
  4836. /**
  4837. * Run a raw, unprepared query against the PDO connection.
  4838. *
  4839. * @param string $query
  4840. * @return bool
  4841. * @static
  4842. */
  4843. public static function unprepared($query)
  4844. { //Method inherited from \Illuminate\Database\Connection
  4845. /** @var \Illuminate\Database\MySqlConnection $instance */
  4846. return $instance->unprepared($query);
  4847. }
  4848. /**
  4849. * Execute the given callback in "dry run" mode.
  4850. *
  4851. * @param \Closure $callback
  4852. * @return array
  4853. * @static
  4854. */
  4855. public static function pretend($callback)
  4856. { //Method inherited from \Illuminate\Database\Connection
  4857. /** @var \Illuminate\Database\MySqlConnection $instance */
  4858. return $instance->pretend($callback);
  4859. }
  4860. /**
  4861. * Bind values to their parameters in the given statement.
  4862. *
  4863. * @param \PDOStatement $statement
  4864. * @param array $bindings
  4865. * @return void
  4866. * @static
  4867. */
  4868. public static function bindValues($statement, $bindings)
  4869. { //Method inherited from \Illuminate\Database\Connection
  4870. /** @var \Illuminate\Database\MySqlConnection $instance */
  4871. $instance->bindValues($statement, $bindings);
  4872. }
  4873. /**
  4874. * Prepare the query bindings for execution.
  4875. *
  4876. * @param array $bindings
  4877. * @return array
  4878. * @static
  4879. */
  4880. public static function prepareBindings($bindings)
  4881. { //Method inherited from \Illuminate\Database\Connection
  4882. /** @var \Illuminate\Database\MySqlConnection $instance */
  4883. return $instance->prepareBindings($bindings);
  4884. }
  4885. /**
  4886. * Log a query in the connection's query log.
  4887. *
  4888. * @param string $query
  4889. * @param array $bindings
  4890. * @param float|null $time
  4891. * @return void
  4892. * @static
  4893. */
  4894. public static function logQuery($query, $bindings, $time = null)
  4895. { //Method inherited from \Illuminate\Database\Connection
  4896. /** @var \Illuminate\Database\MySqlConnection $instance */
  4897. $instance->logQuery($query, $bindings, $time);
  4898. }
  4899. /**
  4900. * Register a hook to be run just before a database query is executed.
  4901. *
  4902. * @param \Closure $callback
  4903. * @return \Illuminate\Database\MySqlConnection
  4904. * @static
  4905. */
  4906. public static function beforeExecuting($callback)
  4907. { //Method inherited from \Illuminate\Database\Connection
  4908. /** @var \Illuminate\Database\MySqlConnection $instance */
  4909. return $instance->beforeExecuting($callback);
  4910. }
  4911. /**
  4912. * Register a database query listener with the connection.
  4913. *
  4914. * @param \Closure $callback
  4915. * @return void
  4916. * @static
  4917. */
  4918. public static function listen($callback)
  4919. { //Method inherited from \Illuminate\Database\Connection
  4920. /** @var \Illuminate\Database\MySqlConnection $instance */
  4921. $instance->listen($callback);
  4922. }
  4923. /**
  4924. * Get a new raw query expression.
  4925. *
  4926. * @param mixed $value
  4927. * @return \Illuminate\Database\Query\Expression
  4928. * @static
  4929. */
  4930. public static function raw($value)
  4931. { //Method inherited from \Illuminate\Database\Connection
  4932. /** @var \Illuminate\Database\MySqlConnection $instance */
  4933. return $instance->raw($value);
  4934. }
  4935. /**
  4936. * Determine if the database connection has modified any database records.
  4937. *
  4938. * @return bool
  4939. * @static
  4940. */
  4941. public static function hasModifiedRecords()
  4942. { //Method inherited from \Illuminate\Database\Connection
  4943. /** @var \Illuminate\Database\MySqlConnection $instance */
  4944. return $instance->hasModifiedRecords();
  4945. }
  4946. /**
  4947. * Indicate if any records have been modified.
  4948. *
  4949. * @param bool $value
  4950. * @return void
  4951. * @static
  4952. */
  4953. public static function recordsHaveBeenModified($value = true)
  4954. { //Method inherited from \Illuminate\Database\Connection
  4955. /** @var \Illuminate\Database\MySqlConnection $instance */
  4956. $instance->recordsHaveBeenModified($value);
  4957. }
  4958. /**
  4959. * Set the record modification state.
  4960. *
  4961. * @param bool $value
  4962. * @return \Illuminate\Database\MySqlConnection
  4963. * @static
  4964. */
  4965. public static function setRecordModificationState($value)
  4966. { //Method inherited from \Illuminate\Database\Connection
  4967. /** @var \Illuminate\Database\MySqlConnection $instance */
  4968. return $instance->setRecordModificationState($value);
  4969. }
  4970. /**
  4971. * Reset the record modification state.
  4972. *
  4973. * @return void
  4974. * @static
  4975. */
  4976. public static function forgetRecordModificationState()
  4977. { //Method inherited from \Illuminate\Database\Connection
  4978. /** @var \Illuminate\Database\MySqlConnection $instance */
  4979. $instance->forgetRecordModificationState();
  4980. }
  4981. /**
  4982. * Indicate that the connection should use the write PDO connection for reads.
  4983. *
  4984. * @param bool $value
  4985. * @return \Illuminate\Database\MySqlConnection
  4986. * @static
  4987. */
  4988. public static function useWriteConnectionWhenReading($value = true)
  4989. { //Method inherited from \Illuminate\Database\Connection
  4990. /** @var \Illuminate\Database\MySqlConnection $instance */
  4991. return $instance->useWriteConnectionWhenReading($value);
  4992. }
  4993. /**
  4994. * Is Doctrine available?
  4995. *
  4996. * @return bool
  4997. * @static
  4998. */
  4999. public static function isDoctrineAvailable()
  5000. { //Method inherited from \Illuminate\Database\Connection
  5001. /** @var \Illuminate\Database\MySqlConnection $instance */
  5002. return $instance->isDoctrineAvailable();
  5003. }
  5004. /**
  5005. * Get a Doctrine Schema Column instance.
  5006. *
  5007. * @param string $table
  5008. * @param string $column
  5009. * @return \Doctrine\DBAL\Schema\Column
  5010. * @static
  5011. */
  5012. public static function getDoctrineColumn($table, $column)
  5013. { //Method inherited from \Illuminate\Database\Connection
  5014. /** @var \Illuminate\Database\MySqlConnection $instance */
  5015. return $instance->getDoctrineColumn($table, $column);
  5016. }
  5017. /**
  5018. * Get the Doctrine DBAL schema manager for the connection.
  5019. *
  5020. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  5021. * @static
  5022. */
  5023. public static function getDoctrineSchemaManager()
  5024. { //Method inherited from \Illuminate\Database\Connection
  5025. /** @var \Illuminate\Database\MySqlConnection $instance */
  5026. return $instance->getDoctrineSchemaManager();
  5027. }
  5028. /**
  5029. * Get the Doctrine DBAL database connection instance.
  5030. *
  5031. * @return \Doctrine\DBAL\Connection
  5032. * @static
  5033. */
  5034. public static function getDoctrineConnection()
  5035. { //Method inherited from \Illuminate\Database\Connection
  5036. /** @var \Illuminate\Database\MySqlConnection $instance */
  5037. return $instance->getDoctrineConnection();
  5038. }
  5039. /**
  5040. * Get the current PDO connection.
  5041. *
  5042. * @return \PDO
  5043. * @static
  5044. */
  5045. public static function getPdo()
  5046. { //Method inherited from \Illuminate\Database\Connection
  5047. /** @var \Illuminate\Database\MySqlConnection $instance */
  5048. return $instance->getPdo();
  5049. }
  5050. /**
  5051. * Get the current PDO connection parameter without executing any reconnect logic.
  5052. *
  5053. * @return \PDO|\Closure|null
  5054. * @static
  5055. */
  5056. public static function getRawPdo()
  5057. { //Method inherited from \Illuminate\Database\Connection
  5058. /** @var \Illuminate\Database\MySqlConnection $instance */
  5059. return $instance->getRawPdo();
  5060. }
  5061. /**
  5062. * Get the current PDO connection used for reading.
  5063. *
  5064. * @return \PDO
  5065. * @static
  5066. */
  5067. public static function getReadPdo()
  5068. { //Method inherited from \Illuminate\Database\Connection
  5069. /** @var \Illuminate\Database\MySqlConnection $instance */
  5070. return $instance->getReadPdo();
  5071. }
  5072. /**
  5073. * Get the current read PDO connection parameter without executing any reconnect logic.
  5074. *
  5075. * @return \PDO|\Closure|null
  5076. * @static
  5077. */
  5078. public static function getRawReadPdo()
  5079. { //Method inherited from \Illuminate\Database\Connection
  5080. /** @var \Illuminate\Database\MySqlConnection $instance */
  5081. return $instance->getRawReadPdo();
  5082. }
  5083. /**
  5084. * Set the PDO connection.
  5085. *
  5086. * @param \PDO|\Closure|null $pdo
  5087. * @return \Illuminate\Database\MySqlConnection
  5088. * @static
  5089. */
  5090. public static function setPdo($pdo)
  5091. { //Method inherited from \Illuminate\Database\Connection
  5092. /** @var \Illuminate\Database\MySqlConnection $instance */
  5093. return $instance->setPdo($pdo);
  5094. }
  5095. /**
  5096. * Set the PDO connection used for reading.
  5097. *
  5098. * @param \PDO|\Closure|null $pdo
  5099. * @return \Illuminate\Database\MySqlConnection
  5100. * @static
  5101. */
  5102. public static function setReadPdo($pdo)
  5103. { //Method inherited from \Illuminate\Database\Connection
  5104. /** @var \Illuminate\Database\MySqlConnection $instance */
  5105. return $instance->setReadPdo($pdo);
  5106. }
  5107. /**
  5108. * Get the database connection name.
  5109. *
  5110. * @return string|null
  5111. * @static
  5112. */
  5113. public static function getName()
  5114. { //Method inherited from \Illuminate\Database\Connection
  5115. /** @var \Illuminate\Database\MySqlConnection $instance */
  5116. return $instance->getName();
  5117. }
  5118. /**
  5119. * Get the database connection full name.
  5120. *
  5121. * @return string|null
  5122. * @static
  5123. */
  5124. public static function getNameWithReadWriteType()
  5125. { //Method inherited from \Illuminate\Database\Connection
  5126. /** @var \Illuminate\Database\MySqlConnection $instance */
  5127. return $instance->getNameWithReadWriteType();
  5128. }
  5129. /**
  5130. * Get an option from the configuration options.
  5131. *
  5132. * @param string|null $option
  5133. * @return mixed
  5134. * @static
  5135. */
  5136. public static function getConfig($option = null)
  5137. { //Method inherited from \Illuminate\Database\Connection
  5138. /** @var \Illuminate\Database\MySqlConnection $instance */
  5139. return $instance->getConfig($option);
  5140. }
  5141. /**
  5142. * Get the PDO driver name.
  5143. *
  5144. * @return string
  5145. * @static
  5146. */
  5147. public static function getDriverName()
  5148. { //Method inherited from \Illuminate\Database\Connection
  5149. /** @var \Illuminate\Database\MySqlConnection $instance */
  5150. return $instance->getDriverName();
  5151. }
  5152. /**
  5153. * Get the query grammar used by the connection.
  5154. *
  5155. * @return \Illuminate\Database\Query\Grammars\Grammar
  5156. * @static
  5157. */
  5158. public static function getQueryGrammar()
  5159. { //Method inherited from \Illuminate\Database\Connection
  5160. /** @var \Illuminate\Database\MySqlConnection $instance */
  5161. return $instance->getQueryGrammar();
  5162. }
  5163. /**
  5164. * Set the query grammar used by the connection.
  5165. *
  5166. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  5167. * @return \Illuminate\Database\MySqlConnection
  5168. * @static
  5169. */
  5170. public static function setQueryGrammar($grammar)
  5171. { //Method inherited from \Illuminate\Database\Connection
  5172. /** @var \Illuminate\Database\MySqlConnection $instance */
  5173. return $instance->setQueryGrammar($grammar);
  5174. }
  5175. /**
  5176. * Get the schema grammar used by the connection.
  5177. *
  5178. * @return \Illuminate\Database\Schema\Grammars\Grammar
  5179. * @static
  5180. */
  5181. public static function getSchemaGrammar()
  5182. { //Method inherited from \Illuminate\Database\Connection
  5183. /** @var \Illuminate\Database\MySqlConnection $instance */
  5184. return $instance->getSchemaGrammar();
  5185. }
  5186. /**
  5187. * Set the schema grammar used by the connection.
  5188. *
  5189. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  5190. * @return \Illuminate\Database\MySqlConnection
  5191. * @static
  5192. */
  5193. public static function setSchemaGrammar($grammar)
  5194. { //Method inherited from \Illuminate\Database\Connection
  5195. /** @var \Illuminate\Database\MySqlConnection $instance */
  5196. return $instance->setSchemaGrammar($grammar);
  5197. }
  5198. /**
  5199. * Get the query post processor used by the connection.
  5200. *
  5201. * @return \Illuminate\Database\Query\Processors\Processor
  5202. * @static
  5203. */
  5204. public static function getPostProcessor()
  5205. { //Method inherited from \Illuminate\Database\Connection
  5206. /** @var \Illuminate\Database\MySqlConnection $instance */
  5207. return $instance->getPostProcessor();
  5208. }
  5209. /**
  5210. * Set the query post processor used by the connection.
  5211. *
  5212. * @param \Illuminate\Database\Query\Processors\Processor $processor
  5213. * @return \Illuminate\Database\MySqlConnection
  5214. * @static
  5215. */
  5216. public static function setPostProcessor($processor)
  5217. { //Method inherited from \Illuminate\Database\Connection
  5218. /** @var \Illuminate\Database\MySqlConnection $instance */
  5219. return $instance->setPostProcessor($processor);
  5220. }
  5221. /**
  5222. * Get the event dispatcher used by the connection.
  5223. *
  5224. * @return \Illuminate\Contracts\Events\Dispatcher
  5225. * @static
  5226. */
  5227. public static function getEventDispatcher()
  5228. { //Method inherited from \Illuminate\Database\Connection
  5229. /** @var \Illuminate\Database\MySqlConnection $instance */
  5230. return $instance->getEventDispatcher();
  5231. }
  5232. /**
  5233. * Set the event dispatcher instance on the connection.
  5234. *
  5235. * @param \Illuminate\Contracts\Events\Dispatcher $events
  5236. * @return \Illuminate\Database\MySqlConnection
  5237. * @static
  5238. */
  5239. public static function setEventDispatcher($events)
  5240. { //Method inherited from \Illuminate\Database\Connection
  5241. /** @var \Illuminate\Database\MySqlConnection $instance */
  5242. return $instance->setEventDispatcher($events);
  5243. }
  5244. /**
  5245. * Unset the event dispatcher for this connection.
  5246. *
  5247. * @return void
  5248. * @static
  5249. */
  5250. public static function unsetEventDispatcher()
  5251. { //Method inherited from \Illuminate\Database\Connection
  5252. /** @var \Illuminate\Database\MySqlConnection $instance */
  5253. $instance->unsetEventDispatcher();
  5254. }
  5255. /**
  5256. * Set the transaction manager instance on the connection.
  5257. *
  5258. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  5259. * @return \Illuminate\Database\MySqlConnection
  5260. * @static
  5261. */
  5262. public static function setTransactionManager($manager)
  5263. { //Method inherited from \Illuminate\Database\Connection
  5264. /** @var \Illuminate\Database\MySqlConnection $instance */
  5265. return $instance->setTransactionManager($manager);
  5266. }
  5267. /**
  5268. * Unset the transaction manager for this connection.
  5269. *
  5270. * @return void
  5271. * @static
  5272. */
  5273. public static function unsetTransactionManager()
  5274. { //Method inherited from \Illuminate\Database\Connection
  5275. /** @var \Illuminate\Database\MySqlConnection $instance */
  5276. $instance->unsetTransactionManager();
  5277. }
  5278. /**
  5279. * Determine if the connection is in a "dry run".
  5280. *
  5281. * @return bool
  5282. * @static
  5283. */
  5284. public static function pretending()
  5285. { //Method inherited from \Illuminate\Database\Connection
  5286. /** @var \Illuminate\Database\MySqlConnection $instance */
  5287. return $instance->pretending();
  5288. }
  5289. /**
  5290. * Get the connection query log.
  5291. *
  5292. * @return array
  5293. * @static
  5294. */
  5295. public static function getQueryLog()
  5296. { //Method inherited from \Illuminate\Database\Connection
  5297. /** @var \Illuminate\Database\MySqlConnection $instance */
  5298. return $instance->getQueryLog();
  5299. }
  5300. /**
  5301. * Clear the query log.
  5302. *
  5303. * @return void
  5304. * @static
  5305. */
  5306. public static function flushQueryLog()
  5307. { //Method inherited from \Illuminate\Database\Connection
  5308. /** @var \Illuminate\Database\MySqlConnection $instance */
  5309. $instance->flushQueryLog();
  5310. }
  5311. /**
  5312. * Enable the query log on the connection.
  5313. *
  5314. * @return void
  5315. * @static
  5316. */
  5317. public static function enableQueryLog()
  5318. { //Method inherited from \Illuminate\Database\Connection
  5319. /** @var \Illuminate\Database\MySqlConnection $instance */
  5320. $instance->enableQueryLog();
  5321. }
  5322. /**
  5323. * Disable the query log on the connection.
  5324. *
  5325. * @return void
  5326. * @static
  5327. */
  5328. public static function disableQueryLog()
  5329. { //Method inherited from \Illuminate\Database\Connection
  5330. /** @var \Illuminate\Database\MySqlConnection $instance */
  5331. $instance->disableQueryLog();
  5332. }
  5333. /**
  5334. * Determine whether we're logging queries.
  5335. *
  5336. * @return bool
  5337. * @static
  5338. */
  5339. public static function logging()
  5340. { //Method inherited from \Illuminate\Database\Connection
  5341. /** @var \Illuminate\Database\MySqlConnection $instance */
  5342. return $instance->logging();
  5343. }
  5344. /**
  5345. * Get the name of the connected database.
  5346. *
  5347. * @return string
  5348. * @static
  5349. */
  5350. public static function getDatabaseName()
  5351. { //Method inherited from \Illuminate\Database\Connection
  5352. /** @var \Illuminate\Database\MySqlConnection $instance */
  5353. return $instance->getDatabaseName();
  5354. }
  5355. /**
  5356. * Set the name of the connected database.
  5357. *
  5358. * @param string $database
  5359. * @return \Illuminate\Database\MySqlConnection
  5360. * @static
  5361. */
  5362. public static function setDatabaseName($database)
  5363. { //Method inherited from \Illuminate\Database\Connection
  5364. /** @var \Illuminate\Database\MySqlConnection $instance */
  5365. return $instance->setDatabaseName($database);
  5366. }
  5367. /**
  5368. * Set the read / write type of the connection.
  5369. *
  5370. * @param string|null $readWriteType
  5371. * @return \Illuminate\Database\MySqlConnection
  5372. * @static
  5373. */
  5374. public static function setReadWriteType($readWriteType)
  5375. { //Method inherited from \Illuminate\Database\Connection
  5376. /** @var \Illuminate\Database\MySqlConnection $instance */
  5377. return $instance->setReadWriteType($readWriteType);
  5378. }
  5379. /**
  5380. * Get the table prefix for the connection.
  5381. *
  5382. * @return string
  5383. * @static
  5384. */
  5385. public static function getTablePrefix()
  5386. { //Method inherited from \Illuminate\Database\Connection
  5387. /** @var \Illuminate\Database\MySqlConnection $instance */
  5388. return $instance->getTablePrefix();
  5389. }
  5390. /**
  5391. * Set the table prefix in use by the connection.
  5392. *
  5393. * @param string $prefix
  5394. * @return \Illuminate\Database\MySqlConnection
  5395. * @static
  5396. */
  5397. public static function setTablePrefix($prefix)
  5398. { //Method inherited from \Illuminate\Database\Connection
  5399. /** @var \Illuminate\Database\MySqlConnection $instance */
  5400. return $instance->setTablePrefix($prefix);
  5401. }
  5402. /**
  5403. * Set the table prefix and return the grammar.
  5404. *
  5405. * @param \Illuminate\Database\Grammar $grammar
  5406. * @return \Illuminate\Database\Grammar
  5407. * @static
  5408. */
  5409. public static function withTablePrefix($grammar)
  5410. { //Method inherited from \Illuminate\Database\Connection
  5411. /** @var \Illuminate\Database\MySqlConnection $instance */
  5412. return $instance->withTablePrefix($grammar);
  5413. }
  5414. /**
  5415. * Register a connection resolver.
  5416. *
  5417. * @param string $driver
  5418. * @param \Closure $callback
  5419. * @return void
  5420. * @static
  5421. */
  5422. public static function resolverFor($driver, $callback)
  5423. { //Method inherited from \Illuminate\Database\Connection
  5424. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  5425. }
  5426. /**
  5427. * Get the connection resolver for the given driver.
  5428. *
  5429. * @param string $driver
  5430. * @return mixed
  5431. * @static
  5432. */
  5433. public static function getResolver($driver)
  5434. { //Method inherited from \Illuminate\Database\Connection
  5435. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  5436. }
  5437. /**
  5438. * Execute a Closure within a transaction.
  5439. *
  5440. * @param \Closure $callback
  5441. * @param int $attempts
  5442. * @return mixed
  5443. * @throws \Throwable
  5444. * @static
  5445. */
  5446. public static function transaction($callback, $attempts = 1)
  5447. { //Method inherited from \Illuminate\Database\Connection
  5448. /** @var \Illuminate\Database\MySqlConnection $instance */
  5449. return $instance->transaction($callback, $attempts);
  5450. }
  5451. /**
  5452. * Start a new database transaction.
  5453. *
  5454. * @return void
  5455. * @throws \Throwable
  5456. * @static
  5457. */
  5458. public static function beginTransaction()
  5459. { //Method inherited from \Illuminate\Database\Connection
  5460. /** @var \Illuminate\Database\MySqlConnection $instance */
  5461. $instance->beginTransaction();
  5462. }
  5463. /**
  5464. * Commit the active database transaction.
  5465. *
  5466. * @return void
  5467. * @throws \Throwable
  5468. * @static
  5469. */
  5470. public static function commit()
  5471. { //Method inherited from \Illuminate\Database\Connection
  5472. /** @var \Illuminate\Database\MySqlConnection $instance */
  5473. $instance->commit();
  5474. }
  5475. /**
  5476. * Rollback the active database transaction.
  5477. *
  5478. * @param int|null $toLevel
  5479. * @return void
  5480. * @throws \Throwable
  5481. * @static
  5482. */
  5483. public static function rollBack($toLevel = null)
  5484. { //Method inherited from \Illuminate\Database\Connection
  5485. /** @var \Illuminate\Database\MySqlConnection $instance */
  5486. $instance->rollBack($toLevel);
  5487. }
  5488. /**
  5489. * Get the number of active transactions.
  5490. *
  5491. * @return int
  5492. * @static
  5493. */
  5494. public static function transactionLevel()
  5495. { //Method inherited from \Illuminate\Database\Connection
  5496. /** @var \Illuminate\Database\MySqlConnection $instance */
  5497. return $instance->transactionLevel();
  5498. }
  5499. /**
  5500. * Execute the callback after a transaction commits.
  5501. *
  5502. * @param callable $callback
  5503. * @return void
  5504. * @throws \RuntimeException
  5505. * @static
  5506. */
  5507. public static function afterCommit($callback)
  5508. { //Method inherited from \Illuminate\Database\Connection
  5509. /** @var \Illuminate\Database\MySqlConnection $instance */
  5510. $instance->afterCommit($callback);
  5511. }
  5512. }
  5513. /**
  5514. *
  5515. *
  5516. * @see \Illuminate\Events\Dispatcher
  5517. */
  5518. class Event {
  5519. /**
  5520. * Register an event listener with the dispatcher.
  5521. *
  5522. * @param \Closure|string|array $events
  5523. * @param \Closure|string|array|null $listener
  5524. * @return void
  5525. * @static
  5526. */
  5527. public static function listen($events, $listener = null)
  5528. {
  5529. /** @var \Illuminate\Events\Dispatcher $instance */
  5530. $instance->listen($events, $listener);
  5531. }
  5532. /**
  5533. * Determine if a given event has listeners.
  5534. *
  5535. * @param string $eventName
  5536. * @return bool
  5537. * @static
  5538. */
  5539. public static function hasListeners($eventName)
  5540. {
  5541. /** @var \Illuminate\Events\Dispatcher $instance */
  5542. return $instance->hasListeners($eventName);
  5543. }
  5544. /**
  5545. * Determine if the given event has any wildcard listeners.
  5546. *
  5547. * @param string $eventName
  5548. * @return bool
  5549. * @static
  5550. */
  5551. public static function hasWildcardListeners($eventName)
  5552. {
  5553. /** @var \Illuminate\Events\Dispatcher $instance */
  5554. return $instance->hasWildcardListeners($eventName);
  5555. }
  5556. /**
  5557. * Register an event and payload to be fired later.
  5558. *
  5559. * @param string $event
  5560. * @param array $payload
  5561. * @return void
  5562. * @static
  5563. */
  5564. public static function push($event, $payload = [])
  5565. {
  5566. /** @var \Illuminate\Events\Dispatcher $instance */
  5567. $instance->push($event, $payload);
  5568. }
  5569. /**
  5570. * Flush a set of pushed events.
  5571. *
  5572. * @param string $event
  5573. * @return void
  5574. * @static
  5575. */
  5576. public static function flush($event)
  5577. {
  5578. /** @var \Illuminate\Events\Dispatcher $instance */
  5579. $instance->flush($event);
  5580. }
  5581. /**
  5582. * Register an event subscriber with the dispatcher.
  5583. *
  5584. * @param object|string $subscriber
  5585. * @return void
  5586. * @static
  5587. */
  5588. public static function subscribe($subscriber)
  5589. {
  5590. /** @var \Illuminate\Events\Dispatcher $instance */
  5591. $instance->subscribe($subscriber);
  5592. }
  5593. /**
  5594. * Fire an event until the first non-null response is returned.
  5595. *
  5596. * @param string|object $event
  5597. * @param mixed $payload
  5598. * @return array|null
  5599. * @static
  5600. */
  5601. public static function until($event, $payload = [])
  5602. {
  5603. /** @var \Illuminate\Events\Dispatcher $instance */
  5604. return $instance->until($event, $payload);
  5605. }
  5606. /**
  5607. * Fire an event and call the listeners.
  5608. *
  5609. * @param string|object $event
  5610. * @param mixed $payload
  5611. * @param bool $halt
  5612. * @return array|null
  5613. * @static
  5614. */
  5615. public static function dispatch($event, $payload = [], $halt = false)
  5616. {
  5617. /** @var \Illuminate\Events\Dispatcher $instance */
  5618. return $instance->dispatch($event, $payload, $halt);
  5619. }
  5620. /**
  5621. * Get all of the listeners for a given event name.
  5622. *
  5623. * @param string $eventName
  5624. * @return array
  5625. * @static
  5626. */
  5627. public static function getListeners($eventName)
  5628. {
  5629. /** @var \Illuminate\Events\Dispatcher $instance */
  5630. return $instance->getListeners($eventName);
  5631. }
  5632. /**
  5633. * Register an event listener with the dispatcher.
  5634. *
  5635. * @param \Closure|string|array $listener
  5636. * @param bool $wildcard
  5637. * @return \Closure
  5638. * @static
  5639. */
  5640. public static function makeListener($listener, $wildcard = false)
  5641. {
  5642. /** @var \Illuminate\Events\Dispatcher $instance */
  5643. return $instance->makeListener($listener, $wildcard);
  5644. }
  5645. /**
  5646. * Create a class based listener using the IoC container.
  5647. *
  5648. * @param string $listener
  5649. * @param bool $wildcard
  5650. * @return \Closure
  5651. * @static
  5652. */
  5653. public static function createClassListener($listener, $wildcard = false)
  5654. {
  5655. /** @var \Illuminate\Events\Dispatcher $instance */
  5656. return $instance->createClassListener($listener, $wildcard);
  5657. }
  5658. /**
  5659. * Remove a set of listeners from the dispatcher.
  5660. *
  5661. * @param string $event
  5662. * @return void
  5663. * @static
  5664. */
  5665. public static function forget($event)
  5666. {
  5667. /** @var \Illuminate\Events\Dispatcher $instance */
  5668. $instance->forget($event);
  5669. }
  5670. /**
  5671. * Forget all of the pushed listeners.
  5672. *
  5673. * @return void
  5674. * @static
  5675. */
  5676. public static function forgetPushed()
  5677. {
  5678. /** @var \Illuminate\Events\Dispatcher $instance */
  5679. $instance->forgetPushed();
  5680. }
  5681. /**
  5682. * Set the queue resolver implementation.
  5683. *
  5684. * @param callable $resolver
  5685. * @return \Illuminate\Events\Dispatcher
  5686. * @static
  5687. */
  5688. public static function setQueueResolver($resolver)
  5689. {
  5690. /** @var \Illuminate\Events\Dispatcher $instance */
  5691. return $instance->setQueueResolver($resolver);
  5692. }
  5693. /**
  5694. * Register a custom macro.
  5695. *
  5696. * @param string $name
  5697. * @param object|callable $macro
  5698. * @return void
  5699. * @static
  5700. */
  5701. public static function macro($name, $macro)
  5702. {
  5703. \Illuminate\Events\Dispatcher::macro($name, $macro);
  5704. }
  5705. /**
  5706. * Mix another object into the class.
  5707. *
  5708. * @param object $mixin
  5709. * @param bool $replace
  5710. * @return void
  5711. * @throws \ReflectionException
  5712. * @static
  5713. */
  5714. public static function mixin($mixin, $replace = true)
  5715. {
  5716. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  5717. }
  5718. /**
  5719. * Checks if macro is registered.
  5720. *
  5721. * @param string $name
  5722. * @return bool
  5723. * @static
  5724. */
  5725. public static function hasMacro($name)
  5726. {
  5727. return \Illuminate\Events\Dispatcher::hasMacro($name);
  5728. }
  5729. /**
  5730. * Flush the existing macros.
  5731. *
  5732. * @return void
  5733. * @static
  5734. */
  5735. public static function flushMacros()
  5736. {
  5737. \Illuminate\Events\Dispatcher::flushMacros();
  5738. }
  5739. /**
  5740. * Assert if an event has a listener attached to it.
  5741. *
  5742. * @param string $expectedEvent
  5743. * @param string $expectedListener
  5744. * @return void
  5745. * @static
  5746. */
  5747. public static function assertListening($expectedEvent, $expectedListener)
  5748. {
  5749. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5750. $instance->assertListening($expectedEvent, $expectedListener);
  5751. }
  5752. /**
  5753. * Assert if an event was dispatched based on a truth-test callback.
  5754. *
  5755. * @param string|\Closure $event
  5756. * @param callable|int|null $callback
  5757. * @return void
  5758. * @static
  5759. */
  5760. public static function assertDispatched($event, $callback = null)
  5761. {
  5762. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5763. $instance->assertDispatched($event, $callback);
  5764. }
  5765. /**
  5766. * Assert if an event was dispatched a number of times.
  5767. *
  5768. * @param string $event
  5769. * @param int $times
  5770. * @return void
  5771. * @static
  5772. */
  5773. public static function assertDispatchedTimes($event, $times = 1)
  5774. {
  5775. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5776. $instance->assertDispatchedTimes($event, $times);
  5777. }
  5778. /**
  5779. * Determine if an event was dispatched based on a truth-test callback.
  5780. *
  5781. * @param string|\Closure $event
  5782. * @param callable|null $callback
  5783. * @return void
  5784. * @static
  5785. */
  5786. public static function assertNotDispatched($event, $callback = null)
  5787. {
  5788. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5789. $instance->assertNotDispatched($event, $callback);
  5790. }
  5791. /**
  5792. * Assert that no events were dispatched.
  5793. *
  5794. * @return void
  5795. * @static
  5796. */
  5797. public static function assertNothingDispatched()
  5798. {
  5799. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5800. $instance->assertNothingDispatched();
  5801. }
  5802. /**
  5803. * Get all of the events matching a truth-test callback.
  5804. *
  5805. * @param string $event
  5806. * @param callable|null $callback
  5807. * @return \Illuminate\Support\Collection
  5808. * @static
  5809. */
  5810. public static function dispatched($event, $callback = null)
  5811. {
  5812. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5813. return $instance->dispatched($event, $callback);
  5814. }
  5815. /**
  5816. * Determine if the given event has been dispatched.
  5817. *
  5818. * @param string $event
  5819. * @return bool
  5820. * @static
  5821. */
  5822. public static function hasDispatched($event)
  5823. {
  5824. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5825. return $instance->hasDispatched($event);
  5826. }
  5827. }
  5828. /**
  5829. *
  5830. *
  5831. * @see \Illuminate\Filesystem\Filesystem
  5832. */
  5833. class File {
  5834. /**
  5835. * Determine if a file or directory exists.
  5836. *
  5837. * @param string $path
  5838. * @return bool
  5839. * @static
  5840. */
  5841. public static function exists($path)
  5842. {
  5843. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5844. return $instance->exists($path);
  5845. }
  5846. /**
  5847. * Determine if a file or directory is missing.
  5848. *
  5849. * @param string $path
  5850. * @return bool
  5851. * @static
  5852. */
  5853. public static function missing($path)
  5854. {
  5855. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5856. return $instance->missing($path);
  5857. }
  5858. /**
  5859. * Get the contents of a file.
  5860. *
  5861. * @param string $path
  5862. * @param bool $lock
  5863. * @return string
  5864. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5865. * @static
  5866. */
  5867. public static function get($path, $lock = false)
  5868. {
  5869. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5870. return $instance->get($path, $lock);
  5871. }
  5872. /**
  5873. * Get contents of a file with shared access.
  5874. *
  5875. * @param string $path
  5876. * @return string
  5877. * @static
  5878. */
  5879. public static function sharedGet($path)
  5880. {
  5881. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5882. return $instance->sharedGet($path);
  5883. }
  5884. /**
  5885. * Get the returned value of a file.
  5886. *
  5887. * @param string $path
  5888. * @param array $data
  5889. * @return mixed
  5890. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5891. * @static
  5892. */
  5893. public static function getRequire($path, $data = [])
  5894. {
  5895. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5896. return $instance->getRequire($path, $data);
  5897. }
  5898. /**
  5899. * Require the given file once.
  5900. *
  5901. * @param string $path
  5902. * @param array $data
  5903. * @return mixed
  5904. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5905. * @static
  5906. */
  5907. public static function requireOnce($path, $data = [])
  5908. {
  5909. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5910. return $instance->requireOnce($path, $data);
  5911. }
  5912. /**
  5913. * Get the contents of a file one line at a time.
  5914. *
  5915. * @param string $path
  5916. * @return \Illuminate\Support\LazyCollection
  5917. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5918. * @static
  5919. */
  5920. public static function lines($path)
  5921. {
  5922. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5923. return $instance->lines($path);
  5924. }
  5925. /**
  5926. * Get the MD5 hash of the file at the given path.
  5927. *
  5928. * @param string $path
  5929. * @return string
  5930. * @static
  5931. */
  5932. public static function hash($path)
  5933. {
  5934. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5935. return $instance->hash($path);
  5936. }
  5937. /**
  5938. * Write the contents of a file.
  5939. *
  5940. * @param string $path
  5941. * @param string $contents
  5942. * @param bool $lock
  5943. * @return int|bool
  5944. * @static
  5945. */
  5946. public static function put($path, $contents, $lock = false)
  5947. {
  5948. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5949. return $instance->put($path, $contents, $lock);
  5950. }
  5951. /**
  5952. * Write the contents of a file, replacing it atomically if it already exists.
  5953. *
  5954. * @param string $path
  5955. * @param string $content
  5956. * @return void
  5957. * @static
  5958. */
  5959. public static function replace($path, $content)
  5960. {
  5961. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5962. $instance->replace($path, $content);
  5963. }
  5964. /**
  5965. * Replace a given string within a given file.
  5966. *
  5967. * @param array|string $search
  5968. * @param array|string $replace
  5969. * @param string $path
  5970. * @return void
  5971. * @static
  5972. */
  5973. public static function replaceInFile($search, $replace, $path)
  5974. {
  5975. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5976. $instance->replaceInFile($search, $replace, $path);
  5977. }
  5978. /**
  5979. * Prepend to a file.
  5980. *
  5981. * @param string $path
  5982. * @param string $data
  5983. * @return int
  5984. * @static
  5985. */
  5986. public static function prepend($path, $data)
  5987. {
  5988. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5989. return $instance->prepend($path, $data);
  5990. }
  5991. /**
  5992. * Append to a file.
  5993. *
  5994. * @param string $path
  5995. * @param string $data
  5996. * @return int
  5997. * @static
  5998. */
  5999. public static function append($path, $data)
  6000. {
  6001. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6002. return $instance->append($path, $data);
  6003. }
  6004. /**
  6005. * Get or set UNIX mode of a file or directory.
  6006. *
  6007. * @param string $path
  6008. * @param int|null $mode
  6009. * @return mixed
  6010. * @static
  6011. */
  6012. public static function chmod($path, $mode = null)
  6013. {
  6014. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6015. return $instance->chmod($path, $mode);
  6016. }
  6017. /**
  6018. * Delete the file at a given path.
  6019. *
  6020. * @param string|array $paths
  6021. * @return bool
  6022. * @static
  6023. */
  6024. public static function delete($paths)
  6025. {
  6026. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6027. return $instance->delete($paths);
  6028. }
  6029. /**
  6030. * Move a file to a new location.
  6031. *
  6032. * @param string $path
  6033. * @param string $target
  6034. * @return bool
  6035. * @static
  6036. */
  6037. public static function move($path, $target)
  6038. {
  6039. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6040. return $instance->move($path, $target);
  6041. }
  6042. /**
  6043. * Copy a file to a new location.
  6044. *
  6045. * @param string $path
  6046. * @param string $target
  6047. * @return bool
  6048. * @static
  6049. */
  6050. public static function copy($path, $target)
  6051. {
  6052. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6053. return $instance->copy($path, $target);
  6054. }
  6055. /**
  6056. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  6057. *
  6058. * @param string $target
  6059. * @param string $link
  6060. * @return void
  6061. * @static
  6062. */
  6063. public static function link($target, $link)
  6064. {
  6065. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6066. $instance->link($target, $link);
  6067. }
  6068. /**
  6069. * Create a relative symlink to the target file or directory.
  6070. *
  6071. * @param string $target
  6072. * @param string $link
  6073. * @return void
  6074. * @throws \RuntimeException
  6075. * @static
  6076. */
  6077. public static function relativeLink($target, $link)
  6078. {
  6079. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6080. $instance->relativeLink($target, $link);
  6081. }
  6082. /**
  6083. * Extract the file name from a file path.
  6084. *
  6085. * @param string $path
  6086. * @return string
  6087. * @static
  6088. */
  6089. public static function name($path)
  6090. {
  6091. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6092. return $instance->name($path);
  6093. }
  6094. /**
  6095. * Extract the trailing name component from a file path.
  6096. *
  6097. * @param string $path
  6098. * @return string
  6099. * @static
  6100. */
  6101. public static function basename($path)
  6102. {
  6103. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6104. return $instance->basename($path);
  6105. }
  6106. /**
  6107. * Extract the parent directory from a file path.
  6108. *
  6109. * @param string $path
  6110. * @return string
  6111. * @static
  6112. */
  6113. public static function dirname($path)
  6114. {
  6115. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6116. return $instance->dirname($path);
  6117. }
  6118. /**
  6119. * Extract the file extension from a file path.
  6120. *
  6121. * @param string $path
  6122. * @return string
  6123. * @static
  6124. */
  6125. public static function extension($path)
  6126. {
  6127. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6128. return $instance->extension($path);
  6129. }
  6130. /**
  6131. * Guess the file extension from the mime-type of a given file.
  6132. *
  6133. * @param string $path
  6134. * @return string|null
  6135. * @throws \RuntimeException
  6136. * @static
  6137. */
  6138. public static function guessExtension($path)
  6139. {
  6140. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6141. return $instance->guessExtension($path);
  6142. }
  6143. /**
  6144. * Get the file type of a given file.
  6145. *
  6146. * @param string $path
  6147. * @return string
  6148. * @static
  6149. */
  6150. public static function type($path)
  6151. {
  6152. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6153. return $instance->type($path);
  6154. }
  6155. /**
  6156. * Get the mime-type of a given file.
  6157. *
  6158. * @param string $path
  6159. * @return string|false
  6160. * @static
  6161. */
  6162. public static function mimeType($path)
  6163. {
  6164. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6165. return $instance->mimeType($path);
  6166. }
  6167. /**
  6168. * Get the file size of a given file.
  6169. *
  6170. * @param string $path
  6171. * @return int
  6172. * @static
  6173. */
  6174. public static function size($path)
  6175. {
  6176. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6177. return $instance->size($path);
  6178. }
  6179. /**
  6180. * Get the file's last modification time.
  6181. *
  6182. * @param string $path
  6183. * @return int
  6184. * @static
  6185. */
  6186. public static function lastModified($path)
  6187. {
  6188. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6189. return $instance->lastModified($path);
  6190. }
  6191. /**
  6192. * Determine if the given path is a directory.
  6193. *
  6194. * @param string $directory
  6195. * @return bool
  6196. * @static
  6197. */
  6198. public static function isDirectory($directory)
  6199. {
  6200. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6201. return $instance->isDirectory($directory);
  6202. }
  6203. /**
  6204. * Determine if the given path is readable.
  6205. *
  6206. * @param string $path
  6207. * @return bool
  6208. * @static
  6209. */
  6210. public static function isReadable($path)
  6211. {
  6212. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6213. return $instance->isReadable($path);
  6214. }
  6215. /**
  6216. * Determine if the given path is writable.
  6217. *
  6218. * @param string $path
  6219. * @return bool
  6220. * @static
  6221. */
  6222. public static function isWritable($path)
  6223. {
  6224. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6225. return $instance->isWritable($path);
  6226. }
  6227. /**
  6228. * Determine if the given path is a file.
  6229. *
  6230. * @param string $file
  6231. * @return bool
  6232. * @static
  6233. */
  6234. public static function isFile($file)
  6235. {
  6236. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6237. return $instance->isFile($file);
  6238. }
  6239. /**
  6240. * Find path names matching a given pattern.
  6241. *
  6242. * @param string $pattern
  6243. * @param int $flags
  6244. * @return array
  6245. * @static
  6246. */
  6247. public static function glob($pattern, $flags = 0)
  6248. {
  6249. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6250. return $instance->glob($pattern, $flags);
  6251. }
  6252. /**
  6253. * Get an array of all files in a directory.
  6254. *
  6255. * @param string $directory
  6256. * @param bool $hidden
  6257. * @return \Symfony\Component\Finder\SplFileInfo[]
  6258. * @static
  6259. */
  6260. public static function files($directory, $hidden = false)
  6261. {
  6262. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6263. return $instance->files($directory, $hidden);
  6264. }
  6265. /**
  6266. * Get all of the files from the given directory (recursive).
  6267. *
  6268. * @param string $directory
  6269. * @param bool $hidden
  6270. * @return \Symfony\Component\Finder\SplFileInfo[]
  6271. * @static
  6272. */
  6273. public static function allFiles($directory, $hidden = false)
  6274. {
  6275. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6276. return $instance->allFiles($directory, $hidden);
  6277. }
  6278. /**
  6279. * Get all of the directories within a given directory.
  6280. *
  6281. * @param string $directory
  6282. * @return array
  6283. * @static
  6284. */
  6285. public static function directories($directory)
  6286. {
  6287. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6288. return $instance->directories($directory);
  6289. }
  6290. /**
  6291. * Ensure a directory exists.
  6292. *
  6293. * @param string $path
  6294. * @param int $mode
  6295. * @param bool $recursive
  6296. * @return void
  6297. * @static
  6298. */
  6299. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  6300. {
  6301. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6302. $instance->ensureDirectoryExists($path, $mode, $recursive);
  6303. }
  6304. /**
  6305. * Create a directory.
  6306. *
  6307. * @param string $path
  6308. * @param int $mode
  6309. * @param bool $recursive
  6310. * @param bool $force
  6311. * @return bool
  6312. * @static
  6313. */
  6314. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  6315. {
  6316. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6317. return $instance->makeDirectory($path, $mode, $recursive, $force);
  6318. }
  6319. /**
  6320. * Move a directory.
  6321. *
  6322. * @param string $from
  6323. * @param string $to
  6324. * @param bool $overwrite
  6325. * @return bool
  6326. * @static
  6327. */
  6328. public static function moveDirectory($from, $to, $overwrite = false)
  6329. {
  6330. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6331. return $instance->moveDirectory($from, $to, $overwrite);
  6332. }
  6333. /**
  6334. * Copy a directory from one location to another.
  6335. *
  6336. * @param string $directory
  6337. * @param string $destination
  6338. * @param int|null $options
  6339. * @return bool
  6340. * @static
  6341. */
  6342. public static function copyDirectory($directory, $destination, $options = null)
  6343. {
  6344. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6345. return $instance->copyDirectory($directory, $destination, $options);
  6346. }
  6347. /**
  6348. * Recursively delete a directory.
  6349. *
  6350. * The directory itself may be optionally preserved.
  6351. *
  6352. * @param string $directory
  6353. * @param bool $preserve
  6354. * @return bool
  6355. * @static
  6356. */
  6357. public static function deleteDirectory($directory, $preserve = false)
  6358. {
  6359. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6360. return $instance->deleteDirectory($directory, $preserve);
  6361. }
  6362. /**
  6363. * Remove all of the directories within a given directory.
  6364. *
  6365. * @param string $directory
  6366. * @return bool
  6367. * @static
  6368. */
  6369. public static function deleteDirectories($directory)
  6370. {
  6371. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6372. return $instance->deleteDirectories($directory);
  6373. }
  6374. /**
  6375. * Empty the specified directory of all files and folders.
  6376. *
  6377. * @param string $directory
  6378. * @return bool
  6379. * @static
  6380. */
  6381. public static function cleanDirectory($directory)
  6382. {
  6383. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6384. return $instance->cleanDirectory($directory);
  6385. }
  6386. /**
  6387. * Register a custom macro.
  6388. *
  6389. * @param string $name
  6390. * @param object|callable $macro
  6391. * @return void
  6392. * @static
  6393. */
  6394. public static function macro($name, $macro)
  6395. {
  6396. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  6397. }
  6398. /**
  6399. * Mix another object into the class.
  6400. *
  6401. * @param object $mixin
  6402. * @param bool $replace
  6403. * @return void
  6404. * @throws \ReflectionException
  6405. * @static
  6406. */
  6407. public static function mixin($mixin, $replace = true)
  6408. {
  6409. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  6410. }
  6411. /**
  6412. * Checks if macro is registered.
  6413. *
  6414. * @param string $name
  6415. * @return bool
  6416. * @static
  6417. */
  6418. public static function hasMacro($name)
  6419. {
  6420. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  6421. }
  6422. /**
  6423. * Flush the existing macros.
  6424. *
  6425. * @return void
  6426. * @static
  6427. */
  6428. public static function flushMacros()
  6429. {
  6430. \Illuminate\Filesystem\Filesystem::flushMacros();
  6431. }
  6432. }
  6433. /**
  6434. *
  6435. *
  6436. * @see \Illuminate\Contracts\Auth\Access\Gate
  6437. */
  6438. class Gate {
  6439. /**
  6440. * Determine if a given ability has been defined.
  6441. *
  6442. * @param string|array $ability
  6443. * @return bool
  6444. * @static
  6445. */
  6446. public static function has($ability)
  6447. {
  6448. /** @var \Illuminate\Auth\Access\Gate $instance */
  6449. return $instance->has($ability);
  6450. }
  6451. /**
  6452. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
  6453. *
  6454. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  6455. * @param string|null $message
  6456. * @param string|null $code
  6457. * @return \Illuminate\Auth\Access\Response
  6458. * @throws \Illuminate\Auth\Access\AuthorizationException
  6459. * @static
  6460. */
  6461. public static function allowIf($condition, $message = null, $code = null)
  6462. {
  6463. /** @var \Illuminate\Auth\Access\Gate $instance */
  6464. return $instance->allowIf($condition, $message, $code);
  6465. }
  6466. /**
  6467. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
  6468. *
  6469. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  6470. * @param string|null $message
  6471. * @param string|null $code
  6472. * @return \Illuminate\Auth\Access\Response
  6473. * @throws \Illuminate\Auth\Access\AuthorizationException
  6474. * @static
  6475. */
  6476. public static function denyIf($condition, $message = null, $code = null)
  6477. {
  6478. /** @var \Illuminate\Auth\Access\Gate $instance */
  6479. return $instance->denyIf($condition, $message, $code);
  6480. }
  6481. /**
  6482. * Define a new ability.
  6483. *
  6484. * @param string $ability
  6485. * @param callable|string $callback
  6486. * @return \Illuminate\Auth\Access\Gate
  6487. * @throws \InvalidArgumentException
  6488. * @static
  6489. */
  6490. public static function define($ability, $callback)
  6491. {
  6492. /** @var \Illuminate\Auth\Access\Gate $instance */
  6493. return $instance->define($ability, $callback);
  6494. }
  6495. /**
  6496. * Define abilities for a resource.
  6497. *
  6498. * @param string $name
  6499. * @param string $class
  6500. * @param array|null $abilities
  6501. * @return \Illuminate\Auth\Access\Gate
  6502. * @static
  6503. */
  6504. public static function resource($name, $class, $abilities = null)
  6505. {
  6506. /** @var \Illuminate\Auth\Access\Gate $instance */
  6507. return $instance->resource($name, $class, $abilities);
  6508. }
  6509. /**
  6510. * Define a policy class for a given class type.
  6511. *
  6512. * @param string $class
  6513. * @param string $policy
  6514. * @return \Illuminate\Auth\Access\Gate
  6515. * @static
  6516. */
  6517. public static function policy($class, $policy)
  6518. {
  6519. /** @var \Illuminate\Auth\Access\Gate $instance */
  6520. return $instance->policy($class, $policy);
  6521. }
  6522. /**
  6523. * Register a callback to run before all Gate checks.
  6524. *
  6525. * @param callable $callback
  6526. * @return \Illuminate\Auth\Access\Gate
  6527. * @static
  6528. */
  6529. public static function before($callback)
  6530. {
  6531. /** @var \Illuminate\Auth\Access\Gate $instance */
  6532. return $instance->before($callback);
  6533. }
  6534. /**
  6535. * Register a callback to run after all Gate checks.
  6536. *
  6537. * @param callable $callback
  6538. * @return \Illuminate\Auth\Access\Gate
  6539. * @static
  6540. */
  6541. public static function after($callback)
  6542. {
  6543. /** @var \Illuminate\Auth\Access\Gate $instance */
  6544. return $instance->after($callback);
  6545. }
  6546. /**
  6547. * Determine if the given ability should be granted for the current user.
  6548. *
  6549. * @param string $ability
  6550. * @param array|mixed $arguments
  6551. * @return bool
  6552. * @static
  6553. */
  6554. public static function allows($ability, $arguments = [])
  6555. {
  6556. /** @var \Illuminate\Auth\Access\Gate $instance */
  6557. return $instance->allows($ability, $arguments);
  6558. }
  6559. /**
  6560. * Determine if the given ability should be denied for the current user.
  6561. *
  6562. * @param string $ability
  6563. * @param array|mixed $arguments
  6564. * @return bool
  6565. * @static
  6566. */
  6567. public static function denies($ability, $arguments = [])
  6568. {
  6569. /** @var \Illuminate\Auth\Access\Gate $instance */
  6570. return $instance->denies($ability, $arguments);
  6571. }
  6572. /**
  6573. * Determine if all of the given abilities should be granted for the current user.
  6574. *
  6575. * @param iterable|string $abilities
  6576. * @param array|mixed $arguments
  6577. * @return bool
  6578. * @static
  6579. */
  6580. public static function check($abilities, $arguments = [])
  6581. {
  6582. /** @var \Illuminate\Auth\Access\Gate $instance */
  6583. return $instance->check($abilities, $arguments);
  6584. }
  6585. /**
  6586. * Determine if any one of the given abilities should be granted for the current user.
  6587. *
  6588. * @param iterable|string $abilities
  6589. * @param array|mixed $arguments
  6590. * @return bool
  6591. * @static
  6592. */
  6593. public static function any($abilities, $arguments = [])
  6594. {
  6595. /** @var \Illuminate\Auth\Access\Gate $instance */
  6596. return $instance->any($abilities, $arguments);
  6597. }
  6598. /**
  6599. * Determine if all of the given abilities should be denied for the current user.
  6600. *
  6601. * @param iterable|string $abilities
  6602. * @param array|mixed $arguments
  6603. * @return bool
  6604. * @static
  6605. */
  6606. public static function none($abilities, $arguments = [])
  6607. {
  6608. /** @var \Illuminate\Auth\Access\Gate $instance */
  6609. return $instance->none($abilities, $arguments);
  6610. }
  6611. /**
  6612. * Determine if the given ability should be granted for the current user.
  6613. *
  6614. * @param string $ability
  6615. * @param array|mixed $arguments
  6616. * @return \Illuminate\Auth\Access\Response
  6617. * @throws \Illuminate\Auth\Access\AuthorizationException
  6618. * @static
  6619. */
  6620. public static function authorize($ability, $arguments = [])
  6621. {
  6622. /** @var \Illuminate\Auth\Access\Gate $instance */
  6623. return $instance->authorize($ability, $arguments);
  6624. }
  6625. /**
  6626. * Inspect the user for the given ability.
  6627. *
  6628. * @param string $ability
  6629. * @param array|mixed $arguments
  6630. * @return \Illuminate\Auth\Access\Response
  6631. * @static
  6632. */
  6633. public static function inspect($ability, $arguments = [])
  6634. {
  6635. /** @var \Illuminate\Auth\Access\Gate $instance */
  6636. return $instance->inspect($ability, $arguments);
  6637. }
  6638. /**
  6639. * Get the raw result from the authorization callback.
  6640. *
  6641. * @param string $ability
  6642. * @param array|mixed $arguments
  6643. * @return mixed
  6644. * @throws \Illuminate\Auth\Access\AuthorizationException
  6645. * @static
  6646. */
  6647. public static function raw($ability, $arguments = [])
  6648. {
  6649. /** @var \Illuminate\Auth\Access\Gate $instance */
  6650. return $instance->raw($ability, $arguments);
  6651. }
  6652. /**
  6653. * Get a policy instance for a given class.
  6654. *
  6655. * @param object|string $class
  6656. * @return mixed
  6657. * @static
  6658. */
  6659. public static function getPolicyFor($class)
  6660. {
  6661. /** @var \Illuminate\Auth\Access\Gate $instance */
  6662. return $instance->getPolicyFor($class);
  6663. }
  6664. /**
  6665. * Specify a callback to be used to guess policy names.
  6666. *
  6667. * @param callable $callback
  6668. * @return \Illuminate\Auth\Access\Gate
  6669. * @static
  6670. */
  6671. public static function guessPolicyNamesUsing($callback)
  6672. {
  6673. /** @var \Illuminate\Auth\Access\Gate $instance */
  6674. return $instance->guessPolicyNamesUsing($callback);
  6675. }
  6676. /**
  6677. * Build a policy class instance of the given type.
  6678. *
  6679. * @param object|string $class
  6680. * @return mixed
  6681. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  6682. * @static
  6683. */
  6684. public static function resolvePolicy($class)
  6685. {
  6686. /** @var \Illuminate\Auth\Access\Gate $instance */
  6687. return $instance->resolvePolicy($class);
  6688. }
  6689. /**
  6690. * Get a gate instance for the given user.
  6691. *
  6692. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  6693. * @return static
  6694. * @static
  6695. */
  6696. public static function forUser($user)
  6697. {
  6698. /** @var \Illuminate\Auth\Access\Gate $instance */
  6699. return $instance->forUser($user);
  6700. }
  6701. /**
  6702. * Get all of the defined abilities.
  6703. *
  6704. * @return array
  6705. * @static
  6706. */
  6707. public static function abilities()
  6708. {
  6709. /** @var \Illuminate\Auth\Access\Gate $instance */
  6710. return $instance->abilities();
  6711. }
  6712. /**
  6713. * Get all of the defined policies.
  6714. *
  6715. * @return array
  6716. * @static
  6717. */
  6718. public static function policies()
  6719. {
  6720. /** @var \Illuminate\Auth\Access\Gate $instance */
  6721. return $instance->policies();
  6722. }
  6723. /**
  6724. * Set the container instance used by the gate.
  6725. *
  6726. * @param \Illuminate\Contracts\Container\Container $container
  6727. * @return \Illuminate\Auth\Access\Gate
  6728. * @static
  6729. */
  6730. public static function setContainer($container)
  6731. {
  6732. /** @var \Illuminate\Auth\Access\Gate $instance */
  6733. return $instance->setContainer($container);
  6734. }
  6735. }
  6736. /**
  6737. *
  6738. *
  6739. * @see \Illuminate\Hashing\HashManager
  6740. */
  6741. class Hash {
  6742. /**
  6743. * Create an instance of the Bcrypt hash Driver.
  6744. *
  6745. * @return \Illuminate\Hashing\BcryptHasher
  6746. * @static
  6747. */
  6748. public static function createBcryptDriver()
  6749. {
  6750. /** @var \Illuminate\Hashing\HashManager $instance */
  6751. return $instance->createBcryptDriver();
  6752. }
  6753. /**
  6754. * Create an instance of the Argon2i hash Driver.
  6755. *
  6756. * @return \Illuminate\Hashing\ArgonHasher
  6757. * @static
  6758. */
  6759. public static function createArgonDriver()
  6760. {
  6761. /** @var \Illuminate\Hashing\HashManager $instance */
  6762. return $instance->createArgonDriver();
  6763. }
  6764. /**
  6765. * Create an instance of the Argon2id hash Driver.
  6766. *
  6767. * @return \Illuminate\Hashing\Argon2IdHasher
  6768. * @static
  6769. */
  6770. public static function createArgon2idDriver()
  6771. {
  6772. /** @var \Illuminate\Hashing\HashManager $instance */
  6773. return $instance->createArgon2idDriver();
  6774. }
  6775. /**
  6776. * Get information about the given hashed value.
  6777. *
  6778. * @param string $hashedValue
  6779. * @return array
  6780. * @static
  6781. */
  6782. public static function info($hashedValue)
  6783. {
  6784. /** @var \Illuminate\Hashing\HashManager $instance */
  6785. return $instance->info($hashedValue);
  6786. }
  6787. /**
  6788. * Hash the given value.
  6789. *
  6790. * @param string $value
  6791. * @param array $options
  6792. * @return string
  6793. * @static
  6794. */
  6795. public static function make($value, $options = [])
  6796. {
  6797. /** @var \Illuminate\Hashing\HashManager $instance */
  6798. return $instance->make($value, $options);
  6799. }
  6800. /**
  6801. * Check the given plain value against a hash.
  6802. *
  6803. * @param string $value
  6804. * @param string $hashedValue
  6805. * @param array $options
  6806. * @return bool
  6807. * @static
  6808. */
  6809. public static function check($value, $hashedValue, $options = [])
  6810. {
  6811. /** @var \Illuminate\Hashing\HashManager $instance */
  6812. return $instance->check($value, $hashedValue, $options);
  6813. }
  6814. /**
  6815. * Check if the given hash has been hashed using the given options.
  6816. *
  6817. * @param string $hashedValue
  6818. * @param array $options
  6819. * @return bool
  6820. * @static
  6821. */
  6822. public static function needsRehash($hashedValue, $options = [])
  6823. {
  6824. /** @var \Illuminate\Hashing\HashManager $instance */
  6825. return $instance->needsRehash($hashedValue, $options);
  6826. }
  6827. /**
  6828. * Get the default driver name.
  6829. *
  6830. * @return string
  6831. * @static
  6832. */
  6833. public static function getDefaultDriver()
  6834. {
  6835. /** @var \Illuminate\Hashing\HashManager $instance */
  6836. return $instance->getDefaultDriver();
  6837. }
  6838. /**
  6839. * Get a driver instance.
  6840. *
  6841. * @param string|null $driver
  6842. * @return mixed
  6843. * @throws \InvalidArgumentException
  6844. * @static
  6845. */
  6846. public static function driver($driver = null)
  6847. { //Method inherited from \Illuminate\Support\Manager
  6848. /** @var \Illuminate\Hashing\HashManager $instance */
  6849. return $instance->driver($driver);
  6850. }
  6851. /**
  6852. * Register a custom driver creator Closure.
  6853. *
  6854. * @param string $driver
  6855. * @param \Closure $callback
  6856. * @return \Illuminate\Hashing\HashManager
  6857. * @static
  6858. */
  6859. public static function extend($driver, $callback)
  6860. { //Method inherited from \Illuminate\Support\Manager
  6861. /** @var \Illuminate\Hashing\HashManager $instance */
  6862. return $instance->extend($driver, $callback);
  6863. }
  6864. /**
  6865. * Get all of the created "drivers".
  6866. *
  6867. * @return array
  6868. * @static
  6869. */
  6870. public static function getDrivers()
  6871. { //Method inherited from \Illuminate\Support\Manager
  6872. /** @var \Illuminate\Hashing\HashManager $instance */
  6873. return $instance->getDrivers();
  6874. }
  6875. /**
  6876. * Get the container instance used by the manager.
  6877. *
  6878. * @return \Illuminate\Contracts\Container\Container
  6879. * @static
  6880. */
  6881. public static function getContainer()
  6882. { //Method inherited from \Illuminate\Support\Manager
  6883. /** @var \Illuminate\Hashing\HashManager $instance */
  6884. return $instance->getContainer();
  6885. }
  6886. /**
  6887. * Set the container instance used by the manager.
  6888. *
  6889. * @param \Illuminate\Contracts\Container\Container $container
  6890. * @return \Illuminate\Hashing\HashManager
  6891. * @static
  6892. */
  6893. public static function setContainer($container)
  6894. { //Method inherited from \Illuminate\Support\Manager
  6895. /** @var \Illuminate\Hashing\HashManager $instance */
  6896. return $instance->setContainer($container);
  6897. }
  6898. /**
  6899. * Forget all of the resolved driver instances.
  6900. *
  6901. * @return \Illuminate\Hashing\HashManager
  6902. * @static
  6903. */
  6904. public static function forgetDrivers()
  6905. { //Method inherited from \Illuminate\Support\Manager
  6906. /** @var \Illuminate\Hashing\HashManager $instance */
  6907. return $instance->forgetDrivers();
  6908. }
  6909. }
  6910. /**
  6911. *
  6912. *
  6913. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  6914. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  6915. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  6916. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  6917. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  6918. * @method static \Illuminate\Http\Client\PendingRequest async()
  6919. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string $contents = '', string|null $filename = null, array $headers = [])
  6920. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  6921. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  6922. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  6923. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  6924. * @method static \Illuminate\Http\Client\PendingRequest dd()
  6925. * @method static \Illuminate\Http\Client\PendingRequest dump()
  6926. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleep = 0, ?callable $when = null)
  6927. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  6928. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  6929. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  6930. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  6931. * @method static \Illuminate\Http\Client\PendingRequest withBody(resource|string $content, string $contentType)
  6932. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  6933. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  6934. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  6935. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  6936. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  6937. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  6938. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string $userAgent)
  6939. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  6940. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  6941. * @method static array pool(callable $callback)
  6942. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  6943. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  6944. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  6945. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  6946. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  6947. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  6948. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  6949. * @see \Illuminate\Http\Client\Factory
  6950. */
  6951. class Http {
  6952. /**
  6953. * Create a new response instance for use during stubbing.
  6954. *
  6955. * @param array|string $body
  6956. * @param int $status
  6957. * @param array $headers
  6958. * @return \GuzzleHttp\Promise\PromiseInterface
  6959. * @static
  6960. */
  6961. public static function response($body = null, $status = 200, $headers = [])
  6962. {
  6963. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  6964. }
  6965. /**
  6966. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  6967. *
  6968. * @param array $responses
  6969. * @return \Illuminate\Http\Client\ResponseSequence
  6970. * @static
  6971. */
  6972. public static function sequence($responses = [])
  6973. {
  6974. /** @var \Illuminate\Http\Client\Factory $instance */
  6975. return $instance->sequence($responses);
  6976. }
  6977. /**
  6978. * Register a stub callable that will intercept requests and be able to return stub responses.
  6979. *
  6980. * @param callable|array $callback
  6981. * @return \Illuminate\Http\Client\Factory
  6982. * @static
  6983. */
  6984. public static function fake($callback = null)
  6985. {
  6986. /** @var \Illuminate\Http\Client\Factory $instance */
  6987. return $instance->fake($callback);
  6988. }
  6989. /**
  6990. * Register a response sequence for the given URL pattern.
  6991. *
  6992. * @param string $url
  6993. * @return \Illuminate\Http\Client\ResponseSequence
  6994. * @static
  6995. */
  6996. public static function fakeSequence($url = '*')
  6997. {
  6998. /** @var \Illuminate\Http\Client\Factory $instance */
  6999. return $instance->fakeSequence($url);
  7000. }
  7001. /**
  7002. * Stub the given URL using the given callback.
  7003. *
  7004. * @param string $url
  7005. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  7006. * @return \Illuminate\Http\Client\Factory
  7007. * @static
  7008. */
  7009. public static function stubUrl($url, $callback)
  7010. {
  7011. /** @var \Illuminate\Http\Client\Factory $instance */
  7012. return $instance->stubUrl($url, $callback);
  7013. }
  7014. /**
  7015. * Record a request response pair.
  7016. *
  7017. * @param \Illuminate\Http\Client\Request $request
  7018. * @param \Illuminate\Http\Client\Response $response
  7019. * @return void
  7020. * @static
  7021. */
  7022. public static function recordRequestResponsePair($request, $response)
  7023. {
  7024. /** @var \Illuminate\Http\Client\Factory $instance */
  7025. $instance->recordRequestResponsePair($request, $response);
  7026. }
  7027. /**
  7028. * Assert that a request / response pair was recorded matching a given truth test.
  7029. *
  7030. * @param callable $callback
  7031. * @return void
  7032. * @static
  7033. */
  7034. public static function assertSent($callback)
  7035. {
  7036. /** @var \Illuminate\Http\Client\Factory $instance */
  7037. $instance->assertSent($callback);
  7038. }
  7039. /**
  7040. * Assert that the given request was sent in the given order.
  7041. *
  7042. * @param array $callbacks
  7043. * @return void
  7044. * @static
  7045. */
  7046. public static function assertSentInOrder($callbacks)
  7047. {
  7048. /** @var \Illuminate\Http\Client\Factory $instance */
  7049. $instance->assertSentInOrder($callbacks);
  7050. }
  7051. /**
  7052. * Assert that a request / response pair was not recorded matching a given truth test.
  7053. *
  7054. * @param callable $callback
  7055. * @return void
  7056. * @static
  7057. */
  7058. public static function assertNotSent($callback)
  7059. {
  7060. /** @var \Illuminate\Http\Client\Factory $instance */
  7061. $instance->assertNotSent($callback);
  7062. }
  7063. /**
  7064. * Assert that no request / response pair was recorded.
  7065. *
  7066. * @return void
  7067. * @static
  7068. */
  7069. public static function assertNothingSent()
  7070. {
  7071. /** @var \Illuminate\Http\Client\Factory $instance */
  7072. $instance->assertNothingSent();
  7073. }
  7074. /**
  7075. * Assert how many requests have been recorded.
  7076. *
  7077. * @param int $count
  7078. * @return void
  7079. * @static
  7080. */
  7081. public static function assertSentCount($count)
  7082. {
  7083. /** @var \Illuminate\Http\Client\Factory $instance */
  7084. $instance->assertSentCount($count);
  7085. }
  7086. /**
  7087. * Assert that every created response sequence is empty.
  7088. *
  7089. * @return void
  7090. * @static
  7091. */
  7092. public static function assertSequencesAreEmpty()
  7093. {
  7094. /** @var \Illuminate\Http\Client\Factory $instance */
  7095. $instance->assertSequencesAreEmpty();
  7096. }
  7097. /**
  7098. * Get a collection of the request / response pairs matching the given truth test.
  7099. *
  7100. * @param callable $callback
  7101. * @return \Illuminate\Support\Collection
  7102. * @static
  7103. */
  7104. public static function recorded($callback = null)
  7105. {
  7106. /** @var \Illuminate\Http\Client\Factory $instance */
  7107. return $instance->recorded($callback);
  7108. }
  7109. /**
  7110. * Get the current event dispatcher implementation.
  7111. *
  7112. * @return \Illuminate\Contracts\Events\Dispatcher|null
  7113. * @static
  7114. */
  7115. public static function getDispatcher()
  7116. {
  7117. /** @var \Illuminate\Http\Client\Factory $instance */
  7118. return $instance->getDispatcher();
  7119. }
  7120. /**
  7121. * Register a custom macro.
  7122. *
  7123. * @param string $name
  7124. * @param object|callable $macro
  7125. * @return void
  7126. * @static
  7127. */
  7128. public static function macro($name, $macro)
  7129. {
  7130. \Illuminate\Http\Client\Factory::macro($name, $macro);
  7131. }
  7132. /**
  7133. * Mix another object into the class.
  7134. *
  7135. * @param object $mixin
  7136. * @param bool $replace
  7137. * @return void
  7138. * @throws \ReflectionException
  7139. * @static
  7140. */
  7141. public static function mixin($mixin, $replace = true)
  7142. {
  7143. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  7144. }
  7145. /**
  7146. * Checks if macro is registered.
  7147. *
  7148. * @param string $name
  7149. * @return bool
  7150. * @static
  7151. */
  7152. public static function hasMacro($name)
  7153. {
  7154. return \Illuminate\Http\Client\Factory::hasMacro($name);
  7155. }
  7156. /**
  7157. * Flush the existing macros.
  7158. *
  7159. * @return void
  7160. * @static
  7161. */
  7162. public static function flushMacros()
  7163. {
  7164. \Illuminate\Http\Client\Factory::flushMacros();
  7165. }
  7166. /**
  7167. * Dynamically handle calls to the class.
  7168. *
  7169. * @param string $method
  7170. * @param array $parameters
  7171. * @return mixed
  7172. * @throws \BadMethodCallException
  7173. * @static
  7174. */
  7175. public static function macroCall($method, $parameters)
  7176. {
  7177. /** @var \Illuminate\Http\Client\Factory $instance */
  7178. return $instance->macroCall($method, $parameters);
  7179. }
  7180. }
  7181. /**
  7182. *
  7183. *
  7184. * @see \Illuminate\Translation\Translator
  7185. */
  7186. class Lang {
  7187. /**
  7188. * Determine if a translation exists for a given locale.
  7189. *
  7190. * @param string $key
  7191. * @param string|null $locale
  7192. * @return bool
  7193. * @static
  7194. */
  7195. public static function hasForLocale($key, $locale = null)
  7196. {
  7197. /** @var \Illuminate\Translation\Translator $instance */
  7198. return $instance->hasForLocale($key, $locale);
  7199. }
  7200. /**
  7201. * Determine if a translation exists.
  7202. *
  7203. * @param string $key
  7204. * @param string|null $locale
  7205. * @param bool $fallback
  7206. * @return bool
  7207. * @static
  7208. */
  7209. public static function has($key, $locale = null, $fallback = true)
  7210. {
  7211. /** @var \Illuminate\Translation\Translator $instance */
  7212. return $instance->has($key, $locale, $fallback);
  7213. }
  7214. /**
  7215. * Get the translation for the given key.
  7216. *
  7217. * @param string $key
  7218. * @param array $replace
  7219. * @param string|null $locale
  7220. * @param bool $fallback
  7221. * @return string|array
  7222. * @static
  7223. */
  7224. public static function get($key, $replace = [], $locale = null, $fallback = true)
  7225. {
  7226. /** @var \Illuminate\Translation\Translator $instance */
  7227. return $instance->get($key, $replace, $locale, $fallback);
  7228. }
  7229. /**
  7230. * Get a translation according to an integer value.
  7231. *
  7232. * @param string $key
  7233. * @param \Countable|int|array $number
  7234. * @param array $replace
  7235. * @param string|null $locale
  7236. * @return string
  7237. * @static
  7238. */
  7239. public static function choice($key, $number, $replace = [], $locale = null)
  7240. {
  7241. /** @var \Illuminate\Translation\Translator $instance */
  7242. return $instance->choice($key, $number, $replace, $locale);
  7243. }
  7244. /**
  7245. * Add translation lines to the given locale.
  7246. *
  7247. * @param array $lines
  7248. * @param string $locale
  7249. * @param string $namespace
  7250. * @return void
  7251. * @static
  7252. */
  7253. public static function addLines($lines, $locale, $namespace = '*')
  7254. {
  7255. /** @var \Illuminate\Translation\Translator $instance */
  7256. $instance->addLines($lines, $locale, $namespace);
  7257. }
  7258. /**
  7259. * Load the specified language group.
  7260. *
  7261. * @param string $namespace
  7262. * @param string $group
  7263. * @param string $locale
  7264. * @return void
  7265. * @static
  7266. */
  7267. public static function load($namespace, $group, $locale)
  7268. {
  7269. /** @var \Illuminate\Translation\Translator $instance */
  7270. $instance->load($namespace, $group, $locale);
  7271. }
  7272. /**
  7273. * Add a new namespace to the loader.
  7274. *
  7275. * @param string $namespace
  7276. * @param string $hint
  7277. * @return void
  7278. * @static
  7279. */
  7280. public static function addNamespace($namespace, $hint)
  7281. {
  7282. /** @var \Illuminate\Translation\Translator $instance */
  7283. $instance->addNamespace($namespace, $hint);
  7284. }
  7285. /**
  7286. * Add a new JSON path to the loader.
  7287. *
  7288. * @param string $path
  7289. * @return void
  7290. * @static
  7291. */
  7292. public static function addJsonPath($path)
  7293. {
  7294. /** @var \Illuminate\Translation\Translator $instance */
  7295. $instance->addJsonPath($path);
  7296. }
  7297. /**
  7298. * Parse a key into namespace, group, and item.
  7299. *
  7300. * @param string $key
  7301. * @return array
  7302. * @static
  7303. */
  7304. public static function parseKey($key)
  7305. {
  7306. /** @var \Illuminate\Translation\Translator $instance */
  7307. return $instance->parseKey($key);
  7308. }
  7309. /**
  7310. * Get the message selector instance.
  7311. *
  7312. * @return \Illuminate\Translation\MessageSelector
  7313. * @static
  7314. */
  7315. public static function getSelector()
  7316. {
  7317. /** @var \Illuminate\Translation\Translator $instance */
  7318. return $instance->getSelector();
  7319. }
  7320. /**
  7321. * Set the message selector instance.
  7322. *
  7323. * @param \Illuminate\Translation\MessageSelector $selector
  7324. * @return void
  7325. * @static
  7326. */
  7327. public static function setSelector($selector)
  7328. {
  7329. /** @var \Illuminate\Translation\Translator $instance */
  7330. $instance->setSelector($selector);
  7331. }
  7332. /**
  7333. * Get the language line loader implementation.
  7334. *
  7335. * @return \Illuminate\Contracts\Translation\Loader
  7336. * @static
  7337. */
  7338. public static function getLoader()
  7339. {
  7340. /** @var \Illuminate\Translation\Translator $instance */
  7341. return $instance->getLoader();
  7342. }
  7343. /**
  7344. * Get the default locale being used.
  7345. *
  7346. * @return string
  7347. * @static
  7348. */
  7349. public static function locale()
  7350. {
  7351. /** @var \Illuminate\Translation\Translator $instance */
  7352. return $instance->locale();
  7353. }
  7354. /**
  7355. * Get the default locale being used.
  7356. *
  7357. * @return string
  7358. * @static
  7359. */
  7360. public static function getLocale()
  7361. {
  7362. /** @var \Illuminate\Translation\Translator $instance */
  7363. return $instance->getLocale();
  7364. }
  7365. /**
  7366. * Set the default locale.
  7367. *
  7368. * @param string $locale
  7369. * @return void
  7370. * @throws \InvalidArgumentException
  7371. * @static
  7372. */
  7373. public static function setLocale($locale)
  7374. {
  7375. /** @var \Illuminate\Translation\Translator $instance */
  7376. $instance->setLocale($locale);
  7377. }
  7378. /**
  7379. * Get the fallback locale being used.
  7380. *
  7381. * @return string
  7382. * @static
  7383. */
  7384. public static function getFallback()
  7385. {
  7386. /** @var \Illuminate\Translation\Translator $instance */
  7387. return $instance->getFallback();
  7388. }
  7389. /**
  7390. * Set the fallback locale being used.
  7391. *
  7392. * @param string $fallback
  7393. * @return void
  7394. * @static
  7395. */
  7396. public static function setFallback($fallback)
  7397. {
  7398. /** @var \Illuminate\Translation\Translator $instance */
  7399. $instance->setFallback($fallback);
  7400. }
  7401. /**
  7402. * Set the loaded translation groups.
  7403. *
  7404. * @param array $loaded
  7405. * @return void
  7406. * @static
  7407. */
  7408. public static function setLoaded($loaded)
  7409. {
  7410. /** @var \Illuminate\Translation\Translator $instance */
  7411. $instance->setLoaded($loaded);
  7412. }
  7413. /**
  7414. * Set the parsed value of a key.
  7415. *
  7416. * @param string $key
  7417. * @param array $parsed
  7418. * @return void
  7419. * @static
  7420. */
  7421. public static function setParsedKey($key, $parsed)
  7422. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7423. /** @var \Illuminate\Translation\Translator $instance */
  7424. $instance->setParsedKey($key, $parsed);
  7425. }
  7426. /**
  7427. * Flush the cache of parsed keys.
  7428. *
  7429. * @return void
  7430. * @static
  7431. */
  7432. public static function flushParsedKeys()
  7433. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7434. /** @var \Illuminate\Translation\Translator $instance */
  7435. $instance->flushParsedKeys();
  7436. }
  7437. /**
  7438. * Register a custom macro.
  7439. *
  7440. * @param string $name
  7441. * @param object|callable $macro
  7442. * @return void
  7443. * @static
  7444. */
  7445. public static function macro($name, $macro)
  7446. {
  7447. \Illuminate\Translation\Translator::macro($name, $macro);
  7448. }
  7449. /**
  7450. * Mix another object into the class.
  7451. *
  7452. * @param object $mixin
  7453. * @param bool $replace
  7454. * @return void
  7455. * @throws \ReflectionException
  7456. * @static
  7457. */
  7458. public static function mixin($mixin, $replace = true)
  7459. {
  7460. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  7461. }
  7462. /**
  7463. * Checks if macro is registered.
  7464. *
  7465. * @param string $name
  7466. * @return bool
  7467. * @static
  7468. */
  7469. public static function hasMacro($name)
  7470. {
  7471. return \Illuminate\Translation\Translator::hasMacro($name);
  7472. }
  7473. /**
  7474. * Flush the existing macros.
  7475. *
  7476. * @return void
  7477. * @static
  7478. */
  7479. public static function flushMacros()
  7480. {
  7481. \Illuminate\Translation\Translator::flushMacros();
  7482. }
  7483. }
  7484. /**
  7485. *
  7486. *
  7487. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  7488. * @method static \Illuminate\Log\Logger withoutContext()
  7489. * @method static void write(string $level, string $message, array $context = [])
  7490. * @method static void listen(\Closure $callback)
  7491. * @see \Illuminate\Log\Logger
  7492. */
  7493. class Log {
  7494. /**
  7495. * Build an on-demand log channel.
  7496. *
  7497. * @param array $config
  7498. * @return \Psr\Log\LoggerInterface
  7499. * @static
  7500. */
  7501. public static function build($config)
  7502. {
  7503. /** @var \Illuminate\Log\LogManager $instance */
  7504. return $instance->build($config);
  7505. }
  7506. /**
  7507. * Create a new, on-demand aggregate logger instance.
  7508. *
  7509. * @param array $channels
  7510. * @param string|null $channel
  7511. * @return \Psr\Log\LoggerInterface
  7512. * @static
  7513. */
  7514. public static function stack($channels, $channel = null)
  7515. {
  7516. /** @var \Illuminate\Log\LogManager $instance */
  7517. return $instance->stack($channels, $channel);
  7518. }
  7519. /**
  7520. * Get a log channel instance.
  7521. *
  7522. * @param string|null $channel
  7523. * @return \Psr\Log\LoggerInterface
  7524. * @static
  7525. */
  7526. public static function channel($channel = null)
  7527. {
  7528. /** @var \Illuminate\Log\LogManager $instance */
  7529. return $instance->channel($channel);
  7530. }
  7531. /**
  7532. * Get a log driver instance.
  7533. *
  7534. * @param string|null $driver
  7535. * @return \Psr\Log\LoggerInterface
  7536. * @static
  7537. */
  7538. public static function driver($driver = null)
  7539. {
  7540. /** @var \Illuminate\Log\LogManager $instance */
  7541. return $instance->driver($driver);
  7542. }
  7543. /**
  7544. * Get the default log driver name.
  7545. *
  7546. * @return string|null
  7547. * @static
  7548. */
  7549. public static function getDefaultDriver()
  7550. {
  7551. /** @var \Illuminate\Log\LogManager $instance */
  7552. return $instance->getDefaultDriver();
  7553. }
  7554. /**
  7555. * Set the default log driver name.
  7556. *
  7557. * @param string $name
  7558. * @return void
  7559. * @static
  7560. */
  7561. public static function setDefaultDriver($name)
  7562. {
  7563. /** @var \Illuminate\Log\LogManager $instance */
  7564. $instance->setDefaultDriver($name);
  7565. }
  7566. /**
  7567. * Register a custom driver creator Closure.
  7568. *
  7569. * @param string $driver
  7570. * @param \Closure $callback
  7571. * @return \Illuminate\Log\LogManager
  7572. * @static
  7573. */
  7574. public static function extend($driver, $callback)
  7575. {
  7576. /** @var \Illuminate\Log\LogManager $instance */
  7577. return $instance->extend($driver, $callback);
  7578. }
  7579. /**
  7580. * Unset the given channel instance.
  7581. *
  7582. * @param string|null $driver
  7583. * @return \Illuminate\Log\LogManager
  7584. * @static
  7585. */
  7586. public static function forgetChannel($driver = null)
  7587. {
  7588. /** @var \Illuminate\Log\LogManager $instance */
  7589. return $instance->forgetChannel($driver);
  7590. }
  7591. /**
  7592. * Get all of the resolved log channels.
  7593. *
  7594. * @return array
  7595. * @static
  7596. */
  7597. public static function getChannels()
  7598. {
  7599. /** @var \Illuminate\Log\LogManager $instance */
  7600. return $instance->getChannels();
  7601. }
  7602. /**
  7603. * System is unusable.
  7604. *
  7605. * @param string $message
  7606. * @param array $context
  7607. * @return void
  7608. * @static
  7609. */
  7610. public static function emergency($message, $context = [])
  7611. {
  7612. /** @var \Illuminate\Log\LogManager $instance */
  7613. $instance->emergency($message, $context);
  7614. }
  7615. /**
  7616. * Action must be taken immediately.
  7617. *
  7618. * Example: Entire website down, database unavailable, etc. This should
  7619. * trigger the SMS alerts and wake you up.
  7620. *
  7621. * @param string $message
  7622. * @param array $context
  7623. * @return void
  7624. * @static
  7625. */
  7626. public static function alert($message, $context = [])
  7627. {
  7628. /** @var \Illuminate\Log\LogManager $instance */
  7629. $instance->alert($message, $context);
  7630. }
  7631. /**
  7632. * Critical conditions.
  7633. *
  7634. * Example: Application component unavailable, unexpected exception.
  7635. *
  7636. * @param string $message
  7637. * @param array $context
  7638. * @return void
  7639. * @static
  7640. */
  7641. public static function critical($message, $context = [])
  7642. {
  7643. /** @var \Illuminate\Log\LogManager $instance */
  7644. $instance->critical($message, $context);
  7645. }
  7646. /**
  7647. * Runtime errors that do not require immediate action but should typically
  7648. * be logged and monitored.
  7649. *
  7650. * @param string $message
  7651. * @param array $context
  7652. * @return void
  7653. * @static
  7654. */
  7655. public static function error($message, $context = [])
  7656. {
  7657. /** @var \Illuminate\Log\LogManager $instance */
  7658. $instance->error($message, $context);
  7659. }
  7660. /**
  7661. * Exceptional occurrences that are not errors.
  7662. *
  7663. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  7664. * that are not necessarily wrong.
  7665. *
  7666. * @param string $message
  7667. * @param array $context
  7668. * @return void
  7669. * @static
  7670. */
  7671. public static function warning($message, $context = [])
  7672. {
  7673. /** @var \Illuminate\Log\LogManager $instance */
  7674. $instance->warning($message, $context);
  7675. }
  7676. /**
  7677. * Normal but significant events.
  7678. *
  7679. * @param string $message
  7680. * @param array $context
  7681. * @return void
  7682. * @static
  7683. */
  7684. public static function notice($message, $context = [])
  7685. {
  7686. /** @var \Illuminate\Log\LogManager $instance */
  7687. $instance->notice($message, $context);
  7688. }
  7689. /**
  7690. * Interesting events.
  7691. *
  7692. * Example: User logs in, SQL logs.
  7693. *
  7694. * @param string $message
  7695. * @param array $context
  7696. * @return void
  7697. * @static
  7698. */
  7699. public static function info($message, $context = [])
  7700. {
  7701. /** @var \Illuminate\Log\LogManager $instance */
  7702. $instance->info($message, $context);
  7703. }
  7704. /**
  7705. * Detailed debug information.
  7706. *
  7707. * @param string $message
  7708. * @param array $context
  7709. * @return void
  7710. * @static
  7711. */
  7712. public static function debug($message, $context = [])
  7713. {
  7714. /** @var \Illuminate\Log\LogManager $instance */
  7715. $instance->debug($message, $context);
  7716. }
  7717. /**
  7718. * Logs with an arbitrary level.
  7719. *
  7720. * @param mixed $level
  7721. * @param string $message
  7722. * @param array $context
  7723. * @return void
  7724. * @static
  7725. */
  7726. public static function log($level, $message, $context = [])
  7727. {
  7728. /** @var \Illuminate\Log\LogManager $instance */
  7729. $instance->log($level, $message, $context);
  7730. }
  7731. }
  7732. /**
  7733. *
  7734. *
  7735. * @method static void alwaysFrom(string $address, string|null $name = null)
  7736. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  7737. * @method static void alwaysReturnPath(string $address)
  7738. * @method static void alwaysTo(string $address, string|null $name = null)
  7739. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7740. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7741. * @method static void plain(string $view, array $data, $callback)
  7742. * @method static void html(string $html, $callback)
  7743. * @see \Illuminate\Mail\Mailer
  7744. * @see \Illuminate\Support\Testing\Fakes\MailFake
  7745. */
  7746. class Mail {
  7747. /**
  7748. * Get a mailer instance by name.
  7749. *
  7750. * @param string|null $name
  7751. * @return \Illuminate\Contracts\Mail\Mailer
  7752. * @static
  7753. */
  7754. public static function mailer($name = null)
  7755. {
  7756. /** @var \Illuminate\Mail\MailManager $instance */
  7757. return $instance->mailer($name);
  7758. }
  7759. /**
  7760. * Get a mailer driver instance.
  7761. *
  7762. * @param string|null $driver
  7763. * @return \Illuminate\Mail\Mailer
  7764. * @static
  7765. */
  7766. public static function driver($driver = null)
  7767. {
  7768. /** @var \Illuminate\Mail\MailManager $instance */
  7769. return $instance->driver($driver);
  7770. }
  7771. /**
  7772. * Create a new transport instance.
  7773. *
  7774. * @param array $config
  7775. * @return \Swift_Transport
  7776. * @throws \InvalidArgumentException
  7777. * @static
  7778. */
  7779. public static function createTransport($config)
  7780. {
  7781. /** @var \Illuminate\Mail\MailManager $instance */
  7782. return $instance->createTransport($config);
  7783. }
  7784. /**
  7785. * Get the default mail driver name.
  7786. *
  7787. * @return string
  7788. * @static
  7789. */
  7790. public static function getDefaultDriver()
  7791. {
  7792. /** @var \Illuminate\Mail\MailManager $instance */
  7793. return $instance->getDefaultDriver();
  7794. }
  7795. /**
  7796. * Set the default mail driver name.
  7797. *
  7798. * @param string $name
  7799. * @return void
  7800. * @static
  7801. */
  7802. public static function setDefaultDriver($name)
  7803. {
  7804. /** @var \Illuminate\Mail\MailManager $instance */
  7805. $instance->setDefaultDriver($name);
  7806. }
  7807. /**
  7808. * Disconnect the given mailer and remove from local cache.
  7809. *
  7810. * @param string|null $name
  7811. * @return void
  7812. * @static
  7813. */
  7814. public static function purge($name = null)
  7815. {
  7816. /** @var \Illuminate\Mail\MailManager $instance */
  7817. $instance->purge($name);
  7818. }
  7819. /**
  7820. * Register a custom transport creator Closure.
  7821. *
  7822. * @param string $driver
  7823. * @param \Closure $callback
  7824. * @return \Illuminate\Mail\MailManager
  7825. * @static
  7826. */
  7827. public static function extend($driver, $callback)
  7828. {
  7829. /** @var \Illuminate\Mail\MailManager $instance */
  7830. return $instance->extend($driver, $callback);
  7831. }
  7832. /**
  7833. * Get the application instance used by the manager.
  7834. *
  7835. * @return \Illuminate\Contracts\Foundation\Application
  7836. * @static
  7837. */
  7838. public static function getApplication()
  7839. {
  7840. /** @var \Illuminate\Mail\MailManager $instance */
  7841. return $instance->getApplication();
  7842. }
  7843. /**
  7844. * Set the application instance used by the manager.
  7845. *
  7846. * @param \Illuminate\Contracts\Foundation\Application $app
  7847. * @return \Illuminate\Mail\MailManager
  7848. * @static
  7849. */
  7850. public static function setApplication($app)
  7851. {
  7852. /** @var \Illuminate\Mail\MailManager $instance */
  7853. return $instance->setApplication($app);
  7854. }
  7855. /**
  7856. * Forget all of the resolved mailer instances.
  7857. *
  7858. * @return \Illuminate\Mail\MailManager
  7859. * @static
  7860. */
  7861. public static function forgetMailers()
  7862. {
  7863. /** @var \Illuminate\Mail\MailManager $instance */
  7864. return $instance->forgetMailers();
  7865. }
  7866. /**
  7867. * Assert if a mailable was sent based on a truth-test callback.
  7868. *
  7869. * @param string|\Closure $mailable
  7870. * @param callable|int|null $callback
  7871. * @return void
  7872. * @static
  7873. */
  7874. public static function assertSent($mailable, $callback = null)
  7875. {
  7876. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7877. $instance->assertSent($mailable, $callback);
  7878. }
  7879. /**
  7880. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  7881. *
  7882. * @param string|\Closure $mailable
  7883. * @param callable|null $callback
  7884. * @return void
  7885. * @static
  7886. */
  7887. public static function assertNotOutgoing($mailable, $callback = null)
  7888. {
  7889. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7890. $instance->assertNotOutgoing($mailable, $callback);
  7891. }
  7892. /**
  7893. * Determine if a mailable was not sent based on a truth-test callback.
  7894. *
  7895. * @param string|\Closure $mailable
  7896. * @param callable|null $callback
  7897. * @return void
  7898. * @static
  7899. */
  7900. public static function assertNotSent($mailable, $callback = null)
  7901. {
  7902. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7903. $instance->assertNotSent($mailable, $callback);
  7904. }
  7905. /**
  7906. * Assert that no mailables were sent or queued to be sent.
  7907. *
  7908. * @return void
  7909. * @static
  7910. */
  7911. public static function assertNothingOutgoing()
  7912. {
  7913. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7914. $instance->assertNothingOutgoing();
  7915. }
  7916. /**
  7917. * Assert that no mailables were sent.
  7918. *
  7919. * @return void
  7920. * @static
  7921. */
  7922. public static function assertNothingSent()
  7923. {
  7924. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7925. $instance->assertNothingSent();
  7926. }
  7927. /**
  7928. * Assert if a mailable was queued based on a truth-test callback.
  7929. *
  7930. * @param string|\Closure $mailable
  7931. * @param callable|int|null $callback
  7932. * @return void
  7933. * @static
  7934. */
  7935. public static function assertQueued($mailable, $callback = null)
  7936. {
  7937. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7938. $instance->assertQueued($mailable, $callback);
  7939. }
  7940. /**
  7941. * Determine if a mailable was not queued based on a truth-test callback.
  7942. *
  7943. * @param string|\Closure $mailable
  7944. * @param callable|null $callback
  7945. * @return void
  7946. * @static
  7947. */
  7948. public static function assertNotQueued($mailable, $callback = null)
  7949. {
  7950. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7951. $instance->assertNotQueued($mailable, $callback);
  7952. }
  7953. /**
  7954. * Assert that no mailables were queued.
  7955. *
  7956. * @return void
  7957. * @static
  7958. */
  7959. public static function assertNothingQueued()
  7960. {
  7961. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7962. $instance->assertNothingQueued();
  7963. }
  7964. /**
  7965. * Get all of the mailables matching a truth-test callback.
  7966. *
  7967. * @param string|\Closure $mailable
  7968. * @param callable|null $callback
  7969. * @return \Illuminate\Support\Collection
  7970. * @static
  7971. */
  7972. public static function sent($mailable, $callback = null)
  7973. {
  7974. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7975. return $instance->sent($mailable, $callback);
  7976. }
  7977. /**
  7978. * Determine if the given mailable has been sent.
  7979. *
  7980. * @param string $mailable
  7981. * @return bool
  7982. * @static
  7983. */
  7984. public static function hasSent($mailable)
  7985. {
  7986. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7987. return $instance->hasSent($mailable);
  7988. }
  7989. /**
  7990. * Get all of the queued mailables matching a truth-test callback.
  7991. *
  7992. * @param string|\Closure $mailable
  7993. * @param callable|null $callback
  7994. * @return \Illuminate\Support\Collection
  7995. * @static
  7996. */
  7997. public static function queued($mailable, $callback = null)
  7998. {
  7999. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8000. return $instance->queued($mailable, $callback);
  8001. }
  8002. /**
  8003. * Determine if the given mailable has been queued.
  8004. *
  8005. * @param string $mailable
  8006. * @return bool
  8007. * @static
  8008. */
  8009. public static function hasQueued($mailable)
  8010. {
  8011. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8012. return $instance->hasQueued($mailable);
  8013. }
  8014. /**
  8015. * Begin the process of mailing a mailable class instance.
  8016. *
  8017. * @param mixed $users
  8018. * @return \Illuminate\Mail\PendingMail
  8019. * @static
  8020. */
  8021. public static function to($users)
  8022. {
  8023. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8024. return $instance->to($users);
  8025. }
  8026. /**
  8027. * Begin the process of mailing a mailable class instance.
  8028. *
  8029. * @param mixed $users
  8030. * @return \Illuminate\Mail\PendingMail
  8031. * @static
  8032. */
  8033. public static function bcc($users)
  8034. {
  8035. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8036. return $instance->bcc($users);
  8037. }
  8038. /**
  8039. * Send a new message with only a raw text part.
  8040. *
  8041. * @param string $text
  8042. * @param \Closure|string $callback
  8043. * @return void
  8044. * @static
  8045. */
  8046. public static function raw($text, $callback)
  8047. {
  8048. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8049. $instance->raw($text, $callback);
  8050. }
  8051. /**
  8052. * Send a new message using a view.
  8053. *
  8054. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8055. * @param array $data
  8056. * @param \Closure|string|null $callback
  8057. * @return void
  8058. * @static
  8059. */
  8060. public static function send($view, $data = [], $callback = null)
  8061. {
  8062. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8063. $instance->send($view, $data, $callback);
  8064. }
  8065. /**
  8066. * Queue a new e-mail message for sending.
  8067. *
  8068. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8069. * @param string|null $queue
  8070. * @return mixed
  8071. * @static
  8072. */
  8073. public static function queue($view, $queue = null)
  8074. {
  8075. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8076. return $instance->queue($view, $queue);
  8077. }
  8078. /**
  8079. * Queue a new e-mail message for sending after (n) seconds.
  8080. *
  8081. * @param \DateTimeInterface|\DateInterval|int $delay
  8082. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8083. * @param string|null $queue
  8084. * @return mixed
  8085. * @static
  8086. */
  8087. public static function later($delay, $view, $queue = null)
  8088. {
  8089. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8090. return $instance->later($delay, $view, $queue);
  8091. }
  8092. /**
  8093. * Get the array of failed recipients.
  8094. *
  8095. * @return array
  8096. * @static
  8097. */
  8098. public static function failures()
  8099. {
  8100. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8101. return $instance->failures();
  8102. }
  8103. }
  8104. /**
  8105. *
  8106. *
  8107. * @see \Illuminate\Notifications\ChannelManager
  8108. */
  8109. class Notification {
  8110. /**
  8111. * Send the given notification to the given notifiable entities.
  8112. *
  8113. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8114. * @param mixed $notification
  8115. * @return void
  8116. * @static
  8117. */
  8118. public static function send($notifiables, $notification)
  8119. {
  8120. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8121. $instance->send($notifiables, $notification);
  8122. }
  8123. /**
  8124. * Send the given notification immediately.
  8125. *
  8126. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8127. * @param mixed $notification
  8128. * @param array|null $channels
  8129. * @return void
  8130. * @static
  8131. */
  8132. public static function sendNow($notifiables, $notification, $channels = null)
  8133. {
  8134. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8135. $instance->sendNow($notifiables, $notification, $channels);
  8136. }
  8137. /**
  8138. * Get a channel instance.
  8139. *
  8140. * @param string|null $name
  8141. * @return mixed
  8142. * @static
  8143. */
  8144. public static function channel($name = null)
  8145. {
  8146. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8147. return $instance->channel($name);
  8148. }
  8149. /**
  8150. * Get the default channel driver name.
  8151. *
  8152. * @return string
  8153. * @static
  8154. */
  8155. public static function getDefaultDriver()
  8156. {
  8157. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8158. return $instance->getDefaultDriver();
  8159. }
  8160. /**
  8161. * Get the default channel driver name.
  8162. *
  8163. * @return string
  8164. * @static
  8165. */
  8166. public static function deliversVia()
  8167. {
  8168. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8169. return $instance->deliversVia();
  8170. }
  8171. /**
  8172. * Set the default channel driver name.
  8173. *
  8174. * @param string $channel
  8175. * @return void
  8176. * @static
  8177. */
  8178. public static function deliverVia($channel)
  8179. {
  8180. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8181. $instance->deliverVia($channel);
  8182. }
  8183. /**
  8184. * Set the locale of notifications.
  8185. *
  8186. * @param string $locale
  8187. * @return \Illuminate\Notifications\ChannelManager
  8188. * @static
  8189. */
  8190. public static function locale($locale)
  8191. {
  8192. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8193. return $instance->locale($locale);
  8194. }
  8195. /**
  8196. * Get a driver instance.
  8197. *
  8198. * @param string|null $driver
  8199. * @return mixed
  8200. * @throws \InvalidArgumentException
  8201. * @static
  8202. */
  8203. public static function driver($driver = null)
  8204. { //Method inherited from \Illuminate\Support\Manager
  8205. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8206. return $instance->driver($driver);
  8207. }
  8208. /**
  8209. * Register a custom driver creator Closure.
  8210. *
  8211. * @param string $driver
  8212. * @param \Closure $callback
  8213. * @return \Illuminate\Notifications\ChannelManager
  8214. * @static
  8215. */
  8216. public static function extend($driver, $callback)
  8217. { //Method inherited from \Illuminate\Support\Manager
  8218. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8219. return $instance->extend($driver, $callback);
  8220. }
  8221. /**
  8222. * Get all of the created "drivers".
  8223. *
  8224. * @return array
  8225. * @static
  8226. */
  8227. public static function getDrivers()
  8228. { //Method inherited from \Illuminate\Support\Manager
  8229. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8230. return $instance->getDrivers();
  8231. }
  8232. /**
  8233. * Get the container instance used by the manager.
  8234. *
  8235. * @return \Illuminate\Contracts\Container\Container
  8236. * @static
  8237. */
  8238. public static function getContainer()
  8239. { //Method inherited from \Illuminate\Support\Manager
  8240. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8241. return $instance->getContainer();
  8242. }
  8243. /**
  8244. * Set the container instance used by the manager.
  8245. *
  8246. * @param \Illuminate\Contracts\Container\Container $container
  8247. * @return \Illuminate\Notifications\ChannelManager
  8248. * @static
  8249. */
  8250. public static function setContainer($container)
  8251. { //Method inherited from \Illuminate\Support\Manager
  8252. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8253. return $instance->setContainer($container);
  8254. }
  8255. /**
  8256. * Forget all of the resolved driver instances.
  8257. *
  8258. * @return \Illuminate\Notifications\ChannelManager
  8259. * @static
  8260. */
  8261. public static function forgetDrivers()
  8262. { //Method inherited from \Illuminate\Support\Manager
  8263. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8264. return $instance->forgetDrivers();
  8265. }
  8266. /**
  8267. * Assert if a notification was sent on-demand based on a truth-test callback.
  8268. *
  8269. * @param string|\Closure $notification
  8270. * @param callable|null $callback
  8271. * @return void
  8272. * @throws \Exception
  8273. * @static
  8274. */
  8275. public static function assertSentOnDemand($notification, $callback = null)
  8276. {
  8277. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8278. $instance->assertSentOnDemand($notification, $callback);
  8279. }
  8280. /**
  8281. * Assert if a notification was sent based on a truth-test callback.
  8282. *
  8283. * @param mixed $notifiable
  8284. * @param string|\Closure $notification
  8285. * @param callable|null $callback
  8286. * @return void
  8287. * @throws \Exception
  8288. * @static
  8289. */
  8290. public static function assertSentTo($notifiable, $notification, $callback = null)
  8291. {
  8292. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8293. $instance->assertSentTo($notifiable, $notification, $callback);
  8294. }
  8295. /**
  8296. * Assert if a notification was sent on-demand a number of times.
  8297. *
  8298. * @param string $notification
  8299. * @param int $times
  8300. * @return void
  8301. * @static
  8302. */
  8303. public static function assertSentOnDemandTimes($notification, $times = 1)
  8304. {
  8305. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8306. $instance->assertSentOnDemandTimes($notification, $times);
  8307. }
  8308. /**
  8309. * Assert if a notification was sent a number of times.
  8310. *
  8311. * @param mixed $notifiable
  8312. * @param string $notification
  8313. * @param int $times
  8314. * @return void
  8315. * @static
  8316. */
  8317. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  8318. {
  8319. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8320. $instance->assertSentToTimes($notifiable, $notification, $times);
  8321. }
  8322. /**
  8323. * Determine if a notification was sent based on a truth-test callback.
  8324. *
  8325. * @param mixed $notifiable
  8326. * @param string|\Closure $notification
  8327. * @param callable|null $callback
  8328. * @return void
  8329. * @throws \Exception
  8330. * @static
  8331. */
  8332. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  8333. {
  8334. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8335. $instance->assertNotSentTo($notifiable, $notification, $callback);
  8336. }
  8337. /**
  8338. * Assert that no notifications were sent.
  8339. *
  8340. * @return void
  8341. * @static
  8342. */
  8343. public static function assertNothingSent()
  8344. {
  8345. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8346. $instance->assertNothingSent();
  8347. }
  8348. /**
  8349. * Assert the total amount of times a notification was sent.
  8350. *
  8351. * @param string $notification
  8352. * @param int $expectedCount
  8353. * @return void
  8354. * @static
  8355. */
  8356. public static function assertSentTimes($notification, $expectedCount)
  8357. {
  8358. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8359. $instance->assertSentTimes($notification, $expectedCount);
  8360. }
  8361. /**
  8362. * Assert the total amount of times a notification was sent.
  8363. *
  8364. * @param int $expectedCount
  8365. * @param string $notification
  8366. * @return void
  8367. * @deprecated Use the assertSentTimes method instead
  8368. * @static
  8369. */
  8370. public static function assertTimesSent($expectedCount, $notification)
  8371. {
  8372. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8373. $instance->assertTimesSent($expectedCount, $notification);
  8374. }
  8375. /**
  8376. * Get all of the notifications matching a truth-test callback.
  8377. *
  8378. * @param mixed $notifiable
  8379. * @param string $notification
  8380. * @param callable|null $callback
  8381. * @return \Illuminate\Support\Collection
  8382. * @static
  8383. */
  8384. public static function sent($notifiable, $notification, $callback = null)
  8385. {
  8386. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8387. return $instance->sent($notifiable, $notification, $callback);
  8388. }
  8389. /**
  8390. * Determine if there are more notifications left to inspect.
  8391. *
  8392. * @param mixed $notifiable
  8393. * @param string $notification
  8394. * @return bool
  8395. * @static
  8396. */
  8397. public static function hasSent($notifiable, $notification)
  8398. {
  8399. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8400. return $instance->hasSent($notifiable, $notification);
  8401. }
  8402. /**
  8403. * Register a custom macro.
  8404. *
  8405. * @param string $name
  8406. * @param object|callable $macro
  8407. * @return void
  8408. * @static
  8409. */
  8410. public static function macro($name, $macro)
  8411. {
  8412. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  8413. }
  8414. /**
  8415. * Mix another object into the class.
  8416. *
  8417. * @param object $mixin
  8418. * @param bool $replace
  8419. * @return void
  8420. * @throws \ReflectionException
  8421. * @static
  8422. */
  8423. public static function mixin($mixin, $replace = true)
  8424. {
  8425. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  8426. }
  8427. /**
  8428. * Checks if macro is registered.
  8429. *
  8430. * @param string $name
  8431. * @return bool
  8432. * @static
  8433. */
  8434. public static function hasMacro($name)
  8435. {
  8436. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  8437. }
  8438. /**
  8439. * Flush the existing macros.
  8440. *
  8441. * @return void
  8442. * @static
  8443. */
  8444. public static function flushMacros()
  8445. {
  8446. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  8447. }
  8448. }
  8449. /**
  8450. *
  8451. *
  8452. * @method static mixed reset(array $credentials, \Closure $callback)
  8453. * @method static string sendResetLink(array $credentials, \Closure $callback = null)
  8454. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  8455. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8456. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8457. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  8458. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  8459. * @see \Illuminate\Auth\Passwords\PasswordBroker
  8460. */
  8461. class Password {
  8462. /**
  8463. * Attempt to get the broker from the local cache.
  8464. *
  8465. * @param string|null $name
  8466. * @return \Illuminate\Contracts\Auth\PasswordBroker
  8467. * @static
  8468. */
  8469. public static function broker($name = null)
  8470. {
  8471. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8472. return $instance->broker($name);
  8473. }
  8474. /**
  8475. * Get the default password broker name.
  8476. *
  8477. * @return string
  8478. * @static
  8479. */
  8480. public static function getDefaultDriver()
  8481. {
  8482. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8483. return $instance->getDefaultDriver();
  8484. }
  8485. /**
  8486. * Set the default password broker name.
  8487. *
  8488. * @param string $name
  8489. * @return void
  8490. * @static
  8491. */
  8492. public static function setDefaultDriver($name)
  8493. {
  8494. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8495. $instance->setDefaultDriver($name);
  8496. }
  8497. }
  8498. /**
  8499. *
  8500. *
  8501. * @see \Illuminate\Queue\QueueManager
  8502. * @see \Illuminate\Queue\Queue
  8503. */
  8504. class Queue {
  8505. /**
  8506. * Register an event listener for the before job event.
  8507. *
  8508. * @param mixed $callback
  8509. * @return void
  8510. * @static
  8511. */
  8512. public static function before($callback)
  8513. {
  8514. /** @var \Illuminate\Queue\QueueManager $instance */
  8515. $instance->before($callback);
  8516. }
  8517. /**
  8518. * Register an event listener for the after job event.
  8519. *
  8520. * @param mixed $callback
  8521. * @return void
  8522. * @static
  8523. */
  8524. public static function after($callback)
  8525. {
  8526. /** @var \Illuminate\Queue\QueueManager $instance */
  8527. $instance->after($callback);
  8528. }
  8529. /**
  8530. * Register an event listener for the exception occurred job event.
  8531. *
  8532. * @param mixed $callback
  8533. * @return void
  8534. * @static
  8535. */
  8536. public static function exceptionOccurred($callback)
  8537. {
  8538. /** @var \Illuminate\Queue\QueueManager $instance */
  8539. $instance->exceptionOccurred($callback);
  8540. }
  8541. /**
  8542. * Register an event listener for the daemon queue loop.
  8543. *
  8544. * @param mixed $callback
  8545. * @return void
  8546. * @static
  8547. */
  8548. public static function looping($callback)
  8549. {
  8550. /** @var \Illuminate\Queue\QueueManager $instance */
  8551. $instance->looping($callback);
  8552. }
  8553. /**
  8554. * Register an event listener for the failed job event.
  8555. *
  8556. * @param mixed $callback
  8557. * @return void
  8558. * @static
  8559. */
  8560. public static function failing($callback)
  8561. {
  8562. /** @var \Illuminate\Queue\QueueManager $instance */
  8563. $instance->failing($callback);
  8564. }
  8565. /**
  8566. * Register an event listener for the daemon queue stopping.
  8567. *
  8568. * @param mixed $callback
  8569. * @return void
  8570. * @static
  8571. */
  8572. public static function stopping($callback)
  8573. {
  8574. /** @var \Illuminate\Queue\QueueManager $instance */
  8575. $instance->stopping($callback);
  8576. }
  8577. /**
  8578. * Determine if the driver is connected.
  8579. *
  8580. * @param string|null $name
  8581. * @return bool
  8582. * @static
  8583. */
  8584. public static function connected($name = null)
  8585. {
  8586. /** @var \Illuminate\Queue\QueueManager $instance */
  8587. return $instance->connected($name);
  8588. }
  8589. /**
  8590. * Resolve a queue connection instance.
  8591. *
  8592. * @param string|null $name
  8593. * @return \Illuminate\Contracts\Queue\Queue
  8594. * @static
  8595. */
  8596. public static function connection($name = null)
  8597. {
  8598. /** @var \Illuminate\Queue\QueueManager $instance */
  8599. return $instance->connection($name);
  8600. }
  8601. /**
  8602. * Add a queue connection resolver.
  8603. *
  8604. * @param string $driver
  8605. * @param \Closure $resolver
  8606. * @return void
  8607. * @static
  8608. */
  8609. public static function extend($driver, $resolver)
  8610. {
  8611. /** @var \Illuminate\Queue\QueueManager $instance */
  8612. $instance->extend($driver, $resolver);
  8613. }
  8614. /**
  8615. * Add a queue connection resolver.
  8616. *
  8617. * @param string $driver
  8618. * @param \Closure $resolver
  8619. * @return void
  8620. * @static
  8621. */
  8622. public static function addConnector($driver, $resolver)
  8623. {
  8624. /** @var \Illuminate\Queue\QueueManager $instance */
  8625. $instance->addConnector($driver, $resolver);
  8626. }
  8627. /**
  8628. * Get the name of the default queue connection.
  8629. *
  8630. * @return string
  8631. * @static
  8632. */
  8633. public static function getDefaultDriver()
  8634. {
  8635. /** @var \Illuminate\Queue\QueueManager $instance */
  8636. return $instance->getDefaultDriver();
  8637. }
  8638. /**
  8639. * Set the name of the default queue connection.
  8640. *
  8641. * @param string $name
  8642. * @return void
  8643. * @static
  8644. */
  8645. public static function setDefaultDriver($name)
  8646. {
  8647. /** @var \Illuminate\Queue\QueueManager $instance */
  8648. $instance->setDefaultDriver($name);
  8649. }
  8650. /**
  8651. * Get the full name for the given connection.
  8652. *
  8653. * @param string|null $connection
  8654. * @return string
  8655. * @static
  8656. */
  8657. public static function getName($connection = null)
  8658. {
  8659. /** @var \Illuminate\Queue\QueueManager $instance */
  8660. return $instance->getName($connection);
  8661. }
  8662. /**
  8663. * Get the application instance used by the manager.
  8664. *
  8665. * @return \Illuminate\Contracts\Foundation\Application
  8666. * @static
  8667. */
  8668. public static function getApplication()
  8669. {
  8670. /** @var \Illuminate\Queue\QueueManager $instance */
  8671. return $instance->getApplication();
  8672. }
  8673. /**
  8674. * Set the application instance used by the manager.
  8675. *
  8676. * @param \Illuminate\Contracts\Foundation\Application $app
  8677. * @return \Illuminate\Queue\QueueManager
  8678. * @static
  8679. */
  8680. public static function setApplication($app)
  8681. {
  8682. /** @var \Illuminate\Queue\QueueManager $instance */
  8683. return $instance->setApplication($app);
  8684. }
  8685. /**
  8686. * Assert if a job was pushed based on a truth-test callback.
  8687. *
  8688. * @param string|\Closure $job
  8689. * @param callable|int|null $callback
  8690. * @return void
  8691. * @static
  8692. */
  8693. public static function assertPushed($job, $callback = null)
  8694. {
  8695. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8696. $instance->assertPushed($job, $callback);
  8697. }
  8698. /**
  8699. * Assert if a job was pushed based on a truth-test callback.
  8700. *
  8701. * @param string $queue
  8702. * @param string|\Closure $job
  8703. * @param callable|null $callback
  8704. * @return void
  8705. * @static
  8706. */
  8707. public static function assertPushedOn($queue, $job, $callback = null)
  8708. {
  8709. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8710. $instance->assertPushedOn($queue, $job, $callback);
  8711. }
  8712. /**
  8713. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  8714. *
  8715. * @param string $job
  8716. * @param array $expectedChain
  8717. * @param callable|null $callback
  8718. * @return void
  8719. * @static
  8720. */
  8721. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  8722. {
  8723. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8724. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  8725. }
  8726. /**
  8727. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  8728. *
  8729. * @param string $job
  8730. * @param callable|null $callback
  8731. * @return void
  8732. * @static
  8733. */
  8734. public static function assertPushedWithoutChain($job, $callback = null)
  8735. {
  8736. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8737. $instance->assertPushedWithoutChain($job, $callback);
  8738. }
  8739. /**
  8740. * Determine if a job was pushed based on a truth-test callback.
  8741. *
  8742. * @param string|\Closure $job
  8743. * @param callable|null $callback
  8744. * @return void
  8745. * @static
  8746. */
  8747. public static function assertNotPushed($job, $callback = null)
  8748. {
  8749. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8750. $instance->assertNotPushed($job, $callback);
  8751. }
  8752. /**
  8753. * Assert that no jobs were pushed.
  8754. *
  8755. * @return void
  8756. * @static
  8757. */
  8758. public static function assertNothingPushed()
  8759. {
  8760. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8761. $instance->assertNothingPushed();
  8762. }
  8763. /**
  8764. * Get all of the jobs matching a truth-test callback.
  8765. *
  8766. * @param string $job
  8767. * @param callable|null $callback
  8768. * @return \Illuminate\Support\Collection
  8769. * @static
  8770. */
  8771. public static function pushed($job, $callback = null)
  8772. {
  8773. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8774. return $instance->pushed($job, $callback);
  8775. }
  8776. /**
  8777. * Determine if there are any stored jobs for a given class.
  8778. *
  8779. * @param string $job
  8780. * @return bool
  8781. * @static
  8782. */
  8783. public static function hasPushed($job)
  8784. {
  8785. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8786. return $instance->hasPushed($job);
  8787. }
  8788. /**
  8789. * Get the size of the queue.
  8790. *
  8791. * @param string|null $queue
  8792. * @return int
  8793. * @static
  8794. */
  8795. public static function size($queue = null)
  8796. {
  8797. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8798. return $instance->size($queue);
  8799. }
  8800. /**
  8801. * Push a new job onto the queue.
  8802. *
  8803. * @param string|object $job
  8804. * @param mixed $data
  8805. * @param string|null $queue
  8806. * @return mixed
  8807. * @static
  8808. */
  8809. public static function push($job, $data = '', $queue = null)
  8810. {
  8811. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8812. return $instance->push($job, $data, $queue);
  8813. }
  8814. /**
  8815. * Push a raw payload onto the queue.
  8816. *
  8817. * @param string $payload
  8818. * @param string|null $queue
  8819. * @param array $options
  8820. * @return mixed
  8821. * @static
  8822. */
  8823. public static function pushRaw($payload, $queue = null, $options = [])
  8824. {
  8825. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8826. return $instance->pushRaw($payload, $queue, $options);
  8827. }
  8828. /**
  8829. * Push a new job onto the queue after a delay.
  8830. *
  8831. * @param \DateTimeInterface|\DateInterval|int $delay
  8832. * @param string|object $job
  8833. * @param mixed $data
  8834. * @param string|null $queue
  8835. * @return mixed
  8836. * @static
  8837. */
  8838. public static function later($delay, $job, $data = '', $queue = null)
  8839. {
  8840. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8841. return $instance->later($delay, $job, $data, $queue);
  8842. }
  8843. /**
  8844. * Push a new job onto the queue.
  8845. *
  8846. * @param string $queue
  8847. * @param string|object $job
  8848. * @param mixed $data
  8849. * @return mixed
  8850. * @static
  8851. */
  8852. public static function pushOn($queue, $job, $data = '')
  8853. {
  8854. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8855. return $instance->pushOn($queue, $job, $data);
  8856. }
  8857. /**
  8858. * Push a new job onto the queue after a delay.
  8859. *
  8860. * @param string $queue
  8861. * @param \DateTimeInterface|\DateInterval|int $delay
  8862. * @param string|object $job
  8863. * @param mixed $data
  8864. * @return mixed
  8865. * @static
  8866. */
  8867. public static function laterOn($queue, $delay, $job, $data = '')
  8868. {
  8869. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8870. return $instance->laterOn($queue, $delay, $job, $data);
  8871. }
  8872. /**
  8873. * Pop the next job off of the queue.
  8874. *
  8875. * @param string|null $queue
  8876. * @return \Illuminate\Contracts\Queue\Job|null
  8877. * @static
  8878. */
  8879. public static function pop($queue = null)
  8880. {
  8881. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8882. return $instance->pop($queue);
  8883. }
  8884. /**
  8885. * Push an array of jobs onto the queue.
  8886. *
  8887. * @param array $jobs
  8888. * @param mixed $data
  8889. * @param string|null $queue
  8890. * @return mixed
  8891. * @static
  8892. */
  8893. public static function bulk($jobs, $data = '', $queue = null)
  8894. {
  8895. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8896. return $instance->bulk($jobs, $data, $queue);
  8897. }
  8898. /**
  8899. * Get the jobs that have been pushed.
  8900. *
  8901. * @return array
  8902. * @static
  8903. */
  8904. public static function pushedJobs()
  8905. {
  8906. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8907. return $instance->pushedJobs();
  8908. }
  8909. /**
  8910. * Get the connection name for the queue.
  8911. *
  8912. * @return string
  8913. * @static
  8914. */
  8915. public static function getConnectionName()
  8916. {
  8917. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8918. return $instance->getConnectionName();
  8919. }
  8920. /**
  8921. * Set the connection name for the queue.
  8922. *
  8923. * @param string $name
  8924. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  8925. * @static
  8926. */
  8927. public static function setConnectionName($name)
  8928. {
  8929. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8930. return $instance->setConnectionName($name);
  8931. }
  8932. /**
  8933. * Get the backoff for an object-based queue handler.
  8934. *
  8935. * @param mixed $job
  8936. * @return mixed
  8937. * @static
  8938. */
  8939. public static function getJobBackoff($job)
  8940. { //Method inherited from \Illuminate\Queue\Queue
  8941. /** @var \Illuminate\Queue\SyncQueue $instance */
  8942. return $instance->getJobBackoff($job);
  8943. }
  8944. /**
  8945. * Get the expiration timestamp for an object-based queue handler.
  8946. *
  8947. * @param mixed $job
  8948. * @return mixed
  8949. * @static
  8950. */
  8951. public static function getJobExpiration($job)
  8952. { //Method inherited from \Illuminate\Queue\Queue
  8953. /** @var \Illuminate\Queue\SyncQueue $instance */
  8954. return $instance->getJobExpiration($job);
  8955. }
  8956. /**
  8957. * Register a callback to be executed when creating job payloads.
  8958. *
  8959. * @param callable|null $callback
  8960. * @return void
  8961. * @static
  8962. */
  8963. public static function createPayloadUsing($callback)
  8964. { //Method inherited from \Illuminate\Queue\Queue
  8965. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  8966. }
  8967. /**
  8968. * Get the container instance being used by the connection.
  8969. *
  8970. * @return \Illuminate\Container\Container
  8971. * @static
  8972. */
  8973. public static function getContainer()
  8974. { //Method inherited from \Illuminate\Queue\Queue
  8975. /** @var \Illuminate\Queue\SyncQueue $instance */
  8976. return $instance->getContainer();
  8977. }
  8978. /**
  8979. * Set the IoC container instance.
  8980. *
  8981. * @param \Illuminate\Container\Container $container
  8982. * @return void
  8983. * @static
  8984. */
  8985. public static function setContainer($container)
  8986. { //Method inherited from \Illuminate\Queue\Queue
  8987. /** @var \Illuminate\Queue\SyncQueue $instance */
  8988. $instance->setContainer($container);
  8989. }
  8990. }
  8991. /**
  8992. *
  8993. *
  8994. * @see \Illuminate\Routing\Redirector
  8995. */
  8996. class Redirect {
  8997. /**
  8998. * Create a new redirect response to the "home" route.
  8999. *
  9000. * @param int $status
  9001. * @return \Illuminate\Http\RedirectResponse
  9002. * @static
  9003. */
  9004. public static function home($status = 302)
  9005. {
  9006. /** @var \Illuminate\Routing\Redirector $instance */
  9007. return $instance->home($status);
  9008. }
  9009. /**
  9010. * Create a new redirect response to the previous location.
  9011. *
  9012. * @param int $status
  9013. * @param array $headers
  9014. * @param mixed $fallback
  9015. * @return \Illuminate\Http\RedirectResponse
  9016. * @static
  9017. */
  9018. public static function back($status = 302, $headers = [], $fallback = false)
  9019. {
  9020. /** @var \Illuminate\Routing\Redirector $instance */
  9021. return $instance->back($status, $headers, $fallback);
  9022. }
  9023. /**
  9024. * Create a new redirect response to the current URI.
  9025. *
  9026. * @param int $status
  9027. * @param array $headers
  9028. * @return \Illuminate\Http\RedirectResponse
  9029. * @static
  9030. */
  9031. public static function refresh($status = 302, $headers = [])
  9032. {
  9033. /** @var \Illuminate\Routing\Redirector $instance */
  9034. return $instance->refresh($status, $headers);
  9035. }
  9036. /**
  9037. * Create a new redirect response, while putting the current URL in the session.
  9038. *
  9039. * @param string $path
  9040. * @param int $status
  9041. * @param array $headers
  9042. * @param bool|null $secure
  9043. * @return \Illuminate\Http\RedirectResponse
  9044. * @static
  9045. */
  9046. public static function guest($path, $status = 302, $headers = [], $secure = null)
  9047. {
  9048. /** @var \Illuminate\Routing\Redirector $instance */
  9049. return $instance->guest($path, $status, $headers, $secure);
  9050. }
  9051. /**
  9052. * Create a new redirect response to the previously intended location.
  9053. *
  9054. * @param string $default
  9055. * @param int $status
  9056. * @param array $headers
  9057. * @param bool|null $secure
  9058. * @return \Illuminate\Http\RedirectResponse
  9059. * @static
  9060. */
  9061. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  9062. {
  9063. /** @var \Illuminate\Routing\Redirector $instance */
  9064. return $instance->intended($default, $status, $headers, $secure);
  9065. }
  9066. /**
  9067. * Set the intended url.
  9068. *
  9069. * @param string $url
  9070. * @return void
  9071. * @static
  9072. */
  9073. public static function setIntendedUrl($url)
  9074. {
  9075. /** @var \Illuminate\Routing\Redirector $instance */
  9076. $instance->setIntendedUrl($url);
  9077. }
  9078. /**
  9079. * Create a new redirect response to the given path.
  9080. *
  9081. * @param string $path
  9082. * @param int $status
  9083. * @param array $headers
  9084. * @param bool|null $secure
  9085. * @return \Illuminate\Http\RedirectResponse
  9086. * @static
  9087. */
  9088. public static function to($path, $status = 302, $headers = [], $secure = null)
  9089. {
  9090. /** @var \Illuminate\Routing\Redirector $instance */
  9091. return $instance->to($path, $status, $headers, $secure);
  9092. }
  9093. /**
  9094. * Create a new redirect response to an external URL (no validation).
  9095. *
  9096. * @param string $path
  9097. * @param int $status
  9098. * @param array $headers
  9099. * @return \Illuminate\Http\RedirectResponse
  9100. * @static
  9101. */
  9102. public static function away($path, $status = 302, $headers = [])
  9103. {
  9104. /** @var \Illuminate\Routing\Redirector $instance */
  9105. return $instance->away($path, $status, $headers);
  9106. }
  9107. /**
  9108. * Create a new redirect response to the given HTTPS path.
  9109. *
  9110. * @param string $path
  9111. * @param int $status
  9112. * @param array $headers
  9113. * @return \Illuminate\Http\RedirectResponse
  9114. * @static
  9115. */
  9116. public static function secure($path, $status = 302, $headers = [])
  9117. {
  9118. /** @var \Illuminate\Routing\Redirector $instance */
  9119. return $instance->secure($path, $status, $headers);
  9120. }
  9121. /**
  9122. * Create a new redirect response to a named route.
  9123. *
  9124. * @param string $route
  9125. * @param mixed $parameters
  9126. * @param int $status
  9127. * @param array $headers
  9128. * @return \Illuminate\Http\RedirectResponse
  9129. * @static
  9130. */
  9131. public static function route($route, $parameters = [], $status = 302, $headers = [])
  9132. {
  9133. /** @var \Illuminate\Routing\Redirector $instance */
  9134. return $instance->route($route, $parameters, $status, $headers);
  9135. }
  9136. /**
  9137. * Create a new redirect response to a signed named route.
  9138. *
  9139. * @param string $route
  9140. * @param mixed $parameters
  9141. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9142. * @param int $status
  9143. * @param array $headers
  9144. * @return \Illuminate\Http\RedirectResponse
  9145. * @static
  9146. */
  9147. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  9148. {
  9149. /** @var \Illuminate\Routing\Redirector $instance */
  9150. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  9151. }
  9152. /**
  9153. * Create a new redirect response to a signed named route.
  9154. *
  9155. * @param string $route
  9156. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9157. * @param mixed $parameters
  9158. * @param int $status
  9159. * @param array $headers
  9160. * @return \Illuminate\Http\RedirectResponse
  9161. * @static
  9162. */
  9163. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  9164. {
  9165. /** @var \Illuminate\Routing\Redirector $instance */
  9166. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  9167. }
  9168. /**
  9169. * Create a new redirect response to a controller action.
  9170. *
  9171. * @param string|array $action
  9172. * @param mixed $parameters
  9173. * @param int $status
  9174. * @param array $headers
  9175. * @return \Illuminate\Http\RedirectResponse
  9176. * @static
  9177. */
  9178. public static function action($action, $parameters = [], $status = 302, $headers = [])
  9179. {
  9180. /** @var \Illuminate\Routing\Redirector $instance */
  9181. return $instance->action($action, $parameters, $status, $headers);
  9182. }
  9183. /**
  9184. * Get the URL generator instance.
  9185. *
  9186. * @return \Illuminate\Routing\UrlGenerator
  9187. * @static
  9188. */
  9189. public static function getUrlGenerator()
  9190. {
  9191. /** @var \Illuminate\Routing\Redirector $instance */
  9192. return $instance->getUrlGenerator();
  9193. }
  9194. /**
  9195. * Set the active session store.
  9196. *
  9197. * @param \Illuminate\Session\Store $session
  9198. * @return void
  9199. * @static
  9200. */
  9201. public static function setSession($session)
  9202. {
  9203. /** @var \Illuminate\Routing\Redirector $instance */
  9204. $instance->setSession($session);
  9205. }
  9206. /**
  9207. * Register a custom macro.
  9208. *
  9209. * @param string $name
  9210. * @param object|callable $macro
  9211. * @return void
  9212. * @static
  9213. */
  9214. public static function macro($name, $macro)
  9215. {
  9216. \Illuminate\Routing\Redirector::macro($name, $macro);
  9217. }
  9218. /**
  9219. * Mix another object into the class.
  9220. *
  9221. * @param object $mixin
  9222. * @param bool $replace
  9223. * @return void
  9224. * @throws \ReflectionException
  9225. * @static
  9226. */
  9227. public static function mixin($mixin, $replace = true)
  9228. {
  9229. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  9230. }
  9231. /**
  9232. * Checks if macro is registered.
  9233. *
  9234. * @param string $name
  9235. * @return bool
  9236. * @static
  9237. */
  9238. public static function hasMacro($name)
  9239. {
  9240. return \Illuminate\Routing\Redirector::hasMacro($name);
  9241. }
  9242. /**
  9243. * Flush the existing macros.
  9244. *
  9245. * @return void
  9246. * @static
  9247. */
  9248. public static function flushMacros()
  9249. {
  9250. \Illuminate\Routing\Redirector::flushMacros();
  9251. }
  9252. }
  9253. /**
  9254. *
  9255. *
  9256. * @method static mixed filterFiles(mixed $files)
  9257. * @see \Illuminate\Http\Request
  9258. */
  9259. class Request {
  9260. /**
  9261. * Create a new Illuminate HTTP request from server variables.
  9262. *
  9263. * @return static
  9264. * @static
  9265. */
  9266. public static function capture()
  9267. {
  9268. return \Illuminate\Http\Request::capture();
  9269. }
  9270. /**
  9271. * Return the Request instance.
  9272. *
  9273. * @return \Illuminate\Http\Request
  9274. * @static
  9275. */
  9276. public static function instance()
  9277. {
  9278. /** @var \Illuminate\Http\Request $instance */
  9279. return $instance->instance();
  9280. }
  9281. /**
  9282. * Get the request method.
  9283. *
  9284. * @return string
  9285. * @static
  9286. */
  9287. public static function method()
  9288. {
  9289. /** @var \Illuminate\Http\Request $instance */
  9290. return $instance->method();
  9291. }
  9292. /**
  9293. * Get the root URL for the application.
  9294. *
  9295. * @return string
  9296. * @static
  9297. */
  9298. public static function root()
  9299. {
  9300. /** @var \Illuminate\Http\Request $instance */
  9301. return $instance->root();
  9302. }
  9303. /**
  9304. * Get the URL (no query string) for the request.
  9305. *
  9306. * @return string
  9307. * @static
  9308. */
  9309. public static function url()
  9310. {
  9311. /** @var \Illuminate\Http\Request $instance */
  9312. return $instance->url();
  9313. }
  9314. /**
  9315. * Get the full URL for the request.
  9316. *
  9317. * @return string
  9318. * @static
  9319. */
  9320. public static function fullUrl()
  9321. {
  9322. /** @var \Illuminate\Http\Request $instance */
  9323. return $instance->fullUrl();
  9324. }
  9325. /**
  9326. * Get the full URL for the request with the added query string parameters.
  9327. *
  9328. * @param array $query
  9329. * @return string
  9330. * @static
  9331. */
  9332. public static function fullUrlWithQuery($query)
  9333. {
  9334. /** @var \Illuminate\Http\Request $instance */
  9335. return $instance->fullUrlWithQuery($query);
  9336. }
  9337. /**
  9338. * Get the full URL for the request without the given query string parameters.
  9339. *
  9340. * @param array|string $query
  9341. * @return string
  9342. * @static
  9343. */
  9344. public static function fullUrlWithoutQuery($keys)
  9345. {
  9346. /** @var \Illuminate\Http\Request $instance */
  9347. return $instance->fullUrlWithoutQuery($keys);
  9348. }
  9349. /**
  9350. * Get the current path info for the request.
  9351. *
  9352. * @return string
  9353. * @static
  9354. */
  9355. public static function path()
  9356. {
  9357. /** @var \Illuminate\Http\Request $instance */
  9358. return $instance->path();
  9359. }
  9360. /**
  9361. * Get the current decoded path info for the request.
  9362. *
  9363. * @return string
  9364. * @static
  9365. */
  9366. public static function decodedPath()
  9367. {
  9368. /** @var \Illuminate\Http\Request $instance */
  9369. return $instance->decodedPath();
  9370. }
  9371. /**
  9372. * Get a segment from the URI (1 based index).
  9373. *
  9374. * @param int $index
  9375. * @param string|null $default
  9376. * @return string|null
  9377. * @static
  9378. */
  9379. public static function segment($index, $default = null)
  9380. {
  9381. /** @var \Illuminate\Http\Request $instance */
  9382. return $instance->segment($index, $default);
  9383. }
  9384. /**
  9385. * Get all of the segments for the request path.
  9386. *
  9387. * @return array
  9388. * @static
  9389. */
  9390. public static function segments()
  9391. {
  9392. /** @var \Illuminate\Http\Request $instance */
  9393. return $instance->segments();
  9394. }
  9395. /**
  9396. * Determine if the current request URI matches a pattern.
  9397. *
  9398. * @param mixed $patterns
  9399. * @return bool
  9400. * @static
  9401. */
  9402. public static function is(...$patterns)
  9403. {
  9404. /** @var \Illuminate\Http\Request $instance */
  9405. return $instance->is(...$patterns);
  9406. }
  9407. /**
  9408. * Determine if the route name matches a given pattern.
  9409. *
  9410. * @param mixed $patterns
  9411. * @return bool
  9412. * @static
  9413. */
  9414. public static function routeIs(...$patterns)
  9415. {
  9416. /** @var \Illuminate\Http\Request $instance */
  9417. return $instance->routeIs(...$patterns);
  9418. }
  9419. /**
  9420. * Determine if the current request URL and query string match a pattern.
  9421. *
  9422. * @param mixed $patterns
  9423. * @return bool
  9424. * @static
  9425. */
  9426. public static function fullUrlIs(...$patterns)
  9427. {
  9428. /** @var \Illuminate\Http\Request $instance */
  9429. return $instance->fullUrlIs(...$patterns);
  9430. }
  9431. /**
  9432. * Determine if the request is the result of an AJAX call.
  9433. *
  9434. * @return bool
  9435. * @static
  9436. */
  9437. public static function ajax()
  9438. {
  9439. /** @var \Illuminate\Http\Request $instance */
  9440. return $instance->ajax();
  9441. }
  9442. /**
  9443. * Determine if the request is the result of a PJAX call.
  9444. *
  9445. * @return bool
  9446. * @static
  9447. */
  9448. public static function pjax()
  9449. {
  9450. /** @var \Illuminate\Http\Request $instance */
  9451. return $instance->pjax();
  9452. }
  9453. /**
  9454. * Determine if the request is the result of a prefetch call.
  9455. *
  9456. * @return bool
  9457. * @static
  9458. */
  9459. public static function prefetch()
  9460. {
  9461. /** @var \Illuminate\Http\Request $instance */
  9462. return $instance->prefetch();
  9463. }
  9464. /**
  9465. * Determine if the request is over HTTPS.
  9466. *
  9467. * @return bool
  9468. * @static
  9469. */
  9470. public static function secure()
  9471. {
  9472. /** @var \Illuminate\Http\Request $instance */
  9473. return $instance->secure();
  9474. }
  9475. /**
  9476. * Get the client IP address.
  9477. *
  9478. * @return string|null
  9479. * @static
  9480. */
  9481. public static function ip()
  9482. {
  9483. /** @var \Illuminate\Http\Request $instance */
  9484. return $instance->ip();
  9485. }
  9486. /**
  9487. * Get the client IP addresses.
  9488. *
  9489. * @return array
  9490. * @static
  9491. */
  9492. public static function ips()
  9493. {
  9494. /** @var \Illuminate\Http\Request $instance */
  9495. return $instance->ips();
  9496. }
  9497. /**
  9498. * Get the client user agent.
  9499. *
  9500. * @return string|null
  9501. * @static
  9502. */
  9503. public static function userAgent()
  9504. {
  9505. /** @var \Illuminate\Http\Request $instance */
  9506. return $instance->userAgent();
  9507. }
  9508. /**
  9509. * Merge new input into the current request's input array.
  9510. *
  9511. * @param array $input
  9512. * @return \Illuminate\Http\Request
  9513. * @static
  9514. */
  9515. public static function merge($input)
  9516. {
  9517. /** @var \Illuminate\Http\Request $instance */
  9518. return $instance->merge($input);
  9519. }
  9520. /**
  9521. * Merge new input into the request's input, but only when that key is missing from the request.
  9522. *
  9523. * @param array $input
  9524. * @return \Illuminate\Http\Request
  9525. * @static
  9526. */
  9527. public static function mergeIfMissing($input)
  9528. {
  9529. /** @var \Illuminate\Http\Request $instance */
  9530. return $instance->mergeIfMissing($input);
  9531. }
  9532. /**
  9533. * Replace the input for the current request.
  9534. *
  9535. * @param array $input
  9536. * @return \Illuminate\Http\Request
  9537. * @static
  9538. */
  9539. public static function replace($input)
  9540. {
  9541. /** @var \Illuminate\Http\Request $instance */
  9542. return $instance->replace($input);
  9543. }
  9544. /**
  9545. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  9546. *
  9547. * Instead, you may use the "input" method.
  9548. *
  9549. * @param string $key
  9550. * @param mixed $default
  9551. * @return mixed
  9552. * @static
  9553. */
  9554. public static function get($key, $default = null)
  9555. {
  9556. /** @var \Illuminate\Http\Request $instance */
  9557. return $instance->get($key, $default);
  9558. }
  9559. /**
  9560. * Get the JSON payload for the request.
  9561. *
  9562. * @param string|null $key
  9563. * @param mixed $default
  9564. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  9565. * @static
  9566. */
  9567. public static function json($key = null, $default = null)
  9568. {
  9569. /** @var \Illuminate\Http\Request $instance */
  9570. return $instance->json($key, $default);
  9571. }
  9572. /**
  9573. * Create a new request instance from the given Laravel request.
  9574. *
  9575. * @param \Illuminate\Http\Request $from
  9576. * @param \Illuminate\Http\Request|null $to
  9577. * @return static
  9578. * @static
  9579. */
  9580. public static function createFrom($from, $to = null)
  9581. {
  9582. return \Illuminate\Http\Request::createFrom($from, $to);
  9583. }
  9584. /**
  9585. * Create an Illuminate request from a Symfony instance.
  9586. *
  9587. * @param \Symfony\Component\HttpFoundation\Request $request
  9588. * @return static
  9589. * @static
  9590. */
  9591. public static function createFromBase($request)
  9592. {
  9593. return \Illuminate\Http\Request::createFromBase($request);
  9594. }
  9595. /**
  9596. * Clones a request and overrides some of its parameters.
  9597. *
  9598. * @return static
  9599. * @param array|null $query The GET parameters
  9600. * @param array|null $request The POST parameters
  9601. * @param array|null $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9602. * @param array|null $cookies The COOKIE parameters
  9603. * @param array|null $files The FILES parameters
  9604. * @param array|null $server The SERVER parameters
  9605. * @return static
  9606. * @static
  9607. */
  9608. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  9609. {
  9610. /** @var \Illuminate\Http\Request $instance */
  9611. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  9612. }
  9613. /**
  9614. * Get the session associated with the request.
  9615. *
  9616. * @return \Illuminate\Session\Store
  9617. * @throws \RuntimeException
  9618. * @static
  9619. */
  9620. public static function session()
  9621. {
  9622. /** @var \Illuminate\Http\Request $instance */
  9623. return $instance->session();
  9624. }
  9625. /**
  9626. * Get the session associated with the request.
  9627. *
  9628. * @return \Illuminate\Session\Store|null
  9629. * @static
  9630. */
  9631. public static function getSession()
  9632. {
  9633. /** @var \Illuminate\Http\Request $instance */
  9634. return $instance->getSession();
  9635. }
  9636. /**
  9637. * Set the session instance on the request.
  9638. *
  9639. * @param \Illuminate\Contracts\Session\Session $session
  9640. * @return void
  9641. * @static
  9642. */
  9643. public static function setLaravelSession($session)
  9644. {
  9645. /** @var \Illuminate\Http\Request $instance */
  9646. $instance->setLaravelSession($session);
  9647. }
  9648. /**
  9649. * Get the user making the request.
  9650. *
  9651. * @param string|null $guard
  9652. * @return mixed
  9653. * @static
  9654. */
  9655. public static function user($guard = null)
  9656. {
  9657. /** @var \Illuminate\Http\Request $instance */
  9658. return $instance->user($guard);
  9659. }
  9660. /**
  9661. * Get the route handling the request.
  9662. *
  9663. * @param string|null $param
  9664. * @param mixed $default
  9665. * @return \Illuminate\Routing\Route|object|string|null
  9666. * @static
  9667. */
  9668. public static function route($param = null, $default = null)
  9669. {
  9670. /** @var \Illuminate\Http\Request $instance */
  9671. return $instance->route($param, $default);
  9672. }
  9673. /**
  9674. * Get a unique fingerprint for the request / route / IP address.
  9675. *
  9676. * @return string
  9677. * @throws \RuntimeException
  9678. * @static
  9679. */
  9680. public static function fingerprint()
  9681. {
  9682. /** @var \Illuminate\Http\Request $instance */
  9683. return $instance->fingerprint();
  9684. }
  9685. /**
  9686. * Set the JSON payload for the request.
  9687. *
  9688. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  9689. * @return \Illuminate\Http\Request
  9690. * @static
  9691. */
  9692. public static function setJson($json)
  9693. {
  9694. /** @var \Illuminate\Http\Request $instance */
  9695. return $instance->setJson($json);
  9696. }
  9697. /**
  9698. * Get the user resolver callback.
  9699. *
  9700. * @return \Closure
  9701. * @static
  9702. */
  9703. public static function getUserResolver()
  9704. {
  9705. /** @var \Illuminate\Http\Request $instance */
  9706. return $instance->getUserResolver();
  9707. }
  9708. /**
  9709. * Set the user resolver callback.
  9710. *
  9711. * @param \Closure $callback
  9712. * @return \Illuminate\Http\Request
  9713. * @static
  9714. */
  9715. public static function setUserResolver($callback)
  9716. {
  9717. /** @var \Illuminate\Http\Request $instance */
  9718. return $instance->setUserResolver($callback);
  9719. }
  9720. /**
  9721. * Get the route resolver callback.
  9722. *
  9723. * @return \Closure
  9724. * @static
  9725. */
  9726. public static function getRouteResolver()
  9727. {
  9728. /** @var \Illuminate\Http\Request $instance */
  9729. return $instance->getRouteResolver();
  9730. }
  9731. /**
  9732. * Set the route resolver callback.
  9733. *
  9734. * @param \Closure $callback
  9735. * @return \Illuminate\Http\Request
  9736. * @static
  9737. */
  9738. public static function setRouteResolver($callback)
  9739. {
  9740. /** @var \Illuminate\Http\Request $instance */
  9741. return $instance->setRouteResolver($callback);
  9742. }
  9743. /**
  9744. * Get all of the input and files for the request.
  9745. *
  9746. * @return array
  9747. * @static
  9748. */
  9749. public static function toArray()
  9750. {
  9751. /** @var \Illuminate\Http\Request $instance */
  9752. return $instance->toArray();
  9753. }
  9754. /**
  9755. * Determine if the given offset exists.
  9756. *
  9757. * @param string $offset
  9758. * @return bool
  9759. * @static
  9760. */
  9761. public static function offsetExists($offset)
  9762. {
  9763. /** @var \Illuminate\Http\Request $instance */
  9764. return $instance->offsetExists($offset);
  9765. }
  9766. /**
  9767. * Get the value at the given offset.
  9768. *
  9769. * @param string $offset
  9770. * @return mixed
  9771. * @static
  9772. */
  9773. public static function offsetGet($offset)
  9774. {
  9775. /** @var \Illuminate\Http\Request $instance */
  9776. return $instance->offsetGet($offset);
  9777. }
  9778. /**
  9779. * Set the value at the given offset.
  9780. *
  9781. * @param string $offset
  9782. * @param mixed $value
  9783. * @return void
  9784. * @static
  9785. */
  9786. public static function offsetSet($offset, $value)
  9787. {
  9788. /** @var \Illuminate\Http\Request $instance */
  9789. $instance->offsetSet($offset, $value);
  9790. }
  9791. /**
  9792. * Remove the value at the given offset.
  9793. *
  9794. * @param string $offset
  9795. * @return void
  9796. * @static
  9797. */
  9798. public static function offsetUnset($offset)
  9799. {
  9800. /** @var \Illuminate\Http\Request $instance */
  9801. $instance->offsetUnset($offset);
  9802. }
  9803. /**
  9804. * Sets the parameters for this request.
  9805. *
  9806. * This method also re-initializes all properties.
  9807. *
  9808. * @param array $query The GET parameters
  9809. * @param array $request The POST parameters
  9810. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9811. * @param array $cookies The COOKIE parameters
  9812. * @param array $files The FILES parameters
  9813. * @param array $server The SERVER parameters
  9814. * @param string|resource|null $content The raw body data
  9815. * @static
  9816. */
  9817. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  9818. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9819. /** @var \Illuminate\Http\Request $instance */
  9820. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  9821. }
  9822. /**
  9823. * Creates a new request with values from PHP's super globals.
  9824. *
  9825. * @return static
  9826. * @static
  9827. */
  9828. public static function createFromGlobals()
  9829. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9830. return \Illuminate\Http\Request::createFromGlobals();
  9831. }
  9832. /**
  9833. * Creates a Request based on a given URI and configuration.
  9834. *
  9835. * The information contained in the URI always take precedence
  9836. * over the other information (server and parameters).
  9837. *
  9838. * @param string $uri The URI
  9839. * @param string $method The HTTP method
  9840. * @param array $parameters The query (GET) or request (POST) parameters
  9841. * @param array $cookies The request cookies ($_COOKIE)
  9842. * @param array $files The request files ($_FILES)
  9843. * @param array $server The server parameters ($_SERVER)
  9844. * @param string|resource|null $content The raw body data
  9845. * @return static
  9846. * @throws BadRequestException When the URI is invalid
  9847. * @static
  9848. */
  9849. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  9850. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9851. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  9852. }
  9853. /**
  9854. * Sets a callable able to create a Request instance.
  9855. *
  9856. * This is mainly useful when you need to override the Request class
  9857. * to keep BC with an existing system. It should not be used for any
  9858. * other purpose.
  9859. *
  9860. * @static
  9861. */
  9862. public static function setFactory($callable)
  9863. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9864. return \Illuminate\Http\Request::setFactory($callable);
  9865. }
  9866. /**
  9867. * Overrides the PHP global variables according to this request instance.
  9868. *
  9869. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  9870. * $_FILES is never overridden, see rfc1867
  9871. *
  9872. * @static
  9873. */
  9874. public static function overrideGlobals()
  9875. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9876. /** @var \Illuminate\Http\Request $instance */
  9877. return $instance->overrideGlobals();
  9878. }
  9879. /**
  9880. * Sets a list of trusted proxies.
  9881. *
  9882. * You should only list the reverse proxies that you manage directly.
  9883. *
  9884. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  9885. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  9886. * @static
  9887. */
  9888. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  9889. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9890. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  9891. }
  9892. /**
  9893. * Gets the list of trusted proxies.
  9894. *
  9895. * @return array
  9896. * @static
  9897. */
  9898. public static function getTrustedProxies()
  9899. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9900. return \Illuminate\Http\Request::getTrustedProxies();
  9901. }
  9902. /**
  9903. * Gets the set of trusted headers from trusted proxies.
  9904. *
  9905. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  9906. * @static
  9907. */
  9908. public static function getTrustedHeaderSet()
  9909. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9910. return \Illuminate\Http\Request::getTrustedHeaderSet();
  9911. }
  9912. /**
  9913. * Sets a list of trusted host patterns.
  9914. *
  9915. * You should only list the hosts you manage using regexs.
  9916. *
  9917. * @param array $hostPatterns A list of trusted host patterns
  9918. * @static
  9919. */
  9920. public static function setTrustedHosts($hostPatterns)
  9921. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9922. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  9923. }
  9924. /**
  9925. * Gets the list of trusted host patterns.
  9926. *
  9927. * @return array
  9928. * @static
  9929. */
  9930. public static function getTrustedHosts()
  9931. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9932. return \Illuminate\Http\Request::getTrustedHosts();
  9933. }
  9934. /**
  9935. * Normalizes a query string.
  9936. *
  9937. * It builds a normalized query string, where keys/value pairs are alphabetized,
  9938. * have consistent escaping and unneeded delimiters are removed.
  9939. *
  9940. * @return string
  9941. * @static
  9942. */
  9943. public static function normalizeQueryString($qs)
  9944. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9945. return \Illuminate\Http\Request::normalizeQueryString($qs);
  9946. }
  9947. /**
  9948. * Enables support for the _method request parameter to determine the intended HTTP method.
  9949. *
  9950. * Be warned that enabling this feature might lead to CSRF issues in your code.
  9951. * Check that you are using CSRF tokens when required.
  9952. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  9953. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  9954. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  9955. *
  9956. * The HTTP method can only be overridden when the real HTTP method is POST.
  9957. *
  9958. * @static
  9959. */
  9960. public static function enableHttpMethodParameterOverride()
  9961. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9962. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  9963. }
  9964. /**
  9965. * Checks whether support for the _method request parameter is enabled.
  9966. *
  9967. * @return bool
  9968. * @static
  9969. */
  9970. public static function getHttpMethodParameterOverride()
  9971. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9972. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  9973. }
  9974. /**
  9975. * Whether the request contains a Session which was started in one of the
  9976. * previous requests.
  9977. *
  9978. * @return bool
  9979. * @static
  9980. */
  9981. public static function hasPreviousSession()
  9982. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9983. /** @var \Illuminate\Http\Request $instance */
  9984. return $instance->hasPreviousSession();
  9985. }
  9986. /**
  9987. * Whether the request contains a Session object.
  9988. *
  9989. * This method does not give any information about the state of the session object,
  9990. * like whether the session is started or not. It is just a way to check if this Request
  9991. * is associated with a Session instance.
  9992. *
  9993. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  9994. * @return bool
  9995. * @static
  9996. */
  9997. public static function hasSession()
  9998. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9999. /** @var \Illuminate\Http\Request $instance */
  10000. return $instance->hasSession();
  10001. }
  10002. /**
  10003. *
  10004. *
  10005. * @static
  10006. */
  10007. public static function setSession($session)
  10008. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10009. /** @var \Illuminate\Http\Request $instance */
  10010. return $instance->setSession($session);
  10011. }
  10012. /**
  10013. *
  10014. *
  10015. * @internal
  10016. * @param callable(): SessionInterface $factory
  10017. * @static
  10018. */
  10019. public static function setSessionFactory($factory)
  10020. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10021. /** @var \Illuminate\Http\Request $instance */
  10022. return $instance->setSessionFactory($factory);
  10023. }
  10024. /**
  10025. * Returns the client IP addresses.
  10026. *
  10027. * In the returned array the most trusted IP address is first, and the
  10028. * least trusted one last. The "real" client IP address is the last one,
  10029. * but this is also the least trusted one. Trusted proxies are stripped.
  10030. *
  10031. * Use this method carefully; you should use getClientIp() instead.
  10032. *
  10033. * @return array
  10034. * @see getClientIp()
  10035. * @static
  10036. */
  10037. public static function getClientIps()
  10038. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10039. /** @var \Illuminate\Http\Request $instance */
  10040. return $instance->getClientIps();
  10041. }
  10042. /**
  10043. * Returns the client IP address.
  10044. *
  10045. * This method can read the client IP address from the "X-Forwarded-For" header
  10046. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  10047. * header value is a comma+space separated list of IP addresses, the left-most
  10048. * being the original client, and each successive proxy that passed the request
  10049. * adding the IP address where it received the request from.
  10050. *
  10051. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  10052. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  10053. * argument of the Request::setTrustedProxies() method instead.
  10054. *
  10055. * @return string|null
  10056. * @see getClientIps()
  10057. * @see https://wikipedia.org/wiki/X-Forwarded-For
  10058. * @static
  10059. */
  10060. public static function getClientIp()
  10061. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10062. /** @var \Illuminate\Http\Request $instance */
  10063. return $instance->getClientIp();
  10064. }
  10065. /**
  10066. * Returns current script name.
  10067. *
  10068. * @return string
  10069. * @static
  10070. */
  10071. public static function getScriptName()
  10072. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10073. /** @var \Illuminate\Http\Request $instance */
  10074. return $instance->getScriptName();
  10075. }
  10076. /**
  10077. * Returns the path being requested relative to the executed script.
  10078. *
  10079. * The path info always starts with a /.
  10080. *
  10081. * Suppose this request is instantiated from /mysite on localhost:
  10082. *
  10083. * * http://localhost/mysite returns an empty string
  10084. * * http://localhost/mysite/about returns '/about'
  10085. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  10086. * * http://localhost/mysite/about?var=1 returns '/about'
  10087. *
  10088. * @return string The raw path (i.e. not urldecoded)
  10089. * @static
  10090. */
  10091. public static function getPathInfo()
  10092. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10093. /** @var \Illuminate\Http\Request $instance */
  10094. return $instance->getPathInfo();
  10095. }
  10096. /**
  10097. * Returns the root path from which this request is executed.
  10098. *
  10099. * Suppose that an index.php file instantiates this request object:
  10100. *
  10101. * * http://localhost/index.php returns an empty string
  10102. * * http://localhost/index.php/page returns an empty string
  10103. * * http://localhost/web/index.php returns '/web'
  10104. * * http://localhost/we%20b/index.php returns '/we%20b'
  10105. *
  10106. * @return string The raw path (i.e. not urldecoded)
  10107. * @static
  10108. */
  10109. public static function getBasePath()
  10110. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10111. /** @var \Illuminate\Http\Request $instance */
  10112. return $instance->getBasePath();
  10113. }
  10114. /**
  10115. * Returns the root URL from which this request is executed.
  10116. *
  10117. * The base URL never ends with a /.
  10118. *
  10119. * This is similar to getBasePath(), except that it also includes the
  10120. * script filename (e.g. index.php) if one exists.
  10121. *
  10122. * @return string The raw URL (i.e. not urldecoded)
  10123. * @static
  10124. */
  10125. public static function getBaseUrl()
  10126. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10127. /** @var \Illuminate\Http\Request $instance */
  10128. return $instance->getBaseUrl();
  10129. }
  10130. /**
  10131. * Gets the request's scheme.
  10132. *
  10133. * @return string
  10134. * @static
  10135. */
  10136. public static function getScheme()
  10137. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10138. /** @var \Illuminate\Http\Request $instance */
  10139. return $instance->getScheme();
  10140. }
  10141. /**
  10142. * Returns the port on which the request is made.
  10143. *
  10144. * This method can read the client port from the "X-Forwarded-Port" header
  10145. * when trusted proxies were set via "setTrustedProxies()".
  10146. *
  10147. * The "X-Forwarded-Port" header must contain the client port.
  10148. *
  10149. * @return int|string|null Can be a string if fetched from the server bag
  10150. * @static
  10151. */
  10152. public static function getPort()
  10153. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10154. /** @var \Illuminate\Http\Request $instance */
  10155. return $instance->getPort();
  10156. }
  10157. /**
  10158. * Returns the user.
  10159. *
  10160. * @return string|null
  10161. * @static
  10162. */
  10163. public static function getUser()
  10164. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10165. /** @var \Illuminate\Http\Request $instance */
  10166. return $instance->getUser();
  10167. }
  10168. /**
  10169. * Returns the password.
  10170. *
  10171. * @return string|null
  10172. * @static
  10173. */
  10174. public static function getPassword()
  10175. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10176. /** @var \Illuminate\Http\Request $instance */
  10177. return $instance->getPassword();
  10178. }
  10179. /**
  10180. * Gets the user info.
  10181. *
  10182. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  10183. * @static
  10184. */
  10185. public static function getUserInfo()
  10186. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10187. /** @var \Illuminate\Http\Request $instance */
  10188. return $instance->getUserInfo();
  10189. }
  10190. /**
  10191. * Returns the HTTP host being requested.
  10192. *
  10193. * The port name will be appended to the host if it's non-standard.
  10194. *
  10195. * @return string
  10196. * @static
  10197. */
  10198. public static function getHttpHost()
  10199. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10200. /** @var \Illuminate\Http\Request $instance */
  10201. return $instance->getHttpHost();
  10202. }
  10203. /**
  10204. * Returns the requested URI (path and query string).
  10205. *
  10206. * @return string The raw URI (i.e. not URI decoded)
  10207. * @static
  10208. */
  10209. public static function getRequestUri()
  10210. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10211. /** @var \Illuminate\Http\Request $instance */
  10212. return $instance->getRequestUri();
  10213. }
  10214. /**
  10215. * Gets the scheme and HTTP host.
  10216. *
  10217. * If the URL was called with basic authentication, the user
  10218. * and the password are not added to the generated string.
  10219. *
  10220. * @return string
  10221. * @static
  10222. */
  10223. public static function getSchemeAndHttpHost()
  10224. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10225. /** @var \Illuminate\Http\Request $instance */
  10226. return $instance->getSchemeAndHttpHost();
  10227. }
  10228. /**
  10229. * Generates a normalized URI (URL) for the Request.
  10230. *
  10231. * @return string
  10232. * @see getQueryString()
  10233. * @static
  10234. */
  10235. public static function getUri()
  10236. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10237. /** @var \Illuminate\Http\Request $instance */
  10238. return $instance->getUri();
  10239. }
  10240. /**
  10241. * Generates a normalized URI for the given path.
  10242. *
  10243. * @param string $path A path to use instead of the current one
  10244. * @return string
  10245. * @static
  10246. */
  10247. public static function getUriForPath($path)
  10248. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10249. /** @var \Illuminate\Http\Request $instance */
  10250. return $instance->getUriForPath($path);
  10251. }
  10252. /**
  10253. * Returns the path as relative reference from the current Request path.
  10254. *
  10255. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  10256. * Both paths must be absolute and not contain relative parts.
  10257. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  10258. * Furthermore, they can be used to reduce the link size in documents.
  10259. *
  10260. * Example target paths, given a base path of "/a/b/c/d":
  10261. * - "/a/b/c/d" -> ""
  10262. * - "/a/b/c/" -> "./"
  10263. * - "/a/b/" -> "../"
  10264. * - "/a/b/c/other" -> "other"
  10265. * - "/a/x/y" -> "../../x/y"
  10266. *
  10267. * @return string
  10268. * @static
  10269. */
  10270. public static function getRelativeUriForPath($path)
  10271. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10272. /** @var \Illuminate\Http\Request $instance */
  10273. return $instance->getRelativeUriForPath($path);
  10274. }
  10275. /**
  10276. * Generates the normalized query string for the Request.
  10277. *
  10278. * It builds a normalized query string, where keys/value pairs are alphabetized
  10279. * and have consistent escaping.
  10280. *
  10281. * @return string|null
  10282. * @static
  10283. */
  10284. public static function getQueryString()
  10285. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10286. /** @var \Illuminate\Http\Request $instance */
  10287. return $instance->getQueryString();
  10288. }
  10289. /**
  10290. * Checks whether the request is secure or not.
  10291. *
  10292. * This method can read the client protocol from the "X-Forwarded-Proto" header
  10293. * when trusted proxies were set via "setTrustedProxies()".
  10294. *
  10295. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  10296. *
  10297. * @return bool
  10298. * @static
  10299. */
  10300. public static function isSecure()
  10301. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10302. /** @var \Illuminate\Http\Request $instance */
  10303. return $instance->isSecure();
  10304. }
  10305. /**
  10306. * Returns the host name.
  10307. *
  10308. * This method can read the client host name from the "X-Forwarded-Host" header
  10309. * when trusted proxies were set via "setTrustedProxies()".
  10310. *
  10311. * The "X-Forwarded-Host" header must contain the client host name.
  10312. *
  10313. * @return string
  10314. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  10315. * @static
  10316. */
  10317. public static function getHost()
  10318. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10319. /** @var \Illuminate\Http\Request $instance */
  10320. return $instance->getHost();
  10321. }
  10322. /**
  10323. * Sets the request method.
  10324. *
  10325. * @static
  10326. */
  10327. public static function setMethod($method)
  10328. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10329. /** @var \Illuminate\Http\Request $instance */
  10330. return $instance->setMethod($method);
  10331. }
  10332. /**
  10333. * Gets the request "intended" method.
  10334. *
  10335. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  10336. * then it is used to determine the "real" intended HTTP method.
  10337. *
  10338. * The _method request parameter can also be used to determine the HTTP method,
  10339. * but only if enableHttpMethodParameterOverride() has been called.
  10340. *
  10341. * The method is always an uppercased string.
  10342. *
  10343. * @return string
  10344. * @see getRealMethod()
  10345. * @static
  10346. */
  10347. public static function getMethod()
  10348. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10349. /** @var \Illuminate\Http\Request $instance */
  10350. return $instance->getMethod();
  10351. }
  10352. /**
  10353. * Gets the "real" request method.
  10354. *
  10355. * @return string
  10356. * @see getMethod()
  10357. * @static
  10358. */
  10359. public static function getRealMethod()
  10360. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10361. /** @var \Illuminate\Http\Request $instance */
  10362. return $instance->getRealMethod();
  10363. }
  10364. /**
  10365. * Gets the mime type associated with the format.
  10366. *
  10367. * @return string|null
  10368. * @static
  10369. */
  10370. public static function getMimeType($format)
  10371. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10372. /** @var \Illuminate\Http\Request $instance */
  10373. return $instance->getMimeType($format);
  10374. }
  10375. /**
  10376. * Gets the mime types associated with the format.
  10377. *
  10378. * @return array
  10379. * @static
  10380. */
  10381. public static function getMimeTypes($format)
  10382. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10383. return \Illuminate\Http\Request::getMimeTypes($format);
  10384. }
  10385. /**
  10386. * Gets the format associated with the mime type.
  10387. *
  10388. * @return string|null
  10389. * @static
  10390. */
  10391. public static function getFormat($mimeType)
  10392. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10393. /** @var \Illuminate\Http\Request $instance */
  10394. return $instance->getFormat($mimeType);
  10395. }
  10396. /**
  10397. * Associates a format with mime types.
  10398. *
  10399. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  10400. * @static
  10401. */
  10402. public static function setFormat($format, $mimeTypes)
  10403. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10404. /** @var \Illuminate\Http\Request $instance */
  10405. return $instance->setFormat($format, $mimeTypes);
  10406. }
  10407. /**
  10408. * Gets the request format.
  10409. *
  10410. * Here is the process to determine the format:
  10411. *
  10412. * * format defined by the user (with setRequestFormat())
  10413. * * _format request attribute
  10414. * * $default
  10415. *
  10416. * @see getPreferredFormat
  10417. * @return string|null
  10418. * @static
  10419. */
  10420. public static function getRequestFormat($default = 'html')
  10421. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10422. /** @var \Illuminate\Http\Request $instance */
  10423. return $instance->getRequestFormat($default);
  10424. }
  10425. /**
  10426. * Sets the request format.
  10427. *
  10428. * @static
  10429. */
  10430. public static function setRequestFormat($format)
  10431. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10432. /** @var \Illuminate\Http\Request $instance */
  10433. return $instance->setRequestFormat($format);
  10434. }
  10435. /**
  10436. * Gets the format associated with the request.
  10437. *
  10438. * @return string|null
  10439. * @static
  10440. */
  10441. public static function getContentType()
  10442. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10443. /** @var \Illuminate\Http\Request $instance */
  10444. return $instance->getContentType();
  10445. }
  10446. /**
  10447. * Sets the default locale.
  10448. *
  10449. * @static
  10450. */
  10451. public static function setDefaultLocale($locale)
  10452. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10453. /** @var \Illuminate\Http\Request $instance */
  10454. return $instance->setDefaultLocale($locale);
  10455. }
  10456. /**
  10457. * Get the default locale.
  10458. *
  10459. * @return string
  10460. * @static
  10461. */
  10462. public static function getDefaultLocale()
  10463. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10464. /** @var \Illuminate\Http\Request $instance */
  10465. return $instance->getDefaultLocale();
  10466. }
  10467. /**
  10468. * Sets the locale.
  10469. *
  10470. * @static
  10471. */
  10472. public static function setLocale($locale)
  10473. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10474. /** @var \Illuminate\Http\Request $instance */
  10475. return $instance->setLocale($locale);
  10476. }
  10477. /**
  10478. * Get the locale.
  10479. *
  10480. * @return string
  10481. * @static
  10482. */
  10483. public static function getLocale()
  10484. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10485. /** @var \Illuminate\Http\Request $instance */
  10486. return $instance->getLocale();
  10487. }
  10488. /**
  10489. * Checks if the request method is of specified type.
  10490. *
  10491. * @param string $method Uppercase request method (GET, POST etc)
  10492. * @return bool
  10493. * @static
  10494. */
  10495. public static function isMethod($method)
  10496. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10497. /** @var \Illuminate\Http\Request $instance */
  10498. return $instance->isMethod($method);
  10499. }
  10500. /**
  10501. * Checks whether or not the method is safe.
  10502. *
  10503. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  10504. * @return bool
  10505. * @static
  10506. */
  10507. public static function isMethodSafe()
  10508. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10509. /** @var \Illuminate\Http\Request $instance */
  10510. return $instance->isMethodSafe();
  10511. }
  10512. /**
  10513. * Checks whether or not the method is idempotent.
  10514. *
  10515. * @return bool
  10516. * @static
  10517. */
  10518. public static function isMethodIdempotent()
  10519. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10520. /** @var \Illuminate\Http\Request $instance */
  10521. return $instance->isMethodIdempotent();
  10522. }
  10523. /**
  10524. * Checks whether the method is cacheable or not.
  10525. *
  10526. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  10527. * @return bool
  10528. * @static
  10529. */
  10530. public static function isMethodCacheable()
  10531. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10532. /** @var \Illuminate\Http\Request $instance */
  10533. return $instance->isMethodCacheable();
  10534. }
  10535. /**
  10536. * Returns the protocol version.
  10537. *
  10538. * If the application is behind a proxy, the protocol version used in the
  10539. * requests between the client and the proxy and between the proxy and the
  10540. * server might be different. This returns the former (from the "Via" header)
  10541. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  10542. * the latter (from the "SERVER_PROTOCOL" server parameter).
  10543. *
  10544. * @return string|null
  10545. * @static
  10546. */
  10547. public static function getProtocolVersion()
  10548. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10549. /** @var \Illuminate\Http\Request $instance */
  10550. return $instance->getProtocolVersion();
  10551. }
  10552. /**
  10553. * Returns the request body content.
  10554. *
  10555. * @param bool $asResource If true, a resource will be returned
  10556. * @return string|resource
  10557. * @static
  10558. */
  10559. public static function getContent($asResource = false)
  10560. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10561. /** @var \Illuminate\Http\Request $instance */
  10562. return $instance->getContent($asResource);
  10563. }
  10564. /**
  10565. * Gets the Etags.
  10566. *
  10567. * @return array
  10568. * @static
  10569. */
  10570. public static function getETags()
  10571. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10572. /** @var \Illuminate\Http\Request $instance */
  10573. return $instance->getETags();
  10574. }
  10575. /**
  10576. *
  10577. *
  10578. * @return bool
  10579. * @static
  10580. */
  10581. public static function isNoCache()
  10582. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10583. /** @var \Illuminate\Http\Request $instance */
  10584. return $instance->isNoCache();
  10585. }
  10586. /**
  10587. * Gets the preferred format for the response by inspecting, in the following order:
  10588. * * the request format set using setRequestFormat;
  10589. * * the values of the Accept HTTP header.
  10590. *
  10591. * Note that if you use this method, you should send the "Vary: Accept" header
  10592. * in the response to prevent any issues with intermediary HTTP caches.
  10593. *
  10594. * @static
  10595. */
  10596. public static function getPreferredFormat($default = 'html')
  10597. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10598. /** @var \Illuminate\Http\Request $instance */
  10599. return $instance->getPreferredFormat($default);
  10600. }
  10601. /**
  10602. * Returns the preferred language.
  10603. *
  10604. * @param string[] $locales An array of ordered available locales
  10605. * @return string|null
  10606. * @static
  10607. */
  10608. public static function getPreferredLanguage($locales = null)
  10609. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10610. /** @var \Illuminate\Http\Request $instance */
  10611. return $instance->getPreferredLanguage($locales);
  10612. }
  10613. /**
  10614. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  10615. *
  10616. * @return array
  10617. * @static
  10618. */
  10619. public static function getLanguages()
  10620. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10621. /** @var \Illuminate\Http\Request $instance */
  10622. return $instance->getLanguages();
  10623. }
  10624. /**
  10625. * Gets a list of charsets acceptable by the client browser in preferable order.
  10626. *
  10627. * @return array
  10628. * @static
  10629. */
  10630. public static function getCharsets()
  10631. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10632. /** @var \Illuminate\Http\Request $instance */
  10633. return $instance->getCharsets();
  10634. }
  10635. /**
  10636. * Gets a list of encodings acceptable by the client browser in preferable order.
  10637. *
  10638. * @return array
  10639. * @static
  10640. */
  10641. public static function getEncodings()
  10642. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10643. /** @var \Illuminate\Http\Request $instance */
  10644. return $instance->getEncodings();
  10645. }
  10646. /**
  10647. * Gets a list of content types acceptable by the client browser in preferable order.
  10648. *
  10649. * @return array
  10650. * @static
  10651. */
  10652. public static function getAcceptableContentTypes()
  10653. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10654. /** @var \Illuminate\Http\Request $instance */
  10655. return $instance->getAcceptableContentTypes();
  10656. }
  10657. /**
  10658. * Returns true if the request is an XMLHttpRequest.
  10659. *
  10660. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  10661. * It is known to work with common JavaScript frameworks:
  10662. *
  10663. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  10664. * @return bool
  10665. * @static
  10666. */
  10667. public static function isXmlHttpRequest()
  10668. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10669. /** @var \Illuminate\Http\Request $instance */
  10670. return $instance->isXmlHttpRequest();
  10671. }
  10672. /**
  10673. * Checks whether the client browser prefers safe content or not according to RFC8674.
  10674. *
  10675. * @see https://tools.ietf.org/html/rfc8674
  10676. * @static
  10677. */
  10678. public static function preferSafeContent()
  10679. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10680. /** @var \Illuminate\Http\Request $instance */
  10681. return $instance->preferSafeContent();
  10682. }
  10683. /**
  10684. * Indicates whether this request originated from a trusted proxy.
  10685. *
  10686. * This can be useful to determine whether or not to trust the
  10687. * contents of a proxy-specific header.
  10688. *
  10689. * @return bool
  10690. * @static
  10691. */
  10692. public static function isFromTrustedProxy()
  10693. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10694. /** @var \Illuminate\Http\Request $instance */
  10695. return $instance->isFromTrustedProxy();
  10696. }
  10697. /**
  10698. * Determine if the request is sending JSON.
  10699. *
  10700. * @return bool
  10701. * @static
  10702. */
  10703. public static function isJson()
  10704. {
  10705. /** @var \Illuminate\Http\Request $instance */
  10706. return $instance->isJson();
  10707. }
  10708. /**
  10709. * Determine if the current request probably expects a JSON response.
  10710. *
  10711. * @return bool
  10712. * @static
  10713. */
  10714. public static function expectsJson()
  10715. {
  10716. /** @var \Illuminate\Http\Request $instance */
  10717. return $instance->expectsJson();
  10718. }
  10719. /**
  10720. * Determine if the current request is asking for JSON.
  10721. *
  10722. * @return bool
  10723. * @static
  10724. */
  10725. public static function wantsJson()
  10726. {
  10727. /** @var \Illuminate\Http\Request $instance */
  10728. return $instance->wantsJson();
  10729. }
  10730. /**
  10731. * Determines whether the current requests accepts a given content type.
  10732. *
  10733. * @param string|array $contentTypes
  10734. * @return bool
  10735. * @static
  10736. */
  10737. public static function accepts($contentTypes)
  10738. {
  10739. /** @var \Illuminate\Http\Request $instance */
  10740. return $instance->accepts($contentTypes);
  10741. }
  10742. /**
  10743. * Return the most suitable content type from the given array based on content negotiation.
  10744. *
  10745. * @param string|array $contentTypes
  10746. * @return string|null
  10747. * @static
  10748. */
  10749. public static function prefers($contentTypes)
  10750. {
  10751. /** @var \Illuminate\Http\Request $instance */
  10752. return $instance->prefers($contentTypes);
  10753. }
  10754. /**
  10755. * Determine if the current request accepts any content type.
  10756. *
  10757. * @return bool
  10758. * @static
  10759. */
  10760. public static function acceptsAnyContentType()
  10761. {
  10762. /** @var \Illuminate\Http\Request $instance */
  10763. return $instance->acceptsAnyContentType();
  10764. }
  10765. /**
  10766. * Determines whether a request accepts JSON.
  10767. *
  10768. * @return bool
  10769. * @static
  10770. */
  10771. public static function acceptsJson()
  10772. {
  10773. /** @var \Illuminate\Http\Request $instance */
  10774. return $instance->acceptsJson();
  10775. }
  10776. /**
  10777. * Determines whether a request accepts HTML.
  10778. *
  10779. * @return bool
  10780. * @static
  10781. */
  10782. public static function acceptsHtml()
  10783. {
  10784. /** @var \Illuminate\Http\Request $instance */
  10785. return $instance->acceptsHtml();
  10786. }
  10787. /**
  10788. * Determine if the given content types match.
  10789. *
  10790. * @param string $actual
  10791. * @param string $type
  10792. * @return bool
  10793. * @static
  10794. */
  10795. public static function matchesType($actual, $type)
  10796. {
  10797. return \Illuminate\Http\Request::matchesType($actual, $type);
  10798. }
  10799. /**
  10800. * Get the data format expected in the response.
  10801. *
  10802. * @param string $default
  10803. * @return string
  10804. * @static
  10805. */
  10806. public static function format($default = 'html')
  10807. {
  10808. /** @var \Illuminate\Http\Request $instance */
  10809. return $instance->format($default);
  10810. }
  10811. /**
  10812. * Retrieve an old input item.
  10813. *
  10814. * @param string|null $key
  10815. * @param string|array|null $default
  10816. * @return string|array|null
  10817. * @static
  10818. */
  10819. public static function old($key = null, $default = null)
  10820. {
  10821. /** @var \Illuminate\Http\Request $instance */
  10822. return $instance->old($key, $default);
  10823. }
  10824. /**
  10825. * Flash the input for the current request to the session.
  10826. *
  10827. * @return void
  10828. * @static
  10829. */
  10830. public static function flash()
  10831. {
  10832. /** @var \Illuminate\Http\Request $instance */
  10833. $instance->flash();
  10834. }
  10835. /**
  10836. * Flash only some of the input to the session.
  10837. *
  10838. * @param array|mixed $keys
  10839. * @return void
  10840. * @static
  10841. */
  10842. public static function flashOnly($keys)
  10843. {
  10844. /** @var \Illuminate\Http\Request $instance */
  10845. $instance->flashOnly($keys);
  10846. }
  10847. /**
  10848. * Flash only some of the input to the session.
  10849. *
  10850. * @param array|mixed $keys
  10851. * @return void
  10852. * @static
  10853. */
  10854. public static function flashExcept($keys)
  10855. {
  10856. /** @var \Illuminate\Http\Request $instance */
  10857. $instance->flashExcept($keys);
  10858. }
  10859. /**
  10860. * Flush all of the old input from the session.
  10861. *
  10862. * @return void
  10863. * @static
  10864. */
  10865. public static function flush()
  10866. {
  10867. /** @var \Illuminate\Http\Request $instance */
  10868. $instance->flush();
  10869. }
  10870. /**
  10871. * Retrieve a server variable from the request.
  10872. *
  10873. * @param string|null $key
  10874. * @param string|array|null $default
  10875. * @return string|array|null
  10876. * @static
  10877. */
  10878. public static function server($key = null, $default = null)
  10879. {
  10880. /** @var \Illuminate\Http\Request $instance */
  10881. return $instance->server($key, $default);
  10882. }
  10883. /**
  10884. * Determine if a header is set on the request.
  10885. *
  10886. * @param string $key
  10887. * @return bool
  10888. * @static
  10889. */
  10890. public static function hasHeader($key)
  10891. {
  10892. /** @var \Illuminate\Http\Request $instance */
  10893. return $instance->hasHeader($key);
  10894. }
  10895. /**
  10896. * Retrieve a header from the request.
  10897. *
  10898. * @param string|null $key
  10899. * @param string|array|null $default
  10900. * @return string|array|null
  10901. * @static
  10902. */
  10903. public static function header($key = null, $default = null)
  10904. {
  10905. /** @var \Illuminate\Http\Request $instance */
  10906. return $instance->header($key, $default);
  10907. }
  10908. /**
  10909. * Get the bearer token from the request headers.
  10910. *
  10911. * @return string|null
  10912. * @static
  10913. */
  10914. public static function bearerToken()
  10915. {
  10916. /** @var \Illuminate\Http\Request $instance */
  10917. return $instance->bearerToken();
  10918. }
  10919. /**
  10920. * Determine if the request contains a given input item key.
  10921. *
  10922. * @param string|array $key
  10923. * @return bool
  10924. * @static
  10925. */
  10926. public static function exists($key)
  10927. {
  10928. /** @var \Illuminate\Http\Request $instance */
  10929. return $instance->exists($key);
  10930. }
  10931. /**
  10932. * Determine if the request contains a given input item key.
  10933. *
  10934. * @param string|array $key
  10935. * @return bool
  10936. * @static
  10937. */
  10938. public static function has($key)
  10939. {
  10940. /** @var \Illuminate\Http\Request $instance */
  10941. return $instance->has($key);
  10942. }
  10943. /**
  10944. * Determine if the request contains any of the given inputs.
  10945. *
  10946. * @param string|array $keys
  10947. * @return bool
  10948. * @static
  10949. */
  10950. public static function hasAny($keys)
  10951. {
  10952. /** @var \Illuminate\Http\Request $instance */
  10953. return $instance->hasAny($keys);
  10954. }
  10955. /**
  10956. * Apply the callback if the request contains the given input item key.
  10957. *
  10958. * @param string $key
  10959. * @param callable $callback
  10960. * @param callable|null $default
  10961. * @return $this|mixed
  10962. * @static
  10963. */
  10964. public static function whenHas($key, $callback, $default = null)
  10965. {
  10966. /** @var \Illuminate\Http\Request $instance */
  10967. return $instance->whenHas($key, $callback, $default);
  10968. }
  10969. /**
  10970. * Determine if the request contains a non-empty value for an input item.
  10971. *
  10972. * @param string|array $key
  10973. * @return bool
  10974. * @static
  10975. */
  10976. public static function filled($key)
  10977. {
  10978. /** @var \Illuminate\Http\Request $instance */
  10979. return $instance->filled($key);
  10980. }
  10981. /**
  10982. * Determine if the request contains an empty value for an input item.
  10983. *
  10984. * @param string|array $key
  10985. * @return bool
  10986. * @static
  10987. */
  10988. public static function isNotFilled($key)
  10989. {
  10990. /** @var \Illuminate\Http\Request $instance */
  10991. return $instance->isNotFilled($key);
  10992. }
  10993. /**
  10994. * Determine if the request contains a non-empty value for any of the given inputs.
  10995. *
  10996. * @param string|array $keys
  10997. * @return bool
  10998. * @static
  10999. */
  11000. public static function anyFilled($keys)
  11001. {
  11002. /** @var \Illuminate\Http\Request $instance */
  11003. return $instance->anyFilled($keys);
  11004. }
  11005. /**
  11006. * Apply the callback if the request contains a non-empty value for the given input item key.
  11007. *
  11008. * @param string $key
  11009. * @param callable $callback
  11010. * @param callable|null $default
  11011. * @return $this|mixed
  11012. * @static
  11013. */
  11014. public static function whenFilled($key, $callback, $default = null)
  11015. {
  11016. /** @var \Illuminate\Http\Request $instance */
  11017. return $instance->whenFilled($key, $callback, $default);
  11018. }
  11019. /**
  11020. * Determine if the request is missing a given input item key.
  11021. *
  11022. * @param string|array $key
  11023. * @return bool
  11024. * @static
  11025. */
  11026. public static function missing($key)
  11027. {
  11028. /** @var \Illuminate\Http\Request $instance */
  11029. return $instance->missing($key);
  11030. }
  11031. /**
  11032. * Get the keys for all of the input and files.
  11033. *
  11034. * @return array
  11035. * @static
  11036. */
  11037. public static function keys()
  11038. {
  11039. /** @var \Illuminate\Http\Request $instance */
  11040. return $instance->keys();
  11041. }
  11042. /**
  11043. * Get all of the input and files for the request.
  11044. *
  11045. * @param array|mixed|null $keys
  11046. * @return array
  11047. * @static
  11048. */
  11049. public static function all($keys = null)
  11050. {
  11051. /** @var \Illuminate\Http\Request $instance */
  11052. return $instance->all($keys);
  11053. }
  11054. /**
  11055. * Retrieve an input item from the request.
  11056. *
  11057. * @param string|null $key
  11058. * @param mixed $default
  11059. * @return mixed
  11060. * @static
  11061. */
  11062. public static function input($key = null, $default = null)
  11063. {
  11064. /** @var \Illuminate\Http\Request $instance */
  11065. return $instance->input($key, $default);
  11066. }
  11067. /**
  11068. * Retrieve input as a boolean value.
  11069. *
  11070. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  11071. *
  11072. * @param string|null $key
  11073. * @param bool $default
  11074. * @return bool
  11075. * @static
  11076. */
  11077. public static function boolean($key = null, $default = false)
  11078. {
  11079. /** @var \Illuminate\Http\Request $instance */
  11080. return $instance->boolean($key, $default);
  11081. }
  11082. /**
  11083. * Retrieve input from the request as a Carbon instance.
  11084. *
  11085. * @param string $key
  11086. * @param string|null $format
  11087. * @param string|null $tz
  11088. * @return \Illuminate\Support\Carbon|null
  11089. * @static
  11090. */
  11091. public static function date($key, $format = null, $tz = null)
  11092. {
  11093. /** @var \Illuminate\Http\Request $instance */
  11094. return $instance->date($key, $format, $tz);
  11095. }
  11096. /**
  11097. * Retrieve input from the request as a collection.
  11098. *
  11099. * @param array|string|null $key
  11100. * @return \Illuminate\Support\Collection
  11101. * @static
  11102. */
  11103. public static function collect($key = null)
  11104. {
  11105. /** @var \Illuminate\Http\Request $instance */
  11106. return $instance->collect($key);
  11107. }
  11108. /**
  11109. * Get a subset containing the provided keys with values from the input data.
  11110. *
  11111. * @param array|mixed $keys
  11112. * @return array
  11113. * @static
  11114. */
  11115. public static function only($keys)
  11116. {
  11117. /** @var \Illuminate\Http\Request $instance */
  11118. return $instance->only($keys);
  11119. }
  11120. /**
  11121. * Get all of the input except for a specified array of items.
  11122. *
  11123. * @param array|mixed $keys
  11124. * @return array
  11125. * @static
  11126. */
  11127. public static function except($keys)
  11128. {
  11129. /** @var \Illuminate\Http\Request $instance */
  11130. return $instance->except($keys);
  11131. }
  11132. /**
  11133. * Retrieve a query string item from the request.
  11134. *
  11135. * @param string|null $key
  11136. * @param string|array|null $default
  11137. * @return string|array|null
  11138. * @static
  11139. */
  11140. public static function query($key = null, $default = null)
  11141. {
  11142. /** @var \Illuminate\Http\Request $instance */
  11143. return $instance->query($key, $default);
  11144. }
  11145. /**
  11146. * Retrieve a request payload item from the request.
  11147. *
  11148. * @param string|null $key
  11149. * @param string|array|null $default
  11150. * @return string|array|null
  11151. * @static
  11152. */
  11153. public static function post($key = null, $default = null)
  11154. {
  11155. /** @var \Illuminate\Http\Request $instance */
  11156. return $instance->post($key, $default);
  11157. }
  11158. /**
  11159. * Determine if a cookie is set on the request.
  11160. *
  11161. * @param string $key
  11162. * @return bool
  11163. * @static
  11164. */
  11165. public static function hasCookie($key)
  11166. {
  11167. /** @var \Illuminate\Http\Request $instance */
  11168. return $instance->hasCookie($key);
  11169. }
  11170. /**
  11171. * Retrieve a cookie from the request.
  11172. *
  11173. * @param string|null $key
  11174. * @param string|array|null $default
  11175. * @return string|array|null
  11176. * @static
  11177. */
  11178. public static function cookie($key = null, $default = null)
  11179. {
  11180. /** @var \Illuminate\Http\Request $instance */
  11181. return $instance->cookie($key, $default);
  11182. }
  11183. /**
  11184. * Get an array of all of the files on the request.
  11185. *
  11186. * @return array
  11187. * @static
  11188. */
  11189. public static function allFiles()
  11190. {
  11191. /** @var \Illuminate\Http\Request $instance */
  11192. return $instance->allFiles();
  11193. }
  11194. /**
  11195. * Determine if the uploaded data contains a file.
  11196. *
  11197. * @param string $key
  11198. * @return bool
  11199. * @static
  11200. */
  11201. public static function hasFile($key)
  11202. {
  11203. /** @var \Illuminate\Http\Request $instance */
  11204. return $instance->hasFile($key);
  11205. }
  11206. /**
  11207. * Retrieve a file from the request.
  11208. *
  11209. * @param string|null $key
  11210. * @param mixed $default
  11211. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  11212. * @static
  11213. */
  11214. public static function file($key = null, $default = null)
  11215. {
  11216. /** @var \Illuminate\Http\Request $instance */
  11217. return $instance->file($key, $default);
  11218. }
  11219. /**
  11220. * Dump the request items and end the script.
  11221. *
  11222. * @param mixed $keys
  11223. * @return void
  11224. * @static
  11225. */
  11226. public static function dd(...$keys)
  11227. {
  11228. /** @var \Illuminate\Http\Request $instance */
  11229. $instance->dd(...$keys);
  11230. }
  11231. /**
  11232. * Dump the items.
  11233. *
  11234. * @param mixed $keys
  11235. * @return \Illuminate\Http\Request
  11236. * @static
  11237. */
  11238. public static function dump($keys = [])
  11239. {
  11240. /** @var \Illuminate\Http\Request $instance */
  11241. return $instance->dump($keys);
  11242. }
  11243. /**
  11244. * Register a custom macro.
  11245. *
  11246. * @param string $name
  11247. * @param object|callable $macro
  11248. * @return void
  11249. * @static
  11250. */
  11251. public static function macro($name, $macro)
  11252. {
  11253. \Illuminate\Http\Request::macro($name, $macro);
  11254. }
  11255. /**
  11256. * Mix another object into the class.
  11257. *
  11258. * @param object $mixin
  11259. * @param bool $replace
  11260. * @return void
  11261. * @throws \ReflectionException
  11262. * @static
  11263. */
  11264. public static function mixin($mixin, $replace = true)
  11265. {
  11266. \Illuminate\Http\Request::mixin($mixin, $replace);
  11267. }
  11268. /**
  11269. * Checks if macro is registered.
  11270. *
  11271. * @param string $name
  11272. * @return bool
  11273. * @static
  11274. */
  11275. public static function hasMacro($name)
  11276. {
  11277. return \Illuminate\Http\Request::hasMacro($name);
  11278. }
  11279. /**
  11280. * Flush the existing macros.
  11281. *
  11282. * @return void
  11283. * @static
  11284. */
  11285. public static function flushMacros()
  11286. {
  11287. \Illuminate\Http\Request::flushMacros();
  11288. }
  11289. /**
  11290. *
  11291. *
  11292. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11293. * @param array $rules
  11294. * @param mixed $params
  11295. * @static
  11296. */
  11297. public static function validate($rules, ...$params)
  11298. {
  11299. return \Illuminate\Http\Request::validate($rules, ...$params);
  11300. }
  11301. /**
  11302. *
  11303. *
  11304. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11305. * @param string $errorBag
  11306. * @param array $rules
  11307. * @param mixed $params
  11308. * @static
  11309. */
  11310. public static function validateWithBag($errorBag, $rules, ...$params)
  11311. {
  11312. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  11313. }
  11314. /**
  11315. *
  11316. *
  11317. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11318. * @param mixed $absolute
  11319. * @static
  11320. */
  11321. public static function hasValidSignature($absolute = true)
  11322. {
  11323. return \Illuminate\Http\Request::hasValidSignature($absolute);
  11324. }
  11325. /**
  11326. *
  11327. *
  11328. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11329. * @static
  11330. */
  11331. public static function hasValidRelativeSignature()
  11332. {
  11333. return \Illuminate\Http\Request::hasValidRelativeSignature();
  11334. }
  11335. }
  11336. /**
  11337. *
  11338. *
  11339. * @see \Illuminate\Contracts\Routing\ResponseFactory
  11340. */
  11341. class Response {
  11342. /**
  11343. * Create a new response instance.
  11344. *
  11345. * @param mixed $content
  11346. * @param int $status
  11347. * @param array $headers
  11348. * @return \Illuminate\Http\Response
  11349. * @static
  11350. */
  11351. public static function make($content = '', $status = 200, $headers = [])
  11352. {
  11353. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11354. return $instance->make($content, $status, $headers);
  11355. }
  11356. /**
  11357. * Create a new "no content" response.
  11358. *
  11359. * @param int $status
  11360. * @param array $headers
  11361. * @return \Illuminate\Http\Response
  11362. * @static
  11363. */
  11364. public static function noContent($status = 204, $headers = [])
  11365. {
  11366. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11367. return $instance->noContent($status, $headers);
  11368. }
  11369. /**
  11370. * Create a new response for a given view.
  11371. *
  11372. * @param string|array $view
  11373. * @param array $data
  11374. * @param int $status
  11375. * @param array $headers
  11376. * @return \Illuminate\Http\Response
  11377. * @static
  11378. */
  11379. public static function view($view, $data = [], $status = 200, $headers = [])
  11380. {
  11381. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11382. return $instance->view($view, $data, $status, $headers);
  11383. }
  11384. /**
  11385. * Create a new JSON response instance.
  11386. *
  11387. * @param mixed $data
  11388. * @param int $status
  11389. * @param array $headers
  11390. * @param int $options
  11391. * @return \Illuminate\Http\JsonResponse
  11392. * @static
  11393. */
  11394. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  11395. {
  11396. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11397. return $instance->json($data, $status, $headers, $options);
  11398. }
  11399. /**
  11400. * Create a new JSONP response instance.
  11401. *
  11402. * @param string $callback
  11403. * @param mixed $data
  11404. * @param int $status
  11405. * @param array $headers
  11406. * @param int $options
  11407. * @return \Illuminate\Http\JsonResponse
  11408. * @static
  11409. */
  11410. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  11411. {
  11412. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11413. return $instance->jsonp($callback, $data, $status, $headers, $options);
  11414. }
  11415. /**
  11416. * Create a new streamed response instance.
  11417. *
  11418. * @param \Closure $callback
  11419. * @param int $status
  11420. * @param array $headers
  11421. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11422. * @static
  11423. */
  11424. public static function stream($callback, $status = 200, $headers = [])
  11425. {
  11426. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11427. return $instance->stream($callback, $status, $headers);
  11428. }
  11429. /**
  11430. * Create a new streamed response instance as a file download.
  11431. *
  11432. * @param \Closure $callback
  11433. * @param string|null $name
  11434. * @param array $headers
  11435. * @param string|null $disposition
  11436. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11437. * @static
  11438. */
  11439. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  11440. {
  11441. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11442. return $instance->streamDownload($callback, $name, $headers, $disposition);
  11443. }
  11444. /**
  11445. * Create a new file download response.
  11446. *
  11447. * @param \SplFileInfo|string $file
  11448. * @param string|null $name
  11449. * @param array $headers
  11450. * @param string|null $disposition
  11451. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11452. * @static
  11453. */
  11454. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  11455. {
  11456. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11457. return $instance->download($file, $name, $headers, $disposition);
  11458. }
  11459. /**
  11460. * Return the raw contents of a binary file.
  11461. *
  11462. * @param \SplFileInfo|string $file
  11463. * @param array $headers
  11464. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11465. * @static
  11466. */
  11467. public static function file($file, $headers = [])
  11468. {
  11469. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11470. return $instance->file($file, $headers);
  11471. }
  11472. /**
  11473. * Create a new redirect response to the given path.
  11474. *
  11475. * @param string $path
  11476. * @param int $status
  11477. * @param array $headers
  11478. * @param bool|null $secure
  11479. * @return \Illuminate\Http\RedirectResponse
  11480. * @static
  11481. */
  11482. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  11483. {
  11484. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11485. return $instance->redirectTo($path, $status, $headers, $secure);
  11486. }
  11487. /**
  11488. * Create a new redirect response to a named route.
  11489. *
  11490. * @param string $route
  11491. * @param mixed $parameters
  11492. * @param int $status
  11493. * @param array $headers
  11494. * @return \Illuminate\Http\RedirectResponse
  11495. * @static
  11496. */
  11497. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  11498. {
  11499. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11500. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  11501. }
  11502. /**
  11503. * Create a new redirect response to a controller action.
  11504. *
  11505. * @param string $action
  11506. * @param mixed $parameters
  11507. * @param int $status
  11508. * @param array $headers
  11509. * @return \Illuminate\Http\RedirectResponse
  11510. * @static
  11511. */
  11512. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  11513. {
  11514. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11515. return $instance->redirectToAction($action, $parameters, $status, $headers);
  11516. }
  11517. /**
  11518. * Create a new redirect response, while putting the current URL in the session.
  11519. *
  11520. * @param string $path
  11521. * @param int $status
  11522. * @param array $headers
  11523. * @param bool|null $secure
  11524. * @return \Illuminate\Http\RedirectResponse
  11525. * @static
  11526. */
  11527. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  11528. {
  11529. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11530. return $instance->redirectGuest($path, $status, $headers, $secure);
  11531. }
  11532. /**
  11533. * Create a new redirect response to the previously intended location.
  11534. *
  11535. * @param string $default
  11536. * @param int $status
  11537. * @param array $headers
  11538. * @param bool|null $secure
  11539. * @return \Illuminate\Http\RedirectResponse
  11540. * @static
  11541. */
  11542. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  11543. {
  11544. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11545. return $instance->redirectToIntended($default, $status, $headers, $secure);
  11546. }
  11547. /**
  11548. * Register a custom macro.
  11549. *
  11550. * @param string $name
  11551. * @param object|callable $macro
  11552. * @return void
  11553. * @static
  11554. */
  11555. public static function macro($name, $macro)
  11556. {
  11557. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  11558. }
  11559. /**
  11560. * Mix another object into the class.
  11561. *
  11562. * @param object $mixin
  11563. * @param bool $replace
  11564. * @return void
  11565. * @throws \ReflectionException
  11566. * @static
  11567. */
  11568. public static function mixin($mixin, $replace = true)
  11569. {
  11570. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  11571. }
  11572. /**
  11573. * Checks if macro is registered.
  11574. *
  11575. * @param string $name
  11576. * @return bool
  11577. * @static
  11578. */
  11579. public static function hasMacro($name)
  11580. {
  11581. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  11582. }
  11583. /**
  11584. * Flush the existing macros.
  11585. *
  11586. * @return void
  11587. * @static
  11588. */
  11589. public static function flushMacros()
  11590. {
  11591. \Illuminate\Routing\ResponseFactory::flushMacros();
  11592. }
  11593. }
  11594. /**
  11595. *
  11596. *
  11597. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  11598. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  11599. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  11600. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  11601. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  11602. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  11603. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  11604. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  11605. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  11606. * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
  11607. * @see \Illuminate\Routing\Router
  11608. */
  11609. class Route {
  11610. /**
  11611. * Register a new GET route with the router.
  11612. *
  11613. * @param string $uri
  11614. * @param array|string|callable|null $action
  11615. * @return \Illuminate\Routing\Route
  11616. * @static
  11617. */
  11618. public static function get($uri, $action = null)
  11619. {
  11620. /** @var \Illuminate\Routing\Router $instance */
  11621. return $instance->get($uri, $action);
  11622. }
  11623. /**
  11624. * Register a new POST route with the router.
  11625. *
  11626. * @param string $uri
  11627. * @param array|string|callable|null $action
  11628. * @return \Illuminate\Routing\Route
  11629. * @static
  11630. */
  11631. public static function post($uri, $action = null)
  11632. {
  11633. /** @var \Illuminate\Routing\Router $instance */
  11634. return $instance->post($uri, $action);
  11635. }
  11636. /**
  11637. * Register a new PUT route with the router.
  11638. *
  11639. * @param string $uri
  11640. * @param array|string|callable|null $action
  11641. * @return \Illuminate\Routing\Route
  11642. * @static
  11643. */
  11644. public static function put($uri, $action = null)
  11645. {
  11646. /** @var \Illuminate\Routing\Router $instance */
  11647. return $instance->put($uri, $action);
  11648. }
  11649. /**
  11650. * Register a new PATCH route with the router.
  11651. *
  11652. * @param string $uri
  11653. * @param array|string|callable|null $action
  11654. * @return \Illuminate\Routing\Route
  11655. * @static
  11656. */
  11657. public static function patch($uri, $action = null)
  11658. {
  11659. /** @var \Illuminate\Routing\Router $instance */
  11660. return $instance->patch($uri, $action);
  11661. }
  11662. /**
  11663. * Register a new DELETE route with the router.
  11664. *
  11665. * @param string $uri
  11666. * @param array|string|callable|null $action
  11667. * @return \Illuminate\Routing\Route
  11668. * @static
  11669. */
  11670. public static function delete($uri, $action = null)
  11671. {
  11672. /** @var \Illuminate\Routing\Router $instance */
  11673. return $instance->delete($uri, $action);
  11674. }
  11675. /**
  11676. * Register a new OPTIONS route with the router.
  11677. *
  11678. * @param string $uri
  11679. * @param array|string|callable|null $action
  11680. * @return \Illuminate\Routing\Route
  11681. * @static
  11682. */
  11683. public static function options($uri, $action = null)
  11684. {
  11685. /** @var \Illuminate\Routing\Router $instance */
  11686. return $instance->options($uri, $action);
  11687. }
  11688. /**
  11689. * Register a new route responding to all verbs.
  11690. *
  11691. * @param string $uri
  11692. * @param array|string|callable|null $action
  11693. * @return \Illuminate\Routing\Route
  11694. * @static
  11695. */
  11696. public static function any($uri, $action = null)
  11697. {
  11698. /** @var \Illuminate\Routing\Router $instance */
  11699. return $instance->any($uri, $action);
  11700. }
  11701. /**
  11702. * Register a new Fallback route with the router.
  11703. *
  11704. * @param array|string|callable|null $action
  11705. * @return \Illuminate\Routing\Route
  11706. * @static
  11707. */
  11708. public static function fallback($action)
  11709. {
  11710. /** @var \Illuminate\Routing\Router $instance */
  11711. return $instance->fallback($action);
  11712. }
  11713. /**
  11714. * Create a redirect from one URI to another.
  11715. *
  11716. * @param string $uri
  11717. * @param string $destination
  11718. * @param int $status
  11719. * @return \Illuminate\Routing\Route
  11720. * @static
  11721. */
  11722. public static function redirect($uri, $destination, $status = 302)
  11723. {
  11724. /** @var \Illuminate\Routing\Router $instance */
  11725. return $instance->redirect($uri, $destination, $status);
  11726. }
  11727. /**
  11728. * Create a permanent redirect from one URI to another.
  11729. *
  11730. * @param string $uri
  11731. * @param string $destination
  11732. * @return \Illuminate\Routing\Route
  11733. * @static
  11734. */
  11735. public static function permanentRedirect($uri, $destination)
  11736. {
  11737. /** @var \Illuminate\Routing\Router $instance */
  11738. return $instance->permanentRedirect($uri, $destination);
  11739. }
  11740. /**
  11741. * Register a new route that returns a view.
  11742. *
  11743. * @param string $uri
  11744. * @param string $view
  11745. * @param array $data
  11746. * @param int|array $status
  11747. * @param array $headers
  11748. * @return \Illuminate\Routing\Route
  11749. * @static
  11750. */
  11751. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  11752. {
  11753. /** @var \Illuminate\Routing\Router $instance */
  11754. return $instance->view($uri, $view, $data, $status, $headers);
  11755. }
  11756. /**
  11757. * Register a new route with the given verbs.
  11758. *
  11759. * @param array|string $methods
  11760. * @param string $uri
  11761. * @param array|string|callable|null $action
  11762. * @return \Illuminate\Routing\Route
  11763. * @static
  11764. */
  11765. public static function match($methods, $uri, $action = null)
  11766. {
  11767. /** @var \Illuminate\Routing\Router $instance */
  11768. return $instance->match($methods, $uri, $action);
  11769. }
  11770. /**
  11771. * Register an array of resource controllers.
  11772. *
  11773. * @param array $resources
  11774. * @param array $options
  11775. * @return void
  11776. * @static
  11777. */
  11778. public static function resources($resources, $options = [])
  11779. {
  11780. /** @var \Illuminate\Routing\Router $instance */
  11781. $instance->resources($resources, $options);
  11782. }
  11783. /**
  11784. * Route a resource to a controller.
  11785. *
  11786. * @param string $name
  11787. * @param string $controller
  11788. * @param array $options
  11789. * @return \Illuminate\Routing\PendingResourceRegistration
  11790. * @static
  11791. */
  11792. public static function resource($name, $controller, $options = [])
  11793. {
  11794. /** @var \Illuminate\Routing\Router $instance */
  11795. return $instance->resource($name, $controller, $options);
  11796. }
  11797. /**
  11798. * Register an array of API resource controllers.
  11799. *
  11800. * @param array $resources
  11801. * @param array $options
  11802. * @return void
  11803. * @static
  11804. */
  11805. public static function apiResources($resources, $options = [])
  11806. {
  11807. /** @var \Illuminate\Routing\Router $instance */
  11808. $instance->apiResources($resources, $options);
  11809. }
  11810. /**
  11811. * Route an API resource to a controller.
  11812. *
  11813. * @param string $name
  11814. * @param string $controller
  11815. * @param array $options
  11816. * @return \Illuminate\Routing\PendingResourceRegistration
  11817. * @static
  11818. */
  11819. public static function apiResource($name, $controller, $options = [])
  11820. {
  11821. /** @var \Illuminate\Routing\Router $instance */
  11822. return $instance->apiResource($name, $controller, $options);
  11823. }
  11824. /**
  11825. * Create a route group with shared attributes.
  11826. *
  11827. * @param array $attributes
  11828. * @param \Closure|string $routes
  11829. * @return void
  11830. * @static
  11831. */
  11832. public static function group($attributes, $routes)
  11833. {
  11834. /** @var \Illuminate\Routing\Router $instance */
  11835. $instance->group($attributes, $routes);
  11836. }
  11837. /**
  11838. * Merge the given array with the last group stack.
  11839. *
  11840. * @param array $new
  11841. * @param bool $prependExistingPrefix
  11842. * @return array
  11843. * @static
  11844. */
  11845. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  11846. {
  11847. /** @var \Illuminate\Routing\Router $instance */
  11848. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  11849. }
  11850. /**
  11851. * Get the prefix from the last group on the stack.
  11852. *
  11853. * @return string
  11854. * @static
  11855. */
  11856. public static function getLastGroupPrefix()
  11857. {
  11858. /** @var \Illuminate\Routing\Router $instance */
  11859. return $instance->getLastGroupPrefix();
  11860. }
  11861. /**
  11862. * Add a route to the underlying route collection.
  11863. *
  11864. * @param array|string $methods
  11865. * @param string $uri
  11866. * @param array|string|callable|null $action
  11867. * @return \Illuminate\Routing\Route
  11868. * @static
  11869. */
  11870. public static function addRoute($methods, $uri, $action)
  11871. {
  11872. /** @var \Illuminate\Routing\Router $instance */
  11873. return $instance->addRoute($methods, $uri, $action);
  11874. }
  11875. /**
  11876. * Create a new Route object.
  11877. *
  11878. * @param array|string $methods
  11879. * @param string $uri
  11880. * @param mixed $action
  11881. * @return \Illuminate\Routing\Route
  11882. * @static
  11883. */
  11884. public static function newRoute($methods, $uri, $action)
  11885. {
  11886. /** @var \Illuminate\Routing\Router $instance */
  11887. return $instance->newRoute($methods, $uri, $action);
  11888. }
  11889. /**
  11890. * Return the response returned by the given route.
  11891. *
  11892. * @param string $name
  11893. * @return \Symfony\Component\HttpFoundation\Response
  11894. * @static
  11895. */
  11896. public static function respondWithRoute($name)
  11897. {
  11898. /** @var \Illuminate\Routing\Router $instance */
  11899. return $instance->respondWithRoute($name);
  11900. }
  11901. /**
  11902. * Dispatch the request to the application.
  11903. *
  11904. * @param \Illuminate\Http\Request $request
  11905. * @return \Symfony\Component\HttpFoundation\Response
  11906. * @static
  11907. */
  11908. public static function dispatch($request)
  11909. {
  11910. /** @var \Illuminate\Routing\Router $instance */
  11911. return $instance->dispatch($request);
  11912. }
  11913. /**
  11914. * Dispatch the request to a route and return the response.
  11915. *
  11916. * @param \Illuminate\Http\Request $request
  11917. * @return \Symfony\Component\HttpFoundation\Response
  11918. * @static
  11919. */
  11920. public static function dispatchToRoute($request)
  11921. {
  11922. /** @var \Illuminate\Routing\Router $instance */
  11923. return $instance->dispatchToRoute($request);
  11924. }
  11925. /**
  11926. * Gather the middleware for the given route with resolved class names.
  11927. *
  11928. * @param \Illuminate\Routing\Route $route
  11929. * @return array
  11930. * @static
  11931. */
  11932. public static function gatherRouteMiddleware($route)
  11933. {
  11934. /** @var \Illuminate\Routing\Router $instance */
  11935. return $instance->gatherRouteMiddleware($route);
  11936. }
  11937. /**
  11938. * Create a response instance from the given value.
  11939. *
  11940. * @param \Symfony\Component\HttpFoundation\Request $request
  11941. * @param mixed $response
  11942. * @return \Symfony\Component\HttpFoundation\Response
  11943. * @static
  11944. */
  11945. public static function prepareResponse($request, $response)
  11946. {
  11947. /** @var \Illuminate\Routing\Router $instance */
  11948. return $instance->prepareResponse($request, $response);
  11949. }
  11950. /**
  11951. * Static version of prepareResponse.
  11952. *
  11953. * @param \Symfony\Component\HttpFoundation\Request $request
  11954. * @param mixed $response
  11955. * @return \Symfony\Component\HttpFoundation\Response
  11956. * @static
  11957. */
  11958. public static function toResponse($request, $response)
  11959. {
  11960. return \Illuminate\Routing\Router::toResponse($request, $response);
  11961. }
  11962. /**
  11963. * Substitute the route bindings onto the route.
  11964. *
  11965. * @param \Illuminate\Routing\Route $route
  11966. * @return \Illuminate\Routing\Route
  11967. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11968. * @static
  11969. */
  11970. public static function substituteBindings($route)
  11971. {
  11972. /** @var \Illuminate\Routing\Router $instance */
  11973. return $instance->substituteBindings($route);
  11974. }
  11975. /**
  11976. * Substitute the implicit Eloquent model bindings for the route.
  11977. *
  11978. * @param \Illuminate\Routing\Route $route
  11979. * @return void
  11980. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11981. * @static
  11982. */
  11983. public static function substituteImplicitBindings($route)
  11984. {
  11985. /** @var \Illuminate\Routing\Router $instance */
  11986. $instance->substituteImplicitBindings($route);
  11987. }
  11988. /**
  11989. * Register a route matched event listener.
  11990. *
  11991. * @param string|callable $callback
  11992. * @return void
  11993. * @static
  11994. */
  11995. public static function matched($callback)
  11996. {
  11997. /** @var \Illuminate\Routing\Router $instance */
  11998. $instance->matched($callback);
  11999. }
  12000. /**
  12001. * Get all of the defined middleware short-hand names.
  12002. *
  12003. * @return array
  12004. * @static
  12005. */
  12006. public static function getMiddleware()
  12007. {
  12008. /** @var \Illuminate\Routing\Router $instance */
  12009. return $instance->getMiddleware();
  12010. }
  12011. /**
  12012. * Register a short-hand name for a middleware.
  12013. *
  12014. * @param string $name
  12015. * @param string $class
  12016. * @return \Illuminate\Routing\Router
  12017. * @static
  12018. */
  12019. public static function aliasMiddleware($name, $class)
  12020. {
  12021. /** @var \Illuminate\Routing\Router $instance */
  12022. return $instance->aliasMiddleware($name, $class);
  12023. }
  12024. /**
  12025. * Check if a middlewareGroup with the given name exists.
  12026. *
  12027. * @param string $name
  12028. * @return bool
  12029. * @static
  12030. */
  12031. public static function hasMiddlewareGroup($name)
  12032. {
  12033. /** @var \Illuminate\Routing\Router $instance */
  12034. return $instance->hasMiddlewareGroup($name);
  12035. }
  12036. /**
  12037. * Get all of the defined middleware groups.
  12038. *
  12039. * @return array
  12040. * @static
  12041. */
  12042. public static function getMiddlewareGroups()
  12043. {
  12044. /** @var \Illuminate\Routing\Router $instance */
  12045. return $instance->getMiddlewareGroups();
  12046. }
  12047. /**
  12048. * Register a group of middleware.
  12049. *
  12050. * @param string $name
  12051. * @param array $middleware
  12052. * @return \Illuminate\Routing\Router
  12053. * @static
  12054. */
  12055. public static function middlewareGroup($name, $middleware)
  12056. {
  12057. /** @var \Illuminate\Routing\Router $instance */
  12058. return $instance->middlewareGroup($name, $middleware);
  12059. }
  12060. /**
  12061. * Add a middleware to the beginning of a middleware group.
  12062. *
  12063. * If the middleware is already in the group, it will not be added again.
  12064. *
  12065. * @param string $group
  12066. * @param string $middleware
  12067. * @return \Illuminate\Routing\Router
  12068. * @static
  12069. */
  12070. public static function prependMiddlewareToGroup($group, $middleware)
  12071. {
  12072. /** @var \Illuminate\Routing\Router $instance */
  12073. return $instance->prependMiddlewareToGroup($group, $middleware);
  12074. }
  12075. /**
  12076. * Add a middleware to the end of a middleware group.
  12077. *
  12078. * If the middleware is already in the group, it will not be added again.
  12079. *
  12080. * @param string $group
  12081. * @param string $middleware
  12082. * @return \Illuminate\Routing\Router
  12083. * @static
  12084. */
  12085. public static function pushMiddlewareToGroup($group, $middleware)
  12086. {
  12087. /** @var \Illuminate\Routing\Router $instance */
  12088. return $instance->pushMiddlewareToGroup($group, $middleware);
  12089. }
  12090. /**
  12091. * Flush the router's middleware groups.
  12092. *
  12093. * @return \Illuminate\Routing\Router
  12094. * @static
  12095. */
  12096. public static function flushMiddlewareGroups()
  12097. {
  12098. /** @var \Illuminate\Routing\Router $instance */
  12099. return $instance->flushMiddlewareGroups();
  12100. }
  12101. /**
  12102. * Add a new route parameter binder.
  12103. *
  12104. * @param string $key
  12105. * @param string|callable $binder
  12106. * @return void
  12107. * @static
  12108. */
  12109. public static function bind($key, $binder)
  12110. {
  12111. /** @var \Illuminate\Routing\Router $instance */
  12112. $instance->bind($key, $binder);
  12113. }
  12114. /**
  12115. * Register a model binder for a wildcard.
  12116. *
  12117. * @param string $key
  12118. * @param string $class
  12119. * @param \Closure|null $callback
  12120. * @return void
  12121. * @static
  12122. */
  12123. public static function model($key, $class, $callback = null)
  12124. {
  12125. /** @var \Illuminate\Routing\Router $instance */
  12126. $instance->model($key, $class, $callback);
  12127. }
  12128. /**
  12129. * Get the binding callback for a given binding.
  12130. *
  12131. * @param string $key
  12132. * @return \Closure|null
  12133. * @static
  12134. */
  12135. public static function getBindingCallback($key)
  12136. {
  12137. /** @var \Illuminate\Routing\Router $instance */
  12138. return $instance->getBindingCallback($key);
  12139. }
  12140. /**
  12141. * Get the global "where" patterns.
  12142. *
  12143. * @return array
  12144. * @static
  12145. */
  12146. public static function getPatterns()
  12147. {
  12148. /** @var \Illuminate\Routing\Router $instance */
  12149. return $instance->getPatterns();
  12150. }
  12151. /**
  12152. * Set a global where pattern on all routes.
  12153. *
  12154. * @param string $key
  12155. * @param string $pattern
  12156. * @return void
  12157. * @static
  12158. */
  12159. public static function pattern($key, $pattern)
  12160. {
  12161. /** @var \Illuminate\Routing\Router $instance */
  12162. $instance->pattern($key, $pattern);
  12163. }
  12164. /**
  12165. * Set a group of global where patterns on all routes.
  12166. *
  12167. * @param array $patterns
  12168. * @return void
  12169. * @static
  12170. */
  12171. public static function patterns($patterns)
  12172. {
  12173. /** @var \Illuminate\Routing\Router $instance */
  12174. $instance->patterns($patterns);
  12175. }
  12176. /**
  12177. * Determine if the router currently has a group stack.
  12178. *
  12179. * @return bool
  12180. * @static
  12181. */
  12182. public static function hasGroupStack()
  12183. {
  12184. /** @var \Illuminate\Routing\Router $instance */
  12185. return $instance->hasGroupStack();
  12186. }
  12187. /**
  12188. * Get the current group stack for the router.
  12189. *
  12190. * @return array
  12191. * @static
  12192. */
  12193. public static function getGroupStack()
  12194. {
  12195. /** @var \Illuminate\Routing\Router $instance */
  12196. return $instance->getGroupStack();
  12197. }
  12198. /**
  12199. * Get a route parameter for the current route.
  12200. *
  12201. * @param string $key
  12202. * @param string|null $default
  12203. * @return mixed
  12204. * @static
  12205. */
  12206. public static function input($key, $default = null)
  12207. {
  12208. /** @var \Illuminate\Routing\Router $instance */
  12209. return $instance->input($key, $default);
  12210. }
  12211. /**
  12212. * Get the request currently being dispatched.
  12213. *
  12214. * @return \Illuminate\Http\Request
  12215. * @static
  12216. */
  12217. public static function getCurrentRequest()
  12218. {
  12219. /** @var \Illuminate\Routing\Router $instance */
  12220. return $instance->getCurrentRequest();
  12221. }
  12222. /**
  12223. * Get the currently dispatched route instance.
  12224. *
  12225. * @return \Illuminate\Routing\Route|null
  12226. * @static
  12227. */
  12228. public static function getCurrentRoute()
  12229. {
  12230. /** @var \Illuminate\Routing\Router $instance */
  12231. return $instance->getCurrentRoute();
  12232. }
  12233. /**
  12234. * Get the currently dispatched route instance.
  12235. *
  12236. * @return \Illuminate\Routing\Route|null
  12237. * @static
  12238. */
  12239. public static function current()
  12240. {
  12241. /** @var \Illuminate\Routing\Router $instance */
  12242. return $instance->current();
  12243. }
  12244. /**
  12245. * Check if a route with the given name exists.
  12246. *
  12247. * @param string $name
  12248. * @return bool
  12249. * @static
  12250. */
  12251. public static function has($name)
  12252. {
  12253. /** @var \Illuminate\Routing\Router $instance */
  12254. return $instance->has($name);
  12255. }
  12256. /**
  12257. * Get the current route name.
  12258. *
  12259. * @return string|null
  12260. * @static
  12261. */
  12262. public static function currentRouteName()
  12263. {
  12264. /** @var \Illuminate\Routing\Router $instance */
  12265. return $instance->currentRouteName();
  12266. }
  12267. /**
  12268. * Alias for the "currentRouteNamed" method.
  12269. *
  12270. * @param mixed $patterns
  12271. * @return bool
  12272. * @static
  12273. */
  12274. public static function is(...$patterns)
  12275. {
  12276. /** @var \Illuminate\Routing\Router $instance */
  12277. return $instance->is(...$patterns);
  12278. }
  12279. /**
  12280. * Determine if the current route matches a pattern.
  12281. *
  12282. * @param mixed $patterns
  12283. * @return bool
  12284. * @static
  12285. */
  12286. public static function currentRouteNamed(...$patterns)
  12287. {
  12288. /** @var \Illuminate\Routing\Router $instance */
  12289. return $instance->currentRouteNamed(...$patterns);
  12290. }
  12291. /**
  12292. * Get the current route action.
  12293. *
  12294. * @return string|null
  12295. * @static
  12296. */
  12297. public static function currentRouteAction()
  12298. {
  12299. /** @var \Illuminate\Routing\Router $instance */
  12300. return $instance->currentRouteAction();
  12301. }
  12302. /**
  12303. * Alias for the "currentRouteUses" method.
  12304. *
  12305. * @param array $patterns
  12306. * @return bool
  12307. * @static
  12308. */
  12309. public static function uses(...$patterns)
  12310. {
  12311. /** @var \Illuminate\Routing\Router $instance */
  12312. return $instance->uses(...$patterns);
  12313. }
  12314. /**
  12315. * Determine if the current route action matches a given action.
  12316. *
  12317. * @param string $action
  12318. * @return bool
  12319. * @static
  12320. */
  12321. public static function currentRouteUses($action)
  12322. {
  12323. /** @var \Illuminate\Routing\Router $instance */
  12324. return $instance->currentRouteUses($action);
  12325. }
  12326. /**
  12327. * Set the unmapped global resource parameters to singular.
  12328. *
  12329. * @param bool $singular
  12330. * @return void
  12331. * @static
  12332. */
  12333. public static function singularResourceParameters($singular = true)
  12334. {
  12335. /** @var \Illuminate\Routing\Router $instance */
  12336. $instance->singularResourceParameters($singular);
  12337. }
  12338. /**
  12339. * Set the global resource parameter mapping.
  12340. *
  12341. * @param array $parameters
  12342. * @return void
  12343. * @static
  12344. */
  12345. public static function resourceParameters($parameters = [])
  12346. {
  12347. /** @var \Illuminate\Routing\Router $instance */
  12348. $instance->resourceParameters($parameters);
  12349. }
  12350. /**
  12351. * Get or set the verbs used in the resource URIs.
  12352. *
  12353. * @param array $verbs
  12354. * @return array|null
  12355. * @static
  12356. */
  12357. public static function resourceVerbs($verbs = [])
  12358. {
  12359. /** @var \Illuminate\Routing\Router $instance */
  12360. return $instance->resourceVerbs($verbs);
  12361. }
  12362. /**
  12363. * Get the underlying route collection.
  12364. *
  12365. * @return \Illuminate\Routing\RouteCollectionInterface
  12366. * @static
  12367. */
  12368. public static function getRoutes()
  12369. {
  12370. /** @var \Illuminate\Routing\Router $instance */
  12371. return $instance->getRoutes();
  12372. }
  12373. /**
  12374. * Set the route collection instance.
  12375. *
  12376. * @param \Illuminate\Routing\RouteCollection $routes
  12377. * @return void
  12378. * @static
  12379. */
  12380. public static function setRoutes($routes)
  12381. {
  12382. /** @var \Illuminate\Routing\Router $instance */
  12383. $instance->setRoutes($routes);
  12384. }
  12385. /**
  12386. * Set the compiled route collection instance.
  12387. *
  12388. * @param array $routes
  12389. * @return void
  12390. * @static
  12391. */
  12392. public static function setCompiledRoutes($routes)
  12393. {
  12394. /** @var \Illuminate\Routing\Router $instance */
  12395. $instance->setCompiledRoutes($routes);
  12396. }
  12397. /**
  12398. * Remove any duplicate middleware from the given array.
  12399. *
  12400. * @param array $middleware
  12401. * @return array
  12402. * @static
  12403. */
  12404. public static function uniqueMiddleware($middleware)
  12405. {
  12406. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  12407. }
  12408. /**
  12409. * Set the container instance used by the router.
  12410. *
  12411. * @param \Illuminate\Container\Container $container
  12412. * @return \Illuminate\Routing\Router
  12413. * @static
  12414. */
  12415. public static function setContainer($container)
  12416. {
  12417. /** @var \Illuminate\Routing\Router $instance */
  12418. return $instance->setContainer($container);
  12419. }
  12420. /**
  12421. * Register a custom macro.
  12422. *
  12423. * @param string $name
  12424. * @param object|callable $macro
  12425. * @return void
  12426. * @static
  12427. */
  12428. public static function macro($name, $macro)
  12429. {
  12430. \Illuminate\Routing\Router::macro($name, $macro);
  12431. }
  12432. /**
  12433. * Mix another object into the class.
  12434. *
  12435. * @param object $mixin
  12436. * @param bool $replace
  12437. * @return void
  12438. * @throws \ReflectionException
  12439. * @static
  12440. */
  12441. public static function mixin($mixin, $replace = true)
  12442. {
  12443. \Illuminate\Routing\Router::mixin($mixin, $replace);
  12444. }
  12445. /**
  12446. * Checks if macro is registered.
  12447. *
  12448. * @param string $name
  12449. * @return bool
  12450. * @static
  12451. */
  12452. public static function hasMacro($name)
  12453. {
  12454. return \Illuminate\Routing\Router::hasMacro($name);
  12455. }
  12456. /**
  12457. * Flush the existing macros.
  12458. *
  12459. * @return void
  12460. * @static
  12461. */
  12462. public static function flushMacros()
  12463. {
  12464. \Illuminate\Routing\Router::flushMacros();
  12465. }
  12466. /**
  12467. * Dynamically handle calls to the class.
  12468. *
  12469. * @param string $method
  12470. * @param array $parameters
  12471. * @return mixed
  12472. * @throws \BadMethodCallException
  12473. * @static
  12474. */
  12475. public static function macroCall($method, $parameters)
  12476. {
  12477. /** @var \Illuminate\Routing\Router $instance */
  12478. return $instance->macroCall($method, $parameters);
  12479. }
  12480. }
  12481. /**
  12482. *
  12483. *
  12484. * @see \Illuminate\Database\Schema\Builder
  12485. */
  12486. class Schema {
  12487. /**
  12488. * Create a database in the schema.
  12489. *
  12490. * @param string $name
  12491. * @return bool
  12492. * @static
  12493. */
  12494. public static function createDatabase($name)
  12495. {
  12496. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12497. return $instance->createDatabase($name);
  12498. }
  12499. /**
  12500. * Drop a database from the schema if the database exists.
  12501. *
  12502. * @param string $name
  12503. * @return bool
  12504. * @static
  12505. */
  12506. public static function dropDatabaseIfExists($name)
  12507. {
  12508. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12509. return $instance->dropDatabaseIfExists($name);
  12510. }
  12511. /**
  12512. * Determine if the given table exists.
  12513. *
  12514. * @param string $table
  12515. * @return bool
  12516. * @static
  12517. */
  12518. public static function hasTable($table)
  12519. {
  12520. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12521. return $instance->hasTable($table);
  12522. }
  12523. /**
  12524. * Get the column listing for a given table.
  12525. *
  12526. * @param string $table
  12527. * @return array
  12528. * @static
  12529. */
  12530. public static function getColumnListing($table)
  12531. {
  12532. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12533. return $instance->getColumnListing($table);
  12534. }
  12535. /**
  12536. * Drop all tables from the database.
  12537. *
  12538. * @return void
  12539. * @static
  12540. */
  12541. public static function dropAllTables()
  12542. {
  12543. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12544. $instance->dropAllTables();
  12545. }
  12546. /**
  12547. * Drop all views from the database.
  12548. *
  12549. * @return void
  12550. * @static
  12551. */
  12552. public static function dropAllViews()
  12553. {
  12554. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12555. $instance->dropAllViews();
  12556. }
  12557. /**
  12558. * Get all of the table names for the database.
  12559. *
  12560. * @return array
  12561. * @static
  12562. */
  12563. public static function getAllTables()
  12564. {
  12565. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12566. return $instance->getAllTables();
  12567. }
  12568. /**
  12569. * Get all of the view names for the database.
  12570. *
  12571. * @return array
  12572. * @static
  12573. */
  12574. public static function getAllViews()
  12575. {
  12576. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12577. return $instance->getAllViews();
  12578. }
  12579. /**
  12580. * Set the default string length for migrations.
  12581. *
  12582. * @param int $length
  12583. * @return void
  12584. * @static
  12585. */
  12586. public static function defaultStringLength($length)
  12587. { //Method inherited from \Illuminate\Database\Schema\Builder
  12588. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  12589. }
  12590. /**
  12591. * Set the default morph key type for migrations.
  12592. *
  12593. * @param string $type
  12594. * @return void
  12595. * @throws \InvalidArgumentException
  12596. * @static
  12597. */
  12598. public static function defaultMorphKeyType($type)
  12599. { //Method inherited from \Illuminate\Database\Schema\Builder
  12600. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  12601. }
  12602. /**
  12603. * Set the default morph key type for migrations to UUIDs.
  12604. *
  12605. * @return void
  12606. * @static
  12607. */
  12608. public static function morphUsingUuids()
  12609. { //Method inherited from \Illuminate\Database\Schema\Builder
  12610. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  12611. }
  12612. /**
  12613. * Determine if the given table has a given column.
  12614. *
  12615. * @param string $table
  12616. * @param string $column
  12617. * @return bool
  12618. * @static
  12619. */
  12620. public static function hasColumn($table, $column)
  12621. { //Method inherited from \Illuminate\Database\Schema\Builder
  12622. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12623. return $instance->hasColumn($table, $column);
  12624. }
  12625. /**
  12626. * Determine if the given table has given columns.
  12627. *
  12628. * @param string $table
  12629. * @param array $columns
  12630. * @return bool
  12631. * @static
  12632. */
  12633. public static function hasColumns($table, $columns)
  12634. { //Method inherited from \Illuminate\Database\Schema\Builder
  12635. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12636. return $instance->hasColumns($table, $columns);
  12637. }
  12638. /**
  12639. * Get the data type for the given column name.
  12640. *
  12641. * @param string $table
  12642. * @param string $column
  12643. * @return string
  12644. * @static
  12645. */
  12646. public static function getColumnType($table, $column)
  12647. { //Method inherited from \Illuminate\Database\Schema\Builder
  12648. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12649. return $instance->getColumnType($table, $column);
  12650. }
  12651. /**
  12652. * Modify a table on the schema.
  12653. *
  12654. * @param string $table
  12655. * @param \Closure $callback
  12656. * @return void
  12657. * @static
  12658. */
  12659. public static function table($table, $callback)
  12660. { //Method inherited from \Illuminate\Database\Schema\Builder
  12661. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12662. $instance->table($table, $callback);
  12663. }
  12664. /**
  12665. * Create a new table on the schema.
  12666. *
  12667. * @param string $table
  12668. * @param \Closure $callback
  12669. * @return void
  12670. * @static
  12671. */
  12672. public static function create($table, $callback)
  12673. { //Method inherited from \Illuminate\Database\Schema\Builder
  12674. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12675. $instance->create($table, $callback);
  12676. }
  12677. /**
  12678. * Drop a table from the schema.
  12679. *
  12680. * @param string $table
  12681. * @return void
  12682. * @static
  12683. */
  12684. public static function drop($table)
  12685. { //Method inherited from \Illuminate\Database\Schema\Builder
  12686. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12687. $instance->drop($table);
  12688. }
  12689. /**
  12690. * Drop a table from the schema if it exists.
  12691. *
  12692. * @param string $table
  12693. * @return void
  12694. * @static
  12695. */
  12696. public static function dropIfExists($table)
  12697. { //Method inherited from \Illuminate\Database\Schema\Builder
  12698. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12699. $instance->dropIfExists($table);
  12700. }
  12701. /**
  12702. * Drop columns from a table schema.
  12703. *
  12704. * @param string $table
  12705. * @param string|array $columns
  12706. * @return void
  12707. * @static
  12708. */
  12709. public static function dropColumns($table, $columns)
  12710. { //Method inherited from \Illuminate\Database\Schema\Builder
  12711. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12712. $instance->dropColumns($table, $columns);
  12713. }
  12714. /**
  12715. * Drop all types from the database.
  12716. *
  12717. * @return void
  12718. * @throws \LogicException
  12719. * @static
  12720. */
  12721. public static function dropAllTypes()
  12722. { //Method inherited from \Illuminate\Database\Schema\Builder
  12723. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12724. $instance->dropAllTypes();
  12725. }
  12726. /**
  12727. * Rename a table on the schema.
  12728. *
  12729. * @param string $from
  12730. * @param string $to
  12731. * @return void
  12732. * @static
  12733. */
  12734. public static function rename($from, $to)
  12735. { //Method inherited from \Illuminate\Database\Schema\Builder
  12736. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12737. $instance->rename($from, $to);
  12738. }
  12739. /**
  12740. * Enable foreign key constraints.
  12741. *
  12742. * @return bool
  12743. * @static
  12744. */
  12745. public static function enableForeignKeyConstraints()
  12746. { //Method inherited from \Illuminate\Database\Schema\Builder
  12747. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12748. return $instance->enableForeignKeyConstraints();
  12749. }
  12750. /**
  12751. * Disable foreign key constraints.
  12752. *
  12753. * @return bool
  12754. * @static
  12755. */
  12756. public static function disableForeignKeyConstraints()
  12757. { //Method inherited from \Illuminate\Database\Schema\Builder
  12758. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12759. return $instance->disableForeignKeyConstraints();
  12760. }
  12761. /**
  12762. * Register a custom Doctrine mapping type.
  12763. *
  12764. * @param string $class
  12765. * @param string $name
  12766. * @param string $type
  12767. * @return void
  12768. * @static
  12769. */
  12770. public static function registerCustomDoctrineType($class, $name, $type)
  12771. { //Method inherited from \Illuminate\Database\Schema\Builder
  12772. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12773. $instance->registerCustomDoctrineType($class, $name, $type);
  12774. }
  12775. /**
  12776. * Get the database connection instance.
  12777. *
  12778. * @return \Illuminate\Database\Connection
  12779. * @static
  12780. */
  12781. public static function getConnection()
  12782. { //Method inherited from \Illuminate\Database\Schema\Builder
  12783. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12784. return $instance->getConnection();
  12785. }
  12786. /**
  12787. * Set the database connection instance.
  12788. *
  12789. * @param \Illuminate\Database\Connection $connection
  12790. * @return \Illuminate\Database\Schema\MySqlBuilder
  12791. * @static
  12792. */
  12793. public static function setConnection($connection)
  12794. { //Method inherited from \Illuminate\Database\Schema\Builder
  12795. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12796. return $instance->setConnection($connection);
  12797. }
  12798. /**
  12799. * Set the Schema Blueprint resolver callback.
  12800. *
  12801. * @param \Closure $resolver
  12802. * @return void
  12803. * @static
  12804. */
  12805. public static function blueprintResolver($resolver)
  12806. { //Method inherited from \Illuminate\Database\Schema\Builder
  12807. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12808. $instance->blueprintResolver($resolver);
  12809. }
  12810. }
  12811. /**
  12812. *
  12813. *
  12814. * @see \Illuminate\Session\SessionManager
  12815. * @see \Illuminate\Session\Store
  12816. */
  12817. class Session {
  12818. /**
  12819. * Determine if requests for the same session should wait for each to finish before executing.
  12820. *
  12821. * @return bool
  12822. * @static
  12823. */
  12824. public static function shouldBlock()
  12825. {
  12826. /** @var \Illuminate\Session\SessionManager $instance */
  12827. return $instance->shouldBlock();
  12828. }
  12829. /**
  12830. * Get the name of the cache store / driver that should be used to acquire session locks.
  12831. *
  12832. * @return string|null
  12833. * @static
  12834. */
  12835. public static function blockDriver()
  12836. {
  12837. /** @var \Illuminate\Session\SessionManager $instance */
  12838. return $instance->blockDriver();
  12839. }
  12840. /**
  12841. * Get the session configuration.
  12842. *
  12843. * @return array
  12844. * @static
  12845. */
  12846. public static function getSessionConfig()
  12847. {
  12848. /** @var \Illuminate\Session\SessionManager $instance */
  12849. return $instance->getSessionConfig();
  12850. }
  12851. /**
  12852. * Get the default session driver name.
  12853. *
  12854. * @return string
  12855. * @static
  12856. */
  12857. public static function getDefaultDriver()
  12858. {
  12859. /** @var \Illuminate\Session\SessionManager $instance */
  12860. return $instance->getDefaultDriver();
  12861. }
  12862. /**
  12863. * Set the default session driver name.
  12864. *
  12865. * @param string $name
  12866. * @return void
  12867. * @static
  12868. */
  12869. public static function setDefaultDriver($name)
  12870. {
  12871. /** @var \Illuminate\Session\SessionManager $instance */
  12872. $instance->setDefaultDriver($name);
  12873. }
  12874. /**
  12875. * Get a driver instance.
  12876. *
  12877. * @param string|null $driver
  12878. * @return mixed
  12879. * @throws \InvalidArgumentException
  12880. * @static
  12881. */
  12882. public static function driver($driver = null)
  12883. { //Method inherited from \Illuminate\Support\Manager
  12884. /** @var \Illuminate\Session\SessionManager $instance */
  12885. return $instance->driver($driver);
  12886. }
  12887. /**
  12888. * Register a custom driver creator Closure.
  12889. *
  12890. * @param string $driver
  12891. * @param \Closure $callback
  12892. * @return \Illuminate\Session\SessionManager
  12893. * @static
  12894. */
  12895. public static function extend($driver, $callback)
  12896. { //Method inherited from \Illuminate\Support\Manager
  12897. /** @var \Illuminate\Session\SessionManager $instance */
  12898. return $instance->extend($driver, $callback);
  12899. }
  12900. /**
  12901. * Get all of the created "drivers".
  12902. *
  12903. * @return array
  12904. * @static
  12905. */
  12906. public static function getDrivers()
  12907. { //Method inherited from \Illuminate\Support\Manager
  12908. /** @var \Illuminate\Session\SessionManager $instance */
  12909. return $instance->getDrivers();
  12910. }
  12911. /**
  12912. * Get the container instance used by the manager.
  12913. *
  12914. * @return \Illuminate\Contracts\Container\Container
  12915. * @static
  12916. */
  12917. public static function getContainer()
  12918. { //Method inherited from \Illuminate\Support\Manager
  12919. /** @var \Illuminate\Session\SessionManager $instance */
  12920. return $instance->getContainer();
  12921. }
  12922. /**
  12923. * Set the container instance used by the manager.
  12924. *
  12925. * @param \Illuminate\Contracts\Container\Container $container
  12926. * @return \Illuminate\Session\SessionManager
  12927. * @static
  12928. */
  12929. public static function setContainer($container)
  12930. { //Method inherited from \Illuminate\Support\Manager
  12931. /** @var \Illuminate\Session\SessionManager $instance */
  12932. return $instance->setContainer($container);
  12933. }
  12934. /**
  12935. * Forget all of the resolved driver instances.
  12936. *
  12937. * @return \Illuminate\Session\SessionManager
  12938. * @static
  12939. */
  12940. public static function forgetDrivers()
  12941. { //Method inherited from \Illuminate\Support\Manager
  12942. /** @var \Illuminate\Session\SessionManager $instance */
  12943. return $instance->forgetDrivers();
  12944. }
  12945. /**
  12946. * Start the session, reading the data from a handler.
  12947. *
  12948. * @return bool
  12949. * @static
  12950. */
  12951. public static function start()
  12952. {
  12953. /** @var \Illuminate\Session\Store $instance */
  12954. return $instance->start();
  12955. }
  12956. /**
  12957. * Save the session data to storage.
  12958. *
  12959. * @return void
  12960. * @static
  12961. */
  12962. public static function save()
  12963. {
  12964. /** @var \Illuminate\Session\Store $instance */
  12965. $instance->save();
  12966. }
  12967. /**
  12968. * Age the flash data for the session.
  12969. *
  12970. * @return void
  12971. * @static
  12972. */
  12973. public static function ageFlashData()
  12974. {
  12975. /** @var \Illuminate\Session\Store $instance */
  12976. $instance->ageFlashData();
  12977. }
  12978. /**
  12979. * Get all of the session data.
  12980. *
  12981. * @return array
  12982. * @static
  12983. */
  12984. public static function all()
  12985. {
  12986. /** @var \Illuminate\Session\Store $instance */
  12987. return $instance->all();
  12988. }
  12989. /**
  12990. * Get a subset of the session data.
  12991. *
  12992. * @param array $keys
  12993. * @return array
  12994. * @static
  12995. */
  12996. public static function only($keys)
  12997. {
  12998. /** @var \Illuminate\Session\Store $instance */
  12999. return $instance->only($keys);
  13000. }
  13001. /**
  13002. * Checks if a key exists.
  13003. *
  13004. * @param string|array $key
  13005. * @return bool
  13006. * @static
  13007. */
  13008. public static function exists($key)
  13009. {
  13010. /** @var \Illuminate\Session\Store $instance */
  13011. return $instance->exists($key);
  13012. }
  13013. /**
  13014. * Determine if the given key is missing from the session data.
  13015. *
  13016. * @param string|array $key
  13017. * @return bool
  13018. * @static
  13019. */
  13020. public static function missing($key)
  13021. {
  13022. /** @var \Illuminate\Session\Store $instance */
  13023. return $instance->missing($key);
  13024. }
  13025. /**
  13026. * Checks if a key is present and not null.
  13027. *
  13028. * @param string|array $key
  13029. * @return bool
  13030. * @static
  13031. */
  13032. public static function has($key)
  13033. {
  13034. /** @var \Illuminate\Session\Store $instance */
  13035. return $instance->has($key);
  13036. }
  13037. /**
  13038. * Get an item from the session.
  13039. *
  13040. * @param string $key
  13041. * @param mixed $default
  13042. * @return mixed
  13043. * @static
  13044. */
  13045. public static function get($key, $default = null)
  13046. {
  13047. /** @var \Illuminate\Session\Store $instance */
  13048. return $instance->get($key, $default);
  13049. }
  13050. /**
  13051. * Get the value of a given key and then forget it.
  13052. *
  13053. * @param string $key
  13054. * @param mixed $default
  13055. * @return mixed
  13056. * @static
  13057. */
  13058. public static function pull($key, $default = null)
  13059. {
  13060. /** @var \Illuminate\Session\Store $instance */
  13061. return $instance->pull($key, $default);
  13062. }
  13063. /**
  13064. * Determine if the session contains old input.
  13065. *
  13066. * @param string|null $key
  13067. * @return bool
  13068. * @static
  13069. */
  13070. public static function hasOldInput($key = null)
  13071. {
  13072. /** @var \Illuminate\Session\Store $instance */
  13073. return $instance->hasOldInput($key);
  13074. }
  13075. /**
  13076. * Get the requested item from the flashed input array.
  13077. *
  13078. * @param string|null $key
  13079. * @param mixed $default
  13080. * @return mixed
  13081. * @static
  13082. */
  13083. public static function getOldInput($key = null, $default = null)
  13084. {
  13085. /** @var \Illuminate\Session\Store $instance */
  13086. return $instance->getOldInput($key, $default);
  13087. }
  13088. /**
  13089. * Replace the given session attributes entirely.
  13090. *
  13091. * @param array $attributes
  13092. * @return void
  13093. * @static
  13094. */
  13095. public static function replace($attributes)
  13096. {
  13097. /** @var \Illuminate\Session\Store $instance */
  13098. $instance->replace($attributes);
  13099. }
  13100. /**
  13101. * Put a key / value pair or array of key / value pairs in the session.
  13102. *
  13103. * @param string|array $key
  13104. * @param mixed $value
  13105. * @return void
  13106. * @static
  13107. */
  13108. public static function put($key, $value = null)
  13109. {
  13110. /** @var \Illuminate\Session\Store $instance */
  13111. $instance->put($key, $value);
  13112. }
  13113. /**
  13114. * Get an item from the session, or store the default value.
  13115. *
  13116. * @param string $key
  13117. * @param \Closure $callback
  13118. * @return mixed
  13119. * @static
  13120. */
  13121. public static function remember($key, $callback)
  13122. {
  13123. /** @var \Illuminate\Session\Store $instance */
  13124. return $instance->remember($key, $callback);
  13125. }
  13126. /**
  13127. * Push a value onto a session array.
  13128. *
  13129. * @param string $key
  13130. * @param mixed $value
  13131. * @return void
  13132. * @static
  13133. */
  13134. public static function push($key, $value)
  13135. {
  13136. /** @var \Illuminate\Session\Store $instance */
  13137. $instance->push($key, $value);
  13138. }
  13139. /**
  13140. * Increment the value of an item in the session.
  13141. *
  13142. * @param string $key
  13143. * @param int $amount
  13144. * @return mixed
  13145. * @static
  13146. */
  13147. public static function increment($key, $amount = 1)
  13148. {
  13149. /** @var \Illuminate\Session\Store $instance */
  13150. return $instance->increment($key, $amount);
  13151. }
  13152. /**
  13153. * Decrement the value of an item in the session.
  13154. *
  13155. * @param string $key
  13156. * @param int $amount
  13157. * @return int
  13158. * @static
  13159. */
  13160. public static function decrement($key, $amount = 1)
  13161. {
  13162. /** @var \Illuminate\Session\Store $instance */
  13163. return $instance->decrement($key, $amount);
  13164. }
  13165. /**
  13166. * Flash a key / value pair to the session.
  13167. *
  13168. * @param string $key
  13169. * @param mixed $value
  13170. * @return void
  13171. * @static
  13172. */
  13173. public static function flash($key, $value = true)
  13174. {
  13175. /** @var \Illuminate\Session\Store $instance */
  13176. $instance->flash($key, $value);
  13177. }
  13178. /**
  13179. * Flash a key / value pair to the session for immediate use.
  13180. *
  13181. * @param string $key
  13182. * @param mixed $value
  13183. * @return void
  13184. * @static
  13185. */
  13186. public static function now($key, $value)
  13187. {
  13188. /** @var \Illuminate\Session\Store $instance */
  13189. $instance->now($key, $value);
  13190. }
  13191. /**
  13192. * Reflash all of the session flash data.
  13193. *
  13194. * @return void
  13195. * @static
  13196. */
  13197. public static function reflash()
  13198. {
  13199. /** @var \Illuminate\Session\Store $instance */
  13200. $instance->reflash();
  13201. }
  13202. /**
  13203. * Reflash a subset of the current flash data.
  13204. *
  13205. * @param array|mixed $keys
  13206. * @return void
  13207. * @static
  13208. */
  13209. public static function keep($keys = null)
  13210. {
  13211. /** @var \Illuminate\Session\Store $instance */
  13212. $instance->keep($keys);
  13213. }
  13214. /**
  13215. * Flash an input array to the session.
  13216. *
  13217. * @param array $value
  13218. * @return void
  13219. * @static
  13220. */
  13221. public static function flashInput($value)
  13222. {
  13223. /** @var \Illuminate\Session\Store $instance */
  13224. $instance->flashInput($value);
  13225. }
  13226. /**
  13227. * Remove an item from the session, returning its value.
  13228. *
  13229. * @param string $key
  13230. * @return mixed
  13231. * @static
  13232. */
  13233. public static function remove($key)
  13234. {
  13235. /** @var \Illuminate\Session\Store $instance */
  13236. return $instance->remove($key);
  13237. }
  13238. /**
  13239. * Remove one or many items from the session.
  13240. *
  13241. * @param string|array $keys
  13242. * @return void
  13243. * @static
  13244. */
  13245. public static function forget($keys)
  13246. {
  13247. /** @var \Illuminate\Session\Store $instance */
  13248. $instance->forget($keys);
  13249. }
  13250. /**
  13251. * Remove all of the items from the session.
  13252. *
  13253. * @return void
  13254. * @static
  13255. */
  13256. public static function flush()
  13257. {
  13258. /** @var \Illuminate\Session\Store $instance */
  13259. $instance->flush();
  13260. }
  13261. /**
  13262. * Flush the session data and regenerate the ID.
  13263. *
  13264. * @return bool
  13265. * @static
  13266. */
  13267. public static function invalidate()
  13268. {
  13269. /** @var \Illuminate\Session\Store $instance */
  13270. return $instance->invalidate();
  13271. }
  13272. /**
  13273. * Generate a new session identifier.
  13274. *
  13275. * @param bool $destroy
  13276. * @return bool
  13277. * @static
  13278. */
  13279. public static function regenerate($destroy = false)
  13280. {
  13281. /** @var \Illuminate\Session\Store $instance */
  13282. return $instance->regenerate($destroy);
  13283. }
  13284. /**
  13285. * Generate a new session ID for the session.
  13286. *
  13287. * @param bool $destroy
  13288. * @return bool
  13289. * @static
  13290. */
  13291. public static function migrate($destroy = false)
  13292. {
  13293. /** @var \Illuminate\Session\Store $instance */
  13294. return $instance->migrate($destroy);
  13295. }
  13296. /**
  13297. * Determine if the session has been started.
  13298. *
  13299. * @return bool
  13300. * @static
  13301. */
  13302. public static function isStarted()
  13303. {
  13304. /** @var \Illuminate\Session\Store $instance */
  13305. return $instance->isStarted();
  13306. }
  13307. /**
  13308. * Get the name of the session.
  13309. *
  13310. * @return string
  13311. * @static
  13312. */
  13313. public static function getName()
  13314. {
  13315. /** @var \Illuminate\Session\Store $instance */
  13316. return $instance->getName();
  13317. }
  13318. /**
  13319. * Set the name of the session.
  13320. *
  13321. * @param string $name
  13322. * @return void
  13323. * @static
  13324. */
  13325. public static function setName($name)
  13326. {
  13327. /** @var \Illuminate\Session\Store $instance */
  13328. $instance->setName($name);
  13329. }
  13330. /**
  13331. * Get the current session ID.
  13332. *
  13333. * @return string
  13334. * @static
  13335. */
  13336. public static function getId()
  13337. {
  13338. /** @var \Illuminate\Session\Store $instance */
  13339. return $instance->getId();
  13340. }
  13341. /**
  13342. * Set the session ID.
  13343. *
  13344. * @param string $id
  13345. * @return void
  13346. * @static
  13347. */
  13348. public static function setId($id)
  13349. {
  13350. /** @var \Illuminate\Session\Store $instance */
  13351. $instance->setId($id);
  13352. }
  13353. /**
  13354. * Determine if this is a valid session ID.
  13355. *
  13356. * @param string $id
  13357. * @return bool
  13358. * @static
  13359. */
  13360. public static function isValidId($id)
  13361. {
  13362. /** @var \Illuminate\Session\Store $instance */
  13363. return $instance->isValidId($id);
  13364. }
  13365. /**
  13366. * Set the existence of the session on the handler if applicable.
  13367. *
  13368. * @param bool $value
  13369. * @return void
  13370. * @static
  13371. */
  13372. public static function setExists($value)
  13373. {
  13374. /** @var \Illuminate\Session\Store $instance */
  13375. $instance->setExists($value);
  13376. }
  13377. /**
  13378. * Get the CSRF token value.
  13379. *
  13380. * @return string
  13381. * @static
  13382. */
  13383. public static function token()
  13384. {
  13385. /** @var \Illuminate\Session\Store $instance */
  13386. return $instance->token();
  13387. }
  13388. /**
  13389. * Regenerate the CSRF token value.
  13390. *
  13391. * @return void
  13392. * @static
  13393. */
  13394. public static function regenerateToken()
  13395. {
  13396. /** @var \Illuminate\Session\Store $instance */
  13397. $instance->regenerateToken();
  13398. }
  13399. /**
  13400. * Get the previous URL from the session.
  13401. *
  13402. * @return string|null
  13403. * @static
  13404. */
  13405. public static function previousUrl()
  13406. {
  13407. /** @var \Illuminate\Session\Store $instance */
  13408. return $instance->previousUrl();
  13409. }
  13410. /**
  13411. * Set the "previous" URL in the session.
  13412. *
  13413. * @param string $url
  13414. * @return void
  13415. * @static
  13416. */
  13417. public static function setPreviousUrl($url)
  13418. {
  13419. /** @var \Illuminate\Session\Store $instance */
  13420. $instance->setPreviousUrl($url);
  13421. }
  13422. /**
  13423. * Specify that the user has confirmed their password.
  13424. *
  13425. * @return void
  13426. * @static
  13427. */
  13428. public static function passwordConfirmed()
  13429. {
  13430. /** @var \Illuminate\Session\Store $instance */
  13431. $instance->passwordConfirmed();
  13432. }
  13433. /**
  13434. * Get the underlying session handler implementation.
  13435. *
  13436. * @return \SessionHandlerInterface
  13437. * @static
  13438. */
  13439. public static function getHandler()
  13440. {
  13441. /** @var \Illuminate\Session\Store $instance */
  13442. return $instance->getHandler();
  13443. }
  13444. /**
  13445. * Determine if the session handler needs a request.
  13446. *
  13447. * @return bool
  13448. * @static
  13449. */
  13450. public static function handlerNeedsRequest()
  13451. {
  13452. /** @var \Illuminate\Session\Store $instance */
  13453. return $instance->handlerNeedsRequest();
  13454. }
  13455. /**
  13456. * Set the request on the handler instance.
  13457. *
  13458. * @param \Illuminate\Http\Request $request
  13459. * @return void
  13460. * @static
  13461. */
  13462. public static function setRequestOnHandler($request)
  13463. {
  13464. /** @var \Illuminate\Session\Store $instance */
  13465. $instance->setRequestOnHandler($request);
  13466. }
  13467. }
  13468. /**
  13469. *
  13470. *
  13471. * @see \Illuminate\Filesystem\FilesystemManager
  13472. */
  13473. class Storage {
  13474. /**
  13475. * Get a filesystem instance.
  13476. *
  13477. * @param string|null $name
  13478. * @return \Illuminate\Filesystem\FilesystemAdapter
  13479. * @static
  13480. */
  13481. public static function drive($name = null)
  13482. {
  13483. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13484. return $instance->drive($name);
  13485. }
  13486. /**
  13487. * Get a filesystem instance.
  13488. *
  13489. * @param string|null $name
  13490. * @return \Illuminate\Filesystem\FilesystemAdapter
  13491. * @static
  13492. */
  13493. public static function disk($name = null)
  13494. {
  13495. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13496. return $instance->disk($name);
  13497. }
  13498. /**
  13499. * Get a default cloud filesystem instance.
  13500. *
  13501. * @return \Illuminate\Filesystem\FilesystemAdapter
  13502. * @static
  13503. */
  13504. public static function cloud()
  13505. {
  13506. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13507. return $instance->cloud();
  13508. }
  13509. /**
  13510. * Build an on-demand disk.
  13511. *
  13512. * @param string|array $config
  13513. * @return \Illuminate\Filesystem\FilesystemAdapter
  13514. * @static
  13515. */
  13516. public static function build($config)
  13517. {
  13518. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13519. return $instance->build($config);
  13520. }
  13521. /**
  13522. * Create an instance of the local driver.
  13523. *
  13524. * @param array $config
  13525. * @return \Illuminate\Filesystem\FilesystemAdapter
  13526. * @static
  13527. */
  13528. public static function createLocalDriver($config)
  13529. {
  13530. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13531. return $instance->createLocalDriver($config);
  13532. }
  13533. /**
  13534. * Create an instance of the ftp driver.
  13535. *
  13536. * @param array $config
  13537. * @return \Illuminate\Filesystem\FilesystemAdapter
  13538. * @static
  13539. */
  13540. public static function createFtpDriver($config)
  13541. {
  13542. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13543. return $instance->createFtpDriver($config);
  13544. }
  13545. /**
  13546. * Create an instance of the sftp driver.
  13547. *
  13548. * @param array $config
  13549. * @return \Illuminate\Filesystem\FilesystemAdapter
  13550. * @static
  13551. */
  13552. public static function createSftpDriver($config)
  13553. {
  13554. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13555. return $instance->createSftpDriver($config);
  13556. }
  13557. /**
  13558. * Create an instance of the Amazon S3 driver.
  13559. *
  13560. * @param array $config
  13561. * @return \Illuminate\Contracts\Filesystem\Cloud
  13562. * @static
  13563. */
  13564. public static function createS3Driver($config)
  13565. {
  13566. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13567. return $instance->createS3Driver($config);
  13568. }
  13569. /**
  13570. * Set the given disk instance.
  13571. *
  13572. * @param string $name
  13573. * @param mixed $disk
  13574. * @return \Illuminate\Filesystem\FilesystemManager
  13575. * @static
  13576. */
  13577. public static function set($name, $disk)
  13578. {
  13579. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13580. return $instance->set($name, $disk);
  13581. }
  13582. /**
  13583. * Get the default driver name.
  13584. *
  13585. * @return string
  13586. * @static
  13587. */
  13588. public static function getDefaultDriver()
  13589. {
  13590. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13591. return $instance->getDefaultDriver();
  13592. }
  13593. /**
  13594. * Get the default cloud driver name.
  13595. *
  13596. * @return string
  13597. * @static
  13598. */
  13599. public static function getDefaultCloudDriver()
  13600. {
  13601. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13602. return $instance->getDefaultCloudDriver();
  13603. }
  13604. /**
  13605. * Unset the given disk instances.
  13606. *
  13607. * @param array|string $disk
  13608. * @return \Illuminate\Filesystem\FilesystemManager
  13609. * @static
  13610. */
  13611. public static function forgetDisk($disk)
  13612. {
  13613. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13614. return $instance->forgetDisk($disk);
  13615. }
  13616. /**
  13617. * Disconnect the given disk and remove from local cache.
  13618. *
  13619. * @param string|null $name
  13620. * @return void
  13621. * @static
  13622. */
  13623. public static function purge($name = null)
  13624. {
  13625. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13626. $instance->purge($name);
  13627. }
  13628. /**
  13629. * Register a custom driver creator Closure.
  13630. *
  13631. * @param string $driver
  13632. * @param \Closure $callback
  13633. * @return \Illuminate\Filesystem\FilesystemManager
  13634. * @static
  13635. */
  13636. public static function extend($driver, $callback)
  13637. {
  13638. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13639. return $instance->extend($driver, $callback);
  13640. }
  13641. /**
  13642. * Set the application instance used by the manager.
  13643. *
  13644. * @param \Illuminate\Contracts\Foundation\Application $app
  13645. * @return \Illuminate\Filesystem\FilesystemManager
  13646. * @static
  13647. */
  13648. public static function setApplication($app)
  13649. {
  13650. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13651. return $instance->setApplication($app);
  13652. }
  13653. /**
  13654. * Assert that the given file exists.
  13655. *
  13656. * @param string|array $path
  13657. * @param string|null $content
  13658. * @return \Illuminate\Filesystem\FilesystemAdapter
  13659. * @static
  13660. */
  13661. public static function assertExists($path, $content = null)
  13662. {
  13663. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13664. return $instance->assertExists($path, $content);
  13665. }
  13666. /**
  13667. * Assert that the given file does not exist.
  13668. *
  13669. * @param string|array $path
  13670. * @return \Illuminate\Filesystem\FilesystemAdapter
  13671. * @static
  13672. */
  13673. public static function assertMissing($path)
  13674. {
  13675. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13676. return $instance->assertMissing($path);
  13677. }
  13678. /**
  13679. * Determine if a file exists.
  13680. *
  13681. * @param string $path
  13682. * @return bool
  13683. * @static
  13684. */
  13685. public static function exists($path)
  13686. {
  13687. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13688. return $instance->exists($path);
  13689. }
  13690. /**
  13691. * Determine if a file or directory is missing.
  13692. *
  13693. * @param string $path
  13694. * @return bool
  13695. * @static
  13696. */
  13697. public static function missing($path)
  13698. {
  13699. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13700. return $instance->missing($path);
  13701. }
  13702. /**
  13703. * Get the full path for the file at the given "short" path.
  13704. *
  13705. * @param string $path
  13706. * @return string
  13707. * @static
  13708. */
  13709. public static function path($path)
  13710. {
  13711. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13712. return $instance->path($path);
  13713. }
  13714. /**
  13715. * Get the contents of a file.
  13716. *
  13717. * @param string $path
  13718. * @return string
  13719. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13720. * @static
  13721. */
  13722. public static function get($path)
  13723. {
  13724. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13725. return $instance->get($path);
  13726. }
  13727. /**
  13728. * Create a streamed response for a given file.
  13729. *
  13730. * @param string $path
  13731. * @param string|null $name
  13732. * @param array|null $headers
  13733. * @param string|null $disposition
  13734. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13735. * @static
  13736. */
  13737. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  13738. {
  13739. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13740. return $instance->response($path, $name, $headers, $disposition);
  13741. }
  13742. /**
  13743. * Create a streamed download response for a given file.
  13744. *
  13745. * @param string $path
  13746. * @param string|null $name
  13747. * @param array|null $headers
  13748. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13749. * @static
  13750. */
  13751. public static function download($path, $name = null, $headers = [])
  13752. {
  13753. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13754. return $instance->download($path, $name, $headers);
  13755. }
  13756. /**
  13757. * Write the contents of a file.
  13758. *
  13759. * @param string $path
  13760. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  13761. * @param mixed $options
  13762. * @return bool
  13763. * @static
  13764. */
  13765. public static function put($path, $contents, $options = [])
  13766. {
  13767. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13768. return $instance->put($path, $contents, $options);
  13769. }
  13770. /**
  13771. * Store the uploaded file on the disk.
  13772. *
  13773. * @param string $path
  13774. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13775. * @param mixed $options
  13776. * @return string|false
  13777. * @static
  13778. */
  13779. public static function putFile($path, $file, $options = [])
  13780. {
  13781. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13782. return $instance->putFile($path, $file, $options);
  13783. }
  13784. /**
  13785. * Store the uploaded file on the disk with a given name.
  13786. *
  13787. * @param string $path
  13788. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13789. * @param string $name
  13790. * @param mixed $options
  13791. * @return string|false
  13792. * @static
  13793. */
  13794. public static function putFileAs($path, $file, $name, $options = [])
  13795. {
  13796. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13797. return $instance->putFileAs($path, $file, $name, $options);
  13798. }
  13799. /**
  13800. * Get the visibility for the given path.
  13801. *
  13802. * @param string $path
  13803. * @return string
  13804. * @static
  13805. */
  13806. public static function getVisibility($path)
  13807. {
  13808. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13809. return $instance->getVisibility($path);
  13810. }
  13811. /**
  13812. * Set the visibility for the given path.
  13813. *
  13814. * @param string $path
  13815. * @param string $visibility
  13816. * @return bool
  13817. * @static
  13818. */
  13819. public static function setVisibility($path, $visibility)
  13820. {
  13821. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13822. return $instance->setVisibility($path, $visibility);
  13823. }
  13824. /**
  13825. * Prepend to a file.
  13826. *
  13827. * @param string $path
  13828. * @param string $data
  13829. * @param string $separator
  13830. * @return bool
  13831. * @static
  13832. */
  13833. public static function prepend($path, $data, $separator = '
  13834. ')
  13835. {
  13836. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13837. return $instance->prepend($path, $data, $separator);
  13838. }
  13839. /**
  13840. * Append to a file.
  13841. *
  13842. * @param string $path
  13843. * @param string $data
  13844. * @param string $separator
  13845. * @return bool
  13846. * @static
  13847. */
  13848. public static function append($path, $data, $separator = '
  13849. ')
  13850. {
  13851. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13852. return $instance->append($path, $data, $separator);
  13853. }
  13854. /**
  13855. * Delete the file at a given path.
  13856. *
  13857. * @param string|array $paths
  13858. * @return bool
  13859. * @static
  13860. */
  13861. public static function delete($paths)
  13862. {
  13863. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13864. return $instance->delete($paths);
  13865. }
  13866. /**
  13867. * Copy a file to a new location.
  13868. *
  13869. * @param string $from
  13870. * @param string $to
  13871. * @return bool
  13872. * @static
  13873. */
  13874. public static function copy($from, $to)
  13875. {
  13876. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13877. return $instance->copy($from, $to);
  13878. }
  13879. /**
  13880. * Move a file to a new location.
  13881. *
  13882. * @param string $from
  13883. * @param string $to
  13884. * @return bool
  13885. * @static
  13886. */
  13887. public static function move($from, $to)
  13888. {
  13889. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13890. return $instance->move($from, $to);
  13891. }
  13892. /**
  13893. * Get the file size of a given file.
  13894. *
  13895. * @param string $path
  13896. * @return int
  13897. * @static
  13898. */
  13899. public static function size($path)
  13900. {
  13901. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13902. return $instance->size($path);
  13903. }
  13904. /**
  13905. * Get the mime-type of a given file.
  13906. *
  13907. * @param string $path
  13908. * @return string|false
  13909. * @static
  13910. */
  13911. public static function mimeType($path)
  13912. {
  13913. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13914. return $instance->mimeType($path);
  13915. }
  13916. /**
  13917. * Get the file's last modification time.
  13918. *
  13919. * @param string $path
  13920. * @return int
  13921. * @static
  13922. */
  13923. public static function lastModified($path)
  13924. {
  13925. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13926. return $instance->lastModified($path);
  13927. }
  13928. /**
  13929. * Get the URL for the file at the given path.
  13930. *
  13931. * @param string $path
  13932. * @return string
  13933. * @throws \RuntimeException
  13934. * @static
  13935. */
  13936. public static function url($path)
  13937. {
  13938. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13939. return $instance->url($path);
  13940. }
  13941. /**
  13942. * Get a resource to read the file.
  13943. *
  13944. * @param string $path
  13945. * @return resource|null The path resource or null on failure.
  13946. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13947. * @static
  13948. */
  13949. public static function readStream($path)
  13950. {
  13951. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13952. return $instance->readStream($path);
  13953. }
  13954. /**
  13955. * Write a new file using a stream.
  13956. *
  13957. * @param string $path
  13958. * @param resource $resource
  13959. * @param array $options
  13960. * @return bool
  13961. * @throws \InvalidArgumentException If $resource is not a file handle.
  13962. * @throws \Illuminate\Contracts\Filesystem\FileExistsException
  13963. * @static
  13964. */
  13965. public static function writeStream($path, $resource, $options = [])
  13966. {
  13967. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13968. return $instance->writeStream($path, $resource, $options);
  13969. }
  13970. /**
  13971. * Get a temporary URL for the file at the given path.
  13972. *
  13973. * @param string $path
  13974. * @param \DateTimeInterface $expiration
  13975. * @param array $options
  13976. * @return string
  13977. * @throws \RuntimeException
  13978. * @static
  13979. */
  13980. public static function temporaryUrl($path, $expiration, $options = [])
  13981. {
  13982. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13983. return $instance->temporaryUrl($path, $expiration, $options);
  13984. }
  13985. /**
  13986. * Get a temporary URL for the file at the given path.
  13987. *
  13988. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  13989. * @param string $path
  13990. * @param \DateTimeInterface $expiration
  13991. * @param array $options
  13992. * @return string
  13993. * @static
  13994. */
  13995. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  13996. {
  13997. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13998. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  13999. }
  14000. /**
  14001. * Get an array of all files in a directory.
  14002. *
  14003. * @param string|null $directory
  14004. * @param bool $recursive
  14005. * @return array
  14006. * @static
  14007. */
  14008. public static function files($directory = null, $recursive = false)
  14009. {
  14010. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14011. return $instance->files($directory, $recursive);
  14012. }
  14013. /**
  14014. * Get all of the files from the given directory (recursive).
  14015. *
  14016. * @param string|null $directory
  14017. * @return array
  14018. * @static
  14019. */
  14020. public static function allFiles($directory = null)
  14021. {
  14022. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14023. return $instance->allFiles($directory);
  14024. }
  14025. /**
  14026. * Get all of the directories within a given directory.
  14027. *
  14028. * @param string|null $directory
  14029. * @param bool $recursive
  14030. * @return array
  14031. * @static
  14032. */
  14033. public static function directories($directory = null, $recursive = false)
  14034. {
  14035. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14036. return $instance->directories($directory, $recursive);
  14037. }
  14038. /**
  14039. * Get all (recursive) of the directories within a given directory.
  14040. *
  14041. * @param string|null $directory
  14042. * @return array
  14043. * @static
  14044. */
  14045. public static function allDirectories($directory = null)
  14046. {
  14047. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14048. return $instance->allDirectories($directory);
  14049. }
  14050. /**
  14051. * Create a directory.
  14052. *
  14053. * @param string $path
  14054. * @return bool
  14055. * @static
  14056. */
  14057. public static function makeDirectory($path)
  14058. {
  14059. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14060. return $instance->makeDirectory($path);
  14061. }
  14062. /**
  14063. * Recursively delete a directory.
  14064. *
  14065. * @param string $directory
  14066. * @return bool
  14067. * @static
  14068. */
  14069. public static function deleteDirectory($directory)
  14070. {
  14071. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14072. return $instance->deleteDirectory($directory);
  14073. }
  14074. /**
  14075. * Flush the Flysystem cache.
  14076. *
  14077. * @return void
  14078. * @static
  14079. */
  14080. public static function flushCache()
  14081. {
  14082. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14083. $instance->flushCache();
  14084. }
  14085. /**
  14086. * Get the Flysystem driver.
  14087. *
  14088. * @return \League\Flysystem\FilesystemInterface
  14089. * @static
  14090. */
  14091. public static function getDriver()
  14092. {
  14093. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14094. return $instance->getDriver();
  14095. }
  14096. /**
  14097. * Define a custom temporary URL builder callback.
  14098. *
  14099. * @param \Closure $callback
  14100. * @return void
  14101. * @static
  14102. */
  14103. public static function buildTemporaryUrlsUsing($callback)
  14104. {
  14105. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14106. $instance->buildTemporaryUrlsUsing($callback);
  14107. }
  14108. /**
  14109. * Register a custom macro.
  14110. *
  14111. * @param string $name
  14112. * @param object|callable $macro
  14113. * @return void
  14114. * @static
  14115. */
  14116. public static function macro($name, $macro)
  14117. {
  14118. \Illuminate\Filesystem\FilesystemAdapter::macro($name, $macro);
  14119. }
  14120. /**
  14121. * Mix another object into the class.
  14122. *
  14123. * @param object $mixin
  14124. * @param bool $replace
  14125. * @return void
  14126. * @throws \ReflectionException
  14127. * @static
  14128. */
  14129. public static function mixin($mixin, $replace = true)
  14130. {
  14131. \Illuminate\Filesystem\FilesystemAdapter::mixin($mixin, $replace);
  14132. }
  14133. /**
  14134. * Checks if macro is registered.
  14135. *
  14136. * @param string $name
  14137. * @return bool
  14138. * @static
  14139. */
  14140. public static function hasMacro($name)
  14141. {
  14142. return \Illuminate\Filesystem\FilesystemAdapter::hasMacro($name);
  14143. }
  14144. /**
  14145. * Flush the existing macros.
  14146. *
  14147. * @return void
  14148. * @static
  14149. */
  14150. public static function flushMacros()
  14151. {
  14152. \Illuminate\Filesystem\FilesystemAdapter::flushMacros();
  14153. }
  14154. /**
  14155. * Dynamically handle calls to the class.
  14156. *
  14157. * @param string $method
  14158. * @param array $parameters
  14159. * @return mixed
  14160. * @throws \BadMethodCallException
  14161. * @static
  14162. */
  14163. public static function macroCall($method, $parameters)
  14164. {
  14165. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14166. return $instance->macroCall($method, $parameters);
  14167. }
  14168. }
  14169. /**
  14170. *
  14171. *
  14172. * @see \Illuminate\Routing\UrlGenerator
  14173. */
  14174. class URL {
  14175. /**
  14176. * Get the full URL for the current request.
  14177. *
  14178. * @return string
  14179. * @static
  14180. */
  14181. public static function full()
  14182. {
  14183. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14184. return $instance->full();
  14185. }
  14186. /**
  14187. * Get the current URL for the request.
  14188. *
  14189. * @return string
  14190. * @static
  14191. */
  14192. public static function current()
  14193. {
  14194. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14195. return $instance->current();
  14196. }
  14197. /**
  14198. * Get the URL for the previous request.
  14199. *
  14200. * @param mixed $fallback
  14201. * @return string
  14202. * @static
  14203. */
  14204. public static function previous($fallback = false)
  14205. {
  14206. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14207. return $instance->previous($fallback);
  14208. }
  14209. /**
  14210. * Generate an absolute URL to the given path.
  14211. *
  14212. * @param string $path
  14213. * @param mixed $extra
  14214. * @param bool|null $secure
  14215. * @return string
  14216. * @static
  14217. */
  14218. public static function to($path, $extra = [], $secure = null)
  14219. {
  14220. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14221. return $instance->to($path, $extra, $secure);
  14222. }
  14223. /**
  14224. * Generate a secure, absolute URL to the given path.
  14225. *
  14226. * @param string $path
  14227. * @param array $parameters
  14228. * @return string
  14229. * @static
  14230. */
  14231. public static function secure($path, $parameters = [])
  14232. {
  14233. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14234. return $instance->secure($path, $parameters);
  14235. }
  14236. /**
  14237. * Generate the URL to an application asset.
  14238. *
  14239. * @param string $path
  14240. * @param bool|null $secure
  14241. * @return string
  14242. * @static
  14243. */
  14244. public static function asset($path, $secure = null)
  14245. {
  14246. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14247. return $instance->asset($path, $secure);
  14248. }
  14249. /**
  14250. * Generate the URL to a secure asset.
  14251. *
  14252. * @param string $path
  14253. * @return string
  14254. * @static
  14255. */
  14256. public static function secureAsset($path)
  14257. {
  14258. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14259. return $instance->secureAsset($path);
  14260. }
  14261. /**
  14262. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  14263. *
  14264. * @param string $root
  14265. * @param string $path
  14266. * @param bool|null $secure
  14267. * @return string
  14268. * @static
  14269. */
  14270. public static function assetFrom($root, $path, $secure = null)
  14271. {
  14272. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14273. return $instance->assetFrom($root, $path, $secure);
  14274. }
  14275. /**
  14276. * Get the default scheme for a raw URL.
  14277. *
  14278. * @param bool|null $secure
  14279. * @return string
  14280. * @static
  14281. */
  14282. public static function formatScheme($secure = null)
  14283. {
  14284. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14285. return $instance->formatScheme($secure);
  14286. }
  14287. /**
  14288. * Create a signed route URL for a named route.
  14289. *
  14290. * @param string $name
  14291. * @param mixed $parameters
  14292. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  14293. * @param bool $absolute
  14294. * @return string
  14295. * @throws \InvalidArgumentException
  14296. * @static
  14297. */
  14298. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  14299. {
  14300. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14301. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  14302. }
  14303. /**
  14304. * Create a temporary signed route URL for a named route.
  14305. *
  14306. * @param string $name
  14307. * @param \DateTimeInterface|\DateInterval|int $expiration
  14308. * @param array $parameters
  14309. * @param bool $absolute
  14310. * @return string
  14311. * @static
  14312. */
  14313. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  14314. {
  14315. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14316. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  14317. }
  14318. /**
  14319. * Determine if the given request has a valid signature.
  14320. *
  14321. * @param \Illuminate\Http\Request $request
  14322. * @param bool $absolute
  14323. * @return bool
  14324. * @static
  14325. */
  14326. public static function hasValidSignature($request, $absolute = true)
  14327. {
  14328. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14329. return $instance->hasValidSignature($request, $absolute);
  14330. }
  14331. /**
  14332. * Determine if the given request has a valid signature for a relative URL.
  14333. *
  14334. * @param \Illuminate\Http\Request $request
  14335. * @return bool
  14336. * @static
  14337. */
  14338. public static function hasValidRelativeSignature($request)
  14339. {
  14340. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14341. return $instance->hasValidRelativeSignature($request);
  14342. }
  14343. /**
  14344. * Determine if the signature from the given request matches the URL.
  14345. *
  14346. * @param \Illuminate\Http\Request $request
  14347. * @param bool $absolute
  14348. * @return bool
  14349. * @static
  14350. */
  14351. public static function hasCorrectSignature($request, $absolute = true)
  14352. {
  14353. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14354. return $instance->hasCorrectSignature($request, $absolute);
  14355. }
  14356. /**
  14357. * Determine if the expires timestamp from the given request is not from the past.
  14358. *
  14359. * @param \Illuminate\Http\Request $request
  14360. * @return bool
  14361. * @static
  14362. */
  14363. public static function signatureHasNotExpired($request)
  14364. {
  14365. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14366. return $instance->signatureHasNotExpired($request);
  14367. }
  14368. /**
  14369. * Get the URL to a named route.
  14370. *
  14371. * @param string $name
  14372. * @param mixed $parameters
  14373. * @param bool $absolute
  14374. * @return string
  14375. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  14376. * @static
  14377. */
  14378. public static function route($name, $parameters = [], $absolute = true)
  14379. {
  14380. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14381. return $instance->route($name, $parameters, $absolute);
  14382. }
  14383. /**
  14384. * Get the URL for a given route instance.
  14385. *
  14386. * @param \Illuminate\Routing\Route $route
  14387. * @param mixed $parameters
  14388. * @param bool $absolute
  14389. * @return string
  14390. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  14391. * @static
  14392. */
  14393. public static function toRoute($route, $parameters, $absolute)
  14394. {
  14395. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14396. return $instance->toRoute($route, $parameters, $absolute);
  14397. }
  14398. /**
  14399. * Get the URL to a controller action.
  14400. *
  14401. * @param string|array $action
  14402. * @param mixed $parameters
  14403. * @param bool $absolute
  14404. * @return string
  14405. * @throws \InvalidArgumentException
  14406. * @static
  14407. */
  14408. public static function action($action, $parameters = [], $absolute = true)
  14409. {
  14410. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14411. return $instance->action($action, $parameters, $absolute);
  14412. }
  14413. /**
  14414. * Format the array of URL parameters.
  14415. *
  14416. * @param mixed|array $parameters
  14417. * @return array
  14418. * @static
  14419. */
  14420. public static function formatParameters($parameters)
  14421. {
  14422. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14423. return $instance->formatParameters($parameters);
  14424. }
  14425. /**
  14426. * Get the base URL for the request.
  14427. *
  14428. * @param string $scheme
  14429. * @param string|null $root
  14430. * @return string
  14431. * @static
  14432. */
  14433. public static function formatRoot($scheme, $root = null)
  14434. {
  14435. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14436. return $instance->formatRoot($scheme, $root);
  14437. }
  14438. /**
  14439. * Format the given URL segments into a single URL.
  14440. *
  14441. * @param string $root
  14442. * @param string $path
  14443. * @param \Illuminate\Routing\Route|null $route
  14444. * @return string
  14445. * @static
  14446. */
  14447. public static function format($root, $path, $route = null)
  14448. {
  14449. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14450. return $instance->format($root, $path, $route);
  14451. }
  14452. /**
  14453. * Determine if the given path is a valid URL.
  14454. *
  14455. * @param string $path
  14456. * @return bool
  14457. * @static
  14458. */
  14459. public static function isValidUrl($path)
  14460. {
  14461. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14462. return $instance->isValidUrl($path);
  14463. }
  14464. /**
  14465. * Set the default named parameters used by the URL generator.
  14466. *
  14467. * @param array $defaults
  14468. * @return void
  14469. * @static
  14470. */
  14471. public static function defaults($defaults)
  14472. {
  14473. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14474. $instance->defaults($defaults);
  14475. }
  14476. /**
  14477. * Get the default named parameters used by the URL generator.
  14478. *
  14479. * @return array
  14480. * @static
  14481. */
  14482. public static function getDefaultParameters()
  14483. {
  14484. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14485. return $instance->getDefaultParameters();
  14486. }
  14487. /**
  14488. * Force the scheme for URLs.
  14489. *
  14490. * @param string|null $scheme
  14491. * @return void
  14492. * @static
  14493. */
  14494. public static function forceScheme($scheme)
  14495. {
  14496. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14497. $instance->forceScheme($scheme);
  14498. }
  14499. /**
  14500. * Set the forced root URL.
  14501. *
  14502. * @param string|null $root
  14503. * @return void
  14504. * @static
  14505. */
  14506. public static function forceRootUrl($root)
  14507. {
  14508. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14509. $instance->forceRootUrl($root);
  14510. }
  14511. /**
  14512. * Set a callback to be used to format the host of generated URLs.
  14513. *
  14514. * @param \Closure $callback
  14515. * @return \Illuminate\Routing\UrlGenerator
  14516. * @static
  14517. */
  14518. public static function formatHostUsing($callback)
  14519. {
  14520. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14521. return $instance->formatHostUsing($callback);
  14522. }
  14523. /**
  14524. * Set a callback to be used to format the path of generated URLs.
  14525. *
  14526. * @param \Closure $callback
  14527. * @return \Illuminate\Routing\UrlGenerator
  14528. * @static
  14529. */
  14530. public static function formatPathUsing($callback)
  14531. {
  14532. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14533. return $instance->formatPathUsing($callback);
  14534. }
  14535. /**
  14536. * Get the path formatter being used by the URL generator.
  14537. *
  14538. * @return \Closure
  14539. * @static
  14540. */
  14541. public static function pathFormatter()
  14542. {
  14543. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14544. return $instance->pathFormatter();
  14545. }
  14546. /**
  14547. * Get the request instance.
  14548. *
  14549. * @return \Illuminate\Http\Request
  14550. * @static
  14551. */
  14552. public static function getRequest()
  14553. {
  14554. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14555. return $instance->getRequest();
  14556. }
  14557. /**
  14558. * Set the current request instance.
  14559. *
  14560. * @param \Illuminate\Http\Request $request
  14561. * @return void
  14562. * @static
  14563. */
  14564. public static function setRequest($request)
  14565. {
  14566. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14567. $instance->setRequest($request);
  14568. }
  14569. /**
  14570. * Set the route collection.
  14571. *
  14572. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  14573. * @return \Illuminate\Routing\UrlGenerator
  14574. * @static
  14575. */
  14576. public static function setRoutes($routes)
  14577. {
  14578. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14579. return $instance->setRoutes($routes);
  14580. }
  14581. /**
  14582. * Set the session resolver for the generator.
  14583. *
  14584. * @param callable $sessionResolver
  14585. * @return \Illuminate\Routing\UrlGenerator
  14586. * @static
  14587. */
  14588. public static function setSessionResolver($sessionResolver)
  14589. {
  14590. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14591. return $instance->setSessionResolver($sessionResolver);
  14592. }
  14593. /**
  14594. * Set the encryption key resolver.
  14595. *
  14596. * @param callable $keyResolver
  14597. * @return \Illuminate\Routing\UrlGenerator
  14598. * @static
  14599. */
  14600. public static function setKeyResolver($keyResolver)
  14601. {
  14602. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14603. return $instance->setKeyResolver($keyResolver);
  14604. }
  14605. /**
  14606. * Set the root controller namespace.
  14607. *
  14608. * @param string $rootNamespace
  14609. * @return \Illuminate\Routing\UrlGenerator
  14610. * @static
  14611. */
  14612. public static function setRootControllerNamespace($rootNamespace)
  14613. {
  14614. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14615. return $instance->setRootControllerNamespace($rootNamespace);
  14616. }
  14617. /**
  14618. * Register a custom macro.
  14619. *
  14620. * @param string $name
  14621. * @param object|callable $macro
  14622. * @return void
  14623. * @static
  14624. */
  14625. public static function macro($name, $macro)
  14626. {
  14627. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  14628. }
  14629. /**
  14630. * Mix another object into the class.
  14631. *
  14632. * @param object $mixin
  14633. * @param bool $replace
  14634. * @return void
  14635. * @throws \ReflectionException
  14636. * @static
  14637. */
  14638. public static function mixin($mixin, $replace = true)
  14639. {
  14640. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  14641. }
  14642. /**
  14643. * Checks if macro is registered.
  14644. *
  14645. * @param string $name
  14646. * @return bool
  14647. * @static
  14648. */
  14649. public static function hasMacro($name)
  14650. {
  14651. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  14652. }
  14653. /**
  14654. * Flush the existing macros.
  14655. *
  14656. * @return void
  14657. * @static
  14658. */
  14659. public static function flushMacros()
  14660. {
  14661. \Illuminate\Routing\UrlGenerator::flushMacros();
  14662. }
  14663. }
  14664. /**
  14665. *
  14666. *
  14667. * @see \Illuminate\Validation\Factory
  14668. */
  14669. class Validator {
  14670. /**
  14671. * Create a new Validator instance.
  14672. *
  14673. * @param array $data
  14674. * @param array $rules
  14675. * @param array $messages
  14676. * @param array $customAttributes
  14677. * @return \Illuminate\Validation\Validator
  14678. * @static
  14679. */
  14680. public static function make($data, $rules, $messages = [], $customAttributes = [])
  14681. {
  14682. /** @var \Illuminate\Validation\Factory $instance */
  14683. return $instance->make($data, $rules, $messages, $customAttributes);
  14684. }
  14685. /**
  14686. * Validate the given data against the provided rules.
  14687. *
  14688. * @param array $data
  14689. * @param array $rules
  14690. * @param array $messages
  14691. * @param array $customAttributes
  14692. * @return array
  14693. * @throws \Illuminate\Validation\ValidationException
  14694. * @static
  14695. */
  14696. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  14697. {
  14698. /** @var \Illuminate\Validation\Factory $instance */
  14699. return $instance->validate($data, $rules, $messages, $customAttributes);
  14700. }
  14701. /**
  14702. * Register a custom validator extension.
  14703. *
  14704. * @param string $rule
  14705. * @param \Closure|string $extension
  14706. * @param string|null $message
  14707. * @return void
  14708. * @static
  14709. */
  14710. public static function extend($rule, $extension, $message = null)
  14711. {
  14712. /** @var \Illuminate\Validation\Factory $instance */
  14713. $instance->extend($rule, $extension, $message);
  14714. }
  14715. /**
  14716. * Register a custom implicit validator extension.
  14717. *
  14718. * @param string $rule
  14719. * @param \Closure|string $extension
  14720. * @param string|null $message
  14721. * @return void
  14722. * @static
  14723. */
  14724. public static function extendImplicit($rule, $extension, $message = null)
  14725. {
  14726. /** @var \Illuminate\Validation\Factory $instance */
  14727. $instance->extendImplicit($rule, $extension, $message);
  14728. }
  14729. /**
  14730. * Register a custom dependent validator extension.
  14731. *
  14732. * @param string $rule
  14733. * @param \Closure|string $extension
  14734. * @param string|null $message
  14735. * @return void
  14736. * @static
  14737. */
  14738. public static function extendDependent($rule, $extension, $message = null)
  14739. {
  14740. /** @var \Illuminate\Validation\Factory $instance */
  14741. $instance->extendDependent($rule, $extension, $message);
  14742. }
  14743. /**
  14744. * Register a custom validator message replacer.
  14745. *
  14746. * @param string $rule
  14747. * @param \Closure|string $replacer
  14748. * @return void
  14749. * @static
  14750. */
  14751. public static function replacer($rule, $replacer)
  14752. {
  14753. /** @var \Illuminate\Validation\Factory $instance */
  14754. $instance->replacer($rule, $replacer);
  14755. }
  14756. /**
  14757. * Indicate that unvalidated array keys should be excluded, even if the parent array was validated.
  14758. *
  14759. * @return void
  14760. * @static
  14761. */
  14762. public static function excludeUnvalidatedArrayKeys()
  14763. {
  14764. /** @var \Illuminate\Validation\Factory $instance */
  14765. $instance->excludeUnvalidatedArrayKeys();
  14766. }
  14767. /**
  14768. * Set the Validator instance resolver.
  14769. *
  14770. * @param \Closure $resolver
  14771. * @return void
  14772. * @static
  14773. */
  14774. public static function resolver($resolver)
  14775. {
  14776. /** @var \Illuminate\Validation\Factory $instance */
  14777. $instance->resolver($resolver);
  14778. }
  14779. /**
  14780. * Get the Translator implementation.
  14781. *
  14782. * @return \Illuminate\Contracts\Translation\Translator
  14783. * @static
  14784. */
  14785. public static function getTranslator()
  14786. {
  14787. /** @var \Illuminate\Validation\Factory $instance */
  14788. return $instance->getTranslator();
  14789. }
  14790. /**
  14791. * Get the Presence Verifier implementation.
  14792. *
  14793. * @return \Illuminate\Validation\PresenceVerifierInterface
  14794. * @static
  14795. */
  14796. public static function getPresenceVerifier()
  14797. {
  14798. /** @var \Illuminate\Validation\Factory $instance */
  14799. return $instance->getPresenceVerifier();
  14800. }
  14801. /**
  14802. * Set the Presence Verifier implementation.
  14803. *
  14804. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  14805. * @return void
  14806. * @static
  14807. */
  14808. public static function setPresenceVerifier($presenceVerifier)
  14809. {
  14810. /** @var \Illuminate\Validation\Factory $instance */
  14811. $instance->setPresenceVerifier($presenceVerifier);
  14812. }
  14813. /**
  14814. * Get the container instance used by the validation factory.
  14815. *
  14816. * @return \Illuminate\Contracts\Container\Container
  14817. * @static
  14818. */
  14819. public static function getContainer()
  14820. {
  14821. /** @var \Illuminate\Validation\Factory $instance */
  14822. return $instance->getContainer();
  14823. }
  14824. /**
  14825. * Set the container instance used by the validation factory.
  14826. *
  14827. * @param \Illuminate\Contracts\Container\Container $container
  14828. * @return \Illuminate\Validation\Factory
  14829. * @static
  14830. */
  14831. public static function setContainer($container)
  14832. {
  14833. /** @var \Illuminate\Validation\Factory $instance */
  14834. return $instance->setContainer($container);
  14835. }
  14836. }
  14837. /**
  14838. *
  14839. *
  14840. * @see \Illuminate\View\Factory
  14841. */
  14842. class View {
  14843. /**
  14844. * Get the evaluated view contents for the given view.
  14845. *
  14846. * @param string $path
  14847. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14848. * @param array $mergeData
  14849. * @return \Illuminate\Contracts\View\View
  14850. * @static
  14851. */
  14852. public static function file($path, $data = [], $mergeData = [])
  14853. {
  14854. /** @var \Illuminate\View\Factory $instance */
  14855. return $instance->file($path, $data, $mergeData);
  14856. }
  14857. /**
  14858. * Get the evaluated view contents for the given view.
  14859. *
  14860. * @param string $view
  14861. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14862. * @param array $mergeData
  14863. * @return \Illuminate\Contracts\View\View
  14864. * @static
  14865. */
  14866. public static function make($view, $data = [], $mergeData = [])
  14867. {
  14868. /** @var \Illuminate\View\Factory $instance */
  14869. return $instance->make($view, $data, $mergeData);
  14870. }
  14871. /**
  14872. * Get the first view that actually exists from the given list.
  14873. *
  14874. * @param array $views
  14875. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14876. * @param array $mergeData
  14877. * @return \Illuminate\Contracts\View\View
  14878. * @throws \InvalidArgumentException
  14879. * @static
  14880. */
  14881. public static function first($views, $data = [], $mergeData = [])
  14882. {
  14883. /** @var \Illuminate\View\Factory $instance */
  14884. return $instance->first($views, $data, $mergeData);
  14885. }
  14886. /**
  14887. * Get the rendered content of the view based on a given condition.
  14888. *
  14889. * @param bool $condition
  14890. * @param string $view
  14891. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14892. * @param array $mergeData
  14893. * @return string
  14894. * @static
  14895. */
  14896. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  14897. {
  14898. /** @var \Illuminate\View\Factory $instance */
  14899. return $instance->renderWhen($condition, $view, $data, $mergeData);
  14900. }
  14901. /**
  14902. * Get the rendered content of the view based on the negation of a given condition.
  14903. *
  14904. * @param bool $condition
  14905. * @param string $view
  14906. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14907. * @param array $mergeData
  14908. * @return string
  14909. * @static
  14910. */
  14911. public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  14912. {
  14913. /** @var \Illuminate\View\Factory $instance */
  14914. return $instance->renderUnless($condition, $view, $data, $mergeData);
  14915. }
  14916. /**
  14917. * Get the rendered contents of a partial from a loop.
  14918. *
  14919. * @param string $view
  14920. * @param array $data
  14921. * @param string $iterator
  14922. * @param string $empty
  14923. * @return string
  14924. * @static
  14925. */
  14926. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  14927. {
  14928. /** @var \Illuminate\View\Factory $instance */
  14929. return $instance->renderEach($view, $data, $iterator, $empty);
  14930. }
  14931. /**
  14932. * Determine if a given view exists.
  14933. *
  14934. * @param string $view
  14935. * @return bool
  14936. * @static
  14937. */
  14938. public static function exists($view)
  14939. {
  14940. /** @var \Illuminate\View\Factory $instance */
  14941. return $instance->exists($view);
  14942. }
  14943. /**
  14944. * Get the appropriate view engine for the given path.
  14945. *
  14946. * @param string $path
  14947. * @return \Illuminate\Contracts\View\Engine
  14948. * @throws \InvalidArgumentException
  14949. * @static
  14950. */
  14951. public static function getEngineFromPath($path)
  14952. {
  14953. /** @var \Illuminate\View\Factory $instance */
  14954. return $instance->getEngineFromPath($path);
  14955. }
  14956. /**
  14957. * Add a piece of shared data to the environment.
  14958. *
  14959. * @param array|string $key
  14960. * @param mixed|null $value
  14961. * @return mixed
  14962. * @static
  14963. */
  14964. public static function share($key, $value = null)
  14965. {
  14966. /** @var \Illuminate\View\Factory $instance */
  14967. return $instance->share($key, $value);
  14968. }
  14969. /**
  14970. * Increment the rendering counter.
  14971. *
  14972. * @return void
  14973. * @static
  14974. */
  14975. public static function incrementRender()
  14976. {
  14977. /** @var \Illuminate\View\Factory $instance */
  14978. $instance->incrementRender();
  14979. }
  14980. /**
  14981. * Decrement the rendering counter.
  14982. *
  14983. * @return void
  14984. * @static
  14985. */
  14986. public static function decrementRender()
  14987. {
  14988. /** @var \Illuminate\View\Factory $instance */
  14989. $instance->decrementRender();
  14990. }
  14991. /**
  14992. * Check if there are no active render operations.
  14993. *
  14994. * @return bool
  14995. * @static
  14996. */
  14997. public static function doneRendering()
  14998. {
  14999. /** @var \Illuminate\View\Factory $instance */
  15000. return $instance->doneRendering();
  15001. }
  15002. /**
  15003. * Determine if the given once token has been rendered.
  15004. *
  15005. * @param string $id
  15006. * @return bool
  15007. * @static
  15008. */
  15009. public static function hasRenderedOnce($id)
  15010. {
  15011. /** @var \Illuminate\View\Factory $instance */
  15012. return $instance->hasRenderedOnce($id);
  15013. }
  15014. /**
  15015. * Mark the given once token as having been rendered.
  15016. *
  15017. * @param string $id
  15018. * @return void
  15019. * @static
  15020. */
  15021. public static function markAsRenderedOnce($id)
  15022. {
  15023. /** @var \Illuminate\View\Factory $instance */
  15024. $instance->markAsRenderedOnce($id);
  15025. }
  15026. /**
  15027. * Add a location to the array of view locations.
  15028. *
  15029. * @param string $location
  15030. * @return void
  15031. * @static
  15032. */
  15033. public static function addLocation($location)
  15034. {
  15035. /** @var \Illuminate\View\Factory $instance */
  15036. $instance->addLocation($location);
  15037. }
  15038. /**
  15039. * Add a new namespace to the loader.
  15040. *
  15041. * @param string $namespace
  15042. * @param string|array $hints
  15043. * @return \Illuminate\View\Factory
  15044. * @static
  15045. */
  15046. public static function addNamespace($namespace, $hints)
  15047. {
  15048. /** @var \Illuminate\View\Factory $instance */
  15049. return $instance->addNamespace($namespace, $hints);
  15050. }
  15051. /**
  15052. * Prepend a new namespace to the loader.
  15053. *
  15054. * @param string $namespace
  15055. * @param string|array $hints
  15056. * @return \Illuminate\View\Factory
  15057. * @static
  15058. */
  15059. public static function prependNamespace($namespace, $hints)
  15060. {
  15061. /** @var \Illuminate\View\Factory $instance */
  15062. return $instance->prependNamespace($namespace, $hints);
  15063. }
  15064. /**
  15065. * Replace the namespace hints for the given namespace.
  15066. *
  15067. * @param string $namespace
  15068. * @param string|array $hints
  15069. * @return \Illuminate\View\Factory
  15070. * @static
  15071. */
  15072. public static function replaceNamespace($namespace, $hints)
  15073. {
  15074. /** @var \Illuminate\View\Factory $instance */
  15075. return $instance->replaceNamespace($namespace, $hints);
  15076. }
  15077. /**
  15078. * Register a valid view extension and its engine.
  15079. *
  15080. * @param string $extension
  15081. * @param string $engine
  15082. * @param \Closure|null $resolver
  15083. * @return void
  15084. * @static
  15085. */
  15086. public static function addExtension($extension, $engine, $resolver = null)
  15087. {
  15088. /** @var \Illuminate\View\Factory $instance */
  15089. $instance->addExtension($extension, $engine, $resolver);
  15090. }
  15091. /**
  15092. * Flush all of the factory state like sections and stacks.
  15093. *
  15094. * @return void
  15095. * @static
  15096. */
  15097. public static function flushState()
  15098. {
  15099. /** @var \Illuminate\View\Factory $instance */
  15100. $instance->flushState();
  15101. }
  15102. /**
  15103. * Flush all of the section contents if done rendering.
  15104. *
  15105. * @return void
  15106. * @static
  15107. */
  15108. public static function flushStateIfDoneRendering()
  15109. {
  15110. /** @var \Illuminate\View\Factory $instance */
  15111. $instance->flushStateIfDoneRendering();
  15112. }
  15113. /**
  15114. * Get the extension to engine bindings.
  15115. *
  15116. * @return array
  15117. * @static
  15118. */
  15119. public static function getExtensions()
  15120. {
  15121. /** @var \Illuminate\View\Factory $instance */
  15122. return $instance->getExtensions();
  15123. }
  15124. /**
  15125. * Get the engine resolver instance.
  15126. *
  15127. * @return \Illuminate\View\Engines\EngineResolver
  15128. * @static
  15129. */
  15130. public static function getEngineResolver()
  15131. {
  15132. /** @var \Illuminate\View\Factory $instance */
  15133. return $instance->getEngineResolver();
  15134. }
  15135. /**
  15136. * Get the view finder instance.
  15137. *
  15138. * @return \Illuminate\View\ViewFinderInterface
  15139. * @static
  15140. */
  15141. public static function getFinder()
  15142. {
  15143. /** @var \Illuminate\View\Factory $instance */
  15144. return $instance->getFinder();
  15145. }
  15146. /**
  15147. * Set the view finder instance.
  15148. *
  15149. * @param \Illuminate\View\ViewFinderInterface $finder
  15150. * @return void
  15151. * @static
  15152. */
  15153. public static function setFinder($finder)
  15154. {
  15155. /** @var \Illuminate\View\Factory $instance */
  15156. $instance->setFinder($finder);
  15157. }
  15158. /**
  15159. * Flush the cache of views located by the finder.
  15160. *
  15161. * @return void
  15162. * @static
  15163. */
  15164. public static function flushFinderCache()
  15165. {
  15166. /** @var \Illuminate\View\Factory $instance */
  15167. $instance->flushFinderCache();
  15168. }
  15169. /**
  15170. * Get the event dispatcher instance.
  15171. *
  15172. * @return \Illuminate\Contracts\Events\Dispatcher
  15173. * @static
  15174. */
  15175. public static function getDispatcher()
  15176. {
  15177. /** @var \Illuminate\View\Factory $instance */
  15178. return $instance->getDispatcher();
  15179. }
  15180. /**
  15181. * Set the event dispatcher instance.
  15182. *
  15183. * @param \Illuminate\Contracts\Events\Dispatcher $events
  15184. * @return void
  15185. * @static
  15186. */
  15187. public static function setDispatcher($events)
  15188. {
  15189. /** @var \Illuminate\View\Factory $instance */
  15190. $instance->setDispatcher($events);
  15191. }
  15192. /**
  15193. * Get the IoC container instance.
  15194. *
  15195. * @return \Illuminate\Contracts\Container\Container
  15196. * @static
  15197. */
  15198. public static function getContainer()
  15199. {
  15200. /** @var \Illuminate\View\Factory $instance */
  15201. return $instance->getContainer();
  15202. }
  15203. /**
  15204. * Set the IoC container instance.
  15205. *
  15206. * @param \Illuminate\Contracts\Container\Container $container
  15207. * @return void
  15208. * @static
  15209. */
  15210. public static function setContainer($container)
  15211. {
  15212. /** @var \Illuminate\View\Factory $instance */
  15213. $instance->setContainer($container);
  15214. }
  15215. /**
  15216. * Get an item from the shared data.
  15217. *
  15218. * @param string $key
  15219. * @param mixed $default
  15220. * @return mixed
  15221. * @static
  15222. */
  15223. public static function shared($key, $default = null)
  15224. {
  15225. /** @var \Illuminate\View\Factory $instance */
  15226. return $instance->shared($key, $default);
  15227. }
  15228. /**
  15229. * Get all of the shared data for the environment.
  15230. *
  15231. * @return array
  15232. * @static
  15233. */
  15234. public static function getShared()
  15235. {
  15236. /** @var \Illuminate\View\Factory $instance */
  15237. return $instance->getShared();
  15238. }
  15239. /**
  15240. * Register a custom macro.
  15241. *
  15242. * @param string $name
  15243. * @param object|callable $macro
  15244. * @return void
  15245. * @static
  15246. */
  15247. public static function macro($name, $macro)
  15248. {
  15249. \Illuminate\View\Factory::macro($name, $macro);
  15250. }
  15251. /**
  15252. * Mix another object into the class.
  15253. *
  15254. * @param object $mixin
  15255. * @param bool $replace
  15256. * @return void
  15257. * @throws \ReflectionException
  15258. * @static
  15259. */
  15260. public static function mixin($mixin, $replace = true)
  15261. {
  15262. \Illuminate\View\Factory::mixin($mixin, $replace);
  15263. }
  15264. /**
  15265. * Checks if macro is registered.
  15266. *
  15267. * @param string $name
  15268. * @return bool
  15269. * @static
  15270. */
  15271. public static function hasMacro($name)
  15272. {
  15273. return \Illuminate\View\Factory::hasMacro($name);
  15274. }
  15275. /**
  15276. * Flush the existing macros.
  15277. *
  15278. * @return void
  15279. * @static
  15280. */
  15281. public static function flushMacros()
  15282. {
  15283. \Illuminate\View\Factory::flushMacros();
  15284. }
  15285. /**
  15286. * Start a component rendering process.
  15287. *
  15288. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  15289. * @param array $data
  15290. * @return void
  15291. * @static
  15292. */
  15293. public static function startComponent($view, $data = [])
  15294. {
  15295. /** @var \Illuminate\View\Factory $instance */
  15296. $instance->startComponent($view, $data);
  15297. }
  15298. /**
  15299. * Get the first view that actually exists from the given list, and start a component.
  15300. *
  15301. * @param array $names
  15302. * @param array $data
  15303. * @return void
  15304. * @static
  15305. */
  15306. public static function startComponentFirst($names, $data = [])
  15307. {
  15308. /** @var \Illuminate\View\Factory $instance */
  15309. $instance->startComponentFirst($names, $data);
  15310. }
  15311. /**
  15312. * Render the current component.
  15313. *
  15314. * @return string
  15315. * @static
  15316. */
  15317. public static function renderComponent()
  15318. {
  15319. /** @var \Illuminate\View\Factory $instance */
  15320. return $instance->renderComponent();
  15321. }
  15322. /**
  15323. * Get an item from the component data that exists above the current component.
  15324. *
  15325. * @param string $key
  15326. * @param mixed $default
  15327. * @return mixed|null
  15328. * @static
  15329. */
  15330. public static function getConsumableComponentData($key, $default = null)
  15331. {
  15332. /** @var \Illuminate\View\Factory $instance */
  15333. return $instance->getConsumableComponentData($key, $default);
  15334. }
  15335. /**
  15336. * Start the slot rendering process.
  15337. *
  15338. * @param string $name
  15339. * @param string|null $content
  15340. * @param array $attributes
  15341. * @return void
  15342. * @static
  15343. */
  15344. public static function slot($name, $content = null, $attributes = [])
  15345. {
  15346. /** @var \Illuminate\View\Factory $instance */
  15347. $instance->slot($name, $content, $attributes);
  15348. }
  15349. /**
  15350. * Save the slot content for rendering.
  15351. *
  15352. * @return void
  15353. * @static
  15354. */
  15355. public static function endSlot()
  15356. {
  15357. /** @var \Illuminate\View\Factory $instance */
  15358. $instance->endSlot();
  15359. }
  15360. /**
  15361. * Register a view creator event.
  15362. *
  15363. * @param array|string $views
  15364. * @param \Closure|string $callback
  15365. * @return array
  15366. * @static
  15367. */
  15368. public static function creator($views, $callback)
  15369. {
  15370. /** @var \Illuminate\View\Factory $instance */
  15371. return $instance->creator($views, $callback);
  15372. }
  15373. /**
  15374. * Register multiple view composers via an array.
  15375. *
  15376. * @param array $composers
  15377. * @return array
  15378. * @static
  15379. */
  15380. public static function composers($composers)
  15381. {
  15382. /** @var \Illuminate\View\Factory $instance */
  15383. return $instance->composers($composers);
  15384. }
  15385. /**
  15386. * Register a view composer event.
  15387. *
  15388. * @param array|string $views
  15389. * @param \Closure|string $callback
  15390. * @return array
  15391. * @static
  15392. */
  15393. public static function composer($views, $callback)
  15394. {
  15395. /** @var \Illuminate\View\Factory $instance */
  15396. return $instance->composer($views, $callback);
  15397. }
  15398. /**
  15399. * Call the composer for a given view.
  15400. *
  15401. * @param \Illuminate\Contracts\View\View $view
  15402. * @return void
  15403. * @static
  15404. */
  15405. public static function callComposer($view)
  15406. {
  15407. /** @var \Illuminate\View\Factory $instance */
  15408. $instance->callComposer($view);
  15409. }
  15410. /**
  15411. * Call the creator for a given view.
  15412. *
  15413. * @param \Illuminate\Contracts\View\View $view
  15414. * @return void
  15415. * @static
  15416. */
  15417. public static function callCreator($view)
  15418. {
  15419. /** @var \Illuminate\View\Factory $instance */
  15420. $instance->callCreator($view);
  15421. }
  15422. /**
  15423. * Start injecting content into a section.
  15424. *
  15425. * @param string $section
  15426. * @param string|null $content
  15427. * @return void
  15428. * @static
  15429. */
  15430. public static function startSection($section, $content = null)
  15431. {
  15432. /** @var \Illuminate\View\Factory $instance */
  15433. $instance->startSection($section, $content);
  15434. }
  15435. /**
  15436. * Inject inline content into a section.
  15437. *
  15438. * @param string $section
  15439. * @param string $content
  15440. * @return void
  15441. * @static
  15442. */
  15443. public static function inject($section, $content)
  15444. {
  15445. /** @var \Illuminate\View\Factory $instance */
  15446. $instance->inject($section, $content);
  15447. }
  15448. /**
  15449. * Stop injecting content into a section and return its contents.
  15450. *
  15451. * @return string
  15452. * @static
  15453. */
  15454. public static function yieldSection()
  15455. {
  15456. /** @var \Illuminate\View\Factory $instance */
  15457. return $instance->yieldSection();
  15458. }
  15459. /**
  15460. * Stop injecting content into a section.
  15461. *
  15462. * @param bool $overwrite
  15463. * @return string
  15464. * @throws \InvalidArgumentException
  15465. * @static
  15466. */
  15467. public static function stopSection($overwrite = false)
  15468. {
  15469. /** @var \Illuminate\View\Factory $instance */
  15470. return $instance->stopSection($overwrite);
  15471. }
  15472. /**
  15473. * Stop injecting content into a section and append it.
  15474. *
  15475. * @return string
  15476. * @throws \InvalidArgumentException
  15477. * @static
  15478. */
  15479. public static function appendSection()
  15480. {
  15481. /** @var \Illuminate\View\Factory $instance */
  15482. return $instance->appendSection();
  15483. }
  15484. /**
  15485. * Get the string contents of a section.
  15486. *
  15487. * @param string $section
  15488. * @param string $default
  15489. * @return string
  15490. * @static
  15491. */
  15492. public static function yieldContent($section, $default = '')
  15493. {
  15494. /** @var \Illuminate\View\Factory $instance */
  15495. return $instance->yieldContent($section, $default);
  15496. }
  15497. /**
  15498. * Get the parent placeholder for the current request.
  15499. *
  15500. * @param string $section
  15501. * @return string
  15502. * @static
  15503. */
  15504. public static function parentPlaceholder($section = '')
  15505. {
  15506. return \Illuminate\View\Factory::parentPlaceholder($section);
  15507. }
  15508. /**
  15509. * Check if section exists.
  15510. *
  15511. * @param string $name
  15512. * @return bool
  15513. * @static
  15514. */
  15515. public static function hasSection($name)
  15516. {
  15517. /** @var \Illuminate\View\Factory $instance */
  15518. return $instance->hasSection($name);
  15519. }
  15520. /**
  15521. * Check if section does not exist.
  15522. *
  15523. * @param string $name
  15524. * @return bool
  15525. * @static
  15526. */
  15527. public static function sectionMissing($name)
  15528. {
  15529. /** @var \Illuminate\View\Factory $instance */
  15530. return $instance->sectionMissing($name);
  15531. }
  15532. /**
  15533. * Get the contents of a section.
  15534. *
  15535. * @param string $name
  15536. * @param string|null $default
  15537. * @return mixed
  15538. * @static
  15539. */
  15540. public static function getSection($name, $default = null)
  15541. {
  15542. /** @var \Illuminate\View\Factory $instance */
  15543. return $instance->getSection($name, $default);
  15544. }
  15545. /**
  15546. * Get the entire array of sections.
  15547. *
  15548. * @return array
  15549. * @static
  15550. */
  15551. public static function getSections()
  15552. {
  15553. /** @var \Illuminate\View\Factory $instance */
  15554. return $instance->getSections();
  15555. }
  15556. /**
  15557. * Flush all of the sections.
  15558. *
  15559. * @return void
  15560. * @static
  15561. */
  15562. public static function flushSections()
  15563. {
  15564. /** @var \Illuminate\View\Factory $instance */
  15565. $instance->flushSections();
  15566. }
  15567. /**
  15568. * Add new loop to the stack.
  15569. *
  15570. * @param \Countable|array $data
  15571. * @return void
  15572. * @static
  15573. */
  15574. public static function addLoop($data)
  15575. {
  15576. /** @var \Illuminate\View\Factory $instance */
  15577. $instance->addLoop($data);
  15578. }
  15579. /**
  15580. * Increment the top loop's indices.
  15581. *
  15582. * @return void
  15583. * @static
  15584. */
  15585. public static function incrementLoopIndices()
  15586. {
  15587. /** @var \Illuminate\View\Factory $instance */
  15588. $instance->incrementLoopIndices();
  15589. }
  15590. /**
  15591. * Pop a loop from the top of the loop stack.
  15592. *
  15593. * @return void
  15594. * @static
  15595. */
  15596. public static function popLoop()
  15597. {
  15598. /** @var \Illuminate\View\Factory $instance */
  15599. $instance->popLoop();
  15600. }
  15601. /**
  15602. * Get an instance of the last loop in the stack.
  15603. *
  15604. * @return \stdClass|null
  15605. * @static
  15606. */
  15607. public static function getLastLoop()
  15608. {
  15609. /** @var \Illuminate\View\Factory $instance */
  15610. return $instance->getLastLoop();
  15611. }
  15612. /**
  15613. * Get the entire loop stack.
  15614. *
  15615. * @return array
  15616. * @static
  15617. */
  15618. public static function getLoopStack()
  15619. {
  15620. /** @var \Illuminate\View\Factory $instance */
  15621. return $instance->getLoopStack();
  15622. }
  15623. /**
  15624. * Start injecting content into a push section.
  15625. *
  15626. * @param string $section
  15627. * @param string $content
  15628. * @return void
  15629. * @static
  15630. */
  15631. public static function startPush($section, $content = '')
  15632. {
  15633. /** @var \Illuminate\View\Factory $instance */
  15634. $instance->startPush($section, $content);
  15635. }
  15636. /**
  15637. * Stop injecting content into a push section.
  15638. *
  15639. * @return string
  15640. * @throws \InvalidArgumentException
  15641. * @static
  15642. */
  15643. public static function stopPush()
  15644. {
  15645. /** @var \Illuminate\View\Factory $instance */
  15646. return $instance->stopPush();
  15647. }
  15648. /**
  15649. * Start prepending content into a push section.
  15650. *
  15651. * @param string $section
  15652. * @param string $content
  15653. * @return void
  15654. * @static
  15655. */
  15656. public static function startPrepend($section, $content = '')
  15657. {
  15658. /** @var \Illuminate\View\Factory $instance */
  15659. $instance->startPrepend($section, $content);
  15660. }
  15661. /**
  15662. * Stop prepending content into a push section.
  15663. *
  15664. * @return string
  15665. * @throws \InvalidArgumentException
  15666. * @static
  15667. */
  15668. public static function stopPrepend()
  15669. {
  15670. /** @var \Illuminate\View\Factory $instance */
  15671. return $instance->stopPrepend();
  15672. }
  15673. /**
  15674. * Get the string contents of a push section.
  15675. *
  15676. * @param string $section
  15677. * @param string $default
  15678. * @return string
  15679. * @static
  15680. */
  15681. public static function yieldPushContent($section, $default = '')
  15682. {
  15683. /** @var \Illuminate\View\Factory $instance */
  15684. return $instance->yieldPushContent($section, $default);
  15685. }
  15686. /**
  15687. * Flush all of the stacks.
  15688. *
  15689. * @return void
  15690. * @static
  15691. */
  15692. public static function flushStacks()
  15693. {
  15694. /** @var \Illuminate\View\Factory $instance */
  15695. $instance->flushStacks();
  15696. }
  15697. /**
  15698. * Start a translation block.
  15699. *
  15700. * @param array $replacements
  15701. * @return void
  15702. * @static
  15703. */
  15704. public static function startTranslation($replacements = [])
  15705. {
  15706. /** @var \Illuminate\View\Factory $instance */
  15707. $instance->startTranslation($replacements);
  15708. }
  15709. /**
  15710. * Render the current translation.
  15711. *
  15712. * @return string
  15713. * @static
  15714. */
  15715. public static function renderTranslation()
  15716. {
  15717. /** @var \Illuminate\View\Factory $instance */
  15718. return $instance->renderTranslation();
  15719. }
  15720. }
  15721. }
  15722. namespace Illuminate\Support {
  15723. /**
  15724. *
  15725. *
  15726. */
  15727. class Arr {
  15728. }
  15729. /**
  15730. *
  15731. *
  15732. */
  15733. class Str {
  15734. }
  15735. }
  15736. namespace Facade\Ignition\Facades {
  15737. /**
  15738. * Class Flare.
  15739. *
  15740. * @see \Facade\FlareClient\Flare
  15741. */
  15742. class Flare {
  15743. /**
  15744. *
  15745. *
  15746. * @static
  15747. */
  15748. public static function register($apiKey, $apiSecret = null, $contextDetector = null, $container = null)
  15749. {
  15750. return \Facade\FlareClient\Flare::register($apiKey, $apiSecret, $contextDetector, $container);
  15751. }
  15752. /**
  15753. *
  15754. *
  15755. * @static
  15756. */
  15757. public static function determineVersionUsing($determineVersionCallable)
  15758. {
  15759. /** @var \Facade\FlareClient\Flare $instance */
  15760. return $instance->determineVersionUsing($determineVersionCallable);
  15761. }
  15762. /**
  15763. *
  15764. *
  15765. * @static
  15766. */
  15767. public static function reportErrorLevels($reportErrorLevels)
  15768. {
  15769. /** @var \Facade\FlareClient\Flare $instance */
  15770. return $instance->reportErrorLevels($reportErrorLevels);
  15771. }
  15772. /**
  15773. *
  15774. *
  15775. * @static
  15776. */
  15777. public static function filterExceptionsUsing($filterExceptionsCallable)
  15778. {
  15779. /** @var \Facade\FlareClient\Flare $instance */
  15780. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  15781. }
  15782. /**
  15783. *
  15784. *
  15785. * @static
  15786. */
  15787. public static function filterReportsUsing($filterReportsCallable)
  15788. {
  15789. /** @var \Facade\FlareClient\Flare $instance */
  15790. return $instance->filterReportsUsing($filterReportsCallable);
  15791. }
  15792. /**
  15793. *
  15794. *
  15795. * @return null|string
  15796. * @static
  15797. */
  15798. public static function version()
  15799. {
  15800. /** @var \Facade\FlareClient\Flare $instance */
  15801. return $instance->version();
  15802. }
  15803. /**
  15804. *
  15805. *
  15806. * @static
  15807. */
  15808. public static function getMiddleware()
  15809. {
  15810. /** @var \Facade\FlareClient\Flare $instance */
  15811. return $instance->getMiddleware();
  15812. }
  15813. /**
  15814. *
  15815. *
  15816. * @static
  15817. */
  15818. public static function registerFlareHandlers()
  15819. {
  15820. /** @var \Facade\FlareClient\Flare $instance */
  15821. return $instance->registerFlareHandlers();
  15822. }
  15823. /**
  15824. *
  15825. *
  15826. * @static
  15827. */
  15828. public static function registerExceptionHandler()
  15829. {
  15830. /** @var \Facade\FlareClient\Flare $instance */
  15831. return $instance->registerExceptionHandler();
  15832. }
  15833. /**
  15834. *
  15835. *
  15836. * @static
  15837. */
  15838. public static function registerErrorHandler()
  15839. {
  15840. /** @var \Facade\FlareClient\Flare $instance */
  15841. return $instance->registerErrorHandler();
  15842. }
  15843. /**
  15844. *
  15845. *
  15846. * @static
  15847. */
  15848. public static function registerMiddleware($callable)
  15849. {
  15850. /** @var \Facade\FlareClient\Flare $instance */
  15851. return $instance->registerMiddleware($callable);
  15852. }
  15853. /**
  15854. *
  15855. *
  15856. * @static
  15857. */
  15858. public static function getMiddlewares()
  15859. {
  15860. /** @var \Facade\FlareClient\Flare $instance */
  15861. return $instance->getMiddlewares();
  15862. }
  15863. /**
  15864. *
  15865. *
  15866. * @static
  15867. */
  15868. public static function glow($name, $messageLevel = 'info', $metaData = [])
  15869. {
  15870. /** @var \Facade\FlareClient\Flare $instance */
  15871. return $instance->glow($name, $messageLevel, $metaData);
  15872. }
  15873. /**
  15874. *
  15875. *
  15876. * @static
  15877. */
  15878. public static function handleException($throwable)
  15879. {
  15880. /** @var \Facade\FlareClient\Flare $instance */
  15881. return $instance->handleException($throwable);
  15882. }
  15883. /**
  15884. *
  15885. *
  15886. * @static
  15887. */
  15888. public static function handleError($code, $message, $file = '', $line = 0)
  15889. {
  15890. /** @var \Facade\FlareClient\Flare $instance */
  15891. return $instance->handleError($code, $message, $file, $line);
  15892. }
  15893. /**
  15894. *
  15895. *
  15896. * @static
  15897. */
  15898. public static function applicationPath($applicationPath)
  15899. {
  15900. /** @var \Facade\FlareClient\Flare $instance */
  15901. return $instance->applicationPath($applicationPath);
  15902. }
  15903. /**
  15904. *
  15905. *
  15906. * @static
  15907. */
  15908. public static function report($throwable, $callback = null)
  15909. {
  15910. /** @var \Facade\FlareClient\Flare $instance */
  15911. return $instance->report($throwable, $callback);
  15912. }
  15913. /**
  15914. *
  15915. *
  15916. * @static
  15917. */
  15918. public static function reportMessage($message, $logLevel, $callback = null)
  15919. {
  15920. /** @var \Facade\FlareClient\Flare $instance */
  15921. return $instance->reportMessage($message, $logLevel, $callback);
  15922. }
  15923. /**
  15924. *
  15925. *
  15926. * @static
  15927. */
  15928. public static function sendTestReport($throwable)
  15929. {
  15930. /** @var \Facade\FlareClient\Flare $instance */
  15931. return $instance->sendTestReport($throwable);
  15932. }
  15933. /**
  15934. *
  15935. *
  15936. * @static
  15937. */
  15938. public static function reset()
  15939. {
  15940. /** @var \Facade\FlareClient\Flare $instance */
  15941. return $instance->reset();
  15942. }
  15943. /**
  15944. *
  15945. *
  15946. * @static
  15947. */
  15948. public static function anonymizeIp()
  15949. {
  15950. /** @var \Facade\FlareClient\Flare $instance */
  15951. return $instance->anonymizeIp();
  15952. }
  15953. /**
  15954. *
  15955. *
  15956. * @static
  15957. */
  15958. public static function censorRequestBodyFields($fieldNames)
  15959. {
  15960. /** @var \Facade\FlareClient\Flare $instance */
  15961. return $instance->censorRequestBodyFields($fieldNames);
  15962. }
  15963. /**
  15964. *
  15965. *
  15966. * @static
  15967. */
  15968. public static function createReport($throwable)
  15969. {
  15970. /** @var \Facade\FlareClient\Flare $instance */
  15971. return $instance->createReport($throwable);
  15972. }
  15973. /**
  15974. *
  15975. *
  15976. * @static
  15977. */
  15978. public static function createReportFromMessage($message, $logLevel)
  15979. {
  15980. /** @var \Facade\FlareClient\Flare $instance */
  15981. return $instance->createReportFromMessage($message, $logLevel);
  15982. }
  15983. /**
  15984. *
  15985. *
  15986. * @static
  15987. */
  15988. public static function stage($stage)
  15989. {
  15990. /** @var \Facade\FlareClient\Flare $instance */
  15991. return $instance->stage($stage);
  15992. }
  15993. /**
  15994. *
  15995. *
  15996. * @static
  15997. */
  15998. public static function messageLevel($messageLevel)
  15999. {
  16000. /** @var \Facade\FlareClient\Flare $instance */
  16001. return $instance->messageLevel($messageLevel);
  16002. }
  16003. /**
  16004. *
  16005. *
  16006. * @static
  16007. */
  16008. public static function getGroup($groupName = 'context', $default = [])
  16009. {
  16010. /** @var \Facade\FlareClient\Flare $instance */
  16011. return $instance->getGroup($groupName, $default);
  16012. }
  16013. /**
  16014. *
  16015. *
  16016. * @static
  16017. */
  16018. public static function context($key, $value)
  16019. {
  16020. /** @var \Facade\FlareClient\Flare $instance */
  16021. return $instance->context($key, $value);
  16022. }
  16023. /**
  16024. *
  16025. *
  16026. * @static
  16027. */
  16028. public static function group($groupName, $properties)
  16029. {
  16030. /** @var \Facade\FlareClient\Flare $instance */
  16031. return $instance->group($groupName, $properties);
  16032. }
  16033. }
  16034. }
  16035. namespace Intervention\Image\Facades {
  16036. /**
  16037. *
  16038. *
  16039. */
  16040. class Image {
  16041. /**
  16042. * Overrides configuration settings
  16043. *
  16044. * @param array $config
  16045. * @return self
  16046. * @static
  16047. */
  16048. public static function configure($config = [])
  16049. {
  16050. /** @var \Intervention\Image\ImageManager $instance */
  16051. return $instance->configure($config);
  16052. }
  16053. /**
  16054. * Initiates an Image instance from different input types
  16055. *
  16056. * @param mixed $data
  16057. * @return \Intervention\Image\Image
  16058. * @static
  16059. */
  16060. public static function make($data)
  16061. {
  16062. /** @var \Intervention\Image\ImageManager $instance */
  16063. return $instance->make($data);
  16064. }
  16065. /**
  16066. * Creates an empty image canvas
  16067. *
  16068. * @param int $width
  16069. * @param int $height
  16070. * @param mixed $background
  16071. * @return \Intervention\Image\Image
  16072. * @static
  16073. */
  16074. public static function canvas($width, $height, $background = null)
  16075. {
  16076. /** @var \Intervention\Image\ImageManager $instance */
  16077. return $instance->canvas($width, $height, $background);
  16078. }
  16079. /**
  16080. * Create new cached image and run callback
  16081. * (requires additional package intervention/imagecache)
  16082. *
  16083. * @param \Closure $callback
  16084. * @param int $lifetime
  16085. * @param boolean $returnObj
  16086. * @return \Image
  16087. * @static
  16088. */
  16089. public static function cache($callback, $lifetime = null, $returnObj = false)
  16090. {
  16091. /** @var \Intervention\Image\ImageManager $instance */
  16092. return $instance->cache($callback, $lifetime, $returnObj);
  16093. }
  16094. }
  16095. }
  16096. namespace Illuminate\Http {
  16097. /**
  16098. *
  16099. *
  16100. */
  16101. class Request {
  16102. /**
  16103. *
  16104. *
  16105. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  16106. * @param array $rules
  16107. * @param mixed $params
  16108. * @static
  16109. */
  16110. public static function validate($rules, ...$params)
  16111. {
  16112. return \Illuminate\Http\Request::validate($rules, ...$params);
  16113. }
  16114. /**
  16115. *
  16116. *
  16117. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  16118. * @param string $errorBag
  16119. * @param array $rules
  16120. * @param mixed $params
  16121. * @static
  16122. */
  16123. public static function validateWithBag($errorBag, $rules, ...$params)
  16124. {
  16125. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  16126. }
  16127. /**
  16128. *
  16129. *
  16130. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  16131. * @param mixed $absolute
  16132. * @static
  16133. */
  16134. public static function hasValidSignature($absolute = true)
  16135. {
  16136. return \Illuminate\Http\Request::hasValidSignature($absolute);
  16137. }
  16138. /**
  16139. *
  16140. *
  16141. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  16142. * @static
  16143. */
  16144. public static function hasValidRelativeSignature()
  16145. {
  16146. return \Illuminate\Http\Request::hasValidRelativeSignature();
  16147. }
  16148. }
  16149. }
  16150. namespace {
  16151. class App extends \Illuminate\Support\Facades\App {}
  16152. class Arr extends \Illuminate\Support\Arr {}
  16153. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  16154. class Auth extends \Illuminate\Support\Facades\Auth {}
  16155. class Blade extends \Illuminate\Support\Facades\Blade {}
  16156. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  16157. class Bus extends \Illuminate\Support\Facades\Bus {}
  16158. class Cache extends \Illuminate\Support\Facades\Cache {}
  16159. class Config extends \Illuminate\Support\Facades\Config {}
  16160. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  16161. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  16162. class DB extends \Illuminate\Support\Facades\DB {}
  16163. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  16164. /**
  16165. * Create and return an un-saved model instance.
  16166. *
  16167. * @param array $attributes
  16168. * @return \Illuminate\Database\Eloquent\Model|static
  16169. * @static
  16170. */
  16171. public static function make($attributes = [])
  16172. {
  16173. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16174. return $instance->make($attributes);
  16175. }
  16176. /**
  16177. * Register a new global scope.
  16178. *
  16179. * @param string $identifier
  16180. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  16181. * @return \Illuminate\Database\Eloquent\Builder|static
  16182. * @static
  16183. */
  16184. public static function withGlobalScope($identifier, $scope)
  16185. {
  16186. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16187. return $instance->withGlobalScope($identifier, $scope);
  16188. }
  16189. /**
  16190. * Remove a registered global scope.
  16191. *
  16192. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  16193. * @return \Illuminate\Database\Eloquent\Builder|static
  16194. * @static
  16195. */
  16196. public static function withoutGlobalScope($scope)
  16197. {
  16198. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16199. return $instance->withoutGlobalScope($scope);
  16200. }
  16201. /**
  16202. * Remove all or passed registered global scopes.
  16203. *
  16204. * @param array|null $scopes
  16205. * @return \Illuminate\Database\Eloquent\Builder|static
  16206. * @static
  16207. */
  16208. public static function withoutGlobalScopes($scopes = null)
  16209. {
  16210. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16211. return $instance->withoutGlobalScopes($scopes);
  16212. }
  16213. /**
  16214. * Get an array of global scopes that were removed from the query.
  16215. *
  16216. * @return array
  16217. * @static
  16218. */
  16219. public static function removedScopes()
  16220. {
  16221. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16222. return $instance->removedScopes();
  16223. }
  16224. /**
  16225. * Add a where clause on the primary key to the query.
  16226. *
  16227. * @param mixed $id
  16228. * @return \Illuminate\Database\Eloquent\Builder|static
  16229. * @static
  16230. */
  16231. public static function whereKey($id)
  16232. {
  16233. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16234. return $instance->whereKey($id);
  16235. }
  16236. /**
  16237. * Add a where clause on the primary key to the query.
  16238. *
  16239. * @param mixed $id
  16240. * @return \Illuminate\Database\Eloquent\Builder|static
  16241. * @static
  16242. */
  16243. public static function whereKeyNot($id)
  16244. {
  16245. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16246. return $instance->whereKeyNot($id);
  16247. }
  16248. /**
  16249. * Add a basic where clause to the query.
  16250. *
  16251. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16252. * @param mixed $operator
  16253. * @param mixed $value
  16254. * @param string $boolean
  16255. * @return \Illuminate\Database\Eloquent\Builder|static
  16256. * @static
  16257. */
  16258. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  16259. {
  16260. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16261. return $instance->where($column, $operator, $value, $boolean);
  16262. }
  16263. /**
  16264. * Add a basic where clause to the query, and return the first result.
  16265. *
  16266. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16267. * @param mixed $operator
  16268. * @param mixed $value
  16269. * @param string $boolean
  16270. * @return \Illuminate\Database\Eloquent\Model|static|null
  16271. * @static
  16272. */
  16273. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  16274. {
  16275. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16276. return $instance->firstWhere($column, $operator, $value, $boolean);
  16277. }
  16278. /**
  16279. * Add an "or where" clause to the query.
  16280. *
  16281. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  16282. * @param mixed $operator
  16283. * @param mixed $value
  16284. * @return \Illuminate\Database\Eloquent\Builder|static
  16285. * @static
  16286. */
  16287. public static function orWhere($column, $operator = null, $value = null)
  16288. {
  16289. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16290. return $instance->orWhere($column, $operator, $value);
  16291. }
  16292. /**
  16293. * Add an "order by" clause for a timestamp to the query.
  16294. *
  16295. * @param string|\Illuminate\Database\Query\Expression $column
  16296. * @return \Illuminate\Database\Eloquent\Builder|static
  16297. * @static
  16298. */
  16299. public static function latest($column = null)
  16300. {
  16301. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16302. return $instance->latest($column);
  16303. }
  16304. /**
  16305. * Add an "order by" clause for a timestamp to the query.
  16306. *
  16307. * @param string|\Illuminate\Database\Query\Expression $column
  16308. * @return \Illuminate\Database\Eloquent\Builder|static
  16309. * @static
  16310. */
  16311. public static function oldest($column = null)
  16312. {
  16313. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16314. return $instance->oldest($column);
  16315. }
  16316. /**
  16317. * Create a collection of models from plain arrays.
  16318. *
  16319. * @param array $items
  16320. * @return \Illuminate\Database\Eloquent\Collection
  16321. * @static
  16322. */
  16323. public static function hydrate($items)
  16324. {
  16325. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16326. return $instance->hydrate($items);
  16327. }
  16328. /**
  16329. * Create a collection of models from a raw query.
  16330. *
  16331. * @param string $query
  16332. * @param array $bindings
  16333. * @return \Illuminate\Database\Eloquent\Collection
  16334. * @static
  16335. */
  16336. public static function fromQuery($query, $bindings = [])
  16337. {
  16338. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16339. return $instance->fromQuery($query, $bindings);
  16340. }
  16341. /**
  16342. * Find a model by its primary key.
  16343. *
  16344. * @param mixed $id
  16345. * @param array $columns
  16346. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  16347. * @static
  16348. */
  16349. public static function find($id, $columns = [])
  16350. {
  16351. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16352. return $instance->find($id, $columns);
  16353. }
  16354. /**
  16355. * Find multiple models by their primary keys.
  16356. *
  16357. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  16358. * @param array $columns
  16359. * @return \Illuminate\Database\Eloquent\Collection
  16360. * @static
  16361. */
  16362. public static function findMany($ids, $columns = [])
  16363. {
  16364. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16365. return $instance->findMany($ids, $columns);
  16366. }
  16367. /**
  16368. * Find a model by its primary key or throw an exception.
  16369. *
  16370. * @param mixed $id
  16371. * @param array $columns
  16372. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  16373. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16374. * @static
  16375. */
  16376. public static function findOrFail($id, $columns = [])
  16377. {
  16378. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16379. return $instance->findOrFail($id, $columns);
  16380. }
  16381. /**
  16382. * Find a model by its primary key or return fresh model instance.
  16383. *
  16384. * @param mixed $id
  16385. * @param array $columns
  16386. * @return \Illuminate\Database\Eloquent\Model|static
  16387. * @static
  16388. */
  16389. public static function findOrNew($id, $columns = [])
  16390. {
  16391. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16392. return $instance->findOrNew($id, $columns);
  16393. }
  16394. /**
  16395. * Get the first record matching the attributes or instantiate it.
  16396. *
  16397. * @param array $attributes
  16398. * @param array $values
  16399. * @return \Illuminate\Database\Eloquent\Model|static
  16400. * @static
  16401. */
  16402. public static function firstOrNew($attributes = [], $values = [])
  16403. {
  16404. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16405. return $instance->firstOrNew($attributes, $values);
  16406. }
  16407. /**
  16408. * Get the first record matching the attributes or create it.
  16409. *
  16410. * @param array $attributes
  16411. * @param array $values
  16412. * @return \Illuminate\Database\Eloquent\Model|static
  16413. * @static
  16414. */
  16415. public static function firstOrCreate($attributes = [], $values = [])
  16416. {
  16417. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16418. return $instance->firstOrCreate($attributes, $values);
  16419. }
  16420. /**
  16421. * Create or update a record matching the attributes, and fill it with values.
  16422. *
  16423. * @param array $attributes
  16424. * @param array $values
  16425. * @return \Illuminate\Database\Eloquent\Model|static
  16426. * @static
  16427. */
  16428. public static function updateOrCreate($attributes, $values = [])
  16429. {
  16430. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16431. return $instance->updateOrCreate($attributes, $values);
  16432. }
  16433. /**
  16434. * Execute the query and get the first result or throw an exception.
  16435. *
  16436. * @param array $columns
  16437. * @return \Illuminate\Database\Eloquent\Model|static
  16438. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16439. * @static
  16440. */
  16441. public static function firstOrFail($columns = [])
  16442. {
  16443. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16444. return $instance->firstOrFail($columns);
  16445. }
  16446. /**
  16447. * Execute the query and get the first result or call a callback.
  16448. *
  16449. * @param \Closure|array $columns
  16450. * @param \Closure|null $callback
  16451. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  16452. * @static
  16453. */
  16454. public static function firstOr($columns = [], $callback = null)
  16455. {
  16456. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16457. return $instance->firstOr($columns, $callback);
  16458. }
  16459. /**
  16460. * Execute the query and get the first result if it's the sole matching record.
  16461. *
  16462. * @param array|string $columns
  16463. * @return \Illuminate\Database\Eloquent\Model
  16464. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16465. * @throws \Illuminate\Database\MultipleRecordsFoundException
  16466. * @static
  16467. */
  16468. public static function sole($columns = [])
  16469. {
  16470. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16471. return $instance->sole($columns);
  16472. }
  16473. /**
  16474. * Get a single column's value from the first result of a query.
  16475. *
  16476. * @param string|\Illuminate\Database\Query\Expression $column
  16477. * @return mixed
  16478. * @static
  16479. */
  16480. public static function value($column)
  16481. {
  16482. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16483. return $instance->value($column);
  16484. }
  16485. /**
  16486. * Get a single column's value from the first result of the query or throw an exception.
  16487. *
  16488. * @param string|\Illuminate\Database\Query\Expression $column
  16489. * @return mixed
  16490. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16491. * @static
  16492. */
  16493. public static function valueOrFail($column)
  16494. {
  16495. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16496. return $instance->valueOrFail($column);
  16497. }
  16498. /**
  16499. * Execute the query as a "select" statement.
  16500. *
  16501. * @param array|string $columns
  16502. * @return \Illuminate\Database\Eloquent\Collection|static[]
  16503. * @static
  16504. */
  16505. public static function get($columns = [])
  16506. {
  16507. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16508. return $instance->get($columns);
  16509. }
  16510. /**
  16511. * Get the hydrated models without eager loading.
  16512. *
  16513. * @param array|string $columns
  16514. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  16515. * @static
  16516. */
  16517. public static function getModels($columns = [])
  16518. {
  16519. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16520. return $instance->getModels($columns);
  16521. }
  16522. /**
  16523. * Eager load the relationships for the models.
  16524. *
  16525. * @param array $models
  16526. * @return array
  16527. * @static
  16528. */
  16529. public static function eagerLoadRelations($models)
  16530. {
  16531. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16532. return $instance->eagerLoadRelations($models);
  16533. }
  16534. /**
  16535. * Get a lazy collection for the given query.
  16536. *
  16537. * @return \Illuminate\Support\LazyCollection
  16538. * @static
  16539. */
  16540. public static function cursor()
  16541. {
  16542. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16543. return $instance->cursor();
  16544. }
  16545. /**
  16546. * Get an array with the values of a given column.
  16547. *
  16548. * @param string|\Illuminate\Database\Query\Expression $column
  16549. * @param string|null $key
  16550. * @return \Illuminate\Support\Collection
  16551. * @static
  16552. */
  16553. public static function pluck($column, $key = null)
  16554. {
  16555. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16556. return $instance->pluck($column, $key);
  16557. }
  16558. /**
  16559. * Paginate the given query.
  16560. *
  16561. * @param int|null $perPage
  16562. * @param array $columns
  16563. * @param string $pageName
  16564. * @param int|null $page
  16565. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  16566. * @throws \InvalidArgumentException
  16567. * @static
  16568. */
  16569. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  16570. {
  16571. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16572. return $instance->paginate($perPage, $columns, $pageName, $page);
  16573. }
  16574. /**
  16575. * Paginate the given query into a simple paginator.
  16576. *
  16577. * @param int|null $perPage
  16578. * @param array $columns
  16579. * @param string $pageName
  16580. * @param int|null $page
  16581. * @return \Illuminate\Contracts\Pagination\Paginator
  16582. * @static
  16583. */
  16584. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  16585. {
  16586. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16587. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  16588. }
  16589. /**
  16590. * Paginate the given query into a cursor paginator.
  16591. *
  16592. * @param int|null $perPage
  16593. * @param array $columns
  16594. * @param string $cursorName
  16595. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  16596. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  16597. * @static
  16598. */
  16599. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  16600. {
  16601. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16602. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  16603. }
  16604. /**
  16605. * Save a new model and return the instance.
  16606. *
  16607. * @param array $attributes
  16608. * @return \Illuminate\Database\Eloquent\Model|$this
  16609. * @static
  16610. */
  16611. public static function create($attributes = [])
  16612. {
  16613. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16614. return $instance->create($attributes);
  16615. }
  16616. /**
  16617. * Save a new model and return the instance. Allow mass-assignment.
  16618. *
  16619. * @param array $attributes
  16620. * @return \Illuminate\Database\Eloquent\Model|$this
  16621. * @static
  16622. */
  16623. public static function forceCreate($attributes)
  16624. {
  16625. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16626. return $instance->forceCreate($attributes);
  16627. }
  16628. /**
  16629. * Insert new records or update the existing ones.
  16630. *
  16631. * @param array $values
  16632. * @param array|string $uniqueBy
  16633. * @param array|null $update
  16634. * @return int
  16635. * @static
  16636. */
  16637. public static function upsert($values, $uniqueBy, $update = null)
  16638. {
  16639. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16640. return $instance->upsert($values, $uniqueBy, $update);
  16641. }
  16642. /**
  16643. * Register a replacement for the default delete function.
  16644. *
  16645. * @param \Closure $callback
  16646. * @return void
  16647. * @static
  16648. */
  16649. public static function onDelete($callback)
  16650. {
  16651. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16652. $instance->onDelete($callback);
  16653. }
  16654. /**
  16655. * Call the given local model scopes.
  16656. *
  16657. * @param array|string $scopes
  16658. * @return static|mixed
  16659. * @static
  16660. */
  16661. public static function scopes($scopes)
  16662. {
  16663. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16664. return $instance->scopes($scopes);
  16665. }
  16666. /**
  16667. * Apply the scopes to the Eloquent builder instance and return it.
  16668. *
  16669. * @return static
  16670. * @static
  16671. */
  16672. public static function applyScopes()
  16673. {
  16674. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16675. return $instance->applyScopes();
  16676. }
  16677. /**
  16678. * Prevent the specified relations from being eager loaded.
  16679. *
  16680. * @param mixed $relations
  16681. * @return \Illuminate\Database\Eloquent\Builder|static
  16682. * @static
  16683. */
  16684. public static function without($relations)
  16685. {
  16686. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16687. return $instance->without($relations);
  16688. }
  16689. /**
  16690. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  16691. *
  16692. * @param mixed $relations
  16693. * @return \Illuminate\Database\Eloquent\Builder|static
  16694. * @static
  16695. */
  16696. public static function withOnly($relations)
  16697. {
  16698. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16699. return $instance->withOnly($relations);
  16700. }
  16701. /**
  16702. * Create a new instance of the model being queried.
  16703. *
  16704. * @param array $attributes
  16705. * @return \Illuminate\Database\Eloquent\Model|static
  16706. * @static
  16707. */
  16708. public static function newModelInstance($attributes = [])
  16709. {
  16710. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16711. return $instance->newModelInstance($attributes);
  16712. }
  16713. /**
  16714. * Apply query-time casts to the model instance.
  16715. *
  16716. * @param array $casts
  16717. * @return \Illuminate\Database\Eloquent\Builder|static
  16718. * @static
  16719. */
  16720. public static function withCasts($casts)
  16721. {
  16722. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16723. return $instance->withCasts($casts);
  16724. }
  16725. /**
  16726. * Get the underlying query builder instance.
  16727. *
  16728. * @return \Illuminate\Database\Query\Builder
  16729. * @static
  16730. */
  16731. public static function getQuery()
  16732. {
  16733. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16734. return $instance->getQuery();
  16735. }
  16736. /**
  16737. * Set the underlying query builder instance.
  16738. *
  16739. * @param \Illuminate\Database\Query\Builder $query
  16740. * @return \Illuminate\Database\Eloquent\Builder|static
  16741. * @static
  16742. */
  16743. public static function setQuery($query)
  16744. {
  16745. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16746. return $instance->setQuery($query);
  16747. }
  16748. /**
  16749. * Get a base query builder instance.
  16750. *
  16751. * @return \Illuminate\Database\Query\Builder
  16752. * @static
  16753. */
  16754. public static function toBase()
  16755. {
  16756. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16757. return $instance->toBase();
  16758. }
  16759. /**
  16760. * Get the relationships being eagerly loaded.
  16761. *
  16762. * @return array
  16763. * @static
  16764. */
  16765. public static function getEagerLoads()
  16766. {
  16767. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16768. return $instance->getEagerLoads();
  16769. }
  16770. /**
  16771. * Set the relationships being eagerly loaded.
  16772. *
  16773. * @param array $eagerLoad
  16774. * @return \Illuminate\Database\Eloquent\Builder|static
  16775. * @static
  16776. */
  16777. public static function setEagerLoads($eagerLoad)
  16778. {
  16779. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16780. return $instance->setEagerLoads($eagerLoad);
  16781. }
  16782. /**
  16783. * Get the model instance being queried.
  16784. *
  16785. * @return \Illuminate\Database\Eloquent\Model|static
  16786. * @static
  16787. */
  16788. public static function getModel()
  16789. {
  16790. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16791. return $instance->getModel();
  16792. }
  16793. /**
  16794. * Set a model instance for the model being queried.
  16795. *
  16796. * @param \Illuminate\Database\Eloquent\Model $model
  16797. * @return \Illuminate\Database\Eloquent\Builder|static
  16798. * @static
  16799. */
  16800. public static function setModel($model)
  16801. {
  16802. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16803. return $instance->setModel($model);
  16804. }
  16805. /**
  16806. * Get the given macro by name.
  16807. *
  16808. * @param string $name
  16809. * @return \Closure
  16810. * @static
  16811. */
  16812. public static function getMacro($name)
  16813. {
  16814. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16815. return $instance->getMacro($name);
  16816. }
  16817. /**
  16818. * Checks if a macro is registered.
  16819. *
  16820. * @param string $name
  16821. * @return bool
  16822. * @static
  16823. */
  16824. public static function hasMacro($name)
  16825. {
  16826. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16827. return $instance->hasMacro($name);
  16828. }
  16829. /**
  16830. * Get the given global macro by name.
  16831. *
  16832. * @param string $name
  16833. * @return \Closure
  16834. * @static
  16835. */
  16836. public static function getGlobalMacro($name)
  16837. {
  16838. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  16839. }
  16840. /**
  16841. * Checks if a global macro is registered.
  16842. *
  16843. * @param string $name
  16844. * @return bool
  16845. * @static
  16846. */
  16847. public static function hasGlobalMacro($name)
  16848. {
  16849. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  16850. }
  16851. /**
  16852. * Clone the Eloquent query builder.
  16853. *
  16854. * @return static
  16855. * @static
  16856. */
  16857. public static function clone()
  16858. {
  16859. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16860. return $instance->clone();
  16861. }
  16862. /**
  16863. * Add a relationship count / exists condition to the query.
  16864. *
  16865. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  16866. * @param string $operator
  16867. * @param int $count
  16868. * @param string $boolean
  16869. * @param \Closure|null $callback
  16870. * @return \Illuminate\Database\Eloquent\Builder|static
  16871. * @throws \RuntimeException
  16872. * @static
  16873. */
  16874. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  16875. {
  16876. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16877. return $instance->has($relation, $operator, $count, $boolean, $callback);
  16878. }
  16879. /**
  16880. * Add a relationship count / exists condition to the query with an "or".
  16881. *
  16882. * @param string $relation
  16883. * @param string $operator
  16884. * @param int $count
  16885. * @return \Illuminate\Database\Eloquent\Builder|static
  16886. * @static
  16887. */
  16888. public static function orHas($relation, $operator = '>=', $count = 1)
  16889. {
  16890. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16891. return $instance->orHas($relation, $operator, $count);
  16892. }
  16893. /**
  16894. * Add a relationship count / exists condition to the query.
  16895. *
  16896. * @param string $relation
  16897. * @param string $boolean
  16898. * @param \Closure|null $callback
  16899. * @return \Illuminate\Database\Eloquent\Builder|static
  16900. * @static
  16901. */
  16902. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  16903. {
  16904. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16905. return $instance->doesntHave($relation, $boolean, $callback);
  16906. }
  16907. /**
  16908. * Add a relationship count / exists condition to the query with an "or".
  16909. *
  16910. * @param string $relation
  16911. * @return \Illuminate\Database\Eloquent\Builder|static
  16912. * @static
  16913. */
  16914. public static function orDoesntHave($relation)
  16915. {
  16916. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16917. return $instance->orDoesntHave($relation);
  16918. }
  16919. /**
  16920. * Add a relationship count / exists condition to the query with where clauses.
  16921. *
  16922. * @param string $relation
  16923. * @param \Closure|null $callback
  16924. * @param string $operator
  16925. * @param int $count
  16926. * @return \Illuminate\Database\Eloquent\Builder|static
  16927. * @static
  16928. */
  16929. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  16930. {
  16931. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16932. return $instance->whereHas($relation, $callback, $operator, $count);
  16933. }
  16934. /**
  16935. * Add a relationship count / exists condition to the query with where clauses and an "or".
  16936. *
  16937. * @param string $relation
  16938. * @param \Closure|null $callback
  16939. * @param string $operator
  16940. * @param int $count
  16941. * @return \Illuminate\Database\Eloquent\Builder|static
  16942. * @static
  16943. */
  16944. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  16945. {
  16946. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16947. return $instance->orWhereHas($relation, $callback, $operator, $count);
  16948. }
  16949. /**
  16950. * Add a relationship count / exists condition to the query with where clauses.
  16951. *
  16952. * @param string $relation
  16953. * @param \Closure|null $callback
  16954. * @return \Illuminate\Database\Eloquent\Builder|static
  16955. * @static
  16956. */
  16957. public static function whereDoesntHave($relation, $callback = null)
  16958. {
  16959. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16960. return $instance->whereDoesntHave($relation, $callback);
  16961. }
  16962. /**
  16963. * Add a relationship count / exists condition to the query with where clauses and an "or".
  16964. *
  16965. * @param string $relation
  16966. * @param \Closure|null $callback
  16967. * @return \Illuminate\Database\Eloquent\Builder|static
  16968. * @static
  16969. */
  16970. public static function orWhereDoesntHave($relation, $callback = null)
  16971. {
  16972. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16973. return $instance->orWhereDoesntHave($relation, $callback);
  16974. }
  16975. /**
  16976. * Add a polymorphic relationship count / exists condition to the query.
  16977. *
  16978. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16979. * @param string|array $types
  16980. * @param string $operator
  16981. * @param int $count
  16982. * @param string $boolean
  16983. * @param \Closure|null $callback
  16984. * @return \Illuminate\Database\Eloquent\Builder|static
  16985. * @static
  16986. */
  16987. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  16988. {
  16989. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16990. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  16991. }
  16992. /**
  16993. * Add a polymorphic relationship count / exists condition to the query with an "or".
  16994. *
  16995. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  16996. * @param string|array $types
  16997. * @param string $operator
  16998. * @param int $count
  16999. * @return \Illuminate\Database\Eloquent\Builder|static
  17000. * @static
  17001. */
  17002. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  17003. {
  17004. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17005. return $instance->orHasMorph($relation, $types, $operator, $count);
  17006. }
  17007. /**
  17008. * Add a polymorphic relationship count / exists condition to the query.
  17009. *
  17010. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17011. * @param string|array $types
  17012. * @param string $boolean
  17013. * @param \Closure|null $callback
  17014. * @return \Illuminate\Database\Eloquent\Builder|static
  17015. * @static
  17016. */
  17017. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  17018. {
  17019. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17020. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  17021. }
  17022. /**
  17023. * Add a polymorphic relationship count / exists condition to the query with an "or".
  17024. *
  17025. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17026. * @param string|array $types
  17027. * @return \Illuminate\Database\Eloquent\Builder|static
  17028. * @static
  17029. */
  17030. public static function orDoesntHaveMorph($relation, $types)
  17031. {
  17032. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17033. return $instance->orDoesntHaveMorph($relation, $types);
  17034. }
  17035. /**
  17036. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  17037. *
  17038. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17039. * @param string|array $types
  17040. * @param \Closure|null $callback
  17041. * @param string $operator
  17042. * @param int $count
  17043. * @return \Illuminate\Database\Eloquent\Builder|static
  17044. * @static
  17045. */
  17046. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  17047. {
  17048. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17049. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  17050. }
  17051. /**
  17052. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  17053. *
  17054. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17055. * @param string|array $types
  17056. * @param \Closure|null $callback
  17057. * @param string $operator
  17058. * @param int $count
  17059. * @return \Illuminate\Database\Eloquent\Builder|static
  17060. * @static
  17061. */
  17062. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  17063. {
  17064. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17065. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  17066. }
  17067. /**
  17068. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  17069. *
  17070. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17071. * @param string|array $types
  17072. * @param \Closure|null $callback
  17073. * @return \Illuminate\Database\Eloquent\Builder|static
  17074. * @static
  17075. */
  17076. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  17077. {
  17078. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17079. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  17080. }
  17081. /**
  17082. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  17083. *
  17084. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17085. * @param string|array $types
  17086. * @param \Closure|null $callback
  17087. * @return \Illuminate\Database\Eloquent\Builder|static
  17088. * @static
  17089. */
  17090. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  17091. {
  17092. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17093. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  17094. }
  17095. /**
  17096. * Add a basic where clause to a relationship query.
  17097. *
  17098. * @param string $relation
  17099. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17100. * @param mixed $operator
  17101. * @param mixed $value
  17102. * @return \Illuminate\Database\Eloquent\Builder|static
  17103. * @static
  17104. */
  17105. public static function whereRelation($relation, $column, $operator = null, $value = null)
  17106. {
  17107. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17108. return $instance->whereRelation($relation, $column, $operator, $value);
  17109. }
  17110. /**
  17111. * Add an "or where" clause to a relationship query.
  17112. *
  17113. * @param string $relation
  17114. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17115. * @param mixed $operator
  17116. * @param mixed $value
  17117. * @return \Illuminate\Database\Eloquent\Builder|static
  17118. * @static
  17119. */
  17120. public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  17121. {
  17122. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17123. return $instance->orWhereRelation($relation, $column, $operator, $value);
  17124. }
  17125. /**
  17126. * Add a polymorphic relationship condition to the query with a where clause.
  17127. *
  17128. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17129. * @param string|array $types
  17130. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17131. * @param mixed $operator
  17132. * @param mixed $value
  17133. * @return \Illuminate\Database\Eloquent\Builder|static
  17134. * @static
  17135. */
  17136. public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  17137. {
  17138. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17139. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  17140. }
  17141. /**
  17142. * Add a polymorphic relationship condition to the query with an "or where" clause.
  17143. *
  17144. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17145. * @param string|array $types
  17146. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17147. * @param mixed $operator
  17148. * @param mixed $value
  17149. * @return \Illuminate\Database\Eloquent\Builder|static
  17150. * @static
  17151. */
  17152. public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  17153. {
  17154. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17155. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  17156. }
  17157. /**
  17158. * Add a morph-to relationship condition to the query.
  17159. *
  17160. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17161. * @param \Illuminate\Database\Eloquent\Model|string $model
  17162. * @return \Illuminate\Database\Eloquent\Builder|static
  17163. * @static
  17164. */
  17165. public static function whereMorphedTo($relation, $model, $boolean = 'and')
  17166. {
  17167. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17168. return $instance->whereMorphedTo($relation, $model, $boolean);
  17169. }
  17170. /**
  17171. * Add a morph-to relationship condition to the query with an "or where" clause.
  17172. *
  17173. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17174. * @param \Illuminate\Database\Eloquent\Model|string $model
  17175. * @return \Illuminate\Database\Eloquent\Builder|static
  17176. * @static
  17177. */
  17178. public static function orWhereMorphedTo($relation, $model)
  17179. {
  17180. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17181. return $instance->orWhereMorphedTo($relation, $model);
  17182. }
  17183. /**
  17184. * Add a "belongs to" relationship where clause to the query.
  17185. *
  17186. * @param \Illuminate\Database\Eloquent\Model $related
  17187. * @param string $relationship
  17188. * @param string $boolean
  17189. * @return \Illuminate\Database\Eloquent\Builder|static
  17190. * @throws \RuntimeException
  17191. * @static
  17192. */
  17193. public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  17194. {
  17195. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17196. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  17197. }
  17198. /**
  17199. * Add an "BelongsTo" relationship with an "or where" clause to the query.
  17200. *
  17201. * @param \Illuminate\Database\Eloquent\Model $related
  17202. * @param string $relationship
  17203. * @return \Illuminate\Database\Eloquent\Builder|static
  17204. * @throws \RuntimeException
  17205. * @static
  17206. */
  17207. public static function orWhereBelongsTo($related, $relationshipName = null)
  17208. {
  17209. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17210. return $instance->orWhereBelongsTo($related, $relationshipName);
  17211. }
  17212. /**
  17213. * Add subselect queries to include an aggregate value for a relationship.
  17214. *
  17215. * @param mixed $relations
  17216. * @param string $column
  17217. * @param string $function
  17218. * @return \Illuminate\Database\Eloquent\Builder|static
  17219. * @static
  17220. */
  17221. public static function withAggregate($relations, $column, $function = null)
  17222. {
  17223. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17224. return $instance->withAggregate($relations, $column, $function);
  17225. }
  17226. /**
  17227. * Add subselect queries to count the relations.
  17228. *
  17229. * @param mixed $relations
  17230. * @return \Illuminate\Database\Eloquent\Builder|static
  17231. * @static
  17232. */
  17233. public static function withCount($relations)
  17234. {
  17235. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17236. return $instance->withCount($relations);
  17237. }
  17238. /**
  17239. * Add subselect queries to include the max of the relation's column.
  17240. *
  17241. * @param string|array $relation
  17242. * @param string $column
  17243. * @return \Illuminate\Database\Eloquent\Builder|static
  17244. * @static
  17245. */
  17246. public static function withMax($relation, $column)
  17247. {
  17248. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17249. return $instance->withMax($relation, $column);
  17250. }
  17251. /**
  17252. * Add subselect queries to include the min of the relation's column.
  17253. *
  17254. * @param string|array $relation
  17255. * @param string $column
  17256. * @return \Illuminate\Database\Eloquent\Builder|static
  17257. * @static
  17258. */
  17259. public static function withMin($relation, $column)
  17260. {
  17261. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17262. return $instance->withMin($relation, $column);
  17263. }
  17264. /**
  17265. * Add subselect queries to include the sum of the relation's column.
  17266. *
  17267. * @param string|array $relation
  17268. * @param string $column
  17269. * @return \Illuminate\Database\Eloquent\Builder|static
  17270. * @static
  17271. */
  17272. public static function withSum($relation, $column)
  17273. {
  17274. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17275. return $instance->withSum($relation, $column);
  17276. }
  17277. /**
  17278. * Add subselect queries to include the average of the relation's column.
  17279. *
  17280. * @param string|array $relation
  17281. * @param string $column
  17282. * @return \Illuminate\Database\Eloquent\Builder|static
  17283. * @static
  17284. */
  17285. public static function withAvg($relation, $column)
  17286. {
  17287. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17288. return $instance->withAvg($relation, $column);
  17289. }
  17290. /**
  17291. * Add subselect queries to include the existence of related models.
  17292. *
  17293. * @param string|array $relation
  17294. * @return \Illuminate\Database\Eloquent\Builder|static
  17295. * @static
  17296. */
  17297. public static function withExists($relation)
  17298. {
  17299. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17300. return $instance->withExists($relation);
  17301. }
  17302. /**
  17303. * Merge the where constraints from another query to the current query.
  17304. *
  17305. * @param \Illuminate\Database\Eloquent\Builder $from
  17306. * @return \Illuminate\Database\Eloquent\Builder|static
  17307. * @static
  17308. */
  17309. public static function mergeConstraintsFrom($from)
  17310. {
  17311. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17312. return $instance->mergeConstraintsFrom($from);
  17313. }
  17314. /**
  17315. * Chunk the results of the query.
  17316. *
  17317. * @param int $count
  17318. * @param callable $callback
  17319. * @return bool
  17320. * @static
  17321. */
  17322. public static function chunk($count, $callback)
  17323. {
  17324. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17325. return $instance->chunk($count, $callback);
  17326. }
  17327. /**
  17328. * Run a map over each item while chunking.
  17329. *
  17330. * @param callable $callback
  17331. * @param int $count
  17332. * @return \Illuminate\Support\Collection
  17333. * @static
  17334. */
  17335. public static function chunkMap($callback, $count = 1000)
  17336. {
  17337. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17338. return $instance->chunkMap($callback, $count);
  17339. }
  17340. /**
  17341. * Execute a callback over each item while chunking.
  17342. *
  17343. * @param callable $callback
  17344. * @param int $count
  17345. * @return bool
  17346. * @throws \RuntimeException
  17347. * @static
  17348. */
  17349. public static function each($callback, $count = 1000)
  17350. {
  17351. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17352. return $instance->each($callback, $count);
  17353. }
  17354. /**
  17355. * Chunk the results of a query by comparing IDs.
  17356. *
  17357. * @param int $count
  17358. * @param callable $callback
  17359. * @param string|null $column
  17360. * @param string|null $alias
  17361. * @return bool
  17362. * @static
  17363. */
  17364. public static function chunkById($count, $callback, $column = null, $alias = null)
  17365. {
  17366. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17367. return $instance->chunkById($count, $callback, $column, $alias);
  17368. }
  17369. /**
  17370. * Execute a callback over each item while chunking by ID.
  17371. *
  17372. * @param callable $callback
  17373. * @param int $count
  17374. * @param string|null $column
  17375. * @param string|null $alias
  17376. * @return bool
  17377. * @static
  17378. */
  17379. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  17380. {
  17381. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17382. return $instance->eachById($callback, $count, $column, $alias);
  17383. }
  17384. /**
  17385. * Query lazily, by chunks of the given size.
  17386. *
  17387. * @param int $chunkSize
  17388. * @return \Illuminate\Support\LazyCollection
  17389. * @throws \InvalidArgumentException
  17390. * @static
  17391. */
  17392. public static function lazy($chunkSize = 1000)
  17393. {
  17394. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17395. return $instance->lazy($chunkSize);
  17396. }
  17397. /**
  17398. * Query lazily, by chunking the results of a query by comparing IDs.
  17399. *
  17400. * @param int $chunkSize
  17401. * @param string|null $column
  17402. * @param string|null $alias
  17403. * @return \Illuminate\Support\LazyCollection
  17404. * @throws \InvalidArgumentException
  17405. * @static
  17406. */
  17407. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  17408. {
  17409. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17410. return $instance->lazyById($chunkSize, $column, $alias);
  17411. }
  17412. /**
  17413. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  17414. *
  17415. * @param int $chunkSize
  17416. * @param string|null $column
  17417. * @param string|null $alias
  17418. * @return \Illuminate\Support\LazyCollection
  17419. * @throws \InvalidArgumentException
  17420. * @static
  17421. */
  17422. public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  17423. {
  17424. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17425. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  17426. }
  17427. /**
  17428. * Execute the query and get the first result.
  17429. *
  17430. * @param array|string $columns
  17431. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  17432. * @static
  17433. */
  17434. public static function first($columns = [])
  17435. {
  17436. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17437. return $instance->first($columns);
  17438. }
  17439. /**
  17440. * Execute the query and get the first result if it's the sole matching record.
  17441. *
  17442. * @param array|string $columns
  17443. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  17444. * @throws \Illuminate\Database\RecordsNotFoundException
  17445. * @throws \Illuminate\Database\MultipleRecordsFoundException
  17446. * @static
  17447. */
  17448. public static function baseSole($columns = [])
  17449. {
  17450. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17451. return $instance->baseSole($columns);
  17452. }
  17453. /**
  17454. * Pass the query to a given callback.
  17455. *
  17456. * @param callable $callback
  17457. * @return $this|mixed
  17458. * @static
  17459. */
  17460. public static function tap($callback)
  17461. {
  17462. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17463. return $instance->tap($callback);
  17464. }
  17465. /**
  17466. * Apply the callback if the given "value" is truthy.
  17467. *
  17468. * @param mixed $value
  17469. * @param callable $callback
  17470. * @param callable|null $default
  17471. * @return $this|mixed
  17472. * @static
  17473. */
  17474. public static function when($value, $callback, $default = null)
  17475. {
  17476. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17477. return $instance->when($value, $callback, $default);
  17478. }
  17479. /**
  17480. * Apply the callback if the given "value" is falsy.
  17481. *
  17482. * @param mixed $value
  17483. * @param callable $callback
  17484. * @param callable|null $default
  17485. * @return $this|mixed
  17486. * @static
  17487. */
  17488. public static function unless($value, $callback, $default = null)
  17489. {
  17490. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17491. return $instance->unless($value, $callback, $default);
  17492. }
  17493. /**
  17494. * Set the columns to be selected.
  17495. *
  17496. * @param array|mixed $columns
  17497. * @return \Illuminate\Database\Query\Builder
  17498. * @static
  17499. */
  17500. public static function select($columns = [])
  17501. {
  17502. /** @var \Illuminate\Database\Query\Builder $instance */
  17503. return $instance->select($columns);
  17504. }
  17505. /**
  17506. * Add a subselect expression to the query.
  17507. *
  17508. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17509. * @param string $as
  17510. * @return \Illuminate\Database\Query\Builder
  17511. * @throws \InvalidArgumentException
  17512. * @static
  17513. */
  17514. public static function selectSub($query, $as)
  17515. {
  17516. /** @var \Illuminate\Database\Query\Builder $instance */
  17517. return $instance->selectSub($query, $as);
  17518. }
  17519. /**
  17520. * Add a new "raw" select expression to the query.
  17521. *
  17522. * @param string $expression
  17523. * @param array $bindings
  17524. * @return \Illuminate\Database\Query\Builder
  17525. * @static
  17526. */
  17527. public static function selectRaw($expression, $bindings = [])
  17528. {
  17529. /** @var \Illuminate\Database\Query\Builder $instance */
  17530. return $instance->selectRaw($expression, $bindings);
  17531. }
  17532. /**
  17533. * Makes "from" fetch from a subquery.
  17534. *
  17535. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17536. * @param string $as
  17537. * @return \Illuminate\Database\Query\Builder
  17538. * @throws \InvalidArgumentException
  17539. * @static
  17540. */
  17541. public static function fromSub($query, $as)
  17542. {
  17543. /** @var \Illuminate\Database\Query\Builder $instance */
  17544. return $instance->fromSub($query, $as);
  17545. }
  17546. /**
  17547. * Add a raw from clause to the query.
  17548. *
  17549. * @param string $expression
  17550. * @param mixed $bindings
  17551. * @return \Illuminate\Database\Query\Builder
  17552. * @static
  17553. */
  17554. public static function fromRaw($expression, $bindings = [])
  17555. {
  17556. /** @var \Illuminate\Database\Query\Builder $instance */
  17557. return $instance->fromRaw($expression, $bindings);
  17558. }
  17559. /**
  17560. * Add a new select column to the query.
  17561. *
  17562. * @param array|mixed $column
  17563. * @return \Illuminate\Database\Query\Builder
  17564. * @static
  17565. */
  17566. public static function addSelect($column)
  17567. {
  17568. /** @var \Illuminate\Database\Query\Builder $instance */
  17569. return $instance->addSelect($column);
  17570. }
  17571. /**
  17572. * Force the query to only return distinct results.
  17573. *
  17574. * @param mixed $distinct
  17575. * @return \Illuminate\Database\Query\Builder
  17576. * @static
  17577. */
  17578. public static function distinct()
  17579. {
  17580. /** @var \Illuminate\Database\Query\Builder $instance */
  17581. return $instance->distinct();
  17582. }
  17583. /**
  17584. * Set the table which the query is targeting.
  17585. *
  17586. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  17587. * @param string|null $as
  17588. * @return \Illuminate\Database\Query\Builder
  17589. * @static
  17590. */
  17591. public static function from($table, $as = null)
  17592. {
  17593. /** @var \Illuminate\Database\Query\Builder $instance */
  17594. return $instance->from($table, $as);
  17595. }
  17596. /**
  17597. * Add a join clause to the query.
  17598. *
  17599. * @param string $table
  17600. * @param \Closure|string $first
  17601. * @param string|null $operator
  17602. * @param string|null $second
  17603. * @param string $type
  17604. * @param bool $where
  17605. * @return \Illuminate\Database\Query\Builder
  17606. * @static
  17607. */
  17608. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  17609. {
  17610. /** @var \Illuminate\Database\Query\Builder $instance */
  17611. return $instance->join($table, $first, $operator, $second, $type, $where);
  17612. }
  17613. /**
  17614. * Add a "join where" clause to the query.
  17615. *
  17616. * @param string $table
  17617. * @param \Closure|string $first
  17618. * @param string $operator
  17619. * @param string $second
  17620. * @param string $type
  17621. * @return \Illuminate\Database\Query\Builder
  17622. * @static
  17623. */
  17624. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  17625. {
  17626. /** @var \Illuminate\Database\Query\Builder $instance */
  17627. return $instance->joinWhere($table, $first, $operator, $second, $type);
  17628. }
  17629. /**
  17630. * Add a subquery join clause to the query.
  17631. *
  17632. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17633. * @param string $as
  17634. * @param \Closure|string $first
  17635. * @param string|null $operator
  17636. * @param string|null $second
  17637. * @param string $type
  17638. * @param bool $where
  17639. * @return \Illuminate\Database\Query\Builder
  17640. * @throws \InvalidArgumentException
  17641. * @static
  17642. */
  17643. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  17644. {
  17645. /** @var \Illuminate\Database\Query\Builder $instance */
  17646. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  17647. }
  17648. /**
  17649. * Add a left join to the query.
  17650. *
  17651. * @param string $table
  17652. * @param \Closure|string $first
  17653. * @param string|null $operator
  17654. * @param string|null $second
  17655. * @return \Illuminate\Database\Query\Builder
  17656. * @static
  17657. */
  17658. public static function leftJoin($table, $first, $operator = null, $second = null)
  17659. {
  17660. /** @var \Illuminate\Database\Query\Builder $instance */
  17661. return $instance->leftJoin($table, $first, $operator, $second);
  17662. }
  17663. /**
  17664. * Add a "join where" clause to the query.
  17665. *
  17666. * @param string $table
  17667. * @param \Closure|string $first
  17668. * @param string $operator
  17669. * @param string $second
  17670. * @return \Illuminate\Database\Query\Builder
  17671. * @static
  17672. */
  17673. public static function leftJoinWhere($table, $first, $operator, $second)
  17674. {
  17675. /** @var \Illuminate\Database\Query\Builder $instance */
  17676. return $instance->leftJoinWhere($table, $first, $operator, $second);
  17677. }
  17678. /**
  17679. * Add a subquery left join to the query.
  17680. *
  17681. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17682. * @param string $as
  17683. * @param \Closure|string $first
  17684. * @param string|null $operator
  17685. * @param string|null $second
  17686. * @return \Illuminate\Database\Query\Builder
  17687. * @static
  17688. */
  17689. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  17690. {
  17691. /** @var \Illuminate\Database\Query\Builder $instance */
  17692. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  17693. }
  17694. /**
  17695. * Add a right join to the query.
  17696. *
  17697. * @param string $table
  17698. * @param \Closure|string $first
  17699. * @param string|null $operator
  17700. * @param string|null $second
  17701. * @return \Illuminate\Database\Query\Builder
  17702. * @static
  17703. */
  17704. public static function rightJoin($table, $first, $operator = null, $second = null)
  17705. {
  17706. /** @var \Illuminate\Database\Query\Builder $instance */
  17707. return $instance->rightJoin($table, $first, $operator, $second);
  17708. }
  17709. /**
  17710. * Add a "right join where" clause to the query.
  17711. *
  17712. * @param string $table
  17713. * @param \Closure|string $first
  17714. * @param string $operator
  17715. * @param string $second
  17716. * @return \Illuminate\Database\Query\Builder
  17717. * @static
  17718. */
  17719. public static function rightJoinWhere($table, $first, $operator, $second)
  17720. {
  17721. /** @var \Illuminate\Database\Query\Builder $instance */
  17722. return $instance->rightJoinWhere($table, $first, $operator, $second);
  17723. }
  17724. /**
  17725. * Add a subquery right join to the query.
  17726. *
  17727. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17728. * @param string $as
  17729. * @param \Closure|string $first
  17730. * @param string|null $operator
  17731. * @param string|null $second
  17732. * @return \Illuminate\Database\Query\Builder
  17733. * @static
  17734. */
  17735. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  17736. {
  17737. /** @var \Illuminate\Database\Query\Builder $instance */
  17738. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  17739. }
  17740. /**
  17741. * Add a "cross join" clause to the query.
  17742. *
  17743. * @param string $table
  17744. * @param \Closure|string|null $first
  17745. * @param string|null $operator
  17746. * @param string|null $second
  17747. * @return \Illuminate\Database\Query\Builder
  17748. * @static
  17749. */
  17750. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  17751. {
  17752. /** @var \Illuminate\Database\Query\Builder $instance */
  17753. return $instance->crossJoin($table, $first, $operator, $second);
  17754. }
  17755. /**
  17756. * Add a subquery cross join to the query.
  17757. *
  17758. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17759. * @param string $as
  17760. * @return \Illuminate\Database\Query\Builder
  17761. * @static
  17762. */
  17763. public static function crossJoinSub($query, $as)
  17764. {
  17765. /** @var \Illuminate\Database\Query\Builder $instance */
  17766. return $instance->crossJoinSub($query, $as);
  17767. }
  17768. /**
  17769. * Merge an array of where clauses and bindings.
  17770. *
  17771. * @param array $wheres
  17772. * @param array $bindings
  17773. * @return void
  17774. * @static
  17775. */
  17776. public static function mergeWheres($wheres, $bindings)
  17777. {
  17778. /** @var \Illuminate\Database\Query\Builder $instance */
  17779. $instance->mergeWheres($wheres, $bindings);
  17780. }
  17781. /**
  17782. * Prepare the value and operator for a where clause.
  17783. *
  17784. * @param string $value
  17785. * @param string $operator
  17786. * @param bool $useDefault
  17787. * @return array
  17788. * @throws \InvalidArgumentException
  17789. * @static
  17790. */
  17791. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  17792. {
  17793. /** @var \Illuminate\Database\Query\Builder $instance */
  17794. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  17795. }
  17796. /**
  17797. * Add a "where" clause comparing two columns to the query.
  17798. *
  17799. * @param string|array $first
  17800. * @param string|null $operator
  17801. * @param string|null $second
  17802. * @param string|null $boolean
  17803. * @return \Illuminate\Database\Query\Builder
  17804. * @static
  17805. */
  17806. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  17807. {
  17808. /** @var \Illuminate\Database\Query\Builder $instance */
  17809. return $instance->whereColumn($first, $operator, $second, $boolean);
  17810. }
  17811. /**
  17812. * Add an "or where" clause comparing two columns to the query.
  17813. *
  17814. * @param string|array $first
  17815. * @param string|null $operator
  17816. * @param string|null $second
  17817. * @return \Illuminate\Database\Query\Builder
  17818. * @static
  17819. */
  17820. public static function orWhereColumn($first, $operator = null, $second = null)
  17821. {
  17822. /** @var \Illuminate\Database\Query\Builder $instance */
  17823. return $instance->orWhereColumn($first, $operator, $second);
  17824. }
  17825. /**
  17826. * Add a raw where clause to the query.
  17827. *
  17828. * @param string $sql
  17829. * @param mixed $bindings
  17830. * @param string $boolean
  17831. * @return \Illuminate\Database\Query\Builder
  17832. * @static
  17833. */
  17834. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  17835. {
  17836. /** @var \Illuminate\Database\Query\Builder $instance */
  17837. return $instance->whereRaw($sql, $bindings, $boolean);
  17838. }
  17839. /**
  17840. * Add a raw or where clause to the query.
  17841. *
  17842. * @param string $sql
  17843. * @param mixed $bindings
  17844. * @return \Illuminate\Database\Query\Builder
  17845. * @static
  17846. */
  17847. public static function orWhereRaw($sql, $bindings = [])
  17848. {
  17849. /** @var \Illuminate\Database\Query\Builder $instance */
  17850. return $instance->orWhereRaw($sql, $bindings);
  17851. }
  17852. /**
  17853. * Add a "where in" clause to the query.
  17854. *
  17855. * @param string $column
  17856. * @param mixed $values
  17857. * @param string $boolean
  17858. * @param bool $not
  17859. * @return \Illuminate\Database\Query\Builder
  17860. * @static
  17861. */
  17862. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  17863. {
  17864. /** @var \Illuminate\Database\Query\Builder $instance */
  17865. return $instance->whereIn($column, $values, $boolean, $not);
  17866. }
  17867. /**
  17868. * Add an "or where in" clause to the query.
  17869. *
  17870. * @param string $column
  17871. * @param mixed $values
  17872. * @return \Illuminate\Database\Query\Builder
  17873. * @static
  17874. */
  17875. public static function orWhereIn($column, $values)
  17876. {
  17877. /** @var \Illuminate\Database\Query\Builder $instance */
  17878. return $instance->orWhereIn($column, $values);
  17879. }
  17880. /**
  17881. * Add a "where not in" clause to the query.
  17882. *
  17883. * @param string $column
  17884. * @param mixed $values
  17885. * @param string $boolean
  17886. * @return \Illuminate\Database\Query\Builder
  17887. * @static
  17888. */
  17889. public static function whereNotIn($column, $values, $boolean = 'and')
  17890. {
  17891. /** @var \Illuminate\Database\Query\Builder $instance */
  17892. return $instance->whereNotIn($column, $values, $boolean);
  17893. }
  17894. /**
  17895. * Add an "or where not in" clause to the query.
  17896. *
  17897. * @param string $column
  17898. * @param mixed $values
  17899. * @return \Illuminate\Database\Query\Builder
  17900. * @static
  17901. */
  17902. public static function orWhereNotIn($column, $values)
  17903. {
  17904. /** @var \Illuminate\Database\Query\Builder $instance */
  17905. return $instance->orWhereNotIn($column, $values);
  17906. }
  17907. /**
  17908. * Add a "where in raw" clause for integer values to the query.
  17909. *
  17910. * @param string $column
  17911. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  17912. * @param string $boolean
  17913. * @param bool $not
  17914. * @return \Illuminate\Database\Query\Builder
  17915. * @static
  17916. */
  17917. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  17918. {
  17919. /** @var \Illuminate\Database\Query\Builder $instance */
  17920. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  17921. }
  17922. /**
  17923. * Add an "or where in raw" clause for integer values to the query.
  17924. *
  17925. * @param string $column
  17926. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  17927. * @return \Illuminate\Database\Query\Builder
  17928. * @static
  17929. */
  17930. public static function orWhereIntegerInRaw($column, $values)
  17931. {
  17932. /** @var \Illuminate\Database\Query\Builder $instance */
  17933. return $instance->orWhereIntegerInRaw($column, $values);
  17934. }
  17935. /**
  17936. * Add a "where not in raw" clause for integer values to the query.
  17937. *
  17938. * @param string $column
  17939. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  17940. * @param string $boolean
  17941. * @return \Illuminate\Database\Query\Builder
  17942. * @static
  17943. */
  17944. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  17945. {
  17946. /** @var \Illuminate\Database\Query\Builder $instance */
  17947. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  17948. }
  17949. /**
  17950. * Add an "or where not in raw" clause for integer values to the query.
  17951. *
  17952. * @param string $column
  17953. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  17954. * @return \Illuminate\Database\Query\Builder
  17955. * @static
  17956. */
  17957. public static function orWhereIntegerNotInRaw($column, $values)
  17958. {
  17959. /** @var \Illuminate\Database\Query\Builder $instance */
  17960. return $instance->orWhereIntegerNotInRaw($column, $values);
  17961. }
  17962. /**
  17963. * Add a "where null" clause to the query.
  17964. *
  17965. * @param string|array $columns
  17966. * @param string $boolean
  17967. * @param bool $not
  17968. * @return \Illuminate\Database\Query\Builder
  17969. * @static
  17970. */
  17971. public static function whereNull($columns, $boolean = 'and', $not = false)
  17972. {
  17973. /** @var \Illuminate\Database\Query\Builder $instance */
  17974. return $instance->whereNull($columns, $boolean, $not);
  17975. }
  17976. /**
  17977. * Add an "or where null" clause to the query.
  17978. *
  17979. * @param string|array $column
  17980. * @return \Illuminate\Database\Query\Builder
  17981. * @static
  17982. */
  17983. public static function orWhereNull($column)
  17984. {
  17985. /** @var \Illuminate\Database\Query\Builder $instance */
  17986. return $instance->orWhereNull($column);
  17987. }
  17988. /**
  17989. * Add a "where not null" clause to the query.
  17990. *
  17991. * @param string|array $columns
  17992. * @param string $boolean
  17993. * @return \Illuminate\Database\Query\Builder
  17994. * @static
  17995. */
  17996. public static function whereNotNull($columns, $boolean = 'and')
  17997. {
  17998. /** @var \Illuminate\Database\Query\Builder $instance */
  17999. return $instance->whereNotNull($columns, $boolean);
  18000. }
  18001. /**
  18002. * Add a where between statement to the query.
  18003. *
  18004. * @param string|\Illuminate\Database\Query\Expression $column
  18005. * @param array $values
  18006. * @param string $boolean
  18007. * @param bool $not
  18008. * @return \Illuminate\Database\Query\Builder
  18009. * @static
  18010. */
  18011. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  18012. {
  18013. /** @var \Illuminate\Database\Query\Builder $instance */
  18014. return $instance->whereBetween($column, $values, $boolean, $not);
  18015. }
  18016. /**
  18017. * Add a where between statement using columns to the query.
  18018. *
  18019. * @param string $column
  18020. * @param array $values
  18021. * @param string $boolean
  18022. * @param bool $not
  18023. * @return \Illuminate\Database\Query\Builder
  18024. * @static
  18025. */
  18026. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  18027. {
  18028. /** @var \Illuminate\Database\Query\Builder $instance */
  18029. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  18030. }
  18031. /**
  18032. * Add an or where between statement to the query.
  18033. *
  18034. * @param string $column
  18035. * @param array $values
  18036. * @return \Illuminate\Database\Query\Builder
  18037. * @static
  18038. */
  18039. public static function orWhereBetween($column, $values)
  18040. {
  18041. /** @var \Illuminate\Database\Query\Builder $instance */
  18042. return $instance->orWhereBetween($column, $values);
  18043. }
  18044. /**
  18045. * Add an or where between statement using columns to the query.
  18046. *
  18047. * @param string $column
  18048. * @param array $values
  18049. * @return \Illuminate\Database\Query\Builder
  18050. * @static
  18051. */
  18052. public static function orWhereBetweenColumns($column, $values)
  18053. {
  18054. /** @var \Illuminate\Database\Query\Builder $instance */
  18055. return $instance->orWhereBetweenColumns($column, $values);
  18056. }
  18057. /**
  18058. * Add a where not between statement to the query.
  18059. *
  18060. * @param string $column
  18061. * @param array $values
  18062. * @param string $boolean
  18063. * @return \Illuminate\Database\Query\Builder
  18064. * @static
  18065. */
  18066. public static function whereNotBetween($column, $values, $boolean = 'and')
  18067. {
  18068. /** @var \Illuminate\Database\Query\Builder $instance */
  18069. return $instance->whereNotBetween($column, $values, $boolean);
  18070. }
  18071. /**
  18072. * Add a where not between statement using columns to the query.
  18073. *
  18074. * @param string $column
  18075. * @param array $values
  18076. * @param string $boolean
  18077. * @return \Illuminate\Database\Query\Builder
  18078. * @static
  18079. */
  18080. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  18081. {
  18082. /** @var \Illuminate\Database\Query\Builder $instance */
  18083. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  18084. }
  18085. /**
  18086. * Add an or where not between statement to the query.
  18087. *
  18088. * @param string $column
  18089. * @param array $values
  18090. * @return \Illuminate\Database\Query\Builder
  18091. * @static
  18092. */
  18093. public static function orWhereNotBetween($column, $values)
  18094. {
  18095. /** @var \Illuminate\Database\Query\Builder $instance */
  18096. return $instance->orWhereNotBetween($column, $values);
  18097. }
  18098. /**
  18099. * Add an or where not between statement using columns to the query.
  18100. *
  18101. * @param string $column
  18102. * @param array $values
  18103. * @return \Illuminate\Database\Query\Builder
  18104. * @static
  18105. */
  18106. public static function orWhereNotBetweenColumns($column, $values)
  18107. {
  18108. /** @var \Illuminate\Database\Query\Builder $instance */
  18109. return $instance->orWhereNotBetweenColumns($column, $values);
  18110. }
  18111. /**
  18112. * Add an "or where not null" clause to the query.
  18113. *
  18114. * @param string $column
  18115. * @return \Illuminate\Database\Query\Builder
  18116. * @static
  18117. */
  18118. public static function orWhereNotNull($column)
  18119. {
  18120. /** @var \Illuminate\Database\Query\Builder $instance */
  18121. return $instance->orWhereNotNull($column);
  18122. }
  18123. /**
  18124. * Add a "where date" statement to the query.
  18125. *
  18126. * @param \Illuminate\Database\Query\Expression|string $column
  18127. * @param string $operator
  18128. * @param \DateTimeInterface|string|null $value
  18129. * @param string $boolean
  18130. * @return \Illuminate\Database\Query\Builder
  18131. * @static
  18132. */
  18133. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  18134. {
  18135. /** @var \Illuminate\Database\Query\Builder $instance */
  18136. return $instance->whereDate($column, $operator, $value, $boolean);
  18137. }
  18138. /**
  18139. * Add an "or where date" statement to the query.
  18140. *
  18141. * @param string $column
  18142. * @param string $operator
  18143. * @param \DateTimeInterface|string|null $value
  18144. * @return \Illuminate\Database\Query\Builder
  18145. * @static
  18146. */
  18147. public static function orWhereDate($column, $operator, $value = null)
  18148. {
  18149. /** @var \Illuminate\Database\Query\Builder $instance */
  18150. return $instance->orWhereDate($column, $operator, $value);
  18151. }
  18152. /**
  18153. * Add a "where time" statement to the query.
  18154. *
  18155. * @param string $column
  18156. * @param string $operator
  18157. * @param \DateTimeInterface|string|null $value
  18158. * @param string $boolean
  18159. * @return \Illuminate\Database\Query\Builder
  18160. * @static
  18161. */
  18162. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  18163. {
  18164. /** @var \Illuminate\Database\Query\Builder $instance */
  18165. return $instance->whereTime($column, $operator, $value, $boolean);
  18166. }
  18167. /**
  18168. * Add an "or where time" statement to the query.
  18169. *
  18170. * @param string $column
  18171. * @param string $operator
  18172. * @param \DateTimeInterface|string|null $value
  18173. * @return \Illuminate\Database\Query\Builder
  18174. * @static
  18175. */
  18176. public static function orWhereTime($column, $operator, $value = null)
  18177. {
  18178. /** @var \Illuminate\Database\Query\Builder $instance */
  18179. return $instance->orWhereTime($column, $operator, $value);
  18180. }
  18181. /**
  18182. * Add a "where day" statement to the query.
  18183. *
  18184. * @param string $column
  18185. * @param string $operator
  18186. * @param \DateTimeInterface|string|null $value
  18187. * @param string $boolean
  18188. * @return \Illuminate\Database\Query\Builder
  18189. * @static
  18190. */
  18191. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  18192. {
  18193. /** @var \Illuminate\Database\Query\Builder $instance */
  18194. return $instance->whereDay($column, $operator, $value, $boolean);
  18195. }
  18196. /**
  18197. * Add an "or where day" statement to the query.
  18198. *
  18199. * @param string $column
  18200. * @param string $operator
  18201. * @param \DateTimeInterface|string|null $value
  18202. * @return \Illuminate\Database\Query\Builder
  18203. * @static
  18204. */
  18205. public static function orWhereDay($column, $operator, $value = null)
  18206. {
  18207. /** @var \Illuminate\Database\Query\Builder $instance */
  18208. return $instance->orWhereDay($column, $operator, $value);
  18209. }
  18210. /**
  18211. * Add a "where month" statement to the query.
  18212. *
  18213. * @param string $column
  18214. * @param string $operator
  18215. * @param \DateTimeInterface|string|null $value
  18216. * @param string $boolean
  18217. * @return \Illuminate\Database\Query\Builder
  18218. * @static
  18219. */
  18220. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  18221. {
  18222. /** @var \Illuminate\Database\Query\Builder $instance */
  18223. return $instance->whereMonth($column, $operator, $value, $boolean);
  18224. }
  18225. /**
  18226. * Add an "or where month" statement to the query.
  18227. *
  18228. * @param string $column
  18229. * @param string $operator
  18230. * @param \DateTimeInterface|string|null $value
  18231. * @return \Illuminate\Database\Query\Builder
  18232. * @static
  18233. */
  18234. public static function orWhereMonth($column, $operator, $value = null)
  18235. {
  18236. /** @var \Illuminate\Database\Query\Builder $instance */
  18237. return $instance->orWhereMonth($column, $operator, $value);
  18238. }
  18239. /**
  18240. * Add a "where year" statement to the query.
  18241. *
  18242. * @param string $column
  18243. * @param string $operator
  18244. * @param \DateTimeInterface|string|int|null $value
  18245. * @param string $boolean
  18246. * @return \Illuminate\Database\Query\Builder
  18247. * @static
  18248. */
  18249. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  18250. {
  18251. /** @var \Illuminate\Database\Query\Builder $instance */
  18252. return $instance->whereYear($column, $operator, $value, $boolean);
  18253. }
  18254. /**
  18255. * Add an "or where year" statement to the query.
  18256. *
  18257. * @param string $column
  18258. * @param string $operator
  18259. * @param \DateTimeInterface|string|int|null $value
  18260. * @return \Illuminate\Database\Query\Builder
  18261. * @static
  18262. */
  18263. public static function orWhereYear($column, $operator, $value = null)
  18264. {
  18265. /** @var \Illuminate\Database\Query\Builder $instance */
  18266. return $instance->orWhereYear($column, $operator, $value);
  18267. }
  18268. /**
  18269. * Add a nested where statement to the query.
  18270. *
  18271. * @param \Closure $callback
  18272. * @param string $boolean
  18273. * @return \Illuminate\Database\Query\Builder
  18274. * @static
  18275. */
  18276. public static function whereNested($callback, $boolean = 'and')
  18277. {
  18278. /** @var \Illuminate\Database\Query\Builder $instance */
  18279. return $instance->whereNested($callback, $boolean);
  18280. }
  18281. /**
  18282. * Create a new query instance for nested where condition.
  18283. *
  18284. * @return \Illuminate\Database\Query\Builder
  18285. * @static
  18286. */
  18287. public static function forNestedWhere()
  18288. {
  18289. /** @var \Illuminate\Database\Query\Builder $instance */
  18290. return $instance->forNestedWhere();
  18291. }
  18292. /**
  18293. * Add another query builder as a nested where to the query builder.
  18294. *
  18295. * @param \Illuminate\Database\Query\Builder $query
  18296. * @param string $boolean
  18297. * @return \Illuminate\Database\Query\Builder
  18298. * @static
  18299. */
  18300. public static function addNestedWhereQuery($query, $boolean = 'and')
  18301. {
  18302. /** @var \Illuminate\Database\Query\Builder $instance */
  18303. return $instance->addNestedWhereQuery($query, $boolean);
  18304. }
  18305. /**
  18306. * Add an exists clause to the query.
  18307. *
  18308. * @param \Closure $callback
  18309. * @param string $boolean
  18310. * @param bool $not
  18311. * @return \Illuminate\Database\Query\Builder
  18312. * @static
  18313. */
  18314. public static function whereExists($callback, $boolean = 'and', $not = false)
  18315. {
  18316. /** @var \Illuminate\Database\Query\Builder $instance */
  18317. return $instance->whereExists($callback, $boolean, $not);
  18318. }
  18319. /**
  18320. * Add an or exists clause to the query.
  18321. *
  18322. * @param \Closure $callback
  18323. * @param bool $not
  18324. * @return \Illuminate\Database\Query\Builder
  18325. * @static
  18326. */
  18327. public static function orWhereExists($callback, $not = false)
  18328. {
  18329. /** @var \Illuminate\Database\Query\Builder $instance */
  18330. return $instance->orWhereExists($callback, $not);
  18331. }
  18332. /**
  18333. * Add a where not exists clause to the query.
  18334. *
  18335. * @param \Closure $callback
  18336. * @param string $boolean
  18337. * @return \Illuminate\Database\Query\Builder
  18338. * @static
  18339. */
  18340. public static function whereNotExists($callback, $boolean = 'and')
  18341. {
  18342. /** @var \Illuminate\Database\Query\Builder $instance */
  18343. return $instance->whereNotExists($callback, $boolean);
  18344. }
  18345. /**
  18346. * Add a where not exists clause to the query.
  18347. *
  18348. * @param \Closure $callback
  18349. * @return \Illuminate\Database\Query\Builder
  18350. * @static
  18351. */
  18352. public static function orWhereNotExists($callback)
  18353. {
  18354. /** @var \Illuminate\Database\Query\Builder $instance */
  18355. return $instance->orWhereNotExists($callback);
  18356. }
  18357. /**
  18358. * Add an exists clause to the query.
  18359. *
  18360. * @param \Illuminate\Database\Query\Builder $query
  18361. * @param string $boolean
  18362. * @param bool $not
  18363. * @return \Illuminate\Database\Query\Builder
  18364. * @static
  18365. */
  18366. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  18367. {
  18368. /** @var \Illuminate\Database\Query\Builder $instance */
  18369. return $instance->addWhereExistsQuery($query, $boolean, $not);
  18370. }
  18371. /**
  18372. * Adds a where condition using row values.
  18373. *
  18374. * @param array $columns
  18375. * @param string $operator
  18376. * @param array $values
  18377. * @param string $boolean
  18378. * @return \Illuminate\Database\Query\Builder
  18379. * @throws \InvalidArgumentException
  18380. * @static
  18381. */
  18382. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  18383. {
  18384. /** @var \Illuminate\Database\Query\Builder $instance */
  18385. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  18386. }
  18387. /**
  18388. * Adds an or where condition using row values.
  18389. *
  18390. * @param array $columns
  18391. * @param string $operator
  18392. * @param array $values
  18393. * @return \Illuminate\Database\Query\Builder
  18394. * @static
  18395. */
  18396. public static function orWhereRowValues($columns, $operator, $values)
  18397. {
  18398. /** @var \Illuminate\Database\Query\Builder $instance */
  18399. return $instance->orWhereRowValues($columns, $operator, $values);
  18400. }
  18401. /**
  18402. * Add a "where JSON contains" clause to the query.
  18403. *
  18404. * @param string $column
  18405. * @param mixed $value
  18406. * @param string $boolean
  18407. * @param bool $not
  18408. * @return \Illuminate\Database\Query\Builder
  18409. * @static
  18410. */
  18411. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  18412. {
  18413. /** @var \Illuminate\Database\Query\Builder $instance */
  18414. return $instance->whereJsonContains($column, $value, $boolean, $not);
  18415. }
  18416. /**
  18417. * Add an "or where JSON contains" clause to the query.
  18418. *
  18419. * @param string $column
  18420. * @param mixed $value
  18421. * @return \Illuminate\Database\Query\Builder
  18422. * @static
  18423. */
  18424. public static function orWhereJsonContains($column, $value)
  18425. {
  18426. /** @var \Illuminate\Database\Query\Builder $instance */
  18427. return $instance->orWhereJsonContains($column, $value);
  18428. }
  18429. /**
  18430. * Add a "where JSON not contains" clause to the query.
  18431. *
  18432. * @param string $column
  18433. * @param mixed $value
  18434. * @param string $boolean
  18435. * @return \Illuminate\Database\Query\Builder
  18436. * @static
  18437. */
  18438. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  18439. {
  18440. /** @var \Illuminate\Database\Query\Builder $instance */
  18441. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  18442. }
  18443. /**
  18444. * Add an "or where JSON not contains" clause to the query.
  18445. *
  18446. * @param string $column
  18447. * @param mixed $value
  18448. * @return \Illuminate\Database\Query\Builder
  18449. * @static
  18450. */
  18451. public static function orWhereJsonDoesntContain($column, $value)
  18452. {
  18453. /** @var \Illuminate\Database\Query\Builder $instance */
  18454. return $instance->orWhereJsonDoesntContain($column, $value);
  18455. }
  18456. /**
  18457. * Add a "where JSON length" clause to the query.
  18458. *
  18459. * @param string $column
  18460. * @param mixed $operator
  18461. * @param mixed $value
  18462. * @param string $boolean
  18463. * @return \Illuminate\Database\Query\Builder
  18464. * @static
  18465. */
  18466. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  18467. {
  18468. /** @var \Illuminate\Database\Query\Builder $instance */
  18469. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  18470. }
  18471. /**
  18472. * Add an "or where JSON length" clause to the query.
  18473. *
  18474. * @param string $column
  18475. * @param mixed $operator
  18476. * @param mixed $value
  18477. * @return \Illuminate\Database\Query\Builder
  18478. * @static
  18479. */
  18480. public static function orWhereJsonLength($column, $operator, $value = null)
  18481. {
  18482. /** @var \Illuminate\Database\Query\Builder $instance */
  18483. return $instance->orWhereJsonLength($column, $operator, $value);
  18484. }
  18485. /**
  18486. * Handles dynamic "where" clauses to the query.
  18487. *
  18488. * @param string $method
  18489. * @param array $parameters
  18490. * @return \Illuminate\Database\Query\Builder
  18491. * @static
  18492. */
  18493. public static function dynamicWhere($method, $parameters)
  18494. {
  18495. /** @var \Illuminate\Database\Query\Builder $instance */
  18496. return $instance->dynamicWhere($method, $parameters);
  18497. }
  18498. /**
  18499. * Add a "where fulltext" clause to the query.
  18500. *
  18501. * @param string|string[] $columns
  18502. * @param string $value
  18503. * @param string $boolean
  18504. * @return \Illuminate\Database\Query\Builder
  18505. * @static
  18506. */
  18507. public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  18508. {
  18509. /** @var \Illuminate\Database\Query\Builder $instance */
  18510. return $instance->whereFullText($columns, $value, $options, $boolean);
  18511. }
  18512. /**
  18513. * Add a "or where fulltext" clause to the query.
  18514. *
  18515. * @param string|string[] $columns
  18516. * @param string $value
  18517. * @return \Illuminate\Database\Query\Builder
  18518. * @static
  18519. */
  18520. public static function orWhereFullText($columns, $value, $options = [])
  18521. {
  18522. /** @var \Illuminate\Database\Query\Builder $instance */
  18523. return $instance->orWhereFullText($columns, $value, $options);
  18524. }
  18525. /**
  18526. * Add a "group by" clause to the query.
  18527. *
  18528. * @param array|string $groups
  18529. * @return \Illuminate\Database\Query\Builder
  18530. * @static
  18531. */
  18532. public static function groupBy(...$groups)
  18533. {
  18534. /** @var \Illuminate\Database\Query\Builder $instance */
  18535. return $instance->groupBy(...$groups);
  18536. }
  18537. /**
  18538. * Add a raw groupBy clause to the query.
  18539. *
  18540. * @param string $sql
  18541. * @param array $bindings
  18542. * @return \Illuminate\Database\Query\Builder
  18543. * @static
  18544. */
  18545. public static function groupByRaw($sql, $bindings = [])
  18546. {
  18547. /** @var \Illuminate\Database\Query\Builder $instance */
  18548. return $instance->groupByRaw($sql, $bindings);
  18549. }
  18550. /**
  18551. * Add a "having" clause to the query.
  18552. *
  18553. * @param string $column
  18554. * @param string|null $operator
  18555. * @param string|null $value
  18556. * @param string $boolean
  18557. * @return \Illuminate\Database\Query\Builder
  18558. * @static
  18559. */
  18560. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  18561. {
  18562. /** @var \Illuminate\Database\Query\Builder $instance */
  18563. return $instance->having($column, $operator, $value, $boolean);
  18564. }
  18565. /**
  18566. * Add an "or having" clause to the query.
  18567. *
  18568. * @param string $column
  18569. * @param string|null $operator
  18570. * @param string|null $value
  18571. * @return \Illuminate\Database\Query\Builder
  18572. * @static
  18573. */
  18574. public static function orHaving($column, $operator = null, $value = null)
  18575. {
  18576. /** @var \Illuminate\Database\Query\Builder $instance */
  18577. return $instance->orHaving($column, $operator, $value);
  18578. }
  18579. /**
  18580. * Add a "having between " clause to the query.
  18581. *
  18582. * @param string $column
  18583. * @param array $values
  18584. * @param string $boolean
  18585. * @param bool $not
  18586. * @return \Illuminate\Database\Query\Builder
  18587. * @static
  18588. */
  18589. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  18590. {
  18591. /** @var \Illuminate\Database\Query\Builder $instance */
  18592. return $instance->havingBetween($column, $values, $boolean, $not);
  18593. }
  18594. /**
  18595. * Add a raw having clause to the query.
  18596. *
  18597. * @param string $sql
  18598. * @param array $bindings
  18599. * @param string $boolean
  18600. * @return \Illuminate\Database\Query\Builder
  18601. * @static
  18602. */
  18603. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  18604. {
  18605. /** @var \Illuminate\Database\Query\Builder $instance */
  18606. return $instance->havingRaw($sql, $bindings, $boolean);
  18607. }
  18608. /**
  18609. * Add a raw or having clause to the query.
  18610. *
  18611. * @param string $sql
  18612. * @param array $bindings
  18613. * @return \Illuminate\Database\Query\Builder
  18614. * @static
  18615. */
  18616. public static function orHavingRaw($sql, $bindings = [])
  18617. {
  18618. /** @var \Illuminate\Database\Query\Builder $instance */
  18619. return $instance->orHavingRaw($sql, $bindings);
  18620. }
  18621. /**
  18622. * Add an "order by" clause to the query.
  18623. *
  18624. * @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  18625. * @param string $direction
  18626. * @return \Illuminate\Database\Query\Builder
  18627. * @throws \InvalidArgumentException
  18628. * @static
  18629. */
  18630. public static function orderBy($column, $direction = 'asc')
  18631. {
  18632. /** @var \Illuminate\Database\Query\Builder $instance */
  18633. return $instance->orderBy($column, $direction);
  18634. }
  18635. /**
  18636. * Add a descending "order by" clause to the query.
  18637. *
  18638. * @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  18639. * @return \Illuminate\Database\Query\Builder
  18640. * @static
  18641. */
  18642. public static function orderByDesc($column)
  18643. {
  18644. /** @var \Illuminate\Database\Query\Builder $instance */
  18645. return $instance->orderByDesc($column);
  18646. }
  18647. /**
  18648. * Put the query's results in random order.
  18649. *
  18650. * @param string $seed
  18651. * @return \Illuminate\Database\Query\Builder
  18652. * @static
  18653. */
  18654. public static function inRandomOrder($seed = '')
  18655. {
  18656. /** @var \Illuminate\Database\Query\Builder $instance */
  18657. return $instance->inRandomOrder($seed);
  18658. }
  18659. /**
  18660. * Add a raw "order by" clause to the query.
  18661. *
  18662. * @param string $sql
  18663. * @param array $bindings
  18664. * @return \Illuminate\Database\Query\Builder
  18665. * @static
  18666. */
  18667. public static function orderByRaw($sql, $bindings = [])
  18668. {
  18669. /** @var \Illuminate\Database\Query\Builder $instance */
  18670. return $instance->orderByRaw($sql, $bindings);
  18671. }
  18672. /**
  18673. * Alias to set the "offset" value of the query.
  18674. *
  18675. * @param int $value
  18676. * @return \Illuminate\Database\Query\Builder
  18677. * @static
  18678. */
  18679. public static function skip($value)
  18680. {
  18681. /** @var \Illuminate\Database\Query\Builder $instance */
  18682. return $instance->skip($value);
  18683. }
  18684. /**
  18685. * Set the "offset" value of the query.
  18686. *
  18687. * @param int $value
  18688. * @return \Illuminate\Database\Query\Builder
  18689. * @static
  18690. */
  18691. public static function offset($value)
  18692. {
  18693. /** @var \Illuminate\Database\Query\Builder $instance */
  18694. return $instance->offset($value);
  18695. }
  18696. /**
  18697. * Alias to set the "limit" value of the query.
  18698. *
  18699. * @param int $value
  18700. * @return \Illuminate\Database\Query\Builder
  18701. * @static
  18702. */
  18703. public static function take($value)
  18704. {
  18705. /** @var \Illuminate\Database\Query\Builder $instance */
  18706. return $instance->take($value);
  18707. }
  18708. /**
  18709. * Set the "limit" value of the query.
  18710. *
  18711. * @param int $value
  18712. * @return \Illuminate\Database\Query\Builder
  18713. * @static
  18714. */
  18715. public static function limit($value)
  18716. {
  18717. /** @var \Illuminate\Database\Query\Builder $instance */
  18718. return $instance->limit($value);
  18719. }
  18720. /**
  18721. * Set the limit and offset for a given page.
  18722. *
  18723. * @param int $page
  18724. * @param int $perPage
  18725. * @return \Illuminate\Database\Query\Builder
  18726. * @static
  18727. */
  18728. public static function forPage($page, $perPage = 15)
  18729. {
  18730. /** @var \Illuminate\Database\Query\Builder $instance */
  18731. return $instance->forPage($page, $perPage);
  18732. }
  18733. /**
  18734. * Constrain the query to the previous "page" of results before a given ID.
  18735. *
  18736. * @param int $perPage
  18737. * @param int|null $lastId
  18738. * @param string $column
  18739. * @return \Illuminate\Database\Query\Builder
  18740. * @static
  18741. */
  18742. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  18743. {
  18744. /** @var \Illuminate\Database\Query\Builder $instance */
  18745. return $instance->forPageBeforeId($perPage, $lastId, $column);
  18746. }
  18747. /**
  18748. * Constrain the query to the next "page" of results after a given ID.
  18749. *
  18750. * @param int $perPage
  18751. * @param int|null $lastId
  18752. * @param string $column
  18753. * @return \Illuminate\Database\Query\Builder
  18754. * @static
  18755. */
  18756. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  18757. {
  18758. /** @var \Illuminate\Database\Query\Builder $instance */
  18759. return $instance->forPageAfterId($perPage, $lastId, $column);
  18760. }
  18761. /**
  18762. * Remove all existing orders and optionally add a new order.
  18763. *
  18764. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
  18765. * @param string $direction
  18766. * @return \Illuminate\Database\Query\Builder
  18767. * @static
  18768. */
  18769. public static function reorder($column = null, $direction = 'asc')
  18770. {
  18771. /** @var \Illuminate\Database\Query\Builder $instance */
  18772. return $instance->reorder($column, $direction);
  18773. }
  18774. /**
  18775. * Add a union statement to the query.
  18776. *
  18777. * @param \Illuminate\Database\Query\Builder|\Closure $query
  18778. * @param bool $all
  18779. * @return \Illuminate\Database\Query\Builder
  18780. * @static
  18781. */
  18782. public static function union($query, $all = false)
  18783. {
  18784. /** @var \Illuminate\Database\Query\Builder $instance */
  18785. return $instance->union($query, $all);
  18786. }
  18787. /**
  18788. * Add a union all statement to the query.
  18789. *
  18790. * @param \Illuminate\Database\Query\Builder|\Closure $query
  18791. * @return \Illuminate\Database\Query\Builder
  18792. * @static
  18793. */
  18794. public static function unionAll($query)
  18795. {
  18796. /** @var \Illuminate\Database\Query\Builder $instance */
  18797. return $instance->unionAll($query);
  18798. }
  18799. /**
  18800. * Lock the selected rows in the table.
  18801. *
  18802. * @param string|bool $value
  18803. * @return \Illuminate\Database\Query\Builder
  18804. * @static
  18805. */
  18806. public static function lock($value = true)
  18807. {
  18808. /** @var \Illuminate\Database\Query\Builder $instance */
  18809. return $instance->lock($value);
  18810. }
  18811. /**
  18812. * Lock the selected rows in the table for updating.
  18813. *
  18814. * @return \Illuminate\Database\Query\Builder
  18815. * @static
  18816. */
  18817. public static function lockForUpdate()
  18818. {
  18819. /** @var \Illuminate\Database\Query\Builder $instance */
  18820. return $instance->lockForUpdate();
  18821. }
  18822. /**
  18823. * Share lock the selected rows in the table.
  18824. *
  18825. * @return \Illuminate\Database\Query\Builder
  18826. * @static
  18827. */
  18828. public static function sharedLock()
  18829. {
  18830. /** @var \Illuminate\Database\Query\Builder $instance */
  18831. return $instance->sharedLock();
  18832. }
  18833. /**
  18834. * Register a closure to be invoked before the query is executed.
  18835. *
  18836. * @param callable $callback
  18837. * @return \Illuminate\Database\Query\Builder
  18838. * @static
  18839. */
  18840. public static function beforeQuery($callback)
  18841. {
  18842. /** @var \Illuminate\Database\Query\Builder $instance */
  18843. return $instance->beforeQuery($callback);
  18844. }
  18845. /**
  18846. * Invoke the "before query" modification callbacks.
  18847. *
  18848. * @return void
  18849. * @static
  18850. */
  18851. public static function applyBeforeQueryCallbacks()
  18852. {
  18853. /** @var \Illuminate\Database\Query\Builder $instance */
  18854. $instance->applyBeforeQueryCallbacks();
  18855. }
  18856. /**
  18857. * Get the SQL representation of the query.
  18858. *
  18859. * @return string
  18860. * @static
  18861. */
  18862. public static function toSql()
  18863. {
  18864. /** @var \Illuminate\Database\Query\Builder $instance */
  18865. return $instance->toSql();
  18866. }
  18867. /**
  18868. * Get the count of the total records for the paginator.
  18869. *
  18870. * @param array $columns
  18871. * @return int
  18872. * @static
  18873. */
  18874. public static function getCountForPagination($columns = [])
  18875. {
  18876. /** @var \Illuminate\Database\Query\Builder $instance */
  18877. return $instance->getCountForPagination($columns);
  18878. }
  18879. /**
  18880. * Concatenate values of a given column as a string.
  18881. *
  18882. * @param string $column
  18883. * @param string $glue
  18884. * @return string
  18885. * @static
  18886. */
  18887. public static function implode($column, $glue = '')
  18888. {
  18889. /** @var \Illuminate\Database\Query\Builder $instance */
  18890. return $instance->implode($column, $glue);
  18891. }
  18892. /**
  18893. * Determine if any rows exist for the current query.
  18894. *
  18895. * @return bool
  18896. * @static
  18897. */
  18898. public static function exists()
  18899. {
  18900. /** @var \Illuminate\Database\Query\Builder $instance */
  18901. return $instance->exists();
  18902. }
  18903. /**
  18904. * Determine if no rows exist for the current query.
  18905. *
  18906. * @return bool
  18907. * @static
  18908. */
  18909. public static function doesntExist()
  18910. {
  18911. /** @var \Illuminate\Database\Query\Builder $instance */
  18912. return $instance->doesntExist();
  18913. }
  18914. /**
  18915. * Execute the given callback if no rows exist for the current query.
  18916. *
  18917. * @param \Closure $callback
  18918. * @return mixed
  18919. * @static
  18920. */
  18921. public static function existsOr($callback)
  18922. {
  18923. /** @var \Illuminate\Database\Query\Builder $instance */
  18924. return $instance->existsOr($callback);
  18925. }
  18926. /**
  18927. * Execute the given callback if rows exist for the current query.
  18928. *
  18929. * @param \Closure $callback
  18930. * @return mixed
  18931. * @static
  18932. */
  18933. public static function doesntExistOr($callback)
  18934. {
  18935. /** @var \Illuminate\Database\Query\Builder $instance */
  18936. return $instance->doesntExistOr($callback);
  18937. }
  18938. /**
  18939. * Retrieve the "count" result of the query.
  18940. *
  18941. * @param string $columns
  18942. * @return int
  18943. * @static
  18944. */
  18945. public static function count($columns = '*')
  18946. {
  18947. /** @var \Illuminate\Database\Query\Builder $instance */
  18948. return $instance->count($columns);
  18949. }
  18950. /**
  18951. * Retrieve the minimum value of a given column.
  18952. *
  18953. * @param string $column
  18954. * @return mixed
  18955. * @static
  18956. */
  18957. public static function min($column)
  18958. {
  18959. /** @var \Illuminate\Database\Query\Builder $instance */
  18960. return $instance->min($column);
  18961. }
  18962. /**
  18963. * Retrieve the maximum value of a given column.
  18964. *
  18965. * @param string $column
  18966. * @return mixed
  18967. * @static
  18968. */
  18969. public static function max($column)
  18970. {
  18971. /** @var \Illuminate\Database\Query\Builder $instance */
  18972. return $instance->max($column);
  18973. }
  18974. /**
  18975. * Retrieve the sum of the values of a given column.
  18976. *
  18977. * @param string $column
  18978. * @return mixed
  18979. * @static
  18980. */
  18981. public static function sum($column)
  18982. {
  18983. /** @var \Illuminate\Database\Query\Builder $instance */
  18984. return $instance->sum($column);
  18985. }
  18986. /**
  18987. * Retrieve the average of the values of a given column.
  18988. *
  18989. * @param string $column
  18990. * @return mixed
  18991. * @static
  18992. */
  18993. public static function avg($column)
  18994. {
  18995. /** @var \Illuminate\Database\Query\Builder $instance */
  18996. return $instance->avg($column);
  18997. }
  18998. /**
  18999. * Alias for the "avg" method.
  19000. *
  19001. * @param string $column
  19002. * @return mixed
  19003. * @static
  19004. */
  19005. public static function average($column)
  19006. {
  19007. /** @var \Illuminate\Database\Query\Builder $instance */
  19008. return $instance->average($column);
  19009. }
  19010. /**
  19011. * Execute an aggregate function on the database.
  19012. *
  19013. * @param string $function
  19014. * @param array $columns
  19015. * @return mixed
  19016. * @static
  19017. */
  19018. public static function aggregate($function, $columns = [])
  19019. {
  19020. /** @var \Illuminate\Database\Query\Builder $instance */
  19021. return $instance->aggregate($function, $columns);
  19022. }
  19023. /**
  19024. * Execute a numeric aggregate function on the database.
  19025. *
  19026. * @param string $function
  19027. * @param array $columns
  19028. * @return float|int
  19029. * @static
  19030. */
  19031. public static function numericAggregate($function, $columns = [])
  19032. {
  19033. /** @var \Illuminate\Database\Query\Builder $instance */
  19034. return $instance->numericAggregate($function, $columns);
  19035. }
  19036. /**
  19037. * Insert new records into the database.
  19038. *
  19039. * @param array $values
  19040. * @return bool
  19041. * @static
  19042. */
  19043. public static function insert($values)
  19044. {
  19045. /** @var \Illuminate\Database\Query\Builder $instance */
  19046. return $instance->insert($values);
  19047. }
  19048. /**
  19049. * Insert new records into the database while ignoring errors.
  19050. *
  19051. * @param array $values
  19052. * @return int
  19053. * @static
  19054. */
  19055. public static function insertOrIgnore($values)
  19056. {
  19057. /** @var \Illuminate\Database\Query\Builder $instance */
  19058. return $instance->insertOrIgnore($values);
  19059. }
  19060. /**
  19061. * Insert a new record and get the value of the primary key.
  19062. *
  19063. * @param array $values
  19064. * @param string|null $sequence
  19065. * @return int
  19066. * @static
  19067. */
  19068. public static function insertGetId($values, $sequence = null)
  19069. {
  19070. /** @var \Illuminate\Database\Query\Builder $instance */
  19071. return $instance->insertGetId($values, $sequence);
  19072. }
  19073. /**
  19074. * Insert new records into the table using a subquery.
  19075. *
  19076. * @param array $columns
  19077. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  19078. * @return int
  19079. * @static
  19080. */
  19081. public static function insertUsing($columns, $query)
  19082. {
  19083. /** @var \Illuminate\Database\Query\Builder $instance */
  19084. return $instance->insertUsing($columns, $query);
  19085. }
  19086. /**
  19087. * Update records in a PostgreSQL database using the update from syntax.
  19088. *
  19089. * @param array $values
  19090. * @return int
  19091. * @static
  19092. */
  19093. public static function updateFrom($values)
  19094. {
  19095. /** @var \Illuminate\Database\Query\Builder $instance */
  19096. return $instance->updateFrom($values);
  19097. }
  19098. /**
  19099. * Insert or update a record matching the attributes, and fill it with values.
  19100. *
  19101. * @param array $attributes
  19102. * @param array $values
  19103. * @return bool
  19104. * @static
  19105. */
  19106. public static function updateOrInsert($attributes, $values = [])
  19107. {
  19108. /** @var \Illuminate\Database\Query\Builder $instance */
  19109. return $instance->updateOrInsert($attributes, $values);
  19110. }
  19111. /**
  19112. * Run a truncate statement on the table.
  19113. *
  19114. * @return void
  19115. * @static
  19116. */
  19117. public static function truncate()
  19118. {
  19119. /** @var \Illuminate\Database\Query\Builder $instance */
  19120. $instance->truncate();
  19121. }
  19122. /**
  19123. * Create a raw database expression.
  19124. *
  19125. * @param mixed $value
  19126. * @return \Illuminate\Database\Query\Expression
  19127. * @static
  19128. */
  19129. public static function raw($value)
  19130. {
  19131. /** @var \Illuminate\Database\Query\Builder $instance */
  19132. return $instance->raw($value);
  19133. }
  19134. /**
  19135. * Get the current query value bindings in a flattened array.
  19136. *
  19137. * @return array
  19138. * @static
  19139. */
  19140. public static function getBindings()
  19141. {
  19142. /** @var \Illuminate\Database\Query\Builder $instance */
  19143. return $instance->getBindings();
  19144. }
  19145. /**
  19146. * Get the raw array of bindings.
  19147. *
  19148. * @return array
  19149. * @static
  19150. */
  19151. public static function getRawBindings()
  19152. {
  19153. /** @var \Illuminate\Database\Query\Builder $instance */
  19154. return $instance->getRawBindings();
  19155. }
  19156. /**
  19157. * Set the bindings on the query builder.
  19158. *
  19159. * @param array $bindings
  19160. * @param string $type
  19161. * @return \Illuminate\Database\Query\Builder
  19162. * @throws \InvalidArgumentException
  19163. * @static
  19164. */
  19165. public static function setBindings($bindings, $type = 'where')
  19166. {
  19167. /** @var \Illuminate\Database\Query\Builder $instance */
  19168. return $instance->setBindings($bindings, $type);
  19169. }
  19170. /**
  19171. * Add a binding to the query.
  19172. *
  19173. * @param mixed $value
  19174. * @param string $type
  19175. * @return \Illuminate\Database\Query\Builder
  19176. * @throws \InvalidArgumentException
  19177. * @static
  19178. */
  19179. public static function addBinding($value, $type = 'where')
  19180. {
  19181. /** @var \Illuminate\Database\Query\Builder $instance */
  19182. return $instance->addBinding($value, $type);
  19183. }
  19184. /**
  19185. * Cast the given binding value.
  19186. *
  19187. * @param mixed $value
  19188. * @return mixed
  19189. * @static
  19190. */
  19191. public static function castBinding($value)
  19192. {
  19193. /** @var \Illuminate\Database\Query\Builder $instance */
  19194. return $instance->castBinding($value);
  19195. }
  19196. /**
  19197. * Merge an array of bindings into our bindings.
  19198. *
  19199. * @param \Illuminate\Database\Query\Builder $query
  19200. * @return \Illuminate\Database\Query\Builder
  19201. * @static
  19202. */
  19203. public static function mergeBindings($query)
  19204. {
  19205. /** @var \Illuminate\Database\Query\Builder $instance */
  19206. return $instance->mergeBindings($query);
  19207. }
  19208. /**
  19209. * Remove all of the expressions from a list of bindings.
  19210. *
  19211. * @param array $bindings
  19212. * @return array
  19213. * @static
  19214. */
  19215. public static function cleanBindings($bindings)
  19216. {
  19217. /** @var \Illuminate\Database\Query\Builder $instance */
  19218. return $instance->cleanBindings($bindings);
  19219. }
  19220. /**
  19221. * Get the database query processor instance.
  19222. *
  19223. * @return \Illuminate\Database\Query\Processors\Processor
  19224. * @static
  19225. */
  19226. public static function getProcessor()
  19227. {
  19228. /** @var \Illuminate\Database\Query\Builder $instance */
  19229. return $instance->getProcessor();
  19230. }
  19231. /**
  19232. * Get the query grammar instance.
  19233. *
  19234. * @return \Illuminate\Database\Query\Grammars\Grammar
  19235. * @static
  19236. */
  19237. public static function getGrammar()
  19238. {
  19239. /** @var \Illuminate\Database\Query\Builder $instance */
  19240. return $instance->getGrammar();
  19241. }
  19242. /**
  19243. * Use the write pdo for query.
  19244. *
  19245. * @return \Illuminate\Database\Query\Builder
  19246. * @static
  19247. */
  19248. public static function useWritePdo()
  19249. {
  19250. /** @var \Illuminate\Database\Query\Builder $instance */
  19251. return $instance->useWritePdo();
  19252. }
  19253. /**
  19254. * Clone the query without the given properties.
  19255. *
  19256. * @param array $properties
  19257. * @return static
  19258. * @static
  19259. */
  19260. public static function cloneWithout($properties)
  19261. {
  19262. /** @var \Illuminate\Database\Query\Builder $instance */
  19263. return $instance->cloneWithout($properties);
  19264. }
  19265. /**
  19266. * Clone the query without the given bindings.
  19267. *
  19268. * @param array $except
  19269. * @return static
  19270. * @static
  19271. */
  19272. public static function cloneWithoutBindings($except)
  19273. {
  19274. /** @var \Illuminate\Database\Query\Builder $instance */
  19275. return $instance->cloneWithoutBindings($except);
  19276. }
  19277. /**
  19278. * Dump the current SQL and bindings.
  19279. *
  19280. * @return \Illuminate\Database\Query\Builder
  19281. * @static
  19282. */
  19283. public static function dump()
  19284. {
  19285. /** @var \Illuminate\Database\Query\Builder $instance */
  19286. return $instance->dump();
  19287. }
  19288. /**
  19289. * Die and dump the current SQL and bindings.
  19290. *
  19291. * @return never
  19292. * @static
  19293. */
  19294. public static function dd()
  19295. {
  19296. /** @var \Illuminate\Database\Query\Builder $instance */
  19297. return $instance->dd();
  19298. }
  19299. /**
  19300. * Explains the query.
  19301. *
  19302. * @return \Illuminate\Support\Collection
  19303. * @static
  19304. */
  19305. public static function explain()
  19306. {
  19307. /** @var \Illuminate\Database\Query\Builder $instance */
  19308. return $instance->explain();
  19309. }
  19310. /**
  19311. * Register a custom macro.
  19312. *
  19313. * @param string $name
  19314. * @param object|callable $macro
  19315. * @return void
  19316. * @static
  19317. */
  19318. public static function macro($name, $macro)
  19319. {
  19320. \Illuminate\Database\Query\Builder::macro($name, $macro);
  19321. }
  19322. /**
  19323. * Mix another object into the class.
  19324. *
  19325. * @param object $mixin
  19326. * @param bool $replace
  19327. * @return void
  19328. * @throws \ReflectionException
  19329. * @static
  19330. */
  19331. public static function mixin($mixin, $replace = true)
  19332. {
  19333. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  19334. }
  19335. /**
  19336. * Flush the existing macros.
  19337. *
  19338. * @return void
  19339. * @static
  19340. */
  19341. public static function flushMacros()
  19342. {
  19343. \Illuminate\Database\Query\Builder::flushMacros();
  19344. }
  19345. /**
  19346. * Dynamically handle calls to the class.
  19347. *
  19348. * @param string $method
  19349. * @param array $parameters
  19350. * @return mixed
  19351. * @throws \BadMethodCallException
  19352. * @static
  19353. */
  19354. public static function macroCall($method, $parameters)
  19355. {
  19356. /** @var \Illuminate\Database\Query\Builder $instance */
  19357. return $instance->macroCall($method, $parameters);
  19358. }
  19359. }
  19360. class Event extends \Illuminate\Support\Facades\Event {}
  19361. class File extends \Illuminate\Support\Facades\File {}
  19362. class Gate extends \Illuminate\Support\Facades\Gate {}
  19363. class Hash extends \Illuminate\Support\Facades\Hash {}
  19364. class Http extends \Illuminate\Support\Facades\Http {}
  19365. class Lang extends \Illuminate\Support\Facades\Lang {}
  19366. class Log extends \Illuminate\Support\Facades\Log {}
  19367. class Mail extends \Illuminate\Support\Facades\Mail {}
  19368. class Notification extends \Illuminate\Support\Facades\Notification {}
  19369. class Password extends \Illuminate\Support\Facades\Password {}
  19370. class Queue extends \Illuminate\Support\Facades\Queue {}
  19371. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  19372. class Request extends \Illuminate\Support\Facades\Request {}
  19373. class Response extends \Illuminate\Support\Facades\Response {}
  19374. class Route extends \Illuminate\Support\Facades\Route {}
  19375. class Schema extends \Illuminate\Support\Facades\Schema {}
  19376. class Session extends \Illuminate\Support\Facades\Session {}
  19377. class Storage extends \Illuminate\Support\Facades\Storage {}
  19378. class Str extends \Illuminate\Support\Str {}
  19379. class URL extends \Illuminate\Support\Facades\URL {}
  19380. class Validator extends \Illuminate\Support\Facades\Validator {}
  19381. class View extends \Illuminate\Support\Facades\View {}
  19382. class Flare extends \Facade\Ignition\Facades\Flare {}
  19383. class Image extends \Intervention\Image\Facades\Image {}
  19384. }
  19385. namespace Illuminate\Support {
  19386. /**
  19387. * Methods commonly used in migrations
  19388. *
  19389. * @method Fluent after(string $column) Add the after modifier
  19390. * @method Fluent charset(string $charset) Add the character set modifier
  19391. * @method Fluent collation(string $collation) Add the collation modifier
  19392. * @method Fluent comment(string $comment) Add comment
  19393. * @method Fluent default($value) Add the default modifier
  19394. * @method Fluent first() Select first row
  19395. * @method Fluent index(string $name = null) Add the in dex clause
  19396. * @method Fluent on(string $table) `on` of a foreign key
  19397. * @method Fluent onDelete(string $action) `on delete` of a foreign key
  19398. * @method Fluent onUpdate(string $action) `on update` of a foreign key
  19399. * @method Fluent primary() Add the primary key modifier
  19400. * @method Fluent references(string $column) `references` of a foreign key
  19401. * @method Fluent nullable(bool $value = true) Add the nullable modifier
  19402. * @method Fluent unique(string $name = null) Add unique index clause
  19403. * @method Fluent unsigned() Add the unsigned modifier
  19404. * @method Fluent useCurrent() Add the default timestamp value
  19405. * @method Fluent change() Add the change modifier
  19406. */
  19407. class Fluent {}
  19408. }