_ide_helper.php 778 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815
  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.27.
  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 \Illuminate\Foundation\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 \Illuminate\Container\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 \Illuminate\Cache\iterable
  3499. * @param \Psr\SimpleCache\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 \Psr\SimpleCache\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 \Psr\SimpleCache\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 \Psr\SimpleCache\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 \Illuminate\Auth\Access\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 \Illuminate\Auth\Access\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 \Illuminate\Auth\Access\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. * @see \Illuminate\Translation\Translator
  6914. */
  6915. class Lang {
  6916. /**
  6917. * Determine if a translation exists for a given locale.
  6918. *
  6919. * @param string $key
  6920. * @param string|null $locale
  6921. * @return bool
  6922. * @static
  6923. */
  6924. public static function hasForLocale($key, $locale = null)
  6925. {
  6926. /** @var \Illuminate\Translation\Translator $instance */
  6927. return $instance->hasForLocale($key, $locale);
  6928. }
  6929. /**
  6930. * Determine if a translation exists.
  6931. *
  6932. * @param string $key
  6933. * @param string|null $locale
  6934. * @param bool $fallback
  6935. * @return bool
  6936. * @static
  6937. */
  6938. public static function has($key, $locale = null, $fallback = true)
  6939. {
  6940. /** @var \Illuminate\Translation\Translator $instance */
  6941. return $instance->has($key, $locale, $fallback);
  6942. }
  6943. /**
  6944. * Get the translation for the given key.
  6945. *
  6946. * @param string $key
  6947. * @param array $replace
  6948. * @param string|null $locale
  6949. * @param bool $fallback
  6950. * @return string|array
  6951. * @static
  6952. */
  6953. public static function get($key, $replace = [], $locale = null, $fallback = true)
  6954. {
  6955. /** @var \Illuminate\Translation\Translator $instance */
  6956. return $instance->get($key, $replace, $locale, $fallback);
  6957. }
  6958. /**
  6959. * Get a translation according to an integer value.
  6960. *
  6961. * @param string $key
  6962. * @param \Countable|int|array $number
  6963. * @param array $replace
  6964. * @param string|null $locale
  6965. * @return string
  6966. * @static
  6967. */
  6968. public static function choice($key, $number, $replace = [], $locale = null)
  6969. {
  6970. /** @var \Illuminate\Translation\Translator $instance */
  6971. return $instance->choice($key, $number, $replace, $locale);
  6972. }
  6973. /**
  6974. * Add translation lines to the given locale.
  6975. *
  6976. * @param array $lines
  6977. * @param string $locale
  6978. * @param string $namespace
  6979. * @return void
  6980. * @static
  6981. */
  6982. public static function addLines($lines, $locale, $namespace = '*')
  6983. {
  6984. /** @var \Illuminate\Translation\Translator $instance */
  6985. $instance->addLines($lines, $locale, $namespace);
  6986. }
  6987. /**
  6988. * Load the specified language group.
  6989. *
  6990. * @param string $namespace
  6991. * @param string $group
  6992. * @param string $locale
  6993. * @return void
  6994. * @static
  6995. */
  6996. public static function load($namespace, $group, $locale)
  6997. {
  6998. /** @var \Illuminate\Translation\Translator $instance */
  6999. $instance->load($namespace, $group, $locale);
  7000. }
  7001. /**
  7002. * Add a new namespace to the loader.
  7003. *
  7004. * @param string $namespace
  7005. * @param string $hint
  7006. * @return void
  7007. * @static
  7008. */
  7009. public static function addNamespace($namespace, $hint)
  7010. {
  7011. /** @var \Illuminate\Translation\Translator $instance */
  7012. $instance->addNamespace($namespace, $hint);
  7013. }
  7014. /**
  7015. * Add a new JSON path to the loader.
  7016. *
  7017. * @param string $path
  7018. * @return void
  7019. * @static
  7020. */
  7021. public static function addJsonPath($path)
  7022. {
  7023. /** @var \Illuminate\Translation\Translator $instance */
  7024. $instance->addJsonPath($path);
  7025. }
  7026. /**
  7027. * Parse a key into namespace, group, and item.
  7028. *
  7029. * @param string $key
  7030. * @return array
  7031. * @static
  7032. */
  7033. public static function parseKey($key)
  7034. {
  7035. /** @var \Illuminate\Translation\Translator $instance */
  7036. return $instance->parseKey($key);
  7037. }
  7038. /**
  7039. * Get the message selector instance.
  7040. *
  7041. * @return \Illuminate\Translation\MessageSelector
  7042. * @static
  7043. */
  7044. public static function getSelector()
  7045. {
  7046. /** @var \Illuminate\Translation\Translator $instance */
  7047. return $instance->getSelector();
  7048. }
  7049. /**
  7050. * Set the message selector instance.
  7051. *
  7052. * @param \Illuminate\Translation\MessageSelector $selector
  7053. * @return void
  7054. * @static
  7055. */
  7056. public static function setSelector($selector)
  7057. {
  7058. /** @var \Illuminate\Translation\Translator $instance */
  7059. $instance->setSelector($selector);
  7060. }
  7061. /**
  7062. * Get the language line loader implementation.
  7063. *
  7064. * @return \Illuminate\Contracts\Translation\Loader
  7065. * @static
  7066. */
  7067. public static function getLoader()
  7068. {
  7069. /** @var \Illuminate\Translation\Translator $instance */
  7070. return $instance->getLoader();
  7071. }
  7072. /**
  7073. * Get the default locale being used.
  7074. *
  7075. * @return string
  7076. * @static
  7077. */
  7078. public static function locale()
  7079. {
  7080. /** @var \Illuminate\Translation\Translator $instance */
  7081. return $instance->locale();
  7082. }
  7083. /**
  7084. * Get the default locale being used.
  7085. *
  7086. * @return string
  7087. * @static
  7088. */
  7089. public static function getLocale()
  7090. {
  7091. /** @var \Illuminate\Translation\Translator $instance */
  7092. return $instance->getLocale();
  7093. }
  7094. /**
  7095. * Set the default locale.
  7096. *
  7097. * @param string $locale
  7098. * @return void
  7099. * @throws \InvalidArgumentException
  7100. * @static
  7101. */
  7102. public static function setLocale($locale)
  7103. {
  7104. /** @var \Illuminate\Translation\Translator $instance */
  7105. $instance->setLocale($locale);
  7106. }
  7107. /**
  7108. * Get the fallback locale being used.
  7109. *
  7110. * @return string
  7111. * @static
  7112. */
  7113. public static function getFallback()
  7114. {
  7115. /** @var \Illuminate\Translation\Translator $instance */
  7116. return $instance->getFallback();
  7117. }
  7118. /**
  7119. * Set the fallback locale being used.
  7120. *
  7121. * @param string $fallback
  7122. * @return void
  7123. * @static
  7124. */
  7125. public static function setFallback($fallback)
  7126. {
  7127. /** @var \Illuminate\Translation\Translator $instance */
  7128. $instance->setFallback($fallback);
  7129. }
  7130. /**
  7131. * Set the loaded translation groups.
  7132. *
  7133. * @param array $loaded
  7134. * @return void
  7135. * @static
  7136. */
  7137. public static function setLoaded($loaded)
  7138. {
  7139. /** @var \Illuminate\Translation\Translator $instance */
  7140. $instance->setLoaded($loaded);
  7141. }
  7142. /**
  7143. * Set the parsed value of a key.
  7144. *
  7145. * @param string $key
  7146. * @param array $parsed
  7147. * @return void
  7148. * @static
  7149. */
  7150. public static function setParsedKey($key, $parsed)
  7151. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7152. /** @var \Illuminate\Translation\Translator $instance */
  7153. $instance->setParsedKey($key, $parsed);
  7154. }
  7155. /**
  7156. * Flush the cache of parsed keys.
  7157. *
  7158. * @return void
  7159. * @static
  7160. */
  7161. public static function flushParsedKeys()
  7162. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7163. /** @var \Illuminate\Translation\Translator $instance */
  7164. $instance->flushParsedKeys();
  7165. }
  7166. /**
  7167. * Register a custom macro.
  7168. *
  7169. * @param string $name
  7170. * @param object|callable $macro
  7171. * @return void
  7172. * @static
  7173. */
  7174. public static function macro($name, $macro)
  7175. {
  7176. \Illuminate\Translation\Translator::macro($name, $macro);
  7177. }
  7178. /**
  7179. * Mix another object into the class.
  7180. *
  7181. * @param object $mixin
  7182. * @param bool $replace
  7183. * @return void
  7184. * @throws \ReflectionException
  7185. * @static
  7186. */
  7187. public static function mixin($mixin, $replace = true)
  7188. {
  7189. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  7190. }
  7191. /**
  7192. * Checks if macro is registered.
  7193. *
  7194. * @param string $name
  7195. * @return bool
  7196. * @static
  7197. */
  7198. public static function hasMacro($name)
  7199. {
  7200. return \Illuminate\Translation\Translator::hasMacro($name);
  7201. }
  7202. /**
  7203. * Flush the existing macros.
  7204. *
  7205. * @return void
  7206. * @static
  7207. */
  7208. public static function flushMacros()
  7209. {
  7210. \Illuminate\Translation\Translator::flushMacros();
  7211. }
  7212. }
  7213. /**
  7214. *
  7215. *
  7216. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  7217. * @method static \Illuminate\Log\Logger withoutContext()
  7218. * @method static void write(string $level, string $message, array $context = [])
  7219. * @method static void listen(\Closure $callback)
  7220. * @see \Illuminate\Log\Logger
  7221. */
  7222. class Log {
  7223. /**
  7224. * Build an on-demand log channel.
  7225. *
  7226. * @param array $config
  7227. * @return \Psr\Log\LoggerInterface
  7228. * @static
  7229. */
  7230. public static function build($config)
  7231. {
  7232. /** @var \Illuminate\Log\LogManager $instance */
  7233. return $instance->build($config);
  7234. }
  7235. /**
  7236. * Create a new, on-demand aggregate logger instance.
  7237. *
  7238. * @param array $channels
  7239. * @param string|null $channel
  7240. * @return \Psr\Log\LoggerInterface
  7241. * @static
  7242. */
  7243. public static function stack($channels, $channel = null)
  7244. {
  7245. /** @var \Illuminate\Log\LogManager $instance */
  7246. return $instance->stack($channels, $channel);
  7247. }
  7248. /**
  7249. * Get a log channel instance.
  7250. *
  7251. * @param string|null $channel
  7252. * @return \Psr\Log\LoggerInterface
  7253. * @static
  7254. */
  7255. public static function channel($channel = null)
  7256. {
  7257. /** @var \Illuminate\Log\LogManager $instance */
  7258. return $instance->channel($channel);
  7259. }
  7260. /**
  7261. * Get a log driver instance.
  7262. *
  7263. * @param string|null $driver
  7264. * @return \Psr\Log\LoggerInterface
  7265. * @static
  7266. */
  7267. public static function driver($driver = null)
  7268. {
  7269. /** @var \Illuminate\Log\LogManager $instance */
  7270. return $instance->driver($driver);
  7271. }
  7272. /**
  7273. * Get the default log driver name.
  7274. *
  7275. * @return string|null
  7276. * @static
  7277. */
  7278. public static function getDefaultDriver()
  7279. {
  7280. /** @var \Illuminate\Log\LogManager $instance */
  7281. return $instance->getDefaultDriver();
  7282. }
  7283. /**
  7284. * Set the default log driver name.
  7285. *
  7286. * @param string $name
  7287. * @return void
  7288. * @static
  7289. */
  7290. public static function setDefaultDriver($name)
  7291. {
  7292. /** @var \Illuminate\Log\LogManager $instance */
  7293. $instance->setDefaultDriver($name);
  7294. }
  7295. /**
  7296. * Register a custom driver creator Closure.
  7297. *
  7298. * @param string $driver
  7299. * @param \Closure $callback
  7300. * @return \Illuminate\Log\LogManager
  7301. * @static
  7302. */
  7303. public static function extend($driver, $callback)
  7304. {
  7305. /** @var \Illuminate\Log\LogManager $instance */
  7306. return $instance->extend($driver, $callback);
  7307. }
  7308. /**
  7309. * Unset the given channel instance.
  7310. *
  7311. * @param string|null $driver
  7312. * @return \Illuminate\Log\LogManager
  7313. * @static
  7314. */
  7315. public static function forgetChannel($driver = null)
  7316. {
  7317. /** @var \Illuminate\Log\LogManager $instance */
  7318. return $instance->forgetChannel($driver);
  7319. }
  7320. /**
  7321. * Get all of the resolved log channels.
  7322. *
  7323. * @return array
  7324. * @static
  7325. */
  7326. public static function getChannels()
  7327. {
  7328. /** @var \Illuminate\Log\LogManager $instance */
  7329. return $instance->getChannels();
  7330. }
  7331. /**
  7332. * System is unusable.
  7333. *
  7334. * @param string $message
  7335. * @param array $context
  7336. * @return void
  7337. * @static
  7338. */
  7339. public static function emergency($message, $context = [])
  7340. {
  7341. /** @var \Illuminate\Log\LogManager $instance */
  7342. $instance->emergency($message, $context);
  7343. }
  7344. /**
  7345. * Action must be taken immediately.
  7346. *
  7347. * Example: Entire website down, database unavailable, etc. This should
  7348. * trigger the SMS alerts and wake you up.
  7349. *
  7350. * @param string $message
  7351. * @param array $context
  7352. * @return void
  7353. * @static
  7354. */
  7355. public static function alert($message, $context = [])
  7356. {
  7357. /** @var \Illuminate\Log\LogManager $instance */
  7358. $instance->alert($message, $context);
  7359. }
  7360. /**
  7361. * Critical conditions.
  7362. *
  7363. * Example: Application component unavailable, unexpected exception.
  7364. *
  7365. * @param string $message
  7366. * @param array $context
  7367. * @return void
  7368. * @static
  7369. */
  7370. public static function critical($message, $context = [])
  7371. {
  7372. /** @var \Illuminate\Log\LogManager $instance */
  7373. $instance->critical($message, $context);
  7374. }
  7375. /**
  7376. * Runtime errors that do not require immediate action but should typically
  7377. * be logged and monitored.
  7378. *
  7379. * @param string $message
  7380. * @param array $context
  7381. * @return void
  7382. * @static
  7383. */
  7384. public static function error($message, $context = [])
  7385. {
  7386. /** @var \Illuminate\Log\LogManager $instance */
  7387. $instance->error($message, $context);
  7388. }
  7389. /**
  7390. * Exceptional occurrences that are not errors.
  7391. *
  7392. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  7393. * that are not necessarily wrong.
  7394. *
  7395. * @param string $message
  7396. * @param array $context
  7397. * @return void
  7398. * @static
  7399. */
  7400. public static function warning($message, $context = [])
  7401. {
  7402. /** @var \Illuminate\Log\LogManager $instance */
  7403. $instance->warning($message, $context);
  7404. }
  7405. /**
  7406. * Normal but significant events.
  7407. *
  7408. * @param string $message
  7409. * @param array $context
  7410. * @return void
  7411. * @static
  7412. */
  7413. public static function notice($message, $context = [])
  7414. {
  7415. /** @var \Illuminate\Log\LogManager $instance */
  7416. $instance->notice($message, $context);
  7417. }
  7418. /**
  7419. * Interesting events.
  7420. *
  7421. * Example: User logs in, SQL logs.
  7422. *
  7423. * @param string $message
  7424. * @param array $context
  7425. * @return void
  7426. * @static
  7427. */
  7428. public static function info($message, $context = [])
  7429. {
  7430. /** @var \Illuminate\Log\LogManager $instance */
  7431. $instance->info($message, $context);
  7432. }
  7433. /**
  7434. * Detailed debug information.
  7435. *
  7436. * @param string $message
  7437. * @param array $context
  7438. * @return void
  7439. * @static
  7440. */
  7441. public static function debug($message, $context = [])
  7442. {
  7443. /** @var \Illuminate\Log\LogManager $instance */
  7444. $instance->debug($message, $context);
  7445. }
  7446. /**
  7447. * Logs with an arbitrary level.
  7448. *
  7449. * @param mixed $level
  7450. * @param string $message
  7451. * @param array $context
  7452. * @return void
  7453. * @static
  7454. */
  7455. public static function log($level, $message, $context = [])
  7456. {
  7457. /** @var \Illuminate\Log\LogManager $instance */
  7458. $instance->log($level, $message, $context);
  7459. }
  7460. }
  7461. /**
  7462. *
  7463. *
  7464. * @method static void alwaysFrom(string $address, string|null $name = null)
  7465. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  7466. * @method static void alwaysReturnPath(string $address)
  7467. * @method static void alwaysTo(string $address, string|null $name = null)
  7468. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7469. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7470. * @method static void plain(string $view, array $data, $callback)
  7471. * @method static void html(string $html, $callback)
  7472. * @see \Illuminate\Mail\Mailer
  7473. * @see \Illuminate\Support\Testing\Fakes\MailFake
  7474. */
  7475. class Mail {
  7476. /**
  7477. * Get a mailer instance by name.
  7478. *
  7479. * @param string|null $name
  7480. * @return \Illuminate\Contracts\Mail\Mailer
  7481. * @static
  7482. */
  7483. public static function mailer($name = null)
  7484. {
  7485. /** @var \Illuminate\Mail\MailManager $instance */
  7486. return $instance->mailer($name);
  7487. }
  7488. /**
  7489. * Get a mailer driver instance.
  7490. *
  7491. * @param string|null $driver
  7492. * @return \Illuminate\Mail\Mailer
  7493. * @static
  7494. */
  7495. public static function driver($driver = null)
  7496. {
  7497. /** @var \Illuminate\Mail\MailManager $instance */
  7498. return $instance->driver($driver);
  7499. }
  7500. /**
  7501. * Create a new transport instance.
  7502. *
  7503. * @param array $config
  7504. * @return \Swift_Transport
  7505. * @throws \InvalidArgumentException
  7506. * @static
  7507. */
  7508. public static function createTransport($config)
  7509. {
  7510. /** @var \Illuminate\Mail\MailManager $instance */
  7511. return $instance->createTransport($config);
  7512. }
  7513. /**
  7514. * Get the default mail driver name.
  7515. *
  7516. * @return string
  7517. * @static
  7518. */
  7519. public static function getDefaultDriver()
  7520. {
  7521. /** @var \Illuminate\Mail\MailManager $instance */
  7522. return $instance->getDefaultDriver();
  7523. }
  7524. /**
  7525. * Set the default mail driver name.
  7526. *
  7527. * @param string $name
  7528. * @return void
  7529. * @static
  7530. */
  7531. public static function setDefaultDriver($name)
  7532. {
  7533. /** @var \Illuminate\Mail\MailManager $instance */
  7534. $instance->setDefaultDriver($name);
  7535. }
  7536. /**
  7537. * Disconnect the given mailer and remove from local cache.
  7538. *
  7539. * @param string|null $name
  7540. * @return void
  7541. * @static
  7542. */
  7543. public static function purge($name = null)
  7544. {
  7545. /** @var \Illuminate\Mail\MailManager $instance */
  7546. $instance->purge($name);
  7547. }
  7548. /**
  7549. * Register a custom transport creator Closure.
  7550. *
  7551. * @param string $driver
  7552. * @param \Closure $callback
  7553. * @return \Illuminate\Mail\MailManager
  7554. * @static
  7555. */
  7556. public static function extend($driver, $callback)
  7557. {
  7558. /** @var \Illuminate\Mail\MailManager $instance */
  7559. return $instance->extend($driver, $callback);
  7560. }
  7561. /**
  7562. * Get the application instance used by the manager.
  7563. *
  7564. * @return \Illuminate\Contracts\Foundation\Application
  7565. * @static
  7566. */
  7567. public static function getApplication()
  7568. {
  7569. /** @var \Illuminate\Mail\MailManager $instance */
  7570. return $instance->getApplication();
  7571. }
  7572. /**
  7573. * Set the application instance used by the manager.
  7574. *
  7575. * @param \Illuminate\Contracts\Foundation\Application $app
  7576. * @return \Illuminate\Mail\MailManager
  7577. * @static
  7578. */
  7579. public static function setApplication($app)
  7580. {
  7581. /** @var \Illuminate\Mail\MailManager $instance */
  7582. return $instance->setApplication($app);
  7583. }
  7584. /**
  7585. * Forget all of the resolved mailer instances.
  7586. *
  7587. * @return \Illuminate\Mail\MailManager
  7588. * @static
  7589. */
  7590. public static function forgetMailers()
  7591. {
  7592. /** @var \Illuminate\Mail\MailManager $instance */
  7593. return $instance->forgetMailers();
  7594. }
  7595. /**
  7596. * Assert if a mailable was sent based on a truth-test callback.
  7597. *
  7598. * @param string|\Closure $mailable
  7599. * @param callable|int|null $callback
  7600. * @return void
  7601. * @static
  7602. */
  7603. public static function assertSent($mailable, $callback = null)
  7604. {
  7605. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7606. $instance->assertSent($mailable, $callback);
  7607. }
  7608. /**
  7609. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  7610. *
  7611. * @param string|\Closure $mailable
  7612. * @param callable|null $callback
  7613. * @return void
  7614. * @static
  7615. */
  7616. public static function assertNotOutgoing($mailable, $callback = null)
  7617. {
  7618. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7619. $instance->assertNotOutgoing($mailable, $callback);
  7620. }
  7621. /**
  7622. * Determine if a mailable was not sent based on a truth-test callback.
  7623. *
  7624. * @param string|\Closure $mailable
  7625. * @param callable|null $callback
  7626. * @return void
  7627. * @static
  7628. */
  7629. public static function assertNotSent($mailable, $callback = null)
  7630. {
  7631. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7632. $instance->assertNotSent($mailable, $callback);
  7633. }
  7634. /**
  7635. * Assert that no mailables were sent or queued to be sent.
  7636. *
  7637. * @return void
  7638. * @static
  7639. */
  7640. public static function assertNothingOutgoing()
  7641. {
  7642. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7643. $instance->assertNothingOutgoing();
  7644. }
  7645. /**
  7646. * Assert that no mailables were sent.
  7647. *
  7648. * @return void
  7649. * @static
  7650. */
  7651. public static function assertNothingSent()
  7652. {
  7653. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7654. $instance->assertNothingSent();
  7655. }
  7656. /**
  7657. * Assert if a mailable was queued based on a truth-test callback.
  7658. *
  7659. * @param string|\Closure $mailable
  7660. * @param callable|int|null $callback
  7661. * @return void
  7662. * @static
  7663. */
  7664. public static function assertQueued($mailable, $callback = null)
  7665. {
  7666. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7667. $instance->assertQueued($mailable, $callback);
  7668. }
  7669. /**
  7670. * Determine if a mailable was not queued based on a truth-test callback.
  7671. *
  7672. * @param string|\Closure $mailable
  7673. * @param callable|null $callback
  7674. * @return void
  7675. * @static
  7676. */
  7677. public static function assertNotQueued($mailable, $callback = null)
  7678. {
  7679. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7680. $instance->assertNotQueued($mailable, $callback);
  7681. }
  7682. /**
  7683. * Assert that no mailables were queued.
  7684. *
  7685. * @return void
  7686. * @static
  7687. */
  7688. public static function assertNothingQueued()
  7689. {
  7690. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7691. $instance->assertNothingQueued();
  7692. }
  7693. /**
  7694. * Get all of the mailables matching a truth-test callback.
  7695. *
  7696. * @param string|\Closure $mailable
  7697. * @param callable|null $callback
  7698. * @return \Illuminate\Support\Collection
  7699. * @static
  7700. */
  7701. public static function sent($mailable, $callback = null)
  7702. {
  7703. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7704. return $instance->sent($mailable, $callback);
  7705. }
  7706. /**
  7707. * Determine if the given mailable has been sent.
  7708. *
  7709. * @param string $mailable
  7710. * @return bool
  7711. * @static
  7712. */
  7713. public static function hasSent($mailable)
  7714. {
  7715. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7716. return $instance->hasSent($mailable);
  7717. }
  7718. /**
  7719. * Get all of the queued mailables matching a truth-test callback.
  7720. *
  7721. * @param string|\Closure $mailable
  7722. * @param callable|null $callback
  7723. * @return \Illuminate\Support\Collection
  7724. * @static
  7725. */
  7726. public static function queued($mailable, $callback = null)
  7727. {
  7728. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7729. return $instance->queued($mailable, $callback);
  7730. }
  7731. /**
  7732. * Determine if the given mailable has been queued.
  7733. *
  7734. * @param string $mailable
  7735. * @return bool
  7736. * @static
  7737. */
  7738. public static function hasQueued($mailable)
  7739. {
  7740. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7741. return $instance->hasQueued($mailable);
  7742. }
  7743. /**
  7744. * Begin the process of mailing a mailable class instance.
  7745. *
  7746. * @param mixed $users
  7747. * @return \Illuminate\Mail\PendingMail
  7748. * @static
  7749. */
  7750. public static function to($users)
  7751. {
  7752. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7753. return $instance->to($users);
  7754. }
  7755. /**
  7756. * Begin the process of mailing a mailable class instance.
  7757. *
  7758. * @param mixed $users
  7759. * @return \Illuminate\Mail\PendingMail
  7760. * @static
  7761. */
  7762. public static function bcc($users)
  7763. {
  7764. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7765. return $instance->bcc($users);
  7766. }
  7767. /**
  7768. * Send a new message with only a raw text part.
  7769. *
  7770. * @param string $text
  7771. * @param \Closure|string $callback
  7772. * @return void
  7773. * @static
  7774. */
  7775. public static function raw($text, $callback)
  7776. {
  7777. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7778. $instance->raw($text, $callback);
  7779. }
  7780. /**
  7781. * Send a new message using a view.
  7782. *
  7783. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  7784. * @param array $data
  7785. * @param \Closure|string|null $callback
  7786. * @return void
  7787. * @static
  7788. */
  7789. public static function send($view, $data = [], $callback = null)
  7790. {
  7791. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7792. $instance->send($view, $data, $callback);
  7793. }
  7794. /**
  7795. * Queue a new e-mail message for sending.
  7796. *
  7797. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  7798. * @param string|null $queue
  7799. * @return mixed
  7800. * @static
  7801. */
  7802. public static function queue($view, $queue = null)
  7803. {
  7804. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7805. return $instance->queue($view, $queue);
  7806. }
  7807. /**
  7808. * Queue a new e-mail message for sending after (n) seconds.
  7809. *
  7810. * @param \DateTimeInterface|\DateInterval|int $delay
  7811. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  7812. * @param string|null $queue
  7813. * @return mixed
  7814. * @static
  7815. */
  7816. public static function later($delay, $view, $queue = null)
  7817. {
  7818. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7819. return $instance->later($delay, $view, $queue);
  7820. }
  7821. /**
  7822. * Get the array of failed recipients.
  7823. *
  7824. * @return array
  7825. * @static
  7826. */
  7827. public static function failures()
  7828. {
  7829. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7830. return $instance->failures();
  7831. }
  7832. }
  7833. /**
  7834. *
  7835. *
  7836. * @see \Illuminate\Notifications\ChannelManager
  7837. */
  7838. class Notification {
  7839. /**
  7840. * Send the given notification to the given notifiable entities.
  7841. *
  7842. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  7843. * @param mixed $notification
  7844. * @return void
  7845. * @static
  7846. */
  7847. public static function send($notifiables, $notification)
  7848. {
  7849. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7850. $instance->send($notifiables, $notification);
  7851. }
  7852. /**
  7853. * Send the given notification immediately.
  7854. *
  7855. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  7856. * @param mixed $notification
  7857. * @param array|null $channels
  7858. * @return void
  7859. * @static
  7860. */
  7861. public static function sendNow($notifiables, $notification, $channels = null)
  7862. {
  7863. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7864. $instance->sendNow($notifiables, $notification, $channels);
  7865. }
  7866. /**
  7867. * Get a channel instance.
  7868. *
  7869. * @param string|null $name
  7870. * @return mixed
  7871. * @static
  7872. */
  7873. public static function channel($name = null)
  7874. {
  7875. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7876. return $instance->channel($name);
  7877. }
  7878. /**
  7879. * Get the default channel driver name.
  7880. *
  7881. * @return string
  7882. * @static
  7883. */
  7884. public static function getDefaultDriver()
  7885. {
  7886. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7887. return $instance->getDefaultDriver();
  7888. }
  7889. /**
  7890. * Get the default channel driver name.
  7891. *
  7892. * @return string
  7893. * @static
  7894. */
  7895. public static function deliversVia()
  7896. {
  7897. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7898. return $instance->deliversVia();
  7899. }
  7900. /**
  7901. * Set the default channel driver name.
  7902. *
  7903. * @param string $channel
  7904. * @return void
  7905. * @static
  7906. */
  7907. public static function deliverVia($channel)
  7908. {
  7909. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7910. $instance->deliverVia($channel);
  7911. }
  7912. /**
  7913. * Set the locale of notifications.
  7914. *
  7915. * @param string $locale
  7916. * @return \Illuminate\Notifications\ChannelManager
  7917. * @static
  7918. */
  7919. public static function locale($locale)
  7920. {
  7921. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7922. return $instance->locale($locale);
  7923. }
  7924. /**
  7925. * Get a driver instance.
  7926. *
  7927. * @param string|null $driver
  7928. * @return mixed
  7929. * @throws \InvalidArgumentException
  7930. * @static
  7931. */
  7932. public static function driver($driver = null)
  7933. { //Method inherited from \Illuminate\Support\Manager
  7934. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7935. return $instance->driver($driver);
  7936. }
  7937. /**
  7938. * Register a custom driver creator Closure.
  7939. *
  7940. * @param string $driver
  7941. * @param \Closure $callback
  7942. * @return \Illuminate\Notifications\ChannelManager
  7943. * @static
  7944. */
  7945. public static function extend($driver, $callback)
  7946. { //Method inherited from \Illuminate\Support\Manager
  7947. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7948. return $instance->extend($driver, $callback);
  7949. }
  7950. /**
  7951. * Get all of the created "drivers".
  7952. *
  7953. * @return array
  7954. * @static
  7955. */
  7956. public static function getDrivers()
  7957. { //Method inherited from \Illuminate\Support\Manager
  7958. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7959. return $instance->getDrivers();
  7960. }
  7961. /**
  7962. * Get the container instance used by the manager.
  7963. *
  7964. * @return \Illuminate\Contracts\Container\Container
  7965. * @static
  7966. */
  7967. public static function getContainer()
  7968. { //Method inherited from \Illuminate\Support\Manager
  7969. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7970. return $instance->getContainer();
  7971. }
  7972. /**
  7973. * Set the container instance used by the manager.
  7974. *
  7975. * @param \Illuminate\Contracts\Container\Container $container
  7976. * @return \Illuminate\Notifications\ChannelManager
  7977. * @static
  7978. */
  7979. public static function setContainer($container)
  7980. { //Method inherited from \Illuminate\Support\Manager
  7981. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7982. return $instance->setContainer($container);
  7983. }
  7984. /**
  7985. * Forget all of the resolved driver instances.
  7986. *
  7987. * @return \Illuminate\Notifications\ChannelManager
  7988. * @static
  7989. */
  7990. public static function forgetDrivers()
  7991. { //Method inherited from \Illuminate\Support\Manager
  7992. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7993. return $instance->forgetDrivers();
  7994. }
  7995. /**
  7996. * Assert if a notification was sent on-demand based on a truth-test callback.
  7997. *
  7998. * @param string|\Closure $notification
  7999. * @param callable|null $callback
  8000. * @return void
  8001. * @throws \Exception
  8002. * @static
  8003. */
  8004. public static function assertSentOnDemand($notification, $callback = null)
  8005. {
  8006. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8007. $instance->assertSentOnDemand($notification, $callback);
  8008. }
  8009. /**
  8010. * Assert if a notification was sent based on a truth-test callback.
  8011. *
  8012. * @param mixed $notifiable
  8013. * @param string|\Closure $notification
  8014. * @param callable|null $callback
  8015. * @return void
  8016. * @throws \Exception
  8017. * @static
  8018. */
  8019. public static function assertSentTo($notifiable, $notification, $callback = null)
  8020. {
  8021. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8022. $instance->assertSentTo($notifiable, $notification, $callback);
  8023. }
  8024. /**
  8025. * Assert if a notification was sent on-demand a number of times.
  8026. *
  8027. * @param string $notification
  8028. * @param int $times
  8029. * @return void
  8030. * @static
  8031. */
  8032. public static function assertSentOnDemandTimes($notification, $times = 1)
  8033. {
  8034. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8035. $instance->assertSentOnDemandTimes($notification, $times);
  8036. }
  8037. /**
  8038. * Assert if a notification was sent a number of times.
  8039. *
  8040. * @param mixed $notifiable
  8041. * @param string $notification
  8042. * @param int $times
  8043. * @return void
  8044. * @static
  8045. */
  8046. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  8047. {
  8048. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8049. $instance->assertSentToTimes($notifiable, $notification, $times);
  8050. }
  8051. /**
  8052. * Determine if a notification was sent based on a truth-test callback.
  8053. *
  8054. * @param mixed $notifiable
  8055. * @param string|\Closure $notification
  8056. * @param callable|null $callback
  8057. * @return void
  8058. * @throws \Exception
  8059. * @static
  8060. */
  8061. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  8062. {
  8063. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8064. $instance->assertNotSentTo($notifiable, $notification, $callback);
  8065. }
  8066. /**
  8067. * Assert that no notifications were sent.
  8068. *
  8069. * @return void
  8070. * @static
  8071. */
  8072. public static function assertNothingSent()
  8073. {
  8074. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8075. $instance->assertNothingSent();
  8076. }
  8077. /**
  8078. * Assert the total amount of times a notification was sent.
  8079. *
  8080. * @param string $notification
  8081. * @param int $expectedCount
  8082. * @return void
  8083. * @static
  8084. */
  8085. public static function assertSentTimes($notification, $expectedCount)
  8086. {
  8087. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8088. $instance->assertSentTimes($notification, $expectedCount);
  8089. }
  8090. /**
  8091. * Assert the total amount of times a notification was sent.
  8092. *
  8093. * @param int $expectedCount
  8094. * @param string $notification
  8095. * @return void
  8096. * @deprecated Use the assertSentTimes method instead
  8097. * @static
  8098. */
  8099. public static function assertTimesSent($expectedCount, $notification)
  8100. {
  8101. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8102. $instance->assertTimesSent($expectedCount, $notification);
  8103. }
  8104. /**
  8105. * Get all of the notifications matching a truth-test callback.
  8106. *
  8107. * @param mixed $notifiable
  8108. * @param string $notification
  8109. * @param callable|null $callback
  8110. * @return \Illuminate\Support\Collection
  8111. * @static
  8112. */
  8113. public static function sent($notifiable, $notification, $callback = null)
  8114. {
  8115. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8116. return $instance->sent($notifiable, $notification, $callback);
  8117. }
  8118. /**
  8119. * Determine if there are more notifications left to inspect.
  8120. *
  8121. * @param mixed $notifiable
  8122. * @param string $notification
  8123. * @return bool
  8124. * @static
  8125. */
  8126. public static function hasSent($notifiable, $notification)
  8127. {
  8128. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8129. return $instance->hasSent($notifiable, $notification);
  8130. }
  8131. /**
  8132. * Register a custom macro.
  8133. *
  8134. * @param string $name
  8135. * @param object|callable $macro
  8136. * @return void
  8137. * @static
  8138. */
  8139. public static function macro($name, $macro)
  8140. {
  8141. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  8142. }
  8143. /**
  8144. * Mix another object into the class.
  8145. *
  8146. * @param object $mixin
  8147. * @param bool $replace
  8148. * @return void
  8149. * @throws \ReflectionException
  8150. * @static
  8151. */
  8152. public static function mixin($mixin, $replace = true)
  8153. {
  8154. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  8155. }
  8156. /**
  8157. * Checks if macro is registered.
  8158. *
  8159. * @param string $name
  8160. * @return bool
  8161. * @static
  8162. */
  8163. public static function hasMacro($name)
  8164. {
  8165. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  8166. }
  8167. /**
  8168. * Flush the existing macros.
  8169. *
  8170. * @return void
  8171. * @static
  8172. */
  8173. public static function flushMacros()
  8174. {
  8175. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  8176. }
  8177. }
  8178. /**
  8179. *
  8180. *
  8181. * @method static mixed reset(array $credentials, \Closure $callback)
  8182. * @method static string sendResetLink(array $credentials, \Closure $callback = null)
  8183. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  8184. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8185. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8186. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  8187. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  8188. * @see \Illuminate\Auth\Passwords\PasswordBroker
  8189. */
  8190. class Password {
  8191. /**
  8192. * Attempt to get the broker from the local cache.
  8193. *
  8194. * @param string|null $name
  8195. * @return \Illuminate\Contracts\Auth\PasswordBroker
  8196. * @static
  8197. */
  8198. public static function broker($name = null)
  8199. {
  8200. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8201. return $instance->broker($name);
  8202. }
  8203. /**
  8204. * Get the default password broker name.
  8205. *
  8206. * @return string
  8207. * @static
  8208. */
  8209. public static function getDefaultDriver()
  8210. {
  8211. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8212. return $instance->getDefaultDriver();
  8213. }
  8214. /**
  8215. * Set the default password broker name.
  8216. *
  8217. * @param string $name
  8218. * @return void
  8219. * @static
  8220. */
  8221. public static function setDefaultDriver($name)
  8222. {
  8223. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8224. $instance->setDefaultDriver($name);
  8225. }
  8226. }
  8227. /**
  8228. *
  8229. *
  8230. * @see \Illuminate\Queue\QueueManager
  8231. * @see \Illuminate\Queue\Queue
  8232. */
  8233. class Queue {
  8234. /**
  8235. * Register an event listener for the before job event.
  8236. *
  8237. * @param mixed $callback
  8238. * @return void
  8239. * @static
  8240. */
  8241. public static function before($callback)
  8242. {
  8243. /** @var \Illuminate\Queue\QueueManager $instance */
  8244. $instance->before($callback);
  8245. }
  8246. /**
  8247. * Register an event listener for the after job event.
  8248. *
  8249. * @param mixed $callback
  8250. * @return void
  8251. * @static
  8252. */
  8253. public static function after($callback)
  8254. {
  8255. /** @var \Illuminate\Queue\QueueManager $instance */
  8256. $instance->after($callback);
  8257. }
  8258. /**
  8259. * Register an event listener for the exception occurred job event.
  8260. *
  8261. * @param mixed $callback
  8262. * @return void
  8263. * @static
  8264. */
  8265. public static function exceptionOccurred($callback)
  8266. {
  8267. /** @var \Illuminate\Queue\QueueManager $instance */
  8268. $instance->exceptionOccurred($callback);
  8269. }
  8270. /**
  8271. * Register an event listener for the daemon queue loop.
  8272. *
  8273. * @param mixed $callback
  8274. * @return void
  8275. * @static
  8276. */
  8277. public static function looping($callback)
  8278. {
  8279. /** @var \Illuminate\Queue\QueueManager $instance */
  8280. $instance->looping($callback);
  8281. }
  8282. /**
  8283. * Register an event listener for the failed job event.
  8284. *
  8285. * @param mixed $callback
  8286. * @return void
  8287. * @static
  8288. */
  8289. public static function failing($callback)
  8290. {
  8291. /** @var \Illuminate\Queue\QueueManager $instance */
  8292. $instance->failing($callback);
  8293. }
  8294. /**
  8295. * Register an event listener for the daemon queue stopping.
  8296. *
  8297. * @param mixed $callback
  8298. * @return void
  8299. * @static
  8300. */
  8301. public static function stopping($callback)
  8302. {
  8303. /** @var \Illuminate\Queue\QueueManager $instance */
  8304. $instance->stopping($callback);
  8305. }
  8306. /**
  8307. * Determine if the driver is connected.
  8308. *
  8309. * @param string|null $name
  8310. * @return bool
  8311. * @static
  8312. */
  8313. public static function connected($name = null)
  8314. {
  8315. /** @var \Illuminate\Queue\QueueManager $instance */
  8316. return $instance->connected($name);
  8317. }
  8318. /**
  8319. * Resolve a queue connection instance.
  8320. *
  8321. * @param string|null $name
  8322. * @return \Illuminate\Contracts\Queue\Queue
  8323. * @static
  8324. */
  8325. public static function connection($name = null)
  8326. {
  8327. /** @var \Illuminate\Queue\QueueManager $instance */
  8328. return $instance->connection($name);
  8329. }
  8330. /**
  8331. * Add a queue connection resolver.
  8332. *
  8333. * @param string $driver
  8334. * @param \Closure $resolver
  8335. * @return void
  8336. * @static
  8337. */
  8338. public static function extend($driver, $resolver)
  8339. {
  8340. /** @var \Illuminate\Queue\QueueManager $instance */
  8341. $instance->extend($driver, $resolver);
  8342. }
  8343. /**
  8344. * Add a queue connection resolver.
  8345. *
  8346. * @param string $driver
  8347. * @param \Closure $resolver
  8348. * @return void
  8349. * @static
  8350. */
  8351. public static function addConnector($driver, $resolver)
  8352. {
  8353. /** @var \Illuminate\Queue\QueueManager $instance */
  8354. $instance->addConnector($driver, $resolver);
  8355. }
  8356. /**
  8357. * Get the name of the default queue connection.
  8358. *
  8359. * @return string
  8360. * @static
  8361. */
  8362. public static function getDefaultDriver()
  8363. {
  8364. /** @var \Illuminate\Queue\QueueManager $instance */
  8365. return $instance->getDefaultDriver();
  8366. }
  8367. /**
  8368. * Set the name of the default queue connection.
  8369. *
  8370. * @param string $name
  8371. * @return void
  8372. * @static
  8373. */
  8374. public static function setDefaultDriver($name)
  8375. {
  8376. /** @var \Illuminate\Queue\QueueManager $instance */
  8377. $instance->setDefaultDriver($name);
  8378. }
  8379. /**
  8380. * Get the full name for the given connection.
  8381. *
  8382. * @param string|null $connection
  8383. * @return string
  8384. * @static
  8385. */
  8386. public static function getName($connection = null)
  8387. {
  8388. /** @var \Illuminate\Queue\QueueManager $instance */
  8389. return $instance->getName($connection);
  8390. }
  8391. /**
  8392. * Get the application instance used by the manager.
  8393. *
  8394. * @return \Illuminate\Contracts\Foundation\Application
  8395. * @static
  8396. */
  8397. public static function getApplication()
  8398. {
  8399. /** @var \Illuminate\Queue\QueueManager $instance */
  8400. return $instance->getApplication();
  8401. }
  8402. /**
  8403. * Set the application instance used by the manager.
  8404. *
  8405. * @param \Illuminate\Contracts\Foundation\Application $app
  8406. * @return \Illuminate\Queue\QueueManager
  8407. * @static
  8408. */
  8409. public static function setApplication($app)
  8410. {
  8411. /** @var \Illuminate\Queue\QueueManager $instance */
  8412. return $instance->setApplication($app);
  8413. }
  8414. /**
  8415. * Assert if a job was pushed based on a truth-test callback.
  8416. *
  8417. * @param string|\Closure $job
  8418. * @param callable|int|null $callback
  8419. * @return void
  8420. * @static
  8421. */
  8422. public static function assertPushed($job, $callback = null)
  8423. {
  8424. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8425. $instance->assertPushed($job, $callback);
  8426. }
  8427. /**
  8428. * Assert if a job was pushed based on a truth-test callback.
  8429. *
  8430. * @param string $queue
  8431. * @param string|\Closure $job
  8432. * @param callable|null $callback
  8433. * @return void
  8434. * @static
  8435. */
  8436. public static function assertPushedOn($queue, $job, $callback = null)
  8437. {
  8438. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8439. $instance->assertPushedOn($queue, $job, $callback);
  8440. }
  8441. /**
  8442. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  8443. *
  8444. * @param string $job
  8445. * @param array $expectedChain
  8446. * @param callable|null $callback
  8447. * @return void
  8448. * @static
  8449. */
  8450. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  8451. {
  8452. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8453. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  8454. }
  8455. /**
  8456. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  8457. *
  8458. * @param string $job
  8459. * @param callable|null $callback
  8460. * @return void
  8461. * @static
  8462. */
  8463. public static function assertPushedWithoutChain($job, $callback = null)
  8464. {
  8465. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8466. $instance->assertPushedWithoutChain($job, $callback);
  8467. }
  8468. /**
  8469. * Determine if a job was pushed based on a truth-test callback.
  8470. *
  8471. * @param string|\Closure $job
  8472. * @param callable|null $callback
  8473. * @return void
  8474. * @static
  8475. */
  8476. public static function assertNotPushed($job, $callback = null)
  8477. {
  8478. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8479. $instance->assertNotPushed($job, $callback);
  8480. }
  8481. /**
  8482. * Assert that no jobs were pushed.
  8483. *
  8484. * @return void
  8485. * @static
  8486. */
  8487. public static function assertNothingPushed()
  8488. {
  8489. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8490. $instance->assertNothingPushed();
  8491. }
  8492. /**
  8493. * Get all of the jobs matching a truth-test callback.
  8494. *
  8495. * @param string $job
  8496. * @param callable|null $callback
  8497. * @return \Illuminate\Support\Collection
  8498. * @static
  8499. */
  8500. public static function pushed($job, $callback = null)
  8501. {
  8502. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8503. return $instance->pushed($job, $callback);
  8504. }
  8505. /**
  8506. * Determine if there are any stored jobs for a given class.
  8507. *
  8508. * @param string $job
  8509. * @return bool
  8510. * @static
  8511. */
  8512. public static function hasPushed($job)
  8513. {
  8514. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8515. return $instance->hasPushed($job);
  8516. }
  8517. /**
  8518. * Get the size of the queue.
  8519. *
  8520. * @param string|null $queue
  8521. * @return int
  8522. * @static
  8523. */
  8524. public static function size($queue = null)
  8525. {
  8526. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8527. return $instance->size($queue);
  8528. }
  8529. /**
  8530. * Push a new job onto the queue.
  8531. *
  8532. * @param string|object $job
  8533. * @param mixed $data
  8534. * @param string|null $queue
  8535. * @return mixed
  8536. * @static
  8537. */
  8538. public static function push($job, $data = '', $queue = null)
  8539. {
  8540. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8541. return $instance->push($job, $data, $queue);
  8542. }
  8543. /**
  8544. * Push a raw payload onto the queue.
  8545. *
  8546. * @param string $payload
  8547. * @param string|null $queue
  8548. * @param array $options
  8549. * @return mixed
  8550. * @static
  8551. */
  8552. public static function pushRaw($payload, $queue = null, $options = [])
  8553. {
  8554. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8555. return $instance->pushRaw($payload, $queue, $options);
  8556. }
  8557. /**
  8558. * Push a new job onto the queue after a delay.
  8559. *
  8560. * @param \DateTimeInterface|\DateInterval|int $delay
  8561. * @param string|object $job
  8562. * @param mixed $data
  8563. * @param string|null $queue
  8564. * @return mixed
  8565. * @static
  8566. */
  8567. public static function later($delay, $job, $data = '', $queue = null)
  8568. {
  8569. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8570. return $instance->later($delay, $job, $data, $queue);
  8571. }
  8572. /**
  8573. * Push a new job onto the queue.
  8574. *
  8575. * @param string $queue
  8576. * @param string|object $job
  8577. * @param mixed $data
  8578. * @return mixed
  8579. * @static
  8580. */
  8581. public static function pushOn($queue, $job, $data = '')
  8582. {
  8583. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8584. return $instance->pushOn($queue, $job, $data);
  8585. }
  8586. /**
  8587. * Push a new job onto the queue after a delay.
  8588. *
  8589. * @param string $queue
  8590. * @param \DateTimeInterface|\DateInterval|int $delay
  8591. * @param string|object $job
  8592. * @param mixed $data
  8593. * @return mixed
  8594. * @static
  8595. */
  8596. public static function laterOn($queue, $delay, $job, $data = '')
  8597. {
  8598. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8599. return $instance->laterOn($queue, $delay, $job, $data);
  8600. }
  8601. /**
  8602. * Pop the next job off of the queue.
  8603. *
  8604. * @param string|null $queue
  8605. * @return \Illuminate\Contracts\Queue\Job|null
  8606. * @static
  8607. */
  8608. public static function pop($queue = null)
  8609. {
  8610. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8611. return $instance->pop($queue);
  8612. }
  8613. /**
  8614. * Push an array of jobs onto the queue.
  8615. *
  8616. * @param array $jobs
  8617. * @param mixed $data
  8618. * @param string|null $queue
  8619. * @return mixed
  8620. * @static
  8621. */
  8622. public static function bulk($jobs, $data = '', $queue = null)
  8623. {
  8624. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8625. return $instance->bulk($jobs, $data, $queue);
  8626. }
  8627. /**
  8628. * Get the jobs that have been pushed.
  8629. *
  8630. * @return array
  8631. * @static
  8632. */
  8633. public static function pushedJobs()
  8634. {
  8635. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8636. return $instance->pushedJobs();
  8637. }
  8638. /**
  8639. * Get the connection name for the queue.
  8640. *
  8641. * @return string
  8642. * @static
  8643. */
  8644. public static function getConnectionName()
  8645. {
  8646. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8647. return $instance->getConnectionName();
  8648. }
  8649. /**
  8650. * Set the connection name for the queue.
  8651. *
  8652. * @param string $name
  8653. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  8654. * @static
  8655. */
  8656. public static function setConnectionName($name)
  8657. {
  8658. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8659. return $instance->setConnectionName($name);
  8660. }
  8661. /**
  8662. * Get the backoff for an object-based queue handler.
  8663. *
  8664. * @param mixed $job
  8665. * @return mixed
  8666. * @static
  8667. */
  8668. public static function getJobBackoff($job)
  8669. { //Method inherited from \Illuminate\Queue\Queue
  8670. /** @var \Illuminate\Queue\SyncQueue $instance */
  8671. return $instance->getJobBackoff($job);
  8672. }
  8673. /**
  8674. * Get the expiration timestamp for an object-based queue handler.
  8675. *
  8676. * @param mixed $job
  8677. * @return mixed
  8678. * @static
  8679. */
  8680. public static function getJobExpiration($job)
  8681. { //Method inherited from \Illuminate\Queue\Queue
  8682. /** @var \Illuminate\Queue\SyncQueue $instance */
  8683. return $instance->getJobExpiration($job);
  8684. }
  8685. /**
  8686. * Register a callback to be executed when creating job payloads.
  8687. *
  8688. * @param callable|null $callback
  8689. * @return void
  8690. * @static
  8691. */
  8692. public static function createPayloadUsing($callback)
  8693. { //Method inherited from \Illuminate\Queue\Queue
  8694. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  8695. }
  8696. /**
  8697. * Get the container instance being used by the connection.
  8698. *
  8699. * @return \Illuminate\Container\Container
  8700. * @static
  8701. */
  8702. public static function getContainer()
  8703. { //Method inherited from \Illuminate\Queue\Queue
  8704. /** @var \Illuminate\Queue\SyncQueue $instance */
  8705. return $instance->getContainer();
  8706. }
  8707. /**
  8708. * Set the IoC container instance.
  8709. *
  8710. * @param \Illuminate\Container\Container $container
  8711. * @return void
  8712. * @static
  8713. */
  8714. public static function setContainer($container)
  8715. { //Method inherited from \Illuminate\Queue\Queue
  8716. /** @var \Illuminate\Queue\SyncQueue $instance */
  8717. $instance->setContainer($container);
  8718. }
  8719. }
  8720. /**
  8721. *
  8722. *
  8723. * @see \Illuminate\Routing\Redirector
  8724. */
  8725. class Redirect {
  8726. /**
  8727. * Create a new redirect response to the "home" route.
  8728. *
  8729. * @param int $status
  8730. * @return \Illuminate\Http\RedirectResponse
  8731. * @static
  8732. */
  8733. public static function home($status = 302)
  8734. {
  8735. /** @var \Illuminate\Routing\Redirector $instance */
  8736. return $instance->home($status);
  8737. }
  8738. /**
  8739. * Create a new redirect response to the previous location.
  8740. *
  8741. * @param int $status
  8742. * @param array $headers
  8743. * @param mixed $fallback
  8744. * @return \Illuminate\Http\RedirectResponse
  8745. * @static
  8746. */
  8747. public static function back($status = 302, $headers = [], $fallback = false)
  8748. {
  8749. /** @var \Illuminate\Routing\Redirector $instance */
  8750. return $instance->back($status, $headers, $fallback);
  8751. }
  8752. /**
  8753. * Create a new redirect response to the current URI.
  8754. *
  8755. * @param int $status
  8756. * @param array $headers
  8757. * @return \Illuminate\Http\RedirectResponse
  8758. * @static
  8759. */
  8760. public static function refresh($status = 302, $headers = [])
  8761. {
  8762. /** @var \Illuminate\Routing\Redirector $instance */
  8763. return $instance->refresh($status, $headers);
  8764. }
  8765. /**
  8766. * Create a new redirect response, while putting the current URL in the session.
  8767. *
  8768. * @param string $path
  8769. * @param int $status
  8770. * @param array $headers
  8771. * @param bool|null $secure
  8772. * @return \Illuminate\Http\RedirectResponse
  8773. * @static
  8774. */
  8775. public static function guest($path, $status = 302, $headers = [], $secure = null)
  8776. {
  8777. /** @var \Illuminate\Routing\Redirector $instance */
  8778. return $instance->guest($path, $status, $headers, $secure);
  8779. }
  8780. /**
  8781. * Create a new redirect response to the previously intended location.
  8782. *
  8783. * @param string $default
  8784. * @param int $status
  8785. * @param array $headers
  8786. * @param bool|null $secure
  8787. * @return \Illuminate\Http\RedirectResponse
  8788. * @static
  8789. */
  8790. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  8791. {
  8792. /** @var \Illuminate\Routing\Redirector $instance */
  8793. return $instance->intended($default, $status, $headers, $secure);
  8794. }
  8795. /**
  8796. * Set the intended url.
  8797. *
  8798. * @param string $url
  8799. * @return void
  8800. * @static
  8801. */
  8802. public static function setIntendedUrl($url)
  8803. {
  8804. /** @var \Illuminate\Routing\Redirector $instance */
  8805. $instance->setIntendedUrl($url);
  8806. }
  8807. /**
  8808. * Create a new redirect response to the given path.
  8809. *
  8810. * @param string $path
  8811. * @param int $status
  8812. * @param array $headers
  8813. * @param bool|null $secure
  8814. * @return \Illuminate\Http\RedirectResponse
  8815. * @static
  8816. */
  8817. public static function to($path, $status = 302, $headers = [], $secure = null)
  8818. {
  8819. /** @var \Illuminate\Routing\Redirector $instance */
  8820. return $instance->to($path, $status, $headers, $secure);
  8821. }
  8822. /**
  8823. * Create a new redirect response to an external URL (no validation).
  8824. *
  8825. * @param string $path
  8826. * @param int $status
  8827. * @param array $headers
  8828. * @return \Illuminate\Http\RedirectResponse
  8829. * @static
  8830. */
  8831. public static function away($path, $status = 302, $headers = [])
  8832. {
  8833. /** @var \Illuminate\Routing\Redirector $instance */
  8834. return $instance->away($path, $status, $headers);
  8835. }
  8836. /**
  8837. * Create a new redirect response to the given HTTPS path.
  8838. *
  8839. * @param string $path
  8840. * @param int $status
  8841. * @param array $headers
  8842. * @return \Illuminate\Http\RedirectResponse
  8843. * @static
  8844. */
  8845. public static function secure($path, $status = 302, $headers = [])
  8846. {
  8847. /** @var \Illuminate\Routing\Redirector $instance */
  8848. return $instance->secure($path, $status, $headers);
  8849. }
  8850. /**
  8851. * Create a new redirect response to a named route.
  8852. *
  8853. * @param string $route
  8854. * @param mixed $parameters
  8855. * @param int $status
  8856. * @param array $headers
  8857. * @return \Illuminate\Http\RedirectResponse
  8858. * @static
  8859. */
  8860. public static function route($route, $parameters = [], $status = 302, $headers = [])
  8861. {
  8862. /** @var \Illuminate\Routing\Redirector $instance */
  8863. return $instance->route($route, $parameters, $status, $headers);
  8864. }
  8865. /**
  8866. * Create a new redirect response to a signed named route.
  8867. *
  8868. * @param string $route
  8869. * @param mixed $parameters
  8870. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  8871. * @param int $status
  8872. * @param array $headers
  8873. * @return \Illuminate\Http\RedirectResponse
  8874. * @static
  8875. */
  8876. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  8877. {
  8878. /** @var \Illuminate\Routing\Redirector $instance */
  8879. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  8880. }
  8881. /**
  8882. * Create a new redirect response to a signed named route.
  8883. *
  8884. * @param string $route
  8885. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  8886. * @param mixed $parameters
  8887. * @param int $status
  8888. * @param array $headers
  8889. * @return \Illuminate\Http\RedirectResponse
  8890. * @static
  8891. */
  8892. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  8893. {
  8894. /** @var \Illuminate\Routing\Redirector $instance */
  8895. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  8896. }
  8897. /**
  8898. * Create a new redirect response to a controller action.
  8899. *
  8900. * @param string|array $action
  8901. * @param mixed $parameters
  8902. * @param int $status
  8903. * @param array $headers
  8904. * @return \Illuminate\Http\RedirectResponse
  8905. * @static
  8906. */
  8907. public static function action($action, $parameters = [], $status = 302, $headers = [])
  8908. {
  8909. /** @var \Illuminate\Routing\Redirector $instance */
  8910. return $instance->action($action, $parameters, $status, $headers);
  8911. }
  8912. /**
  8913. * Get the URL generator instance.
  8914. *
  8915. * @return \Illuminate\Routing\UrlGenerator
  8916. * @static
  8917. */
  8918. public static function getUrlGenerator()
  8919. {
  8920. /** @var \Illuminate\Routing\Redirector $instance */
  8921. return $instance->getUrlGenerator();
  8922. }
  8923. /**
  8924. * Set the active session store.
  8925. *
  8926. * @param \Illuminate\Session\Store $session
  8927. * @return void
  8928. * @static
  8929. */
  8930. public static function setSession($session)
  8931. {
  8932. /** @var \Illuminate\Routing\Redirector $instance */
  8933. $instance->setSession($session);
  8934. }
  8935. /**
  8936. * Register a custom macro.
  8937. *
  8938. * @param string $name
  8939. * @param object|callable $macro
  8940. * @return void
  8941. * @static
  8942. */
  8943. public static function macro($name, $macro)
  8944. {
  8945. \Illuminate\Routing\Redirector::macro($name, $macro);
  8946. }
  8947. /**
  8948. * Mix another object into the class.
  8949. *
  8950. * @param object $mixin
  8951. * @param bool $replace
  8952. * @return void
  8953. * @throws \ReflectionException
  8954. * @static
  8955. */
  8956. public static function mixin($mixin, $replace = true)
  8957. {
  8958. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  8959. }
  8960. /**
  8961. * Checks if macro is registered.
  8962. *
  8963. * @param string $name
  8964. * @return bool
  8965. * @static
  8966. */
  8967. public static function hasMacro($name)
  8968. {
  8969. return \Illuminate\Routing\Redirector::hasMacro($name);
  8970. }
  8971. /**
  8972. * Flush the existing macros.
  8973. *
  8974. * @return void
  8975. * @static
  8976. */
  8977. public static function flushMacros()
  8978. {
  8979. \Illuminate\Routing\Redirector::flushMacros();
  8980. }
  8981. }
  8982. /**
  8983. *
  8984. *
  8985. * @method static \Illuminate\Redis\Limiters\ConcurrencyLimiterBuilder funnel(string $name)
  8986. * @method static \Illuminate\Redis\Limiters\DurationLimiterBuilder throttle(string $name)
  8987. * @see \Illuminate\Redis\RedisManager
  8988. * @see \Illuminate\Contracts\Redis\Factory
  8989. */
  8990. class Redis {
  8991. /**
  8992. * Get a Redis connection by name.
  8993. *
  8994. * @param string|null $name
  8995. * @return \Illuminate\Redis\Connections\Connection
  8996. * @static
  8997. */
  8998. public static function connection($name = null)
  8999. {
  9000. /** @var \Illuminate\Redis\RedisManager $instance */
  9001. return $instance->connection($name);
  9002. }
  9003. /**
  9004. * Resolve the given connection by name.
  9005. *
  9006. * @param string|null $name
  9007. * @return \Illuminate\Redis\Connections\Connection
  9008. * @throws \InvalidArgumentException
  9009. * @static
  9010. */
  9011. public static function resolve($name = null)
  9012. {
  9013. /** @var \Illuminate\Redis\RedisManager $instance */
  9014. return $instance->resolve($name);
  9015. }
  9016. /**
  9017. * Return all of the created connections.
  9018. *
  9019. * @return array
  9020. * @static
  9021. */
  9022. public static function connections()
  9023. {
  9024. /** @var \Illuminate\Redis\RedisManager $instance */
  9025. return $instance->connections();
  9026. }
  9027. /**
  9028. * Enable the firing of Redis command events.
  9029. *
  9030. * @return void
  9031. * @static
  9032. */
  9033. public static function enableEvents()
  9034. {
  9035. /** @var \Illuminate\Redis\RedisManager $instance */
  9036. $instance->enableEvents();
  9037. }
  9038. /**
  9039. * Disable the firing of Redis command events.
  9040. *
  9041. * @return void
  9042. * @static
  9043. */
  9044. public static function disableEvents()
  9045. {
  9046. /** @var \Illuminate\Redis\RedisManager $instance */
  9047. $instance->disableEvents();
  9048. }
  9049. /**
  9050. * Set the default driver.
  9051. *
  9052. * @param string $driver
  9053. * @return void
  9054. * @static
  9055. */
  9056. public static function setDriver($driver)
  9057. {
  9058. /** @var \Illuminate\Redis\RedisManager $instance */
  9059. $instance->setDriver($driver);
  9060. }
  9061. /**
  9062. * Disconnect the given connection and remove from local cache.
  9063. *
  9064. * @param string|null $name
  9065. * @return void
  9066. * @static
  9067. */
  9068. public static function purge($name = null)
  9069. {
  9070. /** @var \Illuminate\Redis\RedisManager $instance */
  9071. $instance->purge($name);
  9072. }
  9073. /**
  9074. * Register a custom driver creator Closure.
  9075. *
  9076. * @param string $driver
  9077. * @param \Closure $callback
  9078. * @return \Illuminate\Redis\RedisManager
  9079. * @static
  9080. */
  9081. public static function extend($driver, $callback)
  9082. {
  9083. /** @var \Illuminate\Redis\RedisManager $instance */
  9084. return $instance->extend($driver, $callback);
  9085. }
  9086. }
  9087. /**
  9088. *
  9089. *
  9090. * @method static mixed filterFiles(mixed $files)
  9091. * @see \Illuminate\Http\Request
  9092. */
  9093. class Request {
  9094. /**
  9095. * Create a new Illuminate HTTP request from server variables.
  9096. *
  9097. * @return static
  9098. * @static
  9099. */
  9100. public static function capture()
  9101. {
  9102. return \Illuminate\Http\Request::capture();
  9103. }
  9104. /**
  9105. * Return the Request instance.
  9106. *
  9107. * @return \Illuminate\Http\Request
  9108. * @static
  9109. */
  9110. public static function instance()
  9111. {
  9112. /** @var \Illuminate\Http\Request $instance */
  9113. return $instance->instance();
  9114. }
  9115. /**
  9116. * Get the request method.
  9117. *
  9118. * @return string
  9119. * @static
  9120. */
  9121. public static function method()
  9122. {
  9123. /** @var \Illuminate\Http\Request $instance */
  9124. return $instance->method();
  9125. }
  9126. /**
  9127. * Get the root URL for the application.
  9128. *
  9129. * @return string
  9130. * @static
  9131. */
  9132. public static function root()
  9133. {
  9134. /** @var \Illuminate\Http\Request $instance */
  9135. return $instance->root();
  9136. }
  9137. /**
  9138. * Get the URL (no query string) for the request.
  9139. *
  9140. * @return string
  9141. * @static
  9142. */
  9143. public static function url()
  9144. {
  9145. /** @var \Illuminate\Http\Request $instance */
  9146. return $instance->url();
  9147. }
  9148. /**
  9149. * Get the full URL for the request.
  9150. *
  9151. * @return string
  9152. * @static
  9153. */
  9154. public static function fullUrl()
  9155. {
  9156. /** @var \Illuminate\Http\Request $instance */
  9157. return $instance->fullUrl();
  9158. }
  9159. /**
  9160. * Get the full URL for the request with the added query string parameters.
  9161. *
  9162. * @param array $query
  9163. * @return string
  9164. * @static
  9165. */
  9166. public static function fullUrlWithQuery($query)
  9167. {
  9168. /** @var \Illuminate\Http\Request $instance */
  9169. return $instance->fullUrlWithQuery($query);
  9170. }
  9171. /**
  9172. * Get the full URL for the request without the given query string parameters.
  9173. *
  9174. * @param array|string $query
  9175. * @return string
  9176. * @static
  9177. */
  9178. public static function fullUrlWithoutQuery($keys)
  9179. {
  9180. /** @var \Illuminate\Http\Request $instance */
  9181. return $instance->fullUrlWithoutQuery($keys);
  9182. }
  9183. /**
  9184. * Get the current path info for the request.
  9185. *
  9186. * @return string
  9187. * @static
  9188. */
  9189. public static function path()
  9190. {
  9191. /** @var \Illuminate\Http\Request $instance */
  9192. return $instance->path();
  9193. }
  9194. /**
  9195. * Get the current decoded path info for the request.
  9196. *
  9197. * @return string
  9198. * @static
  9199. */
  9200. public static function decodedPath()
  9201. {
  9202. /** @var \Illuminate\Http\Request $instance */
  9203. return $instance->decodedPath();
  9204. }
  9205. /**
  9206. * Get a segment from the URI (1 based index).
  9207. *
  9208. * @param int $index
  9209. * @param string|null $default
  9210. * @return string|null
  9211. * @static
  9212. */
  9213. public static function segment($index, $default = null)
  9214. {
  9215. /** @var \Illuminate\Http\Request $instance */
  9216. return $instance->segment($index, $default);
  9217. }
  9218. /**
  9219. * Get all of the segments for the request path.
  9220. *
  9221. * @return array
  9222. * @static
  9223. */
  9224. public static function segments()
  9225. {
  9226. /** @var \Illuminate\Http\Request $instance */
  9227. return $instance->segments();
  9228. }
  9229. /**
  9230. * Determine if the current request URI matches a pattern.
  9231. *
  9232. * @param mixed $patterns
  9233. * @return bool
  9234. * @static
  9235. */
  9236. public static function is(...$patterns)
  9237. {
  9238. /** @var \Illuminate\Http\Request $instance */
  9239. return $instance->is(...$patterns);
  9240. }
  9241. /**
  9242. * Determine if the route name matches a given pattern.
  9243. *
  9244. * @param mixed $patterns
  9245. * @return bool
  9246. * @static
  9247. */
  9248. public static function routeIs(...$patterns)
  9249. {
  9250. /** @var \Illuminate\Http\Request $instance */
  9251. return $instance->routeIs(...$patterns);
  9252. }
  9253. /**
  9254. * Determine if the current request URL and query string match a pattern.
  9255. *
  9256. * @param mixed $patterns
  9257. * @return bool
  9258. * @static
  9259. */
  9260. public static function fullUrlIs(...$patterns)
  9261. {
  9262. /** @var \Illuminate\Http\Request $instance */
  9263. return $instance->fullUrlIs(...$patterns);
  9264. }
  9265. /**
  9266. * Determine if the request is the result of an AJAX call.
  9267. *
  9268. * @return bool
  9269. * @static
  9270. */
  9271. public static function ajax()
  9272. {
  9273. /** @var \Illuminate\Http\Request $instance */
  9274. return $instance->ajax();
  9275. }
  9276. /**
  9277. * Determine if the request is the result of a PJAX call.
  9278. *
  9279. * @return bool
  9280. * @static
  9281. */
  9282. public static function pjax()
  9283. {
  9284. /** @var \Illuminate\Http\Request $instance */
  9285. return $instance->pjax();
  9286. }
  9287. /**
  9288. * Determine if the request is the result of a prefetch call.
  9289. *
  9290. * @return bool
  9291. * @static
  9292. */
  9293. public static function prefetch()
  9294. {
  9295. /** @var \Illuminate\Http\Request $instance */
  9296. return $instance->prefetch();
  9297. }
  9298. /**
  9299. * Determine if the request is over HTTPS.
  9300. *
  9301. * @return bool
  9302. * @static
  9303. */
  9304. public static function secure()
  9305. {
  9306. /** @var \Illuminate\Http\Request $instance */
  9307. return $instance->secure();
  9308. }
  9309. /**
  9310. * Get the client IP address.
  9311. *
  9312. * @return string|null
  9313. * @static
  9314. */
  9315. public static function ip()
  9316. {
  9317. /** @var \Illuminate\Http\Request $instance */
  9318. return $instance->ip();
  9319. }
  9320. /**
  9321. * Get the client IP addresses.
  9322. *
  9323. * @return array
  9324. * @static
  9325. */
  9326. public static function ips()
  9327. {
  9328. /** @var \Illuminate\Http\Request $instance */
  9329. return $instance->ips();
  9330. }
  9331. /**
  9332. * Get the client user agent.
  9333. *
  9334. * @return string|null
  9335. * @static
  9336. */
  9337. public static function userAgent()
  9338. {
  9339. /** @var \Illuminate\Http\Request $instance */
  9340. return $instance->userAgent();
  9341. }
  9342. /**
  9343. * Merge new input into the current request's input array.
  9344. *
  9345. * @param array $input
  9346. * @return \Illuminate\Http\Request
  9347. * @static
  9348. */
  9349. public static function merge($input)
  9350. {
  9351. /** @var \Illuminate\Http\Request $instance */
  9352. return $instance->merge($input);
  9353. }
  9354. /**
  9355. * Merge new input into the request's input, but only when that key is missing from the request.
  9356. *
  9357. * @param array $input
  9358. * @return \Illuminate\Http\Request
  9359. * @static
  9360. */
  9361. public static function mergeIfMissing($input)
  9362. {
  9363. /** @var \Illuminate\Http\Request $instance */
  9364. return $instance->mergeIfMissing($input);
  9365. }
  9366. /**
  9367. * Replace the input for the current request.
  9368. *
  9369. * @param array $input
  9370. * @return \Illuminate\Http\Request
  9371. * @static
  9372. */
  9373. public static function replace($input)
  9374. {
  9375. /** @var \Illuminate\Http\Request $instance */
  9376. return $instance->replace($input);
  9377. }
  9378. /**
  9379. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  9380. *
  9381. * Instead, you may use the "input" method.
  9382. *
  9383. * @param string $key
  9384. * @param mixed $default
  9385. * @return mixed
  9386. * @static
  9387. */
  9388. public static function get($key, $default = null)
  9389. {
  9390. /** @var \Illuminate\Http\Request $instance */
  9391. return $instance->get($key, $default);
  9392. }
  9393. /**
  9394. * Get the JSON payload for the request.
  9395. *
  9396. * @param string|null $key
  9397. * @param mixed $default
  9398. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  9399. * @static
  9400. */
  9401. public static function json($key = null, $default = null)
  9402. {
  9403. /** @var \Illuminate\Http\Request $instance */
  9404. return $instance->json($key, $default);
  9405. }
  9406. /**
  9407. * Create a new request instance from the given Laravel request.
  9408. *
  9409. * @param \Illuminate\Http\Request $from
  9410. * @param \Illuminate\Http\Request|null $to
  9411. * @return static
  9412. * @static
  9413. */
  9414. public static function createFrom($from, $to = null)
  9415. {
  9416. return \Illuminate\Http\Request::createFrom($from, $to);
  9417. }
  9418. /**
  9419. * Create an Illuminate request from a Symfony instance.
  9420. *
  9421. * @param \Symfony\Component\HttpFoundation\Request $request
  9422. * @return static
  9423. * @static
  9424. */
  9425. public static function createFromBase($request)
  9426. {
  9427. return \Illuminate\Http\Request::createFromBase($request);
  9428. }
  9429. /**
  9430. * Clones a request and overrides some of its parameters.
  9431. *
  9432. * @return static
  9433. * @param array|null $query The GET parameters
  9434. * @param array|null $request The POST parameters
  9435. * @param array|null $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9436. * @param array|null $cookies The COOKIE parameters
  9437. * @param array|null $files The FILES parameters
  9438. * @param array|null $server The SERVER parameters
  9439. * @return static
  9440. * @static
  9441. */
  9442. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  9443. {
  9444. /** @var \Illuminate\Http\Request $instance */
  9445. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  9446. }
  9447. /**
  9448. * Get the session associated with the request.
  9449. *
  9450. * @return \Illuminate\Session\Store
  9451. * @throws \RuntimeException
  9452. * @static
  9453. */
  9454. public static function session()
  9455. {
  9456. /** @var \Illuminate\Http\Request $instance */
  9457. return $instance->session();
  9458. }
  9459. /**
  9460. * Get the session associated with the request.
  9461. *
  9462. * @return \Illuminate\Session\Store|null
  9463. * @static
  9464. */
  9465. public static function getSession()
  9466. {
  9467. /** @var \Illuminate\Http\Request $instance */
  9468. return $instance->getSession();
  9469. }
  9470. /**
  9471. * Set the session instance on the request.
  9472. *
  9473. * @param \Illuminate\Contracts\Session\Session $session
  9474. * @return void
  9475. * @static
  9476. */
  9477. public static function setLaravelSession($session)
  9478. {
  9479. /** @var \Illuminate\Http\Request $instance */
  9480. $instance->setLaravelSession($session);
  9481. }
  9482. /**
  9483. * Get the user making the request.
  9484. *
  9485. * @param string|null $guard
  9486. * @return mixed
  9487. * @static
  9488. */
  9489. public static function user($guard = null)
  9490. {
  9491. /** @var \Illuminate\Http\Request $instance */
  9492. return $instance->user($guard);
  9493. }
  9494. /**
  9495. * Get the route handling the request.
  9496. *
  9497. * @param string|null $param
  9498. * @param mixed $default
  9499. * @return \Illuminate\Routing\Route|object|string|null
  9500. * @static
  9501. */
  9502. public static function route($param = null, $default = null)
  9503. {
  9504. /** @var \Illuminate\Http\Request $instance */
  9505. return $instance->route($param, $default);
  9506. }
  9507. /**
  9508. * Get a unique fingerprint for the request / route / IP address.
  9509. *
  9510. * @return string
  9511. * @throws \RuntimeException
  9512. * @static
  9513. */
  9514. public static function fingerprint()
  9515. {
  9516. /** @var \Illuminate\Http\Request $instance */
  9517. return $instance->fingerprint();
  9518. }
  9519. /**
  9520. * Set the JSON payload for the request.
  9521. *
  9522. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  9523. * @return \Illuminate\Http\Request
  9524. * @static
  9525. */
  9526. public static function setJson($json)
  9527. {
  9528. /** @var \Illuminate\Http\Request $instance */
  9529. return $instance->setJson($json);
  9530. }
  9531. /**
  9532. * Get the user resolver callback.
  9533. *
  9534. * @return \Closure
  9535. * @static
  9536. */
  9537. public static function getUserResolver()
  9538. {
  9539. /** @var \Illuminate\Http\Request $instance */
  9540. return $instance->getUserResolver();
  9541. }
  9542. /**
  9543. * Set the user resolver callback.
  9544. *
  9545. * @param \Closure $callback
  9546. * @return \Illuminate\Http\Request
  9547. * @static
  9548. */
  9549. public static function setUserResolver($callback)
  9550. {
  9551. /** @var \Illuminate\Http\Request $instance */
  9552. return $instance->setUserResolver($callback);
  9553. }
  9554. /**
  9555. * Get the route resolver callback.
  9556. *
  9557. * @return \Closure
  9558. * @static
  9559. */
  9560. public static function getRouteResolver()
  9561. {
  9562. /** @var \Illuminate\Http\Request $instance */
  9563. return $instance->getRouteResolver();
  9564. }
  9565. /**
  9566. * Set the route resolver callback.
  9567. *
  9568. * @param \Closure $callback
  9569. * @return \Illuminate\Http\Request
  9570. * @static
  9571. */
  9572. public static function setRouteResolver($callback)
  9573. {
  9574. /** @var \Illuminate\Http\Request $instance */
  9575. return $instance->setRouteResolver($callback);
  9576. }
  9577. /**
  9578. * Get all of the input and files for the request.
  9579. *
  9580. * @return array
  9581. * @static
  9582. */
  9583. public static function toArray()
  9584. {
  9585. /** @var \Illuminate\Http\Request $instance */
  9586. return $instance->toArray();
  9587. }
  9588. /**
  9589. * Determine if the given offset exists.
  9590. *
  9591. * @param string $offset
  9592. * @return bool
  9593. * @static
  9594. */
  9595. public static function offsetExists($offset)
  9596. {
  9597. /** @var \Illuminate\Http\Request $instance */
  9598. return $instance->offsetExists($offset);
  9599. }
  9600. /**
  9601. * Get the value at the given offset.
  9602. *
  9603. * @param string $offset
  9604. * @return mixed
  9605. * @static
  9606. */
  9607. public static function offsetGet($offset)
  9608. {
  9609. /** @var \Illuminate\Http\Request $instance */
  9610. return $instance->offsetGet($offset);
  9611. }
  9612. /**
  9613. * Set the value at the given offset.
  9614. *
  9615. * @param string $offset
  9616. * @param mixed $value
  9617. * @return void
  9618. * @static
  9619. */
  9620. public static function offsetSet($offset, $value)
  9621. {
  9622. /** @var \Illuminate\Http\Request $instance */
  9623. $instance->offsetSet($offset, $value);
  9624. }
  9625. /**
  9626. * Remove the value at the given offset.
  9627. *
  9628. * @param string $offset
  9629. * @return void
  9630. * @static
  9631. */
  9632. public static function offsetUnset($offset)
  9633. {
  9634. /** @var \Illuminate\Http\Request $instance */
  9635. $instance->offsetUnset($offset);
  9636. }
  9637. /**
  9638. * Sets the parameters for this request.
  9639. *
  9640. * This method also re-initializes all properties.
  9641. *
  9642. * @param array $query The GET parameters
  9643. * @param array $request The POST parameters
  9644. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9645. * @param array $cookies The COOKIE parameters
  9646. * @param array $files The FILES parameters
  9647. * @param array $server The SERVER parameters
  9648. * @param string|resource|null $content The raw body data
  9649. * @static
  9650. */
  9651. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  9652. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9653. /** @var \Illuminate\Http\Request $instance */
  9654. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  9655. }
  9656. /**
  9657. * Creates a new request with values from PHP's super globals.
  9658. *
  9659. * @return static
  9660. * @static
  9661. */
  9662. public static function createFromGlobals()
  9663. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9664. return \Illuminate\Http\Request::createFromGlobals();
  9665. }
  9666. /**
  9667. * Creates a Request based on a given URI and configuration.
  9668. *
  9669. * The information contained in the URI always take precedence
  9670. * over the other information (server and parameters).
  9671. *
  9672. * @param string $uri The URI
  9673. * @param string $method The HTTP method
  9674. * @param array $parameters The query (GET) or request (POST) parameters
  9675. * @param array $cookies The request cookies ($_COOKIE)
  9676. * @param array $files The request files ($_FILES)
  9677. * @param array $server The server parameters ($_SERVER)
  9678. * @param string|resource|null $content The raw body data
  9679. * @return static
  9680. * @static
  9681. */
  9682. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  9683. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9684. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  9685. }
  9686. /**
  9687. * Sets a callable able to create a Request instance.
  9688. *
  9689. * This is mainly useful when you need to override the Request class
  9690. * to keep BC with an existing system. It should not be used for any
  9691. * other purpose.
  9692. *
  9693. * @static
  9694. */
  9695. public static function setFactory($callable)
  9696. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9697. return \Illuminate\Http\Request::setFactory($callable);
  9698. }
  9699. /**
  9700. * Overrides the PHP global variables according to this request instance.
  9701. *
  9702. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  9703. * $_FILES is never overridden, see rfc1867
  9704. *
  9705. * @static
  9706. */
  9707. public static function overrideGlobals()
  9708. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9709. /** @var \Illuminate\Http\Request $instance */
  9710. return $instance->overrideGlobals();
  9711. }
  9712. /**
  9713. * Sets a list of trusted proxies.
  9714. *
  9715. * You should only list the reverse proxies that you manage directly.
  9716. *
  9717. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  9718. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  9719. * @static
  9720. */
  9721. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  9722. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9723. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  9724. }
  9725. /**
  9726. * Gets the list of trusted proxies.
  9727. *
  9728. * @return array
  9729. * @static
  9730. */
  9731. public static function getTrustedProxies()
  9732. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9733. return \Illuminate\Http\Request::getTrustedProxies();
  9734. }
  9735. /**
  9736. * Gets the set of trusted headers from trusted proxies.
  9737. *
  9738. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  9739. * @static
  9740. */
  9741. public static function getTrustedHeaderSet()
  9742. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9743. return \Illuminate\Http\Request::getTrustedHeaderSet();
  9744. }
  9745. /**
  9746. * Sets a list of trusted host patterns.
  9747. *
  9748. * You should only list the hosts you manage using regexs.
  9749. *
  9750. * @param array $hostPatterns A list of trusted host patterns
  9751. * @static
  9752. */
  9753. public static function setTrustedHosts($hostPatterns)
  9754. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9755. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  9756. }
  9757. /**
  9758. * Gets the list of trusted host patterns.
  9759. *
  9760. * @return array
  9761. * @static
  9762. */
  9763. public static function getTrustedHosts()
  9764. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9765. return \Illuminate\Http\Request::getTrustedHosts();
  9766. }
  9767. /**
  9768. * Normalizes a query string.
  9769. *
  9770. * It builds a normalized query string, where keys/value pairs are alphabetized,
  9771. * have consistent escaping and unneeded delimiters are removed.
  9772. *
  9773. * @return string
  9774. * @static
  9775. */
  9776. public static function normalizeQueryString($qs)
  9777. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9778. return \Illuminate\Http\Request::normalizeQueryString($qs);
  9779. }
  9780. /**
  9781. * Enables support for the _method request parameter to determine the intended HTTP method.
  9782. *
  9783. * Be warned that enabling this feature might lead to CSRF issues in your code.
  9784. * Check that you are using CSRF tokens when required.
  9785. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  9786. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  9787. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  9788. *
  9789. * The HTTP method can only be overridden when the real HTTP method is POST.
  9790. *
  9791. * @static
  9792. */
  9793. public static function enableHttpMethodParameterOverride()
  9794. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9795. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  9796. }
  9797. /**
  9798. * Checks whether support for the _method request parameter is enabled.
  9799. *
  9800. * @return bool
  9801. * @static
  9802. */
  9803. public static function getHttpMethodParameterOverride()
  9804. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9805. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  9806. }
  9807. /**
  9808. * Whether the request contains a Session which was started in one of the
  9809. * previous requests.
  9810. *
  9811. * @return bool
  9812. * @static
  9813. */
  9814. public static function hasPreviousSession()
  9815. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9816. /** @var \Illuminate\Http\Request $instance */
  9817. return $instance->hasPreviousSession();
  9818. }
  9819. /**
  9820. * Whether the request contains a Session object.
  9821. *
  9822. * This method does not give any information about the state of the session object,
  9823. * like whether the session is started or not. It is just a way to check if this Request
  9824. * is associated with a Session instance.
  9825. *
  9826. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  9827. * @return bool
  9828. * @static
  9829. */
  9830. public static function hasSession()
  9831. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9832. /** @var \Illuminate\Http\Request $instance */
  9833. return $instance->hasSession();
  9834. }
  9835. /**
  9836. *
  9837. *
  9838. * @static
  9839. */
  9840. public static function setSession($session)
  9841. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9842. /** @var \Illuminate\Http\Request $instance */
  9843. return $instance->setSession($session);
  9844. }
  9845. /**
  9846. *
  9847. *
  9848. * @internal
  9849. * @param \Symfony\Component\HttpFoundation\callable(): SessionInterface $factory
  9850. * @static
  9851. */
  9852. public static function setSessionFactory($factory)
  9853. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9854. /** @var \Illuminate\Http\Request $instance */
  9855. return $instance->setSessionFactory($factory);
  9856. }
  9857. /**
  9858. * Returns the client IP addresses.
  9859. *
  9860. * In the returned array the most trusted IP address is first, and the
  9861. * least trusted one last. The "real" client IP address is the last one,
  9862. * but this is also the least trusted one. Trusted proxies are stripped.
  9863. *
  9864. * Use this method carefully; you should use getClientIp() instead.
  9865. *
  9866. * @return array
  9867. * @see getClientIp()
  9868. * @static
  9869. */
  9870. public static function getClientIps()
  9871. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9872. /** @var \Illuminate\Http\Request $instance */
  9873. return $instance->getClientIps();
  9874. }
  9875. /**
  9876. * Returns the client IP address.
  9877. *
  9878. * This method can read the client IP address from the "X-Forwarded-For" header
  9879. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  9880. * header value is a comma+space separated list of IP addresses, the left-most
  9881. * being the original client, and each successive proxy that passed the request
  9882. * adding the IP address where it received the request from.
  9883. *
  9884. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  9885. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  9886. * argument of the Request::setTrustedProxies() method instead.
  9887. *
  9888. * @return string|null
  9889. * @see getClientIps()
  9890. * @see https://wikipedia.org/wiki/X-Forwarded-For
  9891. * @static
  9892. */
  9893. public static function getClientIp()
  9894. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9895. /** @var \Illuminate\Http\Request $instance */
  9896. return $instance->getClientIp();
  9897. }
  9898. /**
  9899. * Returns current script name.
  9900. *
  9901. * @return string
  9902. * @static
  9903. */
  9904. public static function getScriptName()
  9905. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9906. /** @var \Illuminate\Http\Request $instance */
  9907. return $instance->getScriptName();
  9908. }
  9909. /**
  9910. * Returns the path being requested relative to the executed script.
  9911. *
  9912. * The path info always starts with a /.
  9913. *
  9914. * Suppose this request is instantiated from /mysite on localhost:
  9915. *
  9916. * * http://localhost/mysite returns an empty string
  9917. * * http://localhost/mysite/about returns '/about'
  9918. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  9919. * * http://localhost/mysite/about?var=1 returns '/about'
  9920. *
  9921. * @return string The raw path (i.e. not urldecoded)
  9922. * @static
  9923. */
  9924. public static function getPathInfo()
  9925. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9926. /** @var \Illuminate\Http\Request $instance */
  9927. return $instance->getPathInfo();
  9928. }
  9929. /**
  9930. * Returns the root path from which this request is executed.
  9931. *
  9932. * Suppose that an index.php file instantiates this request object:
  9933. *
  9934. * * http://localhost/index.php returns an empty string
  9935. * * http://localhost/index.php/page returns an empty string
  9936. * * http://localhost/web/index.php returns '/web'
  9937. * * http://localhost/we%20b/index.php returns '/we%20b'
  9938. *
  9939. * @return string The raw path (i.e. not urldecoded)
  9940. * @static
  9941. */
  9942. public static function getBasePath()
  9943. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9944. /** @var \Illuminate\Http\Request $instance */
  9945. return $instance->getBasePath();
  9946. }
  9947. /**
  9948. * Returns the root URL from which this request is executed.
  9949. *
  9950. * The base URL never ends with a /.
  9951. *
  9952. * This is similar to getBasePath(), except that it also includes the
  9953. * script filename (e.g. index.php) if one exists.
  9954. *
  9955. * @return string The raw URL (i.e. not urldecoded)
  9956. * @static
  9957. */
  9958. public static function getBaseUrl()
  9959. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9960. /** @var \Illuminate\Http\Request $instance */
  9961. return $instance->getBaseUrl();
  9962. }
  9963. /**
  9964. * Gets the request's scheme.
  9965. *
  9966. * @return string
  9967. * @static
  9968. */
  9969. public static function getScheme()
  9970. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9971. /** @var \Illuminate\Http\Request $instance */
  9972. return $instance->getScheme();
  9973. }
  9974. /**
  9975. * Returns the port on which the request is made.
  9976. *
  9977. * This method can read the client port from the "X-Forwarded-Port" header
  9978. * when trusted proxies were set via "setTrustedProxies()".
  9979. *
  9980. * The "X-Forwarded-Port" header must contain the client port.
  9981. *
  9982. * @return int|string|null Can be a string if fetched from the server bag
  9983. * @static
  9984. */
  9985. public static function getPort()
  9986. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9987. /** @var \Illuminate\Http\Request $instance */
  9988. return $instance->getPort();
  9989. }
  9990. /**
  9991. * Returns the user.
  9992. *
  9993. * @return string|null
  9994. * @static
  9995. */
  9996. public static function getUser()
  9997. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9998. /** @var \Illuminate\Http\Request $instance */
  9999. return $instance->getUser();
  10000. }
  10001. /**
  10002. * Returns the password.
  10003. *
  10004. * @return string|null
  10005. * @static
  10006. */
  10007. public static function getPassword()
  10008. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10009. /** @var \Illuminate\Http\Request $instance */
  10010. return $instance->getPassword();
  10011. }
  10012. /**
  10013. * Gets the user info.
  10014. *
  10015. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  10016. * @static
  10017. */
  10018. public static function getUserInfo()
  10019. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10020. /** @var \Illuminate\Http\Request $instance */
  10021. return $instance->getUserInfo();
  10022. }
  10023. /**
  10024. * Returns the HTTP host being requested.
  10025. *
  10026. * The port name will be appended to the host if it's non-standard.
  10027. *
  10028. * @return string
  10029. * @static
  10030. */
  10031. public static function getHttpHost()
  10032. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10033. /** @var \Illuminate\Http\Request $instance */
  10034. return $instance->getHttpHost();
  10035. }
  10036. /**
  10037. * Returns the requested URI (path and query string).
  10038. *
  10039. * @return string The raw URI (i.e. not URI decoded)
  10040. * @static
  10041. */
  10042. public static function getRequestUri()
  10043. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10044. /** @var \Illuminate\Http\Request $instance */
  10045. return $instance->getRequestUri();
  10046. }
  10047. /**
  10048. * Gets the scheme and HTTP host.
  10049. *
  10050. * If the URL was called with basic authentication, the user
  10051. * and the password are not added to the generated string.
  10052. *
  10053. * @return string
  10054. * @static
  10055. */
  10056. public static function getSchemeAndHttpHost()
  10057. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10058. /** @var \Illuminate\Http\Request $instance */
  10059. return $instance->getSchemeAndHttpHost();
  10060. }
  10061. /**
  10062. * Generates a normalized URI (URL) for the Request.
  10063. *
  10064. * @return string
  10065. * @see getQueryString()
  10066. * @static
  10067. */
  10068. public static function getUri()
  10069. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10070. /** @var \Illuminate\Http\Request $instance */
  10071. return $instance->getUri();
  10072. }
  10073. /**
  10074. * Generates a normalized URI for the given path.
  10075. *
  10076. * @param string $path A path to use instead of the current one
  10077. * @return string
  10078. * @static
  10079. */
  10080. public static function getUriForPath($path)
  10081. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10082. /** @var \Illuminate\Http\Request $instance */
  10083. return $instance->getUriForPath($path);
  10084. }
  10085. /**
  10086. * Returns the path as relative reference from the current Request path.
  10087. *
  10088. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  10089. * Both paths must be absolute and not contain relative parts.
  10090. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  10091. * Furthermore, they can be used to reduce the link size in documents.
  10092. *
  10093. * Example target paths, given a base path of "/a/b/c/d":
  10094. * - "/a/b/c/d" -> ""
  10095. * - "/a/b/c/" -> "./"
  10096. * - "/a/b/" -> "../"
  10097. * - "/a/b/c/other" -> "other"
  10098. * - "/a/x/y" -> "../../x/y"
  10099. *
  10100. * @return string
  10101. * @static
  10102. */
  10103. public static function getRelativeUriForPath($path)
  10104. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10105. /** @var \Illuminate\Http\Request $instance */
  10106. return $instance->getRelativeUriForPath($path);
  10107. }
  10108. /**
  10109. * Generates the normalized query string for the Request.
  10110. *
  10111. * It builds a normalized query string, where keys/value pairs are alphabetized
  10112. * and have consistent escaping.
  10113. *
  10114. * @return string|null
  10115. * @static
  10116. */
  10117. public static function getQueryString()
  10118. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10119. /** @var \Illuminate\Http\Request $instance */
  10120. return $instance->getQueryString();
  10121. }
  10122. /**
  10123. * Checks whether the request is secure or not.
  10124. *
  10125. * This method can read the client protocol from the "X-Forwarded-Proto" header
  10126. * when trusted proxies were set via "setTrustedProxies()".
  10127. *
  10128. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  10129. *
  10130. * @return bool
  10131. * @static
  10132. */
  10133. public static function isSecure()
  10134. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10135. /** @var \Illuminate\Http\Request $instance */
  10136. return $instance->isSecure();
  10137. }
  10138. /**
  10139. * Returns the host name.
  10140. *
  10141. * This method can read the client host name from the "X-Forwarded-Host" header
  10142. * when trusted proxies were set via "setTrustedProxies()".
  10143. *
  10144. * The "X-Forwarded-Host" header must contain the client host name.
  10145. *
  10146. * @return string
  10147. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  10148. * @static
  10149. */
  10150. public static function getHost()
  10151. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10152. /** @var \Illuminate\Http\Request $instance */
  10153. return $instance->getHost();
  10154. }
  10155. /**
  10156. * Sets the request method.
  10157. *
  10158. * @static
  10159. */
  10160. public static function setMethod($method)
  10161. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10162. /** @var \Illuminate\Http\Request $instance */
  10163. return $instance->setMethod($method);
  10164. }
  10165. /**
  10166. * Gets the request "intended" method.
  10167. *
  10168. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  10169. * then it is used to determine the "real" intended HTTP method.
  10170. *
  10171. * The _method request parameter can also be used to determine the HTTP method,
  10172. * but only if enableHttpMethodParameterOverride() has been called.
  10173. *
  10174. * The method is always an uppercased string.
  10175. *
  10176. * @return string
  10177. * @see getRealMethod()
  10178. * @static
  10179. */
  10180. public static function getMethod()
  10181. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10182. /** @var \Illuminate\Http\Request $instance */
  10183. return $instance->getMethod();
  10184. }
  10185. /**
  10186. * Gets the "real" request method.
  10187. *
  10188. * @return string
  10189. * @see getMethod()
  10190. * @static
  10191. */
  10192. public static function getRealMethod()
  10193. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10194. /** @var \Illuminate\Http\Request $instance */
  10195. return $instance->getRealMethod();
  10196. }
  10197. /**
  10198. * Gets the mime type associated with the format.
  10199. *
  10200. * @return string|null
  10201. * @static
  10202. */
  10203. public static function getMimeType($format)
  10204. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10205. /** @var \Illuminate\Http\Request $instance */
  10206. return $instance->getMimeType($format);
  10207. }
  10208. /**
  10209. * Gets the mime types associated with the format.
  10210. *
  10211. * @return array
  10212. * @static
  10213. */
  10214. public static function getMimeTypes($format)
  10215. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10216. return \Illuminate\Http\Request::getMimeTypes($format);
  10217. }
  10218. /**
  10219. * Gets the format associated with the mime type.
  10220. *
  10221. * @return string|null
  10222. * @static
  10223. */
  10224. public static function getFormat($mimeType)
  10225. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10226. /** @var \Illuminate\Http\Request $instance */
  10227. return $instance->getFormat($mimeType);
  10228. }
  10229. /**
  10230. * Associates a format with mime types.
  10231. *
  10232. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  10233. * @static
  10234. */
  10235. public static function setFormat($format, $mimeTypes)
  10236. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10237. /** @var \Illuminate\Http\Request $instance */
  10238. return $instance->setFormat($format, $mimeTypes);
  10239. }
  10240. /**
  10241. * Gets the request format.
  10242. *
  10243. * Here is the process to determine the format:
  10244. *
  10245. * * format defined by the user (with setRequestFormat())
  10246. * * _format request attribute
  10247. * * $default
  10248. *
  10249. * @see getPreferredFormat
  10250. * @return string|null
  10251. * @static
  10252. */
  10253. public static function getRequestFormat($default = 'html')
  10254. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10255. /** @var \Illuminate\Http\Request $instance */
  10256. return $instance->getRequestFormat($default);
  10257. }
  10258. /**
  10259. * Sets the request format.
  10260. *
  10261. * @static
  10262. */
  10263. public static function setRequestFormat($format)
  10264. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10265. /** @var \Illuminate\Http\Request $instance */
  10266. return $instance->setRequestFormat($format);
  10267. }
  10268. /**
  10269. * Gets the format associated with the request.
  10270. *
  10271. * @return string|null
  10272. * @static
  10273. */
  10274. public static function getContentType()
  10275. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10276. /** @var \Illuminate\Http\Request $instance */
  10277. return $instance->getContentType();
  10278. }
  10279. /**
  10280. * Sets the default locale.
  10281. *
  10282. * @static
  10283. */
  10284. public static function setDefaultLocale($locale)
  10285. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10286. /** @var \Illuminate\Http\Request $instance */
  10287. return $instance->setDefaultLocale($locale);
  10288. }
  10289. /**
  10290. * Get the default locale.
  10291. *
  10292. * @return string
  10293. * @static
  10294. */
  10295. public static function getDefaultLocale()
  10296. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10297. /** @var \Illuminate\Http\Request $instance */
  10298. return $instance->getDefaultLocale();
  10299. }
  10300. /**
  10301. * Sets the locale.
  10302. *
  10303. * @static
  10304. */
  10305. public static function setLocale($locale)
  10306. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10307. /** @var \Illuminate\Http\Request $instance */
  10308. return $instance->setLocale($locale);
  10309. }
  10310. /**
  10311. * Get the locale.
  10312. *
  10313. * @return string
  10314. * @static
  10315. */
  10316. public static function getLocale()
  10317. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10318. /** @var \Illuminate\Http\Request $instance */
  10319. return $instance->getLocale();
  10320. }
  10321. /**
  10322. * Checks if the request method is of specified type.
  10323. *
  10324. * @param string $method Uppercase request method (GET, POST etc)
  10325. * @return bool
  10326. * @static
  10327. */
  10328. public static function isMethod($method)
  10329. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10330. /** @var \Illuminate\Http\Request $instance */
  10331. return $instance->isMethod($method);
  10332. }
  10333. /**
  10334. * Checks whether or not the method is safe.
  10335. *
  10336. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  10337. * @return bool
  10338. * @static
  10339. */
  10340. public static function isMethodSafe()
  10341. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10342. /** @var \Illuminate\Http\Request $instance */
  10343. return $instance->isMethodSafe();
  10344. }
  10345. /**
  10346. * Checks whether or not the method is idempotent.
  10347. *
  10348. * @return bool
  10349. * @static
  10350. */
  10351. public static function isMethodIdempotent()
  10352. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10353. /** @var \Illuminate\Http\Request $instance */
  10354. return $instance->isMethodIdempotent();
  10355. }
  10356. /**
  10357. * Checks whether the method is cacheable or not.
  10358. *
  10359. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  10360. * @return bool
  10361. * @static
  10362. */
  10363. public static function isMethodCacheable()
  10364. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10365. /** @var \Illuminate\Http\Request $instance */
  10366. return $instance->isMethodCacheable();
  10367. }
  10368. /**
  10369. * Returns the protocol version.
  10370. *
  10371. * If the application is behind a proxy, the protocol version used in the
  10372. * requests between the client and the proxy and between the proxy and the
  10373. * server might be different. This returns the former (from the "Via" header)
  10374. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  10375. * the latter (from the "SERVER_PROTOCOL" server parameter).
  10376. *
  10377. * @return string|null
  10378. * @static
  10379. */
  10380. public static function getProtocolVersion()
  10381. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10382. /** @var \Illuminate\Http\Request $instance */
  10383. return $instance->getProtocolVersion();
  10384. }
  10385. /**
  10386. * Returns the request body content.
  10387. *
  10388. * @param bool $asResource If true, a resource will be returned
  10389. * @return string|resource
  10390. * @static
  10391. */
  10392. public static function getContent($asResource = false)
  10393. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10394. /** @var \Illuminate\Http\Request $instance */
  10395. return $instance->getContent($asResource);
  10396. }
  10397. /**
  10398. * Gets the Etags.
  10399. *
  10400. * @return array
  10401. * @static
  10402. */
  10403. public static function getETags()
  10404. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10405. /** @var \Illuminate\Http\Request $instance */
  10406. return $instance->getETags();
  10407. }
  10408. /**
  10409. *
  10410. *
  10411. * @return bool
  10412. * @static
  10413. */
  10414. public static function isNoCache()
  10415. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10416. /** @var \Illuminate\Http\Request $instance */
  10417. return $instance->isNoCache();
  10418. }
  10419. /**
  10420. * Gets the preferred format for the response by inspecting, in the following order:
  10421. * * the request format set using setRequestFormat;
  10422. * * the values of the Accept HTTP header.
  10423. *
  10424. * Note that if you use this method, you should send the "Vary: Accept" header
  10425. * in the response to prevent any issues with intermediary HTTP caches.
  10426. *
  10427. * @static
  10428. */
  10429. public static function getPreferredFormat($default = 'html')
  10430. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10431. /** @var \Illuminate\Http\Request $instance */
  10432. return $instance->getPreferredFormat($default);
  10433. }
  10434. /**
  10435. * Returns the preferred language.
  10436. *
  10437. * @param string[] $locales An array of ordered available locales
  10438. * @return string|null
  10439. * @static
  10440. */
  10441. public static function getPreferredLanguage($locales = null)
  10442. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10443. /** @var \Illuminate\Http\Request $instance */
  10444. return $instance->getPreferredLanguage($locales);
  10445. }
  10446. /**
  10447. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  10448. *
  10449. * @return array
  10450. * @static
  10451. */
  10452. public static function getLanguages()
  10453. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10454. /** @var \Illuminate\Http\Request $instance */
  10455. return $instance->getLanguages();
  10456. }
  10457. /**
  10458. * Gets a list of charsets acceptable by the client browser in preferable order.
  10459. *
  10460. * @return array
  10461. * @static
  10462. */
  10463. public static function getCharsets()
  10464. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10465. /** @var \Illuminate\Http\Request $instance */
  10466. return $instance->getCharsets();
  10467. }
  10468. /**
  10469. * Gets a list of encodings acceptable by the client browser in preferable order.
  10470. *
  10471. * @return array
  10472. * @static
  10473. */
  10474. public static function getEncodings()
  10475. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10476. /** @var \Illuminate\Http\Request $instance */
  10477. return $instance->getEncodings();
  10478. }
  10479. /**
  10480. * Gets a list of content types acceptable by the client browser in preferable order.
  10481. *
  10482. * @return array
  10483. * @static
  10484. */
  10485. public static function getAcceptableContentTypes()
  10486. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10487. /** @var \Illuminate\Http\Request $instance */
  10488. return $instance->getAcceptableContentTypes();
  10489. }
  10490. /**
  10491. * Returns true if the request is an XMLHttpRequest.
  10492. *
  10493. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  10494. * It is known to work with common JavaScript frameworks:
  10495. *
  10496. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  10497. * @return bool
  10498. * @static
  10499. */
  10500. public static function isXmlHttpRequest()
  10501. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10502. /** @var \Illuminate\Http\Request $instance */
  10503. return $instance->isXmlHttpRequest();
  10504. }
  10505. /**
  10506. * Checks whether the client browser prefers safe content or not according to RFC8674.
  10507. *
  10508. * @see https://tools.ietf.org/html/rfc8674
  10509. * @static
  10510. */
  10511. public static function preferSafeContent()
  10512. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10513. /** @var \Illuminate\Http\Request $instance */
  10514. return $instance->preferSafeContent();
  10515. }
  10516. /**
  10517. * Indicates whether this request originated from a trusted proxy.
  10518. *
  10519. * This can be useful to determine whether or not to trust the
  10520. * contents of a proxy-specific header.
  10521. *
  10522. * @return bool
  10523. * @static
  10524. */
  10525. public static function isFromTrustedProxy()
  10526. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10527. /** @var \Illuminate\Http\Request $instance */
  10528. return $instance->isFromTrustedProxy();
  10529. }
  10530. /**
  10531. * Determine if the request is sending JSON.
  10532. *
  10533. * @return bool
  10534. * @static
  10535. */
  10536. public static function isJson()
  10537. {
  10538. /** @var \Illuminate\Http\Request $instance */
  10539. return $instance->isJson();
  10540. }
  10541. /**
  10542. * Determine if the current request probably expects a JSON response.
  10543. *
  10544. * @return bool
  10545. * @static
  10546. */
  10547. public static function expectsJson()
  10548. {
  10549. /** @var \Illuminate\Http\Request $instance */
  10550. return $instance->expectsJson();
  10551. }
  10552. /**
  10553. * Determine if the current request is asking for JSON.
  10554. *
  10555. * @return bool
  10556. * @static
  10557. */
  10558. public static function wantsJson()
  10559. {
  10560. /** @var \Illuminate\Http\Request $instance */
  10561. return $instance->wantsJson();
  10562. }
  10563. /**
  10564. * Determines whether the current requests accepts a given content type.
  10565. *
  10566. * @param string|array $contentTypes
  10567. * @return bool
  10568. * @static
  10569. */
  10570. public static function accepts($contentTypes)
  10571. {
  10572. /** @var \Illuminate\Http\Request $instance */
  10573. return $instance->accepts($contentTypes);
  10574. }
  10575. /**
  10576. * Return the most suitable content type from the given array based on content negotiation.
  10577. *
  10578. * @param string|array $contentTypes
  10579. * @return string|null
  10580. * @static
  10581. */
  10582. public static function prefers($contentTypes)
  10583. {
  10584. /** @var \Illuminate\Http\Request $instance */
  10585. return $instance->prefers($contentTypes);
  10586. }
  10587. /**
  10588. * Determine if the current request accepts any content type.
  10589. *
  10590. * @return bool
  10591. * @static
  10592. */
  10593. public static function acceptsAnyContentType()
  10594. {
  10595. /** @var \Illuminate\Http\Request $instance */
  10596. return $instance->acceptsAnyContentType();
  10597. }
  10598. /**
  10599. * Determines whether a request accepts JSON.
  10600. *
  10601. * @return bool
  10602. * @static
  10603. */
  10604. public static function acceptsJson()
  10605. {
  10606. /** @var \Illuminate\Http\Request $instance */
  10607. return $instance->acceptsJson();
  10608. }
  10609. /**
  10610. * Determines whether a request accepts HTML.
  10611. *
  10612. * @return bool
  10613. * @static
  10614. */
  10615. public static function acceptsHtml()
  10616. {
  10617. /** @var \Illuminate\Http\Request $instance */
  10618. return $instance->acceptsHtml();
  10619. }
  10620. /**
  10621. * Determine if the given content types match.
  10622. *
  10623. * @param string $actual
  10624. * @param string $type
  10625. * @return bool
  10626. * @static
  10627. */
  10628. public static function matchesType($actual, $type)
  10629. {
  10630. return \Illuminate\Http\Request::matchesType($actual, $type);
  10631. }
  10632. /**
  10633. * Get the data format expected in the response.
  10634. *
  10635. * @param string $default
  10636. * @return string
  10637. * @static
  10638. */
  10639. public static function format($default = 'html')
  10640. {
  10641. /** @var \Illuminate\Http\Request $instance */
  10642. return $instance->format($default);
  10643. }
  10644. /**
  10645. * Retrieve an old input item.
  10646. *
  10647. * @param string|null $key
  10648. * @param string|array|null $default
  10649. * @return string|array|null
  10650. * @static
  10651. */
  10652. public static function old($key = null, $default = null)
  10653. {
  10654. /** @var \Illuminate\Http\Request $instance */
  10655. return $instance->old($key, $default);
  10656. }
  10657. /**
  10658. * Flash the input for the current request to the session.
  10659. *
  10660. * @return void
  10661. * @static
  10662. */
  10663. public static function flash()
  10664. {
  10665. /** @var \Illuminate\Http\Request $instance */
  10666. $instance->flash();
  10667. }
  10668. /**
  10669. * Flash only some of the input to the session.
  10670. *
  10671. * @param array|mixed $keys
  10672. * @return void
  10673. * @static
  10674. */
  10675. public static function flashOnly($keys)
  10676. {
  10677. /** @var \Illuminate\Http\Request $instance */
  10678. $instance->flashOnly($keys);
  10679. }
  10680. /**
  10681. * Flash only some of the input to the session.
  10682. *
  10683. * @param array|mixed $keys
  10684. * @return void
  10685. * @static
  10686. */
  10687. public static function flashExcept($keys)
  10688. {
  10689. /** @var \Illuminate\Http\Request $instance */
  10690. $instance->flashExcept($keys);
  10691. }
  10692. /**
  10693. * Flush all of the old input from the session.
  10694. *
  10695. * @return void
  10696. * @static
  10697. */
  10698. public static function flush()
  10699. {
  10700. /** @var \Illuminate\Http\Request $instance */
  10701. $instance->flush();
  10702. }
  10703. /**
  10704. * Retrieve a server variable from the request.
  10705. *
  10706. * @param string|null $key
  10707. * @param string|array|null $default
  10708. * @return string|array|null
  10709. * @static
  10710. */
  10711. public static function server($key = null, $default = null)
  10712. {
  10713. /** @var \Illuminate\Http\Request $instance */
  10714. return $instance->server($key, $default);
  10715. }
  10716. /**
  10717. * Determine if a header is set on the request.
  10718. *
  10719. * @param string $key
  10720. * @return bool
  10721. * @static
  10722. */
  10723. public static function hasHeader($key)
  10724. {
  10725. /** @var \Illuminate\Http\Request $instance */
  10726. return $instance->hasHeader($key);
  10727. }
  10728. /**
  10729. * Retrieve a header from the request.
  10730. *
  10731. * @param string|null $key
  10732. * @param string|array|null $default
  10733. * @return string|array|null
  10734. * @static
  10735. */
  10736. public static function header($key = null, $default = null)
  10737. {
  10738. /** @var \Illuminate\Http\Request $instance */
  10739. return $instance->header($key, $default);
  10740. }
  10741. /**
  10742. * Get the bearer token from the request headers.
  10743. *
  10744. * @return string|null
  10745. * @static
  10746. */
  10747. public static function bearerToken()
  10748. {
  10749. /** @var \Illuminate\Http\Request $instance */
  10750. return $instance->bearerToken();
  10751. }
  10752. /**
  10753. * Determine if the request contains a given input item key.
  10754. *
  10755. * @param string|array $key
  10756. * @return bool
  10757. * @static
  10758. */
  10759. public static function exists($key)
  10760. {
  10761. /** @var \Illuminate\Http\Request $instance */
  10762. return $instance->exists($key);
  10763. }
  10764. /**
  10765. * Determine if the request contains a given input item key.
  10766. *
  10767. * @param string|array $key
  10768. * @return bool
  10769. * @static
  10770. */
  10771. public static function has($key)
  10772. {
  10773. /** @var \Illuminate\Http\Request $instance */
  10774. return $instance->has($key);
  10775. }
  10776. /**
  10777. * Determine if the request contains any of the given inputs.
  10778. *
  10779. * @param string|array $keys
  10780. * @return bool
  10781. * @static
  10782. */
  10783. public static function hasAny($keys)
  10784. {
  10785. /** @var \Illuminate\Http\Request $instance */
  10786. return $instance->hasAny($keys);
  10787. }
  10788. /**
  10789. * Apply the callback if the request contains the given input item key.
  10790. *
  10791. * @param string $key
  10792. * @param callable $callback
  10793. * @param callable|null $default
  10794. * @return $this|mixed
  10795. * @static
  10796. */
  10797. public static function whenHas($key, $callback, $default = null)
  10798. {
  10799. /** @var \Illuminate\Http\Request $instance */
  10800. return $instance->whenHas($key, $callback, $default);
  10801. }
  10802. /**
  10803. * Determine if the request contains a non-empty value for an input item.
  10804. *
  10805. * @param string|array $key
  10806. * @return bool
  10807. * @static
  10808. */
  10809. public static function filled($key)
  10810. {
  10811. /** @var \Illuminate\Http\Request $instance */
  10812. return $instance->filled($key);
  10813. }
  10814. /**
  10815. * Determine if the request contains an empty value for an input item.
  10816. *
  10817. * @param string|array $key
  10818. * @return bool
  10819. * @static
  10820. */
  10821. public static function isNotFilled($key)
  10822. {
  10823. /** @var \Illuminate\Http\Request $instance */
  10824. return $instance->isNotFilled($key);
  10825. }
  10826. /**
  10827. * Determine if the request contains a non-empty value for any of the given inputs.
  10828. *
  10829. * @param string|array $keys
  10830. * @return bool
  10831. * @static
  10832. */
  10833. public static function anyFilled($keys)
  10834. {
  10835. /** @var \Illuminate\Http\Request $instance */
  10836. return $instance->anyFilled($keys);
  10837. }
  10838. /**
  10839. * Apply the callback if the request contains a non-empty value for the given input item key.
  10840. *
  10841. * @param string $key
  10842. * @param callable $callback
  10843. * @param callable|null $default
  10844. * @return $this|mixed
  10845. * @static
  10846. */
  10847. public static function whenFilled($key, $callback, $default = null)
  10848. {
  10849. /** @var \Illuminate\Http\Request $instance */
  10850. return $instance->whenFilled($key, $callback, $default);
  10851. }
  10852. /**
  10853. * Determine if the request is missing a given input item key.
  10854. *
  10855. * @param string|array $key
  10856. * @return bool
  10857. * @static
  10858. */
  10859. public static function missing($key)
  10860. {
  10861. /** @var \Illuminate\Http\Request $instance */
  10862. return $instance->missing($key);
  10863. }
  10864. /**
  10865. * Get the keys for all of the input and files.
  10866. *
  10867. * @return array
  10868. * @static
  10869. */
  10870. public static function keys()
  10871. {
  10872. /** @var \Illuminate\Http\Request $instance */
  10873. return $instance->keys();
  10874. }
  10875. /**
  10876. * Get all of the input and files for the request.
  10877. *
  10878. * @param array|mixed|null $keys
  10879. * @return array
  10880. * @static
  10881. */
  10882. public static function all($keys = null)
  10883. {
  10884. /** @var \Illuminate\Http\Request $instance */
  10885. return $instance->all($keys);
  10886. }
  10887. /**
  10888. * Retrieve an input item from the request.
  10889. *
  10890. * @param string|null $key
  10891. * @param mixed $default
  10892. * @return mixed
  10893. * @static
  10894. */
  10895. public static function input($key = null, $default = null)
  10896. {
  10897. /** @var \Illuminate\Http\Request $instance */
  10898. return $instance->input($key, $default);
  10899. }
  10900. /**
  10901. * Retrieve input as a boolean value.
  10902. *
  10903. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  10904. *
  10905. * @param string|null $key
  10906. * @param bool $default
  10907. * @return bool
  10908. * @static
  10909. */
  10910. public static function boolean($key = null, $default = false)
  10911. {
  10912. /** @var \Illuminate\Http\Request $instance */
  10913. return $instance->boolean($key, $default);
  10914. }
  10915. /**
  10916. * Retrieve input from the request as a Carbon instance.
  10917. *
  10918. * @param string $key
  10919. * @param string|null $format
  10920. * @param string|null $tz
  10921. * @return \Illuminate\Support\Carbon|null
  10922. * @static
  10923. */
  10924. public static function date($key, $format = null, $tz = null)
  10925. {
  10926. /** @var \Illuminate\Http\Request $instance */
  10927. return $instance->date($key, $format, $tz);
  10928. }
  10929. /**
  10930. * Retrieve input from the request as a collection.
  10931. *
  10932. * @param array|string|null $key
  10933. * @return \Illuminate\Support\Collection
  10934. * @static
  10935. */
  10936. public static function collect($key = null)
  10937. {
  10938. /** @var \Illuminate\Http\Request $instance */
  10939. return $instance->collect($key);
  10940. }
  10941. /**
  10942. * Get a subset containing the provided keys with values from the input data.
  10943. *
  10944. * @param array|mixed $keys
  10945. * @return array
  10946. * @static
  10947. */
  10948. public static function only($keys)
  10949. {
  10950. /** @var \Illuminate\Http\Request $instance */
  10951. return $instance->only($keys);
  10952. }
  10953. /**
  10954. * Get all of the input except for a specified array of items.
  10955. *
  10956. * @param array|mixed $keys
  10957. * @return array
  10958. * @static
  10959. */
  10960. public static function except($keys)
  10961. {
  10962. /** @var \Illuminate\Http\Request $instance */
  10963. return $instance->except($keys);
  10964. }
  10965. /**
  10966. * Retrieve a query string item from the request.
  10967. *
  10968. * @param string|null $key
  10969. * @param string|array|null $default
  10970. * @return string|array|null
  10971. * @static
  10972. */
  10973. public static function query($key = null, $default = null)
  10974. {
  10975. /** @var \Illuminate\Http\Request $instance */
  10976. return $instance->query($key, $default);
  10977. }
  10978. /**
  10979. * Retrieve a request payload item from the request.
  10980. *
  10981. * @param string|null $key
  10982. * @param string|array|null $default
  10983. * @return string|array|null
  10984. * @static
  10985. */
  10986. public static function post($key = null, $default = null)
  10987. {
  10988. /** @var \Illuminate\Http\Request $instance */
  10989. return $instance->post($key, $default);
  10990. }
  10991. /**
  10992. * Determine if a cookie is set on the request.
  10993. *
  10994. * @param string $key
  10995. * @return bool
  10996. * @static
  10997. */
  10998. public static function hasCookie($key)
  10999. {
  11000. /** @var \Illuminate\Http\Request $instance */
  11001. return $instance->hasCookie($key);
  11002. }
  11003. /**
  11004. * Retrieve a cookie from the request.
  11005. *
  11006. * @param string|null $key
  11007. * @param string|array|null $default
  11008. * @return string|array|null
  11009. * @static
  11010. */
  11011. public static function cookie($key = null, $default = null)
  11012. {
  11013. /** @var \Illuminate\Http\Request $instance */
  11014. return $instance->cookie($key, $default);
  11015. }
  11016. /**
  11017. * Get an array of all of the files on the request.
  11018. *
  11019. * @return array
  11020. * @static
  11021. */
  11022. public static function allFiles()
  11023. {
  11024. /** @var \Illuminate\Http\Request $instance */
  11025. return $instance->allFiles();
  11026. }
  11027. /**
  11028. * Determine if the uploaded data contains a file.
  11029. *
  11030. * @param string $key
  11031. * @return bool
  11032. * @static
  11033. */
  11034. public static function hasFile($key)
  11035. {
  11036. /** @var \Illuminate\Http\Request $instance */
  11037. return $instance->hasFile($key);
  11038. }
  11039. /**
  11040. * Retrieve a file from the request.
  11041. *
  11042. * @param string|null $key
  11043. * @param mixed $default
  11044. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  11045. * @static
  11046. */
  11047. public static function file($key = null, $default = null)
  11048. {
  11049. /** @var \Illuminate\Http\Request $instance */
  11050. return $instance->file($key, $default);
  11051. }
  11052. /**
  11053. * Dump the request items and end the script.
  11054. *
  11055. * @param mixed $keys
  11056. * @return void
  11057. * @static
  11058. */
  11059. public static function dd(...$keys)
  11060. {
  11061. /** @var \Illuminate\Http\Request $instance */
  11062. $instance->dd(...$keys);
  11063. }
  11064. /**
  11065. * Dump the items.
  11066. *
  11067. * @param mixed $keys
  11068. * @return \Illuminate\Http\Request
  11069. * @static
  11070. */
  11071. public static function dump($keys = [])
  11072. {
  11073. /** @var \Illuminate\Http\Request $instance */
  11074. return $instance->dump($keys);
  11075. }
  11076. /**
  11077. * Register a custom macro.
  11078. *
  11079. * @param string $name
  11080. * @param object|callable $macro
  11081. * @return void
  11082. * @static
  11083. */
  11084. public static function macro($name, $macro)
  11085. {
  11086. \Illuminate\Http\Request::macro($name, $macro);
  11087. }
  11088. /**
  11089. * Mix another object into the class.
  11090. *
  11091. * @param object $mixin
  11092. * @param bool $replace
  11093. * @return void
  11094. * @throws \ReflectionException
  11095. * @static
  11096. */
  11097. public static function mixin($mixin, $replace = true)
  11098. {
  11099. \Illuminate\Http\Request::mixin($mixin, $replace);
  11100. }
  11101. /**
  11102. * Checks if macro is registered.
  11103. *
  11104. * @param string $name
  11105. * @return bool
  11106. * @static
  11107. */
  11108. public static function hasMacro($name)
  11109. {
  11110. return \Illuminate\Http\Request::hasMacro($name);
  11111. }
  11112. /**
  11113. * Flush the existing macros.
  11114. *
  11115. * @return void
  11116. * @static
  11117. */
  11118. public static function flushMacros()
  11119. {
  11120. \Illuminate\Http\Request::flushMacros();
  11121. }
  11122. /**
  11123. *
  11124. *
  11125. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11126. * @param array $rules
  11127. * @param mixed $params
  11128. * @static
  11129. */
  11130. public static function validate($rules, ...$params)
  11131. {
  11132. return \Illuminate\Http\Request::validate($rules, ...$params);
  11133. }
  11134. /**
  11135. *
  11136. *
  11137. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11138. * @param string $errorBag
  11139. * @param array $rules
  11140. * @param mixed $params
  11141. * @static
  11142. */
  11143. public static function validateWithBag($errorBag, $rules, ...$params)
  11144. {
  11145. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  11146. }
  11147. /**
  11148. *
  11149. *
  11150. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11151. * @param mixed $absolute
  11152. * @static
  11153. */
  11154. public static function hasValidSignature($absolute = true)
  11155. {
  11156. return \Illuminate\Http\Request::hasValidSignature($absolute);
  11157. }
  11158. /**
  11159. *
  11160. *
  11161. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11162. * @static
  11163. */
  11164. public static function hasValidRelativeSignature()
  11165. {
  11166. return \Illuminate\Http\Request::hasValidRelativeSignature();
  11167. }
  11168. }
  11169. /**
  11170. *
  11171. *
  11172. * @see \Illuminate\Contracts\Routing\ResponseFactory
  11173. */
  11174. class Response {
  11175. /**
  11176. * Create a new response instance.
  11177. *
  11178. * @param mixed $content
  11179. * @param int $status
  11180. * @param array $headers
  11181. * @return \Illuminate\Http\Response
  11182. * @static
  11183. */
  11184. public static function make($content = '', $status = 200, $headers = [])
  11185. {
  11186. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11187. return $instance->make($content, $status, $headers);
  11188. }
  11189. /**
  11190. * Create a new "no content" response.
  11191. *
  11192. * @param int $status
  11193. * @param array $headers
  11194. * @return \Illuminate\Http\Response
  11195. * @static
  11196. */
  11197. public static function noContent($status = 204, $headers = [])
  11198. {
  11199. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11200. return $instance->noContent($status, $headers);
  11201. }
  11202. /**
  11203. * Create a new response for a given view.
  11204. *
  11205. * @param string|array $view
  11206. * @param array $data
  11207. * @param int $status
  11208. * @param array $headers
  11209. * @return \Illuminate\Http\Response
  11210. * @static
  11211. */
  11212. public static function view($view, $data = [], $status = 200, $headers = [])
  11213. {
  11214. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11215. return $instance->view($view, $data, $status, $headers);
  11216. }
  11217. /**
  11218. * Create a new JSON response instance.
  11219. *
  11220. * @param mixed $data
  11221. * @param int $status
  11222. * @param array $headers
  11223. * @param int $options
  11224. * @return \Illuminate\Http\JsonResponse
  11225. * @static
  11226. */
  11227. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  11228. {
  11229. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11230. return $instance->json($data, $status, $headers, $options);
  11231. }
  11232. /**
  11233. * Create a new JSONP response instance.
  11234. *
  11235. * @param string $callback
  11236. * @param mixed $data
  11237. * @param int $status
  11238. * @param array $headers
  11239. * @param int $options
  11240. * @return \Illuminate\Http\JsonResponse
  11241. * @static
  11242. */
  11243. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  11244. {
  11245. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11246. return $instance->jsonp($callback, $data, $status, $headers, $options);
  11247. }
  11248. /**
  11249. * Create a new streamed response instance.
  11250. *
  11251. * @param \Closure $callback
  11252. * @param int $status
  11253. * @param array $headers
  11254. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11255. * @static
  11256. */
  11257. public static function stream($callback, $status = 200, $headers = [])
  11258. {
  11259. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11260. return $instance->stream($callback, $status, $headers);
  11261. }
  11262. /**
  11263. * Create a new streamed response instance as a file download.
  11264. *
  11265. * @param \Closure $callback
  11266. * @param string|null $name
  11267. * @param array $headers
  11268. * @param string|null $disposition
  11269. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11270. * @static
  11271. */
  11272. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  11273. {
  11274. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11275. return $instance->streamDownload($callback, $name, $headers, $disposition);
  11276. }
  11277. /**
  11278. * Create a new file download response.
  11279. *
  11280. * @param \SplFileInfo|string $file
  11281. * @param string|null $name
  11282. * @param array $headers
  11283. * @param string|null $disposition
  11284. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11285. * @static
  11286. */
  11287. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  11288. {
  11289. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11290. return $instance->download($file, $name, $headers, $disposition);
  11291. }
  11292. /**
  11293. * Return the raw contents of a binary file.
  11294. *
  11295. * @param \SplFileInfo|string $file
  11296. * @param array $headers
  11297. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11298. * @static
  11299. */
  11300. public static function file($file, $headers = [])
  11301. {
  11302. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11303. return $instance->file($file, $headers);
  11304. }
  11305. /**
  11306. * Create a new redirect response to the given path.
  11307. *
  11308. * @param string $path
  11309. * @param int $status
  11310. * @param array $headers
  11311. * @param bool|null $secure
  11312. * @return \Illuminate\Http\RedirectResponse
  11313. * @static
  11314. */
  11315. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  11316. {
  11317. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11318. return $instance->redirectTo($path, $status, $headers, $secure);
  11319. }
  11320. /**
  11321. * Create a new redirect response to a named route.
  11322. *
  11323. * @param string $route
  11324. * @param mixed $parameters
  11325. * @param int $status
  11326. * @param array $headers
  11327. * @return \Illuminate\Http\RedirectResponse
  11328. * @static
  11329. */
  11330. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  11331. {
  11332. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11333. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  11334. }
  11335. /**
  11336. * Create a new redirect response to a controller action.
  11337. *
  11338. * @param string $action
  11339. * @param mixed $parameters
  11340. * @param int $status
  11341. * @param array $headers
  11342. * @return \Illuminate\Http\RedirectResponse
  11343. * @static
  11344. */
  11345. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  11346. {
  11347. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11348. return $instance->redirectToAction($action, $parameters, $status, $headers);
  11349. }
  11350. /**
  11351. * Create a new redirect response, while putting the current URL in the session.
  11352. *
  11353. * @param string $path
  11354. * @param int $status
  11355. * @param array $headers
  11356. * @param bool|null $secure
  11357. * @return \Illuminate\Http\RedirectResponse
  11358. * @static
  11359. */
  11360. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  11361. {
  11362. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11363. return $instance->redirectGuest($path, $status, $headers, $secure);
  11364. }
  11365. /**
  11366. * Create a new redirect response to the previously intended location.
  11367. *
  11368. * @param string $default
  11369. * @param int $status
  11370. * @param array $headers
  11371. * @param bool|null $secure
  11372. * @return \Illuminate\Http\RedirectResponse
  11373. * @static
  11374. */
  11375. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  11376. {
  11377. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11378. return $instance->redirectToIntended($default, $status, $headers, $secure);
  11379. }
  11380. /**
  11381. * Register a custom macro.
  11382. *
  11383. * @param string $name
  11384. * @param object|callable $macro
  11385. * @return void
  11386. * @static
  11387. */
  11388. public static function macro($name, $macro)
  11389. {
  11390. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  11391. }
  11392. /**
  11393. * Mix another object into the class.
  11394. *
  11395. * @param object $mixin
  11396. * @param bool $replace
  11397. * @return void
  11398. * @throws \ReflectionException
  11399. * @static
  11400. */
  11401. public static function mixin($mixin, $replace = true)
  11402. {
  11403. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  11404. }
  11405. /**
  11406. * Checks if macro is registered.
  11407. *
  11408. * @param string $name
  11409. * @return bool
  11410. * @static
  11411. */
  11412. public static function hasMacro($name)
  11413. {
  11414. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  11415. }
  11416. /**
  11417. * Flush the existing macros.
  11418. *
  11419. * @return void
  11420. * @static
  11421. */
  11422. public static function flushMacros()
  11423. {
  11424. \Illuminate\Routing\ResponseFactory::flushMacros();
  11425. }
  11426. }
  11427. /**
  11428. *
  11429. *
  11430. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  11431. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  11432. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  11433. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  11434. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  11435. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  11436. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  11437. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  11438. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  11439. * @method static \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
  11440. * @see \Illuminate\Routing\Router
  11441. */
  11442. class Route {
  11443. /**
  11444. * Register a new GET route with the router.
  11445. *
  11446. * @param string $uri
  11447. * @param array|string|callable|null $action
  11448. * @return \Illuminate\Routing\Route
  11449. * @static
  11450. */
  11451. public static function get($uri, $action = null)
  11452. {
  11453. /** @var \Illuminate\Routing\Router $instance */
  11454. return $instance->get($uri, $action);
  11455. }
  11456. /**
  11457. * Register a new POST route with the router.
  11458. *
  11459. * @param string $uri
  11460. * @param array|string|callable|null $action
  11461. * @return \Illuminate\Routing\Route
  11462. * @static
  11463. */
  11464. public static function post($uri, $action = null)
  11465. {
  11466. /** @var \Illuminate\Routing\Router $instance */
  11467. return $instance->post($uri, $action);
  11468. }
  11469. /**
  11470. * Register a new PUT route with the router.
  11471. *
  11472. * @param string $uri
  11473. * @param array|string|callable|null $action
  11474. * @return \Illuminate\Routing\Route
  11475. * @static
  11476. */
  11477. public static function put($uri, $action = null)
  11478. {
  11479. /** @var \Illuminate\Routing\Router $instance */
  11480. return $instance->put($uri, $action);
  11481. }
  11482. /**
  11483. * Register a new PATCH route with the router.
  11484. *
  11485. * @param string $uri
  11486. * @param array|string|callable|null $action
  11487. * @return \Illuminate\Routing\Route
  11488. * @static
  11489. */
  11490. public static function patch($uri, $action = null)
  11491. {
  11492. /** @var \Illuminate\Routing\Router $instance */
  11493. return $instance->patch($uri, $action);
  11494. }
  11495. /**
  11496. * Register a new DELETE route with the router.
  11497. *
  11498. * @param string $uri
  11499. * @param array|string|callable|null $action
  11500. * @return \Illuminate\Routing\Route
  11501. * @static
  11502. */
  11503. public static function delete($uri, $action = null)
  11504. {
  11505. /** @var \Illuminate\Routing\Router $instance */
  11506. return $instance->delete($uri, $action);
  11507. }
  11508. /**
  11509. * Register a new OPTIONS route with the router.
  11510. *
  11511. * @param string $uri
  11512. * @param array|string|callable|null $action
  11513. * @return \Illuminate\Routing\Route
  11514. * @static
  11515. */
  11516. public static function options($uri, $action = null)
  11517. {
  11518. /** @var \Illuminate\Routing\Router $instance */
  11519. return $instance->options($uri, $action);
  11520. }
  11521. /**
  11522. * Register a new route responding to all verbs.
  11523. *
  11524. * @param string $uri
  11525. * @param array|string|callable|null $action
  11526. * @return \Illuminate\Routing\Route
  11527. * @static
  11528. */
  11529. public static function any($uri, $action = null)
  11530. {
  11531. /** @var \Illuminate\Routing\Router $instance */
  11532. return $instance->any($uri, $action);
  11533. }
  11534. /**
  11535. * Register a new Fallback route with the router.
  11536. *
  11537. * @param array|string|callable|null $action
  11538. * @return \Illuminate\Routing\Route
  11539. * @static
  11540. */
  11541. public static function fallback($action)
  11542. {
  11543. /** @var \Illuminate\Routing\Router $instance */
  11544. return $instance->fallback($action);
  11545. }
  11546. /**
  11547. * Create a redirect from one URI to another.
  11548. *
  11549. * @param string $uri
  11550. * @param string $destination
  11551. * @param int $status
  11552. * @return \Illuminate\Routing\Route
  11553. * @static
  11554. */
  11555. public static function redirect($uri, $destination, $status = 302)
  11556. {
  11557. /** @var \Illuminate\Routing\Router $instance */
  11558. return $instance->redirect($uri, $destination, $status);
  11559. }
  11560. /**
  11561. * Create a permanent redirect from one URI to another.
  11562. *
  11563. * @param string $uri
  11564. * @param string $destination
  11565. * @return \Illuminate\Routing\Route
  11566. * @static
  11567. */
  11568. public static function permanentRedirect($uri, $destination)
  11569. {
  11570. /** @var \Illuminate\Routing\Router $instance */
  11571. return $instance->permanentRedirect($uri, $destination);
  11572. }
  11573. /**
  11574. * Register a new route that returns a view.
  11575. *
  11576. * @param string $uri
  11577. * @param string $view
  11578. * @param array $data
  11579. * @param int|array $status
  11580. * @param array $headers
  11581. * @return \Illuminate\Routing\Route
  11582. * @static
  11583. */
  11584. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  11585. {
  11586. /** @var \Illuminate\Routing\Router $instance */
  11587. return $instance->view($uri, $view, $data, $status, $headers);
  11588. }
  11589. /**
  11590. * Register a new route with the given verbs.
  11591. *
  11592. * @param array|string $methods
  11593. * @param string $uri
  11594. * @param array|string|callable|null $action
  11595. * @return \Illuminate\Routing\Route
  11596. * @static
  11597. */
  11598. public static function match($methods, $uri, $action = null)
  11599. {
  11600. /** @var \Illuminate\Routing\Router $instance */
  11601. return $instance->match($methods, $uri, $action);
  11602. }
  11603. /**
  11604. * Register an array of resource controllers.
  11605. *
  11606. * @param array $resources
  11607. * @param array $options
  11608. * @return void
  11609. * @static
  11610. */
  11611. public static function resources($resources, $options = [])
  11612. {
  11613. /** @var \Illuminate\Routing\Router $instance */
  11614. $instance->resources($resources, $options);
  11615. }
  11616. /**
  11617. * Route a resource to a controller.
  11618. *
  11619. * @param string $name
  11620. * @param string $controller
  11621. * @param array $options
  11622. * @return \Illuminate\Routing\PendingResourceRegistration
  11623. * @static
  11624. */
  11625. public static function resource($name, $controller, $options = [])
  11626. {
  11627. /** @var \Illuminate\Routing\Router $instance */
  11628. return $instance->resource($name, $controller, $options);
  11629. }
  11630. /**
  11631. * Register an array of API resource controllers.
  11632. *
  11633. * @param array $resources
  11634. * @param array $options
  11635. * @return void
  11636. * @static
  11637. */
  11638. public static function apiResources($resources, $options = [])
  11639. {
  11640. /** @var \Illuminate\Routing\Router $instance */
  11641. $instance->apiResources($resources, $options);
  11642. }
  11643. /**
  11644. * Route an API resource to a controller.
  11645. *
  11646. * @param string $name
  11647. * @param string $controller
  11648. * @param array $options
  11649. * @return \Illuminate\Routing\PendingResourceRegistration
  11650. * @static
  11651. */
  11652. public static function apiResource($name, $controller, $options = [])
  11653. {
  11654. /** @var \Illuminate\Routing\Router $instance */
  11655. return $instance->apiResource($name, $controller, $options);
  11656. }
  11657. /**
  11658. * Create a route group with shared attributes.
  11659. *
  11660. * @param array $attributes
  11661. * @param \Closure|string $routes
  11662. * @return void
  11663. * @static
  11664. */
  11665. public static function group($attributes, $routes)
  11666. {
  11667. /** @var \Illuminate\Routing\Router $instance */
  11668. $instance->group($attributes, $routes);
  11669. }
  11670. /**
  11671. * Merge the given array with the last group stack.
  11672. *
  11673. * @param array $new
  11674. * @param bool $prependExistingPrefix
  11675. * @return array
  11676. * @static
  11677. */
  11678. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  11679. {
  11680. /** @var \Illuminate\Routing\Router $instance */
  11681. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  11682. }
  11683. /**
  11684. * Get the prefix from the last group on the stack.
  11685. *
  11686. * @return string
  11687. * @static
  11688. */
  11689. public static function getLastGroupPrefix()
  11690. {
  11691. /** @var \Illuminate\Routing\Router $instance */
  11692. return $instance->getLastGroupPrefix();
  11693. }
  11694. /**
  11695. * Add a route to the underlying route collection.
  11696. *
  11697. * @param array|string $methods
  11698. * @param string $uri
  11699. * @param array|string|callable|null $action
  11700. * @return \Illuminate\Routing\Route
  11701. * @static
  11702. */
  11703. public static function addRoute($methods, $uri, $action)
  11704. {
  11705. /** @var \Illuminate\Routing\Router $instance */
  11706. return $instance->addRoute($methods, $uri, $action);
  11707. }
  11708. /**
  11709. * Create a new Route object.
  11710. *
  11711. * @param array|string $methods
  11712. * @param string $uri
  11713. * @param mixed $action
  11714. * @return \Illuminate\Routing\Route
  11715. * @static
  11716. */
  11717. public static function newRoute($methods, $uri, $action)
  11718. {
  11719. /** @var \Illuminate\Routing\Router $instance */
  11720. return $instance->newRoute($methods, $uri, $action);
  11721. }
  11722. /**
  11723. * Return the response returned by the given route.
  11724. *
  11725. * @param string $name
  11726. * @return \Symfony\Component\HttpFoundation\Response
  11727. * @static
  11728. */
  11729. public static function respondWithRoute($name)
  11730. {
  11731. /** @var \Illuminate\Routing\Router $instance */
  11732. return $instance->respondWithRoute($name);
  11733. }
  11734. /**
  11735. * Dispatch the request to the application.
  11736. *
  11737. * @param \Illuminate\Http\Request $request
  11738. * @return \Symfony\Component\HttpFoundation\Response
  11739. * @static
  11740. */
  11741. public static function dispatch($request)
  11742. {
  11743. /** @var \Illuminate\Routing\Router $instance */
  11744. return $instance->dispatch($request);
  11745. }
  11746. /**
  11747. * Dispatch the request to a route and return the response.
  11748. *
  11749. * @param \Illuminate\Http\Request $request
  11750. * @return \Symfony\Component\HttpFoundation\Response
  11751. * @static
  11752. */
  11753. public static function dispatchToRoute($request)
  11754. {
  11755. /** @var \Illuminate\Routing\Router $instance */
  11756. return $instance->dispatchToRoute($request);
  11757. }
  11758. /**
  11759. * Gather the middleware for the given route with resolved class names.
  11760. *
  11761. * @param \Illuminate\Routing\Route $route
  11762. * @return array
  11763. * @static
  11764. */
  11765. public static function gatherRouteMiddleware($route)
  11766. {
  11767. /** @var \Illuminate\Routing\Router $instance */
  11768. return $instance->gatherRouteMiddleware($route);
  11769. }
  11770. /**
  11771. * Create a response instance from the given value.
  11772. *
  11773. * @param \Symfony\Component\HttpFoundation\Request $request
  11774. * @param mixed $response
  11775. * @return \Symfony\Component\HttpFoundation\Response
  11776. * @static
  11777. */
  11778. public static function prepareResponse($request, $response)
  11779. {
  11780. /** @var \Illuminate\Routing\Router $instance */
  11781. return $instance->prepareResponse($request, $response);
  11782. }
  11783. /**
  11784. * Static version of prepareResponse.
  11785. *
  11786. * @param \Symfony\Component\HttpFoundation\Request $request
  11787. * @param mixed $response
  11788. * @return \Symfony\Component\HttpFoundation\Response
  11789. * @static
  11790. */
  11791. public static function toResponse($request, $response)
  11792. {
  11793. return \Illuminate\Routing\Router::toResponse($request, $response);
  11794. }
  11795. /**
  11796. * Substitute the route bindings onto the route.
  11797. *
  11798. * @param \Illuminate\Routing\Route $route
  11799. * @return \Illuminate\Routing\Route
  11800. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11801. * @static
  11802. */
  11803. public static function substituteBindings($route)
  11804. {
  11805. /** @var \Illuminate\Routing\Router $instance */
  11806. return $instance->substituteBindings($route);
  11807. }
  11808. /**
  11809. * Substitute the implicit Eloquent model bindings for the route.
  11810. *
  11811. * @param \Illuminate\Routing\Route $route
  11812. * @return void
  11813. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11814. * @static
  11815. */
  11816. public static function substituteImplicitBindings($route)
  11817. {
  11818. /** @var \Illuminate\Routing\Router $instance */
  11819. $instance->substituteImplicitBindings($route);
  11820. }
  11821. /**
  11822. * Register a route matched event listener.
  11823. *
  11824. * @param string|callable $callback
  11825. * @return void
  11826. * @static
  11827. */
  11828. public static function matched($callback)
  11829. {
  11830. /** @var \Illuminate\Routing\Router $instance */
  11831. $instance->matched($callback);
  11832. }
  11833. /**
  11834. * Get all of the defined middleware short-hand names.
  11835. *
  11836. * @return array
  11837. * @static
  11838. */
  11839. public static function getMiddleware()
  11840. {
  11841. /** @var \Illuminate\Routing\Router $instance */
  11842. return $instance->getMiddleware();
  11843. }
  11844. /**
  11845. * Register a short-hand name for a middleware.
  11846. *
  11847. * @param string $name
  11848. * @param string $class
  11849. * @return \Illuminate\Routing\Router
  11850. * @static
  11851. */
  11852. public static function aliasMiddleware($name, $class)
  11853. {
  11854. /** @var \Illuminate\Routing\Router $instance */
  11855. return $instance->aliasMiddleware($name, $class);
  11856. }
  11857. /**
  11858. * Check if a middlewareGroup with the given name exists.
  11859. *
  11860. * @param string $name
  11861. * @return bool
  11862. * @static
  11863. */
  11864. public static function hasMiddlewareGroup($name)
  11865. {
  11866. /** @var \Illuminate\Routing\Router $instance */
  11867. return $instance->hasMiddlewareGroup($name);
  11868. }
  11869. /**
  11870. * Get all of the defined middleware groups.
  11871. *
  11872. * @return array
  11873. * @static
  11874. */
  11875. public static function getMiddlewareGroups()
  11876. {
  11877. /** @var \Illuminate\Routing\Router $instance */
  11878. return $instance->getMiddlewareGroups();
  11879. }
  11880. /**
  11881. * Register a group of middleware.
  11882. *
  11883. * @param string $name
  11884. * @param array $middleware
  11885. * @return \Illuminate\Routing\Router
  11886. * @static
  11887. */
  11888. public static function middlewareGroup($name, $middleware)
  11889. {
  11890. /** @var \Illuminate\Routing\Router $instance */
  11891. return $instance->middlewareGroup($name, $middleware);
  11892. }
  11893. /**
  11894. * Add a middleware to the beginning of a middleware group.
  11895. *
  11896. * If the middleware is already in the group, it will not be added again.
  11897. *
  11898. * @param string $group
  11899. * @param string $middleware
  11900. * @return \Illuminate\Routing\Router
  11901. * @static
  11902. */
  11903. public static function prependMiddlewareToGroup($group, $middleware)
  11904. {
  11905. /** @var \Illuminate\Routing\Router $instance */
  11906. return $instance->prependMiddlewareToGroup($group, $middleware);
  11907. }
  11908. /**
  11909. * Add a middleware to the end of a middleware group.
  11910. *
  11911. * If the middleware is already in the group, it will not be added again.
  11912. *
  11913. * @param string $group
  11914. * @param string $middleware
  11915. * @return \Illuminate\Routing\Router
  11916. * @static
  11917. */
  11918. public static function pushMiddlewareToGroup($group, $middleware)
  11919. {
  11920. /** @var \Illuminate\Routing\Router $instance */
  11921. return $instance->pushMiddlewareToGroup($group, $middleware);
  11922. }
  11923. /**
  11924. * Flush the router's middleware groups.
  11925. *
  11926. * @return \Illuminate\Routing\Router
  11927. * @static
  11928. */
  11929. public static function flushMiddlewareGroups()
  11930. {
  11931. /** @var \Illuminate\Routing\Router $instance */
  11932. return $instance->flushMiddlewareGroups();
  11933. }
  11934. /**
  11935. * Add a new route parameter binder.
  11936. *
  11937. * @param string $key
  11938. * @param string|callable $binder
  11939. * @return void
  11940. * @static
  11941. */
  11942. public static function bind($key, $binder)
  11943. {
  11944. /** @var \Illuminate\Routing\Router $instance */
  11945. $instance->bind($key, $binder);
  11946. }
  11947. /**
  11948. * Register a model binder for a wildcard.
  11949. *
  11950. * @param string $key
  11951. * @param string $class
  11952. * @param \Closure|null $callback
  11953. * @return void
  11954. * @static
  11955. */
  11956. public static function model($key, $class, $callback = null)
  11957. {
  11958. /** @var \Illuminate\Routing\Router $instance */
  11959. $instance->model($key, $class, $callback);
  11960. }
  11961. /**
  11962. * Get the binding callback for a given binding.
  11963. *
  11964. * @param string $key
  11965. * @return \Closure|null
  11966. * @static
  11967. */
  11968. public static function getBindingCallback($key)
  11969. {
  11970. /** @var \Illuminate\Routing\Router $instance */
  11971. return $instance->getBindingCallback($key);
  11972. }
  11973. /**
  11974. * Get the global "where" patterns.
  11975. *
  11976. * @return array
  11977. * @static
  11978. */
  11979. public static function getPatterns()
  11980. {
  11981. /** @var \Illuminate\Routing\Router $instance */
  11982. return $instance->getPatterns();
  11983. }
  11984. /**
  11985. * Set a global where pattern on all routes.
  11986. *
  11987. * @param string $key
  11988. * @param string $pattern
  11989. * @return void
  11990. * @static
  11991. */
  11992. public static function pattern($key, $pattern)
  11993. {
  11994. /** @var \Illuminate\Routing\Router $instance */
  11995. $instance->pattern($key, $pattern);
  11996. }
  11997. /**
  11998. * Set a group of global where patterns on all routes.
  11999. *
  12000. * @param array $patterns
  12001. * @return void
  12002. * @static
  12003. */
  12004. public static function patterns($patterns)
  12005. {
  12006. /** @var \Illuminate\Routing\Router $instance */
  12007. $instance->patterns($patterns);
  12008. }
  12009. /**
  12010. * Determine if the router currently has a group stack.
  12011. *
  12012. * @return bool
  12013. * @static
  12014. */
  12015. public static function hasGroupStack()
  12016. {
  12017. /** @var \Illuminate\Routing\Router $instance */
  12018. return $instance->hasGroupStack();
  12019. }
  12020. /**
  12021. * Get the current group stack for the router.
  12022. *
  12023. * @return array
  12024. * @static
  12025. */
  12026. public static function getGroupStack()
  12027. {
  12028. /** @var \Illuminate\Routing\Router $instance */
  12029. return $instance->getGroupStack();
  12030. }
  12031. /**
  12032. * Get a route parameter for the current route.
  12033. *
  12034. * @param string $key
  12035. * @param string|null $default
  12036. * @return mixed
  12037. * @static
  12038. */
  12039. public static function input($key, $default = null)
  12040. {
  12041. /** @var \Illuminate\Routing\Router $instance */
  12042. return $instance->input($key, $default);
  12043. }
  12044. /**
  12045. * Get the request currently being dispatched.
  12046. *
  12047. * @return \Illuminate\Http\Request
  12048. * @static
  12049. */
  12050. public static function getCurrentRequest()
  12051. {
  12052. /** @var \Illuminate\Routing\Router $instance */
  12053. return $instance->getCurrentRequest();
  12054. }
  12055. /**
  12056. * Get the currently dispatched route instance.
  12057. *
  12058. * @return \Illuminate\Routing\Route|null
  12059. * @static
  12060. */
  12061. public static function getCurrentRoute()
  12062. {
  12063. /** @var \Illuminate\Routing\Router $instance */
  12064. return $instance->getCurrentRoute();
  12065. }
  12066. /**
  12067. * Get the currently dispatched route instance.
  12068. *
  12069. * @return \Illuminate\Routing\Route|null
  12070. * @static
  12071. */
  12072. public static function current()
  12073. {
  12074. /** @var \Illuminate\Routing\Router $instance */
  12075. return $instance->current();
  12076. }
  12077. /**
  12078. * Check if a route with the given name exists.
  12079. *
  12080. * @param string $name
  12081. * @return bool
  12082. * @static
  12083. */
  12084. public static function has($name)
  12085. {
  12086. /** @var \Illuminate\Routing\Router $instance */
  12087. return $instance->has($name);
  12088. }
  12089. /**
  12090. * Get the current route name.
  12091. *
  12092. * @return string|null
  12093. * @static
  12094. */
  12095. public static function currentRouteName()
  12096. {
  12097. /** @var \Illuminate\Routing\Router $instance */
  12098. return $instance->currentRouteName();
  12099. }
  12100. /**
  12101. * Alias for the "currentRouteNamed" method.
  12102. *
  12103. * @param mixed $patterns
  12104. * @return bool
  12105. * @static
  12106. */
  12107. public static function is(...$patterns)
  12108. {
  12109. /** @var \Illuminate\Routing\Router $instance */
  12110. return $instance->is(...$patterns);
  12111. }
  12112. /**
  12113. * Determine if the current route matches a pattern.
  12114. *
  12115. * @param mixed $patterns
  12116. * @return bool
  12117. * @static
  12118. */
  12119. public static function currentRouteNamed(...$patterns)
  12120. {
  12121. /** @var \Illuminate\Routing\Router $instance */
  12122. return $instance->currentRouteNamed(...$patterns);
  12123. }
  12124. /**
  12125. * Get the current route action.
  12126. *
  12127. * @return string|null
  12128. * @static
  12129. */
  12130. public static function currentRouteAction()
  12131. {
  12132. /** @var \Illuminate\Routing\Router $instance */
  12133. return $instance->currentRouteAction();
  12134. }
  12135. /**
  12136. * Alias for the "currentRouteUses" method.
  12137. *
  12138. * @param array $patterns
  12139. * @return bool
  12140. * @static
  12141. */
  12142. public static function uses(...$patterns)
  12143. {
  12144. /** @var \Illuminate\Routing\Router $instance */
  12145. return $instance->uses(...$patterns);
  12146. }
  12147. /**
  12148. * Determine if the current route action matches a given action.
  12149. *
  12150. * @param string $action
  12151. * @return bool
  12152. * @static
  12153. */
  12154. public static function currentRouteUses($action)
  12155. {
  12156. /** @var \Illuminate\Routing\Router $instance */
  12157. return $instance->currentRouteUses($action);
  12158. }
  12159. /**
  12160. * Set the unmapped global resource parameters to singular.
  12161. *
  12162. * @param bool $singular
  12163. * @return void
  12164. * @static
  12165. */
  12166. public static function singularResourceParameters($singular = true)
  12167. {
  12168. /** @var \Illuminate\Routing\Router $instance */
  12169. $instance->singularResourceParameters($singular);
  12170. }
  12171. /**
  12172. * Set the global resource parameter mapping.
  12173. *
  12174. * @param array $parameters
  12175. * @return void
  12176. * @static
  12177. */
  12178. public static function resourceParameters($parameters = [])
  12179. {
  12180. /** @var \Illuminate\Routing\Router $instance */
  12181. $instance->resourceParameters($parameters);
  12182. }
  12183. /**
  12184. * Get or set the verbs used in the resource URIs.
  12185. *
  12186. * @param array $verbs
  12187. * @return array|null
  12188. * @static
  12189. */
  12190. public static function resourceVerbs($verbs = [])
  12191. {
  12192. /** @var \Illuminate\Routing\Router $instance */
  12193. return $instance->resourceVerbs($verbs);
  12194. }
  12195. /**
  12196. * Get the underlying route collection.
  12197. *
  12198. * @return \Illuminate\Routing\RouteCollectionInterface
  12199. * @static
  12200. */
  12201. public static function getRoutes()
  12202. {
  12203. /** @var \Illuminate\Routing\Router $instance */
  12204. return $instance->getRoutes();
  12205. }
  12206. /**
  12207. * Set the route collection instance.
  12208. *
  12209. * @param \Illuminate\Routing\RouteCollection $routes
  12210. * @return void
  12211. * @static
  12212. */
  12213. public static function setRoutes($routes)
  12214. {
  12215. /** @var \Illuminate\Routing\Router $instance */
  12216. $instance->setRoutes($routes);
  12217. }
  12218. /**
  12219. * Set the compiled route collection instance.
  12220. *
  12221. * @param array $routes
  12222. * @return void
  12223. * @static
  12224. */
  12225. public static function setCompiledRoutes($routes)
  12226. {
  12227. /** @var \Illuminate\Routing\Router $instance */
  12228. $instance->setCompiledRoutes($routes);
  12229. }
  12230. /**
  12231. * Remove any duplicate middleware from the given array.
  12232. *
  12233. * @param array $middleware
  12234. * @return array
  12235. * @static
  12236. */
  12237. public static function uniqueMiddleware($middleware)
  12238. {
  12239. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  12240. }
  12241. /**
  12242. * Set the container instance used by the router.
  12243. *
  12244. * @param \Illuminate\Container\Container $container
  12245. * @return \Illuminate\Routing\Router
  12246. * @static
  12247. */
  12248. public static function setContainer($container)
  12249. {
  12250. /** @var \Illuminate\Routing\Router $instance */
  12251. return $instance->setContainer($container);
  12252. }
  12253. /**
  12254. * Register a custom macro.
  12255. *
  12256. * @param string $name
  12257. * @param object|callable $macro
  12258. * @return void
  12259. * @static
  12260. */
  12261. public static function macro($name, $macro)
  12262. {
  12263. \Illuminate\Routing\Router::macro($name, $macro);
  12264. }
  12265. /**
  12266. * Mix another object into the class.
  12267. *
  12268. * @param object $mixin
  12269. * @param bool $replace
  12270. * @return void
  12271. * @throws \ReflectionException
  12272. * @static
  12273. */
  12274. public static function mixin($mixin, $replace = true)
  12275. {
  12276. \Illuminate\Routing\Router::mixin($mixin, $replace);
  12277. }
  12278. /**
  12279. * Checks if macro is registered.
  12280. *
  12281. * @param string $name
  12282. * @return bool
  12283. * @static
  12284. */
  12285. public static function hasMacro($name)
  12286. {
  12287. return \Illuminate\Routing\Router::hasMacro($name);
  12288. }
  12289. /**
  12290. * Flush the existing macros.
  12291. *
  12292. * @return void
  12293. * @static
  12294. */
  12295. public static function flushMacros()
  12296. {
  12297. \Illuminate\Routing\Router::flushMacros();
  12298. }
  12299. /**
  12300. * Dynamically handle calls to the class.
  12301. *
  12302. * @param string $method
  12303. * @param array $parameters
  12304. * @return mixed
  12305. * @throws \BadMethodCallException
  12306. * @static
  12307. */
  12308. public static function macroCall($method, $parameters)
  12309. {
  12310. /** @var \Illuminate\Routing\Router $instance */
  12311. return $instance->macroCall($method, $parameters);
  12312. }
  12313. /**
  12314. *
  12315. *
  12316. * @see \Laravel\Ui\AuthRouteMethods::auth()
  12317. * @param mixed $options
  12318. * @static
  12319. */
  12320. public static function auth($options = [])
  12321. {
  12322. return \Illuminate\Routing\Router::auth($options);
  12323. }
  12324. /**
  12325. *
  12326. *
  12327. * @see \Laravel\Ui\AuthRouteMethods::resetPassword()
  12328. * @static
  12329. */
  12330. public static function resetPassword()
  12331. {
  12332. return \Illuminate\Routing\Router::resetPassword();
  12333. }
  12334. /**
  12335. *
  12336. *
  12337. * @see \Laravel\Ui\AuthRouteMethods::confirmPassword()
  12338. * @static
  12339. */
  12340. public static function confirmPassword()
  12341. {
  12342. return \Illuminate\Routing\Router::confirmPassword();
  12343. }
  12344. /**
  12345. *
  12346. *
  12347. * @see \Laravel\Ui\AuthRouteMethods::emailVerification()
  12348. * @static
  12349. */
  12350. public static function emailVerification()
  12351. {
  12352. return \Illuminate\Routing\Router::emailVerification();
  12353. }
  12354. }
  12355. /**
  12356. *
  12357. *
  12358. * @see \Illuminate\Database\Schema\Builder
  12359. */
  12360. class Schema {
  12361. /**
  12362. * Create a database in the schema.
  12363. *
  12364. * @param string $name
  12365. * @return bool
  12366. * @static
  12367. */
  12368. public static function createDatabase($name)
  12369. {
  12370. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12371. return $instance->createDatabase($name);
  12372. }
  12373. /**
  12374. * Drop a database from the schema if the database exists.
  12375. *
  12376. * @param string $name
  12377. * @return bool
  12378. * @static
  12379. */
  12380. public static function dropDatabaseIfExists($name)
  12381. {
  12382. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12383. return $instance->dropDatabaseIfExists($name);
  12384. }
  12385. /**
  12386. * Determine if the given table exists.
  12387. *
  12388. * @param string $table
  12389. * @return bool
  12390. * @static
  12391. */
  12392. public static function hasTable($table)
  12393. {
  12394. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12395. return $instance->hasTable($table);
  12396. }
  12397. /**
  12398. * Get the column listing for a given table.
  12399. *
  12400. * @param string $table
  12401. * @return array
  12402. * @static
  12403. */
  12404. public static function getColumnListing($table)
  12405. {
  12406. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12407. return $instance->getColumnListing($table);
  12408. }
  12409. /**
  12410. * Drop all tables from the database.
  12411. *
  12412. * @return void
  12413. * @static
  12414. */
  12415. public static function dropAllTables()
  12416. {
  12417. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12418. $instance->dropAllTables();
  12419. }
  12420. /**
  12421. * Drop all views from the database.
  12422. *
  12423. * @return void
  12424. * @static
  12425. */
  12426. public static function dropAllViews()
  12427. {
  12428. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12429. $instance->dropAllViews();
  12430. }
  12431. /**
  12432. * Get all of the table names for the database.
  12433. *
  12434. * @return array
  12435. * @static
  12436. */
  12437. public static function getAllTables()
  12438. {
  12439. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12440. return $instance->getAllTables();
  12441. }
  12442. /**
  12443. * Get all of the view names for the database.
  12444. *
  12445. * @return array
  12446. * @static
  12447. */
  12448. public static function getAllViews()
  12449. {
  12450. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12451. return $instance->getAllViews();
  12452. }
  12453. /**
  12454. * Set the default string length for migrations.
  12455. *
  12456. * @param int $length
  12457. * @return void
  12458. * @static
  12459. */
  12460. public static function defaultStringLength($length)
  12461. { //Method inherited from \Illuminate\Database\Schema\Builder
  12462. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  12463. }
  12464. /**
  12465. * Set the default morph key type for migrations.
  12466. *
  12467. * @param string $type
  12468. * @return void
  12469. * @throws \InvalidArgumentException
  12470. * @static
  12471. */
  12472. public static function defaultMorphKeyType($type)
  12473. { //Method inherited from \Illuminate\Database\Schema\Builder
  12474. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  12475. }
  12476. /**
  12477. * Set the default morph key type for migrations to UUIDs.
  12478. *
  12479. * @return void
  12480. * @static
  12481. */
  12482. public static function morphUsingUuids()
  12483. { //Method inherited from \Illuminate\Database\Schema\Builder
  12484. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  12485. }
  12486. /**
  12487. * Determine if the given table has a given column.
  12488. *
  12489. * @param string $table
  12490. * @param string $column
  12491. * @return bool
  12492. * @static
  12493. */
  12494. public static function hasColumn($table, $column)
  12495. { //Method inherited from \Illuminate\Database\Schema\Builder
  12496. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12497. return $instance->hasColumn($table, $column);
  12498. }
  12499. /**
  12500. * Determine if the given table has given columns.
  12501. *
  12502. * @param string $table
  12503. * @param array $columns
  12504. * @return bool
  12505. * @static
  12506. */
  12507. public static function hasColumns($table, $columns)
  12508. { //Method inherited from \Illuminate\Database\Schema\Builder
  12509. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12510. return $instance->hasColumns($table, $columns);
  12511. }
  12512. /**
  12513. * Get the data type for the given column name.
  12514. *
  12515. * @param string $table
  12516. * @param string $column
  12517. * @return string
  12518. * @static
  12519. */
  12520. public static function getColumnType($table, $column)
  12521. { //Method inherited from \Illuminate\Database\Schema\Builder
  12522. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12523. return $instance->getColumnType($table, $column);
  12524. }
  12525. /**
  12526. * Modify a table on the schema.
  12527. *
  12528. * @param string $table
  12529. * @param \Closure $callback
  12530. * @return void
  12531. * @static
  12532. */
  12533. public static function table($table, $callback)
  12534. { //Method inherited from \Illuminate\Database\Schema\Builder
  12535. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12536. $instance->table($table, $callback);
  12537. }
  12538. /**
  12539. * Create a new table on the schema.
  12540. *
  12541. * @param string $table
  12542. * @param \Closure $callback
  12543. * @return void
  12544. * @static
  12545. */
  12546. public static function create($table, $callback)
  12547. { //Method inherited from \Illuminate\Database\Schema\Builder
  12548. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12549. $instance->create($table, $callback);
  12550. }
  12551. /**
  12552. * Drop a table from the schema.
  12553. *
  12554. * @param string $table
  12555. * @return void
  12556. * @static
  12557. */
  12558. public static function drop($table)
  12559. { //Method inherited from \Illuminate\Database\Schema\Builder
  12560. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12561. $instance->drop($table);
  12562. }
  12563. /**
  12564. * Drop a table from the schema if it exists.
  12565. *
  12566. * @param string $table
  12567. * @return void
  12568. * @static
  12569. */
  12570. public static function dropIfExists($table)
  12571. { //Method inherited from \Illuminate\Database\Schema\Builder
  12572. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12573. $instance->dropIfExists($table);
  12574. }
  12575. /**
  12576. * Drop columns from a table schema.
  12577. *
  12578. * @param string $table
  12579. * @param string|array $columns
  12580. * @return void
  12581. * @static
  12582. */
  12583. public static function dropColumns($table, $columns)
  12584. { //Method inherited from \Illuminate\Database\Schema\Builder
  12585. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12586. $instance->dropColumns($table, $columns);
  12587. }
  12588. /**
  12589. * Drop all types from the database.
  12590. *
  12591. * @return void
  12592. * @throws \LogicException
  12593. * @static
  12594. */
  12595. public static function dropAllTypes()
  12596. { //Method inherited from \Illuminate\Database\Schema\Builder
  12597. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12598. $instance->dropAllTypes();
  12599. }
  12600. /**
  12601. * Rename a table on the schema.
  12602. *
  12603. * @param string $from
  12604. * @param string $to
  12605. * @return void
  12606. * @static
  12607. */
  12608. public static function rename($from, $to)
  12609. { //Method inherited from \Illuminate\Database\Schema\Builder
  12610. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12611. $instance->rename($from, $to);
  12612. }
  12613. /**
  12614. * Enable foreign key constraints.
  12615. *
  12616. * @return bool
  12617. * @static
  12618. */
  12619. public static function enableForeignKeyConstraints()
  12620. { //Method inherited from \Illuminate\Database\Schema\Builder
  12621. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12622. return $instance->enableForeignKeyConstraints();
  12623. }
  12624. /**
  12625. * Disable foreign key constraints.
  12626. *
  12627. * @return bool
  12628. * @static
  12629. */
  12630. public static function disableForeignKeyConstraints()
  12631. { //Method inherited from \Illuminate\Database\Schema\Builder
  12632. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12633. return $instance->disableForeignKeyConstraints();
  12634. }
  12635. /**
  12636. * Register a custom Doctrine mapping type.
  12637. *
  12638. * @param string $class
  12639. * @param string $name
  12640. * @param string $type
  12641. * @return void
  12642. * @static
  12643. */
  12644. public static function registerCustomDoctrineType($class, $name, $type)
  12645. { //Method inherited from \Illuminate\Database\Schema\Builder
  12646. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12647. $instance->registerCustomDoctrineType($class, $name, $type);
  12648. }
  12649. /**
  12650. * Get the database connection instance.
  12651. *
  12652. * @return \Illuminate\Database\Connection
  12653. * @static
  12654. */
  12655. public static function getConnection()
  12656. { //Method inherited from \Illuminate\Database\Schema\Builder
  12657. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12658. return $instance->getConnection();
  12659. }
  12660. /**
  12661. * Set the database connection instance.
  12662. *
  12663. * @param \Illuminate\Database\Connection $connection
  12664. * @return \Illuminate\Database\Schema\MySqlBuilder
  12665. * @static
  12666. */
  12667. public static function setConnection($connection)
  12668. { //Method inherited from \Illuminate\Database\Schema\Builder
  12669. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12670. return $instance->setConnection($connection);
  12671. }
  12672. /**
  12673. * Set the Schema Blueprint resolver callback.
  12674. *
  12675. * @param \Closure $resolver
  12676. * @return void
  12677. * @static
  12678. */
  12679. public static function blueprintResolver($resolver)
  12680. { //Method inherited from \Illuminate\Database\Schema\Builder
  12681. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12682. $instance->blueprintResolver($resolver);
  12683. }
  12684. }
  12685. /**
  12686. *
  12687. *
  12688. * @see \Illuminate\Session\SessionManager
  12689. * @see \Illuminate\Session\Store
  12690. */
  12691. class Session {
  12692. /**
  12693. * Determine if requests for the same session should wait for each to finish before executing.
  12694. *
  12695. * @return bool
  12696. * @static
  12697. */
  12698. public static function shouldBlock()
  12699. {
  12700. /** @var \Illuminate\Session\SessionManager $instance */
  12701. return $instance->shouldBlock();
  12702. }
  12703. /**
  12704. * Get the name of the cache store / driver that should be used to acquire session locks.
  12705. *
  12706. * @return string|null
  12707. * @static
  12708. */
  12709. public static function blockDriver()
  12710. {
  12711. /** @var \Illuminate\Session\SessionManager $instance */
  12712. return $instance->blockDriver();
  12713. }
  12714. /**
  12715. * Get the session configuration.
  12716. *
  12717. * @return array
  12718. * @static
  12719. */
  12720. public static function getSessionConfig()
  12721. {
  12722. /** @var \Illuminate\Session\SessionManager $instance */
  12723. return $instance->getSessionConfig();
  12724. }
  12725. /**
  12726. * Get the default session driver name.
  12727. *
  12728. * @return string
  12729. * @static
  12730. */
  12731. public static function getDefaultDriver()
  12732. {
  12733. /** @var \Illuminate\Session\SessionManager $instance */
  12734. return $instance->getDefaultDriver();
  12735. }
  12736. /**
  12737. * Set the default session driver name.
  12738. *
  12739. * @param string $name
  12740. * @return void
  12741. * @static
  12742. */
  12743. public static function setDefaultDriver($name)
  12744. {
  12745. /** @var \Illuminate\Session\SessionManager $instance */
  12746. $instance->setDefaultDriver($name);
  12747. }
  12748. /**
  12749. * Get a driver instance.
  12750. *
  12751. * @param string|null $driver
  12752. * @return mixed
  12753. * @throws \InvalidArgumentException
  12754. * @static
  12755. */
  12756. public static function driver($driver = null)
  12757. { //Method inherited from \Illuminate\Support\Manager
  12758. /** @var \Illuminate\Session\SessionManager $instance */
  12759. return $instance->driver($driver);
  12760. }
  12761. /**
  12762. * Register a custom driver creator Closure.
  12763. *
  12764. * @param string $driver
  12765. * @param \Closure $callback
  12766. * @return \Illuminate\Session\SessionManager
  12767. * @static
  12768. */
  12769. public static function extend($driver, $callback)
  12770. { //Method inherited from \Illuminate\Support\Manager
  12771. /** @var \Illuminate\Session\SessionManager $instance */
  12772. return $instance->extend($driver, $callback);
  12773. }
  12774. /**
  12775. * Get all of the created "drivers".
  12776. *
  12777. * @return array
  12778. * @static
  12779. */
  12780. public static function getDrivers()
  12781. { //Method inherited from \Illuminate\Support\Manager
  12782. /** @var \Illuminate\Session\SessionManager $instance */
  12783. return $instance->getDrivers();
  12784. }
  12785. /**
  12786. * Get the container instance used by the manager.
  12787. *
  12788. * @return \Illuminate\Contracts\Container\Container
  12789. * @static
  12790. */
  12791. public static function getContainer()
  12792. { //Method inherited from \Illuminate\Support\Manager
  12793. /** @var \Illuminate\Session\SessionManager $instance */
  12794. return $instance->getContainer();
  12795. }
  12796. /**
  12797. * Set the container instance used by the manager.
  12798. *
  12799. * @param \Illuminate\Contracts\Container\Container $container
  12800. * @return \Illuminate\Session\SessionManager
  12801. * @static
  12802. */
  12803. public static function setContainer($container)
  12804. { //Method inherited from \Illuminate\Support\Manager
  12805. /** @var \Illuminate\Session\SessionManager $instance */
  12806. return $instance->setContainer($container);
  12807. }
  12808. /**
  12809. * Forget all of the resolved driver instances.
  12810. *
  12811. * @return \Illuminate\Session\SessionManager
  12812. * @static
  12813. */
  12814. public static function forgetDrivers()
  12815. { //Method inherited from \Illuminate\Support\Manager
  12816. /** @var \Illuminate\Session\SessionManager $instance */
  12817. return $instance->forgetDrivers();
  12818. }
  12819. /**
  12820. * Start the session, reading the data from a handler.
  12821. *
  12822. * @return bool
  12823. * @static
  12824. */
  12825. public static function start()
  12826. {
  12827. /** @var \Illuminate\Session\Store $instance */
  12828. return $instance->start();
  12829. }
  12830. /**
  12831. * Save the session data to storage.
  12832. *
  12833. * @return void
  12834. * @static
  12835. */
  12836. public static function save()
  12837. {
  12838. /** @var \Illuminate\Session\Store $instance */
  12839. $instance->save();
  12840. }
  12841. /**
  12842. * Age the flash data for the session.
  12843. *
  12844. * @return void
  12845. * @static
  12846. */
  12847. public static function ageFlashData()
  12848. {
  12849. /** @var \Illuminate\Session\Store $instance */
  12850. $instance->ageFlashData();
  12851. }
  12852. /**
  12853. * Get all of the session data.
  12854. *
  12855. * @return array
  12856. * @static
  12857. */
  12858. public static function all()
  12859. {
  12860. /** @var \Illuminate\Session\Store $instance */
  12861. return $instance->all();
  12862. }
  12863. /**
  12864. * Get a subset of the session data.
  12865. *
  12866. * @param array $keys
  12867. * @return array
  12868. * @static
  12869. */
  12870. public static function only($keys)
  12871. {
  12872. /** @var \Illuminate\Session\Store $instance */
  12873. return $instance->only($keys);
  12874. }
  12875. /**
  12876. * Checks if a key exists.
  12877. *
  12878. * @param string|array $key
  12879. * @return bool
  12880. * @static
  12881. */
  12882. public static function exists($key)
  12883. {
  12884. /** @var \Illuminate\Session\Store $instance */
  12885. return $instance->exists($key);
  12886. }
  12887. /**
  12888. * Determine if the given key is missing from the session data.
  12889. *
  12890. * @param string|array $key
  12891. * @return bool
  12892. * @static
  12893. */
  12894. public static function missing($key)
  12895. {
  12896. /** @var \Illuminate\Session\Store $instance */
  12897. return $instance->missing($key);
  12898. }
  12899. /**
  12900. * Checks if a key is present and not null.
  12901. *
  12902. * @param string|array $key
  12903. * @return bool
  12904. * @static
  12905. */
  12906. public static function has($key)
  12907. {
  12908. /** @var \Illuminate\Session\Store $instance */
  12909. return $instance->has($key);
  12910. }
  12911. /**
  12912. * Get an item from the session.
  12913. *
  12914. * @param string $key
  12915. * @param mixed $default
  12916. * @return mixed
  12917. * @static
  12918. */
  12919. public static function get($key, $default = null)
  12920. {
  12921. /** @var \Illuminate\Session\Store $instance */
  12922. return $instance->get($key, $default);
  12923. }
  12924. /**
  12925. * Get the value of a given key and then forget it.
  12926. *
  12927. * @param string $key
  12928. * @param mixed $default
  12929. * @return mixed
  12930. * @static
  12931. */
  12932. public static function pull($key, $default = null)
  12933. {
  12934. /** @var \Illuminate\Session\Store $instance */
  12935. return $instance->pull($key, $default);
  12936. }
  12937. /**
  12938. * Determine if the session contains old input.
  12939. *
  12940. * @param string|null $key
  12941. * @return bool
  12942. * @static
  12943. */
  12944. public static function hasOldInput($key = null)
  12945. {
  12946. /** @var \Illuminate\Session\Store $instance */
  12947. return $instance->hasOldInput($key);
  12948. }
  12949. /**
  12950. * Get the requested item from the flashed input array.
  12951. *
  12952. * @param string|null $key
  12953. * @param mixed $default
  12954. * @return mixed
  12955. * @static
  12956. */
  12957. public static function getOldInput($key = null, $default = null)
  12958. {
  12959. /** @var \Illuminate\Session\Store $instance */
  12960. return $instance->getOldInput($key, $default);
  12961. }
  12962. /**
  12963. * Replace the given session attributes entirely.
  12964. *
  12965. * @param array $attributes
  12966. * @return void
  12967. * @static
  12968. */
  12969. public static function replace($attributes)
  12970. {
  12971. /** @var \Illuminate\Session\Store $instance */
  12972. $instance->replace($attributes);
  12973. }
  12974. /**
  12975. * Put a key / value pair or array of key / value pairs in the session.
  12976. *
  12977. * @param string|array $key
  12978. * @param mixed $value
  12979. * @return void
  12980. * @static
  12981. */
  12982. public static function put($key, $value = null)
  12983. {
  12984. /** @var \Illuminate\Session\Store $instance */
  12985. $instance->put($key, $value);
  12986. }
  12987. /**
  12988. * Get an item from the session, or store the default value.
  12989. *
  12990. * @param string $key
  12991. * @param \Closure $callback
  12992. * @return mixed
  12993. * @static
  12994. */
  12995. public static function remember($key, $callback)
  12996. {
  12997. /** @var \Illuminate\Session\Store $instance */
  12998. return $instance->remember($key, $callback);
  12999. }
  13000. /**
  13001. * Push a value onto a session array.
  13002. *
  13003. * @param string $key
  13004. * @param mixed $value
  13005. * @return void
  13006. * @static
  13007. */
  13008. public static function push($key, $value)
  13009. {
  13010. /** @var \Illuminate\Session\Store $instance */
  13011. $instance->push($key, $value);
  13012. }
  13013. /**
  13014. * Increment the value of an item in the session.
  13015. *
  13016. * @param string $key
  13017. * @param int $amount
  13018. * @return mixed
  13019. * @static
  13020. */
  13021. public static function increment($key, $amount = 1)
  13022. {
  13023. /** @var \Illuminate\Session\Store $instance */
  13024. return $instance->increment($key, $amount);
  13025. }
  13026. /**
  13027. * Decrement the value of an item in the session.
  13028. *
  13029. * @param string $key
  13030. * @param int $amount
  13031. * @return int
  13032. * @static
  13033. */
  13034. public static function decrement($key, $amount = 1)
  13035. {
  13036. /** @var \Illuminate\Session\Store $instance */
  13037. return $instance->decrement($key, $amount);
  13038. }
  13039. /**
  13040. * Flash a key / value pair to the session.
  13041. *
  13042. * @param string $key
  13043. * @param mixed $value
  13044. * @return void
  13045. * @static
  13046. */
  13047. public static function flash($key, $value = true)
  13048. {
  13049. /** @var \Illuminate\Session\Store $instance */
  13050. $instance->flash($key, $value);
  13051. }
  13052. /**
  13053. * Flash a key / value pair to the session for immediate use.
  13054. *
  13055. * @param string $key
  13056. * @param mixed $value
  13057. * @return void
  13058. * @static
  13059. */
  13060. public static function now($key, $value)
  13061. {
  13062. /** @var \Illuminate\Session\Store $instance */
  13063. $instance->now($key, $value);
  13064. }
  13065. /**
  13066. * Reflash all of the session flash data.
  13067. *
  13068. * @return void
  13069. * @static
  13070. */
  13071. public static function reflash()
  13072. {
  13073. /** @var \Illuminate\Session\Store $instance */
  13074. $instance->reflash();
  13075. }
  13076. /**
  13077. * Reflash a subset of the current flash data.
  13078. *
  13079. * @param array|mixed $keys
  13080. * @return void
  13081. * @static
  13082. */
  13083. public static function keep($keys = null)
  13084. {
  13085. /** @var \Illuminate\Session\Store $instance */
  13086. $instance->keep($keys);
  13087. }
  13088. /**
  13089. * Flash an input array to the session.
  13090. *
  13091. * @param array $value
  13092. * @return void
  13093. * @static
  13094. */
  13095. public static function flashInput($value)
  13096. {
  13097. /** @var \Illuminate\Session\Store $instance */
  13098. $instance->flashInput($value);
  13099. }
  13100. /**
  13101. * Remove an item from the session, returning its value.
  13102. *
  13103. * @param string $key
  13104. * @return mixed
  13105. * @static
  13106. */
  13107. public static function remove($key)
  13108. {
  13109. /** @var \Illuminate\Session\Store $instance */
  13110. return $instance->remove($key);
  13111. }
  13112. /**
  13113. * Remove one or many items from the session.
  13114. *
  13115. * @param string|array $keys
  13116. * @return void
  13117. * @static
  13118. */
  13119. public static function forget($keys)
  13120. {
  13121. /** @var \Illuminate\Session\Store $instance */
  13122. $instance->forget($keys);
  13123. }
  13124. /**
  13125. * Remove all of the items from the session.
  13126. *
  13127. * @return void
  13128. * @static
  13129. */
  13130. public static function flush()
  13131. {
  13132. /** @var \Illuminate\Session\Store $instance */
  13133. $instance->flush();
  13134. }
  13135. /**
  13136. * Flush the session data and regenerate the ID.
  13137. *
  13138. * @return bool
  13139. * @static
  13140. */
  13141. public static function invalidate()
  13142. {
  13143. /** @var \Illuminate\Session\Store $instance */
  13144. return $instance->invalidate();
  13145. }
  13146. /**
  13147. * Generate a new session identifier.
  13148. *
  13149. * @param bool $destroy
  13150. * @return bool
  13151. * @static
  13152. */
  13153. public static function regenerate($destroy = false)
  13154. {
  13155. /** @var \Illuminate\Session\Store $instance */
  13156. return $instance->regenerate($destroy);
  13157. }
  13158. /**
  13159. * Generate a new session ID for the session.
  13160. *
  13161. * @param bool $destroy
  13162. * @return bool
  13163. * @static
  13164. */
  13165. public static function migrate($destroy = false)
  13166. {
  13167. /** @var \Illuminate\Session\Store $instance */
  13168. return $instance->migrate($destroy);
  13169. }
  13170. /**
  13171. * Determine if the session has been started.
  13172. *
  13173. * @return bool
  13174. * @static
  13175. */
  13176. public static function isStarted()
  13177. {
  13178. /** @var \Illuminate\Session\Store $instance */
  13179. return $instance->isStarted();
  13180. }
  13181. /**
  13182. * Get the name of the session.
  13183. *
  13184. * @return string
  13185. * @static
  13186. */
  13187. public static function getName()
  13188. {
  13189. /** @var \Illuminate\Session\Store $instance */
  13190. return $instance->getName();
  13191. }
  13192. /**
  13193. * Set the name of the session.
  13194. *
  13195. * @param string $name
  13196. * @return void
  13197. * @static
  13198. */
  13199. public static function setName($name)
  13200. {
  13201. /** @var \Illuminate\Session\Store $instance */
  13202. $instance->setName($name);
  13203. }
  13204. /**
  13205. * Get the current session ID.
  13206. *
  13207. * @return string
  13208. * @static
  13209. */
  13210. public static function getId()
  13211. {
  13212. /** @var \Illuminate\Session\Store $instance */
  13213. return $instance->getId();
  13214. }
  13215. /**
  13216. * Set the session ID.
  13217. *
  13218. * @param string $id
  13219. * @return void
  13220. * @static
  13221. */
  13222. public static function setId($id)
  13223. {
  13224. /** @var \Illuminate\Session\Store $instance */
  13225. $instance->setId($id);
  13226. }
  13227. /**
  13228. * Determine if this is a valid session ID.
  13229. *
  13230. * @param string $id
  13231. * @return bool
  13232. * @static
  13233. */
  13234. public static function isValidId($id)
  13235. {
  13236. /** @var \Illuminate\Session\Store $instance */
  13237. return $instance->isValidId($id);
  13238. }
  13239. /**
  13240. * Set the existence of the session on the handler if applicable.
  13241. *
  13242. * @param bool $value
  13243. * @return void
  13244. * @static
  13245. */
  13246. public static function setExists($value)
  13247. {
  13248. /** @var \Illuminate\Session\Store $instance */
  13249. $instance->setExists($value);
  13250. }
  13251. /**
  13252. * Get the CSRF token value.
  13253. *
  13254. * @return string
  13255. * @static
  13256. */
  13257. public static function token()
  13258. {
  13259. /** @var \Illuminate\Session\Store $instance */
  13260. return $instance->token();
  13261. }
  13262. /**
  13263. * Regenerate the CSRF token value.
  13264. *
  13265. * @return void
  13266. * @static
  13267. */
  13268. public static function regenerateToken()
  13269. {
  13270. /** @var \Illuminate\Session\Store $instance */
  13271. $instance->regenerateToken();
  13272. }
  13273. /**
  13274. * Get the previous URL from the session.
  13275. *
  13276. * @return string|null
  13277. * @static
  13278. */
  13279. public static function previousUrl()
  13280. {
  13281. /** @var \Illuminate\Session\Store $instance */
  13282. return $instance->previousUrl();
  13283. }
  13284. /**
  13285. * Set the "previous" URL in the session.
  13286. *
  13287. * @param string $url
  13288. * @return void
  13289. * @static
  13290. */
  13291. public static function setPreviousUrl($url)
  13292. {
  13293. /** @var \Illuminate\Session\Store $instance */
  13294. $instance->setPreviousUrl($url);
  13295. }
  13296. /**
  13297. * Specify that the user has confirmed their password.
  13298. *
  13299. * @return void
  13300. * @static
  13301. */
  13302. public static function passwordConfirmed()
  13303. {
  13304. /** @var \Illuminate\Session\Store $instance */
  13305. $instance->passwordConfirmed();
  13306. }
  13307. /**
  13308. * Get the underlying session handler implementation.
  13309. *
  13310. * @return \SessionHandlerInterface
  13311. * @static
  13312. */
  13313. public static function getHandler()
  13314. {
  13315. /** @var \Illuminate\Session\Store $instance */
  13316. return $instance->getHandler();
  13317. }
  13318. /**
  13319. * Determine if the session handler needs a request.
  13320. *
  13321. * @return bool
  13322. * @static
  13323. */
  13324. public static function handlerNeedsRequest()
  13325. {
  13326. /** @var \Illuminate\Session\Store $instance */
  13327. return $instance->handlerNeedsRequest();
  13328. }
  13329. /**
  13330. * Set the request on the handler instance.
  13331. *
  13332. * @param \Illuminate\Http\Request $request
  13333. * @return void
  13334. * @static
  13335. */
  13336. public static function setRequestOnHandler($request)
  13337. {
  13338. /** @var \Illuminate\Session\Store $instance */
  13339. $instance->setRequestOnHandler($request);
  13340. }
  13341. }
  13342. /**
  13343. *
  13344. *
  13345. * @see \Illuminate\Filesystem\FilesystemManager
  13346. */
  13347. class Storage {
  13348. /**
  13349. * Get a filesystem instance.
  13350. *
  13351. * @param string|null $name
  13352. * @return \Illuminate\Filesystem\FilesystemAdapter
  13353. * @static
  13354. */
  13355. public static function drive($name = null)
  13356. {
  13357. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13358. return $instance->drive($name);
  13359. }
  13360. /**
  13361. * Get a filesystem instance.
  13362. *
  13363. * @param string|null $name
  13364. * @return \Illuminate\Filesystem\FilesystemAdapter
  13365. * @static
  13366. */
  13367. public static function disk($name = null)
  13368. {
  13369. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13370. return $instance->disk($name);
  13371. }
  13372. /**
  13373. * Get a default cloud filesystem instance.
  13374. *
  13375. * @return \Illuminate\Filesystem\FilesystemAdapter
  13376. * @static
  13377. */
  13378. public static function cloud()
  13379. {
  13380. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13381. return $instance->cloud();
  13382. }
  13383. /**
  13384. * Build an on-demand disk.
  13385. *
  13386. * @param string|array $config
  13387. * @return \Illuminate\Filesystem\FilesystemAdapter
  13388. * @static
  13389. */
  13390. public static function build($config)
  13391. {
  13392. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13393. return $instance->build($config);
  13394. }
  13395. /**
  13396. * Create an instance of the local driver.
  13397. *
  13398. * @param array $config
  13399. * @return \Illuminate\Filesystem\FilesystemAdapter
  13400. * @static
  13401. */
  13402. public static function createLocalDriver($config)
  13403. {
  13404. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13405. return $instance->createLocalDriver($config);
  13406. }
  13407. /**
  13408. * Create an instance of the ftp driver.
  13409. *
  13410. * @param array $config
  13411. * @return \Illuminate\Filesystem\FilesystemAdapter
  13412. * @static
  13413. */
  13414. public static function createFtpDriver($config)
  13415. {
  13416. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13417. return $instance->createFtpDriver($config);
  13418. }
  13419. /**
  13420. * Create an instance of the sftp driver.
  13421. *
  13422. * @param array $config
  13423. * @return \Illuminate\Filesystem\FilesystemAdapter
  13424. * @static
  13425. */
  13426. public static function createSftpDriver($config)
  13427. {
  13428. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13429. return $instance->createSftpDriver($config);
  13430. }
  13431. /**
  13432. * Create an instance of the Amazon S3 driver.
  13433. *
  13434. * @param array $config
  13435. * @return \Illuminate\Contracts\Filesystem\Cloud
  13436. * @static
  13437. */
  13438. public static function createS3Driver($config)
  13439. {
  13440. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13441. return $instance->createS3Driver($config);
  13442. }
  13443. /**
  13444. * Set the given disk instance.
  13445. *
  13446. * @param string $name
  13447. * @param mixed $disk
  13448. * @return \Illuminate\Filesystem\FilesystemManager
  13449. * @static
  13450. */
  13451. public static function set($name, $disk)
  13452. {
  13453. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13454. return $instance->set($name, $disk);
  13455. }
  13456. /**
  13457. * Get the default driver name.
  13458. *
  13459. * @return string
  13460. * @static
  13461. */
  13462. public static function getDefaultDriver()
  13463. {
  13464. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13465. return $instance->getDefaultDriver();
  13466. }
  13467. /**
  13468. * Get the default cloud driver name.
  13469. *
  13470. * @return string
  13471. * @static
  13472. */
  13473. public static function getDefaultCloudDriver()
  13474. {
  13475. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13476. return $instance->getDefaultCloudDriver();
  13477. }
  13478. /**
  13479. * Unset the given disk instances.
  13480. *
  13481. * @param array|string $disk
  13482. * @return \Illuminate\Filesystem\FilesystemManager
  13483. * @static
  13484. */
  13485. public static function forgetDisk($disk)
  13486. {
  13487. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13488. return $instance->forgetDisk($disk);
  13489. }
  13490. /**
  13491. * Disconnect the given disk and remove from local cache.
  13492. *
  13493. * @param string|null $name
  13494. * @return void
  13495. * @static
  13496. */
  13497. public static function purge($name = null)
  13498. {
  13499. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13500. $instance->purge($name);
  13501. }
  13502. /**
  13503. * Register a custom driver creator Closure.
  13504. *
  13505. * @param string $driver
  13506. * @param \Closure $callback
  13507. * @return \Illuminate\Filesystem\FilesystemManager
  13508. * @static
  13509. */
  13510. public static function extend($driver, $callback)
  13511. {
  13512. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13513. return $instance->extend($driver, $callback);
  13514. }
  13515. /**
  13516. * Set the application instance used by the manager.
  13517. *
  13518. * @param \Illuminate\Contracts\Foundation\Application $app
  13519. * @return \Illuminate\Filesystem\FilesystemManager
  13520. * @static
  13521. */
  13522. public static function setApplication($app)
  13523. {
  13524. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13525. return $instance->setApplication($app);
  13526. }
  13527. /**
  13528. * Assert that the given file exists.
  13529. *
  13530. * @param string|array $path
  13531. * @param string|null $content
  13532. * @return \Illuminate\Filesystem\FilesystemAdapter
  13533. * @static
  13534. */
  13535. public static function assertExists($path, $content = null)
  13536. {
  13537. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13538. return $instance->assertExists($path, $content);
  13539. }
  13540. /**
  13541. * Assert that the given file does not exist.
  13542. *
  13543. * @param string|array $path
  13544. * @return \Illuminate\Filesystem\FilesystemAdapter
  13545. * @static
  13546. */
  13547. public static function assertMissing($path)
  13548. {
  13549. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13550. return $instance->assertMissing($path);
  13551. }
  13552. /**
  13553. * Determine if a file exists.
  13554. *
  13555. * @param string $path
  13556. * @return bool
  13557. * @static
  13558. */
  13559. public static function exists($path)
  13560. {
  13561. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13562. return $instance->exists($path);
  13563. }
  13564. /**
  13565. * Determine if a file or directory is missing.
  13566. *
  13567. * @param string $path
  13568. * @return bool
  13569. * @static
  13570. */
  13571. public static function missing($path)
  13572. {
  13573. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13574. return $instance->missing($path);
  13575. }
  13576. /**
  13577. * Get the full path for the file at the given "short" path.
  13578. *
  13579. * @param string $path
  13580. * @return string
  13581. * @static
  13582. */
  13583. public static function path($path)
  13584. {
  13585. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13586. return $instance->path($path);
  13587. }
  13588. /**
  13589. * Get the contents of a file.
  13590. *
  13591. * @param string $path
  13592. * @return string
  13593. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13594. * @static
  13595. */
  13596. public static function get($path)
  13597. {
  13598. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13599. return $instance->get($path);
  13600. }
  13601. /**
  13602. * Create a streamed response for a given file.
  13603. *
  13604. * @param string $path
  13605. * @param string|null $name
  13606. * @param array|null $headers
  13607. * @param string|null $disposition
  13608. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13609. * @static
  13610. */
  13611. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  13612. {
  13613. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13614. return $instance->response($path, $name, $headers, $disposition);
  13615. }
  13616. /**
  13617. * Create a streamed download response for a given file.
  13618. *
  13619. * @param string $path
  13620. * @param string|null $name
  13621. * @param array|null $headers
  13622. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13623. * @static
  13624. */
  13625. public static function download($path, $name = null, $headers = [])
  13626. {
  13627. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13628. return $instance->download($path, $name, $headers);
  13629. }
  13630. /**
  13631. * Write the contents of a file.
  13632. *
  13633. * @param string $path
  13634. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  13635. * @param mixed $options
  13636. * @return bool
  13637. * @static
  13638. */
  13639. public static function put($path, $contents, $options = [])
  13640. {
  13641. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13642. return $instance->put($path, $contents, $options);
  13643. }
  13644. /**
  13645. * Store the uploaded file on the disk.
  13646. *
  13647. * @param string $path
  13648. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13649. * @param mixed $options
  13650. * @return string|false
  13651. * @static
  13652. */
  13653. public static function putFile($path, $file, $options = [])
  13654. {
  13655. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13656. return $instance->putFile($path, $file, $options);
  13657. }
  13658. /**
  13659. * Store the uploaded file on the disk with a given name.
  13660. *
  13661. * @param string $path
  13662. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13663. * @param string $name
  13664. * @param mixed $options
  13665. * @return string|false
  13666. * @static
  13667. */
  13668. public static function putFileAs($path, $file, $name, $options = [])
  13669. {
  13670. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13671. return $instance->putFileAs($path, $file, $name, $options);
  13672. }
  13673. /**
  13674. * Get the visibility for the given path.
  13675. *
  13676. * @param string $path
  13677. * @return string
  13678. * @static
  13679. */
  13680. public static function getVisibility($path)
  13681. {
  13682. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13683. return $instance->getVisibility($path);
  13684. }
  13685. /**
  13686. * Set the visibility for the given path.
  13687. *
  13688. * @param string $path
  13689. * @param string $visibility
  13690. * @return bool
  13691. * @static
  13692. */
  13693. public static function setVisibility($path, $visibility)
  13694. {
  13695. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13696. return $instance->setVisibility($path, $visibility);
  13697. }
  13698. /**
  13699. * Prepend to a file.
  13700. *
  13701. * @param string $path
  13702. * @param string $data
  13703. * @param string $separator
  13704. * @return bool
  13705. * @static
  13706. */
  13707. public static function prepend($path, $data, $separator = '
  13708. ')
  13709. {
  13710. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13711. return $instance->prepend($path, $data, $separator);
  13712. }
  13713. /**
  13714. * Append to a file.
  13715. *
  13716. * @param string $path
  13717. * @param string $data
  13718. * @param string $separator
  13719. * @return bool
  13720. * @static
  13721. */
  13722. public static function append($path, $data, $separator = '
  13723. ')
  13724. {
  13725. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13726. return $instance->append($path, $data, $separator);
  13727. }
  13728. /**
  13729. * Delete the file at a given path.
  13730. *
  13731. * @param string|array $paths
  13732. * @return bool
  13733. * @static
  13734. */
  13735. public static function delete($paths)
  13736. {
  13737. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13738. return $instance->delete($paths);
  13739. }
  13740. /**
  13741. * Copy a file to a new location.
  13742. *
  13743. * @param string $from
  13744. * @param string $to
  13745. * @return bool
  13746. * @static
  13747. */
  13748. public static function copy($from, $to)
  13749. {
  13750. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13751. return $instance->copy($from, $to);
  13752. }
  13753. /**
  13754. * Move a file to a new location.
  13755. *
  13756. * @param string $from
  13757. * @param string $to
  13758. * @return bool
  13759. * @static
  13760. */
  13761. public static function move($from, $to)
  13762. {
  13763. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13764. return $instance->move($from, $to);
  13765. }
  13766. /**
  13767. * Get the file size of a given file.
  13768. *
  13769. * @param string $path
  13770. * @return int
  13771. * @static
  13772. */
  13773. public static function size($path)
  13774. {
  13775. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13776. return $instance->size($path);
  13777. }
  13778. /**
  13779. * Get the mime-type of a given file.
  13780. *
  13781. * @param string $path
  13782. * @return string|false
  13783. * @static
  13784. */
  13785. public static function mimeType($path)
  13786. {
  13787. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13788. return $instance->mimeType($path);
  13789. }
  13790. /**
  13791. * Get the file's last modification time.
  13792. *
  13793. * @param string $path
  13794. * @return int
  13795. * @static
  13796. */
  13797. public static function lastModified($path)
  13798. {
  13799. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13800. return $instance->lastModified($path);
  13801. }
  13802. /**
  13803. * Get the URL for the file at the given path.
  13804. *
  13805. * @param string $path
  13806. * @return string
  13807. * @throws \RuntimeException
  13808. * @static
  13809. */
  13810. public static function url($path)
  13811. {
  13812. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13813. return $instance->url($path);
  13814. }
  13815. /**
  13816. * Get a resource to read the file.
  13817. *
  13818. * @param string $path
  13819. * @return resource|null The path resource or null on failure.
  13820. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13821. * @static
  13822. */
  13823. public static function readStream($path)
  13824. {
  13825. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13826. return $instance->readStream($path);
  13827. }
  13828. /**
  13829. * Write a new file using a stream.
  13830. *
  13831. * @param string $path
  13832. * @param resource $resource
  13833. * @param array $options
  13834. * @return bool
  13835. * @throws \InvalidArgumentException If $resource is not a file handle.
  13836. * @throws \Illuminate\Contracts\Filesystem\FileExistsException
  13837. * @static
  13838. */
  13839. public static function writeStream($path, $resource, $options = [])
  13840. {
  13841. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13842. return $instance->writeStream($path, $resource, $options);
  13843. }
  13844. /**
  13845. * Get a temporary URL for the file at the given path.
  13846. *
  13847. * @param string $path
  13848. * @param \DateTimeInterface $expiration
  13849. * @param array $options
  13850. * @return string
  13851. * @throws \RuntimeException
  13852. * @static
  13853. */
  13854. public static function temporaryUrl($path, $expiration, $options = [])
  13855. {
  13856. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13857. return $instance->temporaryUrl($path, $expiration, $options);
  13858. }
  13859. /**
  13860. * Get a temporary URL for the file at the given path.
  13861. *
  13862. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  13863. * @param string $path
  13864. * @param \DateTimeInterface $expiration
  13865. * @param array $options
  13866. * @return string
  13867. * @static
  13868. */
  13869. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  13870. {
  13871. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13872. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  13873. }
  13874. /**
  13875. * Get an array of all files in a directory.
  13876. *
  13877. * @param string|null $directory
  13878. * @param bool $recursive
  13879. * @return array
  13880. * @static
  13881. */
  13882. public static function files($directory = null, $recursive = false)
  13883. {
  13884. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13885. return $instance->files($directory, $recursive);
  13886. }
  13887. /**
  13888. * Get all of the files from the given directory (recursive).
  13889. *
  13890. * @param string|null $directory
  13891. * @return array
  13892. * @static
  13893. */
  13894. public static function allFiles($directory = null)
  13895. {
  13896. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13897. return $instance->allFiles($directory);
  13898. }
  13899. /**
  13900. * Get all of the directories within a given directory.
  13901. *
  13902. * @param string|null $directory
  13903. * @param bool $recursive
  13904. * @return array
  13905. * @static
  13906. */
  13907. public static function directories($directory = null, $recursive = false)
  13908. {
  13909. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13910. return $instance->directories($directory, $recursive);
  13911. }
  13912. /**
  13913. * Get all (recursive) of the directories within a given directory.
  13914. *
  13915. * @param string|null $directory
  13916. * @return array
  13917. * @static
  13918. */
  13919. public static function allDirectories($directory = null)
  13920. {
  13921. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13922. return $instance->allDirectories($directory);
  13923. }
  13924. /**
  13925. * Create a directory.
  13926. *
  13927. * @param string $path
  13928. * @return bool
  13929. * @static
  13930. */
  13931. public static function makeDirectory($path)
  13932. {
  13933. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13934. return $instance->makeDirectory($path);
  13935. }
  13936. /**
  13937. * Recursively delete a directory.
  13938. *
  13939. * @param string $directory
  13940. * @return bool
  13941. * @static
  13942. */
  13943. public static function deleteDirectory($directory)
  13944. {
  13945. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13946. return $instance->deleteDirectory($directory);
  13947. }
  13948. /**
  13949. * Flush the Flysystem cache.
  13950. *
  13951. * @return void
  13952. * @static
  13953. */
  13954. public static function flushCache()
  13955. {
  13956. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13957. $instance->flushCache();
  13958. }
  13959. /**
  13960. * Get the Flysystem driver.
  13961. *
  13962. * @return \League\Flysystem\FilesystemInterface
  13963. * @static
  13964. */
  13965. public static function getDriver()
  13966. {
  13967. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13968. return $instance->getDriver();
  13969. }
  13970. /**
  13971. * Define a custom temporary URL builder callback.
  13972. *
  13973. * @param \Closure $callback
  13974. * @return void
  13975. * @static
  13976. */
  13977. public static function buildTemporaryUrlsUsing($callback)
  13978. {
  13979. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13980. $instance->buildTemporaryUrlsUsing($callback);
  13981. }
  13982. /**
  13983. * Register a custom macro.
  13984. *
  13985. * @param string $name
  13986. * @param object|callable $macro
  13987. * @return void
  13988. * @static
  13989. */
  13990. public static function macro($name, $macro)
  13991. {
  13992. \Illuminate\Filesystem\FilesystemAdapter::macro($name, $macro);
  13993. }
  13994. /**
  13995. * Mix another object into the class.
  13996. *
  13997. * @param object $mixin
  13998. * @param bool $replace
  13999. * @return void
  14000. * @throws \ReflectionException
  14001. * @static
  14002. */
  14003. public static function mixin($mixin, $replace = true)
  14004. {
  14005. \Illuminate\Filesystem\FilesystemAdapter::mixin($mixin, $replace);
  14006. }
  14007. /**
  14008. * Checks if macro is registered.
  14009. *
  14010. * @param string $name
  14011. * @return bool
  14012. * @static
  14013. */
  14014. public static function hasMacro($name)
  14015. {
  14016. return \Illuminate\Filesystem\FilesystemAdapter::hasMacro($name);
  14017. }
  14018. /**
  14019. * Flush the existing macros.
  14020. *
  14021. * @return void
  14022. * @static
  14023. */
  14024. public static function flushMacros()
  14025. {
  14026. \Illuminate\Filesystem\FilesystemAdapter::flushMacros();
  14027. }
  14028. /**
  14029. * Dynamically handle calls to the class.
  14030. *
  14031. * @param string $method
  14032. * @param array $parameters
  14033. * @return mixed
  14034. * @throws \BadMethodCallException
  14035. * @static
  14036. */
  14037. public static function macroCall($method, $parameters)
  14038. {
  14039. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14040. return $instance->macroCall($method, $parameters);
  14041. }
  14042. }
  14043. /**
  14044. *
  14045. *
  14046. * @see \Illuminate\Routing\UrlGenerator
  14047. */
  14048. class URL {
  14049. /**
  14050. * Get the full URL for the current request.
  14051. *
  14052. * @return string
  14053. * @static
  14054. */
  14055. public static function full()
  14056. {
  14057. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14058. return $instance->full();
  14059. }
  14060. /**
  14061. * Get the current URL for the request.
  14062. *
  14063. * @return string
  14064. * @static
  14065. */
  14066. public static function current()
  14067. {
  14068. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14069. return $instance->current();
  14070. }
  14071. /**
  14072. * Get the URL for the previous request.
  14073. *
  14074. * @param mixed $fallback
  14075. * @return string
  14076. * @static
  14077. */
  14078. public static function previous($fallback = false)
  14079. {
  14080. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14081. return $instance->previous($fallback);
  14082. }
  14083. /**
  14084. * Generate an absolute URL to the given path.
  14085. *
  14086. * @param string $path
  14087. * @param mixed $extra
  14088. * @param bool|null $secure
  14089. * @return string
  14090. * @static
  14091. */
  14092. public static function to($path, $extra = [], $secure = null)
  14093. {
  14094. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14095. return $instance->to($path, $extra, $secure);
  14096. }
  14097. /**
  14098. * Generate a secure, absolute URL to the given path.
  14099. *
  14100. * @param string $path
  14101. * @param array $parameters
  14102. * @return string
  14103. * @static
  14104. */
  14105. public static function secure($path, $parameters = [])
  14106. {
  14107. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14108. return $instance->secure($path, $parameters);
  14109. }
  14110. /**
  14111. * Generate the URL to an application asset.
  14112. *
  14113. * @param string $path
  14114. * @param bool|null $secure
  14115. * @return string
  14116. * @static
  14117. */
  14118. public static function asset($path, $secure = null)
  14119. {
  14120. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14121. return $instance->asset($path, $secure);
  14122. }
  14123. /**
  14124. * Generate the URL to a secure asset.
  14125. *
  14126. * @param string $path
  14127. * @return string
  14128. * @static
  14129. */
  14130. public static function secureAsset($path)
  14131. {
  14132. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14133. return $instance->secureAsset($path);
  14134. }
  14135. /**
  14136. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  14137. *
  14138. * @param string $root
  14139. * @param string $path
  14140. * @param bool|null $secure
  14141. * @return string
  14142. * @static
  14143. */
  14144. public static function assetFrom($root, $path, $secure = null)
  14145. {
  14146. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14147. return $instance->assetFrom($root, $path, $secure);
  14148. }
  14149. /**
  14150. * Get the default scheme for a raw URL.
  14151. *
  14152. * @param bool|null $secure
  14153. * @return string
  14154. * @static
  14155. */
  14156. public static function formatScheme($secure = null)
  14157. {
  14158. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14159. return $instance->formatScheme($secure);
  14160. }
  14161. /**
  14162. * Create a signed route URL for a named route.
  14163. *
  14164. * @param string $name
  14165. * @param mixed $parameters
  14166. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  14167. * @param bool $absolute
  14168. * @return string
  14169. * @throws \InvalidArgumentException
  14170. * @static
  14171. */
  14172. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  14173. {
  14174. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14175. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  14176. }
  14177. /**
  14178. * Create a temporary signed route URL for a named route.
  14179. *
  14180. * @param string $name
  14181. * @param \DateTimeInterface|\DateInterval|int $expiration
  14182. * @param array $parameters
  14183. * @param bool $absolute
  14184. * @return string
  14185. * @static
  14186. */
  14187. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  14188. {
  14189. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14190. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  14191. }
  14192. /**
  14193. * Determine if the given request has a valid signature.
  14194. *
  14195. * @param \Illuminate\Http\Request $request
  14196. * @param bool $absolute
  14197. * @return bool
  14198. * @static
  14199. */
  14200. public static function hasValidSignature($request, $absolute = true)
  14201. {
  14202. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14203. return $instance->hasValidSignature($request, $absolute);
  14204. }
  14205. /**
  14206. * Determine if the given request has a valid signature for a relative URL.
  14207. *
  14208. * @param \Illuminate\Http\Request $request
  14209. * @return bool
  14210. * @static
  14211. */
  14212. public static function hasValidRelativeSignature($request)
  14213. {
  14214. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14215. return $instance->hasValidRelativeSignature($request);
  14216. }
  14217. /**
  14218. * Determine if the signature from the given request matches the URL.
  14219. *
  14220. * @param \Illuminate\Http\Request $request
  14221. * @param bool $absolute
  14222. * @return bool
  14223. * @static
  14224. */
  14225. public static function hasCorrectSignature($request, $absolute = true)
  14226. {
  14227. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14228. return $instance->hasCorrectSignature($request, $absolute);
  14229. }
  14230. /**
  14231. * Determine if the expires timestamp from the given request is not from the past.
  14232. *
  14233. * @param \Illuminate\Http\Request $request
  14234. * @return bool
  14235. * @static
  14236. */
  14237. public static function signatureHasNotExpired($request)
  14238. {
  14239. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14240. return $instance->signatureHasNotExpired($request);
  14241. }
  14242. /**
  14243. * Get the URL to a named route.
  14244. *
  14245. * @param string $name
  14246. * @param mixed $parameters
  14247. * @param bool $absolute
  14248. * @return string
  14249. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  14250. * @static
  14251. */
  14252. public static function route($name, $parameters = [], $absolute = true)
  14253. {
  14254. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14255. return $instance->route($name, $parameters, $absolute);
  14256. }
  14257. /**
  14258. * Get the URL for a given route instance.
  14259. *
  14260. * @param \Illuminate\Routing\Route $route
  14261. * @param mixed $parameters
  14262. * @param bool $absolute
  14263. * @return string
  14264. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  14265. * @static
  14266. */
  14267. public static function toRoute($route, $parameters, $absolute)
  14268. {
  14269. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14270. return $instance->toRoute($route, $parameters, $absolute);
  14271. }
  14272. /**
  14273. * Get the URL to a controller action.
  14274. *
  14275. * @param string|array $action
  14276. * @param mixed $parameters
  14277. * @param bool $absolute
  14278. * @return string
  14279. * @throws \InvalidArgumentException
  14280. * @static
  14281. */
  14282. public static function action($action, $parameters = [], $absolute = true)
  14283. {
  14284. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14285. return $instance->action($action, $parameters, $absolute);
  14286. }
  14287. /**
  14288. * Format the array of URL parameters.
  14289. *
  14290. * @param mixed|array $parameters
  14291. * @return array
  14292. * @static
  14293. */
  14294. public static function formatParameters($parameters)
  14295. {
  14296. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14297. return $instance->formatParameters($parameters);
  14298. }
  14299. /**
  14300. * Get the base URL for the request.
  14301. *
  14302. * @param string $scheme
  14303. * @param string|null $root
  14304. * @return string
  14305. * @static
  14306. */
  14307. public static function formatRoot($scheme, $root = null)
  14308. {
  14309. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14310. return $instance->formatRoot($scheme, $root);
  14311. }
  14312. /**
  14313. * Format the given URL segments into a single URL.
  14314. *
  14315. * @param string $root
  14316. * @param string $path
  14317. * @param \Illuminate\Routing\Route|null $route
  14318. * @return string
  14319. * @static
  14320. */
  14321. public static function format($root, $path, $route = null)
  14322. {
  14323. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14324. return $instance->format($root, $path, $route);
  14325. }
  14326. /**
  14327. * Determine if the given path is a valid URL.
  14328. *
  14329. * @param string $path
  14330. * @return bool
  14331. * @static
  14332. */
  14333. public static function isValidUrl($path)
  14334. {
  14335. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14336. return $instance->isValidUrl($path);
  14337. }
  14338. /**
  14339. * Set the default named parameters used by the URL generator.
  14340. *
  14341. * @param array $defaults
  14342. * @return void
  14343. * @static
  14344. */
  14345. public static function defaults($defaults)
  14346. {
  14347. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14348. $instance->defaults($defaults);
  14349. }
  14350. /**
  14351. * Get the default named parameters used by the URL generator.
  14352. *
  14353. * @return array
  14354. * @static
  14355. */
  14356. public static function getDefaultParameters()
  14357. {
  14358. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14359. return $instance->getDefaultParameters();
  14360. }
  14361. /**
  14362. * Force the scheme for URLs.
  14363. *
  14364. * @param string|null $scheme
  14365. * @return void
  14366. * @static
  14367. */
  14368. public static function forceScheme($scheme)
  14369. {
  14370. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14371. $instance->forceScheme($scheme);
  14372. }
  14373. /**
  14374. * Set the forced root URL.
  14375. *
  14376. * @param string|null $root
  14377. * @return void
  14378. * @static
  14379. */
  14380. public static function forceRootUrl($root)
  14381. {
  14382. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14383. $instance->forceRootUrl($root);
  14384. }
  14385. /**
  14386. * Set a callback to be used to format the host of generated URLs.
  14387. *
  14388. * @param \Closure $callback
  14389. * @return \Illuminate\Routing\UrlGenerator
  14390. * @static
  14391. */
  14392. public static function formatHostUsing($callback)
  14393. {
  14394. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14395. return $instance->formatHostUsing($callback);
  14396. }
  14397. /**
  14398. * Set a callback to be used to format the path of generated URLs.
  14399. *
  14400. * @param \Closure $callback
  14401. * @return \Illuminate\Routing\UrlGenerator
  14402. * @static
  14403. */
  14404. public static function formatPathUsing($callback)
  14405. {
  14406. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14407. return $instance->formatPathUsing($callback);
  14408. }
  14409. /**
  14410. * Get the path formatter being used by the URL generator.
  14411. *
  14412. * @return \Closure
  14413. * @static
  14414. */
  14415. public static function pathFormatter()
  14416. {
  14417. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14418. return $instance->pathFormatter();
  14419. }
  14420. /**
  14421. * Get the request instance.
  14422. *
  14423. * @return \Illuminate\Http\Request
  14424. * @static
  14425. */
  14426. public static function getRequest()
  14427. {
  14428. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14429. return $instance->getRequest();
  14430. }
  14431. /**
  14432. * Set the current request instance.
  14433. *
  14434. * @param \Illuminate\Http\Request $request
  14435. * @return void
  14436. * @static
  14437. */
  14438. public static function setRequest($request)
  14439. {
  14440. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14441. $instance->setRequest($request);
  14442. }
  14443. /**
  14444. * Set the route collection.
  14445. *
  14446. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  14447. * @return \Illuminate\Routing\UrlGenerator
  14448. * @static
  14449. */
  14450. public static function setRoutes($routes)
  14451. {
  14452. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14453. return $instance->setRoutes($routes);
  14454. }
  14455. /**
  14456. * Set the session resolver for the generator.
  14457. *
  14458. * @param callable $sessionResolver
  14459. * @return \Illuminate\Routing\UrlGenerator
  14460. * @static
  14461. */
  14462. public static function setSessionResolver($sessionResolver)
  14463. {
  14464. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14465. return $instance->setSessionResolver($sessionResolver);
  14466. }
  14467. /**
  14468. * Set the encryption key resolver.
  14469. *
  14470. * @param callable $keyResolver
  14471. * @return \Illuminate\Routing\UrlGenerator
  14472. * @static
  14473. */
  14474. public static function setKeyResolver($keyResolver)
  14475. {
  14476. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14477. return $instance->setKeyResolver($keyResolver);
  14478. }
  14479. /**
  14480. * Set the root controller namespace.
  14481. *
  14482. * @param string $rootNamespace
  14483. * @return \Illuminate\Routing\UrlGenerator
  14484. * @static
  14485. */
  14486. public static function setRootControllerNamespace($rootNamespace)
  14487. {
  14488. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14489. return $instance->setRootControllerNamespace($rootNamespace);
  14490. }
  14491. /**
  14492. * Register a custom macro.
  14493. *
  14494. * @param string $name
  14495. * @param object|callable $macro
  14496. * @return void
  14497. * @static
  14498. */
  14499. public static function macro($name, $macro)
  14500. {
  14501. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  14502. }
  14503. /**
  14504. * Mix another object into the class.
  14505. *
  14506. * @param object $mixin
  14507. * @param bool $replace
  14508. * @return void
  14509. * @throws \ReflectionException
  14510. * @static
  14511. */
  14512. public static function mixin($mixin, $replace = true)
  14513. {
  14514. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  14515. }
  14516. /**
  14517. * Checks if macro is registered.
  14518. *
  14519. * @param string $name
  14520. * @return bool
  14521. * @static
  14522. */
  14523. public static function hasMacro($name)
  14524. {
  14525. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  14526. }
  14527. /**
  14528. * Flush the existing macros.
  14529. *
  14530. * @return void
  14531. * @static
  14532. */
  14533. public static function flushMacros()
  14534. {
  14535. \Illuminate\Routing\UrlGenerator::flushMacros();
  14536. }
  14537. }
  14538. /**
  14539. *
  14540. *
  14541. * @see \Illuminate\Validation\Factory
  14542. */
  14543. class Validator {
  14544. /**
  14545. * Create a new Validator instance.
  14546. *
  14547. * @param array $data
  14548. * @param array $rules
  14549. * @param array $messages
  14550. * @param array $customAttributes
  14551. * @return \Illuminate\Validation\Validator
  14552. * @static
  14553. */
  14554. public static function make($data, $rules, $messages = [], $customAttributes = [])
  14555. {
  14556. /** @var \Illuminate\Validation\Factory $instance */
  14557. return $instance->make($data, $rules, $messages, $customAttributes);
  14558. }
  14559. /**
  14560. * Validate the given data against the provided rules.
  14561. *
  14562. * @param array $data
  14563. * @param array $rules
  14564. * @param array $messages
  14565. * @param array $customAttributes
  14566. * @return array
  14567. * @throws \Illuminate\Validation\ValidationException
  14568. * @static
  14569. */
  14570. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  14571. {
  14572. /** @var \Illuminate\Validation\Factory $instance */
  14573. return $instance->validate($data, $rules, $messages, $customAttributes);
  14574. }
  14575. /**
  14576. * Register a custom validator extension.
  14577. *
  14578. * @param string $rule
  14579. * @param \Closure|string $extension
  14580. * @param string|null $message
  14581. * @return void
  14582. * @static
  14583. */
  14584. public static function extend($rule, $extension, $message = null)
  14585. {
  14586. /** @var \Illuminate\Validation\Factory $instance */
  14587. $instance->extend($rule, $extension, $message);
  14588. }
  14589. /**
  14590. * Register a custom implicit validator extension.
  14591. *
  14592. * @param string $rule
  14593. * @param \Closure|string $extension
  14594. * @param string|null $message
  14595. * @return void
  14596. * @static
  14597. */
  14598. public static function extendImplicit($rule, $extension, $message = null)
  14599. {
  14600. /** @var \Illuminate\Validation\Factory $instance */
  14601. $instance->extendImplicit($rule, $extension, $message);
  14602. }
  14603. /**
  14604. * Register a custom dependent validator extension.
  14605. *
  14606. * @param string $rule
  14607. * @param \Closure|string $extension
  14608. * @param string|null $message
  14609. * @return void
  14610. * @static
  14611. */
  14612. public static function extendDependent($rule, $extension, $message = null)
  14613. {
  14614. /** @var \Illuminate\Validation\Factory $instance */
  14615. $instance->extendDependent($rule, $extension, $message);
  14616. }
  14617. /**
  14618. * Register a custom validator message replacer.
  14619. *
  14620. * @param string $rule
  14621. * @param \Closure|string $replacer
  14622. * @return void
  14623. * @static
  14624. */
  14625. public static function replacer($rule, $replacer)
  14626. {
  14627. /** @var \Illuminate\Validation\Factory $instance */
  14628. $instance->replacer($rule, $replacer);
  14629. }
  14630. /**
  14631. * Indicate that unvalidated array keys should be excluded, even if the parent array was validated.
  14632. *
  14633. * @return void
  14634. * @static
  14635. */
  14636. public static function excludeUnvalidatedArrayKeys()
  14637. {
  14638. /** @var \Illuminate\Validation\Factory $instance */
  14639. $instance->excludeUnvalidatedArrayKeys();
  14640. }
  14641. /**
  14642. * Set the Validator instance resolver.
  14643. *
  14644. * @param \Closure $resolver
  14645. * @return void
  14646. * @static
  14647. */
  14648. public static function resolver($resolver)
  14649. {
  14650. /** @var \Illuminate\Validation\Factory $instance */
  14651. $instance->resolver($resolver);
  14652. }
  14653. /**
  14654. * Get the Translator implementation.
  14655. *
  14656. * @return \Illuminate\Contracts\Translation\Translator
  14657. * @static
  14658. */
  14659. public static function getTranslator()
  14660. {
  14661. /** @var \Illuminate\Validation\Factory $instance */
  14662. return $instance->getTranslator();
  14663. }
  14664. /**
  14665. * Get the Presence Verifier implementation.
  14666. *
  14667. * @return \Illuminate\Validation\PresenceVerifierInterface
  14668. * @static
  14669. */
  14670. public static function getPresenceVerifier()
  14671. {
  14672. /** @var \Illuminate\Validation\Factory $instance */
  14673. return $instance->getPresenceVerifier();
  14674. }
  14675. /**
  14676. * Set the Presence Verifier implementation.
  14677. *
  14678. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  14679. * @return void
  14680. * @static
  14681. */
  14682. public static function setPresenceVerifier($presenceVerifier)
  14683. {
  14684. /** @var \Illuminate\Validation\Factory $instance */
  14685. $instance->setPresenceVerifier($presenceVerifier);
  14686. }
  14687. /**
  14688. * Get the container instance used by the validation factory.
  14689. *
  14690. * @return \Illuminate\Contracts\Container\Container
  14691. * @static
  14692. */
  14693. public static function getContainer()
  14694. {
  14695. /** @var \Illuminate\Validation\Factory $instance */
  14696. return $instance->getContainer();
  14697. }
  14698. /**
  14699. * Set the container instance used by the validation factory.
  14700. *
  14701. * @param \Illuminate\Contracts\Container\Container $container
  14702. * @return \Illuminate\Validation\Factory
  14703. * @static
  14704. */
  14705. public static function setContainer($container)
  14706. {
  14707. /** @var \Illuminate\Validation\Factory $instance */
  14708. return $instance->setContainer($container);
  14709. }
  14710. }
  14711. /**
  14712. *
  14713. *
  14714. * @see \Illuminate\View\Factory
  14715. */
  14716. class View {
  14717. /**
  14718. * Get the evaluated view contents for the given view.
  14719. *
  14720. * @param string $path
  14721. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14722. * @param array $mergeData
  14723. * @return \Illuminate\Contracts\View\View
  14724. * @static
  14725. */
  14726. public static function file($path, $data = [], $mergeData = [])
  14727. {
  14728. /** @var \Illuminate\View\Factory $instance */
  14729. return $instance->file($path, $data, $mergeData);
  14730. }
  14731. /**
  14732. * Get the evaluated view contents for the given view.
  14733. *
  14734. * @param string $view
  14735. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14736. * @param array $mergeData
  14737. * @return \Illuminate\Contracts\View\View
  14738. * @static
  14739. */
  14740. public static function make($view, $data = [], $mergeData = [])
  14741. {
  14742. /** @var \Illuminate\View\Factory $instance */
  14743. return $instance->make($view, $data, $mergeData);
  14744. }
  14745. /**
  14746. * Get the first view that actually exists from the given list.
  14747. *
  14748. * @param array $views
  14749. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14750. * @param array $mergeData
  14751. * @return \Illuminate\Contracts\View\View
  14752. * @throws \InvalidArgumentException
  14753. * @static
  14754. */
  14755. public static function first($views, $data = [], $mergeData = [])
  14756. {
  14757. /** @var \Illuminate\View\Factory $instance */
  14758. return $instance->first($views, $data, $mergeData);
  14759. }
  14760. /**
  14761. * Get the rendered content of the view based on a given condition.
  14762. *
  14763. * @param bool $condition
  14764. * @param string $view
  14765. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14766. * @param array $mergeData
  14767. * @return string
  14768. * @static
  14769. */
  14770. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  14771. {
  14772. /** @var \Illuminate\View\Factory $instance */
  14773. return $instance->renderWhen($condition, $view, $data, $mergeData);
  14774. }
  14775. /**
  14776. * Get the rendered content of the view based on the negation of a given condition.
  14777. *
  14778. * @param bool $condition
  14779. * @param string $view
  14780. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14781. * @param array $mergeData
  14782. * @return string
  14783. * @static
  14784. */
  14785. public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  14786. {
  14787. /** @var \Illuminate\View\Factory $instance */
  14788. return $instance->renderUnless($condition, $view, $data, $mergeData);
  14789. }
  14790. /**
  14791. * Get the rendered contents of a partial from a loop.
  14792. *
  14793. * @param string $view
  14794. * @param array $data
  14795. * @param string $iterator
  14796. * @param string $empty
  14797. * @return string
  14798. * @static
  14799. */
  14800. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  14801. {
  14802. /** @var \Illuminate\View\Factory $instance */
  14803. return $instance->renderEach($view, $data, $iterator, $empty);
  14804. }
  14805. /**
  14806. * Determine if a given view exists.
  14807. *
  14808. * @param string $view
  14809. * @return bool
  14810. * @static
  14811. */
  14812. public static function exists($view)
  14813. {
  14814. /** @var \Illuminate\View\Factory $instance */
  14815. return $instance->exists($view);
  14816. }
  14817. /**
  14818. * Get the appropriate view engine for the given path.
  14819. *
  14820. * @param string $path
  14821. * @return \Illuminate\Contracts\View\Engine
  14822. * @throws \InvalidArgumentException
  14823. * @static
  14824. */
  14825. public static function getEngineFromPath($path)
  14826. {
  14827. /** @var \Illuminate\View\Factory $instance */
  14828. return $instance->getEngineFromPath($path);
  14829. }
  14830. /**
  14831. * Add a piece of shared data to the environment.
  14832. *
  14833. * @param array|string $key
  14834. * @param mixed|null $value
  14835. * @return mixed
  14836. * @static
  14837. */
  14838. public static function share($key, $value = null)
  14839. {
  14840. /** @var \Illuminate\View\Factory $instance */
  14841. return $instance->share($key, $value);
  14842. }
  14843. /**
  14844. * Increment the rendering counter.
  14845. *
  14846. * @return void
  14847. * @static
  14848. */
  14849. public static function incrementRender()
  14850. {
  14851. /** @var \Illuminate\View\Factory $instance */
  14852. $instance->incrementRender();
  14853. }
  14854. /**
  14855. * Decrement the rendering counter.
  14856. *
  14857. * @return void
  14858. * @static
  14859. */
  14860. public static function decrementRender()
  14861. {
  14862. /** @var \Illuminate\View\Factory $instance */
  14863. $instance->decrementRender();
  14864. }
  14865. /**
  14866. * Check if there are no active render operations.
  14867. *
  14868. * @return bool
  14869. * @static
  14870. */
  14871. public static function doneRendering()
  14872. {
  14873. /** @var \Illuminate\View\Factory $instance */
  14874. return $instance->doneRendering();
  14875. }
  14876. /**
  14877. * Determine if the given once token has been rendered.
  14878. *
  14879. * @param string $id
  14880. * @return bool
  14881. * @static
  14882. */
  14883. public static function hasRenderedOnce($id)
  14884. {
  14885. /** @var \Illuminate\View\Factory $instance */
  14886. return $instance->hasRenderedOnce($id);
  14887. }
  14888. /**
  14889. * Mark the given once token as having been rendered.
  14890. *
  14891. * @param string $id
  14892. * @return void
  14893. * @static
  14894. */
  14895. public static function markAsRenderedOnce($id)
  14896. {
  14897. /** @var \Illuminate\View\Factory $instance */
  14898. $instance->markAsRenderedOnce($id);
  14899. }
  14900. /**
  14901. * Add a location to the array of view locations.
  14902. *
  14903. * @param string $location
  14904. * @return void
  14905. * @static
  14906. */
  14907. public static function addLocation($location)
  14908. {
  14909. /** @var \Illuminate\View\Factory $instance */
  14910. $instance->addLocation($location);
  14911. }
  14912. /**
  14913. * Add a new namespace to the loader.
  14914. *
  14915. * @param string $namespace
  14916. * @param string|array $hints
  14917. * @return \Illuminate\View\Factory
  14918. * @static
  14919. */
  14920. public static function addNamespace($namespace, $hints)
  14921. {
  14922. /** @var \Illuminate\View\Factory $instance */
  14923. return $instance->addNamespace($namespace, $hints);
  14924. }
  14925. /**
  14926. * Prepend a new namespace to the loader.
  14927. *
  14928. * @param string $namespace
  14929. * @param string|array $hints
  14930. * @return \Illuminate\View\Factory
  14931. * @static
  14932. */
  14933. public static function prependNamespace($namespace, $hints)
  14934. {
  14935. /** @var \Illuminate\View\Factory $instance */
  14936. return $instance->prependNamespace($namespace, $hints);
  14937. }
  14938. /**
  14939. * Replace the namespace hints for the given namespace.
  14940. *
  14941. * @param string $namespace
  14942. * @param string|array $hints
  14943. * @return \Illuminate\View\Factory
  14944. * @static
  14945. */
  14946. public static function replaceNamespace($namespace, $hints)
  14947. {
  14948. /** @var \Illuminate\View\Factory $instance */
  14949. return $instance->replaceNamespace($namespace, $hints);
  14950. }
  14951. /**
  14952. * Register a valid view extension and its engine.
  14953. *
  14954. * @param string $extension
  14955. * @param string $engine
  14956. * @param \Closure|null $resolver
  14957. * @return void
  14958. * @static
  14959. */
  14960. public static function addExtension($extension, $engine, $resolver = null)
  14961. {
  14962. /** @var \Illuminate\View\Factory $instance */
  14963. $instance->addExtension($extension, $engine, $resolver);
  14964. }
  14965. /**
  14966. * Flush all of the factory state like sections and stacks.
  14967. *
  14968. * @return void
  14969. * @static
  14970. */
  14971. public static function flushState()
  14972. {
  14973. /** @var \Illuminate\View\Factory $instance */
  14974. $instance->flushState();
  14975. }
  14976. /**
  14977. * Flush all of the section contents if done rendering.
  14978. *
  14979. * @return void
  14980. * @static
  14981. */
  14982. public static function flushStateIfDoneRendering()
  14983. {
  14984. /** @var \Illuminate\View\Factory $instance */
  14985. $instance->flushStateIfDoneRendering();
  14986. }
  14987. /**
  14988. * Get the extension to engine bindings.
  14989. *
  14990. * @return array
  14991. * @static
  14992. */
  14993. public static function getExtensions()
  14994. {
  14995. /** @var \Illuminate\View\Factory $instance */
  14996. return $instance->getExtensions();
  14997. }
  14998. /**
  14999. * Get the engine resolver instance.
  15000. *
  15001. * @return \Illuminate\View\Engines\EngineResolver
  15002. * @static
  15003. */
  15004. public static function getEngineResolver()
  15005. {
  15006. /** @var \Illuminate\View\Factory $instance */
  15007. return $instance->getEngineResolver();
  15008. }
  15009. /**
  15010. * Get the view finder instance.
  15011. *
  15012. * @return \Illuminate\View\ViewFinderInterface
  15013. * @static
  15014. */
  15015. public static function getFinder()
  15016. {
  15017. /** @var \Illuminate\View\Factory $instance */
  15018. return $instance->getFinder();
  15019. }
  15020. /**
  15021. * Set the view finder instance.
  15022. *
  15023. * @param \Illuminate\View\ViewFinderInterface $finder
  15024. * @return void
  15025. * @static
  15026. */
  15027. public static function setFinder($finder)
  15028. {
  15029. /** @var \Illuminate\View\Factory $instance */
  15030. $instance->setFinder($finder);
  15031. }
  15032. /**
  15033. * Flush the cache of views located by the finder.
  15034. *
  15035. * @return void
  15036. * @static
  15037. */
  15038. public static function flushFinderCache()
  15039. {
  15040. /** @var \Illuminate\View\Factory $instance */
  15041. $instance->flushFinderCache();
  15042. }
  15043. /**
  15044. * Get the event dispatcher instance.
  15045. *
  15046. * @return \Illuminate\Contracts\Events\Dispatcher
  15047. * @static
  15048. */
  15049. public static function getDispatcher()
  15050. {
  15051. /** @var \Illuminate\View\Factory $instance */
  15052. return $instance->getDispatcher();
  15053. }
  15054. /**
  15055. * Set the event dispatcher instance.
  15056. *
  15057. * @param \Illuminate\Contracts\Events\Dispatcher $events
  15058. * @return void
  15059. * @static
  15060. */
  15061. public static function setDispatcher($events)
  15062. {
  15063. /** @var \Illuminate\View\Factory $instance */
  15064. $instance->setDispatcher($events);
  15065. }
  15066. /**
  15067. * Get the IoC container instance.
  15068. *
  15069. * @return \Illuminate\Contracts\Container\Container
  15070. * @static
  15071. */
  15072. public static function getContainer()
  15073. {
  15074. /** @var \Illuminate\View\Factory $instance */
  15075. return $instance->getContainer();
  15076. }
  15077. /**
  15078. * Set the IoC container instance.
  15079. *
  15080. * @param \Illuminate\Contracts\Container\Container $container
  15081. * @return void
  15082. * @static
  15083. */
  15084. public static function setContainer($container)
  15085. {
  15086. /** @var \Illuminate\View\Factory $instance */
  15087. $instance->setContainer($container);
  15088. }
  15089. /**
  15090. * Get an item from the shared data.
  15091. *
  15092. * @param string $key
  15093. * @param mixed $default
  15094. * @return mixed
  15095. * @static
  15096. */
  15097. public static function shared($key, $default = null)
  15098. {
  15099. /** @var \Illuminate\View\Factory $instance */
  15100. return $instance->shared($key, $default);
  15101. }
  15102. /**
  15103. * Get all of the shared data for the environment.
  15104. *
  15105. * @return array
  15106. * @static
  15107. */
  15108. public static function getShared()
  15109. {
  15110. /** @var \Illuminate\View\Factory $instance */
  15111. return $instance->getShared();
  15112. }
  15113. /**
  15114. * Register a custom macro.
  15115. *
  15116. * @param string $name
  15117. * @param object|callable $macro
  15118. * @return void
  15119. * @static
  15120. */
  15121. public static function macro($name, $macro)
  15122. {
  15123. \Illuminate\View\Factory::macro($name, $macro);
  15124. }
  15125. /**
  15126. * Mix another object into the class.
  15127. *
  15128. * @param object $mixin
  15129. * @param bool $replace
  15130. * @return void
  15131. * @throws \ReflectionException
  15132. * @static
  15133. */
  15134. public static function mixin($mixin, $replace = true)
  15135. {
  15136. \Illuminate\View\Factory::mixin($mixin, $replace);
  15137. }
  15138. /**
  15139. * Checks if macro is registered.
  15140. *
  15141. * @param string $name
  15142. * @return bool
  15143. * @static
  15144. */
  15145. public static function hasMacro($name)
  15146. {
  15147. return \Illuminate\View\Factory::hasMacro($name);
  15148. }
  15149. /**
  15150. * Flush the existing macros.
  15151. *
  15152. * @return void
  15153. * @static
  15154. */
  15155. public static function flushMacros()
  15156. {
  15157. \Illuminate\View\Factory::flushMacros();
  15158. }
  15159. /**
  15160. * Start a component rendering process.
  15161. *
  15162. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  15163. * @param array $data
  15164. * @return void
  15165. * @static
  15166. */
  15167. public static function startComponent($view, $data = [])
  15168. {
  15169. /** @var \Illuminate\View\Factory $instance */
  15170. $instance->startComponent($view, $data);
  15171. }
  15172. /**
  15173. * Get the first view that actually exists from the given list, and start a component.
  15174. *
  15175. * @param array $names
  15176. * @param array $data
  15177. * @return void
  15178. * @static
  15179. */
  15180. public static function startComponentFirst($names, $data = [])
  15181. {
  15182. /** @var \Illuminate\View\Factory $instance */
  15183. $instance->startComponentFirst($names, $data);
  15184. }
  15185. /**
  15186. * Render the current component.
  15187. *
  15188. * @return string
  15189. * @static
  15190. */
  15191. public static function renderComponent()
  15192. {
  15193. /** @var \Illuminate\View\Factory $instance */
  15194. return $instance->renderComponent();
  15195. }
  15196. /**
  15197. * Get an item from the component data that exists above the current component.
  15198. *
  15199. * @param string $key
  15200. * @param mixed $default
  15201. * @return mixed|null
  15202. * @static
  15203. */
  15204. public static function getConsumableComponentData($key, $default = null)
  15205. {
  15206. /** @var \Illuminate\View\Factory $instance */
  15207. return $instance->getConsumableComponentData($key, $default);
  15208. }
  15209. /**
  15210. * Start the slot rendering process.
  15211. *
  15212. * @param string $name
  15213. * @param string|null $content
  15214. * @param array $attributes
  15215. * @return void
  15216. * @static
  15217. */
  15218. public static function slot($name, $content = null, $attributes = [])
  15219. {
  15220. /** @var \Illuminate\View\Factory $instance */
  15221. $instance->slot($name, $content, $attributes);
  15222. }
  15223. /**
  15224. * Save the slot content for rendering.
  15225. *
  15226. * @return void
  15227. * @static
  15228. */
  15229. public static function endSlot()
  15230. {
  15231. /** @var \Illuminate\View\Factory $instance */
  15232. $instance->endSlot();
  15233. }
  15234. /**
  15235. * Register a view creator event.
  15236. *
  15237. * @param array|string $views
  15238. * @param \Closure|string $callback
  15239. * @return array
  15240. * @static
  15241. */
  15242. public static function creator($views, $callback)
  15243. {
  15244. /** @var \Illuminate\View\Factory $instance */
  15245. return $instance->creator($views, $callback);
  15246. }
  15247. /**
  15248. * Register multiple view composers via an array.
  15249. *
  15250. * @param array $composers
  15251. * @return array
  15252. * @static
  15253. */
  15254. public static function composers($composers)
  15255. {
  15256. /** @var \Illuminate\View\Factory $instance */
  15257. return $instance->composers($composers);
  15258. }
  15259. /**
  15260. * Register a view composer event.
  15261. *
  15262. * @param array|string $views
  15263. * @param \Closure|string $callback
  15264. * @return array
  15265. * @static
  15266. */
  15267. public static function composer($views, $callback)
  15268. {
  15269. /** @var \Illuminate\View\Factory $instance */
  15270. return $instance->composer($views, $callback);
  15271. }
  15272. /**
  15273. * Call the composer for a given view.
  15274. *
  15275. * @param \Illuminate\Contracts\View\View $view
  15276. * @return void
  15277. * @static
  15278. */
  15279. public static function callComposer($view)
  15280. {
  15281. /** @var \Illuminate\View\Factory $instance */
  15282. $instance->callComposer($view);
  15283. }
  15284. /**
  15285. * Call the creator for a given view.
  15286. *
  15287. * @param \Illuminate\Contracts\View\View $view
  15288. * @return void
  15289. * @static
  15290. */
  15291. public static function callCreator($view)
  15292. {
  15293. /** @var \Illuminate\View\Factory $instance */
  15294. $instance->callCreator($view);
  15295. }
  15296. /**
  15297. * Start injecting content into a section.
  15298. *
  15299. * @param string $section
  15300. * @param string|null $content
  15301. * @return void
  15302. * @static
  15303. */
  15304. public static function startSection($section, $content = null)
  15305. {
  15306. /** @var \Illuminate\View\Factory $instance */
  15307. $instance->startSection($section, $content);
  15308. }
  15309. /**
  15310. * Inject inline content into a section.
  15311. *
  15312. * @param string $section
  15313. * @param string $content
  15314. * @return void
  15315. * @static
  15316. */
  15317. public static function inject($section, $content)
  15318. {
  15319. /** @var \Illuminate\View\Factory $instance */
  15320. $instance->inject($section, $content);
  15321. }
  15322. /**
  15323. * Stop injecting content into a section and return its contents.
  15324. *
  15325. * @return string
  15326. * @static
  15327. */
  15328. public static function yieldSection()
  15329. {
  15330. /** @var \Illuminate\View\Factory $instance */
  15331. return $instance->yieldSection();
  15332. }
  15333. /**
  15334. * Stop injecting content into a section.
  15335. *
  15336. * @param bool $overwrite
  15337. * @return string
  15338. * @throws \InvalidArgumentException
  15339. * @static
  15340. */
  15341. public static function stopSection($overwrite = false)
  15342. {
  15343. /** @var \Illuminate\View\Factory $instance */
  15344. return $instance->stopSection($overwrite);
  15345. }
  15346. /**
  15347. * Stop injecting content into a section and append it.
  15348. *
  15349. * @return string
  15350. * @throws \InvalidArgumentException
  15351. * @static
  15352. */
  15353. public static function appendSection()
  15354. {
  15355. /** @var \Illuminate\View\Factory $instance */
  15356. return $instance->appendSection();
  15357. }
  15358. /**
  15359. * Get the string contents of a section.
  15360. *
  15361. * @param string $section
  15362. * @param string $default
  15363. * @return string
  15364. * @static
  15365. */
  15366. public static function yieldContent($section, $default = '')
  15367. {
  15368. /** @var \Illuminate\View\Factory $instance */
  15369. return $instance->yieldContent($section, $default);
  15370. }
  15371. /**
  15372. * Get the parent placeholder for the current request.
  15373. *
  15374. * @param string $section
  15375. * @return string
  15376. * @static
  15377. */
  15378. public static function parentPlaceholder($section = '')
  15379. {
  15380. return \Illuminate\View\Factory::parentPlaceholder($section);
  15381. }
  15382. /**
  15383. * Check if section exists.
  15384. *
  15385. * @param string $name
  15386. * @return bool
  15387. * @static
  15388. */
  15389. public static function hasSection($name)
  15390. {
  15391. /** @var \Illuminate\View\Factory $instance */
  15392. return $instance->hasSection($name);
  15393. }
  15394. /**
  15395. * Check if section does not exist.
  15396. *
  15397. * @param string $name
  15398. * @return bool
  15399. * @static
  15400. */
  15401. public static function sectionMissing($name)
  15402. {
  15403. /** @var \Illuminate\View\Factory $instance */
  15404. return $instance->sectionMissing($name);
  15405. }
  15406. /**
  15407. * Get the contents of a section.
  15408. *
  15409. * @param string $name
  15410. * @param string|null $default
  15411. * @return mixed
  15412. * @static
  15413. */
  15414. public static function getSection($name, $default = null)
  15415. {
  15416. /** @var \Illuminate\View\Factory $instance */
  15417. return $instance->getSection($name, $default);
  15418. }
  15419. /**
  15420. * Get the entire array of sections.
  15421. *
  15422. * @return array
  15423. * @static
  15424. */
  15425. public static function getSections()
  15426. {
  15427. /** @var \Illuminate\View\Factory $instance */
  15428. return $instance->getSections();
  15429. }
  15430. /**
  15431. * Flush all of the sections.
  15432. *
  15433. * @return void
  15434. * @static
  15435. */
  15436. public static function flushSections()
  15437. {
  15438. /** @var \Illuminate\View\Factory $instance */
  15439. $instance->flushSections();
  15440. }
  15441. /**
  15442. * Add new loop to the stack.
  15443. *
  15444. * @param \Countable|array $data
  15445. * @return void
  15446. * @static
  15447. */
  15448. public static function addLoop($data)
  15449. {
  15450. /** @var \Illuminate\View\Factory $instance */
  15451. $instance->addLoop($data);
  15452. }
  15453. /**
  15454. * Increment the top loop's indices.
  15455. *
  15456. * @return void
  15457. * @static
  15458. */
  15459. public static function incrementLoopIndices()
  15460. {
  15461. /** @var \Illuminate\View\Factory $instance */
  15462. $instance->incrementLoopIndices();
  15463. }
  15464. /**
  15465. * Pop a loop from the top of the loop stack.
  15466. *
  15467. * @return void
  15468. * @static
  15469. */
  15470. public static function popLoop()
  15471. {
  15472. /** @var \Illuminate\View\Factory $instance */
  15473. $instance->popLoop();
  15474. }
  15475. /**
  15476. * Get an instance of the last loop in the stack.
  15477. *
  15478. * @return \stdClass|null
  15479. * @static
  15480. */
  15481. public static function getLastLoop()
  15482. {
  15483. /** @var \Illuminate\View\Factory $instance */
  15484. return $instance->getLastLoop();
  15485. }
  15486. /**
  15487. * Get the entire loop stack.
  15488. *
  15489. * @return array
  15490. * @static
  15491. */
  15492. public static function getLoopStack()
  15493. {
  15494. /** @var \Illuminate\View\Factory $instance */
  15495. return $instance->getLoopStack();
  15496. }
  15497. /**
  15498. * Start injecting content into a push section.
  15499. *
  15500. * @param string $section
  15501. * @param string $content
  15502. * @return void
  15503. * @static
  15504. */
  15505. public static function startPush($section, $content = '')
  15506. {
  15507. /** @var \Illuminate\View\Factory $instance */
  15508. $instance->startPush($section, $content);
  15509. }
  15510. /**
  15511. * Stop injecting content into a push section.
  15512. *
  15513. * @return string
  15514. * @throws \InvalidArgumentException
  15515. * @static
  15516. */
  15517. public static function stopPush()
  15518. {
  15519. /** @var \Illuminate\View\Factory $instance */
  15520. return $instance->stopPush();
  15521. }
  15522. /**
  15523. * Start prepending content into a push section.
  15524. *
  15525. * @param string $section
  15526. * @param string $content
  15527. * @return void
  15528. * @static
  15529. */
  15530. public static function startPrepend($section, $content = '')
  15531. {
  15532. /** @var \Illuminate\View\Factory $instance */
  15533. $instance->startPrepend($section, $content);
  15534. }
  15535. /**
  15536. * Stop prepending content into a push section.
  15537. *
  15538. * @return string
  15539. * @throws \InvalidArgumentException
  15540. * @static
  15541. */
  15542. public static function stopPrepend()
  15543. {
  15544. /** @var \Illuminate\View\Factory $instance */
  15545. return $instance->stopPrepend();
  15546. }
  15547. /**
  15548. * Get the string contents of a push section.
  15549. *
  15550. * @param string $section
  15551. * @param string $default
  15552. * @return string
  15553. * @static
  15554. */
  15555. public static function yieldPushContent($section, $default = '')
  15556. {
  15557. /** @var \Illuminate\View\Factory $instance */
  15558. return $instance->yieldPushContent($section, $default);
  15559. }
  15560. /**
  15561. * Flush all of the stacks.
  15562. *
  15563. * @return void
  15564. * @static
  15565. */
  15566. public static function flushStacks()
  15567. {
  15568. /** @var \Illuminate\View\Factory $instance */
  15569. $instance->flushStacks();
  15570. }
  15571. /**
  15572. * Start a translation block.
  15573. *
  15574. * @param array $replacements
  15575. * @return void
  15576. * @static
  15577. */
  15578. public static function startTranslation($replacements = [])
  15579. {
  15580. /** @var \Illuminate\View\Factory $instance */
  15581. $instance->startTranslation($replacements);
  15582. }
  15583. /**
  15584. * Render the current translation.
  15585. *
  15586. * @return string
  15587. * @static
  15588. */
  15589. public static function renderTranslation()
  15590. {
  15591. /** @var \Illuminate\View\Factory $instance */
  15592. return $instance->renderTranslation();
  15593. }
  15594. }
  15595. }
  15596. namespace Laravel\Socialite\Facades {
  15597. /**
  15598. *
  15599. *
  15600. * @see \Laravel\Socialite\SocialiteManager
  15601. */
  15602. class Socialite {
  15603. /**
  15604. * Get a driver instance.
  15605. *
  15606. * @param string $driver
  15607. * @return mixed
  15608. * @static
  15609. */
  15610. public static function with($driver)
  15611. {
  15612. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15613. return $instance->with($driver);
  15614. }
  15615. /**
  15616. * Build an OAuth 2 provider instance.
  15617. *
  15618. * @param string $provider
  15619. * @param array $config
  15620. * @return \Laravel\Socialite\Two\AbstractProvider
  15621. * @static
  15622. */
  15623. public static function buildProvider($provider, $config)
  15624. {
  15625. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15626. return $instance->buildProvider($provider, $config);
  15627. }
  15628. /**
  15629. * Format the server configuration.
  15630. *
  15631. * @param array $config
  15632. * @return array
  15633. * @static
  15634. */
  15635. public static function formatConfig($config)
  15636. {
  15637. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15638. return $instance->formatConfig($config);
  15639. }
  15640. /**
  15641. * Forget all of the resolved driver instances.
  15642. *
  15643. * @return \Laravel\Socialite\SocialiteManager
  15644. * @static
  15645. */
  15646. public static function forgetDrivers()
  15647. {
  15648. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15649. return $instance->forgetDrivers();
  15650. }
  15651. /**
  15652. * Set the container instance used by the manager.
  15653. *
  15654. * @param \Illuminate\Contracts\Container\Container $container
  15655. * @return \Laravel\Socialite\SocialiteManager
  15656. * @static
  15657. */
  15658. public static function setContainer($container)
  15659. {
  15660. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15661. return $instance->setContainer($container);
  15662. }
  15663. /**
  15664. * Get the default driver name.
  15665. *
  15666. * @return string
  15667. * @throws \InvalidArgumentException
  15668. * @static
  15669. */
  15670. public static function getDefaultDriver()
  15671. {
  15672. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15673. return $instance->getDefaultDriver();
  15674. }
  15675. /**
  15676. * Get a driver instance.
  15677. *
  15678. * @param string|null $driver
  15679. * @return mixed
  15680. * @throws \InvalidArgumentException
  15681. * @static
  15682. */
  15683. public static function driver($driver = null)
  15684. { //Method inherited from \Illuminate\Support\Manager
  15685. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15686. return $instance->driver($driver);
  15687. }
  15688. /**
  15689. * Register a custom driver creator Closure.
  15690. *
  15691. * @param string $driver
  15692. * @param \Closure $callback
  15693. * @return \Laravel\Socialite\SocialiteManager
  15694. * @static
  15695. */
  15696. public static function extend($driver, $callback)
  15697. { //Method inherited from \Illuminate\Support\Manager
  15698. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15699. return $instance->extend($driver, $callback);
  15700. }
  15701. /**
  15702. * Get all of the created "drivers".
  15703. *
  15704. * @return array
  15705. * @static
  15706. */
  15707. public static function getDrivers()
  15708. { //Method inherited from \Illuminate\Support\Manager
  15709. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15710. return $instance->getDrivers();
  15711. }
  15712. /**
  15713. * Get the container instance used by the manager.
  15714. *
  15715. * @return \Illuminate\Contracts\Container\Container
  15716. * @static
  15717. */
  15718. public static function getContainer()
  15719. { //Method inherited from \Illuminate\Support\Manager
  15720. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15721. return $instance->getContainer();
  15722. }
  15723. }
  15724. }
  15725. namespace niklasravnsborg\LaravelPdf\Facades {
  15726. /**
  15727. *
  15728. *
  15729. */
  15730. class Pdf {
  15731. /**
  15732. * Load a HTML string
  15733. *
  15734. * @param string $html
  15735. * @return \Pdf
  15736. * @static
  15737. */
  15738. public static function loadHTML($html, $config = [])
  15739. {
  15740. /** @var \niklasravnsborg\LaravelPdf\PdfWrapper $instance */
  15741. return $instance->loadHTML($html, $config);
  15742. }
  15743. /**
  15744. * Load a HTML file
  15745. *
  15746. * @param string $file
  15747. * @return \Pdf
  15748. * @static
  15749. */
  15750. public static function loadFile($file, $config = [])
  15751. {
  15752. /** @var \niklasravnsborg\LaravelPdf\PdfWrapper $instance */
  15753. return $instance->loadFile($file, $config);
  15754. }
  15755. /**
  15756. * Load a View and convert to HTML
  15757. *
  15758. * @param string $view
  15759. * @param array $data
  15760. * @param array $mergeData
  15761. * @return \Pdf
  15762. * @static
  15763. */
  15764. public static function loadView($view, $data = [], $mergeData = [], $config = [])
  15765. {
  15766. /** @var \niklasravnsborg\LaravelPdf\PdfWrapper $instance */
  15767. return $instance->loadView($view, $data, $mergeData, $config);
  15768. }
  15769. }
  15770. }
  15771. namespace Unicodeveloper\Paystack\Facades {
  15772. /**
  15773. *
  15774. *
  15775. */
  15776. class Paystack {
  15777. /**
  15778. * Get Base Url from Paystack config file
  15779. *
  15780. * @static
  15781. */
  15782. public static function setBaseUrl()
  15783. {
  15784. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15785. return $instance->setBaseUrl();
  15786. }
  15787. /**
  15788. * Get secret key from Paystack config file
  15789. *
  15790. * @static
  15791. */
  15792. public static function setKey()
  15793. {
  15794. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15795. return $instance->setKey();
  15796. }
  15797. /**
  15798. * Initiate a payment request to Paystack
  15799. * Included the option to pass the payload to this method for situations
  15800. * when the payload is built on the fly (not passed to the controller from a view)
  15801. *
  15802. * @return \Paystack
  15803. * @static
  15804. */
  15805. public static function makePaymentRequest($data = null)
  15806. {
  15807. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15808. return $instance->makePaymentRequest($data);
  15809. }
  15810. /**
  15811. * Get the authorization url from the callback response
  15812. *
  15813. * @return \Paystack
  15814. * @static
  15815. */
  15816. public static function getAuthorizationUrl($data = null)
  15817. {
  15818. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15819. return $instance->getAuthorizationUrl($data);
  15820. }
  15821. /**
  15822. * Get the authorization callback response
  15823. * In situations where Laravel serves as an backend for a detached UI, the api cannot redirect
  15824. * and might need to take different actions based on the success or not of the transaction
  15825. *
  15826. * @return array
  15827. * @static
  15828. */
  15829. public static function getAuthorizationResponse($data)
  15830. {
  15831. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15832. return $instance->getAuthorizationResponse($data);
  15833. }
  15834. /**
  15835. * True or false condition whether the transaction is verified
  15836. *
  15837. * @return boolean
  15838. * @static
  15839. */
  15840. public static function isTransactionVerificationValid($transaction_id = null)
  15841. {
  15842. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15843. return $instance->isTransactionVerificationValid($transaction_id);
  15844. }
  15845. /**
  15846. * Get Payment details if the transaction was verified successfully
  15847. *
  15848. * @return \Unicodeveloper\Paystack\json
  15849. * @throws PaymentVerificationFailedException
  15850. * @static
  15851. */
  15852. public static function getPaymentData()
  15853. {
  15854. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15855. return $instance->getPaymentData();
  15856. }
  15857. /**
  15858. * Fluent method to redirect to Paystack Payment Page
  15859. *
  15860. * @static
  15861. */
  15862. public static function redirectNow()
  15863. {
  15864. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15865. return $instance->redirectNow();
  15866. }
  15867. /**
  15868. * Get Access code from transaction callback respose
  15869. *
  15870. * @return string
  15871. * @static
  15872. */
  15873. public static function getAccessCode()
  15874. {
  15875. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15876. return $instance->getAccessCode();
  15877. }
  15878. /**
  15879. * Generate a Unique Transaction Reference
  15880. *
  15881. * @return string
  15882. * @static
  15883. */
  15884. public static function genTranxRef()
  15885. {
  15886. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15887. return $instance->genTranxRef();
  15888. }
  15889. /**
  15890. * Get all the customers that have made transactions on your platform
  15891. *
  15892. * @return array
  15893. * @static
  15894. */
  15895. public static function getAllCustomers()
  15896. {
  15897. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15898. return $instance->getAllCustomers();
  15899. }
  15900. /**
  15901. * Get all the plans that you have on Paystack
  15902. *
  15903. * @return array
  15904. * @static
  15905. */
  15906. public static function getAllPlans()
  15907. {
  15908. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15909. return $instance->getAllPlans();
  15910. }
  15911. /**
  15912. * Get all the transactions that have happened overtime
  15913. *
  15914. * @return array
  15915. * @static
  15916. */
  15917. public static function getAllTransactions()
  15918. {
  15919. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15920. return $instance->getAllTransactions();
  15921. }
  15922. /**
  15923. * Create a plan
  15924. *
  15925. * @static
  15926. */
  15927. public static function createPlan()
  15928. {
  15929. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15930. return $instance->createPlan();
  15931. }
  15932. /**
  15933. * Fetch any plan based on its plan id or code
  15934. *
  15935. * @param $plan_code
  15936. * @return array
  15937. * @static
  15938. */
  15939. public static function fetchPlan($plan_code)
  15940. {
  15941. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15942. return $instance->fetchPlan($plan_code);
  15943. }
  15944. /**
  15945. * Update any plan's details based on its id or code
  15946. *
  15947. * @param $plan_code
  15948. * @return array
  15949. * @static
  15950. */
  15951. public static function updatePlan($plan_code)
  15952. {
  15953. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15954. return $instance->updatePlan($plan_code);
  15955. }
  15956. /**
  15957. * Create a customer
  15958. *
  15959. * @static
  15960. */
  15961. public static function createCustomer()
  15962. {
  15963. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15964. return $instance->createCustomer();
  15965. }
  15966. /**
  15967. * Fetch a customer based on id or code
  15968. *
  15969. * @param $customer_id
  15970. * @return array
  15971. * @static
  15972. */
  15973. public static function fetchCustomer($customer_id)
  15974. {
  15975. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15976. return $instance->fetchCustomer($customer_id);
  15977. }
  15978. /**
  15979. * Update a customer's details based on their id or code
  15980. *
  15981. * @param $customer_id
  15982. * @return array
  15983. * @static
  15984. */
  15985. public static function updateCustomer($customer_id)
  15986. {
  15987. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15988. return $instance->updateCustomer($customer_id);
  15989. }
  15990. /**
  15991. * Export transactions in .CSV
  15992. *
  15993. * @return array
  15994. * @static
  15995. */
  15996. public static function exportTransactions()
  15997. {
  15998. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  15999. return $instance->exportTransactions();
  16000. }
  16001. /**
  16002. * Create a subscription to a plan from a customer.
  16003. *
  16004. * @static
  16005. */
  16006. public static function createSubscription()
  16007. {
  16008. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16009. return $instance->createSubscription();
  16010. }
  16011. /**
  16012. * Get all the subscriptions made on Paystack.
  16013. *
  16014. * @return array
  16015. * @static
  16016. */
  16017. public static function getAllSubscriptions()
  16018. {
  16019. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16020. return $instance->getAllSubscriptions();
  16021. }
  16022. /**
  16023. * Get customer subscriptions
  16024. *
  16025. * @param integer $customer_id
  16026. * @return array
  16027. * @static
  16028. */
  16029. public static function getCustomerSubscriptions($customer_id)
  16030. {
  16031. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16032. return $instance->getCustomerSubscriptions($customer_id);
  16033. }
  16034. /**
  16035. * Get plan subscriptions
  16036. *
  16037. * @param integer $plan_id
  16038. * @return array
  16039. * @static
  16040. */
  16041. public static function getPlanSubscriptions($plan_id)
  16042. {
  16043. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16044. return $instance->getPlanSubscriptions($plan_id);
  16045. }
  16046. /**
  16047. * Enable a subscription using the subscription code and token
  16048. *
  16049. * @return array
  16050. * @static
  16051. */
  16052. public static function enableSubscription()
  16053. {
  16054. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16055. return $instance->enableSubscription();
  16056. }
  16057. /**
  16058. * Disable a subscription using the subscription code and token
  16059. *
  16060. * @return array
  16061. * @static
  16062. */
  16063. public static function disableSubscription()
  16064. {
  16065. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16066. return $instance->disableSubscription();
  16067. }
  16068. /**
  16069. * Fetch details about a certain subscription
  16070. *
  16071. * @param mixed $subscription_id
  16072. * @return array
  16073. * @static
  16074. */
  16075. public static function fetchSubscription($subscription_id)
  16076. {
  16077. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16078. return $instance->fetchSubscription($subscription_id);
  16079. }
  16080. /**
  16081. * Create pages you can share with users using the returned slug
  16082. *
  16083. * @static
  16084. */
  16085. public static function createPage()
  16086. {
  16087. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16088. return $instance->createPage();
  16089. }
  16090. /**
  16091. * Fetches all the pages the merchant has
  16092. *
  16093. * @return array
  16094. * @static
  16095. */
  16096. public static function getAllPages()
  16097. {
  16098. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16099. return $instance->getAllPages();
  16100. }
  16101. /**
  16102. * Fetch details about a certain page using its id or slug
  16103. *
  16104. * @param mixed $page_id
  16105. * @return array
  16106. * @static
  16107. */
  16108. public static function fetchPage($page_id)
  16109. {
  16110. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16111. return $instance->fetchPage($page_id);
  16112. }
  16113. /**
  16114. * Update the details about a particular page
  16115. *
  16116. * @param $page_id
  16117. * @return array
  16118. * @static
  16119. */
  16120. public static function updatePage($page_id)
  16121. {
  16122. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16123. return $instance->updatePage($page_id);
  16124. }
  16125. /**
  16126. * Creates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge
  16127. *
  16128. * @return array
  16129. * @static
  16130. */
  16131. public static function createSubAccount()
  16132. {
  16133. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16134. return $instance->createSubAccount();
  16135. }
  16136. /**
  16137. * Fetches details of a subaccount
  16138. *
  16139. * @param \Unicodeveloper\Paystack\subaccount code
  16140. * @return array
  16141. * @static
  16142. */
  16143. public static function fetchSubAccount($subaccount_code)
  16144. {
  16145. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16146. return $instance->fetchSubAccount($subaccount_code);
  16147. }
  16148. /**
  16149. * Lists all the subaccounts associated with the account
  16150. *
  16151. * @param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve
  16152. * @return array
  16153. * @static
  16154. */
  16155. public static function listSubAccounts($per_page, $page)
  16156. {
  16157. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16158. return $instance->listSubAccounts($per_page, $page);
  16159. }
  16160. /**
  16161. * Updates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge
  16162. *
  16163. * @param \Unicodeveloper\Paystack\subaccount code
  16164. * @return array
  16165. * @static
  16166. */
  16167. public static function updateSubAccount($subaccount_code)
  16168. {
  16169. /** @var \Unicodeveloper\Paystack\Paystack $instance */
  16170. return $instance->updateSubAccount($subaccount_code);
  16171. }
  16172. }
  16173. }
  16174. namespace Maatwebsite\Excel\Facades {
  16175. /**
  16176. *
  16177. *
  16178. */
  16179. class Excel {
  16180. /**
  16181. *
  16182. *
  16183. * @param object $export
  16184. * @param string|null $fileName
  16185. * @param string $writerType
  16186. * @param array $headers
  16187. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  16188. * @throws \PhpOffice\PhpSpreadsheet\Exception
  16189. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  16190. * @static
  16191. */
  16192. public static function download($export, $fileName, $writerType = null, $headers = [])
  16193. {
  16194. /** @var \Maatwebsite\Excel\Excel $instance */
  16195. return $instance->download($export, $fileName, $writerType, $headers);
  16196. }
  16197. /**
  16198. *
  16199. *
  16200. * @param object $export
  16201. * @param string $filePath
  16202. * @param string|null $disk
  16203. * @param string $writerType
  16204. * @param mixed $diskOptions
  16205. * @return bool
  16206. * @throws \PhpOffice\PhpSpreadsheet\Exception
  16207. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  16208. * @static
  16209. */
  16210. public static function store($export, $filePath, $diskName = null, $writerType = null, $diskOptions = [])
  16211. {
  16212. /** @var \Maatwebsite\Excel\Excel $instance */
  16213. return $instance->store($export, $filePath, $diskName, $writerType, $diskOptions);
  16214. }
  16215. /**
  16216. *
  16217. *
  16218. * @param object $export
  16219. * @param string $filePath
  16220. * @param string|null $disk
  16221. * @param string $writerType
  16222. * @param mixed $diskOptions
  16223. * @return \Illuminate\Foundation\Bus\PendingDispatch
  16224. * @static
  16225. */
  16226. public static function queue($export, $filePath, $disk = null, $writerType = null, $diskOptions = [])
  16227. {
  16228. /** @var \Maatwebsite\Excel\Excel $instance */
  16229. return $instance->queue($export, $filePath, $disk, $writerType, $diskOptions);
  16230. }
  16231. /**
  16232. *
  16233. *
  16234. * @param object $export
  16235. * @param string $writerType
  16236. * @return string
  16237. * @static
  16238. */
  16239. public static function raw($export, $writerType)
  16240. {
  16241. /** @var \Maatwebsite\Excel\Excel $instance */
  16242. return $instance->raw($export, $writerType);
  16243. }
  16244. /**
  16245. *
  16246. *
  16247. * @param object $import
  16248. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  16249. * @param string|null $disk
  16250. * @param string|null $readerType
  16251. * @return \Maatwebsite\Excel\Reader|\Illuminate\Foundation\Bus\PendingDispatch
  16252. * @static
  16253. */
  16254. public static function import($import, $filePath, $disk = null, $readerType = null)
  16255. {
  16256. /** @var \Maatwebsite\Excel\Excel $instance */
  16257. return $instance->import($import, $filePath, $disk, $readerType);
  16258. }
  16259. /**
  16260. *
  16261. *
  16262. * @param object $import
  16263. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  16264. * @param string|null $disk
  16265. * @param string|null $readerType
  16266. * @return array
  16267. * @static
  16268. */
  16269. public static function toArray($import, $filePath, $disk = null, $readerType = null)
  16270. {
  16271. /** @var \Maatwebsite\Excel\Excel $instance */
  16272. return $instance->toArray($import, $filePath, $disk, $readerType);
  16273. }
  16274. /**
  16275. *
  16276. *
  16277. * @param object $import
  16278. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  16279. * @param string|null $disk
  16280. * @param string|null $readerType
  16281. * @return \Illuminate\Support\Collection
  16282. * @static
  16283. */
  16284. public static function toCollection($import, $filePath, $disk = null, $readerType = null)
  16285. {
  16286. /** @var \Maatwebsite\Excel\Excel $instance */
  16287. return $instance->toCollection($import, $filePath, $disk, $readerType);
  16288. }
  16289. /**
  16290. *
  16291. *
  16292. * @param \Illuminate\Contracts\Queue\ShouldQueue $import
  16293. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  16294. * @param string|null $disk
  16295. * @param string $readerType
  16296. * @return \Illuminate\Foundation\Bus\PendingDispatch
  16297. * @static
  16298. */
  16299. public static function queueImport($import, $filePath, $disk = null, $readerType = null)
  16300. {
  16301. /** @var \Maatwebsite\Excel\Excel $instance */
  16302. return $instance->queueImport($import, $filePath, $disk, $readerType);
  16303. }
  16304. /**
  16305. *
  16306. *
  16307. * @param string $concern
  16308. * @param callable $handler
  16309. * @param string $event
  16310. * @static
  16311. */
  16312. public static function extend($concern, $handler, $event = 'Maatwebsite\\Excel\\Events\\BeforeWriting')
  16313. {
  16314. return \Maatwebsite\Excel\Excel::extend($concern, $handler, $event);
  16315. }
  16316. /**
  16317. * When asserting downloaded, stored, queued or imported, use regular expression
  16318. * to look for a matching file path.
  16319. *
  16320. * @return void
  16321. * @static
  16322. */
  16323. public static function matchByRegex()
  16324. {
  16325. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  16326. $instance->matchByRegex();
  16327. }
  16328. /**
  16329. * When asserting downloaded, stored, queued or imported, use regular string
  16330. * comparison for matching file path.
  16331. *
  16332. * @return void
  16333. * @static
  16334. */
  16335. public static function doNotMatchByRegex()
  16336. {
  16337. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  16338. $instance->doNotMatchByRegex();
  16339. }
  16340. /**
  16341. *
  16342. *
  16343. * @param string $fileName
  16344. * @param callable|null $callback
  16345. * @static
  16346. */
  16347. public static function assertDownloaded($fileName, $callback = null)
  16348. {
  16349. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  16350. return $instance->assertDownloaded($fileName, $callback);
  16351. }
  16352. /**
  16353. *
  16354. *
  16355. * @param string $filePath
  16356. * @param string|callable|null $disk
  16357. * @param callable|null $callback
  16358. * @static
  16359. */
  16360. public static function assertStored($filePath, $disk = null, $callback = null)
  16361. {
  16362. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  16363. return $instance->assertStored($filePath, $disk, $callback);
  16364. }
  16365. /**
  16366. *
  16367. *
  16368. * @param string $filePath
  16369. * @param string|callable|null $disk
  16370. * @param callable|null $callback
  16371. * @static
  16372. */
  16373. public static function assertQueued($filePath, $disk = null, $callback = null)
  16374. {
  16375. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  16376. return $instance->assertQueued($filePath, $disk, $callback);
  16377. }
  16378. /**
  16379. *
  16380. *
  16381. * @static
  16382. */
  16383. public static function assertQueuedWithChain($chain)
  16384. {
  16385. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  16386. return $instance->assertQueuedWithChain($chain);
  16387. }
  16388. /**
  16389. *
  16390. *
  16391. * @param string $classname
  16392. * @param callable|null $callback
  16393. * @static
  16394. */
  16395. public static function assertExportedInRaw($classname, $callback = null)
  16396. {
  16397. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  16398. return $instance->assertExportedInRaw($classname, $callback);
  16399. }
  16400. /**
  16401. *
  16402. *
  16403. * @param string $filePath
  16404. * @param string|callable|null $disk
  16405. * @param callable|null $callback
  16406. * @static
  16407. */
  16408. public static function assertImported($filePath, $disk = null, $callback = null)
  16409. {
  16410. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  16411. return $instance->assertImported($filePath, $disk, $callback);
  16412. }
  16413. }
  16414. }
  16415. namespace Anand\LaravelPaytmWallet\Facades {
  16416. /**
  16417. *
  16418. *
  16419. * @see \Laravel\Socialite\SocialiteManager
  16420. */
  16421. class PaytmWallet {
  16422. /**
  16423. *
  16424. *
  16425. * @static
  16426. */
  16427. public static function with($driver)
  16428. {
  16429. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16430. return $instance->with($driver);
  16431. }
  16432. /**
  16433. *
  16434. *
  16435. * @static
  16436. */
  16437. public static function getDefaultDriver()
  16438. {
  16439. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16440. return $instance->getDefaultDriver();
  16441. }
  16442. /**
  16443. *
  16444. *
  16445. * @static
  16446. */
  16447. public static function buildProvider($provider, $config)
  16448. {
  16449. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16450. return $instance->buildProvider($provider, $config);
  16451. }
  16452. /**
  16453. * Get a driver instance.
  16454. *
  16455. * @param string|null $driver
  16456. * @return mixed
  16457. * @throws \InvalidArgumentException
  16458. * @static
  16459. */
  16460. public static function driver($driver = null)
  16461. { //Method inherited from \Illuminate\Support\Manager
  16462. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16463. return $instance->driver($driver);
  16464. }
  16465. /**
  16466. * Register a custom driver creator Closure.
  16467. *
  16468. * @param string $driver
  16469. * @param \Closure $callback
  16470. * @return \Anand\LaravelPaytmWallet\PaytmWalletManager
  16471. * @static
  16472. */
  16473. public static function extend($driver, $callback)
  16474. { //Method inherited from \Illuminate\Support\Manager
  16475. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16476. return $instance->extend($driver, $callback);
  16477. }
  16478. /**
  16479. * Get all of the created "drivers".
  16480. *
  16481. * @return array
  16482. * @static
  16483. */
  16484. public static function getDrivers()
  16485. { //Method inherited from \Illuminate\Support\Manager
  16486. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16487. return $instance->getDrivers();
  16488. }
  16489. /**
  16490. * Get the container instance used by the manager.
  16491. *
  16492. * @return \Illuminate\Contracts\Container\Container
  16493. * @static
  16494. */
  16495. public static function getContainer()
  16496. { //Method inherited from \Illuminate\Support\Manager
  16497. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16498. return $instance->getContainer();
  16499. }
  16500. /**
  16501. * Set the container instance used by the manager.
  16502. *
  16503. * @param \Illuminate\Contracts\Container\Container $container
  16504. * @return \Anand\LaravelPaytmWallet\PaytmWalletManager
  16505. * @static
  16506. */
  16507. public static function setContainer($container)
  16508. { //Method inherited from \Illuminate\Support\Manager
  16509. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16510. return $instance->setContainer($container);
  16511. }
  16512. /**
  16513. * Forget all of the resolved driver instances.
  16514. *
  16515. * @return \Anand\LaravelPaytmWallet\PaytmWalletManager
  16516. * @static
  16517. */
  16518. public static function forgetDrivers()
  16519. { //Method inherited from \Illuminate\Support\Manager
  16520. /** @var \Anand\LaravelPaytmWallet\PaytmWalletManager $instance */
  16521. return $instance->forgetDrivers();
  16522. }
  16523. }
  16524. }
  16525. namespace Illuminate\Support {
  16526. /**
  16527. *
  16528. *
  16529. */
  16530. class Str {
  16531. }
  16532. /**
  16533. *
  16534. *
  16535. */
  16536. class Collection {
  16537. /**
  16538. *
  16539. *
  16540. * @see \Barryvdh\Debugbar\ServiceProvider::register()
  16541. * @static
  16542. */
  16543. public static function debug()
  16544. {
  16545. return \Illuminate\Support\Collection::debug();
  16546. }
  16547. /**
  16548. *
  16549. *
  16550. * @see \Maatwebsite\Excel\Mixins\DownloadCollection::downloadExcel()
  16551. * @param string $fileName
  16552. * @param string|null $writerType
  16553. * @param mixed $withHeadings
  16554. * @param array $responseHeaders
  16555. * @static
  16556. */
  16557. public static function downloadExcel($fileName, $writerType = null, $withHeadings = false, $responseHeaders = [])
  16558. {
  16559. return \Illuminate\Support\Collection::downloadExcel($fileName, $writerType, $withHeadings, $responseHeaders);
  16560. }
  16561. /**
  16562. *
  16563. *
  16564. * @see \Maatwebsite\Excel\Mixins\StoreCollection::storeExcel()
  16565. * @param string $filePath
  16566. * @param string|null $disk
  16567. * @param string|null $writerType
  16568. * @param mixed $withHeadings
  16569. * @static
  16570. */
  16571. public static function storeExcel($filePath, $disk = null, $writerType = null, $withHeadings = false)
  16572. {
  16573. return \Illuminate\Support\Collection::storeExcel($filePath, $disk, $writerType, $withHeadings);
  16574. }
  16575. }
  16576. }
  16577. namespace KingFlamez\Rave\Facades {
  16578. /**
  16579. *
  16580. *
  16581. */
  16582. class Rave {
  16583. /**
  16584. * Generates a unique reference
  16585. *
  16586. * @param $transactionPrefix
  16587. * @return string
  16588. * @static
  16589. */
  16590. public static function generateReference($transactionPrefix = null)
  16591. {
  16592. /** @var \KingFlamez\Rave\Rave $instance */
  16593. return $instance->generateReference($transactionPrefix);
  16594. }
  16595. /**
  16596. * Reaches out to Flutterwave to initialize a payment
  16597. *
  16598. * @param $data
  16599. * @return object
  16600. * @static
  16601. */
  16602. public static function initializePayment($data)
  16603. {
  16604. /** @var \KingFlamez\Rave\Rave $instance */
  16605. return $instance->initializePayment($data);
  16606. }
  16607. /**
  16608. * Gets a transaction ID depending on the redirect structure
  16609. *
  16610. * @return string
  16611. * @static
  16612. */
  16613. public static function getTransactionIDFromCallback()
  16614. {
  16615. /** @var \KingFlamez\Rave\Rave $instance */
  16616. return $instance->getTransactionIDFromCallback();
  16617. }
  16618. /**
  16619. * Reaches out to Flutterwave to verify a transaction
  16620. *
  16621. * @param $id
  16622. * @return object
  16623. * @static
  16624. */
  16625. public static function verifyTransaction($id)
  16626. {
  16627. /** @var \KingFlamez\Rave\Rave $instance */
  16628. return $instance->verifyTransaction($id);
  16629. }
  16630. /**
  16631. * Confirms webhook `verifi-hash` is the same as the environment variable
  16632. *
  16633. * @param $data
  16634. * @return boolean
  16635. * @static
  16636. */
  16637. public static function verifyWebhook()
  16638. {
  16639. /** @var \KingFlamez\Rave\Rave $instance */
  16640. return $instance->verifyWebhook();
  16641. }
  16642. /**
  16643. * Payments
  16644. *
  16645. * @return \KingFlamez\Rave\Helpers\Payments
  16646. * @static
  16647. */
  16648. public static function payments()
  16649. {
  16650. /** @var \KingFlamez\Rave\Rave $instance */
  16651. return $instance->payments();
  16652. }
  16653. /**
  16654. * Banks
  16655. *
  16656. * @return \KingFlamez\Rave\Helpers\Banks
  16657. * @static
  16658. */
  16659. public static function banks()
  16660. {
  16661. /** @var \KingFlamez\Rave\Rave $instance */
  16662. return $instance->banks();
  16663. }
  16664. /**
  16665. * Transfers
  16666. *
  16667. * @return \KingFlamez\Rave\Helpers\Transfers
  16668. * @static
  16669. */
  16670. public static function transfers()
  16671. {
  16672. /** @var \KingFlamez\Rave\Rave $instance */
  16673. return $instance->transfers();
  16674. }
  16675. /**
  16676. * Beneficiary
  16677. *
  16678. * @return \KingFlamez\Rave\Helpers\Beneficiary
  16679. * @static
  16680. */
  16681. public static function beneficiaries()
  16682. {
  16683. /** @var \KingFlamez\Rave\Rave $instance */
  16684. return $instance->beneficiaries();
  16685. }
  16686. /**
  16687. * Bill payments
  16688. *
  16689. * @return \KingFlamez\Rave\Helpers\Bills
  16690. * @static
  16691. */
  16692. public static function bill()
  16693. {
  16694. /** @var \KingFlamez\Rave\Rave $instance */
  16695. return $instance->bill();
  16696. }
  16697. }
  16698. }
  16699. namespace Intervention\Image\Facades {
  16700. /**
  16701. *
  16702. *
  16703. */
  16704. class Image {
  16705. /**
  16706. * Overrides configuration settings
  16707. *
  16708. * @param array $config
  16709. * @return self
  16710. * @static
  16711. */
  16712. public static function configure($config = [])
  16713. {
  16714. /** @var \Intervention\Image\ImageManager $instance */
  16715. return $instance->configure($config);
  16716. }
  16717. /**
  16718. * Initiates an Image instance from different input types
  16719. *
  16720. * @param mixed $data
  16721. * @return \Intervention\Image\Image
  16722. * @static
  16723. */
  16724. public static function make($data)
  16725. {
  16726. /** @var \Intervention\Image\ImageManager $instance */
  16727. return $instance->make($data);
  16728. }
  16729. /**
  16730. * Creates an empty image canvas
  16731. *
  16732. * @param int $width
  16733. * @param int $height
  16734. * @param mixed $background
  16735. * @return \Intervention\Image\Image
  16736. * @static
  16737. */
  16738. public static function canvas($width, $height, $background = null)
  16739. {
  16740. /** @var \Intervention\Image\ImageManager $instance */
  16741. return $instance->canvas($width, $height, $background);
  16742. }
  16743. /**
  16744. * Create new cached image and run callback
  16745. * (requires additional package intervention/imagecache)
  16746. *
  16747. * @param \Closure $callback
  16748. * @param int $lifetime
  16749. * @param boolean $returnObj
  16750. * @return \Image
  16751. * @static
  16752. */
  16753. public static function cache($callback, $lifetime = null, $returnObj = false)
  16754. {
  16755. /** @var \Intervention\Image\ImageManager $instance */
  16756. return $instance->cache($callback, $lifetime, $returnObj);
  16757. }
  16758. }
  16759. }
  16760. namespace SimpleSoftwareIO\QrCode\Facades {
  16761. /**
  16762. *
  16763. *
  16764. */
  16765. class QrCode {
  16766. /**
  16767. * Generates the QrCode.
  16768. *
  16769. * @param string $text
  16770. * @param string|null $filename
  16771. * @return void|\Illuminate\Support\HtmlString|string
  16772. * @throws WriterException
  16773. * @throws InvalidArgumentException
  16774. * @static
  16775. */
  16776. public static function generate($text, $filename = null)
  16777. {
  16778. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16779. return $instance->generate($text, $filename);
  16780. }
  16781. /**
  16782. * Merges an image over the QrCode.
  16783. *
  16784. * @param string $filepath
  16785. * @param float $percentage
  16786. * @param \SimpleSoftwareIO\QrCode\SimpleSoftwareIO\QrCode\boolean|bool $absolute
  16787. * @return \Generator
  16788. * @static
  16789. */
  16790. public static function merge($filepath, $percentage = 0.2, $absolute = false)
  16791. {
  16792. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16793. return $instance->merge($filepath, $percentage, $absolute);
  16794. }
  16795. /**
  16796. * Merges an image string with the center of the QrCode.
  16797. *
  16798. * @param string $content
  16799. * @param float $percentage
  16800. * @return \Generator
  16801. * @static
  16802. */
  16803. public static function mergeString($content, $percentage = 0.2)
  16804. {
  16805. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16806. return $instance->mergeString($content, $percentage);
  16807. }
  16808. /**
  16809. * Sets the size of the QrCode.
  16810. *
  16811. * @param int $pixels
  16812. * @return \Generator
  16813. * @static
  16814. */
  16815. public static function size($pixels)
  16816. {
  16817. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16818. return $instance->size($pixels);
  16819. }
  16820. /**
  16821. * Sets the format of the QrCode.
  16822. *
  16823. * @param string $format
  16824. * @return \Generator
  16825. * @throws InvalidArgumentException
  16826. * @static
  16827. */
  16828. public static function format($format)
  16829. {
  16830. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16831. return $instance->format($format);
  16832. }
  16833. /**
  16834. * Sets the foreground color of the QrCode.
  16835. *
  16836. * @param int $red
  16837. * @param int $green
  16838. * @param int $blue
  16839. * @param null|int $alpha
  16840. * @return \Generator
  16841. * @static
  16842. */
  16843. public static function color($red, $green, $blue, $alpha = null)
  16844. {
  16845. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16846. return $instance->color($red, $green, $blue, $alpha);
  16847. }
  16848. /**
  16849. * Sets the background color of the QrCode.
  16850. *
  16851. * @param int $red
  16852. * @param int $green
  16853. * @param int $blue
  16854. * @param null|int $alpha
  16855. * @return \Generator
  16856. * @static
  16857. */
  16858. public static function backgroundColor($red, $green, $blue, $alpha = null)
  16859. {
  16860. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16861. return $instance->backgroundColor($red, $green, $blue, $alpha);
  16862. }
  16863. /**
  16864. * Sets the eye color for the provided eye index.
  16865. *
  16866. * @param int $eyeNumber
  16867. * @param int $innerRed
  16868. * @param int $innerGreen
  16869. * @param int $innerBlue
  16870. * @param int $outterRed
  16871. * @param int $outterGreen
  16872. * @param int $outterBlue
  16873. * @return \Generator
  16874. * @throws InvalidArgumentException
  16875. * @static
  16876. */
  16877. public static function eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed = 0, $outterGreen = 0, $outterBlue = 0)
  16878. {
  16879. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16880. return $instance->eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed, $outterGreen, $outterBlue);
  16881. }
  16882. /**
  16883. *
  16884. *
  16885. * @static
  16886. */
  16887. public static function gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type)
  16888. {
  16889. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16890. return $instance->gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type);
  16891. }
  16892. /**
  16893. * Sets the eye style.
  16894. *
  16895. * @param string $style
  16896. * @return \Generator
  16897. * @throws InvalidArgumentException
  16898. * @static
  16899. */
  16900. public static function eye($style)
  16901. {
  16902. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16903. return $instance->eye($style);
  16904. }
  16905. /**
  16906. * Sets the style of the blocks for the QrCode.
  16907. *
  16908. * @param string $style
  16909. * @param float $size
  16910. * @return \Generator
  16911. * @throws InvalidArgumentException
  16912. * @static
  16913. */
  16914. public static function style($style, $size = 0.5)
  16915. {
  16916. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16917. return $instance->style($style, $size);
  16918. }
  16919. /**
  16920. * Sets the encoding for the QrCode.
  16921. *
  16922. * Possible values are
  16923. * ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6,
  16924. * ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11,
  16925. * ISO-8859-12, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16,
  16926. * SHIFT-JIS, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1256,
  16927. * UTF-16BE, UTF-8, ASCII, GBK, EUC-KR.
  16928. *
  16929. * @param string $encoding
  16930. * @return \Generator
  16931. * @static
  16932. */
  16933. public static function encoding($encoding)
  16934. {
  16935. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16936. return $instance->encoding($encoding);
  16937. }
  16938. /**
  16939. * Sets the error correction for the QrCode.
  16940. *
  16941. * L: 7% loss.
  16942. * M: 15% loss.
  16943. * Q: 25% loss.
  16944. * H: 30% loss.
  16945. *
  16946. * @param string $errorCorrection
  16947. * @return \Generator
  16948. * @static
  16949. */
  16950. public static function errorCorrection($errorCorrection)
  16951. {
  16952. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16953. return $instance->errorCorrection($errorCorrection);
  16954. }
  16955. /**
  16956. * Sets the margin of the QrCode.
  16957. *
  16958. * @param int $margin
  16959. * @return \Generator
  16960. * @static
  16961. */
  16962. public static function margin($margin)
  16963. {
  16964. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16965. return $instance->margin($margin);
  16966. }
  16967. /**
  16968. * Fetches the Writer.
  16969. *
  16970. * @param \BaconQrCode\Renderer\ImageRenderer $renderer
  16971. * @return \BaconQrCode\Writer
  16972. * @static
  16973. */
  16974. public static function getWriter($renderer)
  16975. {
  16976. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16977. return $instance->getWriter($renderer);
  16978. }
  16979. /**
  16980. * Fetches the Image Renderer.
  16981. *
  16982. * @return \BaconQrCode\Renderer\ImageRenderer
  16983. * @static
  16984. */
  16985. public static function getRenderer()
  16986. {
  16987. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16988. return $instance->getRenderer();
  16989. }
  16990. /**
  16991. * Returns the Renderer Style.
  16992. *
  16993. * @return \BaconQrCode\Renderer\RendererStyle\RendererStyle
  16994. * @static
  16995. */
  16996. public static function getRendererStyle()
  16997. {
  16998. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  16999. return $instance->getRendererStyle();
  17000. }
  17001. /**
  17002. * Fetches the formatter.
  17003. *
  17004. * @return \BaconQrCode\Renderer\Image\ImageBackEndInterface
  17005. * @static
  17006. */
  17007. public static function getFormatter()
  17008. {
  17009. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17010. return $instance->getFormatter();
  17011. }
  17012. /**
  17013. * Fetches the module.
  17014. *
  17015. * @return \BaconQrCode\Renderer\Module\ModuleInterface
  17016. * @static
  17017. */
  17018. public static function getModule()
  17019. {
  17020. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17021. return $instance->getModule();
  17022. }
  17023. /**
  17024. * Fetches the eye style.
  17025. *
  17026. * @return \BaconQrCode\Renderer\Eye\EyeInterface
  17027. * @static
  17028. */
  17029. public static function getEye()
  17030. {
  17031. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17032. return $instance->getEye();
  17033. }
  17034. /**
  17035. * Fetches the color fill.
  17036. *
  17037. * @return \BaconQrCode\Renderer\RendererStyle\Fill
  17038. * @static
  17039. */
  17040. public static function getFill()
  17041. {
  17042. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17043. return $instance->getFill();
  17044. }
  17045. /**
  17046. * Creates a RGB or Alpha channel color.
  17047. *
  17048. * @param int $red
  17049. * @param int $green
  17050. * @param int $blue
  17051. * @param null|int $alpha
  17052. * @return \BaconQrCode\Renderer\Color\ColorInterface
  17053. * @static
  17054. */
  17055. public static function createColor($red, $green, $blue, $alpha = null)
  17056. {
  17057. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  17058. return $instance->createColor($red, $green, $blue, $alpha);
  17059. }
  17060. }
  17061. }
  17062. namespace Barryvdh\Debugbar\Facades {
  17063. /**
  17064. *
  17065. *
  17066. * @method static void alert(mixed $message)
  17067. * @method static void critical(mixed $message)
  17068. * @method static void debug(mixed $message)
  17069. * @method static void emergency(mixed $message)
  17070. * @method static void error(mixed $message)
  17071. * @method static void info(mixed $message)
  17072. * @method static void log(mixed $message)
  17073. * @method static void notice(mixed $message)
  17074. * @method static void warning(mixed $message)
  17075. * @see \Barryvdh\Debugbar\LaravelDebugbar
  17076. */
  17077. class Debugbar {
  17078. /**
  17079. * Enable the Debugbar and boot, if not already booted.
  17080. *
  17081. * @static
  17082. */
  17083. public static function enable()
  17084. {
  17085. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17086. return $instance->enable();
  17087. }
  17088. /**
  17089. * Boot the debugbar (add collectors, renderer and listener)
  17090. *
  17091. * @static
  17092. */
  17093. public static function boot()
  17094. {
  17095. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17096. return $instance->boot();
  17097. }
  17098. /**
  17099. *
  17100. *
  17101. * @static
  17102. */
  17103. public static function shouldCollect($name, $default = false)
  17104. {
  17105. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17106. return $instance->shouldCollect($name, $default);
  17107. }
  17108. /**
  17109. * Adds a data collector
  17110. *
  17111. * @param \DebugBar\DataCollector\DataCollectorInterface $collector
  17112. * @throws DebugBarException
  17113. * @return \Barryvdh\Debugbar\LaravelDebugbar
  17114. * @static
  17115. */
  17116. public static function addCollector($collector)
  17117. {
  17118. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17119. return $instance->addCollector($collector);
  17120. }
  17121. /**
  17122. * Handle silenced errors
  17123. *
  17124. * @param $level
  17125. * @param $message
  17126. * @param string $file
  17127. * @param int $line
  17128. * @param array $context
  17129. * @throws \ErrorException
  17130. * @static
  17131. */
  17132. public static function handleError($level, $message, $file = '', $line = 0, $context = [])
  17133. {
  17134. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17135. return $instance->handleError($level, $message, $file, $line, $context);
  17136. }
  17137. /**
  17138. * Starts a measure
  17139. *
  17140. * @param string $name Internal name, used to stop the measure
  17141. * @param string $label Public name
  17142. * @static
  17143. */
  17144. public static function startMeasure($name, $label = null)
  17145. {
  17146. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17147. return $instance->startMeasure($name, $label);
  17148. }
  17149. /**
  17150. * Stops a measure
  17151. *
  17152. * @param string $name
  17153. * @static
  17154. */
  17155. public static function stopMeasure($name)
  17156. {
  17157. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17158. return $instance->stopMeasure($name);
  17159. }
  17160. /**
  17161. * Adds an exception to be profiled in the debug bar
  17162. *
  17163. * @param \Exception $e
  17164. * @deprecated in favor of addThrowable
  17165. * @static
  17166. */
  17167. public static function addException($e)
  17168. {
  17169. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17170. return $instance->addException($e);
  17171. }
  17172. /**
  17173. * Adds an exception to be profiled in the debug bar
  17174. *
  17175. * @param \Exception $e
  17176. * @static
  17177. */
  17178. public static function addThrowable($e)
  17179. {
  17180. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17181. return $instance->addThrowable($e);
  17182. }
  17183. /**
  17184. * Returns a JavascriptRenderer for this instance
  17185. *
  17186. * @param string $baseUrl
  17187. * @param string $basePathng
  17188. * @return \Barryvdh\Debugbar\JavascriptRenderer
  17189. * @static
  17190. */
  17191. public static function getJavascriptRenderer($baseUrl = null, $basePath = null)
  17192. {
  17193. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17194. return $instance->getJavascriptRenderer($baseUrl, $basePath);
  17195. }
  17196. /**
  17197. * Modify the response and inject the debugbar (or data in headers)
  17198. *
  17199. * @param \Symfony\Component\HttpFoundation\Request $request
  17200. * @param \Symfony\Component\HttpFoundation\Response $response
  17201. * @return \Symfony\Component\HttpFoundation\Response
  17202. * @static
  17203. */
  17204. public static function modifyResponse($request, $response)
  17205. {
  17206. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17207. return $instance->modifyResponse($request, $response);
  17208. }
  17209. /**
  17210. * Check if the Debugbar is enabled
  17211. *
  17212. * @return boolean
  17213. * @static
  17214. */
  17215. public static function isEnabled()
  17216. {
  17217. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17218. return $instance->isEnabled();
  17219. }
  17220. /**
  17221. * Collects the data from the collectors
  17222. *
  17223. * @return array
  17224. * @static
  17225. */
  17226. public static function collect()
  17227. {
  17228. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17229. return $instance->collect();
  17230. }
  17231. /**
  17232. * Injects the web debug toolbar into the given Response.
  17233. *
  17234. * @param \Symfony\Component\HttpFoundation\Response $response A Response instance
  17235. * Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php
  17236. * @static
  17237. */
  17238. public static function injectDebugbar($response)
  17239. {
  17240. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17241. return $instance->injectDebugbar($response);
  17242. }
  17243. /**
  17244. * Disable the Debugbar
  17245. *
  17246. * @static
  17247. */
  17248. public static function disable()
  17249. {
  17250. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17251. return $instance->disable();
  17252. }
  17253. /**
  17254. * Adds a measure
  17255. *
  17256. * @param string $label
  17257. * @param float $start
  17258. * @param float $end
  17259. * @static
  17260. */
  17261. public static function addMeasure($label, $start, $end)
  17262. {
  17263. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17264. return $instance->addMeasure($label, $start, $end);
  17265. }
  17266. /**
  17267. * Utility function to measure the execution of a Closure
  17268. *
  17269. * @param string $label
  17270. * @param \Closure $closure
  17271. * @return mixed
  17272. * @static
  17273. */
  17274. public static function measure($label, $closure)
  17275. {
  17276. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17277. return $instance->measure($label, $closure);
  17278. }
  17279. /**
  17280. * Collect data in a CLI request
  17281. *
  17282. * @return array
  17283. * @static
  17284. */
  17285. public static function collectConsole()
  17286. {
  17287. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17288. return $instance->collectConsole();
  17289. }
  17290. /**
  17291. * Adds a message to the MessagesCollector
  17292. *
  17293. * A message can be anything from an object to a string
  17294. *
  17295. * @param mixed $message
  17296. * @param string $label
  17297. * @static
  17298. */
  17299. public static function addMessage($message, $label = 'info')
  17300. {
  17301. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17302. return $instance->addMessage($message, $label);
  17303. }
  17304. /**
  17305. * Checks if a data collector has been added
  17306. *
  17307. * @param string $name
  17308. * @return boolean
  17309. * @static
  17310. */
  17311. public static function hasCollector($name)
  17312. { //Method inherited from \DebugBar\DebugBar
  17313. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17314. return $instance->hasCollector($name);
  17315. }
  17316. /**
  17317. * Returns a data collector
  17318. *
  17319. * @param string $name
  17320. * @return \DebugBar\DataCollector\DataCollectorInterface
  17321. * @throws DebugBarException
  17322. * @static
  17323. */
  17324. public static function getCollector($name)
  17325. { //Method inherited from \DebugBar\DebugBar
  17326. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17327. return $instance->getCollector($name);
  17328. }
  17329. /**
  17330. * Returns an array of all data collectors
  17331. *
  17332. * @return \DebugBar\array[DataCollectorInterface]
  17333. * @static
  17334. */
  17335. public static function getCollectors()
  17336. { //Method inherited from \DebugBar\DebugBar
  17337. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17338. return $instance->getCollectors();
  17339. }
  17340. /**
  17341. * Sets the request id generator
  17342. *
  17343. * @param \DebugBar\RequestIdGeneratorInterface $generator
  17344. * @return \Barryvdh\Debugbar\LaravelDebugbar
  17345. * @static
  17346. */
  17347. public static function setRequestIdGenerator($generator)
  17348. { //Method inherited from \DebugBar\DebugBar
  17349. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17350. return $instance->setRequestIdGenerator($generator);
  17351. }
  17352. /**
  17353. *
  17354. *
  17355. * @return \DebugBar\RequestIdGeneratorInterface
  17356. * @static
  17357. */
  17358. public static function getRequestIdGenerator()
  17359. { //Method inherited from \DebugBar\DebugBar
  17360. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17361. return $instance->getRequestIdGenerator();
  17362. }
  17363. /**
  17364. * Returns the id of the current request
  17365. *
  17366. * @return string
  17367. * @static
  17368. */
  17369. public static function getCurrentRequestId()
  17370. { //Method inherited from \DebugBar\DebugBar
  17371. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17372. return $instance->getCurrentRequestId();
  17373. }
  17374. /**
  17375. * Sets the storage backend to use to store the collected data
  17376. *
  17377. * @param \DebugBar\StorageInterface $storage
  17378. * @return \Barryvdh\Debugbar\LaravelDebugbar
  17379. * @static
  17380. */
  17381. public static function setStorage($storage = null)
  17382. { //Method inherited from \DebugBar\DebugBar
  17383. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17384. return $instance->setStorage($storage);
  17385. }
  17386. /**
  17387. *
  17388. *
  17389. * @return \DebugBar\StorageInterface
  17390. * @static
  17391. */
  17392. public static function getStorage()
  17393. { //Method inherited from \DebugBar\DebugBar
  17394. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17395. return $instance->getStorage();
  17396. }
  17397. /**
  17398. * Checks if the data will be persisted
  17399. *
  17400. * @return boolean
  17401. * @static
  17402. */
  17403. public static function isDataPersisted()
  17404. { //Method inherited from \DebugBar\DebugBar
  17405. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17406. return $instance->isDataPersisted();
  17407. }
  17408. /**
  17409. * Sets the HTTP driver
  17410. *
  17411. * @param \DebugBar\HttpDriverInterface $driver
  17412. * @return \Barryvdh\Debugbar\LaravelDebugbar
  17413. * @static
  17414. */
  17415. public static function setHttpDriver($driver)
  17416. { //Method inherited from \DebugBar\DebugBar
  17417. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17418. return $instance->setHttpDriver($driver);
  17419. }
  17420. /**
  17421. * Returns the HTTP driver
  17422. *
  17423. * If no http driver where defined, a PhpHttpDriver is automatically created
  17424. *
  17425. * @return \DebugBar\HttpDriverInterface
  17426. * @static
  17427. */
  17428. public static function getHttpDriver()
  17429. { //Method inherited from \DebugBar\DebugBar
  17430. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17431. return $instance->getHttpDriver();
  17432. }
  17433. /**
  17434. * Returns collected data
  17435. *
  17436. * Will collect the data if none have been collected yet
  17437. *
  17438. * @return array
  17439. * @static
  17440. */
  17441. public static function getData()
  17442. { //Method inherited from \DebugBar\DebugBar
  17443. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17444. return $instance->getData();
  17445. }
  17446. /**
  17447. * Returns an array of HTTP headers containing the data
  17448. *
  17449. * @param string $headerName
  17450. * @param integer $maxHeaderLength
  17451. * @return array
  17452. * @static
  17453. */
  17454. public static function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
  17455. { //Method inherited from \DebugBar\DebugBar
  17456. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17457. return $instance->getDataAsHeaders($headerName, $maxHeaderLength, $maxTotalHeaderLength);
  17458. }
  17459. /**
  17460. * Sends the data through the HTTP headers
  17461. *
  17462. * @param bool $useOpenHandler
  17463. * @param string $headerName
  17464. * @param integer $maxHeaderLength
  17465. * @return \Barryvdh\Debugbar\LaravelDebugbar
  17466. * @static
  17467. */
  17468. public static function sendDataInHeaders($useOpenHandler = null, $headerName = 'phpdebugbar', $maxHeaderLength = 4096)
  17469. { //Method inherited from \DebugBar\DebugBar
  17470. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17471. return $instance->sendDataInHeaders($useOpenHandler, $headerName, $maxHeaderLength);
  17472. }
  17473. /**
  17474. * Stacks the data in the session for later rendering
  17475. *
  17476. * @static
  17477. */
  17478. public static function stackData()
  17479. { //Method inherited from \DebugBar\DebugBar
  17480. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17481. return $instance->stackData();
  17482. }
  17483. /**
  17484. * Checks if there is stacked data in the session
  17485. *
  17486. * @return boolean
  17487. * @static
  17488. */
  17489. public static function hasStackedData()
  17490. { //Method inherited from \DebugBar\DebugBar
  17491. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17492. return $instance->hasStackedData();
  17493. }
  17494. /**
  17495. * Returns the data stacked in the session
  17496. *
  17497. * @param boolean $delete Whether to delete the data in the session
  17498. * @return array
  17499. * @static
  17500. */
  17501. public static function getStackedData($delete = true)
  17502. { //Method inherited from \DebugBar\DebugBar
  17503. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17504. return $instance->getStackedData($delete);
  17505. }
  17506. /**
  17507. * Sets the key to use in the $_SESSION array
  17508. *
  17509. * @param string $ns
  17510. * @return \Barryvdh\Debugbar\LaravelDebugbar
  17511. * @static
  17512. */
  17513. public static function setStackDataSessionNamespace($ns)
  17514. { //Method inherited from \DebugBar\DebugBar
  17515. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17516. return $instance->setStackDataSessionNamespace($ns);
  17517. }
  17518. /**
  17519. * Returns the key used in the $_SESSION array
  17520. *
  17521. * @return string
  17522. * @static
  17523. */
  17524. public static function getStackDataSessionNamespace()
  17525. { //Method inherited from \DebugBar\DebugBar
  17526. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17527. return $instance->getStackDataSessionNamespace();
  17528. }
  17529. /**
  17530. * Sets whether to only use the session to store stacked data even
  17531. * if a storage is enabled
  17532. *
  17533. * @param boolean $enabled
  17534. * @return \Barryvdh\Debugbar\LaravelDebugbar
  17535. * @static
  17536. */
  17537. public static function setStackAlwaysUseSessionStorage($enabled = true)
  17538. { //Method inherited from \DebugBar\DebugBar
  17539. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17540. return $instance->setStackAlwaysUseSessionStorage($enabled);
  17541. }
  17542. /**
  17543. * Checks if the session is always used to store stacked data
  17544. * even if a storage is enabled
  17545. *
  17546. * @return boolean
  17547. * @static
  17548. */
  17549. public static function isStackAlwaysUseSessionStorage()
  17550. { //Method inherited from \DebugBar\DebugBar
  17551. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17552. return $instance->isStackAlwaysUseSessionStorage();
  17553. }
  17554. /**
  17555. *
  17556. *
  17557. * @static
  17558. */
  17559. public static function offsetSet($key, $value)
  17560. { //Method inherited from \DebugBar\DebugBar
  17561. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17562. return $instance->offsetSet($key, $value);
  17563. }
  17564. /**
  17565. *
  17566. *
  17567. * @static
  17568. */
  17569. public static function offsetGet($key)
  17570. { //Method inherited from \DebugBar\DebugBar
  17571. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17572. return $instance->offsetGet($key);
  17573. }
  17574. /**
  17575. *
  17576. *
  17577. * @static
  17578. */
  17579. public static function offsetExists($key)
  17580. { //Method inherited from \DebugBar\DebugBar
  17581. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17582. return $instance->offsetExists($key);
  17583. }
  17584. /**
  17585. *
  17586. *
  17587. * @static
  17588. */
  17589. public static function offsetUnset($key)
  17590. { //Method inherited from \DebugBar\DebugBar
  17591. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  17592. return $instance->offsetUnset($key);
  17593. }
  17594. }
  17595. }
  17596. namespace Facade\Ignition\Facades {
  17597. /**
  17598. * Class Flare.
  17599. *
  17600. * @see \Facade\FlareClient\Flare
  17601. */
  17602. class Flare {
  17603. /**
  17604. *
  17605. *
  17606. * @static
  17607. */
  17608. public static function register($apiKey, $apiSecret = null, $contextDetector = null, $container = null)
  17609. {
  17610. return \Facade\FlareClient\Flare::register($apiKey, $apiSecret, $contextDetector, $container);
  17611. }
  17612. /**
  17613. *
  17614. *
  17615. * @static
  17616. */
  17617. public static function determineVersionUsing($determineVersionCallable)
  17618. {
  17619. /** @var \Facade\FlareClient\Flare $instance */
  17620. return $instance->determineVersionUsing($determineVersionCallable);
  17621. }
  17622. /**
  17623. *
  17624. *
  17625. * @static
  17626. */
  17627. public static function reportErrorLevels($reportErrorLevels)
  17628. {
  17629. /** @var \Facade\FlareClient\Flare $instance */
  17630. return $instance->reportErrorLevels($reportErrorLevels);
  17631. }
  17632. /**
  17633. *
  17634. *
  17635. * @static
  17636. */
  17637. public static function filterExceptionsUsing($filterExceptionsCallable)
  17638. {
  17639. /** @var \Facade\FlareClient\Flare $instance */
  17640. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  17641. }
  17642. /**
  17643. *
  17644. *
  17645. * @static
  17646. */
  17647. public static function filterReportsUsing($filterReportsCallable)
  17648. {
  17649. /** @var \Facade\FlareClient\Flare $instance */
  17650. return $instance->filterReportsUsing($filterReportsCallable);
  17651. }
  17652. /**
  17653. *
  17654. *
  17655. * @return null|string
  17656. * @static
  17657. */
  17658. public static function version()
  17659. {
  17660. /** @var \Facade\FlareClient\Flare $instance */
  17661. return $instance->version();
  17662. }
  17663. /**
  17664. *
  17665. *
  17666. * @static
  17667. */
  17668. public static function getMiddleware()
  17669. {
  17670. /** @var \Facade\FlareClient\Flare $instance */
  17671. return $instance->getMiddleware();
  17672. }
  17673. /**
  17674. *
  17675. *
  17676. * @static
  17677. */
  17678. public static function registerFlareHandlers()
  17679. {
  17680. /** @var \Facade\FlareClient\Flare $instance */
  17681. return $instance->registerFlareHandlers();
  17682. }
  17683. /**
  17684. *
  17685. *
  17686. * @static
  17687. */
  17688. public static function registerExceptionHandler()
  17689. {
  17690. /** @var \Facade\FlareClient\Flare $instance */
  17691. return $instance->registerExceptionHandler();
  17692. }
  17693. /**
  17694. *
  17695. *
  17696. * @static
  17697. */
  17698. public static function registerErrorHandler()
  17699. {
  17700. /** @var \Facade\FlareClient\Flare $instance */
  17701. return $instance->registerErrorHandler();
  17702. }
  17703. /**
  17704. *
  17705. *
  17706. * @static
  17707. */
  17708. public static function registerMiddleware($callable)
  17709. {
  17710. /** @var \Facade\FlareClient\Flare $instance */
  17711. return $instance->registerMiddleware($callable);
  17712. }
  17713. /**
  17714. *
  17715. *
  17716. * @static
  17717. */
  17718. public static function getMiddlewares()
  17719. {
  17720. /** @var \Facade\FlareClient\Flare $instance */
  17721. return $instance->getMiddlewares();
  17722. }
  17723. /**
  17724. *
  17725. *
  17726. * @static
  17727. */
  17728. public static function glow($name, $messageLevel = 'info', $metaData = [])
  17729. {
  17730. /** @var \Facade\FlareClient\Flare $instance */
  17731. return $instance->glow($name, $messageLevel, $metaData);
  17732. }
  17733. /**
  17734. *
  17735. *
  17736. * @static
  17737. */
  17738. public static function handleException($throwable)
  17739. {
  17740. /** @var \Facade\FlareClient\Flare $instance */
  17741. return $instance->handleException($throwable);
  17742. }
  17743. /**
  17744. *
  17745. *
  17746. * @static
  17747. */
  17748. public static function handleError($code, $message, $file = '', $line = 0)
  17749. {
  17750. /** @var \Facade\FlareClient\Flare $instance */
  17751. return $instance->handleError($code, $message, $file, $line);
  17752. }
  17753. /**
  17754. *
  17755. *
  17756. * @static
  17757. */
  17758. public static function applicationPath($applicationPath)
  17759. {
  17760. /** @var \Facade\FlareClient\Flare $instance */
  17761. return $instance->applicationPath($applicationPath);
  17762. }
  17763. /**
  17764. *
  17765. *
  17766. * @static
  17767. */
  17768. public static function report($throwable, $callback = null)
  17769. {
  17770. /** @var \Facade\FlareClient\Flare $instance */
  17771. return $instance->report($throwable, $callback);
  17772. }
  17773. /**
  17774. *
  17775. *
  17776. * @static
  17777. */
  17778. public static function reportMessage($message, $logLevel, $callback = null)
  17779. {
  17780. /** @var \Facade\FlareClient\Flare $instance */
  17781. return $instance->reportMessage($message, $logLevel, $callback);
  17782. }
  17783. /**
  17784. *
  17785. *
  17786. * @static
  17787. */
  17788. public static function sendTestReport($throwable)
  17789. {
  17790. /** @var \Facade\FlareClient\Flare $instance */
  17791. return $instance->sendTestReport($throwable);
  17792. }
  17793. /**
  17794. *
  17795. *
  17796. * @static
  17797. */
  17798. public static function reset()
  17799. {
  17800. /** @var \Facade\FlareClient\Flare $instance */
  17801. return $instance->reset();
  17802. }
  17803. /**
  17804. *
  17805. *
  17806. * @static
  17807. */
  17808. public static function anonymizeIp()
  17809. {
  17810. /** @var \Facade\FlareClient\Flare $instance */
  17811. return $instance->anonymizeIp();
  17812. }
  17813. /**
  17814. *
  17815. *
  17816. * @static
  17817. */
  17818. public static function censorRequestBodyFields($fieldNames)
  17819. {
  17820. /** @var \Facade\FlareClient\Flare $instance */
  17821. return $instance->censorRequestBodyFields($fieldNames);
  17822. }
  17823. /**
  17824. *
  17825. *
  17826. * @static
  17827. */
  17828. public static function createReport($throwable)
  17829. {
  17830. /** @var \Facade\FlareClient\Flare $instance */
  17831. return $instance->createReport($throwable);
  17832. }
  17833. /**
  17834. *
  17835. *
  17836. * @static
  17837. */
  17838. public static function createReportFromMessage($message, $logLevel)
  17839. {
  17840. /** @var \Facade\FlareClient\Flare $instance */
  17841. return $instance->createReportFromMessage($message, $logLevel);
  17842. }
  17843. /**
  17844. *
  17845. *
  17846. * @static
  17847. */
  17848. public static function stage($stage)
  17849. {
  17850. /** @var \Facade\FlareClient\Flare $instance */
  17851. return $instance->stage($stage);
  17852. }
  17853. /**
  17854. *
  17855. *
  17856. * @static
  17857. */
  17858. public static function messageLevel($messageLevel)
  17859. {
  17860. /** @var \Facade\FlareClient\Flare $instance */
  17861. return $instance->messageLevel($messageLevel);
  17862. }
  17863. /**
  17864. *
  17865. *
  17866. * @static
  17867. */
  17868. public static function getGroup($groupName = 'context', $default = [])
  17869. {
  17870. /** @var \Facade\FlareClient\Flare $instance */
  17871. return $instance->getGroup($groupName, $default);
  17872. }
  17873. /**
  17874. *
  17875. *
  17876. * @static
  17877. */
  17878. public static function context($key, $value)
  17879. {
  17880. /** @var \Facade\FlareClient\Flare $instance */
  17881. return $instance->context($key, $value);
  17882. }
  17883. /**
  17884. *
  17885. *
  17886. * @static
  17887. */
  17888. public static function group($groupName, $properties)
  17889. {
  17890. /** @var \Facade\FlareClient\Flare $instance */
  17891. return $instance->group($groupName, $properties);
  17892. }
  17893. }
  17894. }
  17895. namespace Laracasts\Flash {
  17896. /**
  17897. *
  17898. *
  17899. */
  17900. class Flash {
  17901. /**
  17902. * Flash an information message.
  17903. *
  17904. * @param string|null $message
  17905. * @return \Laracasts\Flash\FlashNotifier
  17906. * @static
  17907. */
  17908. public static function info($message = null)
  17909. {
  17910. /** @var \Laracasts\Flash\FlashNotifier $instance */
  17911. return $instance->info($message);
  17912. }
  17913. /**
  17914. * Flash a success message.
  17915. *
  17916. * @param string|null $message
  17917. * @return \Laracasts\Flash\FlashNotifier
  17918. * @static
  17919. */
  17920. public static function success($message = null)
  17921. {
  17922. /** @var \Laracasts\Flash\FlashNotifier $instance */
  17923. return $instance->success($message);
  17924. }
  17925. /**
  17926. * Flash an error message.
  17927. *
  17928. * @param string|null $message
  17929. * @return \Laracasts\Flash\FlashNotifier
  17930. * @static
  17931. */
  17932. public static function error($message = null)
  17933. {
  17934. /** @var \Laracasts\Flash\FlashNotifier $instance */
  17935. return $instance->error($message);
  17936. }
  17937. /**
  17938. * Flash a warning message.
  17939. *
  17940. * @param string|null $message
  17941. * @return \Laracasts\Flash\FlashNotifier
  17942. * @static
  17943. */
  17944. public static function warning($message = null)
  17945. {
  17946. /** @var \Laracasts\Flash\FlashNotifier $instance */
  17947. return $instance->warning($message);
  17948. }
  17949. /**
  17950. * Flash a general message.
  17951. *
  17952. * @param string|null $message
  17953. * @param string|null $level
  17954. * @return \Laracasts\Flash\FlashNotifier
  17955. * @static
  17956. */
  17957. public static function message($message = null, $level = null)
  17958. {
  17959. /** @var \Laracasts\Flash\FlashNotifier $instance */
  17960. return $instance->message($message, $level);
  17961. }
  17962. /**
  17963. * Flash an overlay modal.
  17964. *
  17965. * @param string|null $message
  17966. * @param string $title
  17967. * @return \Laracasts\Flash\FlashNotifier
  17968. * @static
  17969. */
  17970. public static function overlay($message = null, $title = 'Notice')
  17971. {
  17972. /** @var \Laracasts\Flash\FlashNotifier $instance */
  17973. return $instance->overlay($message, $title);
  17974. }
  17975. /**
  17976. * Add an "important" flash to the session.
  17977. *
  17978. * @return \Laracasts\Flash\FlashNotifier
  17979. * @static
  17980. */
  17981. public static function important()
  17982. {
  17983. /** @var \Laracasts\Flash\FlashNotifier $instance */
  17984. return $instance->important();
  17985. }
  17986. /**
  17987. * Clear all registered messages.
  17988. *
  17989. * @return \Laracasts\Flash\FlashNotifier
  17990. * @static
  17991. */
  17992. public static function clear()
  17993. {
  17994. /** @var \Laracasts\Flash\FlashNotifier $instance */
  17995. return $instance->clear();
  17996. }
  17997. /**
  17998. * Register a custom macro.
  17999. *
  18000. * @param string $name
  18001. * @param object|callable $macro
  18002. * @return void
  18003. * @static
  18004. */
  18005. public static function macro($name, $macro)
  18006. {
  18007. \Laracasts\Flash\FlashNotifier::macro($name, $macro);
  18008. }
  18009. /**
  18010. * Mix another object into the class.
  18011. *
  18012. * @param object $mixin
  18013. * @param bool $replace
  18014. * @return void
  18015. * @throws \ReflectionException
  18016. * @static
  18017. */
  18018. public static function mixin($mixin, $replace = true)
  18019. {
  18020. \Laracasts\Flash\FlashNotifier::mixin($mixin, $replace);
  18021. }
  18022. /**
  18023. * Checks if macro is registered.
  18024. *
  18025. * @param string $name
  18026. * @return bool
  18027. * @static
  18028. */
  18029. public static function hasMacro($name)
  18030. {
  18031. return \Laracasts\Flash\FlashNotifier::hasMacro($name);
  18032. }
  18033. /**
  18034. * Flush the existing macros.
  18035. *
  18036. * @return void
  18037. * @static
  18038. */
  18039. public static function flushMacros()
  18040. {
  18041. \Laracasts\Flash\FlashNotifier::flushMacros();
  18042. }
  18043. }
  18044. }
  18045. namespace Laracon21\Colorcodeconverter {
  18046. /**
  18047. *
  18048. *
  18049. * @see \Laracon21\Colorcodeconverter\Skeleton\SkeletonClass
  18050. */
  18051. class ColorcodeconverterFacade {
  18052. /**
  18053. *
  18054. *
  18055. * @static
  18056. */
  18057. public static function convertHexToRgba($color, $opacity = false)
  18058. {
  18059. return \Laracon21\Colorcodeconverter\Colorcodeconverter::convertHexToRgba($color, $opacity);
  18060. }
  18061. }
  18062. }
  18063. namespace Laracon21\Combinations {
  18064. /**
  18065. *
  18066. *
  18067. * @see \Laracon21\Combinations\Skeleton\SkeletonClass
  18068. */
  18069. class CombinationsFacade {
  18070. /**
  18071. *
  18072. *
  18073. * @static
  18074. */
  18075. public static function makeCombinations($arrays)
  18076. {
  18077. return \Laracon21\Combinations\Combinations::makeCombinations($arrays);
  18078. }
  18079. }
  18080. }
  18081. namespace Laracon21\Timezones {
  18082. /**
  18083. *
  18084. *
  18085. * @see \Laracon21\Timezones\Skeleton\SkeletonClass
  18086. */
  18087. class TimezonesFacade {
  18088. /**
  18089. *
  18090. *
  18091. * @static
  18092. */
  18093. public static function timezonesToArray()
  18094. {
  18095. return \Laracon21\Timezones\Timezones::timezonesToArray();
  18096. }
  18097. }
  18098. }
  18099. namespace MehediIitdu\CoreComponentRepository {
  18100. /**
  18101. *
  18102. *
  18103. * @see \MehediIitdu\CoreComponentRepository\Skeleton\SkeletonClass
  18104. */
  18105. class CoreComponentRepositoryFacade {
  18106. /**
  18107. *
  18108. *
  18109. * @static
  18110. */
  18111. public static function instantiateShopRepository()
  18112. {
  18113. return \MehediIitdu\CoreComponentRepository\CoreComponentRepository::instantiateShopRepository();
  18114. }
  18115. /**
  18116. *
  18117. *
  18118. * @static
  18119. */
  18120. public static function initializeCache()
  18121. {
  18122. return \MehediIitdu\CoreComponentRepository\CoreComponentRepository::initializeCache();
  18123. }
  18124. }
  18125. }
  18126. namespace Illuminate\Http {
  18127. /**
  18128. *
  18129. *
  18130. */
  18131. class Request {
  18132. /**
  18133. *
  18134. *
  18135. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  18136. * @param array $rules
  18137. * @param mixed $params
  18138. * @static
  18139. */
  18140. public static function validate($rules, ...$params)
  18141. {
  18142. return \Illuminate\Http\Request::validate($rules, ...$params);
  18143. }
  18144. /**
  18145. *
  18146. *
  18147. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  18148. * @param string $errorBag
  18149. * @param array $rules
  18150. * @param mixed $params
  18151. * @static
  18152. */
  18153. public static function validateWithBag($errorBag, $rules, ...$params)
  18154. {
  18155. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  18156. }
  18157. /**
  18158. *
  18159. *
  18160. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  18161. * @param mixed $absolute
  18162. * @static
  18163. */
  18164. public static function hasValidSignature($absolute = true)
  18165. {
  18166. return \Illuminate\Http\Request::hasValidSignature($absolute);
  18167. }
  18168. /**
  18169. *
  18170. *
  18171. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  18172. * @static
  18173. */
  18174. public static function hasValidRelativeSignature()
  18175. {
  18176. return \Illuminate\Http\Request::hasValidRelativeSignature();
  18177. }
  18178. }
  18179. }
  18180. namespace Illuminate\Routing {
  18181. /**
  18182. *
  18183. *
  18184. * @mixin \Illuminate\Routing\RouteRegistrar
  18185. */
  18186. class Router {
  18187. /**
  18188. *
  18189. *
  18190. * @see \Laravel\Ui\AuthRouteMethods::auth()
  18191. * @param mixed $options
  18192. * @static
  18193. */
  18194. public static function auth($options = [])
  18195. {
  18196. return \Illuminate\Routing\Router::auth($options);
  18197. }
  18198. /**
  18199. *
  18200. *
  18201. * @see \Laravel\Ui\AuthRouteMethods::resetPassword()
  18202. * @static
  18203. */
  18204. public static function resetPassword()
  18205. {
  18206. return \Illuminate\Routing\Router::resetPassword();
  18207. }
  18208. /**
  18209. *
  18210. *
  18211. * @see \Laravel\Ui\AuthRouteMethods::confirmPassword()
  18212. * @static
  18213. */
  18214. public static function confirmPassword()
  18215. {
  18216. return \Illuminate\Routing\Router::confirmPassword();
  18217. }
  18218. /**
  18219. *
  18220. *
  18221. * @see \Laravel\Ui\AuthRouteMethods::emailVerification()
  18222. * @static
  18223. */
  18224. public static function emailVerification()
  18225. {
  18226. return \Illuminate\Routing\Router::emailVerification();
  18227. }
  18228. }
  18229. }
  18230. namespace {
  18231. class App extends \Illuminate\Support\Facades\App {}
  18232. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  18233. class Auth extends \Illuminate\Support\Facades\Auth {}
  18234. class Blade extends \Illuminate\Support\Facades\Blade {}
  18235. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  18236. class Bus extends \Illuminate\Support\Facades\Bus {}
  18237. class Cache extends \Illuminate\Support\Facades\Cache {}
  18238. class Config extends \Illuminate\Support\Facades\Config {}
  18239. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  18240. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  18241. class DB extends \Illuminate\Support\Facades\DB {}
  18242. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  18243. /**
  18244. * Create and return an un-saved model instance.
  18245. *
  18246. * @param array $attributes
  18247. * @return \Illuminate\Database\Eloquent\Model|static
  18248. * @static
  18249. */
  18250. public static function make($attributes = [])
  18251. {
  18252. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18253. return $instance->make($attributes);
  18254. }
  18255. /**
  18256. * Register a new global scope.
  18257. *
  18258. * @param string $identifier
  18259. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  18260. * @return \Illuminate\Database\Eloquent\Builder|static
  18261. * @static
  18262. */
  18263. public static function withGlobalScope($identifier, $scope)
  18264. {
  18265. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18266. return $instance->withGlobalScope($identifier, $scope);
  18267. }
  18268. /**
  18269. * Remove a registered global scope.
  18270. *
  18271. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  18272. * @return \Illuminate\Database\Eloquent\Builder|static
  18273. * @static
  18274. */
  18275. public static function withoutGlobalScope($scope)
  18276. {
  18277. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18278. return $instance->withoutGlobalScope($scope);
  18279. }
  18280. /**
  18281. * Remove all or passed registered global scopes.
  18282. *
  18283. * @param array|null $scopes
  18284. * @return \Illuminate\Database\Eloquent\Builder|static
  18285. * @static
  18286. */
  18287. public static function withoutGlobalScopes($scopes = null)
  18288. {
  18289. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18290. return $instance->withoutGlobalScopes($scopes);
  18291. }
  18292. /**
  18293. * Get an array of global scopes that were removed from the query.
  18294. *
  18295. * @return array
  18296. * @static
  18297. */
  18298. public static function removedScopes()
  18299. {
  18300. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18301. return $instance->removedScopes();
  18302. }
  18303. /**
  18304. * Add a where clause on the primary key to the query.
  18305. *
  18306. * @param mixed $id
  18307. * @return \Illuminate\Database\Eloquent\Builder|static
  18308. * @static
  18309. */
  18310. public static function whereKey($id)
  18311. {
  18312. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18313. return $instance->whereKey($id);
  18314. }
  18315. /**
  18316. * Add a where clause on the primary key to the query.
  18317. *
  18318. * @param mixed $id
  18319. * @return \Illuminate\Database\Eloquent\Builder|static
  18320. * @static
  18321. */
  18322. public static function whereKeyNot($id)
  18323. {
  18324. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18325. return $instance->whereKeyNot($id);
  18326. }
  18327. /**
  18328. * Add a basic where clause to the query.
  18329. *
  18330. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18331. * @param mixed $operator
  18332. * @param mixed $value
  18333. * @param string $boolean
  18334. * @return \Illuminate\Database\Eloquent\Builder|static
  18335. * @static
  18336. */
  18337. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  18338. {
  18339. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18340. return $instance->where($column, $operator, $value, $boolean);
  18341. }
  18342. /**
  18343. * Add a basic where clause to the query, and return the first result.
  18344. *
  18345. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18346. * @param mixed $operator
  18347. * @param mixed $value
  18348. * @param string $boolean
  18349. * @return \Illuminate\Database\Eloquent\Model|static|null
  18350. * @static
  18351. */
  18352. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  18353. {
  18354. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18355. return $instance->firstWhere($column, $operator, $value, $boolean);
  18356. }
  18357. /**
  18358. * Add an "or where" clause to the query.
  18359. *
  18360. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  18361. * @param mixed $operator
  18362. * @param mixed $value
  18363. * @return \Illuminate\Database\Eloquent\Builder|static
  18364. * @static
  18365. */
  18366. public static function orWhere($column, $operator = null, $value = null)
  18367. {
  18368. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18369. return $instance->orWhere($column, $operator, $value);
  18370. }
  18371. /**
  18372. * Add an "order by" clause for a timestamp to the query.
  18373. *
  18374. * @param string|\Illuminate\Database\Query\Expression $column
  18375. * @return \Illuminate\Database\Eloquent\Builder|static
  18376. * @static
  18377. */
  18378. public static function latest($column = null)
  18379. {
  18380. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18381. return $instance->latest($column);
  18382. }
  18383. /**
  18384. * Add an "order by" clause for a timestamp to the query.
  18385. *
  18386. * @param string|\Illuminate\Database\Query\Expression $column
  18387. * @return \Illuminate\Database\Eloquent\Builder|static
  18388. * @static
  18389. */
  18390. public static function oldest($column = null)
  18391. {
  18392. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18393. return $instance->oldest($column);
  18394. }
  18395. /**
  18396. * Create a collection of models from plain arrays.
  18397. *
  18398. * @param array $items
  18399. * @return \Illuminate\Database\Eloquent\Collection
  18400. * @static
  18401. */
  18402. public static function hydrate($items)
  18403. {
  18404. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18405. return $instance->hydrate($items);
  18406. }
  18407. /**
  18408. * Create a collection of models from a raw query.
  18409. *
  18410. * @param string $query
  18411. * @param array $bindings
  18412. * @return \Illuminate\Database\Eloquent\Collection
  18413. * @static
  18414. */
  18415. public static function fromQuery($query, $bindings = [])
  18416. {
  18417. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18418. return $instance->fromQuery($query, $bindings);
  18419. }
  18420. /**
  18421. * Find a model by its primary key.
  18422. *
  18423. * @param mixed $id
  18424. * @param array $columns
  18425. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  18426. * @static
  18427. */
  18428. public static function find($id, $columns = [])
  18429. {
  18430. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18431. return $instance->find($id, $columns);
  18432. }
  18433. /**
  18434. * Find multiple models by their primary keys.
  18435. *
  18436. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  18437. * @param array $columns
  18438. * @return \Illuminate\Database\Eloquent\Collection
  18439. * @static
  18440. */
  18441. public static function findMany($ids, $columns = [])
  18442. {
  18443. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18444. return $instance->findMany($ids, $columns);
  18445. }
  18446. /**
  18447. * Find a model by its primary key or throw an exception.
  18448. *
  18449. * @param mixed $id
  18450. * @param array $columns
  18451. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  18452. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  18453. * @static
  18454. */
  18455. public static function findOrFail($id, $columns = [])
  18456. {
  18457. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18458. return $instance->findOrFail($id, $columns);
  18459. }
  18460. /**
  18461. * Find a model by its primary key or return fresh model instance.
  18462. *
  18463. * @param mixed $id
  18464. * @param array $columns
  18465. * @return \Illuminate\Database\Eloquent\Model|static
  18466. * @static
  18467. */
  18468. public static function findOrNew($id, $columns = [])
  18469. {
  18470. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18471. return $instance->findOrNew($id, $columns);
  18472. }
  18473. /**
  18474. * Get the first record matching the attributes or instantiate it.
  18475. *
  18476. * @param array $attributes
  18477. * @param array $values
  18478. * @return \Illuminate\Database\Eloquent\Model|static
  18479. * @static
  18480. */
  18481. public static function firstOrNew($attributes = [], $values = [])
  18482. {
  18483. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18484. return $instance->firstOrNew($attributes, $values);
  18485. }
  18486. /**
  18487. * Get the first record matching the attributes or create it.
  18488. *
  18489. * @param array $attributes
  18490. * @param array $values
  18491. * @return \Illuminate\Database\Eloquent\Model|static
  18492. * @static
  18493. */
  18494. public static function firstOrCreate($attributes = [], $values = [])
  18495. {
  18496. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18497. return $instance->firstOrCreate($attributes, $values);
  18498. }
  18499. /**
  18500. * Create or update a record matching the attributes, and fill it with values.
  18501. *
  18502. * @param array $attributes
  18503. * @param array $values
  18504. * @return \Illuminate\Database\Eloquent\Model|static
  18505. * @static
  18506. */
  18507. public static function updateOrCreate($attributes, $values = [])
  18508. {
  18509. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18510. return $instance->updateOrCreate($attributes, $values);
  18511. }
  18512. /**
  18513. * Execute the query and get the first result or throw an exception.
  18514. *
  18515. * @param array $columns
  18516. * @return \Illuminate\Database\Eloquent\Model|static
  18517. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  18518. * @static
  18519. */
  18520. public static function firstOrFail($columns = [])
  18521. {
  18522. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18523. return $instance->firstOrFail($columns);
  18524. }
  18525. /**
  18526. * Execute the query and get the first result or call a callback.
  18527. *
  18528. * @param \Closure|array $columns
  18529. * @param \Closure|null $callback
  18530. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  18531. * @static
  18532. */
  18533. public static function firstOr($columns = [], $callback = null)
  18534. {
  18535. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18536. return $instance->firstOr($columns, $callback);
  18537. }
  18538. /**
  18539. * Execute the query and get the first result if it's the sole matching record.
  18540. *
  18541. * @param array|string $columns
  18542. * @return \Illuminate\Database\Eloquent\Model
  18543. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  18544. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18545. * @static
  18546. */
  18547. public static function sole($columns = [])
  18548. {
  18549. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18550. return $instance->sole($columns);
  18551. }
  18552. /**
  18553. * Get a single column's value from the first result of a query.
  18554. *
  18555. * @param string|\Illuminate\Database\Query\Expression $column
  18556. * @return mixed
  18557. * @static
  18558. */
  18559. public static function value($column)
  18560. {
  18561. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18562. return $instance->value($column);
  18563. }
  18564. /**
  18565. * Get a single column's value from the first result of the query or throw an exception.
  18566. *
  18567. * @param string|\Illuminate\Database\Query\Expression $column
  18568. * @return mixed
  18569. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  18570. * @static
  18571. */
  18572. public static function valueOrFail($column)
  18573. {
  18574. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18575. return $instance->valueOrFail($column);
  18576. }
  18577. /**
  18578. * Execute the query as a "select" statement.
  18579. *
  18580. * @param array|string $columns
  18581. * @return \Illuminate\Database\Eloquent\Collection|static[]
  18582. * @static
  18583. */
  18584. public static function get($columns = [])
  18585. {
  18586. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18587. return $instance->get($columns);
  18588. }
  18589. /**
  18590. * Get the hydrated models without eager loading.
  18591. *
  18592. * @param array|string $columns
  18593. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  18594. * @static
  18595. */
  18596. public static function getModels($columns = [])
  18597. {
  18598. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18599. return $instance->getModels($columns);
  18600. }
  18601. /**
  18602. * Eager load the relationships for the models.
  18603. *
  18604. * @param array $models
  18605. * @return array
  18606. * @static
  18607. */
  18608. public static function eagerLoadRelations($models)
  18609. {
  18610. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18611. return $instance->eagerLoadRelations($models);
  18612. }
  18613. /**
  18614. * Get a lazy collection for the given query.
  18615. *
  18616. * @return \Illuminate\Support\LazyCollection
  18617. * @static
  18618. */
  18619. public static function cursor()
  18620. {
  18621. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18622. return $instance->cursor();
  18623. }
  18624. /**
  18625. * Get an array with the values of a given column.
  18626. *
  18627. * @param string|\Illuminate\Database\Query\Expression $column
  18628. * @param string|null $key
  18629. * @return \Illuminate\Support\Collection
  18630. * @static
  18631. */
  18632. public static function pluck($column, $key = null)
  18633. {
  18634. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18635. return $instance->pluck($column, $key);
  18636. }
  18637. /**
  18638. * Paginate the given query.
  18639. *
  18640. * @param int|null $perPage
  18641. * @param array $columns
  18642. * @param string $pageName
  18643. * @param int|null $page
  18644. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  18645. * @throws \InvalidArgumentException
  18646. * @static
  18647. */
  18648. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  18649. {
  18650. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18651. return $instance->paginate($perPage, $columns, $pageName, $page);
  18652. }
  18653. /**
  18654. * Paginate the given query into a simple paginator.
  18655. *
  18656. * @param int|null $perPage
  18657. * @param array $columns
  18658. * @param string $pageName
  18659. * @param int|null $page
  18660. * @return \Illuminate\Contracts\Pagination\Paginator
  18661. * @static
  18662. */
  18663. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  18664. {
  18665. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18666. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  18667. }
  18668. /**
  18669. * Paginate the given query into a cursor paginator.
  18670. *
  18671. * @param int|null $perPage
  18672. * @param array $columns
  18673. * @param string $cursorName
  18674. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  18675. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  18676. * @static
  18677. */
  18678. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  18679. {
  18680. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18681. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  18682. }
  18683. /**
  18684. * Save a new model and return the instance.
  18685. *
  18686. * @param array $attributes
  18687. * @return \Illuminate\Database\Eloquent\Model|$this
  18688. * @static
  18689. */
  18690. public static function create($attributes = [])
  18691. {
  18692. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18693. return $instance->create($attributes);
  18694. }
  18695. /**
  18696. * Save a new model and return the instance. Allow mass-assignment.
  18697. *
  18698. * @param array $attributes
  18699. * @return \Illuminate\Database\Eloquent\Model|$this
  18700. * @static
  18701. */
  18702. public static function forceCreate($attributes)
  18703. {
  18704. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18705. return $instance->forceCreate($attributes);
  18706. }
  18707. /**
  18708. * Insert new records or update the existing ones.
  18709. *
  18710. * @param array $values
  18711. * @param array|string $uniqueBy
  18712. * @param array|null $update
  18713. * @return int
  18714. * @static
  18715. */
  18716. public static function upsert($values, $uniqueBy, $update = null)
  18717. {
  18718. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18719. return $instance->upsert($values, $uniqueBy, $update);
  18720. }
  18721. /**
  18722. * Register a replacement for the default delete function.
  18723. *
  18724. * @param \Closure $callback
  18725. * @return void
  18726. * @static
  18727. */
  18728. public static function onDelete($callback)
  18729. {
  18730. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18731. $instance->onDelete($callback);
  18732. }
  18733. /**
  18734. * Call the given local model scopes.
  18735. *
  18736. * @param array|string $scopes
  18737. * @return static|mixed
  18738. * @static
  18739. */
  18740. public static function scopes($scopes)
  18741. {
  18742. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18743. return $instance->scopes($scopes);
  18744. }
  18745. /**
  18746. * Apply the scopes to the Eloquent builder instance and return it.
  18747. *
  18748. * @return static
  18749. * @static
  18750. */
  18751. public static function applyScopes()
  18752. {
  18753. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18754. return $instance->applyScopes();
  18755. }
  18756. /**
  18757. * Prevent the specified relations from being eager loaded.
  18758. *
  18759. * @param mixed $relations
  18760. * @return \Illuminate\Database\Eloquent\Builder|static
  18761. * @static
  18762. */
  18763. public static function without($relations)
  18764. {
  18765. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18766. return $instance->without($relations);
  18767. }
  18768. /**
  18769. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  18770. *
  18771. * @param mixed $relations
  18772. * @return \Illuminate\Database\Eloquent\Builder|static
  18773. * @static
  18774. */
  18775. public static function withOnly($relations)
  18776. {
  18777. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18778. return $instance->withOnly($relations);
  18779. }
  18780. /**
  18781. * Create a new instance of the model being queried.
  18782. *
  18783. * @param array $attributes
  18784. * @return \Illuminate\Database\Eloquent\Model|static
  18785. * @static
  18786. */
  18787. public static function newModelInstance($attributes = [])
  18788. {
  18789. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18790. return $instance->newModelInstance($attributes);
  18791. }
  18792. /**
  18793. * Apply query-time casts to the model instance.
  18794. *
  18795. * @param array $casts
  18796. * @return \Illuminate\Database\Eloquent\Builder|static
  18797. * @static
  18798. */
  18799. public static function withCasts($casts)
  18800. {
  18801. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18802. return $instance->withCasts($casts);
  18803. }
  18804. /**
  18805. * Get the underlying query builder instance.
  18806. *
  18807. * @return \Illuminate\Database\Query\Builder
  18808. * @static
  18809. */
  18810. public static function getQuery()
  18811. {
  18812. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18813. return $instance->getQuery();
  18814. }
  18815. /**
  18816. * Set the underlying query builder instance.
  18817. *
  18818. * @param \Illuminate\Database\Query\Builder $query
  18819. * @return \Illuminate\Database\Eloquent\Builder|static
  18820. * @static
  18821. */
  18822. public static function setQuery($query)
  18823. {
  18824. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18825. return $instance->setQuery($query);
  18826. }
  18827. /**
  18828. * Get a base query builder instance.
  18829. *
  18830. * @return \Illuminate\Database\Query\Builder
  18831. * @static
  18832. */
  18833. public static function toBase()
  18834. {
  18835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18836. return $instance->toBase();
  18837. }
  18838. /**
  18839. * Get the relationships being eagerly loaded.
  18840. *
  18841. * @return array
  18842. * @static
  18843. */
  18844. public static function getEagerLoads()
  18845. {
  18846. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18847. return $instance->getEagerLoads();
  18848. }
  18849. /**
  18850. * Set the relationships being eagerly loaded.
  18851. *
  18852. * @param array $eagerLoad
  18853. * @return \Illuminate\Database\Eloquent\Builder|static
  18854. * @static
  18855. */
  18856. public static function setEagerLoads($eagerLoad)
  18857. {
  18858. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18859. return $instance->setEagerLoads($eagerLoad);
  18860. }
  18861. /**
  18862. * Get the model instance being queried.
  18863. *
  18864. * @return \Illuminate\Database\Eloquent\Model|static
  18865. * @static
  18866. */
  18867. public static function getModel()
  18868. {
  18869. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18870. return $instance->getModel();
  18871. }
  18872. /**
  18873. * Set a model instance for the model being queried.
  18874. *
  18875. * @param \Illuminate\Database\Eloquent\Model $model
  18876. * @return \Illuminate\Database\Eloquent\Builder|static
  18877. * @static
  18878. */
  18879. public static function setModel($model)
  18880. {
  18881. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18882. return $instance->setModel($model);
  18883. }
  18884. /**
  18885. * Get the given macro by name.
  18886. *
  18887. * @param string $name
  18888. * @return \Closure
  18889. * @static
  18890. */
  18891. public static function getMacro($name)
  18892. {
  18893. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18894. return $instance->getMacro($name);
  18895. }
  18896. /**
  18897. * Checks if a macro is registered.
  18898. *
  18899. * @param string $name
  18900. * @return bool
  18901. * @static
  18902. */
  18903. public static function hasMacro($name)
  18904. {
  18905. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18906. return $instance->hasMacro($name);
  18907. }
  18908. /**
  18909. * Get the given global macro by name.
  18910. *
  18911. * @param string $name
  18912. * @return \Closure
  18913. * @static
  18914. */
  18915. public static function getGlobalMacro($name)
  18916. {
  18917. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  18918. }
  18919. /**
  18920. * Checks if a global macro is registered.
  18921. *
  18922. * @param string $name
  18923. * @return bool
  18924. * @static
  18925. */
  18926. public static function hasGlobalMacro($name)
  18927. {
  18928. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  18929. }
  18930. /**
  18931. * Clone the Eloquent query builder.
  18932. *
  18933. * @return static
  18934. * @static
  18935. */
  18936. public static function clone()
  18937. {
  18938. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18939. return $instance->clone();
  18940. }
  18941. /**
  18942. * Add a relationship count / exists condition to the query.
  18943. *
  18944. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  18945. * @param string $operator
  18946. * @param int $count
  18947. * @param string $boolean
  18948. * @param \Closure|null $callback
  18949. * @return \Illuminate\Database\Eloquent\Builder|static
  18950. * @throws \RuntimeException
  18951. * @static
  18952. */
  18953. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18954. {
  18955. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18956. return $instance->has($relation, $operator, $count, $boolean, $callback);
  18957. }
  18958. /**
  18959. * Add a relationship count / exists condition to the query with an "or".
  18960. *
  18961. * @param string $relation
  18962. * @param string $operator
  18963. * @param int $count
  18964. * @return \Illuminate\Database\Eloquent\Builder|static
  18965. * @static
  18966. */
  18967. public static function orHas($relation, $operator = '>=', $count = 1)
  18968. {
  18969. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18970. return $instance->orHas($relation, $operator, $count);
  18971. }
  18972. /**
  18973. * Add a relationship count / exists condition to the query.
  18974. *
  18975. * @param string $relation
  18976. * @param string $boolean
  18977. * @param \Closure|null $callback
  18978. * @return \Illuminate\Database\Eloquent\Builder|static
  18979. * @static
  18980. */
  18981. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  18982. {
  18983. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18984. return $instance->doesntHave($relation, $boolean, $callback);
  18985. }
  18986. /**
  18987. * Add a relationship count / exists condition to the query with an "or".
  18988. *
  18989. * @param string $relation
  18990. * @return \Illuminate\Database\Eloquent\Builder|static
  18991. * @static
  18992. */
  18993. public static function orDoesntHave($relation)
  18994. {
  18995. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18996. return $instance->orDoesntHave($relation);
  18997. }
  18998. /**
  18999. * Add a relationship count / exists condition to the query with where clauses.
  19000. *
  19001. * @param string $relation
  19002. * @param \Closure|null $callback
  19003. * @param string $operator
  19004. * @param int $count
  19005. * @return \Illuminate\Database\Eloquent\Builder|static
  19006. * @static
  19007. */
  19008. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  19009. {
  19010. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19011. return $instance->whereHas($relation, $callback, $operator, $count);
  19012. }
  19013. /**
  19014. * Add a relationship count / exists condition to the query with where clauses and an "or".
  19015. *
  19016. * @param string $relation
  19017. * @param \Closure|null $callback
  19018. * @param string $operator
  19019. * @param int $count
  19020. * @return \Illuminate\Database\Eloquent\Builder|static
  19021. * @static
  19022. */
  19023. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  19024. {
  19025. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19026. return $instance->orWhereHas($relation, $callback, $operator, $count);
  19027. }
  19028. /**
  19029. * Add a relationship count / exists condition to the query with where clauses.
  19030. *
  19031. * @param string $relation
  19032. * @param \Closure|null $callback
  19033. * @return \Illuminate\Database\Eloquent\Builder|static
  19034. * @static
  19035. */
  19036. public static function whereDoesntHave($relation, $callback = null)
  19037. {
  19038. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19039. return $instance->whereDoesntHave($relation, $callback);
  19040. }
  19041. /**
  19042. * Add a relationship count / exists condition to the query with where clauses and an "or".
  19043. *
  19044. * @param string $relation
  19045. * @param \Closure|null $callback
  19046. * @return \Illuminate\Database\Eloquent\Builder|static
  19047. * @static
  19048. */
  19049. public static function orWhereDoesntHave($relation, $callback = null)
  19050. {
  19051. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19052. return $instance->orWhereDoesntHave($relation, $callback);
  19053. }
  19054. /**
  19055. * Add a polymorphic relationship count / exists condition to the query.
  19056. *
  19057. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19058. * @param string|array $types
  19059. * @param string $operator
  19060. * @param int $count
  19061. * @param string $boolean
  19062. * @param \Closure|null $callback
  19063. * @return \Illuminate\Database\Eloquent\Builder|static
  19064. * @static
  19065. */
  19066. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  19067. {
  19068. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19069. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  19070. }
  19071. /**
  19072. * Add a polymorphic relationship count / exists condition to the query with an "or".
  19073. *
  19074. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19075. * @param string|array $types
  19076. * @param string $operator
  19077. * @param int $count
  19078. * @return \Illuminate\Database\Eloquent\Builder|static
  19079. * @static
  19080. */
  19081. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  19082. {
  19083. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19084. return $instance->orHasMorph($relation, $types, $operator, $count);
  19085. }
  19086. /**
  19087. * Add a polymorphic relationship count / exists condition to the query.
  19088. *
  19089. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19090. * @param string|array $types
  19091. * @param string $boolean
  19092. * @param \Closure|null $callback
  19093. * @return \Illuminate\Database\Eloquent\Builder|static
  19094. * @static
  19095. */
  19096. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  19097. {
  19098. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19099. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  19100. }
  19101. /**
  19102. * Add a polymorphic relationship count / exists condition to the query with an "or".
  19103. *
  19104. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19105. * @param string|array $types
  19106. * @return \Illuminate\Database\Eloquent\Builder|static
  19107. * @static
  19108. */
  19109. public static function orDoesntHaveMorph($relation, $types)
  19110. {
  19111. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19112. return $instance->orDoesntHaveMorph($relation, $types);
  19113. }
  19114. /**
  19115. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  19116. *
  19117. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19118. * @param string|array $types
  19119. * @param \Closure|null $callback
  19120. * @param string $operator
  19121. * @param int $count
  19122. * @return \Illuminate\Database\Eloquent\Builder|static
  19123. * @static
  19124. */
  19125. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  19126. {
  19127. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19128. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  19129. }
  19130. /**
  19131. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  19132. *
  19133. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19134. * @param string|array $types
  19135. * @param \Closure|null $callback
  19136. * @param string $operator
  19137. * @param int $count
  19138. * @return \Illuminate\Database\Eloquent\Builder|static
  19139. * @static
  19140. */
  19141. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  19142. {
  19143. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19144. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  19145. }
  19146. /**
  19147. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  19148. *
  19149. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19150. * @param string|array $types
  19151. * @param \Closure|null $callback
  19152. * @return \Illuminate\Database\Eloquent\Builder|static
  19153. * @static
  19154. */
  19155. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  19156. {
  19157. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19158. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  19159. }
  19160. /**
  19161. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  19162. *
  19163. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19164. * @param string|array $types
  19165. * @param \Closure|null $callback
  19166. * @return \Illuminate\Database\Eloquent\Builder|static
  19167. * @static
  19168. */
  19169. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  19170. {
  19171. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19172. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  19173. }
  19174. /**
  19175. * Add a basic where clause to a relationship query.
  19176. *
  19177. * @param string $relation
  19178. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19179. * @param mixed $operator
  19180. * @param mixed $value
  19181. * @return \Illuminate\Database\Eloquent\Builder|static
  19182. * @static
  19183. */
  19184. public static function whereRelation($relation, $column, $operator = null, $value = null)
  19185. {
  19186. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19187. return $instance->whereRelation($relation, $column, $operator, $value);
  19188. }
  19189. /**
  19190. * Add an "or where" clause to a relationship query.
  19191. *
  19192. * @param string $relation
  19193. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19194. * @param mixed $operator
  19195. * @param mixed $value
  19196. * @return \Illuminate\Database\Eloquent\Builder|static
  19197. * @static
  19198. */
  19199. public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  19200. {
  19201. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19202. return $instance->orWhereRelation($relation, $column, $operator, $value);
  19203. }
  19204. /**
  19205. * Add a polymorphic relationship condition to the query with a where clause.
  19206. *
  19207. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19208. * @param string|array $types
  19209. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19210. * @param mixed $operator
  19211. * @param mixed $value
  19212. * @return \Illuminate\Database\Eloquent\Builder|static
  19213. * @static
  19214. */
  19215. public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  19216. {
  19217. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19218. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  19219. }
  19220. /**
  19221. * Add a polymorphic relationship condition to the query with an "or where" clause.
  19222. *
  19223. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19224. * @param string|array $types
  19225. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  19226. * @param mixed $operator
  19227. * @param mixed $value
  19228. * @return \Illuminate\Database\Eloquent\Builder|static
  19229. * @static
  19230. */
  19231. public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  19232. {
  19233. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19234. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  19235. }
  19236. /**
  19237. * Add a morph-to relationship condition to the query.
  19238. *
  19239. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19240. * @param \Illuminate\Database\Eloquent\Model|string $model
  19241. * @return \Illuminate\Database\Eloquent\Builder|static
  19242. * @static
  19243. */
  19244. public static function whereMorphedTo($relation, $model, $boolean = 'and')
  19245. {
  19246. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19247. return $instance->whereMorphedTo($relation, $model, $boolean);
  19248. }
  19249. /**
  19250. * Add a morph-to relationship condition to the query with an "or where" clause.
  19251. *
  19252. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  19253. * @param \Illuminate\Database\Eloquent\Model|string $model
  19254. * @return \Illuminate\Database\Eloquent\Builder|static
  19255. * @static
  19256. */
  19257. public static function orWhereMorphedTo($relation, $model)
  19258. {
  19259. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19260. return $instance->orWhereMorphedTo($relation, $model);
  19261. }
  19262. /**
  19263. * Add a "belongs to" relationship where clause to the query.
  19264. *
  19265. * @param \Illuminate\Database\Eloquent\Model $related
  19266. * @param string $relationship
  19267. * @param string $boolean
  19268. * @return \Illuminate\Database\Eloquent\Builder|static
  19269. * @throws \RuntimeException
  19270. * @static
  19271. */
  19272. public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  19273. {
  19274. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19275. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  19276. }
  19277. /**
  19278. * Add an "BelongsTo" relationship with an "or where" clause to the query.
  19279. *
  19280. * @param \Illuminate\Database\Eloquent\Model $related
  19281. * @param string $relationship
  19282. * @return \Illuminate\Database\Eloquent\Builder|static
  19283. * @throws \RuntimeException
  19284. * @static
  19285. */
  19286. public static function orWhereBelongsTo($related, $relationshipName = null)
  19287. {
  19288. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19289. return $instance->orWhereBelongsTo($related, $relationshipName);
  19290. }
  19291. /**
  19292. * Add subselect queries to include an aggregate value for a relationship.
  19293. *
  19294. * @param mixed $relations
  19295. * @param string $column
  19296. * @param string $function
  19297. * @return \Illuminate\Database\Eloquent\Builder|static
  19298. * @static
  19299. */
  19300. public static function withAggregate($relations, $column, $function = null)
  19301. {
  19302. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19303. return $instance->withAggregate($relations, $column, $function);
  19304. }
  19305. /**
  19306. * Add subselect queries to count the relations.
  19307. *
  19308. * @param mixed $relations
  19309. * @return \Illuminate\Database\Eloquent\Builder|static
  19310. * @static
  19311. */
  19312. public static function withCount($relations)
  19313. {
  19314. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19315. return $instance->withCount($relations);
  19316. }
  19317. /**
  19318. * Add subselect queries to include the max of the relation's column.
  19319. *
  19320. * @param string|array $relation
  19321. * @param string $column
  19322. * @return \Illuminate\Database\Eloquent\Builder|static
  19323. * @static
  19324. */
  19325. public static function withMax($relation, $column)
  19326. {
  19327. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19328. return $instance->withMax($relation, $column);
  19329. }
  19330. /**
  19331. * Add subselect queries to include the min of the relation's column.
  19332. *
  19333. * @param string|array $relation
  19334. * @param string $column
  19335. * @return \Illuminate\Database\Eloquent\Builder|static
  19336. * @static
  19337. */
  19338. public static function withMin($relation, $column)
  19339. {
  19340. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19341. return $instance->withMin($relation, $column);
  19342. }
  19343. /**
  19344. * Add subselect queries to include the sum of the relation's column.
  19345. *
  19346. * @param string|array $relation
  19347. * @param string $column
  19348. * @return \Illuminate\Database\Eloquent\Builder|static
  19349. * @static
  19350. */
  19351. public static function withSum($relation, $column)
  19352. {
  19353. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19354. return $instance->withSum($relation, $column);
  19355. }
  19356. /**
  19357. * Add subselect queries to include the average of the relation's column.
  19358. *
  19359. * @param string|array $relation
  19360. * @param string $column
  19361. * @return \Illuminate\Database\Eloquent\Builder|static
  19362. * @static
  19363. */
  19364. public static function withAvg($relation, $column)
  19365. {
  19366. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19367. return $instance->withAvg($relation, $column);
  19368. }
  19369. /**
  19370. * Add subselect queries to include the existence of related models.
  19371. *
  19372. * @param string|array $relation
  19373. * @return \Illuminate\Database\Eloquent\Builder|static
  19374. * @static
  19375. */
  19376. public static function withExists($relation)
  19377. {
  19378. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19379. return $instance->withExists($relation);
  19380. }
  19381. /**
  19382. * Merge the where constraints from another query to the current query.
  19383. *
  19384. * @param \Illuminate\Database\Eloquent\Builder $from
  19385. * @return \Illuminate\Database\Eloquent\Builder|static
  19386. * @static
  19387. */
  19388. public static function mergeConstraintsFrom($from)
  19389. {
  19390. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19391. return $instance->mergeConstraintsFrom($from);
  19392. }
  19393. /**
  19394. * Chunk the results of the query.
  19395. *
  19396. * @param int $count
  19397. * @param callable $callback
  19398. * @return bool
  19399. * @static
  19400. */
  19401. public static function chunk($count, $callback)
  19402. {
  19403. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19404. return $instance->chunk($count, $callback);
  19405. }
  19406. /**
  19407. * Run a map over each item while chunking.
  19408. *
  19409. * @param callable $callback
  19410. * @param int $count
  19411. * @return \Illuminate\Support\Collection
  19412. * @static
  19413. */
  19414. public static function chunkMap($callback, $count = 1000)
  19415. {
  19416. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19417. return $instance->chunkMap($callback, $count);
  19418. }
  19419. /**
  19420. * Execute a callback over each item while chunking.
  19421. *
  19422. * @param callable $callback
  19423. * @param int $count
  19424. * @return bool
  19425. * @throws \RuntimeException
  19426. * @static
  19427. */
  19428. public static function each($callback, $count = 1000)
  19429. {
  19430. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19431. return $instance->each($callback, $count);
  19432. }
  19433. /**
  19434. * Chunk the results of a query by comparing IDs.
  19435. *
  19436. * @param int $count
  19437. * @param callable $callback
  19438. * @param string|null $column
  19439. * @param string|null $alias
  19440. * @return bool
  19441. * @static
  19442. */
  19443. public static function chunkById($count, $callback, $column = null, $alias = null)
  19444. {
  19445. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19446. return $instance->chunkById($count, $callback, $column, $alias);
  19447. }
  19448. /**
  19449. * Execute a callback over each item while chunking by ID.
  19450. *
  19451. * @param callable $callback
  19452. * @param int $count
  19453. * @param string|null $column
  19454. * @param string|null $alias
  19455. * @return bool
  19456. * @static
  19457. */
  19458. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  19459. {
  19460. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19461. return $instance->eachById($callback, $count, $column, $alias);
  19462. }
  19463. /**
  19464. * Query lazily, by chunks of the given size.
  19465. *
  19466. * @param int $chunkSize
  19467. * @return \Illuminate\Support\LazyCollection
  19468. * @throws \InvalidArgumentException
  19469. * @static
  19470. */
  19471. public static function lazy($chunkSize = 1000)
  19472. {
  19473. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19474. return $instance->lazy($chunkSize);
  19475. }
  19476. /**
  19477. * Query lazily, by chunking the results of a query by comparing IDs.
  19478. *
  19479. * @param int $chunkSize
  19480. * @param string|null $column
  19481. * @param string|null $alias
  19482. * @return \Illuminate\Support\LazyCollection
  19483. * @throws \InvalidArgumentException
  19484. * @static
  19485. */
  19486. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  19487. {
  19488. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19489. return $instance->lazyById($chunkSize, $column, $alias);
  19490. }
  19491. /**
  19492. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  19493. *
  19494. * @param int $chunkSize
  19495. * @param string|null $column
  19496. * @param string|null $alias
  19497. * @return \Illuminate\Support\LazyCollection
  19498. * @throws \InvalidArgumentException
  19499. * @static
  19500. */
  19501. public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  19502. {
  19503. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19504. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  19505. }
  19506. /**
  19507. * Execute the query and get the first result.
  19508. *
  19509. * @param array|string $columns
  19510. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  19511. * @static
  19512. */
  19513. public static function first($columns = [])
  19514. {
  19515. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19516. return $instance->first($columns);
  19517. }
  19518. /**
  19519. * Execute the query and get the first result if it's the sole matching record.
  19520. *
  19521. * @param array|string $columns
  19522. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  19523. * @throws \Illuminate\Database\RecordsNotFoundException
  19524. * @throws \Illuminate\Database\MultipleRecordsFoundException
  19525. * @static
  19526. */
  19527. public static function baseSole($columns = [])
  19528. {
  19529. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19530. return $instance->baseSole($columns);
  19531. }
  19532. /**
  19533. * Pass the query to a given callback.
  19534. *
  19535. * @param callable $callback
  19536. * @return $this|mixed
  19537. * @static
  19538. */
  19539. public static function tap($callback)
  19540. {
  19541. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19542. return $instance->tap($callback);
  19543. }
  19544. /**
  19545. * Apply the callback if the given "value" is truthy.
  19546. *
  19547. * @param mixed $value
  19548. * @param callable $callback
  19549. * @param callable|null $default
  19550. * @return $this|mixed
  19551. * @static
  19552. */
  19553. public static function when($value, $callback, $default = null)
  19554. {
  19555. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19556. return $instance->when($value, $callback, $default);
  19557. }
  19558. /**
  19559. * Apply the callback if the given "value" is falsy.
  19560. *
  19561. * @param mixed $value
  19562. * @param callable $callback
  19563. * @param callable|null $default
  19564. * @return $this|mixed
  19565. * @static
  19566. */
  19567. public static function unless($value, $callback, $default = null)
  19568. {
  19569. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  19570. return $instance->unless($value, $callback, $default);
  19571. }
  19572. /**
  19573. * Set the columns to be selected.
  19574. *
  19575. * @param array|mixed $columns
  19576. * @return \Illuminate\Database\Query\Builder
  19577. * @static
  19578. */
  19579. public static function select($columns = [])
  19580. {
  19581. /** @var \Illuminate\Database\Query\Builder $instance */
  19582. return $instance->select($columns);
  19583. }
  19584. /**
  19585. * Add a subselect expression to the query.
  19586. *
  19587. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19588. * @param string $as
  19589. * @return \Illuminate\Database\Query\Builder
  19590. * @throws \InvalidArgumentException
  19591. * @static
  19592. */
  19593. public static function selectSub($query, $as)
  19594. {
  19595. /** @var \Illuminate\Database\Query\Builder $instance */
  19596. return $instance->selectSub($query, $as);
  19597. }
  19598. /**
  19599. * Add a new "raw" select expression to the query.
  19600. *
  19601. * @param string $expression
  19602. * @param array $bindings
  19603. * @return \Illuminate\Database\Query\Builder
  19604. * @static
  19605. */
  19606. public static function selectRaw($expression, $bindings = [])
  19607. {
  19608. /** @var \Illuminate\Database\Query\Builder $instance */
  19609. return $instance->selectRaw($expression, $bindings);
  19610. }
  19611. /**
  19612. * Makes "from" fetch from a subquery.
  19613. *
  19614. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  19615. * @param string $as
  19616. * @return \Illuminate\Database\Query\Builder
  19617. * @throws \InvalidArgumentException
  19618. * @static
  19619. */
  19620. public static function fromSub($query, $as)
  19621. {
  19622. /** @var \Illuminate\Database\Query\Builder $instance */
  19623. return $instance->fromSub($query, $as);
  19624. }
  19625. /**
  19626. * Add a raw from clause to the query.
  19627. *
  19628. * @param string $expression
  19629. * @param mixed $bindings
  19630. * @return \Illuminate\Database\Query\Builder
  19631. * @static
  19632. */
  19633. public static function fromRaw($expression, $bindings = [])
  19634. {
  19635. /** @var \Illuminate\Database\Query\Builder $instance */
  19636. return $instance->fromRaw($expression, $bindings);
  19637. }
  19638. /**
  19639. * Add a new select column to the query.
  19640. *
  19641. * @param array|mixed $column
  19642. * @return \Illuminate\Database\Query\Builder
  19643. * @static
  19644. */
  19645. public static function addSelect($column)
  19646. {
  19647. /** @var \Illuminate\Database\Query\Builder $instance */
  19648. return $instance->addSelect($column);
  19649. }
  19650. /**
  19651. * Force the query to only return distinct results.
  19652. *
  19653. * @param mixed $distinct
  19654. * @return \Illuminate\Database\Query\Builder
  19655. * @static
  19656. */
  19657. public static function distinct()
  19658. {
  19659. /** @var \Illuminate\Database\Query\Builder $instance */
  19660. return $instance->distinct();
  19661. }
  19662. /**
  19663. * Set the table which the query is targeting.
  19664. *
  19665. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  19666. * @param string|null $as
  19667. * @return \Illuminate\Database\Query\Builder
  19668. * @static
  19669. */
  19670. public static function from($table, $as = null)
  19671. {
  19672. /** @var \Illuminate\Database\Query\Builder $instance */
  19673. return $instance->from($table, $as);
  19674. }
  19675. /**
  19676. * Add a join clause to the query.
  19677. *
  19678. * @param string $table
  19679. * @param \Closure|string $first
  19680. * @param string|null $operator
  19681. * @param string|null $second
  19682. * @param string $type
  19683. * @param bool $where
  19684. * @return \Illuminate\Database\Query\Builder
  19685. * @static
  19686. */
  19687. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19688. {
  19689. /** @var \Illuminate\Database\Query\Builder $instance */
  19690. return $instance->join($table, $first, $operator, $second, $type, $where);
  19691. }
  19692. /**
  19693. * Add a "join where" clause to the query.
  19694. *
  19695. * @param string $table
  19696. * @param \Closure|string $first
  19697. * @param string $operator
  19698. * @param string $second
  19699. * @param string $type
  19700. * @return \Illuminate\Database\Query\Builder
  19701. * @static
  19702. */
  19703. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  19704. {
  19705. /** @var \Illuminate\Database\Query\Builder $instance */
  19706. return $instance->joinWhere($table, $first, $operator, $second, $type);
  19707. }
  19708. /**
  19709. * Add a subquery join clause to the query.
  19710. *
  19711. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19712. * @param string $as
  19713. * @param \Closure|string $first
  19714. * @param string|null $operator
  19715. * @param string|null $second
  19716. * @param string $type
  19717. * @param bool $where
  19718. * @return \Illuminate\Database\Query\Builder
  19719. * @throws \InvalidArgumentException
  19720. * @static
  19721. */
  19722. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19723. {
  19724. /** @var \Illuminate\Database\Query\Builder $instance */
  19725. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  19726. }
  19727. /**
  19728. * Add a left join to the query.
  19729. *
  19730. * @param string $table
  19731. * @param \Closure|string $first
  19732. * @param string|null $operator
  19733. * @param string|null $second
  19734. * @return \Illuminate\Database\Query\Builder
  19735. * @static
  19736. */
  19737. public static function leftJoin($table, $first, $operator = null, $second = null)
  19738. {
  19739. /** @var \Illuminate\Database\Query\Builder $instance */
  19740. return $instance->leftJoin($table, $first, $operator, $second);
  19741. }
  19742. /**
  19743. * Add a "join where" clause to the query.
  19744. *
  19745. * @param string $table
  19746. * @param \Closure|string $first
  19747. * @param string $operator
  19748. * @param string $second
  19749. * @return \Illuminate\Database\Query\Builder
  19750. * @static
  19751. */
  19752. public static function leftJoinWhere($table, $first, $operator, $second)
  19753. {
  19754. /** @var \Illuminate\Database\Query\Builder $instance */
  19755. return $instance->leftJoinWhere($table, $first, $operator, $second);
  19756. }
  19757. /**
  19758. * Add a subquery left join to the query.
  19759. *
  19760. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19761. * @param string $as
  19762. * @param \Closure|string $first
  19763. * @param string|null $operator
  19764. * @param string|null $second
  19765. * @return \Illuminate\Database\Query\Builder
  19766. * @static
  19767. */
  19768. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  19769. {
  19770. /** @var \Illuminate\Database\Query\Builder $instance */
  19771. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  19772. }
  19773. /**
  19774. * Add a right join to the query.
  19775. *
  19776. * @param string $table
  19777. * @param \Closure|string $first
  19778. * @param string|null $operator
  19779. * @param string|null $second
  19780. * @return \Illuminate\Database\Query\Builder
  19781. * @static
  19782. */
  19783. public static function rightJoin($table, $first, $operator = null, $second = null)
  19784. {
  19785. /** @var \Illuminate\Database\Query\Builder $instance */
  19786. return $instance->rightJoin($table, $first, $operator, $second);
  19787. }
  19788. /**
  19789. * Add a "right join where" clause to the query.
  19790. *
  19791. * @param string $table
  19792. * @param \Closure|string $first
  19793. * @param string $operator
  19794. * @param string $second
  19795. * @return \Illuminate\Database\Query\Builder
  19796. * @static
  19797. */
  19798. public static function rightJoinWhere($table, $first, $operator, $second)
  19799. {
  19800. /** @var \Illuminate\Database\Query\Builder $instance */
  19801. return $instance->rightJoinWhere($table, $first, $operator, $second);
  19802. }
  19803. /**
  19804. * Add a subquery right join to the query.
  19805. *
  19806. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19807. * @param string $as
  19808. * @param \Closure|string $first
  19809. * @param string|null $operator
  19810. * @param string|null $second
  19811. * @return \Illuminate\Database\Query\Builder
  19812. * @static
  19813. */
  19814. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  19815. {
  19816. /** @var \Illuminate\Database\Query\Builder $instance */
  19817. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  19818. }
  19819. /**
  19820. * Add a "cross join" clause to the query.
  19821. *
  19822. * @param string $table
  19823. * @param \Closure|string|null $first
  19824. * @param string|null $operator
  19825. * @param string|null $second
  19826. * @return \Illuminate\Database\Query\Builder
  19827. * @static
  19828. */
  19829. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  19830. {
  19831. /** @var \Illuminate\Database\Query\Builder $instance */
  19832. return $instance->crossJoin($table, $first, $operator, $second);
  19833. }
  19834. /**
  19835. * Add a subquery cross join to the query.
  19836. *
  19837. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  19838. * @param string $as
  19839. * @return \Illuminate\Database\Query\Builder
  19840. * @static
  19841. */
  19842. public static function crossJoinSub($query, $as)
  19843. {
  19844. /** @var \Illuminate\Database\Query\Builder $instance */
  19845. return $instance->crossJoinSub($query, $as);
  19846. }
  19847. /**
  19848. * Merge an array of where clauses and bindings.
  19849. *
  19850. * @param array $wheres
  19851. * @param array $bindings
  19852. * @return void
  19853. * @static
  19854. */
  19855. public static function mergeWheres($wheres, $bindings)
  19856. {
  19857. /** @var \Illuminate\Database\Query\Builder $instance */
  19858. $instance->mergeWheres($wheres, $bindings);
  19859. }
  19860. /**
  19861. * Prepare the value and operator for a where clause.
  19862. *
  19863. * @param string $value
  19864. * @param string $operator
  19865. * @param bool $useDefault
  19866. * @return array
  19867. * @throws \InvalidArgumentException
  19868. * @static
  19869. */
  19870. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  19871. {
  19872. /** @var \Illuminate\Database\Query\Builder $instance */
  19873. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  19874. }
  19875. /**
  19876. * Add a "where" clause comparing two columns to the query.
  19877. *
  19878. * @param string|array $first
  19879. * @param string|null $operator
  19880. * @param string|null $second
  19881. * @param string|null $boolean
  19882. * @return \Illuminate\Database\Query\Builder
  19883. * @static
  19884. */
  19885. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  19886. {
  19887. /** @var \Illuminate\Database\Query\Builder $instance */
  19888. return $instance->whereColumn($first, $operator, $second, $boolean);
  19889. }
  19890. /**
  19891. * Add an "or where" clause comparing two columns to the query.
  19892. *
  19893. * @param string|array $first
  19894. * @param string|null $operator
  19895. * @param string|null $second
  19896. * @return \Illuminate\Database\Query\Builder
  19897. * @static
  19898. */
  19899. public static function orWhereColumn($first, $operator = null, $second = null)
  19900. {
  19901. /** @var \Illuminate\Database\Query\Builder $instance */
  19902. return $instance->orWhereColumn($first, $operator, $second);
  19903. }
  19904. /**
  19905. * Add a raw where clause to the query.
  19906. *
  19907. * @param string $sql
  19908. * @param mixed $bindings
  19909. * @param string $boolean
  19910. * @return \Illuminate\Database\Query\Builder
  19911. * @static
  19912. */
  19913. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  19914. {
  19915. /** @var \Illuminate\Database\Query\Builder $instance */
  19916. return $instance->whereRaw($sql, $bindings, $boolean);
  19917. }
  19918. /**
  19919. * Add a raw or where clause to the query.
  19920. *
  19921. * @param string $sql
  19922. * @param mixed $bindings
  19923. * @return \Illuminate\Database\Query\Builder
  19924. * @static
  19925. */
  19926. public static function orWhereRaw($sql, $bindings = [])
  19927. {
  19928. /** @var \Illuminate\Database\Query\Builder $instance */
  19929. return $instance->orWhereRaw($sql, $bindings);
  19930. }
  19931. /**
  19932. * Add a "where in" clause to the query.
  19933. *
  19934. * @param string $column
  19935. * @param mixed $values
  19936. * @param string $boolean
  19937. * @param bool $not
  19938. * @return \Illuminate\Database\Query\Builder
  19939. * @static
  19940. */
  19941. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  19942. {
  19943. /** @var \Illuminate\Database\Query\Builder $instance */
  19944. return $instance->whereIn($column, $values, $boolean, $not);
  19945. }
  19946. /**
  19947. * Add an "or where in" clause to the query.
  19948. *
  19949. * @param string $column
  19950. * @param mixed $values
  19951. * @return \Illuminate\Database\Query\Builder
  19952. * @static
  19953. */
  19954. public static function orWhereIn($column, $values)
  19955. {
  19956. /** @var \Illuminate\Database\Query\Builder $instance */
  19957. return $instance->orWhereIn($column, $values);
  19958. }
  19959. /**
  19960. * Add a "where not in" clause to the query.
  19961. *
  19962. * @param string $column
  19963. * @param mixed $values
  19964. * @param string $boolean
  19965. * @return \Illuminate\Database\Query\Builder
  19966. * @static
  19967. */
  19968. public static function whereNotIn($column, $values, $boolean = 'and')
  19969. {
  19970. /** @var \Illuminate\Database\Query\Builder $instance */
  19971. return $instance->whereNotIn($column, $values, $boolean);
  19972. }
  19973. /**
  19974. * Add an "or where not in" clause to the query.
  19975. *
  19976. * @param string $column
  19977. * @param mixed $values
  19978. * @return \Illuminate\Database\Query\Builder
  19979. * @static
  19980. */
  19981. public static function orWhereNotIn($column, $values)
  19982. {
  19983. /** @var \Illuminate\Database\Query\Builder $instance */
  19984. return $instance->orWhereNotIn($column, $values);
  19985. }
  19986. /**
  19987. * Add a "where in raw" clause for integer values to the query.
  19988. *
  19989. * @param string $column
  19990. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19991. * @param string $boolean
  19992. * @param bool $not
  19993. * @return \Illuminate\Database\Query\Builder
  19994. * @static
  19995. */
  19996. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  19997. {
  19998. /** @var \Illuminate\Database\Query\Builder $instance */
  19999. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  20000. }
  20001. /**
  20002. * Add an "or where in raw" clause for integer values to the query.
  20003. *
  20004. * @param string $column
  20005. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  20006. * @return \Illuminate\Database\Query\Builder
  20007. * @static
  20008. */
  20009. public static function orWhereIntegerInRaw($column, $values)
  20010. {
  20011. /** @var \Illuminate\Database\Query\Builder $instance */
  20012. return $instance->orWhereIntegerInRaw($column, $values);
  20013. }
  20014. /**
  20015. * Add a "where not in raw" clause for integer values to the query.
  20016. *
  20017. * @param string $column
  20018. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  20019. * @param string $boolean
  20020. * @return \Illuminate\Database\Query\Builder
  20021. * @static
  20022. */
  20023. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  20024. {
  20025. /** @var \Illuminate\Database\Query\Builder $instance */
  20026. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  20027. }
  20028. /**
  20029. * Add an "or where not in raw" clause for integer values to the query.
  20030. *
  20031. * @param string $column
  20032. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  20033. * @return \Illuminate\Database\Query\Builder
  20034. * @static
  20035. */
  20036. public static function orWhereIntegerNotInRaw($column, $values)
  20037. {
  20038. /** @var \Illuminate\Database\Query\Builder $instance */
  20039. return $instance->orWhereIntegerNotInRaw($column, $values);
  20040. }
  20041. /**
  20042. * Add a "where null" clause to the query.
  20043. *
  20044. * @param string|array $columns
  20045. * @param string $boolean
  20046. * @param bool $not
  20047. * @return \Illuminate\Database\Query\Builder
  20048. * @static
  20049. */
  20050. public static function whereNull($columns, $boolean = 'and', $not = false)
  20051. {
  20052. /** @var \Illuminate\Database\Query\Builder $instance */
  20053. return $instance->whereNull($columns, $boolean, $not);
  20054. }
  20055. /**
  20056. * Add an "or where null" clause to the query.
  20057. *
  20058. * @param string|array $column
  20059. * @return \Illuminate\Database\Query\Builder
  20060. * @static
  20061. */
  20062. public static function orWhereNull($column)
  20063. {
  20064. /** @var \Illuminate\Database\Query\Builder $instance */
  20065. return $instance->orWhereNull($column);
  20066. }
  20067. /**
  20068. * Add a "where not null" clause to the query.
  20069. *
  20070. * @param string|array $columns
  20071. * @param string $boolean
  20072. * @return \Illuminate\Database\Query\Builder
  20073. * @static
  20074. */
  20075. public static function whereNotNull($columns, $boolean = 'and')
  20076. {
  20077. /** @var \Illuminate\Database\Query\Builder $instance */
  20078. return $instance->whereNotNull($columns, $boolean);
  20079. }
  20080. /**
  20081. * Add a where between statement to the query.
  20082. *
  20083. * @param string|\Illuminate\Database\Query\Expression $column
  20084. * @param array $values
  20085. * @param string $boolean
  20086. * @param bool $not
  20087. * @return \Illuminate\Database\Query\Builder
  20088. * @static
  20089. */
  20090. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  20091. {
  20092. /** @var \Illuminate\Database\Query\Builder $instance */
  20093. return $instance->whereBetween($column, $values, $boolean, $not);
  20094. }
  20095. /**
  20096. * Add a where between statement using columns to the query.
  20097. *
  20098. * @param string $column
  20099. * @param array $values
  20100. * @param string $boolean
  20101. * @param bool $not
  20102. * @return \Illuminate\Database\Query\Builder
  20103. * @static
  20104. */
  20105. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  20106. {
  20107. /** @var \Illuminate\Database\Query\Builder $instance */
  20108. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  20109. }
  20110. /**
  20111. * Add an or where between statement to the query.
  20112. *
  20113. * @param string $column
  20114. * @param array $values
  20115. * @return \Illuminate\Database\Query\Builder
  20116. * @static
  20117. */
  20118. public static function orWhereBetween($column, $values)
  20119. {
  20120. /** @var \Illuminate\Database\Query\Builder $instance */
  20121. return $instance->orWhereBetween($column, $values);
  20122. }
  20123. /**
  20124. * Add an or where between statement using columns to the query.
  20125. *
  20126. * @param string $column
  20127. * @param array $values
  20128. * @return \Illuminate\Database\Query\Builder
  20129. * @static
  20130. */
  20131. public static function orWhereBetweenColumns($column, $values)
  20132. {
  20133. /** @var \Illuminate\Database\Query\Builder $instance */
  20134. return $instance->orWhereBetweenColumns($column, $values);
  20135. }
  20136. /**
  20137. * Add a where not between statement to the query.
  20138. *
  20139. * @param string $column
  20140. * @param array $values
  20141. * @param string $boolean
  20142. * @return \Illuminate\Database\Query\Builder
  20143. * @static
  20144. */
  20145. public static function whereNotBetween($column, $values, $boolean = 'and')
  20146. {
  20147. /** @var \Illuminate\Database\Query\Builder $instance */
  20148. return $instance->whereNotBetween($column, $values, $boolean);
  20149. }
  20150. /**
  20151. * Add a where not between statement using columns to the query.
  20152. *
  20153. * @param string $column
  20154. * @param array $values
  20155. * @param string $boolean
  20156. * @return \Illuminate\Database\Query\Builder
  20157. * @static
  20158. */
  20159. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  20160. {
  20161. /** @var \Illuminate\Database\Query\Builder $instance */
  20162. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  20163. }
  20164. /**
  20165. * Add an or where not between statement to the query.
  20166. *
  20167. * @param string $column
  20168. * @param array $values
  20169. * @return \Illuminate\Database\Query\Builder
  20170. * @static
  20171. */
  20172. public static function orWhereNotBetween($column, $values)
  20173. {
  20174. /** @var \Illuminate\Database\Query\Builder $instance */
  20175. return $instance->orWhereNotBetween($column, $values);
  20176. }
  20177. /**
  20178. * Add an or where not between statement using columns to the query.
  20179. *
  20180. * @param string $column
  20181. * @param array $values
  20182. * @return \Illuminate\Database\Query\Builder
  20183. * @static
  20184. */
  20185. public static function orWhereNotBetweenColumns($column, $values)
  20186. {
  20187. /** @var \Illuminate\Database\Query\Builder $instance */
  20188. return $instance->orWhereNotBetweenColumns($column, $values);
  20189. }
  20190. /**
  20191. * Add an "or where not null" clause to the query.
  20192. *
  20193. * @param string $column
  20194. * @return \Illuminate\Database\Query\Builder
  20195. * @static
  20196. */
  20197. public static function orWhereNotNull($column)
  20198. {
  20199. /** @var \Illuminate\Database\Query\Builder $instance */
  20200. return $instance->orWhereNotNull($column);
  20201. }
  20202. /**
  20203. * Add a "where date" statement to the query.
  20204. *
  20205. * @param \Illuminate\Database\Query\Expression|string $column
  20206. * @param string $operator
  20207. * @param \DateTimeInterface|string|null $value
  20208. * @param string $boolean
  20209. * @return \Illuminate\Database\Query\Builder
  20210. * @static
  20211. */
  20212. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  20213. {
  20214. /** @var \Illuminate\Database\Query\Builder $instance */
  20215. return $instance->whereDate($column, $operator, $value, $boolean);
  20216. }
  20217. /**
  20218. * Add an "or where date" statement to the query.
  20219. *
  20220. * @param string $column
  20221. * @param string $operator
  20222. * @param \DateTimeInterface|string|null $value
  20223. * @return \Illuminate\Database\Query\Builder
  20224. * @static
  20225. */
  20226. public static function orWhereDate($column, $operator, $value = null)
  20227. {
  20228. /** @var \Illuminate\Database\Query\Builder $instance */
  20229. return $instance->orWhereDate($column, $operator, $value);
  20230. }
  20231. /**
  20232. * Add a "where time" statement to the query.
  20233. *
  20234. * @param string $column
  20235. * @param string $operator
  20236. * @param \DateTimeInterface|string|null $value
  20237. * @param string $boolean
  20238. * @return \Illuminate\Database\Query\Builder
  20239. * @static
  20240. */
  20241. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  20242. {
  20243. /** @var \Illuminate\Database\Query\Builder $instance */
  20244. return $instance->whereTime($column, $operator, $value, $boolean);
  20245. }
  20246. /**
  20247. * Add an "or where time" statement to the query.
  20248. *
  20249. * @param string $column
  20250. * @param string $operator
  20251. * @param \DateTimeInterface|string|null $value
  20252. * @return \Illuminate\Database\Query\Builder
  20253. * @static
  20254. */
  20255. public static function orWhereTime($column, $operator, $value = null)
  20256. {
  20257. /** @var \Illuminate\Database\Query\Builder $instance */
  20258. return $instance->orWhereTime($column, $operator, $value);
  20259. }
  20260. /**
  20261. * Add a "where day" statement to the query.
  20262. *
  20263. * @param string $column
  20264. * @param string $operator
  20265. * @param \DateTimeInterface|string|null $value
  20266. * @param string $boolean
  20267. * @return \Illuminate\Database\Query\Builder
  20268. * @static
  20269. */
  20270. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  20271. {
  20272. /** @var \Illuminate\Database\Query\Builder $instance */
  20273. return $instance->whereDay($column, $operator, $value, $boolean);
  20274. }
  20275. /**
  20276. * Add an "or where day" statement to the query.
  20277. *
  20278. * @param string $column
  20279. * @param string $operator
  20280. * @param \DateTimeInterface|string|null $value
  20281. * @return \Illuminate\Database\Query\Builder
  20282. * @static
  20283. */
  20284. public static function orWhereDay($column, $operator, $value = null)
  20285. {
  20286. /** @var \Illuminate\Database\Query\Builder $instance */
  20287. return $instance->orWhereDay($column, $operator, $value);
  20288. }
  20289. /**
  20290. * Add a "where month" statement to the query.
  20291. *
  20292. * @param string $column
  20293. * @param string $operator
  20294. * @param \DateTimeInterface|string|null $value
  20295. * @param string $boolean
  20296. * @return \Illuminate\Database\Query\Builder
  20297. * @static
  20298. */
  20299. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  20300. {
  20301. /** @var \Illuminate\Database\Query\Builder $instance */
  20302. return $instance->whereMonth($column, $operator, $value, $boolean);
  20303. }
  20304. /**
  20305. * Add an "or where month" statement to the query.
  20306. *
  20307. * @param string $column
  20308. * @param string $operator
  20309. * @param \DateTimeInterface|string|null $value
  20310. * @return \Illuminate\Database\Query\Builder
  20311. * @static
  20312. */
  20313. public static function orWhereMonth($column, $operator, $value = null)
  20314. {
  20315. /** @var \Illuminate\Database\Query\Builder $instance */
  20316. return $instance->orWhereMonth($column, $operator, $value);
  20317. }
  20318. /**
  20319. * Add a "where year" statement to the query.
  20320. *
  20321. * @param string $column
  20322. * @param string $operator
  20323. * @param \DateTimeInterface|string|int|null $value
  20324. * @param string $boolean
  20325. * @return \Illuminate\Database\Query\Builder
  20326. * @static
  20327. */
  20328. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  20329. {
  20330. /** @var \Illuminate\Database\Query\Builder $instance */
  20331. return $instance->whereYear($column, $operator, $value, $boolean);
  20332. }
  20333. /**
  20334. * Add an "or where year" statement to the query.
  20335. *
  20336. * @param string $column
  20337. * @param string $operator
  20338. * @param \DateTimeInterface|string|int|null $value
  20339. * @return \Illuminate\Database\Query\Builder
  20340. * @static
  20341. */
  20342. public static function orWhereYear($column, $operator, $value = null)
  20343. {
  20344. /** @var \Illuminate\Database\Query\Builder $instance */
  20345. return $instance->orWhereYear($column, $operator, $value);
  20346. }
  20347. /**
  20348. * Add a nested where statement to the query.
  20349. *
  20350. * @param \Closure $callback
  20351. * @param string $boolean
  20352. * @return \Illuminate\Database\Query\Builder
  20353. * @static
  20354. */
  20355. public static function whereNested($callback, $boolean = 'and')
  20356. {
  20357. /** @var \Illuminate\Database\Query\Builder $instance */
  20358. return $instance->whereNested($callback, $boolean);
  20359. }
  20360. /**
  20361. * Create a new query instance for nested where condition.
  20362. *
  20363. * @return \Illuminate\Database\Query\Builder
  20364. * @static
  20365. */
  20366. public static function forNestedWhere()
  20367. {
  20368. /** @var \Illuminate\Database\Query\Builder $instance */
  20369. return $instance->forNestedWhere();
  20370. }
  20371. /**
  20372. * Add another query builder as a nested where to the query builder.
  20373. *
  20374. * @param \Illuminate\Database\Query\Builder $query
  20375. * @param string $boolean
  20376. * @return \Illuminate\Database\Query\Builder
  20377. * @static
  20378. */
  20379. public static function addNestedWhereQuery($query, $boolean = 'and')
  20380. {
  20381. /** @var \Illuminate\Database\Query\Builder $instance */
  20382. return $instance->addNestedWhereQuery($query, $boolean);
  20383. }
  20384. /**
  20385. * Add an exists clause to the query.
  20386. *
  20387. * @param \Closure $callback
  20388. * @param string $boolean
  20389. * @param bool $not
  20390. * @return \Illuminate\Database\Query\Builder
  20391. * @static
  20392. */
  20393. public static function whereExists($callback, $boolean = 'and', $not = false)
  20394. {
  20395. /** @var \Illuminate\Database\Query\Builder $instance */
  20396. return $instance->whereExists($callback, $boolean, $not);
  20397. }
  20398. /**
  20399. * Add an or exists clause to the query.
  20400. *
  20401. * @param \Closure $callback
  20402. * @param bool $not
  20403. * @return \Illuminate\Database\Query\Builder
  20404. * @static
  20405. */
  20406. public static function orWhereExists($callback, $not = false)
  20407. {
  20408. /** @var \Illuminate\Database\Query\Builder $instance */
  20409. return $instance->orWhereExists($callback, $not);
  20410. }
  20411. /**
  20412. * Add a where not exists clause to the query.
  20413. *
  20414. * @param \Closure $callback
  20415. * @param string $boolean
  20416. * @return \Illuminate\Database\Query\Builder
  20417. * @static
  20418. */
  20419. public static function whereNotExists($callback, $boolean = 'and')
  20420. {
  20421. /** @var \Illuminate\Database\Query\Builder $instance */
  20422. return $instance->whereNotExists($callback, $boolean);
  20423. }
  20424. /**
  20425. * Add a where not exists clause to the query.
  20426. *
  20427. * @param \Closure $callback
  20428. * @return \Illuminate\Database\Query\Builder
  20429. * @static
  20430. */
  20431. public static function orWhereNotExists($callback)
  20432. {
  20433. /** @var \Illuminate\Database\Query\Builder $instance */
  20434. return $instance->orWhereNotExists($callback);
  20435. }
  20436. /**
  20437. * Add an exists clause to the query.
  20438. *
  20439. * @param \Illuminate\Database\Query\Builder $query
  20440. * @param string $boolean
  20441. * @param bool $not
  20442. * @return \Illuminate\Database\Query\Builder
  20443. * @static
  20444. */
  20445. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  20446. {
  20447. /** @var \Illuminate\Database\Query\Builder $instance */
  20448. return $instance->addWhereExistsQuery($query, $boolean, $not);
  20449. }
  20450. /**
  20451. * Adds a where condition using row values.
  20452. *
  20453. * @param array $columns
  20454. * @param string $operator
  20455. * @param array $values
  20456. * @param string $boolean
  20457. * @return \Illuminate\Database\Query\Builder
  20458. * @throws \InvalidArgumentException
  20459. * @static
  20460. */
  20461. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  20462. {
  20463. /** @var \Illuminate\Database\Query\Builder $instance */
  20464. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  20465. }
  20466. /**
  20467. * Adds an or where condition using row values.
  20468. *
  20469. * @param array $columns
  20470. * @param string $operator
  20471. * @param array $values
  20472. * @return \Illuminate\Database\Query\Builder
  20473. * @static
  20474. */
  20475. public static function orWhereRowValues($columns, $operator, $values)
  20476. {
  20477. /** @var \Illuminate\Database\Query\Builder $instance */
  20478. return $instance->orWhereRowValues($columns, $operator, $values);
  20479. }
  20480. /**
  20481. * Add a "where JSON contains" clause to the query.
  20482. *
  20483. * @param string $column
  20484. * @param mixed $value
  20485. * @param string $boolean
  20486. * @param bool $not
  20487. * @return \Illuminate\Database\Query\Builder
  20488. * @static
  20489. */
  20490. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  20491. {
  20492. /** @var \Illuminate\Database\Query\Builder $instance */
  20493. return $instance->whereJsonContains($column, $value, $boolean, $not);
  20494. }
  20495. /**
  20496. * Add an "or where JSON contains" clause to the query.
  20497. *
  20498. * @param string $column
  20499. * @param mixed $value
  20500. * @return \Illuminate\Database\Query\Builder
  20501. * @static
  20502. */
  20503. public static function orWhereJsonContains($column, $value)
  20504. {
  20505. /** @var \Illuminate\Database\Query\Builder $instance */
  20506. return $instance->orWhereJsonContains($column, $value);
  20507. }
  20508. /**
  20509. * Add a "where JSON not contains" clause to the query.
  20510. *
  20511. * @param string $column
  20512. * @param mixed $value
  20513. * @param string $boolean
  20514. * @return \Illuminate\Database\Query\Builder
  20515. * @static
  20516. */
  20517. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  20518. {
  20519. /** @var \Illuminate\Database\Query\Builder $instance */
  20520. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  20521. }
  20522. /**
  20523. * Add an "or where JSON not contains" clause to the query.
  20524. *
  20525. * @param string $column
  20526. * @param mixed $value
  20527. * @return \Illuminate\Database\Query\Builder
  20528. * @static
  20529. */
  20530. public static function orWhereJsonDoesntContain($column, $value)
  20531. {
  20532. /** @var \Illuminate\Database\Query\Builder $instance */
  20533. return $instance->orWhereJsonDoesntContain($column, $value);
  20534. }
  20535. /**
  20536. * Add a "where JSON length" clause to the query.
  20537. *
  20538. * @param string $column
  20539. * @param mixed $operator
  20540. * @param mixed $value
  20541. * @param string $boolean
  20542. * @return \Illuminate\Database\Query\Builder
  20543. * @static
  20544. */
  20545. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  20546. {
  20547. /** @var \Illuminate\Database\Query\Builder $instance */
  20548. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  20549. }
  20550. /**
  20551. * Add an "or where JSON length" clause to the query.
  20552. *
  20553. * @param string $column
  20554. * @param mixed $operator
  20555. * @param mixed $value
  20556. * @return \Illuminate\Database\Query\Builder
  20557. * @static
  20558. */
  20559. public static function orWhereJsonLength($column, $operator, $value = null)
  20560. {
  20561. /** @var \Illuminate\Database\Query\Builder $instance */
  20562. return $instance->orWhereJsonLength($column, $operator, $value);
  20563. }
  20564. /**
  20565. * Handles dynamic "where" clauses to the query.
  20566. *
  20567. * @param string $method
  20568. * @param array $parameters
  20569. * @return \Illuminate\Database\Query\Builder
  20570. * @static
  20571. */
  20572. public static function dynamicWhere($method, $parameters)
  20573. {
  20574. /** @var \Illuminate\Database\Query\Builder $instance */
  20575. return $instance->dynamicWhere($method, $parameters);
  20576. }
  20577. /**
  20578. * Add a "where fulltext" clause to the query.
  20579. *
  20580. * @param string|string[] $columns
  20581. * @param string $value
  20582. * @param string $boolean
  20583. * @return \Illuminate\Database\Query\Builder
  20584. * @static
  20585. */
  20586. public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  20587. {
  20588. /** @var \Illuminate\Database\Query\Builder $instance */
  20589. return $instance->whereFullText($columns, $value, $options, $boolean);
  20590. }
  20591. /**
  20592. * Add a "or where fulltext" clause to the query.
  20593. *
  20594. * @param string|string[] $columns
  20595. * @param string $value
  20596. * @return \Illuminate\Database\Query\Builder
  20597. * @static
  20598. */
  20599. public static function orWhereFullText($columns, $value, $options = [])
  20600. {
  20601. /** @var \Illuminate\Database\Query\Builder $instance */
  20602. return $instance->orWhereFullText($columns, $value, $options);
  20603. }
  20604. /**
  20605. * Add a "group by" clause to the query.
  20606. *
  20607. * @param array|string $groups
  20608. * @return \Illuminate\Database\Query\Builder
  20609. * @static
  20610. */
  20611. public static function groupBy(...$groups)
  20612. {
  20613. /** @var \Illuminate\Database\Query\Builder $instance */
  20614. return $instance->groupBy(...$groups);
  20615. }
  20616. /**
  20617. * Add a raw groupBy clause to the query.
  20618. *
  20619. * @param string $sql
  20620. * @param array $bindings
  20621. * @return \Illuminate\Database\Query\Builder
  20622. * @static
  20623. */
  20624. public static function groupByRaw($sql, $bindings = [])
  20625. {
  20626. /** @var \Illuminate\Database\Query\Builder $instance */
  20627. return $instance->groupByRaw($sql, $bindings);
  20628. }
  20629. /**
  20630. * Add a "having" clause to the query.
  20631. *
  20632. * @param string $column
  20633. * @param string|null $operator
  20634. * @param string|null $value
  20635. * @param string $boolean
  20636. * @return \Illuminate\Database\Query\Builder
  20637. * @static
  20638. */
  20639. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  20640. {
  20641. /** @var \Illuminate\Database\Query\Builder $instance */
  20642. return $instance->having($column, $operator, $value, $boolean);
  20643. }
  20644. /**
  20645. * Add an "or having" clause to the query.
  20646. *
  20647. * @param string $column
  20648. * @param string|null $operator
  20649. * @param string|null $value
  20650. * @return \Illuminate\Database\Query\Builder
  20651. * @static
  20652. */
  20653. public static function orHaving($column, $operator = null, $value = null)
  20654. {
  20655. /** @var \Illuminate\Database\Query\Builder $instance */
  20656. return $instance->orHaving($column, $operator, $value);
  20657. }
  20658. /**
  20659. * Add a "having between " clause to the query.
  20660. *
  20661. * @param string $column
  20662. * @param array $values
  20663. * @param string $boolean
  20664. * @param bool $not
  20665. * @return \Illuminate\Database\Query\Builder
  20666. * @static
  20667. */
  20668. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  20669. {
  20670. /** @var \Illuminate\Database\Query\Builder $instance */
  20671. return $instance->havingBetween($column, $values, $boolean, $not);
  20672. }
  20673. /**
  20674. * Add a raw having clause to the query.
  20675. *
  20676. * @param string $sql
  20677. * @param array $bindings
  20678. * @param string $boolean
  20679. * @return \Illuminate\Database\Query\Builder
  20680. * @static
  20681. */
  20682. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  20683. {
  20684. /** @var \Illuminate\Database\Query\Builder $instance */
  20685. return $instance->havingRaw($sql, $bindings, $boolean);
  20686. }
  20687. /**
  20688. * Add a raw or having clause to the query.
  20689. *
  20690. * @param string $sql
  20691. * @param array $bindings
  20692. * @return \Illuminate\Database\Query\Builder
  20693. * @static
  20694. */
  20695. public static function orHavingRaw($sql, $bindings = [])
  20696. {
  20697. /** @var \Illuminate\Database\Query\Builder $instance */
  20698. return $instance->orHavingRaw($sql, $bindings);
  20699. }
  20700. /**
  20701. * Add an "order by" clause to the query.
  20702. *
  20703. * @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  20704. * @param string $direction
  20705. * @return \Illuminate\Database\Query\Builder
  20706. * @throws \InvalidArgumentException
  20707. * @static
  20708. */
  20709. public static function orderBy($column, $direction = 'asc')
  20710. {
  20711. /** @var \Illuminate\Database\Query\Builder $instance */
  20712. return $instance->orderBy($column, $direction);
  20713. }
  20714. /**
  20715. * Add a descending "order by" clause to the query.
  20716. *
  20717. * @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  20718. * @return \Illuminate\Database\Query\Builder
  20719. * @static
  20720. */
  20721. public static function orderByDesc($column)
  20722. {
  20723. /** @var \Illuminate\Database\Query\Builder $instance */
  20724. return $instance->orderByDesc($column);
  20725. }
  20726. /**
  20727. * Put the query's results in random order.
  20728. *
  20729. * @param string $seed
  20730. * @return \Illuminate\Database\Query\Builder
  20731. * @static
  20732. */
  20733. public static function inRandomOrder($seed = '')
  20734. {
  20735. /** @var \Illuminate\Database\Query\Builder $instance */
  20736. return $instance->inRandomOrder($seed);
  20737. }
  20738. /**
  20739. * Add a raw "order by" clause to the query.
  20740. *
  20741. * @param string $sql
  20742. * @param array $bindings
  20743. * @return \Illuminate\Database\Query\Builder
  20744. * @static
  20745. */
  20746. public static function orderByRaw($sql, $bindings = [])
  20747. {
  20748. /** @var \Illuminate\Database\Query\Builder $instance */
  20749. return $instance->orderByRaw($sql, $bindings);
  20750. }
  20751. /**
  20752. * Alias to set the "offset" value of the query.
  20753. *
  20754. * @param int $value
  20755. * @return \Illuminate\Database\Query\Builder
  20756. * @static
  20757. */
  20758. public static function skip($value)
  20759. {
  20760. /** @var \Illuminate\Database\Query\Builder $instance */
  20761. return $instance->skip($value);
  20762. }
  20763. /**
  20764. * Set the "offset" value of the query.
  20765. *
  20766. * @param int $value
  20767. * @return \Illuminate\Database\Query\Builder
  20768. * @static
  20769. */
  20770. public static function offset($value)
  20771. {
  20772. /** @var \Illuminate\Database\Query\Builder $instance */
  20773. return $instance->offset($value);
  20774. }
  20775. /**
  20776. * Alias to set the "limit" value of the query.
  20777. *
  20778. * @param int $value
  20779. * @return \Illuminate\Database\Query\Builder
  20780. * @static
  20781. */
  20782. public static function take($value)
  20783. {
  20784. /** @var \Illuminate\Database\Query\Builder $instance */
  20785. return $instance->take($value);
  20786. }
  20787. /**
  20788. * Set the "limit" value of the query.
  20789. *
  20790. * @param int $value
  20791. * @return \Illuminate\Database\Query\Builder
  20792. * @static
  20793. */
  20794. public static function limit($value)
  20795. {
  20796. /** @var \Illuminate\Database\Query\Builder $instance */
  20797. return $instance->limit($value);
  20798. }
  20799. /**
  20800. * Set the limit and offset for a given page.
  20801. *
  20802. * @param int $page
  20803. * @param int $perPage
  20804. * @return \Illuminate\Database\Query\Builder
  20805. * @static
  20806. */
  20807. public static function forPage($page, $perPage = 15)
  20808. {
  20809. /** @var \Illuminate\Database\Query\Builder $instance */
  20810. return $instance->forPage($page, $perPage);
  20811. }
  20812. /**
  20813. * Constrain the query to the previous "page" of results before a given ID.
  20814. *
  20815. * @param int $perPage
  20816. * @param int|null $lastId
  20817. * @param string $column
  20818. * @return \Illuminate\Database\Query\Builder
  20819. * @static
  20820. */
  20821. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  20822. {
  20823. /** @var \Illuminate\Database\Query\Builder $instance */
  20824. return $instance->forPageBeforeId($perPage, $lastId, $column);
  20825. }
  20826. /**
  20827. * Constrain the query to the next "page" of results after a given ID.
  20828. *
  20829. * @param int $perPage
  20830. * @param int|null $lastId
  20831. * @param string $column
  20832. * @return \Illuminate\Database\Query\Builder
  20833. * @static
  20834. */
  20835. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  20836. {
  20837. /** @var \Illuminate\Database\Query\Builder $instance */
  20838. return $instance->forPageAfterId($perPage, $lastId, $column);
  20839. }
  20840. /**
  20841. * Remove all existing orders and optionally add a new order.
  20842. *
  20843. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
  20844. * @param string $direction
  20845. * @return \Illuminate\Database\Query\Builder
  20846. * @static
  20847. */
  20848. public static function reorder($column = null, $direction = 'asc')
  20849. {
  20850. /** @var \Illuminate\Database\Query\Builder $instance */
  20851. return $instance->reorder($column, $direction);
  20852. }
  20853. /**
  20854. * Add a union statement to the query.
  20855. *
  20856. * @param \Illuminate\Database\Query\Builder|\Closure $query
  20857. * @param bool $all
  20858. * @return \Illuminate\Database\Query\Builder
  20859. * @static
  20860. */
  20861. public static function union($query, $all = false)
  20862. {
  20863. /** @var \Illuminate\Database\Query\Builder $instance */
  20864. return $instance->union($query, $all);
  20865. }
  20866. /**
  20867. * Add a union all statement to the query.
  20868. *
  20869. * @param \Illuminate\Database\Query\Builder|\Closure $query
  20870. * @return \Illuminate\Database\Query\Builder
  20871. * @static
  20872. */
  20873. public static function unionAll($query)
  20874. {
  20875. /** @var \Illuminate\Database\Query\Builder $instance */
  20876. return $instance->unionAll($query);
  20877. }
  20878. /**
  20879. * Lock the selected rows in the table.
  20880. *
  20881. * @param string|bool $value
  20882. * @return \Illuminate\Database\Query\Builder
  20883. * @static
  20884. */
  20885. public static function lock($value = true)
  20886. {
  20887. /** @var \Illuminate\Database\Query\Builder $instance */
  20888. return $instance->lock($value);
  20889. }
  20890. /**
  20891. * Lock the selected rows in the table for updating.
  20892. *
  20893. * @return \Illuminate\Database\Query\Builder
  20894. * @static
  20895. */
  20896. public static function lockForUpdate()
  20897. {
  20898. /** @var \Illuminate\Database\Query\Builder $instance */
  20899. return $instance->lockForUpdate();
  20900. }
  20901. /**
  20902. * Share lock the selected rows in the table.
  20903. *
  20904. * @return \Illuminate\Database\Query\Builder
  20905. * @static
  20906. */
  20907. public static function sharedLock()
  20908. {
  20909. /** @var \Illuminate\Database\Query\Builder $instance */
  20910. return $instance->sharedLock();
  20911. }
  20912. /**
  20913. * Register a closure to be invoked before the query is executed.
  20914. *
  20915. * @param callable $callback
  20916. * @return \Illuminate\Database\Query\Builder
  20917. * @static
  20918. */
  20919. public static function beforeQuery($callback)
  20920. {
  20921. /** @var \Illuminate\Database\Query\Builder $instance */
  20922. return $instance->beforeQuery($callback);
  20923. }
  20924. /**
  20925. * Invoke the "before query" modification callbacks.
  20926. *
  20927. * @return void
  20928. * @static
  20929. */
  20930. public static function applyBeforeQueryCallbacks()
  20931. {
  20932. /** @var \Illuminate\Database\Query\Builder $instance */
  20933. $instance->applyBeforeQueryCallbacks();
  20934. }
  20935. /**
  20936. * Get the SQL representation of the query.
  20937. *
  20938. * @return string
  20939. * @static
  20940. */
  20941. public static function toSql()
  20942. {
  20943. /** @var \Illuminate\Database\Query\Builder $instance */
  20944. return $instance->toSql();
  20945. }
  20946. /**
  20947. * Get the count of the total records for the paginator.
  20948. *
  20949. * @param array $columns
  20950. * @return int
  20951. * @static
  20952. */
  20953. public static function getCountForPagination($columns = [])
  20954. {
  20955. /** @var \Illuminate\Database\Query\Builder $instance */
  20956. return $instance->getCountForPagination($columns);
  20957. }
  20958. /**
  20959. * Concatenate values of a given column as a string.
  20960. *
  20961. * @param string $column
  20962. * @param string $glue
  20963. * @return string
  20964. * @static
  20965. */
  20966. public static function implode($column, $glue = '')
  20967. {
  20968. /** @var \Illuminate\Database\Query\Builder $instance */
  20969. return $instance->implode($column, $glue);
  20970. }
  20971. /**
  20972. * Determine if any rows exist for the current query.
  20973. *
  20974. * @return bool
  20975. * @static
  20976. */
  20977. public static function exists()
  20978. {
  20979. /** @var \Illuminate\Database\Query\Builder $instance */
  20980. return $instance->exists();
  20981. }
  20982. /**
  20983. * Determine if no rows exist for the current query.
  20984. *
  20985. * @return bool
  20986. * @static
  20987. */
  20988. public static function doesntExist()
  20989. {
  20990. /** @var \Illuminate\Database\Query\Builder $instance */
  20991. return $instance->doesntExist();
  20992. }
  20993. /**
  20994. * Execute the given callback if no rows exist for the current query.
  20995. *
  20996. * @param \Closure $callback
  20997. * @return mixed
  20998. * @static
  20999. */
  21000. public static function existsOr($callback)
  21001. {
  21002. /** @var \Illuminate\Database\Query\Builder $instance */
  21003. return $instance->existsOr($callback);
  21004. }
  21005. /**
  21006. * Execute the given callback if rows exist for the current query.
  21007. *
  21008. * @param \Closure $callback
  21009. * @return mixed
  21010. * @static
  21011. */
  21012. public static function doesntExistOr($callback)
  21013. {
  21014. /** @var \Illuminate\Database\Query\Builder $instance */
  21015. return $instance->doesntExistOr($callback);
  21016. }
  21017. /**
  21018. * Retrieve the "count" result of the query.
  21019. *
  21020. * @param string $columns
  21021. * @return int
  21022. * @static
  21023. */
  21024. public static function count($columns = '*')
  21025. {
  21026. /** @var \Illuminate\Database\Query\Builder $instance */
  21027. return $instance->count($columns);
  21028. }
  21029. /**
  21030. * Retrieve the minimum value of a given column.
  21031. *
  21032. * @param string $column
  21033. * @return mixed
  21034. * @static
  21035. */
  21036. public static function min($column)
  21037. {
  21038. /** @var \Illuminate\Database\Query\Builder $instance */
  21039. return $instance->min($column);
  21040. }
  21041. /**
  21042. * Retrieve the maximum value of a given column.
  21043. *
  21044. * @param string $column
  21045. * @return mixed
  21046. * @static
  21047. */
  21048. public static function max($column)
  21049. {
  21050. /** @var \Illuminate\Database\Query\Builder $instance */
  21051. return $instance->max($column);
  21052. }
  21053. /**
  21054. * Retrieve the sum of the values of a given column.
  21055. *
  21056. * @param string $column
  21057. * @return mixed
  21058. * @static
  21059. */
  21060. public static function sum($column)
  21061. {
  21062. /** @var \Illuminate\Database\Query\Builder $instance */
  21063. return $instance->sum($column);
  21064. }
  21065. /**
  21066. * Retrieve the average of the values of a given column.
  21067. *
  21068. * @param string $column
  21069. * @return mixed
  21070. * @static
  21071. */
  21072. public static function avg($column)
  21073. {
  21074. /** @var \Illuminate\Database\Query\Builder $instance */
  21075. return $instance->avg($column);
  21076. }
  21077. /**
  21078. * Alias for the "avg" method.
  21079. *
  21080. * @param string $column
  21081. * @return mixed
  21082. * @static
  21083. */
  21084. public static function average($column)
  21085. {
  21086. /** @var \Illuminate\Database\Query\Builder $instance */
  21087. return $instance->average($column);
  21088. }
  21089. /**
  21090. * Execute an aggregate function on the database.
  21091. *
  21092. * @param string $function
  21093. * @param array $columns
  21094. * @return mixed
  21095. * @static
  21096. */
  21097. public static function aggregate($function, $columns = [])
  21098. {
  21099. /** @var \Illuminate\Database\Query\Builder $instance */
  21100. return $instance->aggregate($function, $columns);
  21101. }
  21102. /**
  21103. * Execute a numeric aggregate function on the database.
  21104. *
  21105. * @param string $function
  21106. * @param array $columns
  21107. * @return float|int
  21108. * @static
  21109. */
  21110. public static function numericAggregate($function, $columns = [])
  21111. {
  21112. /** @var \Illuminate\Database\Query\Builder $instance */
  21113. return $instance->numericAggregate($function, $columns);
  21114. }
  21115. /**
  21116. * Insert new records into the database.
  21117. *
  21118. * @param array $values
  21119. * @return bool
  21120. * @static
  21121. */
  21122. public static function insert($values)
  21123. {
  21124. /** @var \Illuminate\Database\Query\Builder $instance */
  21125. return $instance->insert($values);
  21126. }
  21127. /**
  21128. * Insert new records into the database while ignoring errors.
  21129. *
  21130. * @param array $values
  21131. * @return int
  21132. * @static
  21133. */
  21134. public static function insertOrIgnore($values)
  21135. {
  21136. /** @var \Illuminate\Database\Query\Builder $instance */
  21137. return $instance->insertOrIgnore($values);
  21138. }
  21139. /**
  21140. * Insert a new record and get the value of the primary key.
  21141. *
  21142. * @param array $values
  21143. * @param string|null $sequence
  21144. * @return int
  21145. * @static
  21146. */
  21147. public static function insertGetId($values, $sequence = null)
  21148. {
  21149. /** @var \Illuminate\Database\Query\Builder $instance */
  21150. return $instance->insertGetId($values, $sequence);
  21151. }
  21152. /**
  21153. * Insert new records into the table using a subquery.
  21154. *
  21155. * @param array $columns
  21156. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  21157. * @return int
  21158. * @static
  21159. */
  21160. public static function insertUsing($columns, $query)
  21161. {
  21162. /** @var \Illuminate\Database\Query\Builder $instance */
  21163. return $instance->insertUsing($columns, $query);
  21164. }
  21165. /**
  21166. * Update records in a PostgreSQL database using the update from syntax.
  21167. *
  21168. * @param array $values
  21169. * @return int
  21170. * @static
  21171. */
  21172. public static function updateFrom($values)
  21173. {
  21174. /** @var \Illuminate\Database\Query\Builder $instance */
  21175. return $instance->updateFrom($values);
  21176. }
  21177. /**
  21178. * Insert or update a record matching the attributes, and fill it with values.
  21179. *
  21180. * @param array $attributes
  21181. * @param array $values
  21182. * @return bool
  21183. * @static
  21184. */
  21185. public static function updateOrInsert($attributes, $values = [])
  21186. {
  21187. /** @var \Illuminate\Database\Query\Builder $instance */
  21188. return $instance->updateOrInsert($attributes, $values);
  21189. }
  21190. /**
  21191. * Run a truncate statement on the table.
  21192. *
  21193. * @return void
  21194. * @static
  21195. */
  21196. public static function truncate()
  21197. {
  21198. /** @var \Illuminate\Database\Query\Builder $instance */
  21199. $instance->truncate();
  21200. }
  21201. /**
  21202. * Create a raw database expression.
  21203. *
  21204. * @param mixed $value
  21205. * @return \Illuminate\Database\Query\Expression
  21206. * @static
  21207. */
  21208. public static function raw($value)
  21209. {
  21210. /** @var \Illuminate\Database\Query\Builder $instance */
  21211. return $instance->raw($value);
  21212. }
  21213. /**
  21214. * Get the current query value bindings in a flattened array.
  21215. *
  21216. * @return array
  21217. * @static
  21218. */
  21219. public static function getBindings()
  21220. {
  21221. /** @var \Illuminate\Database\Query\Builder $instance */
  21222. return $instance->getBindings();
  21223. }
  21224. /**
  21225. * Get the raw array of bindings.
  21226. *
  21227. * @return array
  21228. * @static
  21229. */
  21230. public static function getRawBindings()
  21231. {
  21232. /** @var \Illuminate\Database\Query\Builder $instance */
  21233. return $instance->getRawBindings();
  21234. }
  21235. /**
  21236. * Set the bindings on the query builder.
  21237. *
  21238. * @param array $bindings
  21239. * @param string $type
  21240. * @return \Illuminate\Database\Query\Builder
  21241. * @throws \InvalidArgumentException
  21242. * @static
  21243. */
  21244. public static function setBindings($bindings, $type = 'where')
  21245. {
  21246. /** @var \Illuminate\Database\Query\Builder $instance */
  21247. return $instance->setBindings($bindings, $type);
  21248. }
  21249. /**
  21250. * Add a binding to the query.
  21251. *
  21252. * @param mixed $value
  21253. * @param string $type
  21254. * @return \Illuminate\Database\Query\Builder
  21255. * @throws \InvalidArgumentException
  21256. * @static
  21257. */
  21258. public static function addBinding($value, $type = 'where')
  21259. {
  21260. /** @var \Illuminate\Database\Query\Builder $instance */
  21261. return $instance->addBinding($value, $type);
  21262. }
  21263. /**
  21264. * Cast the given binding value.
  21265. *
  21266. * @param mixed $value
  21267. * @return mixed
  21268. * @static
  21269. */
  21270. public static function castBinding($value)
  21271. {
  21272. /** @var \Illuminate\Database\Query\Builder $instance */
  21273. return $instance->castBinding($value);
  21274. }
  21275. /**
  21276. * Merge an array of bindings into our bindings.
  21277. *
  21278. * @param \Illuminate\Database\Query\Builder $query
  21279. * @return \Illuminate\Database\Query\Builder
  21280. * @static
  21281. */
  21282. public static function mergeBindings($query)
  21283. {
  21284. /** @var \Illuminate\Database\Query\Builder $instance */
  21285. return $instance->mergeBindings($query);
  21286. }
  21287. /**
  21288. * Remove all of the expressions from a list of bindings.
  21289. *
  21290. * @param array $bindings
  21291. * @return array
  21292. * @static
  21293. */
  21294. public static function cleanBindings($bindings)
  21295. {
  21296. /** @var \Illuminate\Database\Query\Builder $instance */
  21297. return $instance->cleanBindings($bindings);
  21298. }
  21299. /**
  21300. * Get the database query processor instance.
  21301. *
  21302. * @return \Illuminate\Database\Query\Processors\Processor
  21303. * @static
  21304. */
  21305. public static function getProcessor()
  21306. {
  21307. /** @var \Illuminate\Database\Query\Builder $instance */
  21308. return $instance->getProcessor();
  21309. }
  21310. /**
  21311. * Get the query grammar instance.
  21312. *
  21313. * @return \Illuminate\Database\Query\Grammars\Grammar
  21314. * @static
  21315. */
  21316. public static function getGrammar()
  21317. {
  21318. /** @var \Illuminate\Database\Query\Builder $instance */
  21319. return $instance->getGrammar();
  21320. }
  21321. /**
  21322. * Use the write pdo for query.
  21323. *
  21324. * @return \Illuminate\Database\Query\Builder
  21325. * @static
  21326. */
  21327. public static function useWritePdo()
  21328. {
  21329. /** @var \Illuminate\Database\Query\Builder $instance */
  21330. return $instance->useWritePdo();
  21331. }
  21332. /**
  21333. * Clone the query without the given properties.
  21334. *
  21335. * @param array $properties
  21336. * @return static
  21337. * @static
  21338. */
  21339. public static function cloneWithout($properties)
  21340. {
  21341. /** @var \Illuminate\Database\Query\Builder $instance */
  21342. return $instance->cloneWithout($properties);
  21343. }
  21344. /**
  21345. * Clone the query without the given bindings.
  21346. *
  21347. * @param array $except
  21348. * @return static
  21349. * @static
  21350. */
  21351. public static function cloneWithoutBindings($except)
  21352. {
  21353. /** @var \Illuminate\Database\Query\Builder $instance */
  21354. return $instance->cloneWithoutBindings($except);
  21355. }
  21356. /**
  21357. * Dump the current SQL and bindings.
  21358. *
  21359. * @return \Illuminate\Database\Query\Builder
  21360. * @static
  21361. */
  21362. public static function dump()
  21363. {
  21364. /** @var \Illuminate\Database\Query\Builder $instance */
  21365. return $instance->dump();
  21366. }
  21367. /**
  21368. * Die and dump the current SQL and bindings.
  21369. *
  21370. * @return \Illuminate\Database\Query\never
  21371. * @static
  21372. */
  21373. public static function dd()
  21374. {
  21375. /** @var \Illuminate\Database\Query\Builder $instance */
  21376. return $instance->dd();
  21377. }
  21378. /**
  21379. * Explains the query.
  21380. *
  21381. * @return \Illuminate\Support\Collection
  21382. * @static
  21383. */
  21384. public static function explain()
  21385. {
  21386. /** @var \Illuminate\Database\Query\Builder $instance */
  21387. return $instance->explain();
  21388. }
  21389. /**
  21390. * Register a custom macro.
  21391. *
  21392. * @param string $name
  21393. * @param object|callable $macro
  21394. * @return void
  21395. * @static
  21396. */
  21397. public static function macro($name, $macro)
  21398. {
  21399. \Illuminate\Database\Query\Builder::macro($name, $macro);
  21400. }
  21401. /**
  21402. * Mix another object into the class.
  21403. *
  21404. * @param object $mixin
  21405. * @param bool $replace
  21406. * @return void
  21407. * @throws \ReflectionException
  21408. * @static
  21409. */
  21410. public static function mixin($mixin, $replace = true)
  21411. {
  21412. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  21413. }
  21414. /**
  21415. * Flush the existing macros.
  21416. *
  21417. * @return void
  21418. * @static
  21419. */
  21420. public static function flushMacros()
  21421. {
  21422. \Illuminate\Database\Query\Builder::flushMacros();
  21423. }
  21424. /**
  21425. * Dynamically handle calls to the class.
  21426. *
  21427. * @param string $method
  21428. * @param array $parameters
  21429. * @return mixed
  21430. * @throws \BadMethodCallException
  21431. * @static
  21432. */
  21433. public static function macroCall($method, $parameters)
  21434. {
  21435. /** @var \Illuminate\Database\Query\Builder $instance */
  21436. return $instance->macroCall($method, $parameters);
  21437. }
  21438. }
  21439. class Event extends \Illuminate\Support\Facades\Event {}
  21440. class File extends \Illuminate\Support\Facades\File {}
  21441. class Gate extends \Illuminate\Support\Facades\Gate {}
  21442. class Hash extends \Illuminate\Support\Facades\Hash {}
  21443. class Lang extends \Illuminate\Support\Facades\Lang {}
  21444. class Log extends \Illuminate\Support\Facades\Log {}
  21445. class Mail extends \Illuminate\Support\Facades\Mail {}
  21446. class Notification extends \Illuminate\Support\Facades\Notification {}
  21447. class Password extends \Illuminate\Support\Facades\Password {}
  21448. class Queue extends \Illuminate\Support\Facades\Queue {}
  21449. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  21450. class Redis extends \Illuminate\Support\Facades\Redis {}
  21451. class Request extends \Illuminate\Support\Facades\Request {}
  21452. class Response extends \Illuminate\Support\Facades\Response {}
  21453. class Route extends \Illuminate\Support\Facades\Route {}
  21454. class Schema extends \Illuminate\Support\Facades\Schema {}
  21455. class Session extends \Illuminate\Support\Facades\Session {}
  21456. class Storage extends \Illuminate\Support\Facades\Storage {}
  21457. class URL extends \Illuminate\Support\Facades\URL {}
  21458. class Validator extends \Illuminate\Support\Facades\Validator {}
  21459. class View extends \Illuminate\Support\Facades\View {}
  21460. class Socialite extends \Laravel\Socialite\Facades\Socialite {}
  21461. class PDF extends \niklasravnsborg\LaravelPdf\Facades\Pdf {}
  21462. class Paystack extends \Unicodeveloper\Paystack\Facades\Paystack {}
  21463. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  21464. class PaytmWallet extends \Anand\LaravelPaytmWallet\Facades\PaytmWallet {}
  21465. class Str extends \Illuminate\Support\Str {}
  21466. class Rave extends \KingFlamez\Rave\Facades\Rave {}
  21467. class Image extends \Intervention\Image\Facades\Image {}
  21468. class QrCode extends \SimpleSoftwareIO\QrCode\Facades\QrCode {}
  21469. class Debugbar extends \Barryvdh\Debugbar\Facades\Debugbar {}
  21470. class Flare extends \Facade\Ignition\Facades\Flare {}
  21471. class Flash extends \Laracasts\Flash\Flash {}
  21472. class Colorcodeconverter extends \Laracon21\Colorcodeconverter\ColorcodeconverterFacade {}
  21473. class Combinations extends \Laracon21\Combinations\CombinationsFacade {}
  21474. class Timezones extends \Laracon21\Timezones\TimezonesFacade {}
  21475. class CoreComponentRepository extends \MehediIitdu\CoreComponentRepository\CoreComponentRepositoryFacade {}
  21476. }